Configuration and Use | DART 300 Modem |
Closing TCP Server Sessions
The session remains open until one of these events occur:
•The command to
•An
•The session inactivity timeout (S30) expires. If this mechanism closes the session the modem will send the NO CARRIER result.
•The remote client issues the TCP closing handshake. The modem will send the
NO CARRIER result.
•The modem is reset or
Note that use of the H command to
After closing the session, the modem returns to command state and
Provided the modem is set to
8.3.2.Client Sessions
Client sessions are those in which the local device initiates a conversation with a server. There are two mechanisms for this: a host command to dial the target server, or
Issuing the Dial command (D) requires an intelligent host device, capable of handling faults if the connection fails.
Both UDP and TCP protocols use the same configuration and dialing sequence. (AT is omitted for brevity):
1.On
2.Optionally verify CDPD channel acquisition and registration. You can manage this process as suits your need. If manual registration is selected, the Dial command can handle the network registration process using the NEI indexed by the
3.D<dest> to dial the server where <dest> is either the destination IP and port number or an index into the Friends List to use “quick dial”.
The IP of the destination can be any valid IP. Client sessions do not apply the Friends Only restrictions. If the Dial command is given bad syntax including an invalid destination IP or port number, then it will return the ERROR result code. This is also true if a “quick dial” index points to an empty or invalid entry in the Friends Only list.
UDP Client Connection
For UDP mode connections, the modem will reply with CONNECT following a successful dial command at which point you are in data state. This transition can happen without the modem being registered if configured with +WS179=0 (the default). If the modem was not registered, then the dial command will perform the task. When the CONNECT message is received, the
Page 70 | 2110212 Rev 1.0 |