Closed jgus closed 11 months ago
@jgus The issue you referenced was fixed for SIM800 device which apparently send additional messages, that we misinterpreted as CMUX close. It's probably another failure you're seeing, maybe related to your device. I think I can get one SIM7000 and test the CMUX mode.
Anything I can add to help debug this issue, please let me know.
I can only suggest enabling verbose logging and sharing results, but see that the V
level is included above, but don't see much. So unless you set the log level specifically via runtime API, we can assume that the transition fails early, when we're trying to setup virtual control terminal. In that case I would try to increase a delay between setting the CMUX mode by AT command and the actual CMUX protocol communication:
Could you please increase the delay to say 500ms?
Another way to try to debug it is to run the console example and use the manual CMUX commands. We've recently introduced commands like CMUX1
, CMUX2
, CMUX3
... CMUX5
. So you can try to configure CMUX mode via AT command:
cmd AT+CMUX=0
and then set the manual CMUX transition
setmode CMUX1
I've tried to test CMUX mode with SIM7000 and couldn't get it to work, it replies with OK
on AT+CMUX
. but doesn't seem to switch to the multiplexed mode and doesn't respond to CMUX command any more.
I'll add a brief documentation about the known issues of certain devices, as we've already experienced some problems and limitations with some modems.
The note about this device has been added to the docs:
I'm unable to get the
simple_cmux_client
example (or my own code) working in CMUX mode.Command and data modes work fine (both in examples and in my own code) but CMUX mode refuses to work.
My issue looks similar to #140, but where that appears to be resolved, I'm seeing this issue in the latest master branch.
I'm using ESP-IDF v5.0, and the latest master branch (457f8335bb876b8af80a65b096e5381f49f29878).
My target device is a LilyGO T-SIM7000G 20200415 (https://github.com/Xinyuan-LilyGO/LilyGO-T-SIM7000G/blob/master/Historical/SIM7000G_20200415/README.MD) with a SIM7000G modem and an ESP-WROVER-E processor. I've set pins appropriately for my device (TX 27, RX 26, RTS & CTS -1, no flow control) and I've verified I can communicate with the modem. Command and data modes work fine and I can successfully communicate over the internet in data mode.
When running the CMUX sample (or trying myself in my own code) the call to
dce->set_mode(esp_modem::modem_mode::CMUX_MODE)
fails.Anything I can add to help debug this issue, please let me know.
Verbose log follows: