Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
| doc:howto:howto.send.sms [2013/06/27 10:48] – lorema | doc:howto:howto.send.sms [2013/12/09 21:28] – valentt | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Send SMS or Email using 3G/GSM modem ====== | ||
| + | This method is fairly simple-minded, | ||
| + | |||
| + | Almost any OpenWrt version should work, and any OpenWrt device which supports USB. It has been tested n a WL-500gPv2, a WL-520Gu, and a MPR-A8 (Ralink-based Hame A1 clone). | ||
| + | |||
| + | One modem was from dx.com, 7.2M HSDPA 3G SIM Card USB 2.0 Wireless Modem Adapter with TF Card Slot, item 80032. | ||
| + | |||
| + | If you have device like WL-520Gu that has little onboard flash then you need to built my own OpenWrt firmware image with following modules (usually installing them via opkg installing fails due to for lack of memory): | ||
| + | |||
| + | < | ||
| + | |||
| + | When I plugged in the usb modem, it detected scsi drives and 4 tty devices--/ | ||
| + | |||
| + | I connected to the modem using picocom: | ||
| + | picocom -b 9600 -f n -p n -d 8 -r / | ||
| + | |||
| + | Typing " | ||
| + | |||
| + | I then sent a message with the following commands: | ||
| + | < | ||
| + | AT+CMGF=1 [set pdu mode to text] | ||
| + | AT+CMGS=" | ||
| + | Type some message< | ||
| + | </ | ||
| + | After a short while I got a response, " | ||
| + | |||
| + | That was all there was to it with this device. | ||
| + | |||
| + | **Mode Switching** | ||
| + | |||
| + | With the WL-500gPv2 it was harder. | ||
| + | |||
| + | The modeswitch process can apparently be more complicated for other devices. | ||
| + | |||
| + | **MPR-A8--modeswitch not needed** | ||
| + | |||
| + | With the MPR-A8, with self-compiled trunk, watching on serial console, the scsi drives were recognized first, and then, after 30m seconds or so, the 4 ttyUSB devices. | ||
| + | |||
| + | **Sending Email** | ||
| + | |||
| + | With my provider, T-Mobile, you can also send an email with the address number of " | ||
| + | < | ||
| + | AT+CMGS=" | ||
| + | myAddress@myProvider.com/ | ||
| + | </ | ||
| + | The subject is within "/" | ||
| + | |||
| + | {{tag> | ||