Sms from Android

To receive or send an sms plug phone (e.g. samsung galaxy s2, old phones as nokia supporting enough AT commands should also understand it) via USB to computer and check that a file as /dev/ttyACM0 is created. Then open terminal program as gtkterm and connect it 9600baud.

To receive sms: Type in the following (replace nnn with your phone number) after AT+CNMI=1,2,0,0,0 wait for an incoming sms.

AT
OK
AT+CMGF=1
OK
AT+CNMI=1,2,0,0,0
OK

+CMT: "+4179nnnn",,"15/06/12,17:31:13+08"
This is a sms

To send CTRL+Z (ASCII char 26) will terminate the sms text and sends it out

AT
OK
AT+CMGF=1
OK
AT+CMGS="+4179nnnn"
> This sms goes out

+CMGS: 6

OK


Linurs startpage