ww
w
.ip
el
ec
tr
on
ix
.c
om
IPEX
(IP Electronix)
PH232Ex2
:
User’s Manual
Page 27 of 28
Doc No.: PH232Ex2-UM-001
14 January 2022
The Command Frame and Device Response as follows:
1)
Change Redirect Setting Command
This command consists of 6 bytes as follows:
6
5
4
3
2
1
status
pn
‘W’
CODE-LSB
CODE-MSB
0x01
And the device response consists of 6 bytes as follows:
6
5
4
3
2
1
status
pn
‘S’
CODE-LSB
CODE-MSB
0x01
These bytes are:
0x01 : constant binary value = 0x01
CODE-MSB : Most Significant 8 bits of Security Code
CODE-LSB : Least Significant 8 bits of Security Code
‘W’ : ASCII Character ‘W’, Write Command
pn: Port Number, a binary value from 0x00 to 0x03 for PORT1 to PORT4
status: Redirect Status Byte as follow:
X
X
X
X
P4
P3
P2
P1
X: Don’t Care
P[i] = 1 , means redirect to this port i is enabled
P[i] = 0 , means redirect to this port i is disabled
Security Code is a 16-Bits Integer password that can be a number from 1000 to 9999 (decimal). The default
value is 1111 decimal (0x0457 Hexadecimal).
For example, if the device password is 1111 and we want to redirect the port number 4 to the ports number 1 &
3, we should send this six-byte frame to the device: 0x01 0x04 0x57 0x57 0x03 0x05
2)
Read Redirect Status Command
This command is same as the change command but, we should send character ‘R’ instead of ‘W’, and
status byte is not required.
5
4
3
2
1
Pn
‘R’
CODE-LSB
CODE-MSB
0x01
The device response is similar to the previous one.