Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 11 of 18

Spectrum24 CB 1000 User Guide: Chapter 11 Serial Stream To Network Packet Conversion

Pages 79 to 82 of 134, from Spectrum24 CB 1000 User Guide

The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol CB-1000

Page 79

Serial Stream To Network Packet Conversion

Chapter 11

Serial Stream To Network Packet Conversion The serial port on the CB 1000 can be used for a range of different applications, though almost all applications involve bridging data between the CB 1000 serial port and one of the network interfaces. Data that is received on the serial port is packetized, then transmitted on either the radio or wired network interface to the network device configured to receive serial data. This section explains the process of packetizing data received on the serial port. Network devices transmit and receive data in a fundamentally different way than the serial port. Network devices operate on packets whereas serial devices operate on single characters. A network packet is a well-defined structure that includes enough information for the packet to be interpreted by different network devices, routed to the appropriate destination, and interpreted by the destination application. Each network packet carries some amount of application data. In the case of network packets for serial port applications, this data is the information that was received or should be transmitted on the serial port. Data transmission between serial devices is simpler. The most basic difference is that there is no requirement for data to be sent in well-defined packet structures. Each device sends serial data one character at a time. The other device must receive and process each character as it is received. Additionally, since serial communication is between two devices, there is no need to include information about the source and destination of the data. The CB 1000 interprets the serial data stream, collects it into data groups and then forms network packets with this data and transmit the packet to the network device which is set to receive the serial information.

Spectrum24 CB 1000 User Guide

71

Page 80

Serial Stream To Network Packet Conversion

The CB 1000 uses three user-configurable parameters to segment the serial character stream into groups of data for network packets. These parameters, line length, timeout, and delimiters, are described below. Keep in mind that the CB 1000 always uses all three of these parameters and when the conditions of any one of them are met a network packet is generated.

11.1 Line Length As data arrives on the serial port it is accumulated in a buffer in the CB 1000. The Line length parameter sets the maximum size for this buffer. When the number of characters in the buffer reaches the Line length value the entire buffer is sent as the data in a single network packet. The value of Line length can range from 1 to 1408 bytes. The default value is 1408.

11.2 Timeout Serial data arrives in small bursts of characters. When the CB 1000 receives a burst of data and waits for a period of time for additional data to be received. When additional data is received, it is added to the receive buffer, and the CB 1000 begins to wait again. If additional data is not received for longer than the period specified by the Timeout value, then the buffer of characters received is sent in a single network packet, and the process begins again. Specify the timeout value in 10 millisecond increments. The valid range for timeout is from 10 milliseconds (0.01 second) to 65000 milliseconds (650 seconds). The default value is 10 milliseconds.

11.2.1 Delimiters Some serial devices transmit and receive data in a known structure. In these cases there are often special characters that the transmitting device uses to indicate a complete message has been sent. These characters are referred to as delimiters. Specify up to five different delimiting characters to the CB 1000. When the CB 1000 adds one of these characters to the buffer of serial received characters the CB 1000 immediately sends that buffer as a network packet.

72

Spectrum24 CB 1000 User Guide

Page 81

11.2.2 Configuration To configure the Serial Packet parameters click on the Serial tab and then select the Packets tab. Using the descriptions in this section as a guide, enter the values for Line Length, Input Timeout, and Delimiters specific to the environment being configured.

Spectrum24 CB 1000 User Guide

73

Page 82

Serial Stream To Network Packet Conversion

74

Spectrum24 CB 1000 User Guide