{"id":22359,"date":"2019-04-07T22:16:21","date_gmt":"2019-04-08T05:16:21","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=22359"},"modified":"2019-04-07T22:18:01","modified_gmt":"2019-04-08T05:18:01","slug":"atcmgsex-send-sms-messages","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/atcmgsex-send-sms-messages\/","title":{"rendered":"AT+CMGSEX &#8211; Send SMS Messages"},"content":{"rendered":"<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/04\/at_cmgsex.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22362\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/04\/at_cmgsex.png\" alt=\"\" width=\"859\" height=\"735\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/04\/at_cmgsex.png 859w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/04\/at_cmgsex-300x257.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/04\/at_cmgsex-768x657.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/04\/at_cmgsex-600x513.png 600w\" sizes=\"auto, (max-width: 859px) 100vw, 859px\" \/><\/a><\/p>\n<p>Try the below script in the <a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester tool<\/a><\/p>\n<pre style=\"color: blue; background-color: white; border: 1px solid black;\">\/\/Script-at_cmgsex.at\n\/\/Send SMS message\n\n\/\/List of supported responses\nAT+CMGF=?\n\n\/\/WAIT for 1 sec\nWAIT=1\n\n\/\/Get the current SMS Mode\n\/\/ 0 - PDU Mode, 1- Text Mode,\nAT+CMGF?\n\n\/\/WAIT for 1 sec\nWAIT=1\n\n\/\/Check whether device is registered\n\/\/If device is not registered, SMS cannot be sent\nAT+CREG?\n\n\/\/First let us send SMS in text mode\nAT+CMGF=1\n\n\/\/WAIT for 1 sec\nWAIT=1\n\n\/\/Format for AT+CMGSEX\n\/\/AT+CMGSEX=[,][,, , ]\n\/\/Text is entered. \n\/\/da - destination address\n\/\/toda  destination address Type\n\/\/mr - messag reference\n\/\/msg_seq - The segment number for long SMS\n\/\/msg_total - The total number of the segments for long SMS\n\n\/\/Send the message. Set your To number below\nAT+CMGSEX=\"8545579983\", 190, 1, 2\n\n\/\/Wait for the &gt; prompt\nWAIT=2\n\n\/\/Type the SMS text below\nThis is my SMS message\n\n\/\/Send the CTRL+Z character. ^z is special command of AT Command Script engine.\n^z\n\n\n<\/pre>\n<p>Output of the above script in the <a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester tool\u00a0<\/a>tool.<\/p>\n<pre style=\"color: blue; background-color: #ffffcc; border: 1px solid black;\">AT+CMGF=?\n\n+CMGF: (0-1)\n\nOK\nAT+CMGF?\n\n+CMGF: 1\n\nOK\nSMS message for is configured for Text mode\nAT+CREG?\n\n+CREG: 0,1\n\nOK\nThe device is registered in home network.\n\nAT+CMGF=1\n\nOK\nAT+CMGSEX=\"8545579983\", 190, 1, 2\n\n&gt; \n&gt; This is my SMS message\n\n+CMGSEX: 190\n\nOK\n\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/h6Ts2z0ZwD8\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Try the below script in the AT Command Tester tool \/\/Script-at_cmgsex.at \/\/Send SMS message \/\/List of supported responses AT+CMGF=? \/\/WAIT for 1 sec WAIT=1 \/\/Get the current SMS Mode \/\/ 0 &#8211; PDU Mode, 1- Text Mode, AT+CMGF? \/\/WAIT for &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/atcmgsex-send-sms-messages\/\">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":"atcommands.php","meta":{"footnotes":""},"class_list":["post-22359","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/22359","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=22359"}],"version-history":[{"count":2,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/22359\/revisions"}],"predecessor-version":[{"id":22363,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/22359\/revisions\/22363"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=22359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}