中山市博安通通信技术有限公司
ZHONGSHAN B&T TECHNOLOGYCo., Ltd
4.6
ATPK-automatic data receiving mode
Set the automatic receive mode. The received data is in the same format as the
ATPR response in normal mode.
Only data is returned, and no other format is returned.
Success
[ATPK] OK
Fail
[ATPK] ERROR:<error_no>
enable:
0: disable automatic receiving
1: enable automatic receiving
1: Parameter error
2: An error occurred while enabling the automatic receive task.
// The UDP server reads the data
# ATPN=B&T-1,test123456
[ATPN] OK
# ATPS = 1400, 5
#
[ATPS] OK
[ATPS] con_id=2
# ATPI
Con_id: 1, server, TCP, address: 192.168.20.115, port: 4004, sockets: 0
Con_id: 2, server, udp, address: 192.168.20.115, port: 4005, sockets: 1
[ATPI] OK
# ATPK=1
[ATPK] OK
// Use the socket tool to send data to 192.168.20.115:4005
#
[ATPR] OK, 8,2,192.168. 20.112, 10086: the test of STR
4.7
ATPI-View Connection list
con_id :<con_id >,<server/seed(TCP client)/client>,\
<tcp/udp>,address:<IP ADDRESS>,port:<PORT>,socket:<socket id>
…
[ATPI] OK