The text of a manual · part 5 of 10
Mercury User's Guide, pages 41 to 50
Pages 41 to 50 of 96
The original document is the PDF (1.5 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 Intermec Mercury RF1 and Intermec Mercury-EN
Page 41
input timeout This is the amount of time, calculated by the number of characters that would be received at the current baud rate, to wait after some data has been received on the UART before giving up waiting for more. For example, with the default value of 10 and at 9600 baud, 960 characters can be received in one second. Thus the amount of time to wait would be 10 ¸ 960 or 1/96th of a second. Now, once a character has been received the timer starts with this timeout. If the timer expires, the data is considered to be complete and gets transmitted immediately. But if instead another character is received before this timeout, the timer is restarted from the beginning. The range for this value is from 1 to 65536.
delimiters Delimiters are special characters that specify the end of the data. Once any of the characters listed in this option are received, the data is transmitted immediately. In serial communications, there is frequently a character reserved to mean “end of transmission”. In human-interface applications, this character is the “newline” or Enter key. For computer to computer communication, this value may be different. If one exists, adding it to this list will greatly improve communication efficiency. Up to four delimiters can be listed here. They are specified as a space separated list of ASCII values. The values can be written as decimal or hexadecimal numbers.
rxbd count txbd count buffer count These three values are used mainly to control the buffer size internal to the software. Changing of these values is not recommended except with the assistance of Nomadic Communications Technical Support. rxbd and txbd count default to 8 and buffer count defaults to 12.
protocol This specifies the data format of the communication between the UART and radio network. Possible values are passthrough,
31
Page 42
passthrough2, telnet, and lpd. Passthrough forwards any data received over the UART or radio interfaces to the other interface with the data unchanged. Passthrough2 operates much like passthrough, but opens a socket in each direction so that if a Mercury loses power, it can re-establish communications much faster when power returns. Telnet gives a command prompt similar to that of the telnet application found on UNIX systems. Telnet also interprets the data received over the radio, removing special character sequences known as “DO” and “DONT” requests. LPD is a UNIX print serving protocol. LPD received data in a particular format over the radio, and converts it into the data stream that should be sent to the printer. Data sent by the printer is ignored. Note: When setting up to use LPD, you should set the printing parameters so that the file is sent off using the Mercury as the remote host. Any remote printer name can be used, so long as it fits within the guidelines for naming a printer.
[flow control] The Mercury supports the following six flow control options: Recogize RTS, Generate CTS, Recognize DTR, Generate DSR, Recognize XON/ XOFF, and Generate XON/XOFF. It also supports the original RS-232 specification for flow control where CTS is generated only when RTS is asserted. These options are explained below. The incoming flow control options specify what method of communication is used between the Mercury and the device it is communicating with over the RS-232 cable to instruct the Mercury when to start and stop sending data. Since the Mercury is a DCE device (data communications equipment), the three methods of incoming flow control are software (also known as XON/XOFF), RTS (“request to send”), and DTR (“data terminal ready”). These three methods are all signals that the host computer sends to the Mercury when it either has too much data to work with and wants the Mercury to stop sending, or when it doesn’t have enough data and wants the Mercury to start sending what it has. Software flow control is implemented as two specific characters that are sent on the wire, embedded with the data. RTS and DTR are signals that each have their own wires, independent of the data wires. The outgoing flow control options specify what method of communica-
32
Page 43
tion is used between the Mercury and the host computer to instruct the computer to start and stop sending data. The host computer is a DTE device (data terminal equipment) and thus uses software, CTS (“clear to send”), and DSR (“data set ready”) as its flow contol signals. These signals are sent to the host computer by the Mercury as its buffers fill and empty. Software flow control works the same outgoing as it does incoming, as described above. CTS and DSR work the same way RTS and DTR do as well. When one side wants the other to stop sending data, it can use as many of these flow control options as it wants to communicate its request to the other side. You must select in the configuration which you want the Mercury to use. For both incoming and outgoing flow control, use the words “yes” and “no” to enable or disable recognition. There is one additional allowed value for the CTS entry. This value is “rts”. This may seem confusing, but originally the UART protocol was only defined to restrict data flow in one direction. What would happen is the modem would be allowed to send data to the host computer at any time (because modems were not capable of buffering data; if the data was not sent to the host immediately, the next piece of data would cause it to be lost) but the host computer would have to ask permission from the modem to send data. The host would do this by asserting the RTS line (“requesting” to send data). The modem would see this, and check to see if it were ready to accept data. If so, it would then assert the CTS line (“clearing” the computer to send), giving it permission. Once the host computer finished sending the data, it would drop the RTS line, and the modem would subsequently drop the CTS line. This is the behavior that is emulated when “rts” is used as the value for the CTS entry. Note that this is obsolete behavior, and most devices are designed for RTS to really mean flow control in the computer’s direction. But the ability is there if you have older equipment. Also note, if you use this setting that you should set the RTS entry to “no” since that line will not have the meaning of incoming flow control.
incoming software
33
Page 44
rts dtr outgoing software dsr Allowed values are yes and no.
cts Allowed values are yes, no, and rts.
[i/o control] I/O control defines control over digital inputs and outputs of the Mercury, separately from the data lines. Digital input and output are shared with the flow control lines (RTS, DTR, CTS, DSR), but they are not flow control. They give the ability to send digital data from one Mercury to another without interpretation by the Mercury’s themselves. They can also provide information to the device they are connected to about the status of low-power modes.
rts dtr These are input lines. When set to “passthrough”, the status of these lines will be forwarded to the Mercury unit specified by the “socket” option, described below. When set to “none”, they do not function as digital inputs.
cts dsr These are output lines. When set to “negate” or “assert”, they will output a continuous digital value. “negate” outputs a logic 1, or “mark” which is electrically negative. This is also the state seen on an RS-232 connector when the cable is unplugged. “assert” outputs a logic 0, or “space” which is electrically positive. When set to “sleep”, these lines will be negated when the unit is conserving power (subject to other sleep configuration) and
34
Page 45
asserted otherwise. When set to “passthrough”, CTS will output the value that the remote Mercury is receiving on its RTS line, and DSR will output the remote DTR value. The source of these remote signals depends on the remote Mercury’s “socket” setting in this section.
resend interval Ordinarily, the digital input lines are transmitted whenever they change. In some cases (such as when the remote unit is turned off and back on so that it forgets the previous output states), this is insufficient. Setting this value to a non-zero number causes the state of the input lines to be re-transmitted in a regular interval. The value of this setting is in seconds.
socket This entry specifies a network connection to use to send the RTS and DTR input states to a remote Mercury. The value of this setting must be the name of a section that describes the network connection to use. Also, the connection must use the RMP protocol. See the section on “rmpbind” under “Network Bindings”, below.
[sleep] This section governs the low power state of the UART.
rts causes sleep This is a yes/no entry that dictates whether the RTS line can cause the UART to go into low power mode. If this is yes, setting the RTS line to a logic 1 (the same state as if you wanted the Mercury to “stop transmitting data”) will cause the UART to shutdown.
rts timer Once the RTS line is set to logic 1, this is the amount of time in seconds to wait before actually shutting down the UART.
inactivity causes sleep This is a yes/no entry that states whether the UART will be shut
35
Page 46
down due to an amount of time passing without data transfer.
inactivity timer This is the amount of time, in seconds, to pass without activity before the UART is put to sleep.
shut off rs232 driver power This yes/no entry says whether to save additional power by turning off the RS-232 driver chip. When this chip is off, none of the output pins on the RS-232 port will be driven.
shut off led power If this is set to yes, the LEDs on the top of the Mercury will be shut off to save power when the UART goes into sleep.
negate sleep output If this is set to yes and sleep is set as an output for one of the flow control lines, the state of the UART will be shown on the corresponding flow control line. Note that this flow control line will not be readable if the RS-232 driver is shut off.
[passthrough] This section specifies the operating parameters for the passthrough protocol. Currently, there is only one entry: socket.
socket The value of this entry represents the name of another section. The section it specifies contains the values necessary to “bind a socket”; in other words, what needs to be known to create a network connection. For example, this value by default is rmpbind. The connection used by passthrough mode will create a socket that uses the values in the [rmpbind] section further down in the file to create the network connection.
[passthrough2] This section specifies the operating parameters for the passthrough2
36
Page 47
protocol. With passthrough2, there are two sockets: one for incoming data (listen), and one for outgoing data (connect). Note: both of these sockets must use the TCP/IP protocol.
listen As in the socket key for the [passthrough] section above, the value of this entry represents the name of another section that defines a network connection. This value by default is tcpbind1a. A later section in this file is also named [tcpbind1a]. Thus the connection used by passthrough mode will create a socket that uses the values in the [tcpbind1a] section to create the network connection.
connect The value of this entry points to a network connection definition that initiates the connection instead of listening for it. The default for this setting is tcpbind1b.
[telnet] This section specifies the operating parameters for the Telnet protocol.
connect This entry dictates what kind of prompt is seen on the serial port output. Two choices are available: wait for keystroke and command prompt. The default, command prompt, will give a prompt “telnet>” much like Telnet software on a UNIX system gives. From this prompt, you can use the “open” command to connect to a particular machine. For example, typing “open 10.10.10.129” will open a Telnet session to the machine with the IP address 10.10.10.129. The second choice, wait for keystroke, allows for a configuration that only connects to one machine, requiring only a keypress to initiate the connection.
wait data 1 This entry states what text to use as a prompt in wait for keystroke mode. The value is specified as a combination of a string and ASCII values. The default value is "Press any key to connect to host...". (The double-quote marks are a part of
37
Page 48
this value, unlike in previous examples.) Binary data can be added by writing data as hex or decimal, outside of quote marks. For example, the ANSI clear-screen command string (escape, leftbracket, H, escape, left-bracket, J) can be added to the front of this string like this: 0x1b "[H" 0x1b "[J" "Press any key to connect to host...".
wait data 2 This entry states what text to display after the keystroke is received. The format of the data is the same as in “wait data 1”. The default is “0xd 0xa” (without the quotes), which will move the cursor to the next line.
ip address When in wait for keystroke mode, this specifies the IP address of the machine to automatically connect to. 10.10.10.129 is the default.
tcp port When in wait for keystroke mode, this specifies the TCP port number to connect to automatically. The default is 23.
reopen after shutdown After one connection has been completed, should the prompt to connect again reappear? The default is on.
Network Bindings: This section describes the meaning behind each of the entries that describe network binding. Five prewritten bindings are provided as examples.
[rmpbind] This binding can be used for both the passthrough protocol and for the i/o control socket setting.
protocol This example uses the RMP protocol, so the value of this entry is
38
Page 49
“rmp”. RMP binding options are described below. If you wish to use the TCP/IP protocol, skip to the next example.
source address This is the value that this Mercury will use to identify its serial port when sending serial data to and receiving serial data from other Mercury units (in short, this is its “port address”). The default value is “default” which will cause the Mercury to use its serial number as the address.
source address filter Setting this value will tell the Mercury to only accept data coming from the address specified. For example, if this entry is set to “1234”, only data originating from a Mercury with the port address of 1234 will be accepted; all other data will be ignored. The default value is “none”.
destination address This value tells the Mercury what port address to send data received on the serial port to. It can be the port address of another Mercury’s serial port, or it can be “broadcast” or “dynamic”. Broadcast means to send the data to all Mercury’s. Dynamic means to send the data to the Mercury it last received data from. Dynamic has the effect of causing two Mercury units that are by themselves to communicate to each other. The default value is “dynamic”.
transmit try count For non-broadcast data, this specifies the number of attempts that the Mercury should make in transmitting each piece of data to a remote Mercury. A transmission may fail if the destination Mercury is out of range or turned off; when this happens, the data would be lost if additional attempts are not made. This value gives the user the ability to tell the Mercury how diligently to attempt transmission. The maximum value is 65000. The default value is “infinite”.
39
Page 50
transmit retry interval When attempting addition transmit attempts (specified with “transmit try count”, above), it can be useful to additionally specify how long to wait between attempts. This setting gives that ability. The value is specified in 1/100ths of a seconds, so that 100 means 1 second. The maximum value is 65000. The default value is 100.
[tcpbind1a], etc. Four prewritten bindings, tcpbind1a, tcpbind1b, tcpbind2, and tcpbind3 are provided for TCP/IP. When protocol is set to passthrough, only one binding is used because only one network socket is created (tcpbind2 and tcpbind3 are passthrough binds). When protocol is set to passthrough2, two complimentary bindings (one connect and one listen) are used (tcpbind1a and tcpbind1b are complimentary) because a socket is created in each direction.
protocol These examples use the TCP protocol, so the value of this entry is “tcp”.
type Can be either listen or connect. This specifies whether the Mercury will wait for a connection from another computer, or attempt to initiate the connection itself.
ip address Used only if the type is connect. This specifies the IP address of the computer to connect to.
local tcp port If the type is listen, this will specify the TCP port number that the Mercury will wait for connections on.
remote tcp port If the type is connect, this specifies the TCP port number to
40