What are the methods to get modem crashdump (fatal log) out in the field?

On both the Monarch 2 (GM02S, LR8.2) and Calliope 2 (GC02S1, LR9.0), automatic crash dump upload is handled by the fault report service, configured with AT+SQNSFAULTREPORT. It is disabled by default, and you must provide your own FTP server because Sequans doesn’t host one.

Command syntax

AT+SQNSFAULTREPORT=<enable>[,<mode>[,<report_url>[,<socket_id>[,<max_to>[,<cnx_to>]]]]]
Parameter Value
enable 1 to enable, 0 to disable (default)
mode 1 (2 is reserved)
report_url FTP URL in the form ftp://user``:password@host:port/path. The limit is 128 characters on Monarch 2 LR8.2 and 256 on Calliope 2 LR9.0.
socket_id Socket channel 0–2 (default 0)
max_to Session timeout, 1–300 s (default 240)
cnx_to Connection timeout, 1–120 s (default 120). It must be lower than max_to.

Example sequence

AT+SQNSFAULTREPORT=1,1,"ftp://<user>:<password>@<ftp_host>:21/<path>",0,200,120
OK
AT+CFUN=1
OK

After a crash (^EXIT: Fatal error followed by +SYSSTART), the dump is saved to flash. The next time the module attaches to the network, it uploads two files:

  • necrolog0_<IMEI>_<date>_<time> (or necrolog1_… if there is a second one), which is the fatal error / reset cause file
  • crashdump_<IMEI>_<date>_<time>, which is the crash dump itself

Things to keep in mind

  • If your username or password contains @, / or :, escape them as %40, %2F or %3A.
  • A failed upload is retried three times before the module gives up.
  • The module stores only one crash dump. If it doesn’t attach successfully after two crashes, the oldest dump is erased at the next crash.
  • Pick a socket_id that your application isn’t already using.
  • You can check the current configuration with AT+SQNSFAULTREPORT?. The query echoes back the URL, so be careful about sharing that output or logs since it contains your FTP credentials.
  • After you collect a dump, send it to Sequans support for analysis.

If you’d rather not use an FTP server, Monarch 2 also lets you retrieve the dump manually. AT+SQNGETCDUMP? checks whether a dump is available and returns its size, AT+SQNGETCDUMP downloads it, and AT+SQNRMCDUMP deletes it afterward. You can also pull /fs/crashdump with the DM Light tool.