我想用A6 GSM/GPRS模块将数据发送到云服务。我正在使用以下AT命令:
// Setting up network
AT+CGATT?
AT+CGATT=1
AT+CGDCONT=1,"IP","internet"
AT+CGACT=1,1
AT+CIPSTATUS
AT+CIFSR
// Start the TCP/IP connection to the server
AT+CIPSTART="TCP","54.86.132.254",80 // PROBLEM STARTS HERE
AT+
对于基于SAGEM HiLo GPRS的数据通信,它具有TCP/IP协议栈,有两种连接方式:
(1)使用基本的GPRS命令,然后使用ppp拨号将调制解调器连接到公共网络/类似Internet
AT+CGDCONT=1,"IP","APN","0.0.0.0",0,0
OK
atd*99***1#
CONNECT
(2)使用GPRS attach,然后使用TCP套接字命令,例如
at&k3
OK
AT+KCNXCFG=0,"GPRS","APN","log","pass
word