OTC Wireless WiSER2400 manual UDP/IP Implementation, Outgoing UDP/IP packet IP Header

Page 18

Chapter 4 - UDP/IP Implementation

This section describes how the radio firmware composes RS232 data into UDP packets and sends them out, as well as how it receives the UDP packets and performs necessary checks. If all checks are passed, it retrieves the RS232 data from the packets, and sends the data out to RS232 cable.

When composing the UDP/IP packet header, the firmware only sets the important fields in the packet header, other less important fields are set with correct, fixed values and these values are unchanged during the operation time of the radio.

Upon receiving UDP/IP packets, the firmware only checks for validity of some important fields in the packet header. Others may be ignored.

Learning the destination MAC address from ARP packets.

After powered-up or its configuration is reset by the utility, the radio needs to learn the MAC address associated with the IP address of the destination device. It does this by composing an ARP packet and sends it out every second until it receives an ARP response from the intended device. This radio unit will not send and receive any thing until it receives the correct ARP response.

This part is very critical. So, if the radio seems not to communicate, please check the correctness of the “Dest unit’s IP address” using the utility.

Outgoing UDP/IP packet:

a.IP Header:

i.Version: 4. (Fixed)

ii.Header length: 5 (Fixed)

iii.TOS: 8 (Fixed)

iv.Total length = IP header length + UDP header length + serial data length

v.ID = some timing value. Not important.

vi.Flags and fragment offset = 0x4000. (Don’t fragment, Last fragment, fragment offset is 0)

vii.TTL: 128 (Fixed)

viii.Protocol: UDP (Fixed)

ix.IP Header check sum = this IP header’s checksum.

x.Source IP address = “IP Addr” in the “This Unit” portion in the configuration panel.

xi.Destination IP address = “IP Addr” in the “Dest. Unit” portion in the configuration panel.

xii.No option.

15

Image 18
Contents 802.11b Wireless Serial Port Adapter WiSER2400.IP User Guide Page Table of Content Introduction Introduction WiSER2400.IP WiFi Radio Key FeaturesInstallation of WiSER2400.IP PowerRS232 Connection Status LED’s Link YellowPage Installation of WiSER2400.IP Software System Requirements InstallationDiagnostic and Configuration Utility OverviewConnection and Overall Status Panel Radio Status PanelConfiguration Panel Configuration PanelPage RS232 and Wlan Statistics Panel RS232 StatisticsWlan Statistics Security Panel Encryption sub-panelWEP Keys Creation Sub-panel Create WEP Keys with Manual Entries Page UDP/IP Implementation Learning the destination MAC address from ARP packetsOutgoing UDP/IP packet IP Header UDP header Incoming UDP/IP packetNo Radio Link TroubleshootingBlank Pages Appear When Open the Utility Program No Data Transfer While the Radio Link is GoodPoor Link Quality Radio InterferenceTechnical Support Appendix a Limited Warranty WiSER2400 Hardware WiSER2400 SoftwareFCC ID MKZ0207232XG FCC Rules and Regulations Part FCC Radiation Exposure StatementPage Glossary