Skip to content

The program always crashes during its operation. #214

@keeshow

Description

@keeshow

my station is operating in the cups mode, connected to TTN, on the EU868 frequency band. The node sends confirm uplink information, and the server responds with ack. It sends this every 15 seconds.
During the process of sending and receiving, I always encounter problems that cause the program to crash, and it keeps reporting these errors continuously.The specific error message is as follows

Jan 23 13:51:23 T113-lorawanopen station[1911]: 2026-01-23 05:51:23.140 [S2E:VERB] RX 868.3MHz DR5 SF7/BW125 snr=10.2 rssi=-92 xtime=0xF600014D47D535 - updf mhdr=80 DevAddr=260DA0F5 FCtrl=80 FCnt=1596 FOpts=[] 0CD46187 mic=-564634422 (16 bytes)
Jan 23 13:51:24 T113-lorawanopen station[1911]: 2026-01-23 05:51:23.831 [S2E:DEBU] ::1 diid=22 [ant#0] - next TX start ahead by 4s301ms (05:51:28.132539)
Jan 23 13:51:28 T113-lorawanopen station[1911]: 2026-01-23 05:51:27.932 [S2E:VERB] ::1 diid=22 [ant#0] - starting TX in 199ms881us: 868.3MHz 16.0dBm ant#0(0) DR5 SF7/BW125 frame=60F5A00D26A0AF017F9EB8BC (12 bytes)
Jan 23 13:51:28 T113-lorawanopen station[1911]: 2026-01-23 05:51:28.232 [S2E:DEBU] Tx done diid=22
Jan 23 13:51:28 T113-lorawanopen station[1911]: 2026-01-23 05:51:28.232 [S2E:INFO] TX ::1 diid=22 [ant#0] - dntxed: 868.3MHz 16.0dBm ant#0(0) DR5 SF7/BW125 frame=60F5A00D26A0AF017F9EB8BC (12 bytes)
Jan 23 13:51:33 T113-lorawanopen station[1911]: 2026-01-23 05:51:33.554 [SYN:INFO] MCU/SX130X drift stats: min: +0.0ppm  q50: +0.0ppm  q80: +0.0ppm  max: +0.0ppm - threshold q90: +0.0ppm
Jan 23 13:51:33 T113-lorawanopen station[1911]: 2026-01-23 05:51:33.554 [SYN:INFO] Mean MCU drift vs SX130X#0: 0.0ppm
Jan 23 13:51:38 T113-lorawanopen station[1911]: 2026-01-23 05:51:38.148 [S2E:VERB] RX 867.9MHz DR5 SF7/BW125 snr=9.5 rssi=-97 xtime=0xF600015E2CD159 - updf mhdr=80 DevAddr=260DA0F5 FCtrl=80 FCnt=1597 FOpts=[] 0C2015DA mic=661557346 (16 bytes)
Jan 23 13:51:39 T113-lorawanopen station[1911]: 2026-01-23 05:51:38.836 [S2E:DEBU] ::1 diid=23 [ant#0] - next TX start ahead by 4s302ms (05:51:43.139190)
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:42.939 [S2E:VERB] ::1 diid=23 [ant#0] - starting TX in 199ms878us: 867.9MHz 16.0dBm ant#0(0) DR5 SF7/BW125 frame=60F5A00D26A0B001A972FD6B (12 bytes)
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.372 [HAL:ERRO] [lgw_mem_rb:1418] COM ERROR DURING REGISTER BURST READ
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.372 [HAL:ERRO] [rx_buffer_fetch:160] Failed to read RX buffer, SPI error
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.372 [HAL:ERRO] [sx1302_fetch:1882] Failed to fetch RX buffer
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.372 [HAL:ERRO] [lgw_receive:1280] failed to fetch packets from SX1302
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.372 [RAL:ERRO] lgw_receive error: -1
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.372 [S2E:DEBU] Tx done diid=23
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.372 [S2E:INFO] TX ::1 diid=23 [ant#0] - dntxed: 867.9MHz 16.0dBm ant#0(0) DR5 SF7/BW125 frame=60F5A00D26A0B001A972FD6B (12 bytes)
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.383 [HAL:ERRO] [lgw_receive:1319] fatal parsing error on packet 0, aborting...
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.383 [RAL:ERRO] lgw_receive error: -1
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.394 [HAL:ERRO] [lgw_receive:1319] fatal parsing error on packet 0, aborting...
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.394 [RAL:ERRO] lgw_receive error: -1
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.405 [HAL:ERRO] [lgw_receive:1319] fatal parsing error on packet 0, aborting...
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.405 [RAL:ERRO] lgw_receive error: -1
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.416 [HAL:ERRO] [lgw_receive:1319] fatal parsing error on packet 0, aborting...
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.416 [RAL:ERRO] lgw_receive error: -1
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.426 [HAL:ERRO] [lgw_receive:1319] fatal parsing error on packet 0, aborting...
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.426 [RAL:ERRO] lgw_receive error: -1
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.437 [HAL:ERRO] [lgw_receive:1319] fatal parsing error on packet 0, aborting...
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.437 [RAL:ERRO] lgw_receive error: -1
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.503 [HAL:ERRO] [lgw_receive:1319] fatal parsing error on packet 0, aborting...
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.503 [RAL:ERRO] lgw_receive error: -1
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.563 [HAL:ERRO] [lgw_receive:1319] fatal parsing error on packet 0, aborting...
Jan 23 13:51:43 T113-lorawanopen station[1911]: 2026-01-23 05:51:43.563 [RAL:ERRO] lgw_receive error: -1
......

Before this issue occurred, I encountered the "radio is not emitting frame" problem and I resolved it by modifying the TX_AIM_GAP and TXCHECK_FUDGE parameters. After the modification, the probability of sending failure has been significantly reduced. It seems to be effective. But later, there was a problem of program crash.
Is there a solution to this program crashing issue, or is it because I modified the parameters?
Below is the partial configuration of my station.conf file:

    "station_conf": {
        "radio_init": "rinit.sh",
        "RADIO_INIT_WAIT": "5s",
        "RX_POLL_INTV": "10ms",
        "TC_TIMEOUT": "360s",
        "TX_AIM_GAP": "200ms",
        "TXCHECK_FUDGE": "100ms",
        "log_file":  "stderr",   /* "station.log" */
        "log_level": "DEBUG",  /* XDEBUG,DEBUG,VERBOSE,INFO,NOTICE,WARNING,ERROR,CRITICAL */
        "log_size":  10000000,
        "log_rotate":  3
    }

Could someone please help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions