background image

Appendix 3

Serial Port Data

It is not practicable for data to be sent over the network one character at a time. Therefore

Netiom-UDP packages the data for onward transmission.

As each character is received from the serial port it is placed into a 64 byte buffer. When a

packet is complete with either a carriage return / line feed pair or a break of transmission as

defined by the user it is packed into a UDP packet and transmitted.

If the package size reaches the buffer limit again it is packaged up and sent to the remote

end.

Inherent  in  this  process  is  a  transmission  latency.  Transmission  at  the  remote  end  will  not

commence until reception at the local end is complete (or the buffer is full). Systems using the

serial port must take this latency into account especially if retries and timeouts are employed.

Problems may also be encountered if large amounts of data is to be transmitted. Netiom-UDP

uses a strategy of acknowledgements and retries to minimise the effect of lost data packets.

However  Netiom-UDP  has  limited  storage  for  holding  data  for  retransmission  and  if  an

acknowledgement has not been received before another packet is ready for transmission the

new packet will be transmitted and the previous pack discarded. Normally this will not cause

problems  as  the  data  loss  is  relatively  rare  but  critical  data  should  be  checked  within  the

receiving application.

Summary of Contents for NETIOM-UDP

Page 1: ...ion may also help with problem solving Details of how Netiom UDP establishes and controls the link are in the Appendices This information is provided for those who are interested in the internal worki...

Page 2: ...s will flicker off every few seconds as it detects normal network polling Red is the transmit indication This will switch off when data is transmitted from Netiom UDP It is normally on The programming...

Page 3: ...em and download to Netiom UDP using the Write To NETIOM button on the general page 12 Remove the programming link The red LED should now flicker once or twice 13 Wait for about 5 seconds and replace t...

Page 4: ...lts from the file DefaultConfig txt If you need a different set of defaults you can overwrite this file with your own values If you have several different configurations then these can be saved as sep...

Page 5: ...should be avoided as these are generally pre allocated to well known services Connections The connections section defines how the link is established and maintained In client mode the Netiom UDP will...

Page 6: ...en the timeout value can be specified in the range 20mS to 20 seconds Note that it is important that both ends of the link have the same baud rate as there is limited buffering within the Netiom UDPs...

Page 7: ...the internal 5 Volt supply rail via a 10K resistor The input can be directly interfaced to TTL and CMOS outputs The input voltage should not exceed 5 Volts In addition the inputs can use clean contact...

Page 8: ...which plug directly into the 10 way header Note that if these outputs are to drive inductive loads such as relays and motors then the load must have some form of back EMF suppression fitted IF SUPPRES...

Page 9: ...nection is via a ribbon cable to the output header If all 16 outputs are to be displayed then two VIOM Display modules will be required Relay Module The Relay module consists of 8 single pole change o...

Page 10: ...em Check that power is connected and that it is the correct polarity Problem The green LED is off but the red and yellow are on Solution This is an ethernet connection problem Make sure that the ether...

Page 11: ...t input status The IP address will be 255 255 255 255 and the MAC address will be 0xFFFFFFFF both defined as broadcast values The target will recognise that this is a packet from a Netiom UDP and will...

Page 12: ...e is received then Netiom UDP will immediately transmit a message irrespective of the state of the update period This message will be marked as urgent and assigned a message number On receiving this m...

Page 13: ...ion at the remote end will not commence until reception at the local end is complete or the buffer is full Systems using the serial port must take this latency into account especially if retries and t...

Page 14: ...binary byte and is used to ensure that type R messages do not send multiple strings over the serial port Normally this value is incremented and allowed to roll over for each non R type message If a ty...

Page 15: ...d to roll over for each non R type message When a type R message is sent it uses the Message Number of the previous message Note that a value of zero is never sent Digital Input Data is a 16 character...

Reviews: