{"id":143963,"date":"2020-05-24T09:11:29","date_gmt":"2020-05-24T16:11:29","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=143963"},"modified":"2020-06-14T09:53:59","modified_gmt":"2020-06-14T16:53:59","slug":"http-testing-with-simcom-sim7070-sim7080-modules","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/http-testing-with-simcom-sim7070-sim7080-modules\/","title":{"rendered":"HTTP testing with Simcom SIM7070, SIM7080 Modules"},"content":{"rendered":"<h3>Steps to test HTTP GET with SIM7070, SIM7080 Modules<\/h3>\n<ul>\n<li>Verify that the device is registered with the network provider<\/li>\n<li>Query the network using the AT+CGNAPN command<\/li>\n<li>Activate the network bearer using the AT+CNACT command and verify that the activated bearer profile has IP addressed using the AT+CNACT? command.<\/li>\n<li>Set up the HTTP parameters using the AT+SHCONF command<\/li>\n<li>Set up the HTTP head using&nbsp; the AT+SHAHEAD command<\/li>\n<li>For HTTP PUT requests, setup the URL parameters with the AT+SHPARA command<\/li>\n<li>For HTTP POST requests, setup the POST data with AT+SHBOD command<\/li>\n<li>Send the HTTP GET\/PUT\/POST request using the AT+SHREQ command<\/li>\n<li>Read the HTTP response using the AT+SHREAD command<\/li>\n<\/ul>\n<h3><strong>HTTP GET&nbsp;<\/strong><\/h3>\n<p>Use the&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>&nbsp;tool to test the HTTP Get feature with the SIM7070\/SIM7080 modules.<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"wp-image-32155\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/06\/simcom_http_get_ui.png\" alt=\"\"\/><\/figure>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/mzi3Gk3M6LA\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<h3><strong>HTTP GET SCRIPT MODE<\/strong><\/h3>\n<p>HTTP GET function can be tested with script mode in the&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>&nbsp;tool.<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"wp-image-32155\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/05\/sim7080_http_get.png\" alt=\"\"\/><\/figure>\n<p>Try the script in&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>&nbsp;tool.<\/p>\n<pre style=\"color: blue; background-color: white; border: 1px solid black;\">\/\/Script: HTTP GET testing with Simcom SIM7070, SIM7080 modules\n\/\/The AT commands in this script are applicable for Simcom modules only\n\/\/Check SIMCOM Module AT Command documentation\n\n\/\/Get the support for the commands\nAT+SHREQ=?\n\n\/\/Wait\nWAIT=1\n\n\/\/Get the current request\nAT+SHREQ?\n\n\/\/Wait\nWAIT=1\n\n\/\/Activate the network bearer\nAT+CNACT=0,1\n\n\/\/Wait\nWAIT=1\n\n\/\/Set up the HTTP URL\nAT+SHCONF=\"URL\",\"http:\/\/www.httpbin.org\"\n\n\/\/Wait\nWAIT=1\n\n\/\/HTTP body length\nAT+SHCONF=\"BODYLEN\",1024\n\n\/\/HTTP head length\nAT+SHCONF=\"HEADERLEN\",350\n\n\/\/HTTP connection\nAT+SHCONN\n\n\/\/Wait\nWAIT=1\n\n\/\/Get the connection status\nAT+SHSTATE?\n\n\/\/Wait\nWAIT=1\n\n\/\/Make the HTTP request\nAT+SHREQ=\"http:\/\/www.httpbin.org\/get\",1\n\n\/\/Wait\nWAIT=10\n\n\/\/Read the HTTP response\nAT+SHREAD=0,391\n\n\/\/Wait\nWAIT=3\n\n\/\/Disconnect HTTP\nAT+SHDISC\n\n<\/pre>\n<p>Output of the script in the&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>&nbsp;tool.<\/p>\n<pre style=\"color: blue; background-color: #ffffcc; border: 1px solid black;\">AT+SHREQ=?\n\n+SHREQ: 512,(1-5)\n\nOK\nAT+SHREQ?\n\n+SHREQ: http:\/\/www.httpbin.org\/get,1\n\nOK\nAT+CNACT=0,1\n\nERROR\nAT+SHCONF=\"URL\",\"http:\/\/www.httpbin.org\"\n\nOK\nAT+SHCONF=\"BODYLEN\",1024\n\nOK\nAT+SHCONF=\"HEADERLEN\",350\n\nOK\nAT+SHCONN\n\nOK\nAT+SHSTATE?\n\n+SHSTATE: 1\n\nOK\nAT+SHREQ=\"http:\/\/www.httpbin.org\/get\",1\n\nOK\n\n+SHREQ: \"GET\",200,391\nAT+SHREAD=0,391\n\nOK\n\n+SHREAD: 391\n{\n  \"args\": {}, \n  \"headers\": {\n    \"Accept\": \"text\/html, *\/*\", \n    \"Cache-Control\": \"no-cache\", \n    \"Content-Length\": \"0\", \n    \"Content-Type\": \"application\/x-www-form-urlencoded\", \n    \"Host\": \"www.httpbin.org\", \n    \"User-Agent\": \"IOE Client\", \n    \"X-Amzn-Trace-Id\": \"Root=1-5ecbd50d-9ad830a62424f62bbe37601e\"\n  }, \n  \"origin\": \"52.38.67.254\", \n  \"url\": \"http:\/\/www.httpbin.org\/get\"\n}\n\nAT+SHDISC\n\nOK\n\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/xWAWzb-g-Rg\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<div><\/div>\n<div>\n<p><strong style=\"color: #23282d; font-size: 1.4em;\">HTTP PUT SCRIPT MODE<\/strong><\/p>\n<\/div>\n<p>HTTP PUT function can be tested with script mode in the&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>&nbsp;tool.<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"wp-image-32155\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/05\/sim7080_http_put.png\" alt=\"\"\/><\/figure>\n<p>Try the script in&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>&nbsp;tool.<\/p>\n<pre style=\"color: blue; background-color: white; border: 1px solid black;\">\/\/Script: HTTP PUT  testing with Simcom SIM7070, SIM7080 modules\n\/\/The AT commands in this script are applicable for Simcom modules only\n\/\/Check SIMCOM Module AT Command documentation\n\n\n\/\/Query the network\nAT+CGNAPN\n\n\/\/Wait\nWAIT=1\n\n\/\/Activate the network bearer\nAT+CNACT=0,1\n\n\/\/Get the current request\nAT+SHREQ?\n\n\/\/Wait\nWAIT=1\n\n\/\/Set up the HTTP URL\nAT+SHCONF=\"URL\",\"http:\/\/www.httpbin.org\"\n\n\/\/Wait\nWAIT=1\n\n\/\/HTTP body length\nAT+SHCONF=\"BODYLEN\",1024\n\n\/\/HTTP head length\nAT+SHCONF=\"HEADERLEN\",350\n\n\/\/HTTP connection\nAT+SHCONN\n\n\/\/Wait\nWAIT=1\n\n\n\/\/Get the connection status\nAT+SHSTATE?\n\n\/\/Wait\nWAIT=1\n\n\/\/Clear the HTTP header\nAT+SHCHEAD\n\n\/\/Wait\nWAIT=1\n\n\/\/Add header content\nAT+SHAHEAD=\"Accept\",\"text\/html, *\/*\"\n\n\/\/Wait\nWAIT=1\n\n\/\/Add header content\nAT+SHAHEAD=\"User-Agent\",\"IOE Client\"\n\n\/\/Wait\nWAIT=1\n\n\/\/Add header content\nAT+SHAHEAD=\"Content-Type\",\"application\/x-www-form-urlencoded\"\n\n\/\/Wait\nWAIT=1\n\n\/\/Add header content\nAT+SHAHEAD=\"Connection\",\"keep-alive\"\n\n\/\/Wait\nWAIT=1\n\n\/\/Add header content\nAT+SHAHEAD=\"Cache-control\",\"no-cache\"\n\n\/\/Setup HTTP parameter\nAT+SHPARA=\"parm1\",\"data1\"\n\n\/\/Setup HTTP parameter\nAT+SHPARA=\"parm2\",\"data2\"\n\n\/\/Make the HTTP request\nAT+SHREQ=\"http:\/\/www.httpbin.org\/put\",2\n\n\/\/Wait\nWAIT=5\n\n\/\/Disconnect HTTP\nAT+SHDISC\n\n\n<\/pre>\n<p>Output of the script in the&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>&nbsp;tool.<\/p>\n<pre style=\"color: blue; background-color: #ffffcc; border: 1px solid black;\">AT+CGNAPN\n\n+CGNAPN: 1,\"soracom.io\"\n\nOK\nAT+CNACT=0,1\n\nERROR\nAT+SHREQ?\n\n+SHREQ: http:\/\/www.httpbin.org\/put,2\n\nOK\nAT+SHCONF=\"URL\",\"http:\/\/www.httpbin.org\"\n\nOK\nAT+SHCONF=\"BODYLEN\",1024\n\nOK\nAT+SHCONF=\"HEADERLEN\",350\n\nOK\nAT+SHCONN\n\nOK\nAT+SHSTATE?\n\n+SHSTATE: 1\n\nOK\nAT+SHCHEAD\n\nOK\nAT+SHAHEAD=\"Accept\",\"text\/html, *\/*\"\n\nOK\nAT+SHAHEAD=\"User-Agent\",\"IOE Client\"\n\nOK\nAT+SHAHEAD=\"Content-Type\",\"application\/x-www-form-urlencoded\"\n\nOK\nAT+SHAHEAD=\"Connection\",\"keep-alive\"\n\nOK\nAT+SHAHEAD=\"Cache-control\",\"no-cache\"\n\nOK\nAT+SHPARA=\"parm1\",\"data1\"\n\nOK\nAT+SHPARA=\"parm2\",\"data2\"\n\nOK\nAT+SHREQ=\"http:\/\/www.httpbin.org\/put\",2\n\nOK\n\n+SHREQ: \"PUT\",200,503\nAT+SHDISC\n\nOK\n\n\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/7JK4d3uhPO4\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<div><\/div>\n<h3><\/h3>\n<h3><strong>HTTP POST <\/strong><\/h3>\n<p>HTTP POST function can be tested in the&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>&nbsp;tool.<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"wp-image-32155\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/06\/simcom_http_post_ui.png\" alt=\"\"\/><\/figure>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/zCiBUCtPFi8\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<h3><strong>HTTP POST SCRIPT MODE<\/strong><\/h3>\n<p>HTTP POST function can be tested with script mode in the&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>&nbsp;tool.<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"wp-image-32155\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/05\/sim7080_http_post.png\" alt=\"\"\/><\/figure>\n<p>Try the script in&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>&nbsp;tool.<\/p>\n<pre style=\"color: blue; background-color: white; border: 1px solid black;\">\/\/Script: HTTP POST  testing with Simcom SIM7070, SIM7080 modules\n\/\/The AT commands in this script are applicable for Simcom modules only\n\/\/Check SIMCOM Module AT Command documentation\n\n\n\/\/Query the network\nAT+CGNAPN\n\n\/\/Wait\nWAIT=1\n\n\/\/Activate the network bearer\nAT+CNACT=0,1\n\n\/\/Get the current request\nAT+SHREQ?\n\n\/\/Wait\nWAIT=1\n\n\/\/Set up the HTTP URL\nAT+SHCONF=\"URL\",\"http:\/\/www.httpbin.org\"\n\n\/\/Wait\nWAIT=1\n\n\/\/HTTP body length\nAT+SHCONF=\"BODYLEN\",1024\n\n\/\/HTTP head length\nAT+SHCONF=\"HEADERLEN\",350\n\n\/\/HTTP connection\nAT+SHCONN\n\n\/\/Wait\nWAIT=1\n\n\n\/\/Get the connection status\nAT+SHSTATE?\n\n\/\/Wait\nWAIT=1\n\n\/\/Clear the HTTP header\nAT+SHCHEAD\n\n\/\/Wait\nWAIT=1\n\n\/\/Add header content\nAT+SHAHEAD=\"Accept\",\"text\/html, *\/*\"\n\n\/\/Wait\nWAIT=1\n\n\/\/Add header content\nAT+SHAHEAD=\"User-Agent\",\"IOE Client\"\n\n\/\/Wait\nWAIT=1\n\n\/\/Add header content\nAT+SHAHEAD=\"Content-Type\",\"application\/x-www-form-urlencoded\"\n\n\/\/Wait\nWAIT=1\n\n\/\/Add header content\nAT+SHAHEAD=\"Connection\",\"keep-alive\"\n\n\/\/Wait\nWAIT=1\n\n\/\/Add header content\nAT+SHAHEAD=\"Cache-control\",\"no-cache\"\n\n\/\/Setup POST data\nAT+SHBOD=23,10000\n\n\/\/Wait\nWAIT=1\n\n\/\/Send the form data\nparm1=data1&amp;parm2=data2\n\n\n\/\/Make the HTTP POST request\nAT+SHREQ=\"http:\/\/www.httpbin.org\/post\",3\n\n\/\/Wait\nWAIT=7\n\n\n\/\/Disconnect HTTP\nAT+SHDISC\n\n\n<\/pre>\n<p>Output of the script in the&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>&nbsp;tool.<\/p>\n<pre style=\"color: blue; background-color: #ffffcc; border: 1px solid black;\">Sending AT query..\nAT\n\nOK\nSuccessfull response for AT query..\n\nEnabling echo and verbose mode\nATE1V1\n\nOK\nAT+CGMM\n\nSIMCOM_SIM7080G\n\nOK\nModel Number : SIMCOM_SIM7080G\nAT+CGMI\n\nSIMCOM_Ltd\n\nOK\nManufacturer : SIMCOM_Ltd\nAT+CGNAPN\n\n+CGNAPN: 1,\"soracom.io\"\n\nOK\nAT+CNACT=0,1\n\nERROR\nAT+SHREQ?\n\n+SHREQ: http:\/\/www.httpbin.org\/put,3\n\nOK\nAT+SHCONF=\"URL\",\"http:\/\/www.httpbin.org\"\n\nOK\nAT+SHCONF=\"BODYLEN\",1024\n\nOK\nAT+SHCONF=\"HEADERLEN\",350\n\nOK\nAT+SHCONN\n\nOK\nAT+SHSTATE?\n\n+SHSTATE: 1\n\nOK\nAT+SHCHEAD\n\nOK\nAT+SHAHEAD=\"Accept\",\"text\/html, *\/*\"\n\nOK\nAT+SHAHEAD=\"User-Agent\",\"IOE Client\"\n\nOK\nAT+SHAHEAD=\"Content-Type\",\"application\/x-www-form-urlencoded\"\n\nOK\nAT+SHAHEAD=\"Connection\",\"keep-alive\"\n\nOK\nAT+SHAHEAD=\"Cache-control\",\"no-cache\"\n\nOK\nAT+SHBOD=23,10000\n\n&gt; parm1=data1&amp;parm2=data2\n\nOK\nAT+SHREQ=\"http:\/\/www.httpbin.org\/post\",3\n\nOK\n\n+SHREQ: \"POST\",200,504\nAT+SHDISC\n\nOK\n\n\n\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/zLK1mdGecuA\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Steps to test HTTP GET with SIM7070, SIM7080 Modules Verify that the device is registered with the network provider Query the network using the AT+CGNAPN command Activate the network bearer using the AT+CNACT command and verify that the activated bearer &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/http-testing-with-simcom-sim7070-sim7080-modules\/\">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-143963","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/143963","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=143963"}],"version-history":[{"count":13,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/143963\/revisions"}],"predecessor-version":[{"id":145084,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/143963\/revisions\/145084"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=143963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}