{"id":143898,"date":"2020-05-23T07:41:19","date_gmt":"2020-05-23T14:41:19","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=143898"},"modified":"2020-05-23T07:41:22","modified_gmt":"2020-05-23T14:41:22","slug":"atshconn-set-up-http-connection-with-simcom-modules","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/atshconn-set-up-http-connection-with-simcom-modules\/","title":{"rendered":"AT+SHCONN -Set up HTTP connection with Simcom modules"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/05\/at_shconn.png\" alt=\"\" class=\"wp-image-32155\"\/><\/figure>\n\n\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>\n<\/p>\n<pre style=\"color: blue; background-color: white; border: 1px solid black;\">\/\/Script: at+shconn - HTTP connection\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+SHCONF=?\n\n\/\/Wait\nWAIT=1\n\n\/\/Verify that network bearer is active\nAT+CNACT?\n\n\/\/Wait\nWAIT=1\n\n\/\/Get the current configured values for HTTP\nAT+SHCONF=\"URL\",\"http:\/\/www.google.com\"\n\n\/\/Wait\nWAIT=1\n\n\/\/Setup HTTP body length\nAT+SHCONF=\"BODYLEN\",1024\n\n\/\/Wait\nWAIT=1\n\n\/\/Setup HTTP head length\nAT+SHCONF=\"HEADERLEN\",350\n\n\/\/Wait\nWAIT=1\n\n\/\/Make  the HTTP connection\nAT+SHCONN\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<\/a><\/p>\n<p><\/p>\n<pre style=\"color: blue; background-color: #ffffcc; border: 1px solid black;\">AT+SHCONF=?\n\n+SHCONF: \"URL\",512\n\n+SHCONF: \"TIMEOUT\",(30-1800)\n\n+SHCONF: \"BODYLEN\",(0-4096)\n\n+SHCONF: \"HEADERLEN\",(0-350)\n\n+SHCONF: \"POLLCNT\",(1-100)\n\n+SHCONF: \"POLLINTMS\",(500-5000)\n\n+SHCONF: \"IPVER\",(0,1)\n\nOK\nAT+CNACT?\n\n+CNACT: 0,1,\"10.153.58.89\"\n+CNACT: 1,0,\"0.0.0.0\"\n+CNACT: 2,0,\"0.0.0.0\"\n+CNACT: 3,0,\"0.0.0.0\"\n\nOK\nAT+SHCONF=\"URL\",\"http:\/\/www.google.com\"\n\nOK\nAT+SHCONF=\"BODYLEN\",1024\n\nOK\nAT+SHCONF=\"HEADERLEN\",350\n\nOK\nAT+SHCONN\n\nOK\n\n\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/VO8DXY2-uHI\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>","protected":false},"excerpt":{"rendered":"<p>Try the below script in the AT Command Tester tool \/\/Script: at+shconn &#8211; HTTP connection \/\/The AT commands in this script are applicable for Simcom modules only \/\/Check SIMCOM Module AT Command documentation \/\/Get the support for the commands AT+SHCONF=? &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/atshconn-set-up-http-connection-with-simcom-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":"atcommands.php","meta":{"footnotes":""},"class_list":["post-143898","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/143898","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=143898"}],"version-history":[{"count":1,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/143898\/revisions"}],"predecessor-version":[{"id":143900,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/143898\/revisions\/143900"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=143898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}