LISA-C200 & FW75-C200
AT commands examples - Application Note
CDMA-CS-12000
Preliminary
Page 13 of 41
5
TCP/IP AT commands
The CDMA cellular device activation procedure performs some automatic changes to the Non-Volatile Items of
the device. These changes are programmed and stored in the module for use while interacting with the Cellular
carrier. As part of the update of the values, some IP settings are also updated at the same time, these IP settings
become the Identification values the terminal uses while accessing Data services. There is no need for any
additional steps.
5.1
Socket Connect
Command
Response
Description
AT+CMEE=2
OK
Set verbose error messages
AT+USOCR=6
+USOCR:18
OK
TCP socket creation. In this example Socket #18 is
created.
The command response returns the created socket
identifier (in this case #18). If a new socket is created
(without closing the already existent), a new socket
identifier will be returned.
AT+USOCO=18,"195.34.89.241",7 OK
Connect socket #18 to port 7 of a remote host with IP
address 195.34.89.241.
The connection is now uniquely associated to the
socket. Socket is now ready for read/write operations.
AT+USOCL=18
OK
Closes the TCP socket number 18.
5.2
Socket Write
For TCP connectivity, creating a socket connection is required before proceeding to write a TCP Socket. Follow
the steps in section 5.1 to create a TCP Connection.
5.2.1
Binary mode
Command
Response
Description
AT+USOWR=18,2
@
Requests writing 2 data bytes into socket #18. Wait
“@” symbol indicating the data prompt is now open
(AT commands are not allowed in data prompt).
hi
+USOWR: 18,2
OK
Write data bytes.
It will not be possible to write fewer bytes than
the number specified by the AT+USOWR
command.
If more bytes are written than the threshold, the
remaining bytes will be truncated.
The interface is blocked until all bytes are
written.
If the command response is returned, then the data is
sent to lower level of protocol stack.
This is not an acknowledgment received from
the remote host confirming the data was
received.
LISA-C
FW-75