
N-1
APPENDIX N Semicolons Embedded
within Data Strings
The LX is ideal for making serial devices available for network
access and service. Devices such as modems may be required to
receive data strings to initiate dialout services. Some modems,
as well as other serial devices, may be required to receive
periodic serial data strings for synchronization purposes.
In many cases, a semicolon is required within this data string.
Normally, the LX command processor interprets the semicolon
as a command separator. Now the LX has a mechanism to pass
a datastream that includes the semicolon out a serial port. This
is accomplished several ways via the shell level “echo”
command.
Assuming a serial device is connected to LX port async 11, and
this device needs to receive a setup data string containing a
semicolon, here are some examples of how to accomplish this:
X To execute the shell echo command
1. At the LX shell, type:
Example
LX:/# echo -n “AT&F +CBST=7,0,1; SO=1”>/dev/ttyGN10
2. At the Superuser level of the CLI, enter:
Example
InReach:0>>
shell command echo -n “AT&F +CBST=7,0,1;
SO=1”>/dev/ttyGN10
3. At the Superuser level, call a script file by entering:
Example
InReach:0>>
script datatoport.script
Kommentare zu diesen Handbüchern