- Posts: 4
- Joined: Wed Apr 29, 2020 11:51 pm
- Real Name: Jeremy Fernsler
The Output->OverlayEnables command is listed as a uint16 bit field. However there isn't a uint-16 data type in the CCU, so use an signed 16-bit integer instead.
As a bit-field, these can be turned on or off independently of each other:
- Code: Select all
0x00 = both overlays off
0x01 = display status
0x10 = display frame guides
0x11 = both overlays on
The length of the data is 16-bits or 2 bytes.
The length of the command is from the Category field to the end of the data which is 6 bytes total.
Example - set both displays on
- Destination = 255 (all cameras)
- Length = 6 ( 4 bytes header + 2 bytes data)
- Command = 0
- Reserved = 0
- Category = 3 (Output)
- Parameter = 0 (OverlayEnables)
- Type = 2 (16-bit integer)
- Operation = 0 (assign value)
- Data Byte-1 = 3
- Data Byte-2 = 0
Therefore the command would be:
- Code: Select all
255, 6, 0, 0, 3, 0, 2, 0, 3, 0, 0, 0
Note: the padding at the end to align to 4 bytes.
Please let me know if this doesn't work for you.