{"id":21449,"date":"2019-03-15T05:45:34","date_gmt":"2019-03-15T12:45:34","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=21449"},"modified":"2019-03-15T06:47:07","modified_gmt":"2019-03-15T13:47:07","slug":"tcp-ip-testing-with-simcom-sim7000-sim800-and-sim53xx-modules","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/tcp-ip-testing-with-simcom-sim7000-sim800-and-sim53xx-modules\/","title":{"rendered":"TCP\/IP testing with Simcom SIM7000, SIM800 and SIM53XX Modules"},"content":{"rendered":"<h3>Steps to test TCP\/IP with SIM7000, SIM800 and SIM53XX Modules<\/h3>\n<ul>\n<li>Verify that the device is registered with the network provider<\/li>\n<li>Set up the APN using the AT+CSTT command<\/li>\n<li>Get the local IP address with AT+CIFSR comamnd<\/li>\n<li>Bring up the wireless connection using the AT+CIICR command<\/li>\n<li>Start the TCP connection with AT+CIPSTART command<\/li>\n<li>Once TCP connection has been successfully established, send data using the AT+CIPSEND command.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a> Tool provides an interface to test the TCP connection with the Simcom modules. Enter the APN information. Use the default server\/port or enter the server you want to connect.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7000a_tcp_connection2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21450\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7000a_tcp_connection2.png\" alt=\"\" width=\"860\" height=\"736\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7000a_tcp_connection2.png 860w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7000a_tcp_connection2-300x257.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7000a_tcp_connection2-768x657.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7000a_tcp_connection2-600x513.png 600w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n<p>TCP function can also be tested with script mode in the\u00a0<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>\u00a0tool.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7000a_tcp_script_mode.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21457\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7000a_tcp_script_mode.png\" alt=\"\" width=\"862\" height=\"732\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7000a_tcp_script_mode.png 862w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7000a_tcp_script_mode-300x255.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7000a_tcp_script_mode-768x652.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7000a_tcp_script_mode-600x510.png 600w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/a><\/p>\n<p>Try the script in\u00a0<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>\u00a0tool.<\/p>\n<pre style=\"color: blue; background-color: white; border: 1px solid black;\">\/\/Script: simcom_tcp_7000x_800x_53xx.at\n\/\/Use this script to test TCP AT commands with Simcom modules.\n\/\/This script can be used on following Simcom modules-\n\/\/SIM7000X, SIM800X, SIM53xx\n\n\/\/Set the APN\nAT+CSTT=\"soracom.io\"\n\nWAIT=2\n\n\/\/Bring up Connection...\nAT+CIICR\n\nWAIT=2\n\n\/\/Get the local IP Address\nAT+CIFSR\n\nWAIT=2\n\n\/\/Start the TCP connection\nAT+CIPSTART=\"TCP\",\"postman-echo.com\",\"80\"\n\nWAIT=3\n\n\/\/Send client data\nAT+CIPSEND\n\nWAIT=2\n\n\/\/Send the HTTP formatted data\n&lt;cr&gt;&lt;lf&gt;GET https:\/\/postman-echo.com\/ip HTTP\/1.0&lt;cr&gt;&lt;lf&gt;Host:www.m2msupport.netConnection:keep-alive&lt;cr&gt;&lt;lf&gt;\n\n\/\/Send the CTRL+Z character\n^z\n\n<\/pre>\n<p>Output of the script in the\u00a0<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>\u00a0tool.<\/p>\n<pre style=\"color: blue; background-color: #ffffcc; border: 1px solid black;\">AT+CSTT=\"soracom.io\"\nOK\nAPN setup for TCP connection successful..\n\nAT+CIICR\nOK\nConnection bring up successful..\n\nAT+CIFSR\n10.153.58.89\nAT+CIPSTART=\"TCP\",\"postman-echo.com\",\"80\"\nOK\n\nCONNECT OK\nTCP connection success\n\nAT+CIPSEND\n&gt;\nGET https:\/\/postman-echo.com\/ip HTTP\/1.0\nHost:www.m2msupport.netConnection:keep-alive\n\n\u001a\n\nSEND OK\nHTTP\/1.1 200 OK\nContent-Type: application\/json; charset=utf-8\nDate: Fri, 15 Mar 2019 12:57:42 GMT\nETag: W\/\"15-jIJx5VbR\/rFNv8IxQMKrYBOY6lU\"\nServer: nginx\nset-cookie: sails.sid=s%3AY9MPv4AuczljI1VxOXv7VCMvC2fKhpHN.sJLKb8StuyV4%2FKfr2utFIvTfIFtMdAgM3anOaR6pl0I; Path=\/; HttpOnly\nVary: Accept-Encoding\nContent-Length: 21\nConnection: Close\n\n{\"ip\":\"18.195.64.41\"}\nCLOSED\nTCP connection is closed by remote server\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/mOC9aIpjaUg\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Steps to test TCP\/IP with SIM7000, SIM800 and SIM53XX Modules Verify that the device is registered with the network provider Set up the APN using the AT+CSTT command Get the local IP address with AT+CIFSR comamnd Bring up the wireless &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/tcp-ip-testing-with-simcom-sim7000-sim800-and-sim53xx-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-21449","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/21449","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=21449"}],"version-history":[{"count":5,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/21449\/revisions"}],"predecessor-version":[{"id":21463,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/21449\/revisions\/21463"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=21449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}