cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
561
Views
0
Helpful
8
Replies

Control third-party peripherals via serial port

mv1
Level 1
Level 1

Hello
I would like to control a Sony projector with a macro from a codec (RoomOS 11.15.1.0) via RS-232 (outbound).
The Power-On command is: "\xA9\x17\x2E\x00\x00\x00\x00\x3F\x9A" (all HEX) But the codec sends out the following: \xC2\xA9\x17\x2E\x00\x00\x00\x3F\xC2\x9A.
Why is there always a \xC2 before the \xA9 and \x9A?

1 Accepted Solution

Accepted Solutions

mv1
Level 1
Level 1

Now I have written the command with double \\x and it works.:

I don't know if this is the normal HEX notation or a workaround.

 

const POWER_ON  = "\\xA9\\x17\\x2E\\x00\\x00\\x00\\x3F\\x9A";
const POWER_OFF = "\\xA9\\x17\\x2F\\x00\\x00\\x00\\x3F\\x9A";
 

View solution in original post

8 Replies 8

mv1
Level 1
Level 1

Tested today with RoomOS 11.15.1.1 with the same problem. Here is a screenshot...

mv1_0-1710919899134.png

 

mv1
Level 1
Level 1

The command works via the xcommand and the projector switches on. Must be a firmware bug via the macro.

mv1_0-1710928210312.png

 

mv1
Level 1
Level 1

 Same problem also in RoomOS 11.15.1.2

mv1
Level 1
Level 1

Still not resolved in RoomOS 11.15.1.3.

Let's hope for the next version...

mv1
Level 1
Level 1

Same problem also in RoomOS 11.15.1.5

mv1
Level 1
Level 1

Still no improvement in RoomOS 11.15.1.6.
As soon as Cisco has fixed the bug, I will get back to you with the RoomOS version.

I hope Cisco reads the API-Bug forum...

mv1
Level 1
Level 1

Now I have written the command with double \\x and it works.:

I don't know if this is the normal HEX notation or a workaround.

 

const POWER_ON  = "\\xA9\\x17\\x2E\\x00\\x00\\x00\\x3F\\x9A";
const POWER_OFF = "\\xA9\\x17\\x2F\\x00\\x00\\x00\\x3F\\x9A";
 

mv1
Level 1
Level 1

Here is the manual with the wrong description for HEX.

• Text (required): The text to send to the peripheral.
You can add special characters using “\” notation for special characters and “\x{ASCIIHEXCODE}”
for hex characters.
Example: To send a string ending with carriage return and new line, enter “Hello World\r\n” or
“Hello World\x0D\x0A”.