{"id":145495,"date":"2020-06-21T08:28:09","date_gmt":"2020-06-21T15:28:09","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=145495"},"modified":"2020-06-21T08:34:25","modified_gmt":"2020-06-21T15:34:25","slug":"atcarecv-receive-tcp-udp-response-data-with-simcom-sim70xx-modules","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/atcarecv-receive-tcp-udp-response-data-with-simcom-sim70xx-modules\/","title":{"rendered":"AT+CARECV &#8211; Receive TCP\/UDP response data with Simcom SIM70XX  modules"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/06\/at_carecv.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+carecv\n\/\/AT+CARECV command is used to receive the tcp\/udp data in Simcom SIM70XX modules\n\/\/Check SIMCOM Module AT Command documentaiton\n\n\/\/Get the support for the commands\nAT+CARECV=?\n\n\/\/Wait\nWAIT=1\n\n\/\/Open TCP connection\n\/\/CID, PDP Index, connection type, server address, port\nAT+CAOPEN=0,0,\"TCP\",\"postman-echo.com\",80\n\n\/\/Wait\nWAIT=5\n\n\/\/Send\nAT+CASEND=0,46\n\n\/\/Send HTTP get as the TCP data\n<cr><lf>GET https:\/\/postman-echo.com\/ip HTTP\/1.0<cr><lf>\n\n\/\/Wait for response\nWAIT=5\n\n\/\/Receive the TCP response\n\/\/Wait for the +CADATAIND indication before reading the TCP response\nAT+CARECV=0,500\n\n\/\/Wait for response\nWAIT=3\n\n\/\/Close the connection\nAT+CACLOSE=0\n\n\n<\/lf><\/cr><\/lf><\/cr><\/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+CARECV=?\n\n+CARECV: (0-12),(1-1459)\n\nOK\nAT+CAOPEN=0,0,\"TCP\",\"postman-echo.com\",80\n\n+CAOPEN: 0,0\n\nOK\nAT+CASEND=0,46\n\n&gt; \nOK\n\n+CASEND: 0,0,46\n\n+CADATAIND: 0\n\n+CASTATE: 0,0\nAT+CARECV=0,500\n\n+CARECV: 354,HTTP\/1.1 200 OK\n\nDate: Sun, 21 Jun 2020 15:30:24 GMT\n\nContent-Type: application\/json; charset=utf-8\n\nContent-Length: 23\n\nConnection: close\n\nETag: W\/\"17-vObpD0NlqE3iYPjucfZxK26eEkk\"\n\nVary: Accept-Encoding\n\nset-cookie: sails.sid=s%3A_iCBuQ-OJbIljn2OUhBvm3O7zug0y2Ne.32j9xE9KEQMVDSmL4VbsGwBY%2Bl2xpflRwDDLpkNE3Po; Path=\/; HttpOnly\n\n\n\n{\"ip\":\"34.219.166.193\"}\n\nOK\nAT+CACLOSE=0\n\nTCP connection is closed by remote server\n\nOK\n\n\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/KgzsmWcY8Bg\" 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+carecv \/\/AT+CARECV command is used to receive the tcp\/udp data in Simcom SIM70XX modules \/\/Check SIMCOM Module AT Command documentaiton \/\/Get the support for the commands AT+CARECV=? \/\/Wait WAIT=1 &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/atcarecv-receive-tcp-udp-response-data-with-simcom-sim70xx-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-145495","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/145495","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=145495"}],"version-history":[{"count":2,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/145495\/revisions"}],"predecessor-version":[{"id":145499,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/145495\/revisions\/145499"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=145495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}