vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.91k stars 709 forks source link

TinyGSM not catching DST URCs on SIM7000G? #682

Open Humancell opened 1 year ago

Humancell commented 1 year ago

[X] I have read the Troubleshooting section of the ReadMe

What type of issues is this?

[ ] Request to support a new module

[ ] Bug or problem compiling the library [X] Bug or issue with library functionality (ie, sending data over TCP/IP) [ ] Question or request for help

What are you working with?

Modem: SIM7000G on a Lilygo T-SIM7000G - Firmware: 1529B03SIM7000G Main processor board: ESP32 TinyGSM version: 0.11.5 Code: https://github.com/Wovyn/lilygo-t-sim7000g-asset-tracker-example

Scenario, steps to reproduce

Everything is working great when sitting in one place. When I begin to move (e.g. I take my tracker out in a vehicle or on my bike) occasionally line #494:

  String imsi = modem.getIMSI();
  DBG("IMSI:", imsi);

is returning "DST: 1" instead of the IMSI.

From the SIMCom documentation this is a valid URC that is sometimes generated by the modem. In my test yesterday sampling once every 2 minutes on a bike ride, this incorrect value of "DST: 1" was returned 5 times randomly during that hour ride.

Expected result

I was expecting to always get the IMSI value correctly.

Actual result

I don't have a log since I was posting to a cloud platform, but the IMSI value was posted as "DST: 1" on 5 occasions during the one hour test.

Debug and AT command log

I do not currently have an easy way to capture the log when riding my bike as I can't carry my laptop also. :-(