Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Software crashed with T-Beam-v1.1 #124

Closed
RWehlingEBK opened this issue Sep 25, 2023 · 6 comments
Closed

Software crashed with T-Beam-v1.1 #124

RWehlingEBK opened this issue Sep 25, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@RWehlingEBK
Copy link

Thanks for your work but Software crashed with T-Beam-v1.1
Message from my board:
[INFO][PMU] init done!
[INFO][Main] LoRa APRS Tracker by OE5BPA (Peter Buchegger)
[INFO][Main] Version: 23.36.01
[ERROR][Configuration] Failed to read file, using default configuration.
[INFO][LoRa] Set SPI pins!
[INFO][LoRa] Set LoRa pins!
[INFO][LoRa] frequency: 433775000
[INFO][LoRa] LoRa init done!
[INFO][Main] Smart Beacon is: On
[INFO][Main] setup done...

25.09.2023 18:05:28
Sats: 0 HDOP: 99.99
Next Bcn: ~06:28:15
Bat: 4.13V, 0mA
Smart Beacon: On

Guru Meditation Error: Core 1 panic'ed (IntegerDivideByZero). Exception was unhandled.

Core 1 register dump:
PC : 0x400d54ce PS : 0x00060830 A0 : 0x800e2850 A1 : 0x3ffcbb80
A2 : 0xc0bfcbcc A3 : 0x3ffbdb68 A4 : 0x3f403434 A5 : 0x00000000
A6 : 0x3ffc3ca4 A7 : 0x3ffbdb6c A8 : 0x800d54c8 A9 : 0x3ffcbb60
A10 : 0x3ffc3ca4 A11 : 0x00000000 A12 : 0xfffffc02 A13 : 0x000003fe
A14 : 0x7ff00000 A15 : 0x40590000 SAR : 0x0000001d EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x40092599 LEND : 0x400925a9 LCOUNT : 0xffffffff

@RWehlingEBK RWehlingEBK added the bug Something isn't working label Sep 25, 2023
@RWehlingEBK
Copy link
Author

I found the error in LoRa_APRS_Tracker.cpp at line 363
i set curr_speed to 1 if curr_speed is 0

if(curr_speed==0)  //RW
        curr_speed=1;
txInterval = min(BeaconMan.getCurrentBeaconConfig()->smart_beacon.slow_rate,
                 BeaconMan.getCurrentBeaconConfig()->smart_beacon.fast_speed * BeaconMan.getCurrentBeaconConfig()->smart_beacon.fast_rate / curr_speed) *
             1000;

@DJ1MV
Copy link

DJ1MV commented Oct 30, 2023

Got the same error message and behavior, because I did not upload the configuration file.
All okay afterwards, so please check.

@dilmash
Copy link

dilmash commented Nov 10, 2023

if(curr_speed==0)

I fixed the zerodevide by adding one line after line 354

    if (BeaconMan.getCurrentBeaconConfig()->smart_beacon.active) {
      // Change the Tx internal based on the current speed
      int curr_speed = (int)gps.speed.kmph();
      if (curr_speed == 0) curr_speed=1;    // <==== make sure it's not zero

@peterus
Copy link
Member

peterus commented Nov 25, 2023

I finally checked the source code:

  • this line is just called when you are in smart beaconing mode AND
  • the current speed is lower than the slow_speed option in your configuration.

my advice: please check your configuration! this should not be a firmware bug! If you defined to be in smart beaconing mode, please add the corresponding configuration definitions!

@RWehlingEBK
Copy link
Author

RWehlingEBK commented Nov 25, 2023 via email

@peterus
Copy link
Member

peterus commented Nov 25, 2023

fixed in mainline :)

@peterus peterus closed this as completed Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants