Skip to main content
MM..1
Super User
December 20, 2024
Solved

CEC TV emulate with STM32, how id setup?

  • December 20, 2024
  • 3 replies
  • 751 views

We for testing CEC client device require emulate master. In normal device code we set

 

hcec.Init.OwnAddress = CEC_OWN_ADDRESS_x

 

but for TV master how is right choice?

 

 

hcec.Init.OwnAddress = CEC_OWN_ADDRESS_NONE;
or
hcec.Init.OwnAddress = CEC_OWN_ADDRESS_0;

 

exist some example?

This topic has been closed for replies.
Best answer by mƎALLEm

Hello,

You can refer to the AN3127 "CEC networking using STM32F100xx value line microcontrollers".

I think chapters 1.4.6 Logical addressing / 1.4.7 Logical address allocation may answer your question.

3 replies

mƎALLEm
ST Technical Moderator
December 20, 2024

Hello,

To my knowledge, there is no master slave architecture but there are initiators and destinations and each of them has its own physical address. So if you need to send something to another device, you need to know its address (destination address).

Look at the CEC examples in CubeHAL: https://github.com/STMicroelectronics/STM32CubeF0/tree/master/Projects/STM32072B_EVAL/Examples/CEC

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
MM..1
MM..1Author
Super User
December 20, 2024

Yes i check all this examples and have working real CEC . Then i need some testing device as Initiator i name it master. In AV normal TV have logical address 0  and logical addr is used to communicate. But define for address 0 in STM headers set 01  and addr_none set 00, then i ask how is right?

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
December 23, 2024

Hello,

You can refer to the AN3127 "CEC networking using STM32F100xx value line microcontrollers".

I think chapters 1.4.6 Logical addressing / 1.4.7 Logical address allocation may answer your question.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.