-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb_power_delivery: Add new captures
- Loading branch information
1 parent
8e05502
commit 50c0fd5
Showing
7 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
------------------------------------------------------------------------------- | ||
USB Power Delivery protocol | ||
------------------------------------------------------------------------------- | ||
|
||
This directory contains captures of data communication on the Configuration | ||
Channels of Type-C USB connectors using the USB Power Delivery protocol. | ||
|
||
Details: | ||
http://www.usb.org/developers/powerdelivery/ | ||
|
||
|
||
Logic analyzer setup | ||
-------------------- | ||
|
||
These captures were made using different prototypes of the 'usb-c-grok', which | ||
is an FX2 based device designed to capture USB Configuration Channel traffic. | ||
|
||
I made all captures with PulseView, with the samplerate set to 4 MHz, except | ||
when noted otherwise. | ||
|
||
|
||
Devices used | ||
------------ | ||
|
||
Lenovo Thinkpad Yoga 370 | ||
- https://psref.lenovo.com/Product/Think_Tablets_and_Convertibles/ThinkPad_Yoga_370 | ||
- 5V source | ||
- 5/9/12/15/20V sink | ||
|
||
Aukey 45W PD source | ||
- https://www.aukey.com/products/amp-usb-c-wall-charger-with-power-delivery-3-0-pa-y10 | ||
- The only device with Power Delivery 3.0 support | ||
- 5/9/12/15/20V source | ||
- Programmable 3 - 16V source | ||
|
||
Noname 65W PD source | ||
- https://www.amazon.de/gp/product/B07538NJDZ/ | ||
- 5/9/12/15/20V source | ||
|
||
Cable Deconn USB hub/dock/dongle | ||
- http://www.cabledeconn.com/sub/?id=708 | ||
- Power Delivery passtrough | ||
- > supports PR swap | ||
- USB 3.1 gen 1 hub with Gigabit Ethernet and 2 type A ports | ||
- USB 2.0 hub with SD card reader and 3.5mm audio interface | ||
- Displayport switch connected to DP-HDMI and DP-VGA converters | ||
- Enough magic to make all of the above work at the same time | ||
|
||
Anker Powercore+ 26800 PD powerbank | ||
- https://anker.com/uk/products/variant/powercore-26800-pd/A1375011 | ||
- 26800 mAh, almost 100 Wh | ||
- 9V sink | ||
- 5/9/12/15/20V source | ||
|
||
|
||
thinkpad_yoga_370-anker_powerbank-both_orientations.sr | ||
------------------------------------------------------ | ||
|
||
I plugged in the powerbank in my laptop with the analyzer in between, then | ||
unplugged, reversed the plug and after around 2 seconds plugged it in again. | ||
|
||
At 65 ms we see a CRC packet which the devices have correctly seen but looks | ||
like it didn't capture correctly. At 1986 ms there is some noise, probably | ||
when I was replugging the connector. | ||
|
||
The Anker powerbank first advertises only 5V and 15V, then later advertises all | ||
other voltages. I don't know why this happens. | ||
|
||
|
||
thinkpad_yoga_370_aukey_45w.sr | ||
------------------------------ | ||
|
||
I plugged the supply in my laptop. I included this because this supply | ||
advertises PPS capability and this is the only PD 3.0 feature in these captures. | ||
|
||
|
||
thinkpad_yoga_370-passtrough_dongle-anker_powerbank.sr | ||
------------------------------------------------------ | ||
|
||
First the laptop advertises its capabilities multiple times. Then I plug in the | ||
dongle. At 415 ms the dongle responds and requests 5V from the laptop. Between | ||
460 and 600 ms it does all kinds of stuff that I don't understand. At 606 ms it | ||
enters DisplayPort Alternate Mode. I did not connect a display. | ||
|
||
After 3432 ms I plugged in the Anker powerbank to the passtrough port of the | ||
dongle, which sent a Power Role Swap message. Between 3470 and 3570 ms the CC | ||
line is low, because the dongle is switching it's power source. At 3677 ms the | ||
dongle advertises source capabilities to the laptop, which are basically the | ||
powerbanks capabilities reduced by 5W. |
Binary file added
BIN
+76.5 KB
usb_power_delivery/thinkpad_yoga_370/thinkpad_yoga_370-anker_powerbank-both_orientations.sr
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+30 KB
usb_power_delivery/thinkpad_yoga_370/thinkpad_yoga_370-passtrough_dongle-anker_powerbank.sr
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
------------------------------------------------------------------------------- | ||
USB Power Delivery protocol | ||
------------------------------------------------------------------------------- | ||
|
||
This directory contains captures of data communication on the Configuration | ||
Channels of Type-C USB connectors using the USB Power Delivery protocol. | ||
|
||
Details: | ||
http://www.usb.org/developers/powerdelivery/ | ||
|
||
|
||
Logic analyzer setup | ||
-------------------- | ||
|
||
These captures were made using different prototypes of the 'usb-c-grok', which | ||
is an FX2 based device designed to capture USB Configuration Channel traffic. | ||
|
||
I made all captures with PulseView, with the samplerate set to 4 MHz, except | ||
when noted otherwise. | ||
|
||
|
||
Devices used | ||
------------ | ||
|
||
ZY12PDS Power Delivery sink module | ||
- https://www.aliexpress.com/item/ZY12PD/32810557770.html | ||
- Can be configured for 5/9/12/15/20V, or "highest possible" or | ||
"all in sequence" | ||
- Set to 9V, because I used it to upgrade a 9.6V toy car | ||
|
||
Aukey 45W PD source | ||
- https://www.aukey.com/products/amp-usb-c-wall-charger-with-power-delivery-3-0-pa-y10 | ||
- The only device with Power Delivery 3.0 support | ||
- 5/9/12/15/20V source | ||
- Programmable 3 - 16V source | ||
|
||
Noname 65W PD source | ||
- https://www.amazon.de/gp/product/B07538NJDZ/ | ||
- 5/9/12/15/20V source | ||
|
||
Cable Deconn USB hub/dock/dongle | ||
- http://www.cabledeconn.com/sub/?id=708 | ||
- Power Delivery passtrough | ||
- > supports PR swap | ||
- USB 3.1 gen 1 hub with Gigabit Ethernet and 2 type A ports | ||
- USB 2.0 hub with SD card reader and 3.5mm audio interface | ||
- Displayport switch connected to DP-HDMI and DP-VGA converters | ||
- Enough magic to make all of the above work at the same time | ||
|
||
Anker Powercore+ 26800 PD powerbank | ||
- https://anker.com/uk/products/variant/powercore-26800-pd/A1375011 | ||
- 26800 mAh, almost 100 Wh | ||
- 9V sink | ||
- 5/9/12/15/20V source | ||
|
||
|
||
zy12pds_sink_module-65w_noname_supply.sr | ||
---------------------------------------- | ||
|
||
This supply lies. It says 65W on the box and device but advertises only 60W. | ||
The sink is a module available from aliexpress or ebay which I configured to | ||
request 9V. | ||
|
||
|
||
zy12pds_sink_module-anker_powerbank.sr | ||
-------------------------------------- | ||
|
||
The same module as before, now connected to the Anker powerbank, and configured | ||
to request all the voltages sequentially, with 1800ms between each one. This | ||
was captured at 6 MHz because at 4 MHz it had some issues with decoding packets | ||
from the ZY12PDS module, but only at some voltages. |
Binary file added
BIN
+12.2 KB
usb_power_delivery/zy12pds_sink_module/zy12pds_sink_module-65w_noname_supply.sr
Binary file not shown.
Binary file added
BIN
+250 KB
usb_power_delivery/zy12pds_sink_module/zy12pds_sink_module-anker_powerbank.sr
Binary file not shown.