- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We are using CYPD2122-24LQXI as notebook Application to charge the Battery, can we Enable/Disable Port through HPI PD Command when our battery is low/full.
Is it Port Disable/Port Enable commands used only to recover from error scenarios?
Thanks,
Nagaraj
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nagaraj,
Yes PD port can be en/disabled using HPI.
You can initiate this according to your situation (end application).
Regards,
Rajath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nagaraj,
Yes PD port can be en/disabled using HPI.
You can initiate this according to your situation (end application).
Regards,
Rajath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rajath,
In our application we are using Type C to charge a battery. What we need is whenever the battery is fully charged we need to disable the PD even though the power adapter is connected. We have gone through the HPI and found that the Port can be disabled, but the HPI document says the port can be disabled in error condition and reset command should be sent after the port disable.
In our application we don't want to send the reset command and we just need to disable the PD.
Is this possible? If Yes, please do let me know which command has to be send to disable and enable PD.
Thanks,
Nagaraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nagaraj,
Yes it is possible.
You can disable PD when the battery is charged. Reset can be sent whenever PD needs to resume.
The commands are described in HPI document and are confidential to be mentioned over here.
Regards,
Rajath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rajath,
If we disable the PD will the EC come to know the type C port connect detect and port disconnect detect if we have configured EVENT_MASK register.
Thanks,
Nagaraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, the port will wake up automatically and notify the EC.
Regards,
Rajath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rajath,
We tested with PD Disable Command through HPI, no Disconnect/connect response event from CCG2 device when we type C plug/unplugged, Only after Reset Command and reconfigure Event Mask register able to get Disconnect/connect response event from ccg2 device .
Thanks,
Nagaraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Then I was wrong, wake does not work under disable.
You can modify the firmware to poll for connection if you need to, under disabled state.
Regards,
Rajath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rajath,
Yes, we have to handle this case, How we can handle the connection state by Polling?
Thanks,
Nagaraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rajath,
Do we have to modify the CCG notebook application for polling or the EC application for implementing the polling method.
Thanks,
Nagaraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nagaraj,
In the CCG2 FW, you can use functions like - is_port_attached(), get_port_status() etc listed in the CCG2 Notebook Application FW API guide (page 15 onwards) to detect type-c plugging.
Regards,
Rajath