Send arbitrary commands to modem for info
Posted
by
mydoghasworms
on Ask Ubuntu
See other posts from Ask Ubuntu
or by mydoghasworms
Published on 2012-03-23T09:50:09Z
Indexed on
2012/03/24
5:39 UTC
Read the original article
Hit count: 439
I have a USB 3G data card and modem. According to the supplier, to check the data balance on the account, I must dial a number like *89#
(or whatever) from the handset.
The device appears as a ppp0 interface in my network devices.
How does one go about issuing commands to the modem to send the commands and receive back the information?
UPDATE: OK, I found some help here: http://www.linuxquestions.org/questions/linux-hardware-18/sending-at-commands-to-a-sms-modem-372445/, but firstly, there are 3 ttyUSB devices on my system, and I assume that one of them is the 3G modem, but how can I tell? Secondly, trying to echo something to two of them says that the device is busy, which stands to reason, because I am using it to connect to the internet.
Some help, please?
© Ask Ubuntu or respective owner