{"id":1460,"date":"2012-08-27T22:34:19","date_gmt":"2012-08-28T05:34:19","guid":{"rendered":"http:\/\/m2msupport.net\/m2msupport\/?page_id=1460"},"modified":"2018-12-09T15:02:53","modified_gmt":"2018-12-09T23:02:53","slug":"sms-at-commands","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/sms-at-commands\/","title":{"rendered":"SMS &#8211; AT Commands, Text Mode, PDU Mode, SMS PDU Converter"},"content":{"rendered":"<p>This SMS tutorial will cover the following topics,<\/p>\n<ul>\n<li><a href=\"#smsmode\">SMS Message Format &#8211; Text Vs PDU <\/a><\/li>\n<li><a href=\"#textmode\">Send SMS in Text Format<\/a><\/li>\n<li><a href=\"#pdumode\">Send SMS in PDU Format<\/a><\/li>\n<li><a href=\"http:\/\/m2msupport.net\/m2msupport\/sms-send-sms-in-other-languages\/\">Send SMS message in other languages<\/a><\/li>\n<li><a href=\"#pduformat\">PDU Message Format<\/a><\/li>\n<li><a href=\"#readsms\">Read SMS Messages<\/a><\/li>\n<\/ul>\n<div id=\"smsmode\"><strong>SMS Message Format &#8211; Text Vs PDU<\/strong><\/div>\n<p>All modem devices support 2 types of SMS message format &#8211; Text &amp; PDU (Protocol Data Unit). Depending on what SMS message forma is set, the AT command format to send and read SMS messages will vary. Text format is straight forward to use. PDU format gives more control over the content of the message such as encoding type (other language character set), how long the message is valid, protocol identifier (fax, voice etc),<br \/>\nreply path etc.<\/p>\n<p>With <a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\">AT Command Tester<\/a>, you can read and set the SMS Message format type.<br \/>\n<a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\"><img decoding=\"async\" src=\"http:\/\/www.m2msupport.net\/m2msupport\/wp-content\/themes\/admired\/images\/sms_format.PNG\" alt=\"\" width=\"98%\" height=\"98%\"\/><\/a><\/p>\n<p><code><br \/>\n\/\/Get the SMS Message format<br \/>\nAT+CMGF?<\/code><\/p>\n<p>+CMGF: 0<\/p>\n<p>OK<br \/>\nSMS message for is configured for PDU mode<\/p>\n<p>^RSSI:8<\/p>\n<p>\/\/Set SMS for Text format<br \/>\nAT+CMGF=1<\/p>\n<p>OK<br \/>\n\/\/Set SMS for PDU Format<br \/>\nAT+CMGF=0<\/p>\n<p>OK<br \/>\nSMS message for is configured for Text mode<br \/>\nAT+CMGF?<\/p>\n<p>+CMGF: 1<\/p>\n<p>OK<br \/>\nSMS message for is configured for Text mode<\/p>\n<p>Using the &#8220;Show Text Format&#8221; and &#8220;Show PDU Format&#8221;, users can check AT command formatted<br \/>\nmessage even without connecting the device.<\/p>\n<p>Destination Number &#8211; 8588780098<br \/>\nMessage &#8211; SMS Message sent from AT Command Tester<\/p>\n<p><strong>Text Mode Formatted Message<\/strong><br \/>\nAT+CMGS=8588780098<br \/>\nSMS Message sent from AT Command Tester.\u001a<\/p>\n<p><strong>PDU Mode Formatted Message<\/strong><br \/>\nValidity Period Format (VPF) -&gt; 2<br \/>\nUser Data Header Indication (UDHI) -&gt;0<br \/>\nStatus Report Request (SRR) -&gt; 0<br \/>\nMessage ID (MR) -&gt;0<br \/>\nData Coding Scheme (DCS) -&gt; 7-bit<br \/>\nValidity Period (VP) -&gt;170<br \/>\nMessage Type (MTI) -&gt;1<br \/>\nReject Duplicates (RD) -&gt;0<br \/>\nReply Path (RP) -&gt;0<br \/>\nSMS Service Center -&gt; 2160130300F4<br \/>\nMessage Content -&gt;D3E614D42CCFE7E17319342FBBE920B3FCDD0605A9A0E1BBDD0EBBC9206A794E2FCB5D<br \/>\nPDU -&gt;07912160130300F411000A8158888700890000aa28D3E614D42CCFE7E17319342FBBE920B3FCDD0605A9A0E<br \/>\n1BBDD0EBBC9206A794E2FCB5D<br \/>\nAT+CMGS=55<br \/>\n07912160130300F411000A8158888700890000aa28D3E614D42CCFE7E17319342FBBE920B3FCDD0605A9A0E<br \/>\n1BBDD0EBBC9206A794E2FCB5D<\/p>\n<div id=\"textmode\"><strong>Send SMS in Text Mode<\/strong><\/div>\n<p>With <a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\">Online AT Command Tester<\/a> tool, you can send SMS messages in Text or PDU format. The tool will automatically detect what format (Text or PDU) is currently set on the device and will send appropriate AT commands to send the SMS message.<\/p>\n<p><a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\"><img decoding=\"async\" src=\"http:\/\/www.m2msupport.net\/m2msupport\/wp-content\/themes\/admired\/images\/sms_text_mode.PNG\" alt=\"\" width=\"98%\" height=\"98%\"\/><\/a><\/p>\n<p><code><br \/>\nChecking registration status...<\/code><\/p>\n<p>AT+CREG?<\/p>\n<p>+CREG: 2,1, 8E, CE87<\/p>\n<p>OK<br \/>\nThe device is registered in home network.<\/p>\n<p>Checking SMS Mode&#8230;<\/p>\n<p>AT+CMGF?<\/p>\n<p>+CMGF: 1<\/p>\n<p>OK<br \/>\nSMS message for is configured for Text mode<br \/>\nDevice is configured for Text mode for SMS.<\/p>\n<p>AT+CMGS=&#8221;8588780098&#8243;<\/p>\n<p>&gt; SMS Message sent from AT Command Tester.\u001a<\/p>\n<p>+CMGS: 22<\/p>\n<p>OK<\/p>\n<p>Try this script included in <a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\\\">AT Command Tester Tool.<\/a><\/p>\n<div style=\"background-color: white; border: 1px solid black;border-radius: 10px;\">\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Script-send_sms_text_mode.at<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Send SMS in Text Mode <\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/List of supported responses<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">AT+CMGF=?<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/WAIT for 1 sec<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">WAIT=1<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Get the current SMS Mode<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/ 0 &#8211; PDU Mode, 1- Text Mode,<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">AT+CMGF?<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/WAIT for 1 sec<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">WAIT=1<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Check whether device is registered<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/If device is not registered, SMS cannot be sent<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">AT+CREG?<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/First let us send SMS in text mode<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">AT+CMGF=1<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/WAIT for 1 sec<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">WAIT=1<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Send the message. Set your To number below<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">AT+CMGS=&#8221;8545579983&#8243;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Wait for the &gt; prompt<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">WAIT=2<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Type the SMS text below<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">This is my SMS message<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Send the CTRL+Z character. ^z is special command of AT Command Script engine.<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">^z<\/span><\/p>\n<\/div>\n<p>Response to above output script in <a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\\\">AT Command Tester Tool.<\/a><\/p>\n<div style=\"background-color: #ffffcc; border: 1px solid black;border-radius: 10px;\">\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">AT+CMGF=?<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">+CMGF: (0,1)<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">OK<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">AT+CMGF?<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">+CMGF: 1<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">OK<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #ff8000;\">SMS message for is configured for Text mode<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">AT+CREG?<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">+CREG: 0,1<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">OK<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #ff8000;\">The device is registered in home network.<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #ff8000;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">AT+CMGF=1<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">OK<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">AT+CMGS=&#8221;8545579983&#8243;<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&gt; This is my SMS message<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&gt; <\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&gt; <\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">+CMGS: 19<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">OK<\/span><\/em><\/p>\n<\/div>\n<div class=\"video-responsive\">\n<iframe loading=\"lazy\" id=\"vid_frame\" width=\"750\" height=\"441\" src=\"https:\/\/www.youtube.com\/embed\/fEIOAOrmo-o\" frameborder=\"0\" allowfullscreen=\"\"><\/iframe><\/div>\n<div id=\"pdumode\"><strong>Send SMS in PDU Mode<\/strong><\/div>\n<p>Now let us send message in PDU mode. First change the SMS message format using the AT+CMGF command.<br \/>\n<code><br \/>\nAT+CMGF=0<\/code><\/p>\n<p>OK<br \/>\nChecking registration status&#8230;<\/p>\n<p>AT+CREG?<\/p>\n<p>+CREG: 2,1, 8E, CE73<\/p>\n<p>OK<br \/>\nThe device is registered in home network.<\/p>\n<p>Checking SMS Mode&#8230;<\/p>\n<p>AT+CMGF?<\/p>\n<p>+CMGF: 0<\/p>\n<p>OK<br \/>\nSMS message for is configured for PDU mode<br \/>\nChecking SMS Mode&#8230;<\/p>\n<p>AT+CMGS=48<br \/>\n&gt; 07912160130300F411000A8158888700890000aa28D3E614D42CCFE7E17319342FBBE920B3FCDD0605A9A0E<br \/>\n1BBDD0EBBC9206A794E2FCB5D\u001a<\/p>\n<p>+CMGS: 23<\/p>\n<p>OK<\/p>\n<p>Try this script included in <a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\\\">AT Command Tester Tool.<\/a><\/p>\n<div style=\"background-color: white; border: 1px solid black;border-radius: 10px;\">\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Script-send_sms_pdu_mode.at<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Send SMS in PDU Mode <\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/List of supported responses<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">AT+CMGF=?<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/WAIT for 1 sec<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">WAIT=1<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Get the current SMS Mode<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/ 0 &#8211; PDU Mode, 1- Text Mode,<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">AT+CMGF?<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/WAIT for 1 sec<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">WAIT=1<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Check whether device is registered<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/If device is not registered, SMS cannot be sent<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">AT+CREG?<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Send SMS in PDU mode<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">AT+CMGF=0<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/WAIT for 1 sec<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">WAIT=1<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Send the message. Set your To number below<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Use the SMS tab in AT Command Tester tool to get PDU formatted message.<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">AT+CMGS=44<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Wait for the &gt; prompt<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">WAIT=2<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Send the PDU formatted message<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">0011000A8158585555550000aa23D4F29C0E6A97E7F3F0B90C32CBDF6D50900A1ABEDBEDB09B0CA296E7F4B21C<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Wait for the &gt; prompt<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">WAIT=2<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #159600;\">\/\/Send the CTRL+Z character. ^z is special command of AT Command Script engine.<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: blue;\">^z<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #333333;\">&nbsp;<\/span><\/p>\n<\/div>\n<p>Response to above output script in <a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\\\">AT Command Tester Tool.<\/a><\/p>\n<div style=\"background-color: #ffffcc; border: 1px solid black;border-radius: 10px;\">\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">AT+CMGF=?<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">+CMGF: (0,1)<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">OK<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">AT+CMGF?<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">+CMGF: 0<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">OK<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #ff8000;\">SMS message for is configured for PDU mode<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">AT+CREG?<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">+CREG: 0,1<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">OK<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #ff8000;\">The device is registered in home network.<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #ff8000;\">&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">AT+CMGF=0<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">OK<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">AT+CMGS=44<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&gt; 0011000A8158585555550000aa23D4F29C0E6A97E7F3F0B90C32CBDF6D50900A1ABEDBEDB09B0CA296E7F4B21C<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&gt; <\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&gt; <\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">+CMGS: 28<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">&nbsp;<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><em><span style=\"font-size: 10.0pt; font-family: Dialog; color: blue;\">OK<\/span><\/em><\/p>\n<p style=\"margin-bottom: .0001pt; line-height: normal; text-autospace: none;\"><span style=\"font-size: 12.0pt; font-family: Dialog; color: #333333;\">&nbsp;<\/span><\/p>\n<\/div>\n<div class=\"video-responsive\">\n<iframe loading=\"lazy\" id=\"vid_frame\" width=\"750\" height=\"441\" src=\"https:\/\/www.youtube.com\/embed\/iZj58hY7Jlc\" frameborder=\"0\" allowfullscreen=\"\"><\/iframe><\/div>\n<div id=\"pduformat\"><strong>PDU Message format<\/strong><\/div>\n<p>The PDU format gives more control over configuring the SMS message. In AT Command Tester, the PDU settings can be configured as shown below,<br \/>\n<a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\"><img decoding=\"async\" src=\"http:\/\/www.m2msupport.net\/m2msupport\/wp-content\/themes\/admired\/images\/pdu_setting.PNG\" alt=\"\" width=\"98%\" height=\"98%\"\/><\/a><\/p>\n<p>The format of the mobile-originated SMS message (SMS-SUBMIT) is as follows,<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.m2msupport.net\/m2msupport\/wp-content\/themes\/admired\/images\/pdu_format.gif\" alt=\"\" width=\"98%\" height=\"98%\"\/><\/p>\n<p><strong>PDU data Conversion<\/strong><br \/>\nDestination Number &#8211; 8588780098<br \/>\nMessage &#8211; SMS Message sent from AT Command Tester<br \/>\nSMSC Address &#8211; 12063130004<br \/>\nEncoding &#8211; 7-bit<\/p>\n<p><strong>PDU<\/strong><br \/>\n07912160130300F411000A8158888700890000aa27D3E614D42CCEE7E17319342FBBE920B3FCDD0605A9A0E1<br \/>\nBBDD0EBBC9206A794E2FCB01\u001a<\/p>\n<table width=\"750px\" style=\"table-layout:fixed;word-break: break-all;border:1px;solid black;\">\n<tbody>\n<tr>\n<td width=\"33%\"><strong>Field<\/strong><\/td>\n<td width=\"33%\"><strong>Value<\/strong><\/td>\n<td width=\"33%\"><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"33%\">SCA(Service Center Address)<\/td>\n<td width=\"33%\">07912160130300F4<\/td>\n<td width=\"33%\">07- length<br \/>\n91 &#8211; Address type<br \/>\n2160130300F4 &#8211; Service center address<\/td>\n<\/tr>\n<tr>\n<td width=\"33%\">PDU-TYPE<\/td>\n<td width=\"33%\">11<\/td>\n<td width=\"33%\">Reply Path (RP) -&gt;0<br \/>\nUser Data Header Indication (UDHI) -&gt;0<br \/>\nStatus Report Request (SRR) -&gt; 0<br \/>\nValidity Period Format (VPF) -&gt; 2<br \/>\nReject Duplicates (RD) -&gt;0<br \/>\nMessage Type (MTI) -&gt;1<\/td>\n<\/tr>\n<tr>\n<td width=\"33%\">MR (Message ID)<\/td>\n<td width=\"33%\">00<\/td>\n<td width=\"33%\"><\/td>\n<\/tr>\n<tr>\n<td width=\"33%\">DA (Destination Address)<\/td>\n<td width=\"33%\">0A815888870089<\/td>\n<td width=\"33%\">0A &#8211; Lenght of the address<br \/>\n81 &#8211; Address Type<br \/>\n5888870089 &#8211; Destination phone number<\/td>\n<\/tr>\n<tr>\n<td width=\"33%\">PID (Protocol ID)<\/td>\n<td width=\"33%\">00<\/td>\n<td width=\"33%\"><\/td>\n<\/tr>\n<tr>\n<td width=\"33%\">DCS (Data Coding Scheme)<\/td>\n<td width=\"33%\">00<\/td>\n<td width=\"33%\">00 &#8211; Default 7-bit encoding<\/td>\n<\/tr>\n<tr>\n<td width=\"33%\">VP(Validity Period )<\/td>\n<td width=\"33%\">AA<\/td>\n<td width=\"33%\"><\/td>\n<\/tr>\n<tr>\n<td width=\"33%\">UDL (User Data Length)<\/td>\n<td width=\"33%\">27<\/td>\n<td width=\"33%\">0x27 &#8211; 39 characters of user data<\/td>\n<\/tr>\n<tr>\n<td width=\"33%\">UD (User Data)<\/td>\n<td width=\"33%\">D3E614D42CCFE7E17319342FBBE920B3FCDD0605A9A0E1BBDD0EBBC9206A794E2FCB01<\/td>\n<td width=\"33%\">User data with 7-bit encoding<br \/>\nSMS Message sent from AT Command Tester<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<div id=\"readsms\"><strong id=\"output\" data-bind=\"text: output()\">Read SMS Messages<\/strong><\/div>\n<p>You read all the SMS messages stored on the device.<\/p>\n<p><a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\"><img decoding=\"async\" src=\"http:\/\/www.m2msupport.net\/m2msupport\/wp-content\/themes\/admired\/images\/sms_read.PNG\" alt=\"\" width=\"98%\" height=\"98%\"\/><\/a><br \/>\n<code><br \/>\nAT+CMGL=\"ALL\"<\/code><\/p>\n<p>+CMGL: 0,&#8221;REC READ&#8221;,&#8221;1511&#8243;,,&#8221;14\/01\/31,17:56:01-32&#8243;<br \/>\nWelcome to T-Mobile! Dial #BAL# to check your balances. Your T-Mobile number is 1858xxxxxx<br \/>\n+CMGL: 1,&#8221;REC READ&#8221;,&#8221;1511&#8243;,,&#8221;14\/03\/14,13:31:57-28&#8243;<\/p>\n<p>OK<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This SMS tutorial will cover the following topics, SMS Message Format &#8211; Text Vs PDU Send SMS in Text Format Send SMS in PDU Format Send SMS message in other languages PDU Message Format Read SMS Messages SMS Message Format &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/sms-at-commands\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"software_howto.php","meta":{"footnotes":""},"class_list":["post-1460","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/1460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/comments?post=1460"}],"version-history":[{"count":75,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/1460\/revisions"}],"predecessor-version":[{"id":23974,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/1460\/revisions\/23974"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=1460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}