This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TPS65988EVM: How to identify which port sent the VDM.

Part Number: TPS65988EVM

Hi,

In our design PD controller is connected with MCU via I2C lines. MCU has to do some control activity depending on the PD controller status. PD controller will be connected with 2 USB devices that are capable of sending the command to the MCU via VDM. How does the MCU identify which device has sent the VDM(Device 1 or Device 2)? Both the USB devices will have the common firmware and can send the command anytime depending on their own state.

  • Hi Niket, 

    Can you send me your system block diagram and specify who is I2C master and who is slave? Thanks. 

  • Hi,

    Please find the below diagram.

    As you can see in the image, there is one camera device that has the PD controller. The PD controller of the camera will be connected to the PD controller of the device. The device's PD controller is connected with the MCU1 via the I2C interface. If the camera device wants to send some command to MCU1 it can give it through VDM. Both the camera connected to the PD controller of the device can send the command to the MCU1 via VDM. So MCU1 needs to identify which camera device sent the VDM. All the cameras will have the same firmare so they can send the same command.

  • Hi Niket,

    The camera should send VDM messages with different ID numbers. If they send exact same VDM messages, there's no way for MCU to identify. Thanks,