richonguzman / LoRa_APRS_Tracker

LoRa APRS Tracker with Tx and Rx capabilities, Messages, Wx, Winlink and more...
MIT License
217 stars 59 forks source link

Heltec Wireless Tracker looping on startup #171

Open pdevlin13 opened 12 hours ago

pdevlin13 commented 12 hours ago

Hi Ricardo As discussed on the SOTA forum, I have opened the looping as an issue, so that I can share the attached video of the looping. The video only show one loop but it will continue looping for up to 2 minutes before stabilising. It will randomly startup without any issue.

I have just noticed on the loop the second time 202 appears in place of the version, just an observation.

I have iPhone BLE enabled, I think someone suggested it only happened in this Bluetooth mode but I haven’t tried other BT configs yet. Happy to do any testing

Paul MW0PDV

https://github.com/user-attachments/assets/56958d9e-1829-44e3-a0dd-dfae75e9fccd

richonguzman commented 12 hours ago

Great let's find out what's going on with this:

1) let's try it with latest firmware 2.0.2 please 2) change only the callsigns and nothing else on the webUI 3) select on tracker menu the freq you need (third one I assume) this will be saved on the internal memory and will start with it all the next times it boots

pdevlin13 commented 12 hours ago

ok, fresh install as below, tracker starts up fine. Reflash and enable iPhone BLE tracker starts looping.

Great let's find out what's going on with this:

  1. let's try it with latest firmware 2.0.2 please
  2. change only the callsigns and nothing else on the webUI
  3. select on tracker menu the freq you need (third one I assume) this will be saved on the internal memory and will start with it all the next times it boots
richonguzman commented 11 hours ago

did you change the frequency at all? anything besides only CALLSIGN?

is the callsign saved with any "white/black" space behind the SSID?

pdevlin13 commented 10 hours ago

I only changed callsign, and this works no looping. If I only change callsign and enable iphone BLE it starts looping.

I am trying to do some crude diagnostics, and so far established it returns from the POWER_Utils::batteryManager() call at line 170ish in Lora_APRS_Tracker_main before looping.

Screenshot 2024-10-12 151444
pdevlin13 commented 10 hours ago

The terminal output from the testing mentioned above

Screenshot 2024-10-12 152006
richonguzman commented 10 hours ago

so is this inside "obtainBatteryInfo()" ???

which board have you? V1 or V1.1?

pdevlin13 commented 10 hours ago

so is this inside "obtainBatteryInfo()" ???

No its inside BatteryManager

Screenshot 2024-10-12 152951

I will check version, just neet to open the enclosure.

richonguzman commented 10 hours ago

so is this inside "obtainBatteryInfo()" ???

No its inside BatteryManager

Screenshot 2024-10-12 152951

I will check version, just neet to open the enclosure.

yes, but "obtainBatteryInfo()" is the one called there... so it needs to check inside it to know what is not being right

it checks board has ADC_CTRL (which heltecs do have) and also BATTERY_PIN

pdevlin13 commented 10 hours ago

Oh yes sorry just notice the call in the if statement. My version is 1.1

pdevlin13 commented 9 hours ago

Ok, this is a bit strange, for each loop it always seems completes the setup() function but only sometimes gets as far a calling POWER_Utils::batteryManager() Until it eventually it starts up. Hope this helps :-)

Paul

richonguzman commented 8 hours ago

will have to change the way this is checked then, give me a few days to get with a test code