Giter Site home page Giter Site logo

Comments (3)

warthog618 avatar warthog618 commented on May 20, 2024

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.

googolgl avatar googolgl commented on May 20, 2024

Hm
If i send symbol (;) in end, that's all work.

ATD+XXXXXXXXX;
OK

from modem.

warthog618 avatar warthog618 commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.