LilyGO T-SIM7000G does not work with esp_modem
Posted: Tue May 31, 2022 9:59 am
Dear all,
I am trying to use LilyGO T-SIM7000G with ESP-IDF 4.4.1 and latest esp_modem (it works with Arduino and TinyGSM library but is not reliable, that's why I am trying to move to ESP-IDF and esp_modem).
With SIM7000G esp_modem is not receiving reply to its `ATE0` command. Same code is working nicely with LilyGo T-CALL (based on SIM800), SIM800 and SIM7000G are similar and ESP32/Modem parts of the boards are the same. Same code is running without any modification under Arduino/TinyGSM.
I have tried many code for SIM7000G poweron/reset, with no luck with SIM7000G while OK with SIM800. I have extended delays as SIM7000G is initializing slower than SIM800.
I have set up a GITHUB repo with minimal code https://github.com/U03/esp_modem_test, works with SIM800 and not with SIM7000G.
In `DTE::command` it can be seen that `read_callback` is never called, would mean that either command is not received by SIM7000G or reply does not reach back ESP32.
This is driving me nuts anybody has any idea? Thanks in advance.
With SIM7000G leads to:
With SIM800 works fine:
I am trying to use LilyGO T-SIM7000G with ESP-IDF 4.4.1 and latest esp_modem (it works with Arduino and TinyGSM library but is not reliable, that's why I am trying to move to ESP-IDF and esp_modem).
With SIM7000G esp_modem is not receiving reply to its `ATE0` command. Same code is working nicely with LilyGo T-CALL (based on SIM800), SIM800 and SIM7000G are similar and ESP32/Modem parts of the boards are the same. Same code is running without any modification under Arduino/TinyGSM.
I have tried many code for SIM7000G poweron/reset, with no luck with SIM7000G while OK with SIM800. I have extended delays as SIM7000G is initializing slower than SIM800.
I have set up a GITHUB repo with minimal code https://github.com/U03/esp_modem_test, works with SIM800 and not with SIM7000G.
In `DTE::command` it can be seen that `read_callback` is never called, would mean that either command is not received by SIM7000G or reply does not reach back ESP32.
This is driving me nuts anybody has any idea? Thanks in advance.
- command_result DTE::command(const std::string &command, got_line_cb got_line, uint32_t time_ms, const char separator)
- {
- ESP_LOGD("TAG", "command 111");
- Scoped<Lock> l(lock);
- ESP_LOGD("TAG", "command 222");
- command_result res = command_result::TIMEOUT;
- ESP_LOGD("TAG", "command 333");
- command_term->set_read_cb([&](uint8_t *data, size_t len) {
- ESP_LOGD("TAG", "command 444");
- if (!data) {
- ESP_LOGD("TAG", "command 555");
- V (21423) command_lib: set_echo
- V (21423) command_lib: generic_command_common
- V (21433) command_lib: generic_command
- D (21433) command_lib: generic_command command ATE0
- D (21433) TAG: command 111
- D (21443) TAG: command 222
- D (21443) TAG: command 333
- V (21434) command_lib: set_echo
- V (21434) command_lib: generic_command_common
- V (21444) command_lib: generic_command
- D (21444) command_lib: generic_command command ATE0
- D (21444) TAG: command 111
- D (21454) TAG: command 222
- D (21454) TAG: command 333
- D (21464) TAG: command 444
- D (21464) TAG: command 555
- D (21464) TAG: command 777
- D (21464) command_lib: Response:
- OK