0

I have settled up my internet connection as described at it's a clean machine blog . I've settled everything up. However, my ISP informs me by an SMS that I'm getting close to the monthly FUP, and I have no other way how to get this information. Is it possible to receiver SMS messages on my Huawei E220 dongle? I'm then able to set up a cron system that would send me the SMS messages on my e-mail.

1 Answer 1

4

you might be able to get your SMS messages by outputting some AT commands to your modem:

$ echo 'AT+CMGF=1' > /dev/ttyUSB1
$ echo 'AT+CMGL="ALL"' > /dev/ttyUSB1

and view the results in another window, where you catch the output using:

$ cat /dev/ttyUSB1

(source)

4
  • ok, I'll try. One more question: There're too tty's for this device, ttyUSB0 and ttyUSB1 -- why is that? I obviously use ttyUSB0 for ISP, does it mean I have to use the other one for SMS? Is there any difference between them? Thx!
    – yo'
    May 16, 2013 at 9:57
  • Seems like the /dev/ttyUSB0 is the interface to connect to the mobile phone provider, and the /dev/ttyUSB1 is the interface in which you can issue AT commands to and read the response back from.
    – lenik
    May 16, 2013 at 10:24
  • As far as I can tell this deletes the messages from the modem, so be sure you have a working terminal, e.g. make sure AT produces an OK.
    – Lenar Hoyt
    Aug 1, 2019 at 8:23
  • @lenik On my Huawei modem, it is actually reverse. I can only establish a PPP connection via /dev/ttyUSB1 and can use /dev/ttyUSB0 for anything else, e.g. reading SMS, statistics and connection parameters.
    – Lenar Hoyt
    Aug 1, 2019 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.