User guide
Data Communication and Host Modes
Rev 3.0D Jul.09 62
Tip: TCP auto answer (S0) may also be set simultaneously with UDP
auto answer. Then, when in the idle state, the modem will accept
either a TCP or UDP incoming packet, and enter a TCP or UDP
session as appropriate.
Reliable UDP
ReliableUDPaddsasimpleprotocolontopofUDPtoprovide
reliabledeliveryofdata.Whendataisreceivedfromthehost
serialport,a2byteheaderisaddedtothedata,containinga
messagetypeandasequencenumber.TheRavenXTwill
continuetosendthisdata
(bufferinganyreceiveddatainthe
meantime)untilitreceivesanacknowledgementwiththis
sequencenumber.Ifanacknowledgementisnotreceived
withinthetime‐outperiod(specifiedinS7),thedatawillbe
retransmitted.Thiswillcontinueuntilanacknowledgementis
receivedorthemodemisreset.Likewiseany
UDPpackets
receivedbytheRavenXTareexpectedtohavethissimple
header.TheRavenXTwillissueanacknowledgementforany
validpacketswhicharereceived.
ToconfiguretheRavenXTforanormalUDPsession,youneed
tosettheStartupModeDefaultto73(ATMD73).Ifyouare
usingtwomodems,configuretheDestinationIPandPortin
eachtopointtoeachother.Serialdatawillthenbesentreliably
betweenthetwo.
Caution: Although it adds reliability, the simple implementation of the
Reliable UDP mode in the does not check for duplicate packets.
UDP Multicast Mode
UDPMulticastmoderesultsinanydatareceivedfromthehost
serialportbeingsenttoalltheclientsintheaddresslist.The
remoteportnumberistakenfromS53.Toavoidfloodingthe
network,thepacketsaresenttoeachclientwitha20mspause
inbetween.Thereceipt
ofUDPpacketsworksasinnormal
UDPmode(i.e.boundbythevalueS53and/orAIP).Sinceit
maytakeawhiletotransmitthedatatoallhosts(especiallyif
all20Modbusentriesareusedandnameresolutionsare
required),newdatareceivedfromthehostport
isbuffered
untilcurrenttransmissionstoallhostsarefinished.
EnterthelistoftargetIPsintheaddresslist(ADDRLIST).The
indexnumbersinthelistarenʹtused.Configureforanormal
UDPsession.SettheStartupModeDefaultto83(ATMD83).
ConfiguretheDestinationporttomatchthedeviceportofthe
remotemodems.