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 8 of 18

Spectrum24 CB 1000 User Guide: Chapter 8 Serial Port Protocol Configuration

Pages 57 to 68 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 57

Chapter 8

Serial Port Protocol Configuration This chapter describes how to configure the CB 1000 serial port protocols. When a Client Bridge receives a message from the serial port, the Client Bridge turns the message into a series of network packets. The transmitting Client Bridge adds the originating port address, the destination port address and other critical information to each packet. When the transmitting Client Bridge finds radio silence, the Client Bridge sends the packets. RMP Pipe is used in situations that require real time or high-reliability data transfer. TCP Pipe is useful in situations when poor radio reception is a problem. RMP Pipe is the preferred protocol for Serial Line Replacement applications.

8.1

RMP Pipe For applications where an RS-232 serial cable is being replaced by a pair of CB 1000s, or when CB 1000s are being used to form a broadcast topology (data is sent to all CB 1000s), the RMP Pipe protocol is used. In the RMP pipe protocol, the CB 1000 accepts a stream of data at its serial port and transmits it over the network to one or more receiving CB 1000s. When the data arrives at the receiving CB 1000, it is sent is out the serial port. The RMP Pipe protocol sends data to the receiving unit as though CB 1000s were connected via serial cables. The data is not filtered or interpreted by the CB 1000s. Use this protocol when the CB 1000 is used as a drop-in replacement for a serial cable. The RMP Pipe protocol has several configuration options that are designed to optimize data throughput and minimize packet loss according to the needs of any particular system.

8.1.1

Configuring RMP Pipe 1. Complete the Basic Radio Configuration instructions in Chapter 6 Basic Radio Configuration on page 37.

Spectrum24 CB 1000 User Guide

49

Page 58

Serial Port Protocol Configuration

Use Peer-to-Peer mode if replacing a serial line or serial network with two or more CB 1000s without using an access point. 2. Complete the General Serial Configuration instructions in 12.1 CB 1000 Basic Serial Configuration on page 75. 3. Click on the Serial tab. 4. Select the Protocol tab. 5. Select RMP Pipe in the Protocol field.

6. Click on the RMP Pipe tab. 7. If only two CB 1000s are used, do not change the settings from their default values. The default values allow two units to automatically detect each other and establish a connection. If more units are used configure each RMP Pipe Parameter as appropriate.

50

Spectrum24 CB 1000 User Guide

Page 59

Serial Port Protocol Configuration

8.1.2

RMP Pipe Parameters •

Source Address

The RMP address is used to identify the CB 1000s when sending serial data to each other. The RMP Pipe value of default enables the CB 1000 to use its unique serial number as the RMP address. It is not necessary to change this setting. •

Source Address Filter

The CB1000 only accepts data coming from the specified address. For example, if the entry is set to 1234, only data originating from a CB 1000 with the RMP address of 1234 is accepted. All other data is ignored. The default value none allows data from any RMP address to be accepted. Change the Source Address Filter value only when there are multiple RMP Passthrough Serial Line Replacement installations in close proximity.

Spectrum24 CB 1000 User Guide

51

Page 60

Serial Port Protocol Configuration

•

Destination Address

The CB 1000 sends data received on the serial port to this address. Enter the RMP address of another CB 1000 for direct serial line replacement. Other possible values are dynamic (default) or broadcast. The dynamic value returns data to the CB 1000 data was received from. Using the value of dynamic allows two CB 1000s to communicate to each other. Entering broadcast sends data to all CB 1000s set to use RMP Pipe. •

Transmit Try Count

For dynamic data, this count specifies the number of attempts the CB 1000 makes to transmit each RMP packet of data. Ensure the CB 1000 is in range and powered up to reduce the possibility of transmission failures. When failures occur, data is lost if additional attempts are not made. This count allows the user to specify how many attempts to take at re-transmitting data. The maximum is 65,000 retries. The default is infinite, which causes each packet to be retried until successfully sent. Select the Transmit Try Count based on the sensitivity of the application to data delay and/or data loss. •

Transmit Retry Interval

This setting determines the time period to wait between re-transmission attempts. The value is specified in 1/100ths of a second, 100 (default) equals 1 second. The maximum value is 65000. •

I/O Control

I/O control is only relevant to serial line replacement applications that use the RMP protocol. I/O control defines control over digital inputs and outputs of the CB 1000 separately from the data lines. Digital input and output are shared with the flow control lines (RTS, DTR, CTS, and DSR), but in this mode the CB 1000 does not interpret them as flow control signals. They give the ability to send digital data from one device to another without interpretation by the CB 1000. Use of Hardware Flow control on lines that have been enabled for I/O Control is not allowed.

52

