{"id":11004,"date":"2014-02-02T03:55:40","date_gmt":"2014-02-02T11:55:40","guid":{"rendered":"http:\/\/m2msupport.net\/m2msupport\/?page_id=11004"},"modified":"2019-01-20T05:11:14","modified_gmt":"2019-01-20T13:11:14","slug":"how-to-use-script-mode-in-at-command-tester","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/how-to-use-script-mode-in-at-command-tester\/","title":{"rendered":"How to use script mode in AT Command Tester?"},"content":{"rendered":"<p>In script mode, batch of AT commands can be sent to the device.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/script_mode.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18545\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/script_mode.png\" alt=\"\" width=\"864\" height=\"790\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/script_mode.png 864w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/script_mode-300x274.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/script_mode-768x702.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/script_mode-600x549.png 600w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/a><\/p>\n<p>&#8211; To include comments in the script, use \/\/ in the beginning of the line<br \/>\n&#8211; Press &#8216;Enter&#8217; at the end of each comment line and AT command line<\/p>\n<p><strong>Special Commands<\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">WAIT &#8211; Add wait between commands.Time is specified in seconds.<\/span><\/strong><br \/>\n<code>Note that there is a fixed delay of 1 sec that is added in between each command in script file.\u00a0<\/code><\/p>\n<p><code>\/\/Example Usage of WAIT command. Wait for 3 seconds<br \/>\nWAIT=3<br \/>\n<\/code><\/p>\n<p><strong><span style=\"color: #0000ff;\">LOOP, LOOP-END : Send one or more commands repeatedly<\/span><\/strong><br \/>\n<code><br \/>\n\/\/Example Usage of LOOP command.<br \/>\n\/\/Send signal strength AT command for 5 times with 1 second wait in-between<br \/>\nLOOP 5<br \/>\nAT+CSQ<br \/>\nWAIT=1<br \/>\nLOOP-END<br \/>\n<\/code><\/p>\n<p><strong><span style=\"color: #0000ff;\">SET-CURRENT-TIME : Sets the time in device to the time of the system<\/span><\/strong><\/p>\n<p><code>\/\/Example Usage of SET-CURRENT-TIME command.<br \/>\n\/\/SET-CURRENT-TIME command uses AT+CCLK command to set the device time<br \/>\nSET-CURRENT-TIME<br \/>\n<\/code><\/p>\n<p><strong>Special Characters<\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">\/\/ &#8211; Comment line<\/span><\/strong><br \/>\n<code><br \/>\n\/\/ This is a comment line<br \/>\nAT+CGMI<br \/>\n<\/code><\/p>\n<p><strong><span style=\"color: #0000ff;\">^z &#8211; CTRL+Z character<\/span><\/strong><br \/>\n<code><br \/>\nAT+CMGS=\"7787787777\"<\/code><\/p>\n<p>\/\/Wait for the &#8216;&gt; &#8216; prompt<br \/>\nWAIT=2<\/p>\n<p>\/\/Type the SMS text<br \/>\ntest SMS message<\/p>\n<p>\/\/Send the CTRL+Z character<br \/>\n^z<\/p>\n<p><span style=\"color: #0000ff;\"><strong>&lt;cr&gt;- Carriage Return character<\/strong><\/span><br \/>\n<code><br \/>\n\/\/Example usage of special character<br \/>\n\/\/Send the HTTP formatted data<br \/>\n&lt;cr&gt;&lt;lf&gt;GET \/m2msupport\/http_get_test.php HTTP\/1.1&lt;cr&gt;&lt;lf&gt;Host:www.m2msupport.netConnection:keep-alive&lt;cr&gt;&lt;lf&gt;<br \/>\n<\/code><\/p>\n<p><span style=\"color: #0000ff;\"><strong>&lt;lf&gt;- Line Feed character<\/strong><\/span><br \/>\n<code><br \/>\n\/\/Example usage of &lt;lf&gt; special character<br \/>\n\/\/Send the HTTP formatted data<br \/>\n&lt;cr&gt;&lt;lf&gt;GET \/m2msupport\/http_get_test.php HTTP\/1.1&lt;cr&gt;&lt;lf&gt;Host:www.m2msupport.netConnection:keep-alive&lt;cr&gt;&lt;lf&gt;<br \/>\n<\/code><\/p>\n<p><span style=\"color: #0000ff;\"><strong>&lt; !crlf&gt;- Do not send &lt;cr&gt;&lt;lf&gt; at the end of this line<\/strong><\/span><br \/>\n<code><br \/>\n\/\/Example usage &lt; !crlf&gt; special character<br \/>\ntest line&lt; !crlf&gt;<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In script mode, batch of AT commands can be sent to the device. &#8211; To include comments in the script, use \/\/ in the beginning of the line &#8211; Press &#8216;Enter&#8217; at the end of each comment line and AT &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/how-to-use-script-mode-in-at-command-tester\/\">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-11004","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/11004","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=11004"}],"version-history":[{"count":20,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/11004\/revisions"}],"predecessor-version":[{"id":18546,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/11004\/revisions\/18546"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=11004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}