{"id":145478,"date":"2020-06-21T07:55:38","date_gmt":"2020-06-21T14:55:38","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=145478"},"modified":"2020-06-21T08:03:24","modified_gmt":"2020-06-21T15:03:24","slug":"atcasend-send-tcp-udp-data-with-simcom-sim70xx-modules","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/atcasend-send-tcp-udp-data-with-simcom-sim70xx-modules\/","title":{"rendered":"AT+CASEND &#8211; Send TCP\/UDP 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_casend.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+caopen\n\/\/AT+CASEND command is used to send tcp\/udp data in Simcom SIM70XX modules\n\/\/Check SIMCOM Module AT Command documentaiton\n\n\/\/Get the support for the commands\nAT+CASEND=?\n\n\/\/Wait\nWAIT=1\n\n\/\/Activate the network\nAT+CNACT=0,1\n\n\/\/Wait\nWAIT=5\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\/\/Send\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+CASEND=?\n\n+CASEND: (0-12),(1-1459),(100-10000)\n\nOK\nAT+CNACT=0,1\n\nOK\n\n+APP PDP: 0,ACTIVE\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 14:57:16 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%3Agglun75h-jZh00lhoDZhNk2e1YvKitA5.1qtUd5MD9l2TO4U%2BIrhD69jJ0T9Oz5lXZ7P0NUJtlgI; 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\/gr1bzYD4T-U\" 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+caopen \/\/AT+CASEND command is used to send tcp\/udp data in Simcom SIM70XX modules \/\/Check SIMCOM Module AT Command documentaiton \/\/Get the support for the commands AT+CASEND=? \/\/Wait WAIT=1 \/\/Activate &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/atcasend-send-tcp-udp-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-145478","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/145478","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=145478"}],"version-history":[{"count":3,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/145478\/revisions"}],"predecessor-version":[{"id":145483,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/145478\/revisions\/145483"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=145478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}