
Appendix B – Response Messages Examples
112 Universal IP AT Commands Reference Guide
Download a file from an FTP Server: AT#FTPGET
AT#FTPSERV="ftp.domain.com"
Note: FTP server used
AT#FTPUN="ftplogin"
Note: FTP username
AT#FTPPW="ftppassword"
Note: FTP password
AT#FTPGETFILENAME="upload.text"
Note: Name of the file stored in the FTP server
Ok_Info_DataBegin
Note: Switch from command to data mode. The data is sent
over the serial port. To end of data is notified by [ETX] sent
over the serial port. It switches from data to command mode.
Character is echoed.
OK
TCP Socket Response Messages
Open a TCP socket between machines. One machine acts as a caller (TCP client); the other acts as a listener (TCP
server). Both machines have to be connected to the Internet and set to the same TCP port.
Act as a TCP Server: AT#LTCPSTART
AT#TCPSERV=1,"255.255.255.255"
Note: No filter of the incoming TCP client
AT#TCPPORT=1,"23"
Note: TCP port between the TCP client and the TCP server
must be the same
AT#LTCPSTART=1
Note: Launch the listening mode; waiting for an incoming
TCP connection from a TCP client
OK
Ok_Info_WaitingForData
Note: Message sent over the serial port in case of
successful TCP socket opening (Telnet for example in the IP
address)
Data
Note: Data flow is bidirectional
Data
Note: Data flow is bidirectional
Note: The socket can be closed locally by the attached host
sending an [ETX] character (CTRL+C on the keyboard)
Note: The socket can be closed by the remote
Ok_Info_SocketClosed
OK
Comentarios a estos manuales