Add this blog to your favourites

Sunday, October 31, 2010

Send sms from Huawei E1550 USB MODEM


how to send sms from Huawei E1550 USB MODEM under Linux :D



ubuntu :

from your terminal do the following :

#apt-get install udev udev-extras

#vim
/etc/udev/rules.d/15-huawei-e1550.rules

and add the following

SUBSYSTEM=="usb",
SYSFS{idProduct}=="1446",
SYSFS{idVendor}=="12d1",
RUN+="/lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocd"

after that plug your usb modem after while

and make the those checks :
#lsusb

you would find some thing like this
Bus 002 Device 007: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem

go to /dev/

ls /dev/ttyUSB*

you would find
/dev/ttyUSB0
/dev/ttyUSB1

ok that's great our linux machnie has detected the usb modem :D

let's send some at commands to send sms or make some calls :D

i will use mincom to send some AT Commands

#minicom -s

Serial Device : /dev/ttyUSB0
Bps/Par/Bits : 115200 8N1
Hardware Flow Control : Yes
Software Flow Control : No

AT+CMGF=1 To format SMS as a TEXT message
AT+CSCA="+xxxxx" Set your SMS center's number. Check with your provider.
To send a SMS, the AT command to use is AT+CMGS ..



AT+CMGS="+yyyyy"
> Your SMS text message here ( CTRL+z)

replace +yyyy phone number


Example :

AT+CMGS="0113XXXXX"
> Test Test Test then press (ctrl+z)

+CMGS: 1

OK


cheers

refrences :

http://www.control.com.sg/at_commands_sms.aspx

http://ubuntuforums.org/showpost.php?p=9537867&postcount=4

http://ubuntuforums.org/showthread.php?t=763122