CEC icon indicating copy to clipboard operation
CEC copied to clipboard

Cannot send CEC command to TV

Open mikexzhao opened this issue 7 years ago • 3 comments

Dear Floe,

I have questions regarding your sample code.

Here is the setting of my testing environment,

  1. I built the simple circuit following your suggestion in CEC_Electrical.png
  2. I connected simple circuit with Arduino UNO board. As what you suggested, Pin-2 on Arduino uno board as IN_LINE, while Pin-3 as OUT_LINE. I didn’t connect anything on HPD_LINE.
  3. Since I don’t use Keyboard, I commented all Keyboard related codes.
  4. I connected CEC pin to Pin-13 of HDMI connector. Connect GND and +5V from Arduino Uno board to HDMI connector(Pin 17 and Pin 18). Connect HDMI cable between HDMI connector and sony-BRAVIA TV. CEC feature is enabled on sony TV, by the way.
  5. I built your sample code and uploaded to Arduino board.
  6. When I turned off TV, I got the following message,

standby Packet received at 17468: 00 -> 15: 0F:A0:08:00:46:00:09:00:01


  1. When I turn on TV, I got the following message,

Packet received at 12810: 00 -> 15: 0F:A0:08:00:46:00:04:00:01 Packet received at 13103: 00 -> 15: 0F:A0:08:00:46:00:08:00:00 Packet received at 13924: 00 -> 15: 0F:80:00:00:20:00


  1. after then, I repeatedly got the following message,

report PhysAddr Transmit failed, max retries reached. Transmit: 0


  1. When I tried ‘v’ to run “request vendor ID” cmd, I got the following error message,

Transmit failed, max retries reached. Transmit: 0


  1. I tried other CEC cmds with same error result. It seems that the code is able to receive the CEC msg, but is not able to send proper cmd. I checked the signal on the oscilloscope. The signal was sent out when I run “v” cmd. It seems that the circuit self has no problem.

Do you have any idea on the error while I sent the CEC cmd to TV?

Thanks

Mike

mikexzhao avatar Oct 03 '17 05:10 mikexzhao

Hi Mike & Floe

I have the same issue, I do receive packets from my Pioneer AV Receiver, but when I send command 'v' or custom commands I get the same error as you Mike.

21:58:08.989 -> Packet received at 92421: 05 -> 15: 5F:80:30:00:20:00 21:58:11.701 -> Packet received at 95142: 05 -> 15: 5F:80:20:00:30:00 21:58:15.722 -> Command: v 21:58:15.756 -> Command: 21:58:15.756 -> 21:58:15.891 -> Transmit failed, max retries reached. 21:58:15.891 -> Transmit: 0

Did anyone of you found what the solution is to this in the mean time?

Regards

Steph

ST-Automation avatar Jan 24 '20 21:01 ST-Automation

Have you placed all the parts according to the circuit (with the circuit sketch) in the fzz extension in this archive path? I haven't used this source yet, but I will try it soon.

wkddudwo avatar Nov 10 '22 15:11 wkddudwo

FWIW you may consider this approach: https://github.com/SzymonSlupik/CEC-Tiny-Pro, it simplifies the hardware part to the minimum.

SzymonSlupik avatar Nov 10 '22 17:11 SzymonSlupik