{"id":22222,"date":"2019-04-03T22:38:59","date_gmt":"2019-04-04T05:38:59","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=22222"},"modified":"2019-04-03T22:42:53","modified_gmt":"2019-04-04T05:42:53","slug":"atcgsms-select-service-for-mobile-originated-sms-messages","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/atcgsms-select-service-for-mobile-originated-sms-messages\/","title":{"rendered":"AT+CGSMS &#8211; Select service for Mobile Originated SMS Messages"},"content":{"rendered":"<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/04\/at_cgsms.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22224\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/04\/at_cgsms.png\" alt=\"\" width=\"862\" height=\"733\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/04\/at_cgsms.png 862w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/04\/at_cgsms-300x255.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/04\/at_cgsms-768x653.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/04\/at_cgsms-600x510.png 600w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/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_cgsms.at\n\/\/Use this script to AT+CGSMS AT command\n\n\/\/Get the command support\nAT+CGSMS=?\n\nWAIT=2\n\n\/\/ Get the supported services\n\/\/0 = GPRS\n\/\/1 - Circuit switched\n\/\/2 - GPRS Preferred\n\/\/3 - Circuit switch preferred\nAT+CGSMS?\n\nWAIT=1\n\n\/\/ Set MO SMS service preference to GPRS preferred\nAT+CGSMS=2\n\n\/\/ Set MO SMS service preference to circuit switch preferred\n\/\/the network. Accepted only in PDU mode.\nAT+CGSMS=3\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<\/a><br \/>\ntool.<\/p>\n<pre style=\"color: blue; background-color: #ffffcc; border: 1px solid black;\">AT+CGSMS=?\n\n+CGSMS: (0-3)\n\nOK\nAT+CGSMS?\n\n+CGSMS: 3\n\nOK\nAT+CGSMS=2\n\nOK\nAT+CGSMS=3\n\nOK\n\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/YEBen5BrMPI\" 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_cgsms.at \/\/Use this script to AT+CGSMS AT command \/\/Get the command support AT+CGSMS=? WAIT=2 \/\/ Get the supported services \/\/0 = GPRS \/\/1 &#8211; Circuit switched \/\/2 &#8211; GPRS &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/atcgsms-select-service-for-mobile-originated-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-22222","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/22222","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=22222"}],"version-history":[{"count":2,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/22222\/revisions"}],"predecessor-version":[{"id":22226,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/22222\/revisions\/22226"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=22222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}