{"id":8133,"date":"2015-06-23T13:46:58","date_gmt":"2015-06-23T18:46:58","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=8133"},"modified":"2015-09-30T07:30:44","modified_gmt":"2015-09-30T12:30:44","slug":"sms-utils","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mlinux\/using-mlinux\/utilities\/sms-utils\/","title":{"rendered":"SMS Messaging Using sms-utils"},"content":{"rendered":"<h4>Description<\/h4>\n<p><strong>sms-utils<\/strong> package provides a command line utility to send, list, read, delete SMS messages from your mobile device. It also provides utilities for encoding and decoding simple PDUs.<\/p>\n<div class=\"note\">Note: sms-utils is supported on GSM radios only, such as the MTCDT-H5-210L model.<\/div>\n<h4>Setup<\/h4>\n<p>Copy <code>sms.config.example<\/code> to your home directory and edit it as needed.<\/p>\n<pre class=\"brush:shell\">  $ cp \/usr\/share\/sms-utils\/sms.config.example ~\/.smsconfig\r\n  $ vi ~\/.smsconfig\r\n  ...<\/pre>\n<p>Options found in your local <code>.smsconfig<\/code> override the compile time defaults. Command<br \/>\nline options override options in <code>.smsconfig<\/code>.<\/p>\n<p>The default modem interface is <code>\/dev\/modem_at0<\/code>. If you are using a PPP connection, you&#8217;ll need to use the <code>\/dev\/modem_at1<\/code> interface for SMS.<\/p>\n<h4>Sending messages<\/h4>\n<p>By default or when interactive mode is enabled and an editor is configured, sending<br \/>\nan SMS will open your editor to create the message. The length of the<br \/>\nmessage will be truncated without warning to the maximum message length in the<br \/>\nselected alphabet. Seven-bit mode can contain up to 160 characters. Eight-bit mode<br \/>\ncan contain up to 140 bytes.<\/p>\n<p>To send an SMS to 1234567890 issue the command:<\/p>\n<pre class=\"brush:shell\">$ sms send 1234567890<\/pre>\n<p>If all goes well there should be no errors or warning messages<br \/>\nprinted to stderr and the program should exit with 0.<\/p>\n<p>The validity period is not configurable and will be set to 2 days out from<br \/>\nthe time of send.<\/p>\n<p>If the address specified contains any non-digit and non-command characters, the<br \/>\nselected phonebook will be searched for a match. In interactive mode a substring<br \/>\nsearch is performed and the user is prompted with any matches found. In<br \/>\nnon-interactive mode an exact match must be found.<\/p>\n<h4>Listing messages<\/h4>\n<p>List all stored messages in the selected storage area with this command:<\/p>\n<pre class=\"brush:shell\">$ sms list all<\/pre>\n<p>List only unread messages with this command:<\/p>\n<pre class=\"brush:shell\">$ sms list unread<\/pre>\n<p>The output is in YAML which is both readable and easily parsed.<\/p>\n<h4>Reading messages<\/h4>\n<p>Read the message at index 1 with this command:<\/p>\n<pre class=\"brush:shell\">$ sms read 1<\/pre>\n<p>After the read command completes the message at index 1 will be<br \/>\nmarked as read.<\/p>\n<h4>Deleting messages<\/h4>\n<p>You can delete a message by its status (unread, read, sent, unsent), by index, or<br \/>\nall messages.<\/p>\n<p>Delete a message at index 1 with this command:<\/p>\n<pre class=\"brush:shell\">$ sms delete index 1<\/pre>\n<p>Delete all messages with this command:<\/p>\n<pre class=\"brush:shell\">$ sms delete all<\/pre>\n<p>Delete only read messages with this command:<\/p>\n<pre class=\"brush:shell\">$ sms delete read<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Description sms-utils package provides a command line utility to send, list, read, delete SMS messages from your mobile device. It also provides utilities for encoding and decoding simple PDUs. Note: sms-utils is supported on GSM radios only, such as the MTCDT-H5-210L model. Setup Copy sms.config.example to your home directory and edit it as needed. $ [&hellip;]<\/p>\n","protected":false},"author":537,"featured_media":0,"parent":7905,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-8133","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/537"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=8133"}],"version-history":[{"count":16,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8133\/revisions"}],"predecessor-version":[{"id":8344,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8133\/revisions\/8344"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/7905"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=8133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}