So I can define this uart in Circuitpython, but I never get any output from the GPS.
If someone can confirm for me what two pins on the actual micro-controller the GPS serial lines map back to, I could try them. The schematics provided do not make this easy to tell!
Can anyone help me understand what to change here so that I can see what the GPS is sending? Are these the correct pins?
Suggestion: How about if we ask Seeed to help map the GPS pins on the LORA chassis to a named pin in the dir(board) list and have those two pins named GPS.TX and GPS.RX?
In this way, everyone will know what pins to use to talk to the GPS, and nobody will have to struggle with tryng to figure out how to map the UART… thoughts?
import time
import board
import busio
import microcontroller
uart = busio.UART(microcontroller.pin.PB02, microcontroller.pin.PB00, baudrate=9600)
output1 = bytes("\r\n", ‘ascii’)
uart.write(output1)
time.sleep(.5)
print(uart.readline())
time.sleep(.5)
print(uart.readline())
As a reference, in gps.cpp: (GitHub - disk91/WioLoRaWANFieldTester)
SoftwareSerial softSerial(3,2);
So in C++ code, what physical pins would that map back to on the actual processor?
I have an output of all of the combinations for this board that should be valid, and I’ve tried a lot of these combinations… believing that if I got the correct definition, I would start to see output from the GPS:
RX pin: board.A1 TX pin: board.A0
RX pin: board.D13 TX pin: board.A0
RX pin: board.GYROSCOPE_SCL TX pin: board.A0
RX pin: board.TX TX pin: board.A0
RX pin: board.A2 TX pin: board.A6
RX pin: board.A8 TX pin: board.A6
RX pin: board.DAC1 TX pin: board.A6
RX pin: board.RTL_CLK TX pin: board.A6
RX pin: board.RTL_CS TX pin: board.A6
RX pin: board.RTL_MISO TX pin: board.A6
RX pin: board.SD_CS TX pin: board.A6
RX pin: board.SD_MISO TX pin: board.A6
RX pin: board.SD_MOSI TX pin: board.A6
RX pin: board.BUTTON_3 TX pin: board.BUTTON_2
RX pin: board.D9 TX pin: board.BUTTON_2
RX pin: board.RTL_DIR TX pin: board.BUTTON_2
RX pin: board.RTL_PWR TX pin: board.BUTTON_2
RX pin: board.RTL_TXD TX pin: board.BUTTON_2
RX pin: board.SD_DET TX pin: board.BUTTON_2
RX pin: board.SWITCH_UP TX pin: board.BUTTON_2
RX pin: board.BUTTON_3 TX pin: board.D10
RX pin: board.D9 TX pin: board.D10
RX pin: board.RTL_DIR TX pin: board.D10
RX pin: board.RTL_PWR TX pin: board.D10
RX pin: board.RTL_TXD TX pin: board.D10
RX pin: board.SD_DET TX pin: board.D10
RX pin: board.SWITCH_UP TX pin: board.D10
RX pin: board.D10 TX pin: board.D9
RX pin: board.I2S_LRCLK TX pin: board.D9
RX pin: board.I2S_SDOUT TX pin: board.D9
RX pin: board.RTL_DIR TX pin: board.D9
RX pin: board.RTL_PWR TX pin: board.D9
RX pin: board.RTL_RXD TX pin: board.D9
RX pin: board.SD_DET TX pin: board.D9
RX pin: board.SWITCH_UP TX pin: board.D9
RX pin: board.D13 TX pin: board.GYROSCOPE_SCL
RX pin: board.GYROSCOPE_SDA TX pin: board.GYROSCOPE_SCL
RX pin: board.RTL_CS TX pin: board.GYROSCOPE_SCL
RX pin: board.RTL_MISO TX pin: board.GYROSCOPE_SCL
RX pin: board.RTL_MOSI TX pin: board.GYROSCOPE_SCL
RX pin: board.RX TX pin: board.GYROSCOPE_SCL
RX pin: board.A1 TX pin: board.GYROSCOPE_SDA
RX pin: board.D13 TX pin: board.GYROSCOPE_SDA
RX pin: board.GYROSCOPE_SCL TX pin: board.GYROSCOPE_SDA
RX pin: board.TX TX pin: board.GYROSCOPE_SDA
RX pin: board.CS TX pin: board.I2S_BCLK
RX pin: board.I2S_LRCLK TX pin: board.I2S_BCLK
RX pin: board.I2S_SDIN TX pin: board.I2S_BCLK
RX pin: board.I2S_SDOUT TX pin: board.I2S_BCLK
RX pin: board.MISO TX pin: board.I2S_BCLK
RX pin: board.SCK TX pin: board.I2S_BCLK
RX pin: board.TFT_MISO TX pin: board.I2S_BCLK
RX pin: board.D10 TX pin: board.I2S_SDIN
RX pin: board.I2S_LRCLK TX pin: board.I2S_SDIN
RX pin: board.I2S_SDOUT TX pin: board.I2S_SDIN
RX pin: board.RTL_DIR TX pin: board.I2S_SDIN
RX pin: board.RTL_PWR TX pin: board.I2S_SDIN
RX pin: board.RTL_RXD TX pin: board.I2S_SDIN
RX pin: board.SD_DET TX pin: board.I2S_SDIN
RX pin: board.SWITCH_UP TX pin: board.I2S_SDIN
RX pin: board.CS TX pin: board.IR
RX pin: board.I2S_LRCLK TX pin: board.IR
RX pin: board.I2S_SDIN TX pin: board.IR
RX pin: board.I2S_SDOUT TX pin: board.IR
RX pin: board.MISO TX pin: board.IR
RX pin: board.SCK TX pin: board.IR
RX pin: board.TFT_MISO TX pin: board.IR
RX pin: board.CS TX pin: board.MOSI
RX pin: board.I2S_LRCLK TX pin: board.MOSI
RX pin: board.I2S_SDIN TX pin: board.MOSI
RX pin: board.I2S_SDOUT TX pin: board.MOSI
RX pin: board.MISO TX pin: board.MOSI
RX pin: board.SCK TX pin: board.MOSI
RX pin: board.TFT_MISO TX pin: board.MOSI
RX pin: board.D13 TX pin: board.RTL_CLK
RX pin: board.GYROSCOPE_SDA TX pin: board.RTL_CLK
RX pin: board.RTL_CS TX pin: board.RTL_CLK
RX pin: board.RTL_MISO TX pin: board.RTL_CLK
RX pin: board.RTL_MOSI TX pin: board.RTL_CLK
RX pin: board.RX TX pin: board.RTL_CLK
RX pin: board.A2 TX pin: board.RTL_MOSI
RX pin: board.A8 TX pin: board.RTL_MOSI
RX pin: board.DAC1 TX pin: board.RTL_MOSI
RX pin: board.RTL_CLK TX pin: board.RTL_MOSI
RX pin: board.RTL_CS TX pin: board.RTL_MOSI
RX pin: board.RTL_MISO TX pin: board.RTL_MOSI
RX pin: board.SD_CS TX pin: board.RTL_MOSI
RX pin: board.SD_MISO TX pin: board.RTL_MOSI
RX pin: board.SD_MOSI TX pin: board.RTL_MOSI
RX pin: board.BUTTON_3 TX pin: board.RTL_RXD
RX pin: board.D9 TX pin: board.RTL_RXD
RX pin: board.RTL_DIR TX pin: board.RTL_RXD
RX pin: board.RTL_PWR TX pin: board.RTL_RXD
RX pin: board.RTL_TXD TX pin: board.RTL_RXD
RX pin: board.SD_DET TX pin: board.RTL_RXD
RX pin: board.SWITCH_UP TX pin: board.RTL_RXD
RX pin: board.D10 TX pin: board.RTL_TXD
RX pin: board.I2S_LRCLK TX pin: board.RTL_TXD
RX pin: board.I2S_SDOUT TX pin: board.RTL_TXD
RX pin: board.RTL_DIR TX pin: board.RTL_TXD
RX pin: board.RTL_PWR TX pin: board.RTL_TXD
RX pin: board.RTL_RXD TX pin: board.RTL_TXD
RX pin: board.SD_DET TX pin: board.RTL_TXD
RX pin: board.SWITCH_UP TX pin: board.RTL_TXD
RX pin: board.A1 TX pin: board.RX
RX pin: board.D13 TX pin: board.RX
RX pin: board.GYROSCOPE_SCL TX pin: board.RX
RX pin: board.TX TX pin: board.RX
RX pin: board.BUZZER TX pin: board.SD_MOSI
RX pin: board.SD_CS TX pin: board.SD_MOSI
RX pin: board.SD_MISO TX pin: board.SD_MOSI
RX pin: board.SD_SCK TX pin: board.SD_MOSI
RX pin: board.SWITCH_DOWN TX pin: board.SD_MOSI
RX pin: board.SWITCH_PRESS TX pin: board.SD_MOSI
RX pin: board.A2 TX pin: board.SD_SCK
RX pin: board.A8 TX pin: board.SD_SCK
RX pin: board.DAC1 TX pin: board.SD_SCK
RX pin: board.RTL_CLK TX pin: board.SD_SCK
RX pin: board.RTL_CS TX pin: board.SD_SCK
RX pin: board.RTL_MISO TX pin: board.SD_SCK
RX pin: board.SD_CS TX pin: board.SD_SCK
RX pin: board.SD_MISO TX pin: board.SD_SCK
RX pin: board.SD_MOSI TX pin: board.SD_SCK
RX pin: board.BUZZER TX pin: board.SWITCH_RIGHT
RX pin: board.SD_CS TX pin: board.SWITCH_RIGHT
RX pin: board.SD_MISO TX pin: board.SWITCH_RIGHT
RX pin: board.SD_SCK TX pin: board.SWITCH_RIGHT
RX pin: board.SWITCH_DOWN TX pin: board.SWITCH_RIGHT
RX pin: board.SWITCH_PRESS TX pin: board.SWITCH_RIGHT
RX pin: board.D13 TX pin: board.TX
RX pin: board.GYROSCOPE_SDA TX pin: board.TX
RX pin: board.RTL_CS TX pin: board.TX
RX pin: board.RTL_MISO TX pin: board.TX
RX pin: board.RTL_MOSI TX pin: board.TX
RX pin: board.RX TX pin: board.TX