
Chapter 2 – Command Line Interface (CLI)
Command Line Interface and Application Examples for Multi-Tech Systems, Inc. IP Modules (S000368F) 29
Serial Commands – Setup
Command Syntax set serial [s0/s1] buffer-time <0/t secs>
Description
This command is related to the ‘set serial s0/s1 buffer-datasize’ command. The
buffering of data shall either wait for datasize configured (in the previous command)
or time t secs.
How to Read the Examples Below:
Line 1 - Sl
Line 2 - Buffer-datasize
Line 3 - Buffer-time (secs)
Line 4 – Descriptions
Example 1
1
0 - Default
0 - Default
No buffering. Passes the data to the serial application on the reception of a
character on the serial application.
Example 2
2
10
0
Buffer till it reaches buffer-datasize (10); then passes it to the serial application.
Example 3
3
0
10
No buffering. Pass the data to the serial application on the reception of a
character on the serial.
Example 4
4
10
10
Buffer the characters till it reaches the buffer-datasize (10)
(OR)
Wait for the buffer-time (10Secs).
The data is passed on to the serial application depending upon which condition
is satisfied first.
Default Value
0 – No buffering
Success
OK
Error 1. Too few arguments
“Usage: set serial s0/s1 buffer-time <0/t secs>
Type ‘set serial s0/s1 buffer-time ?’ for more information”
2. Multiple matches
buffer-datasize buffer-time
3. Time limit
“error: Time limit supported : <1 – 60 secs>
Type ‘set serial s0/s1 buffer-time ?’ for more information”
Command Syntax set serial [s0/s1] chat-script <line-num> <expect-string> <send-string>
Description Sets expect and send strings for the chat script to act on the modem.
Triggers for a reboot upon save.
Important Note: Use double quotes if more than one word is used in the <expect-
string>/<send-string>.
Default Value
NA
Success
OK
Error 1. Too few arguments
"Usage: set serial s0/s1 chat-script <line-num> <expect-string> <send-string>
Type 'set serial s0/s1 chat-script ?' for more information"
Comentarios a estos manuales