STM32 device should be detected on USB host as a USB CDC serial device. Each of the
API functions and input/output arguments should be serialized in the following way:
● Sending a cec command is executed by sending a string in the following format
via CDC:
send <address> <hex-string>
● If the command is sent successfully, the string ACK will be returned via CDC
● Received messages will be dislayed as:
CEC: <hex-string>
● In case of error, string will be received in format:
ERR: <error-code>
All messages end with <CR> <LF> characters.
Error messages are generally received if the message was unable to be delivered on
device, or if the message was sent in the wrong format.
Example:
Getting CEC version from the TV: