Download Multitech MultiModem Cell MTCBA-C1 User guide
Transcript
Chapter 17 – TCP APP AT Commands TCP/IP Service Option Handling +WIPOPT Description: The +WIPOPT command is used to read and/or configure different parameters on sockets. Syntax: Command syntax: AT+WIPOPT=<protocol>,<idx>,<action>,<optnum>[,<optval>] Command Possible Responses AT+WIPOPT=2,1,1,0 +WIPOPT: 2,0,56228 Note: Display local port number for connection on TCP OK socket 1 Note: Display is +WIPOPT: <protocol>,<optnum>,<result> AT+WIPOPT=2,1,1,2 +WIPOPT: 2,2,"192.168.13.34" Note: Display peer IP address of the connection on TCP OK socket 1 AT+WIPOPT=1,2,1,6 +WIPOPT: 1,6,23 Note: Display bytes available to be read on UDP socket 2 OK AT+WIPOPT=2,2,2,8,32 OK Note: Set Time to Live for TCP socket 2 to value of 32 AT+WIPOPT? ERROR Values: <protocol> 1: UDP 2: TCP client 3: TCP server <idx> 1-8 Socket or session identifier <action> 1 Read (<optval> not allowed) 2 Write (<optval> required) <optnum> Option to read or write (see Options and Values listed next) <optval> Value of option to write (see Options and Values listed next) Options and Values: Optnum 0 1 2 3 Value Format 0-65535 0-65535 String 0-1 4 536-36864 5 536-65535 6 0-65535 7 0-1 Description UDP Local port number of the socket Port of the peer socket Address of the peer socket Specifies whether the socket is bound to a peer socket or not (see 18.11.5) default: 1 Size in bytes of the local transmit buffer. default: 10240 Size in bytes of the local receive buffer. default: 16384 Number of bytes that can currently be read on the socket When set to TRUE, TCP packets are sent immediately, even if the buffer is not full enough. When set to FALSE, the packets will be sent either, a) by combining several small packets into a bigger packet b) when the data is ready to send and the stack is idle. default: 0 Multi-Tech Systems, Inc. CDMA C1 AT Commands Reference Guide (PN S000478C) R R R R TCP Client R R R R TCP Server R - - RW RW - RW RW R R - - RW RW 105