Shashankm123
Junior Member level 1
I am trying to establish a TCP/IP communication for GSM module(SAgem Hilo V2). I am able to send data from device to server but can you suggest me how to send data from server to the module??
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
send_AT_command("AT&K3","OK",5); //hardware control activation
send_AT_command("AT+KCNXCFG=0,\"GPRS\",\"airtelgprs.com\"","OK",2); //set gprs parameters //For BSNL - bsnlnet, AIRTEL - airtelgprs.com
send_AT_command("AT+KCNXTIMER=0,60,2,70","OK",5); //set timers
send_AT_command("AT+CGATT=1","OK",5); //attach to network
send_AT_command("AT+KCNXPROFILE=0","OK",5);
send_AT_command("AT+KTCPCFG=0,0,\"203.200.35.69\",21001","OK",5);
send_TCP_command(len,"CONNECT",60); //To establish connection
You can send data, but only if the connection is established from the mobile equipment to the server. The mobile internet provider doesn't route ingoing connections to the mobile device. He can't due to lack of IP adresses. The IP address assigned to your mobile device is shared between multiple devices, involving port translation in the internet router of the GSM base station.Please Can you tell me why cant we send data from server to a GSM module??
I presume, by sending "from the server to the IP" you mean establish an IP connection from the server to the mobile device. This probably won't work for the reasons I explained previously.but when i try sending some data from the server to the IP which i got, I am not able to do so...