Sierra Wireless 300 manual UDP Characteristics, UDP Receive Locking

Page 21

DART 300 Migration Guide

Difference Summary

3.2.4.UDP Characteristics

 

DART 200

DART 300

 

 

 

UDP Server

Supports multiple concurrent

Supports both single and

 

clients.1

multiple client sessions (by

 

 

setting +WS217).

 

(Receive locking with FIFO

(Receive locking with FIFO

 

queue)

queue and timer).

 

 

Server is active when

 

 

listening port +WS212 > 0.

Auto answer

Based on S0=1 and *A2 to

Based on S0=1 and listening

 

configure UDP Server mode.

port > 0.

Friends Only mode

Yes (up to 10 IP addresses)

Yes (up to 10 IP addresses)

 

 

 

Dials using “random”

When “Basic” UDP is

Always

source port number

disabled.

 

1On the DART 200, Basic UDP requires client and server to use the same port number. Auto answer is not supported in Basic UDP. The server must be in online mode (have previously dialled the client) in order to accept data packets from the client.

3.2.4.1.UDP Receive Locking

Both the DART 200 and DART 300 support receive locking to enable the modem to act as a server handling requests from multiple clients on a packet by packet basis. The models follow almost identical behaviour but require differing setups.

A server can receive calls from multiple client devices, or from one client using different source ports for different sessions. However, it can only save one client address and port, the one that was extracted from the last datagram received, for sending any replies. For this reason, if multiple clients are expected, the serving DART modem must use receive locking to delay accepting subsequent datagrams until a response is sent to the source of the prior datagram.

If receive locking is enabled on the DART 200, all datagrams arriving after the first one, regardless of their source address, are held in a First-In-First-Out (FIFO) buffer until a data transmission (reply) occurs, or the time out period expires, releasing the first datagram in the queue.

The only difference with the DART 300 is that datagrams arriving from the same source as the first one are not held unless another datagram from a different source has been received. That means that if there is only one calling client, datagrams are delivered as they are received, without waiting for a reply (or timeout) for each individual packet.

The DART 200 enables the receive lock when bit 2 of register S82 is set. The timeout is set in register S83. The value of the timeout is measured in tenths of a second; the default is 3.0 seconds. The feature is disabled when bit 2 of S82 is cleared, the default setting.

The feature is enabled on the DART 300 by setting +WS217=t where t is the timeout value in tenths of a second. Disable the feature by setting the timer to zero (+WS217=0), the default setting.

If the receive lock feature is not enabled, each UDP session must be closed (either directly by the local host, or S30 timeout) before another session can be established. An open session can only communicate with the single IP address and port of the first caller. Since each new UDP session from a client will usually have a different port number, even the original caller may not be able to re-connect.

2110291 Rev 1.0

Page 15

Image 21
Contents Sierra Wireless Dart 300 Cdpd Modem Important Notice Safety and HazardsPatents CopyrightRegulatory Information Contact Information RSA LicenseeContents Dart 300 Modem Migration Guide Comparative AT Command ReferenceIntroduction ReferencesDocument Structure Conventions Used in this Reference CurrencyDart 300 / SB300 Rev 1.0 November 8Sample UDP Setups +WS63=0 +WS62=0\Q0 +WS70=20Q0 default Disable Quiet mode F1 default Sample TCP Setups \J0 +WPSPNI=enter\O0 +WS45=1 S86=3 \J0 default +WS70=20 Serial Interface Specifications InterfacesDart RTS/CTS Control LinesModem Control Interface Packet Service InterfacesOperation Monitoring Network ConnectionChannel Acquisition Restrictions TCP Keep-Alive TCP CharacteristicsUDP Receive Locking UDP CharacteristicsPacket Assembly / Disassembly PAD Features Additional Control ConsiderationsEscape Sequence Packet Forwarding Packet Assembly Local EchoManual Transmission Automatic TransmissionSpecifications Modem FeaturesRadio Specifications Electrical Specification Basic AT Commands Dart +++ AT Command SetAT+++ 0xC0+WS45 Basic AT Commands Dart OptionsPAD Local On-Line Echo +WS62=1AT & Commands Dart Basic AT Commands DartSn=x Sn?S2=128 +WS60=0 S2=43 +WS60=1S126 \F0 = +WS63=1 AT \ Commands Dart Dart 300 Equivalent\F1-3 = +WS63=3 \J0 = +WPSPNI=enter+WPREG and +WPDEREG AT * Commands Dart Dart 300 Equivalent\R0 \R1K1-2 = = S30=0S30=t Lp= +WS212=pAip/n AT Commands Dart Dart 300 Equivalent= +WS197=n+WPNEI=ip Hspni/nWith +WPCHAN Ln = +WPCHAN=n = +WPCHAN=0 AT + Commands Dart 300 Specific CommandsStatus, and channel number Indication RSSI, channel state, registrationStatus Registers RegistersRegisters Dart B0,1 +WS56? S-Registers DartB2,3 B4,5 +WS173?101 100102 With +WPRSSIWS-Registers in the Dart 10 Dart 300 Result Codes Verbose Dart 300 Meaning Result Codes