Hi,
I am using TPS65987DDH in our design. We have two Type C ports in our design. One is connected to Host device (Android based device) and other connected to Power bank. we are supporting only 5V power option in both sides.
When only Host is connected, Host device should source power for the board, enumerated USB hub and detect devices connected to USB hub.
When Host and Power bank is connected, Host device should still be able to enumerate USB hub in our board, but the power for the board should be from power bank. Also, Host device should sink power from our board. In this condition, if power bank is disconnected, the board power should be switched to Host and USB functions should continue working.
When power bank alone is connected, devices in our board should be powered from power bank.
The block diagram below shows the Design using TPS65987D.
I am attaching the GUI tool project files of both host and Power bank PD controller . Can you please verify whether the settings are ok?
3731.PD_Controller_Host_Prefers_powersource.pjtcharger_DCP.pjt
Test observations with this setting is given below
When i am testing with Windows laptop as host, (Type C connector in my Thinkpad laptop. It has a type C port, which primarily uses Type C connector to connect to charger. But it can also be used for Data transfer)is that it is detecting USB hub in our board.
But when i connect our board to my phone or any other android device, it is not even detecting it as USB. USB is getting connected only if we use a type C OTG connnector in between Phone and our board. Even after that, in the USB preferences it says USB is controlled by Connected Device. Ideally USB should be controlled by Android device. There is an option to change this control in the USB preferences. But when i try that it says it couldnt switch. What could be the issue?
Regards,
Logi Francis