<commit_before># 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<ENTER>
AT+CMGF=0<ENTER>
at+cmgs=35<ENTER>
0891269846040000F111000C928069010797100000AA17F4F29C9E769F4170721D342FBBC969F71934AEE701<ctrl+z>
```sh
OK                                                                     
atz                                                                    
OK
at+cmgf=0
OK
at+cmgs=30
> 0891269846040000F111000C928069010797100000AA12F0BA9B5C779F41E1B4FB0C3A97D9753A
+CMGS: 23

OK
```

### AT Command 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/<commit_msg>add push pop in mongo db reference<commit_after># 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<ENTER>
AT+CMGF=0<ENTER>
at+cmgs=35<ENTER>
0891269846040000F111000C928069010797100000AA17F4F29C9E769F4170721D342FBBC969F71934AEE701<ctrl+z>
```sh
OK                                                                     
atz                                                                    
OK
at+cmgf=0
OK
at+cmgs=30
> 0891269846040000F111000C928069010797100000AA12F0BA9B5C779F41E1B4FB0C3A97D9753A
+CMGS: 23

OK
```

### AT Command 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/
{'fraction_non_alphanumeric': 0.10409889394925179, 'fraction_numerical': 0.10507482108002603, 'mean_word_length': 2.9883268482490273, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '274949', 'n_tokens_mistral': 1364, 'n_tokens_neox': 1126, 'n_words': 275}