Skip to content

awangga/spy

Repository files navigation

spy

SMS Python USB Modem Web Service

Rules

  1. Using Apache web server with CGI execution and MongoDB
  2. Make sure .py files is executable : a+x filename.py
  3. Set waiting time for receiving response in 25 seconds for using web service
  4. access to http://youripserver/s.py with rcpt and msg as POST method variable

3G Modem AT Commands for SMS

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

PDU SMS

ATZ AT+CMGF=0 at+cmgs=35 0891269846040000F111000C928069010797100000AA17F4F29C9E769F4170721D342FBBC969F71934AEE701<ctrl+z>

OK                                                                     
atz                                                                    
OK
at+cmgf=0
OK
at+cmgs=30
> 0891269846040000F111000C928069010797100000AA12F0BA9B5C779F41E1B4FB0C3A97D9753A
+CMGS: 23

OK

Reference

  1. http://www.diafaan.com/sms-tutorials/gsm-modem-tutorial/at-cmgf/
  2. http://www.diafaan.com/sms-tutorials/gsm-modem-tutorial/at-cmgs-text-mode/
  3. http://www.diafaan.com/sms-tutorials/gsm-modem-tutorial/at-cmgl-text-mode/
  4. http://andres.jaimes.net/870/setup-mongo-on-centos-6/
  5. http://www.twit88.com/home/utility/sms-pdu-encode-decode
  6. https://pypi.python.org/pypi/pymongo/
  7. http://altons.github.io/python/2013/01/21/gentle-introduction-to-mongodb-using-pymongo/

About

SMS Python USB Modem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published