Comments (9)
SIMCOM support explained that CMUX is entered only once after start-up
Does that mean that your device doesn't support runtime exit of CMUX?
I'll try to think about how we can extend the interface and provide better control over these virtual terminals.
from esp-protocols.
from esp-protocols.
other Question:
is there a way to pro-actively shut down the DataMode (PPP Session) on one Channel without leaving CMUX, and again enter Data mode later ?
from esp-protocols.
This issue is also observed on our side. We do the following steps:
Enter Command mode
Enter CMux mode and and connect to internet successfully
Simulate disconnection event
Re-Enter command mode
Enter Data Mode and and connect to internet successfully
send AT command => does not work any more. Seems like the port is used for Data only instead of AT commands
So after we enter CMUX mode, we need to have control over the 2 ports in order to be able to switch between Command and Data mode
from esp-protocols.
That was the original design, but was simplified in f3ff98b to automatically maintain DATA mode in one virtual terminal when in CMUX. I would like to provide more control of the individual terminals in CMUX, but that would complicate the API. I think the main reason for using this auto CMUX mode was, that for the devices I tested seamlessly exited (all possible) data mode(s) when closing CMUX mode.
This issue is also observed on our side. We do the following steps:
- Enter Command mode
- Enter CMux mode and and connect to internet successfully
- Simulate disconnection event
- Re-Enter command mode
- Enter Data Mode and and connect to internet successfully
@RilabsAutomotive about the step 5)
: Why entering Data mode here, if you wanted to use AT commands? Would it work if you enter CMUX
mode?
from esp-protocols.
Right, so the re-entering in Data mode in step 5, we tried in order to retrigger the PPP to establish and authenticate.
SIMCOM support explained that CMUX is entered only once after start-up to create the virtual ports. Then we shall only switch between Command and Data mode in order to re-establish connection via PPP.
p.s. we tested that indeed enterring second time in CMUX fails. We receive "NO CARRIER" from SIMCOM at AT command ATD
p.s2. we tested also that if we enter Data mode the second time, the PPP connection is established and we receive IP Event and re-connect succefully. However, after that AT commands do not work and we can't control the SIMCOM.
from esp-protocols.
SIMCOM support explained that CMUX is entered only once after start-up
Does that mean that your device doesn't support runtime exit of CMUX?
exit was possible, but re-Enter not.
I'll try to think about how we can extend the interface and provide better control over these virtual terminals.
from esp-protocols.
also the Topic is: if a PPPos Session on Data terminates, the Channel switch to command. (see initial Post above)
from esp-protocols.
also the Topic is: if a PPPos Session on Data terminates, the Channel switch to command. (see initial Post above)
Good point, thanks! Will have to do something about re-entering the DATA mode if it spontaneously exits. On my devices it's usually enough to transition CMUX
-> CMD
and back CMD
-> CMUX
(the first transition assures that the PPPoS graciously shutdowns on these devices)
from esp-protocols.
Related Issues (20)
- Feature Request: Full Response from ESP32 AT SIM Commands (IDFGH-11834)
- ESP_MODEM_MODE_COMMAND fires IP_EVENT_PPP_LOST_IP only after 120 seconds (IDFGH-11871) HOT 4
- OTA fails due to many "HW FIFO Overflows" (IDFGH-11892) HOT 2
- set APN after esp_modem_new_dev() is called? (IDFGH-11898) HOT 2
- Broken link (IDFGH-11903) HOT 1
- How should modem disconnects/reconnects be handled in unstable connections? (IDFGH-11995) HOT 7
- Integrate UART_WAKEUP as part of the esp modem (IDFGH-12062) HOT 7
- Compatibility of Simple CMUX Client Library with CAVLI C16QS Modem (IDFGH-12078) HOT 19
- IPV6 for PDP Context (IDFGH-12084) HOT 2
- FTP client to send and receive files (PACMAN-797) (IDFGH-12110) HOT 3
- [BUG] Websocket Target when uri "ws://echo.websocket.org" (IDFGH-12192) HOT 2
- When using esp_modem components, cdc_acm: Incorrect number of bytes transferred error occasionally occurs after networking to the Internet (IDFGH-12227) HOT 1
- [BUG] mDNS stops working with heavy UDP load (IDFGH-12307) HOT 2
- mDNS results in esp_netif_lwip log spam (IDFGH-12320) HOT 1
- Freezing of the ESP, triggering the WDT! (ESP-MODEM) (IDFGH-12332) HOT 3
- Response Issue in CMUX Mode (IDFGH-12431) HOT 15
- little help in getting esp_modem and LiliGo-TSIM7080-S3 to work (IDFGH-12454) HOT 3
- esp-modem next step : ppp auth ? (IDFGH-12496) HOT 5
- esp-modem: AT command response truncated sometimes when in CMUX mode (IDFGH-12526) HOT 3
- mdns: ethernet link flap doesn't restart mdns if DHCP in use. (IDFGH-12563) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-protocols.