![Lightware UBEX Series Скачать руководство пользователя страница 144](http://html.mh-extra.com/html/lightware/ubex-series/ubex-series_user-manual_1915390144.webp)
9. Programmer's Reference
UBEX series – Matrix Application Mode – User's Manual
144
9. Programmer's Reference
UBEX series – Matrix Application Mode – User's Manual
144
MA
TRIX APPLIC
A
TION MODE
Applied F-series endpoint firmware package: v1.4.1 | Applied R-series endpoint firmware package: v1.4.1 | Applied MMU firmware package: v1.2.1 | LDC software: v1.34.0b2
9.19.2. Stopbits Setting
Command and Response
ç
SET•/MEDIA/CONTROL/UART/
<port>
/PORT.StopBits=
<number>
æ
pw•/MEDIA/CONTROL/UART/
<port>
/PORT.StopBits=
<number>
Parameters
Identifier
Parameter description
Value
Explanation
<number>
Stop bits value
0
1
1
1,5
2
2
Example
ç
SET /MEDIA/CONTROL/UART/P101/PORT.StopBits=0
æ
pw /MEDIA/CONTROL/UART/P101/PORT.StopBits=0
9.19.3. Parity Setting
Command and Response
ç
SET•/MEDIA/CONTROL/UART/
<port>
/PORT.Parity=
<number>
æ
pw•/MEDIA/CONTROL/UART/
<port>
/PORT.Parity=
<number>
Parameters
Identifier
Parameter description
Value
Explanation
<number>
Parity value
0
None
1
Odd
2
Even
Example
ç
SET /MEDIA/CONTROL/UART/P101/PORT.Parity=0
æ
pw /MEDIA/CONTROL/UART/P101/PORT.Parity=0
9.19.4. Command Injection TCP Port Setting
Command and Response
ç
SET•/MEDIA/CONTROL/UART/
<port>
.ServerPort=
<port>
æ
pw•/MEDIA/CONTROL/UART/
<port>
.ServerPort=
<port>
Example
ç
SET /MEDIA/CONTROL/UART/P101.ServerPort=8004
æ
pw /MEDIA/CONTROL/UART/P101.ServerPort=8004
9.19.5. Remap the Command Injection TCP ports
The default TCP port number is 8001 for all RS-232 ports. Calling the method results remapping the TCP port
numbers. It requires a start number, the step is 1.
Command and Response
ç
CALL•/MEDIA/CONTROL/UART:remapPorts(
<start_number>
)
æ
mO•/MEDIA/CONTROL/UART:remapPorts()
Parameters
The
<start_number>
is the first non-reserved TCP port number which will be set for the first RS-232 port. This
number increases with the number of the RS-232 ports in the UBEX matrix, the step is 1.
Example
ç
CALL /MEDIA/CONTROL/UART:remapPorts(9000)
æ
mO /MEDIA/CONTROL/UART:remapPorts()
Explanation
In the case of three connected F110 endpoint models the TCP port of the first one will be
9000
, the second
one is
9001
, the third one is
9002
.
9.19.6. Query the Current Configuration
Command and Response
ç
GET•/MEDIA/CONTROL/UART/
<port>
.Rs232Configuration
æ
pr•/MEDIA/CONTROL/UART/
<port>
.Rs232Configuration=
<configuration>
Example
ç
GET /MEDIA/CONTROL/UART/P101.Rs232Configuration
æ
pr /MEDIA/CONTROL/UART/P101.Rs232Configuration=57600, 8N1
Explanation
BAUD rate is
57600
, databits are
8
, the parity is N as
none
, the stopbits are
1
.