Closed SnkMtn000 closed 1 year ago
Added markdown code fence for readability.
HI @SnkMtn000, sorry you're having problems.
I don't have a pico, and am on the road at the moment, so this is a theoretical response.
Your description sounds like a problem with SPI pins and GPIOs conflicting with the pins used for Serial1
. It could be due to the board support package -- there's a lot of "automatic" stuff that can cause confusion.
I would try calling the LMIC initialization code and not transmit data, see if that blocks Serial1
operation.
If it does, I'd go through the LMIC init code and copy pieces to the test sketch, until I find the thing that breaks Serial1
.
If it doesn't, I'd document exactly what has to be done to break Serial1
(what LMIC routines need to be called), again using a simplified, small test sketch.
Best regards, --Terry
Was able to figure it out. Thanks for your suggestions. Turns out code is working as designed. My GPS battery backup was very discharged causing a very long wait for an initial satellite lock.
Describe your question or issue GPS is not being read on Serial1 when using the lmic and hal libraries. Is something blocking serial1?
Please give a clear and concise description of the problem you're facing and what you'd like help with.
Hooked up a Oled, Adafruit HopeRF 95 915 MHz on SPI0, and TinyGPSPlus neo6 on Serial1 on a bread board using code from the example ttn-otta.ino.
Code works great with my breadboard wiring if only reading GPS module. Adding the Lorawan code it fails to read serial1 with the addition of the LMIC code. Despite the GPS not being read it it shows up on the things network and delivers a dummy payload correctly.
Environment