Closed MartinPatarinski closed 1 year ago
I have a similar bugfix in progress in https://github.com/espressif/esp-protocols/pull/125 fixing a race condition in the DTE command. Could you please try to cherry-pick the fixing commit (https://github.com/espressif/esp-protocols/pull/125/commits/f673106df7fdbdc6073d530e680539fb83288528) to see if it helps.
Although I'm not sure it would, since according to the backtrace it looks like the internal DTE's signal (SignalGroup) is set to nullptr
. Might it be possible that your DTE goes out of scope somewhere and gets destroyed at some point?
I think that the signal set of "PPP_STARTED" causes the issue. I update the code in set ang clear functions like this void SignalGroup::set(uint32_t bits) { if(event_group != NULL) { xEventGroupSetBits(event_group, bits); } else { ESP_LOGE("ESPDRV", "Signal %d set failed. event_group is NULL", bits); } } and got the following log entry E (65111) ESPDRV: Signal 1 set failed. event_group is NULL
Does the GNSS works in PPP mode or only AT? I think not, I guess it is missing changing from PPP to Command mode before retrieving GNSS info. Can you check whether this procedure is being followed?
No, we are using the CMUX mode in order to have the DATA mode(PPP) and the COMMAND mode (AT). Why do you say that GNSS works only in COMMAND mode.. is this documented somewhere that we've missed ?
No, we are using the CMUX mode in order to have the DATA mode(PPP) and the COMMAND mode (AT). Why do you say that GNSS works only in COMMAND mode.. is this documented somewhere that we've missed ?
I was thinking about BG96. In the past, I had to keep switching between command and PPP mode in order to get GNSS positioning and keep network working. So I wasn't aware about the CMUX option. it seems SIM70x has it available, right?
Same as here. @RilabsAutomotive Could you please check if https://github.com/espressif/esp-protocols/commit/a02bf05eed7c96f703958a3a3f52c6234e386ffb fixes your issue?
hi guys. Can i access to diagnostic port of bg96 from esp32?
The issue actually came from a limitation of the SIM7070G from SIMCOM. It cannot currently handle mobile data connection and provide GPS coordinates at the same time. The data line drops when a GPS location is requested. The issue is reported to SIMCOM and they are currently investigating it.
p.s. sorry for the late update
i am working on sim7600e-h try to connect gnss and mqtt using espidf but when gnss is enable automatically mqtt disconnected. pppos connection failed. i dont know why?
Answers checklist.
IDF version.
v5.0-dev-3290-g01d014c42d
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
Custom board with ESP32S3
Power Supply used.
Battery
What is the expected behavior?
I expected that GNSS is started, modem SIM7070G is started and runs normally
What is the actual behavior?
A crash occurs whenever the GNSS is started and trying to get fix status.
Steps to reproduce.
Debug Logs.
More Information.
GNSS is started via set_gnss_power_mode() And then the fix status is checked every 100 ms via get_gnss_information_sim70xx()