Comments (5)
It's not possible to set on_read_cb
from C API yet.
As a workaround you can check what's done in the mdoem-console
example. It implements a generic command that takes a pattern matching string as an argument, so you can wait for a ready signal, or some specific string (such as +CLIP:
in your case), e.g.
esp> cmd -n "" -t 50000 -p "SIM"
I (442984) modem_console: Sending command with timeout 50000
I (459154) modem_console:
RDY
+CME ERROR: SIM not inserted
esp>
Is it better for you to be able to set the actual callback and check the results manually? Or alternatively extend the existing at_command()
to allow for the pattern matching in replies?
The first option is more universal, but wouldn't support sending any other AT
commands while it's active (Unless you use one more virtual terminal)
from esp-protocols.
Thanks, will try to implement a solution...
from esp-protocols.
I have tried to send empty command:
W (115445) INET: Waiting Caller ID failed, retry...
W (125445) INET: Waiting Caller ID failed, retry...
W (135445) INET: Waiting Caller ID failed, retry...
W (145445) INET: Waiting Caller ID failed, retry...
W (148515) command_lib: RING found
E (148515) ESP_MODEM_THROW: esp_modem_dte.cpp:60 ERROR
abort() was called at PC 0x400e295e on core 0
Backtrace:0x40081c5a:0x3ffb12e00x40086901:0x3ffb1300 0x4008e31e:0x3ffb1320 0x400e295e:0x3ffb1390 0x400e2643:0x3ffb14c0 0x400e8aec:0x3ffb14f0 0x400ded76:0x3ffb1550 0x400dc9f9:0x3ffb1570 0x400d875d:0x3ffb15c0 0x400d75cb:0x3ffb1620 0x4013ec37:0x3ffb1650 0x4008987d:0x3ffb1670
from esp-protocols.
E (148515) ESP_MODEM_THROW: esp_modem_dte.cpp:60 ERROR
We had a similar issue once. It's been fixed in a871473
Could you please check that your version includes this commit?
from esp-protocols.
this bug was gone accidently, sorry
from esp-protocols.
Related Issues (20)
- 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
- esp-netif_lwip-ppp: Connection lost, Modem Disconnect from PPP Server (IDFGH-12618) HOT 5
- Choosing The Right Mode For SIMCOM or Any Modem... (AT or DialUP) (IDFGH-12638) HOT 10
- problems with modem_tcp_client and Telit LE910Cx modem (IDFGH-12643) HOT 1
- esp_mqtt_cxx not set last will (IDFGH-12648)
- Kconfig in modem_example limits the UART pins till 31 - should be higher to support s3 (IDFGH-12700) HOT 1
- LwIP PPP connection close and no authentication (IDFGH-12720) HOT 3
- esp_modem freezes when flow control is enabled and module is unresponsive (IDFGH-12739) HOT 1
- C++ example please (IDFGH-12752) HOT 2
- EPPP Reverse link to provide Access Point (IDFGH-12759) HOT 12
- esp_wifi_remote: key-pair generated by generate_test_certs.py not work in example (IDFGH-12801) HOT 10
- Fix code scanning alert - expected '(' for function-style cast or type construction [clang-diagnostic-error] (IDFGH-12824)
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.