Multi-Tech Systems MTS2SA-T-R ユーザーズマニュアル

ページ / 181
Chapter 4 – Command Line Interface (CLI) 
Multi-Tech Systems, Inc. MultiConnect Serial-to-Serial Adapter User Guide (S000354A) 
33
 
Serial Commands – Setup 
Command Syntax 
set serial [s0/s1] buffer-datasize <0/d bytes>
 
Description 
This command primarily buffers the data. 
Default Value 
0 – No buffering. 
Success 
OK 
Error 
1.  Too few arguments 
 
“Usage: set serial s0/s1 buffer-datasize <0/d bytes> 
 
Type ‘set serial s0/s1 buffer-datasize ?’ for more information” 
2. Multiple matches 
buffer-datasize 
buffer-time 
3. Datasize range 
 
“error: Buffer data-size range : [1 - 1500] bytes 
 
Type ‘set serial s0/s1 buffer-datasize ?’ for more information” 
 
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. 
Example: 
Sl 
Buffer-datasize 
Buffer-time (secs) 
Descriptions
 

0 - Default 
0 - Default 
No buffering. Passes the data to the serial application on the reception of a 
character on the serial application. 

10 

Buffer till it reaches buffer-datasize (10); then passes it to the serial application. 


10 
No buffering. Pass the data to the serial application on the reception of a 
character on the serial. 

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 on 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”