Hi,
I’m using the Tracker software from https://github.com/SodaqMoja/SodaqOne-UniversalTracker. I have a Sodaq ONE board V1. Running the code is no problem, the GPS finds it’s coordinates and transmits them via LoRa to my backend. So far so good, but connecting a battery and running the code without USB connected will result in a state where the code hangs. It hangs until a timeout is reached and then restarts. Debugging the code using the LEDs gave me the line where it hangs: printBootUpMessage(SerialUSB); (line 187, in the main page, in the setup)
Debugging it further:
printBootUpMessage(SerialUSB); --> getHWEUI(); --> initLora(true); --> if (LoRaBee.initABP(LORA_STREAM, devAddr, appSKey, nwkSKey, params.getIsAdrOn())) --> resetDevice() --> if (expectString(STR_DEVICE_TYPE_RN)) --> if (readLn() > 0) --> int len = this->loraStream->readBytesUntil(’\n’, buffer + start, size); HERE IT TIMES OUT…
It seems the code cannot retreive the HWEUI from the LoRa unit.
Eventually I commented out the printBootUpMessage and tried running the code without retrieval of HWEUI. This let to another timeout:
params.read(); --> if (_header != DEFAULT_HEADER || _crc16 != calcCRC16) {reset();} --> if (configResetCallback) {configResetCallback();} HERE IT TIMES OUT…
This function configResetCallback() is unclear to me from a code perspective (function with pointer which gets set to a value to do what?), but the name suggests just a callback of the resetting of the configuration.
Anyway, I cannot get the code run without USB connected. Who can help me?