Spectrum24 CB 1000 User Guide

Page 61

Serial Port Protocol Configuration

8.2

TCP Pipe TCP Pipe, similar to RMP Pipe, makes no changes to the serial data stream. TCP Pipe differs from RMP Pipe by creating two independent network connections for transmitted and received data. Using two connections allows each CB 1000 to detect conditions when it has lost radio contact with the CB 1000. In this configuration, each CB 1000 simultaneously acts as a client and a server. 1. Complete the Basic Radio Configuration instructions in 6.1 Configuration of the Radio Settings on page 37. Use Peer-to-Peer mode if replacing a serial line or serial network with two or more CB 1000s without using an access point. 2. Complete the Network Configuration instructions in Chapter 7 Network Configuration on page 43. 3. Complete the General Serial Configuration instructions 7.1 General Serial Configuration on page 44.

Spectrum24 CB 1000 User Guide

53

Page 62

Serial Port Protocol Configuration

4. Click the Serial tab.

5. Select the Protocol tab. 6. Click on the TCP Pipe tab.

54

Spectrum24 CB 1000 User Guide

Page 63

Serial Port Protocol Configuration

7. Set the Listen on port number for each unit to match the Connect to port number of the opposite unit. The defaults for both of these ports are 4000. Ensure a matching configuration by leaving the default values on both CB 1000s. 8. Enter the IP address of the opposite unit in the Connect to IP field. 9. The Re-connect after shutdown Listening Port and Connecting Port are checked by default. This feature allows the CB 1000s to re-establish communication after one of the CB 1000s loses communication with the other. For example, if one of the CB 1000s loses power or loses radio communication, the unit re-connects if this feature is enabled. 10. Click the Update And Reset Unit button.

Spectrum24 CB 1000 User Guide

55

Page 64

Serial Port Protocol Configuration

8.3 Network Serial Port Configuration This section describes how to configure the CB 1000 as a network serial port. This is a standard configuration for connecting a client serial device with a network server. Connection to a network serial port is accomplished over a TCP/IP socket connection. Any program that uses standard TCP/IP network sockets can communicate with the serial port of the CB 1000. Once a socket is established to the CB 1000, any data written to the socket is sent out the serial port and any data received by the serial port is returned via the socket connection. The CB 1000 network serial port may be used in two modes: •

TCP Listen Port

•

TCP Connect Port.

In the TCP Listen Port mode before any serial communication is possible the socket connection is made by the network program for the CB 1000 to communicate. For example, use the TCP Listen Port if a central server expects to open a TCP/IP socket connection to the CB 1000. In the TCP Connect Port mode the CB 1000 establishes a socket connection to the IP address and port number specified in the configuration. For example, use the TCP Connect Port if the system expects the CB 1000 to open a TCP/IP socket connection to a central server. The following procedures configure CB 1000 as a network serial port. 1. Complete the configuration of the basic radio settings instructions in 6.1 Configuration of the Radio Settings on page 37. 2. Complete the Network Configuration instructions in Chapter 7 Network Configuration on page 43. 3. Complete the General Configuration instructions 7.1 General Serial Configuration on page 44.

56

Spectrum24 CB 1000 User Guide

Page 65

Serial Port Protocol Configuration

4. Click the Serial tab. 5. Select the Protocol tab. TCP Listen Port displays.

Spectrum24 CB 1000 User Guide

57

Page 66

Serial Port Protocol Configuration

8.3.1

TCP Listen Port Complete the configuration described in steps 1-4 on page 56 then follow the steps below: 1. Click on TCP Listen Port from the Protocol list. 2. Click on the Listen Port tab.

3. Type the port number the CB1000 listens for a connection. This is the port number the application uses to connect to the CB 1000. The default is 4000. 4. For most applications, leave the Reconnect after shutdown box checked. Check this box to accept a new connection if the active one closes. 5. Click the Update And Reset Unit button.

58

Spectrum24 CB 1000 User Guide

Page 67

Serial Port Protocol Configuration

8.3.2

TCP Connect Port Complete the configuration described in steps 1-4 on page 56 then follow the steps below: 1. Select the Protocol tab.

Spectrum24 CB 1000 User Guide

59

Page 68

Serial Port Protocol Configuration

2. Click on TCP Connect Port from the Protocol list. 3. Click on the Connect Port tab.

4. Enter the IP address of the device the CB 1000 is connecting to in the Connect to IP field. 5. Type the port number of the device the CB 1000 is connecting to in the Connect to Port field. The default is 4000. 6. For most applications, leave the Reconnect after shutdown box checked. Check this box to accept a new connection if the active one closes. 7. Click the Update And Reset Unit button

60

Spectrum24 CB 1000 User Guide