Operation Guide
© 2022 Shanghai RaymonIoT Technology Co., Ltd.
X-C13SG_REV1.6_Operation Guide
X-C13SG
Shanghai RaymonIoT Technology Co., Ltd.
30
setting saved to flash.
1.3.3.55. AT+SOCKASEND
Function: Send Data to SOCKA at Command Mode
Format:
AT+SOCKASEND=<data_lenth><CR>
+ok<CR><LF><CR><LF>
Parameters:
data_lenth: Lenth of send data. Range: 0~1000 Byte
The UART port will wait 3 seconds for input after this command is sent OK. The data received from UART
port is sent to SOCKA. If the interval of two bytes is more than 10ms, the data will be sent instantly.
1.3.3.56. AT+SOCKARECV
Function: Receive Data from SOCKA at Command Mode
Format:
AT+SOCKARECV=<data_lenth><CR>
+ok=< data_lenth, data_content><CR><LF><CR><LF>
Parameters:
data_lenth: Lenth of receive data. Range: 0~1000 Byte
data_content: contents of receive data..
If not receive any data in 3 second, then feedback +ok=0.
1.3.3.57. AT+SOCKB
Function: Set/Query SOCKB parameters. Setting is valid immediately.
Format:
Query Operation:
AT+SOCKB<CR>
+ok=<protocol,port,IP><CR><LF><CR><LF>
Set Operation:
AT+SOCKB=<protocol,port,IP><CR>
+ok<CR><LF><CR><LF>
Parameters:
Protocol: Protocol type:
TCP: TCP client
UDP: UDP client
UDPS: UDP server
Port: Protocol Port in decimal, less than 65535
IP: Destination IP address or domain name, domain name length length <= 100
If set as UDP SERVER, the module will save the IP address and port of the latest UDP packet received. The
data will be sent to the saved IP address and port. If the module hasn’t saved any IP address and port
when power up. The data will be sent to the IP address and port which is set by this command.
If set as UDP,CLIENT, the data will always be sent to the IP address and port set by this command.
1.3.3.58. AT+SOCKBDIS
Function: Open/Close SOCKB TCP client link.
Format:
Query Operation: