Quote:
Originally Posted by blackhole54
Would you care to reveal why you might want to do such a strange thing?
|
If I send some characters after PPP has established the link, like this:
<wait 2 seconds> +++ <wait 2 seconds>
... then I can issue AT commands to the modem. After that, "
ATO0" will put it back online.
Issuing AT commands (and reading the responses) is useful because the modem itself is aware of certain things -- signal strength (it's wireless), VSWR, and so on. I'd like the Linux box to be aware of them, too, so asking the modem seems logical enough. You can also send SMS messages using AT commands, which would be a nice feature to incorporate.
Unfortunately, the usual
write(fd, txBuf, len) and
read(fd, rxBuf, len) procedures don't even work; they return errors (negative numbers). I can't send the characters I want to, even though I know what the characters I need to send should be. If you know of any way to accomplish this successfully, I would be most grateful for your help.