Comments (3)
It would be useful to know how your modem responds to the ATD command.
Note that the modem code expects an OK from the modem, which you may not get until the called party answers, or alternatively an ERROR if something goes wrong. If it sees neither of those within the time you set in your context then you will get the deadline exceeded you are seeing.
How does your modem respond if you perform the ATD manually?
from modem.
Hm
If i send symbol (;) in end, that's all work.
ATD+XXXXXXXXX;
OK
from modem.
Depends what you are trying to do.
With the ";" the modem interprets the request as a voice call and immediately returns an OK and returns to command mode. So it behaves like a standard command. You then monitor the call state with repeated AT+CLCC calls, and when the call ends use AT+CEER to check the failure reason. And you use can use ATH to end the call from your end.
The audio for the voice call is streamed through another serial port and so is independent of the command path that my modem driver is managing. That is assuming your modem supports the audio stream.
Without the trailing ";" the modem interprets the ATD request as being for a data call, and the handshake is unlike other commands - it completes with either CONNECT when the other end answers, or BUSY, NO ANSWER, NO CARRIER or NO DIALTONE, depending the underlying failure cause. I've just pushed a patch that should handle that handshake, in case that is what you want, though I haven't tested it with actual hardware yet. Even if the handshake works, the modem will then be in data mode, and I haven't updated the driver to deal with that yet - or even thought about how to handle it.
from modem.
Related Issues (14)
- context deadline exceeded HOT 1
- SMS Recipet Request HOT 1
- How to get SMS metadata HOT 4
- How to send USSD and wait for response HOT 5
- Can't connect to HUAWEI modem HOT 2
- Unable get ERROR from USSD HOT 5
- How to install ?
- [Question] Commands without 'AT' prefix HOT 2
- Data communication HOT 1
- [BUG] AT+COPS reset HOT 3
- 2023/05/01 15:40:55 waitsms.go:75: CMS Error: unknown HOT 8
- [BUG] +CME ERROR: 58 HOT 2
- Handling URCs with binary data HOT 1
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 modem.