SMS Python USB Modem Web Service
- Using Apache web server with CGI execution and MongoDB
- Make sure .py files is executable : a+x filename.py
- Set waiting time for receiving response in 25 seconds for using web service
- access to http://youripserver/s.py with rcpt and msg as POST method variable
General SMS Commands AT+CMGF – Set SMS Text Mode or SMS PDU Mode AT+CMGD – Delete a Received Message
PDU Mode SMS Commands AT+CMGL – List Received Messages
Text Mode SMS Commands AT+CMGS – Send SMS Message AT+CMGL – List Received Messages
ATZ AT+CMGF=0 at+cmgs=35 0891269846040000F111000C928069010797100000AA17F4F29C9E769F4170721D342FBBC969F71934AEE701<ctrl+z>
OK
atz
OK
at+cmgf=0
OK
at+cmgs=30
> 0891269846040000F111000C928069010797100000AA12F0BA9B5C779F41E1B4FB0C3A97D9753A
+CMGS: 23
OK
- http://www.diafaan.com/sms-tutorials/gsm-modem-tutorial/at-cmgf/
- http://www.diafaan.com/sms-tutorials/gsm-modem-tutorial/at-cmgs-text-mode/
- http://www.diafaan.com/sms-tutorials/gsm-modem-tutorial/at-cmgl-text-mode/
- http://andres.jaimes.net/870/setup-mongo-on-centos-6/
- http://www.twit88.com/home/utility/sms-pdu-encode-decode
- https://pypi.python.org/pypi/pymongo/
- http://altons.github.io/python/2013/01/21/gentle-introduction-to-mongodb-using-pymongo/