]>
Commit | Line | Data |
---|---|---|
50c0fd5b P |
1 | ------------------------------------------------------------------------------- |
2 | USB Power Delivery protocol | |
3 | ------------------------------------------------------------------------------- | |
4 | ||
5 | This directory contains captures of data communication on the Configuration | |
6 | Channels of Type-C USB connectors using the USB Power Delivery protocol. | |
7 | ||
8 | Details: | |
9 | http://www.usb.org/developers/powerdelivery/ | |
10 | ||
11 | ||
12 | Logic analyzer setup | |
13 | -------------------- | |
14 | ||
15 | These captures were made using different prototypes of the 'usb-c-grok', which | |
16 | is an FX2 based device designed to capture USB Configuration Channel traffic. | |
17 | ||
18 | I made all captures with PulseView, with the samplerate set to 4 MHz, except | |
19 | when noted otherwise. | |
20 | ||
21 | ||
22 | Devices used | |
23 | ------------ | |
24 | ||
25 | Lenovo Thinkpad Yoga 370 | |
26 | - https://psref.lenovo.com/Product/Think_Tablets_and_Convertibles/ThinkPad_Yoga_370 | |
27 | - 5V source | |
28 | - 5/9/12/15/20V sink | |
29 | ||
30 | Aukey 45W PD source | |
31 | - https://www.aukey.com/products/amp-usb-c-wall-charger-with-power-delivery-3-0-pa-y10 | |
32 | - The only device with Power Delivery 3.0 support | |
33 | - 5/9/12/15/20V source | |
34 | - Programmable 3 - 16V source | |
35 | ||
36 | Noname 65W PD source | |
37 | - https://www.amazon.de/gp/product/B07538NJDZ/ | |
38 | - 5/9/12/15/20V source | |
39 | ||
40 | Cable Deconn USB hub/dock/dongle | |
41 | - http://www.cabledeconn.com/sub/?id=708 | |
42 | - Power Delivery passtrough | |
43 | - > supports PR swap | |
44 | - USB 3.1 gen 1 hub with Gigabit Ethernet and 2 type A ports | |
45 | - USB 2.0 hub with SD card reader and 3.5mm audio interface | |
46 | - Displayport switch connected to DP-HDMI and DP-VGA converters | |
47 | - Enough magic to make all of the above work at the same time | |
48 | ||
49 | Anker Powercore+ 26800 PD powerbank | |
50 | - https://anker.com/uk/products/variant/powercore-26800-pd/A1375011 | |
51 | - 26800 mAh, almost 100 Wh | |
52 | - 9V sink | |
53 | - 5/9/12/15/20V source | |
54 | ||
55 | ||
56 | thinkpad_yoga_370-anker_powerbank-both_orientations.sr | |
57 | ------------------------------------------------------ | |
58 | ||
59 | I plugged in the powerbank in my laptop with the analyzer in between, then | |
60 | unplugged, reversed the plug and after around 2 seconds plugged it in again. | |
61 | ||
62 | At 65 ms we see a CRC packet which the devices have correctly seen but looks | |
63 | like it didn't capture correctly. At 1986 ms there is some noise, probably | |
64 | when I was replugging the connector. | |
65 | ||
66 | The Anker powerbank first advertises only 5V and 15V, then later advertises all | |
67 | other voltages. I don't know why this happens. | |
68 | ||
69 | ||
70 | thinkpad_yoga_370_aukey_45w.sr | |
71 | ------------------------------ | |
72 | ||
73 | I plugged the supply in my laptop. I included this because this supply | |
74 | advertises PPS capability and this is the only PD 3.0 feature in these captures. | |
75 | ||
76 | ||
77 | thinkpad_yoga_370-passtrough_dongle-anker_powerbank.sr | |
78 | ------------------------------------------------------ | |
79 | ||
80 | First the laptop advertises its capabilities multiple times. Then I plug in the | |
81 | dongle. At 415 ms the dongle responds and requests 5V from the laptop. Between | |
82 | 460 and 600 ms it does all kinds of stuff that I don't understand. At 606 ms it | |
83 | enters DisplayPort Alternate Mode. I did not connect a display. | |
84 | ||
85 | After 3432 ms I plugged in the Anker powerbank to the passtrough port of the | |
86 | dongle, which sent a Power Role Swap message. Between 3470 and 3570 ms the CC | |
87 | line is low, because the dongle is switching it's power source. At 3677 ms the | |
88 | dongle advertises source capabilities to the laptop, which are basically the | |
89 | powerbanks capabilities reduced by 5W. |