AirPrime and HL7548 AT Commands Interface Guide Rev10 0

Table Of Contents
4116303 Rev 10.0 August 10, 2017 298
AT Commands Interface Guide
Appendix
16.6.3.4. KTCP_DATA and KUDP_DATA with Data Auto Retrieval
– Server Mode
AT+KTCPCFG=1,1,,13,1
+KTCPCFG: 1
OK
When <data_mode> = 1, all child
connections will display data in URC mode.
Data will be received by the URC
“+KTCP_DATA:”
AT+KTCPCNX=1
Open the listen port
OK
AT+KCGPADDR
+KCGPADDR: 1,"10.35.125.89"
OK
+KTCP_SRVREQ: 1,2
+KTCP_SRVREQ: 1,3
+KTCP_DATA: 2,10,0123456789
10 bytes have arrived in session 2
+KTCP_DATA: 3,8,01234567
8 bytes have arrived in session 3
Data are presented in the URC directly
AT+KUDPCFG=1,1,3000,1
+KUDPCFG: 4
OK
Open a UDP socket in server mode. Data
will be received by the URC
“+KUDP_DATA:”
+KUDP_DATA: 4,8,"202.170.131.76",2001,01234567
8 bytes have arrived. Data are presented in
the URC directly
16.7. FTP Commands Examples
16.7.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+KFTPCFG=1,"ftp.test.fr","userlogin","userpassword",21,
0
Set FTP server address, login, password and
port number
OK
AT+KPATTERN="--EOF--Pattern--"
Customize the End Of File pattern
OK
AT+KFTPSND=0,,"Dir","TestFile.txt",0
CONNECT
F6E6E656374696F6E20746573742E--EOF--Pattern--
Send data and store them in “TestFile.txt”
from the FTP server. Data are presented
with the EOF string.
OK