Monday, January 21, 2013

Raspberry Pi Sending SMS Using Python


I connect my USB modem huawei E226 modem that working with  Raspberry Pi, and not all usb modem compatible with linux you must use usb modem that compatible to pi , and i am using ArchLinux

use lsusb and dmesg to know your modem working , install python in this case i use python2, because python3 not compatible for many application

your usb modem will installed at /dev/ttyUSB0



install python2 python2-serial
pacman -S python2 pyhton2-serial

because default python in arch linux is python3 you must make link to make python2 is default

ln /usr/bin/python2 /usr/bin/python


now you can sending sms using python script






No comments:

Post a Comment