- sms tool for various of 3g/4g modem
- read sms as raw pdu or decoded text
- support ucs2 decoding and UTF-8/UCS-2 sending
- split long GSM-7 and UCS-2 messages into concatenated SMS parts
usage: [options] send phoneNumber message
[options] recv
[options] delete msg_index | all
[options] status
[options] ussd code
[options] at command
options:
-b <baudrate> (default: 115200)
-d <tty device> (default: /dev/ttyUSB0)
-D debug (for ussd)
-f <date/time format> (for sms/recv)
-j json output (for sms/recv)
-R use raw input (for ussd)
-r use raw output (for ussd and sms/recv)
-s <preferred storage> (for sms/recv/status)
-w <milliseconds> keep reading after OK (for asynchronous at replies)
Some modems acknowledge vendor-specific AT commands before returning their data. Use a post-OK quiet timeout to collect such asynchronous replies, for example:
sms_tool -w 1000 -d /dev/ttyUSB2 at "AT+QTEMP"