Gammu SMS messaging and GSM/3G modem
Hardware: GSM/3G Modem
<todo>Document basic hardware check to make the 3G/USB-dongles work</todo>
Software: Gammu
Basic configuration
[gammu] port = /dev/gsmmodem model = connection = at synchronizetime = yes logfile = /var/log/gammu.log logformat = errorsdate use_locking = yes gammuloc =
Checks
To check if gammu is detecting the modem and if it locked (requiring PIN code)
gammu identify gammu getsecurity status
If is requiring you to enter PIN, use:
gammu entersecuritycode PIN -
For example:
# gammu identify Device : /dev/gsmmodem Manufacturer : Huawei Model : unknown (E3533) Firmware : 21.318.27.00.180 IMEI : xxxxxxxxxx
# gammu getsecuritystatus Waiting for PIN.
# gammu entersecuritycode PIN - Enter PIN code:
# gammu getsecuritystatus Nothing to enter.
Send a message
# echo "All your base are belong to us" | gammu sendsms TEXT 69393x927 If you want break, press Ctrl+C... Sending SMS 1/1....waiting for network answer..OK, message reference=103
If it fails like:
# echo "All your base are belong to us" | gammu sendsms TEXT 666886825 If you want break, press Ctrl+C... Sending SMS 1/1....waiting for network answer..error 500, message reference=-1 Unknown error.
GSM/3G Network check
Check if it is correcly registered in the network:
# gammu networkinfo Network state : home network Network : 214 03 (Orange, Spain), LAC 083E, CID 00CC4C7E Name in phone : "Orange" Packet network state : registration to network denied GPRS : detached
Seems the SIM is invalidated…