{"id":21670,"date":"2019-03-20T23:21:01","date_gmt":"2019-03-21T06:21:01","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=21670"},"modified":"2019-03-21T22:37:50","modified_gmt":"2019-03-22T05:37:50","slug":"tcp-ip-testing-with-simcom-sim7500-and-sim7600-modules","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/tcp-ip-testing-with-simcom-sim7500-and-sim7600-modules\/","title":{"rendered":"TCP\/IP testing with Simcom SIM7500 and SIM7600 Modules"},"content":{"rendered":"<h3>Steps to test TCP\/IP with SIM7500and SIM7600 Modules<\/h3>\n<ul>\n<li>Verify that the device is registered with the network provider<\/li>\n<li>Set active PDP context&#8217;s profile number using the AT+CSOCKSETPN comamnd<\/li>\n<li>Set for non-transparent TCP\/IP application mode using the AT+CIPMODE command<\/li>\n<li>Ge the local IP address using the AT+IPADDR command<\/li>\n<li>Start the TCP connection with AT+CIPOPEN 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\/sim7500a_tcp_connection_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21671\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7500a_tcp_connection_2.png\" alt=\"\" width=\"864\" height=\"734\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7500a_tcp_connection_2.png 864w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7500a_tcp_connection_2-300x255.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7500a_tcp_connection_2-768x652.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7500a_tcp_connection_2-600x510.png 600w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/a><\/p>\n<p>TCP function can also 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<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7500a_tcp_connection_script.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21672\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7500a_tcp_connection_script.png\" alt=\"\" width=\"862\" height=\"737\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7500a_tcp_connection_script.png 862w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7500a_tcp_connection_script-300x256.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7500a_tcp_connection_script-768x657.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/03\/sim7500a_tcp_connection_script-600x513.png 600w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/a><\/p>\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: simcom_tcp_7500_7600.at\n\/\/Use this script to test TCP AT commands with Simcom modules.\n\/\/This script can be used on following Simcom modules-\n\/\/SIM7500X, SIM7600X\n\n\/\/Close any previous connection\nAT+NETCLOSE\n\nWAIT=2\n\n\/\/Set the PDP profile number to use\nAT+CSOCKSETPN=1\n\nWAIT=1\n\n\/\/Configure for non-transparent mode\nAT+CIPMODE=0\n\nWAIT=2\n\n\/\/Open the socket\nAT+NETOPEN\n\nWAIT=5\n\n\/\/Get the IP address\nAT+IPADDR\n\nWAIT=2\n\n\/\/Start the TCP connection\nAT+CIPOPEN=0,\"TCP\",\"postman-echo.com\",80\n\n\nWAIT=3\n\n\/\/Send client data\nAT+CIPSEND=0,46\n\nWAIT=2\n\n\/\/Send the HTTP formatted data\n<cr><lf>GET https:\/\/postman-echo.com\/ip HTTP\/1.0<cr><lf>\n\n\/\/Send the CTRL+Z character\n^z\n\n\n<\/lf><\/cr><\/lf><\/cr><\/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+NETCLOSE\n\nTCP connection is closed by remote server\n\nOK\n\n+NETCLOSE: 0\nTCP connection is closed by remote server\n\nAT+CSOCKSETPN=1\n\nOK\nAT+CIPMODE=0\n\nOK\nAT+NETOPEN\n\nOK\n\n+NETOPEN: 0\nAT+IPADDR\n\n+IPADDR: 10.162.227.83\n\nOK\nAT+CIPOPEN=0,\"TCP\",\"postman-echo.com\",80\n\nOK\n\n+CIPOPEN: 0,0\nTCP connection success\n\nAT+CIPSEND=0,46\n\n&gt;\nGET https:\/\/postman-echo.com\/ip HTTP\/1.0\n\n\nOK\n\n+CIPSEND: 0,46,46\n\nRECV FROM:52.7.244.138:80\n+IPD367\nHTTP\/1.1 200 OK\nContent-Type: application\/json; charset=utf-8\nDate: Thu, 21 Mar 2019 06:18:22 GMT\nETag: W\/\"15-UJIDSLObc+wQyi2G1XV4ugbseug\"\nServer: nginx\nset-cookie: sails.sid=s%3A7K1ksD52EVuupeW5SmKPNe9EJHdN0pdg.S3bLtUt0qHdkasbXzrxQxA7HbLG64q%2BiAv1jghwaBrQ; Path=\/; HttpOnly\nVary: Accept-Encoding\nContent-Length: 21\nConnection: Close\n\n{\"ip\":\"216.3.13.179\"}\n+IPCLOSE: 0,1\nTCP connection is closed by remote server\n\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/130swzWpn3E\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<div>&nbsp;<\/div>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/eJz_8Ae1YBM\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Steps to test TCP\/IP with SIM7500and SIM7600 Modules Verify that the device is registered with the network provider Set active PDP context&#8217;s profile number using the AT+CSOCKSETPN comamnd Set for non-transparent TCP\/IP application mode using the AT+CIPMODE command Ge the &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/tcp-ip-testing-with-simcom-sim7500-and-sim7600-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-21670","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/21670","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=21670"}],"version-history":[{"count":4,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/21670\/revisions"}],"predecessor-version":[{"id":21731,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/21670\/revisions\/21731"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=21670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}