Operation Guide

© 2022 Shanghai RaymonIoT Technology Co., Ltd.
X-C13SG_REV1.6_Operation Guide
X-C13SG
Shanghai RaymonIoT Technology Co., Ltd.
29
1.3.3.52. AT+SOCKALK
Function: Query if SOCKA TCP link already build-up.
Format:
AT+SOCKALK<CR>
+ok=<sta><CR><LF><CR><LF>
Parameters:
sta.: if module already setup TCP link
on: TCP link setup;
off: TCP link not setup;
1.3.3.53. AT+SOCKATO
Function: Set/Query SOCKA TCP timeout; Setting is valid after reset.
Format:
Query Operation:
AT+SOCKATO<CR>
+ok=<time><CR><LF><CR><LF>
Set Operation:
AT+SOCKATO=<time><CR>
+ok<CR><LF><CR><LF>
Parameters:
Time: TCP timeout time.
<= 600: 600s
>=0: (0 means no timeout);
Default: 300s
Module begin to count time when TCP channel don’t receive any data, clecherar time counter when TCP
channel receive any data. If the time counter reaches the TCPTO, the tcp channel will be break. If the
module work in TCP Client, it will connect the TCP server instantly and when the module work in TCP
Server, the TCP client device should make the connection itself.
1.3.3.54. AT+SOCKADIS
Function: Open/Close SOCKA TCP client link.
Format:
Query Operation
AT+SOCKADIS<CR>
+ok=<sta><CR><LF><CR><LF>
Set Operation:
AT+SOCKADIS =<sta[,opt]><CR>
+ok<CR><LF><CR><LF>
Parameters:
sta.: Response with TCP client connection setting status
on, Allow TCP client connection, default value
off, Forbidden or break TCP Client connection
opt: function code, save to flash or not, option parameter. if not fill in, default is 0
0: setting not saved to flash
1: setting saved to flash,
When setting, “off” means close TCP client link. After finish this command, module disconnect TCP link
and not connect again. “On” means open TCP link. After finish this command, module re-connect TCP
server right away.
If set opt to 0, the setting won’t saved to flash, module AT+SOCKADIS is on by default, if set opt to 1,