AirPrime and HL7548 AT Commands Interface Guide Rev10 0

Table Of Contents
4116303 Rev 10.0 August 10, 2017 295
AT Commands Interface Guide
Appendix
16.6.2. Server Mode
AT&K3
Hardware flow control activation
OK
AT+KCNXCFG=1,"GPRS","APN","log","password","0.0.0.0",
"0.0.0.0","0.0.0.0"
Set GPRS parameters (APN, login,
password)
OK
AT+KUDPCFG=1,1,3000
Set UDP listener (port 3000). Initiate the
server. Session ID is 1
+KUDPCFG: 1
OK
AT+KUDPCFG?
Check if the server is initiated
+KUDPCFG: 1,0,1,3000
OK
AT+KCGPADDR
Get local IP address
+KCGPADDR: 0, "192.168.0.71"
OK
+KUDP_DATA: 1,9
Data comes in from some client
AT+KUDPRCV=1,9
Read received data
CONNECT
DATA TEST--EOF--Pattern--
OK
+KUDP_RCV: "10.10.10.5",1111
This data was sent from "10.10.10.5"
(port:1111)
AT+KUDPSND=1,"10.10.10.5”,3100,18
CONNECT
<18 bytes data ended with "--EOF--Pattern--">
Send 18 bytes to a remote server (port:3100)
OK
AT+KUDPCLOSE=1
OK
Close the UDP server. The session is also
deleted at the same time
AT+KUDPCFG?
No sessions are available anymore
OK