Closed StarOfSlytherin closed 1 year ago
@StarOfSlytherin Have you tried to extend the timeout a bit? the device might reply in 100ms, but the real terminal is shared with network virtual terminal, so might be locked for receving/sending network packets. I think a little longer response in CMUX compared to the plain DATA mode is somewhat expected.
I've tried it with 9000ms too as per the datasheet (Max response time) and it has not worked. It's a bit weird as functions like esp_modem_get_signal_quality
or esp_modem_at(dce, "AT+CPMUTEMP", at_response, 100);
work fine. AT+CPSI?
does not work most of the time. By any chance is it because of the response length?
Edit: Played around with the timing and it works now.
esp_modem_at()
is throwingESP_ERR_TIMEOUT
when used with CMUX.Here's my code:
Output:
When I check the SIM7600's Tx pin I can see the response to the AT Command: