AirPrime and HL7548 AT Commands Interface Guide Rev10 0

Table Of Contents
4116303 Rev 10.0 August 10, 2017 294
AT Commands Interface Guide
Appendix
16.6. UDP Commands Examples
16.6.1. Client Mode
AT&K3
Hardware flow control activation
OK
AT+KCNXCFG=1,"GPRS","APN","log","password",,,
OK
Set GPRS parameters (APN, login,
password)
AT+KUDPCFG=1,0
+KUDPCFG: 1
OK
Create a new UDP socket (returned session
1) with the parameters associated to the
connection profile ID number 0
AT+KUDPSND= 1,"82.234.17.52",32,18
CONNECT
Send UDP data after “CONNECT”
<…Data sent…>
--EOF--Pattern--
OK
+KUDP_DATA: 1,35
Received notification that indicates the
presence of 35 bytes in the socket
AT+KUDPRCV=1, 35
Try to read 35 bytes from session 1
CONNECT
This is a simple UDP Protocol test
--EOF--Pattern--
OK
+KUDP_RCV: "82.234.17.52",32
+KUDP_DATA: 1,35
Received notification that indicates the
presence of 35 bytes in the socket
AT+KUDPRCV=1, 18
CONNECT
Try to read 18 bytes from session 1
This is a simple
--EOF--Pattern--
OK
+KUDP_DATA_MISSED: 1,17
There are 17 unread bytes left and missed in
the UDP socket
AT+KUDPCLOSE=1
OK
Close the UDP session
AT+KUDPCFG?
No sessions are available anymore
OK