ALPHA A little bit on type-C power distribution (PD)

A place to talk about all the Operating Systems, Software & Hardware
Post Reply
User avatar
ccs_hello
Posts: 410
Joined: Sat Oct 13, 2018 9:16 pm

Thu Nov 29, 2018 4:23 am

After trying two USB type-c meter/diagnosis tools (one is a popular UM25C/UM34c) without much a success,
now that a new tool (WEB-U2) just arrived today, I'd like to share my finding...

1. first I have to upgrade WEB-U2's firmware to latest (now ver 4.7, very easy to do) to get a stable tester and probably more features

2.if I cascade other testers or odd ball cables, most cases the type-C protocol negotiation (over CC1 / CC2 leads < -- not D+ D-
leads) will fail. In such case, the power adapter only supplies 5V to Alpha and the Alpha will be as cold as rock. See #5, most likely stuck in BC1.2 DCP 5V 1.5A mode.

3. LPA supplied 45W power adapter with type-C plug, if direct connects to LPA, it will work, certainly. I also tried Apple 61W (seems to be a clone, since in one of WEB-U2's menu, it couldn't detect its S/N), this one has a type-C receptacle. I can use a type-C cable (plugs on both ends) to power LPA no problem.

4. With WEB-U2 added in the loop above, I saw the protocol used is PD 2.0 negotiated to 15V 3A in either Apple 61W or LPA 45W. Its screen show it's in "MTK PE" mode (should be equivalent to PD 2.0 mode.). Very important to note that both D+ and D- are left floating, most likely not connected to each other, and read as 0V. < -- this is critical (see later)

5. Important to note that LPA's 45W unit not only supports PD 2.0 (this is what this power supply arrangement should be), it also supports several others (such as QC2.0 up to 12V, QC3, BC 1.2 DCP 5V 1.5A.) The Apple 61W supports PD 2.0 as well as BC1.2 DCP 5V 1.5A.

6. Now the sequence is important... if I used #2 to trip LPA into "only getting 5V supply" feed, by using #4 method will not recover the LPA into (asking PD2.0 mode as default), i.e., even when using #4 method at this point, it is still getting 5V power feed, not PD 2.0's 15V feed.
Then if I use method #3, LPA is back to asking PD2.0 as the negotiation method and the system is now back to normal.

7. I am guessing somewhere in LPA side, type-C receptacle's D+ and D- still has some voltage and/or D+ D- is in a non-PD source or PD sink mode. This is the challenge a universal type-C (PD source, PD sink, accessory mode/OTG, and video mode) all-in-one design gave to us.

All my guesstimate and few things learned.
I am leaning toward a simpler power adapter (e.g., only support PD2.0 mode, no QC2, QC3, BC1.2 stuff) and probably taking out D+ and D- leads ( not sure, since USB PD is a complex standard) cto the power adapter end may help.

Anyway, I am back to 12V direct power DC plug solution. Easy, clean, and can also supply external devices are all big pluses.

User avatar
THW Mark
Posts: 11
Joined: Tue Jan 08, 2019 2:55 pm

Tue Jan 08, 2019 2:58 pm

this is a very interesting read - thanks for this. I'm looking into finding a PD USB C cable car charger for using the Alpha + 7" screen on the road, but there are very few options and i'm afraid they won't work. So maybe providing power to the pins would be better, except that I would probably have to add some circuitry to prevent voltage spikes/drops...

User avatar
ccs_hello
Posts: 410
Joined: Sat Oct 13, 2018 9:16 pm

Tue Jan 08, 2019 3:17 pm

Not USB type-C PD

For 12V automotive application and supplying power thru 4-pin DC PWR IN connector, use LTC3780 based solution
e.g., https://www.ebay.com/itm/LTC3780-130W-D ... 2947310464
(set the correct output voltage first before hooking up)

I would also recommend adding a 2200uF 25V capacitor on its output end.

User avatar
ccs_hello
Posts: 410
Joined: Sat Oct 13, 2018 9:16 pm

Mon Jan 14, 2019 5:18 am

One thing I notice that happens in few USB type-C PD power adapter is that,
plug in the power adapter to AC first, then connect its USB cable to LP Alpha will work,
while keep the USB type-C cable always plug in to the LP Alpha, then connect the power adapter to AC sometimes would fail.

The main reason is that it takes time to get USB-C power adapter's internal capacitor's voltage level high enough such that USB-C protocol negotiation with LP Alpha can be successful <-- i.e., power adapter will be the supply sending out 15V to the connected device (LP Alpha)

Yes, it is tricky and is the ugly part of USB type-C spec.

User avatar
ccs_hello
Posts: 410
Joined: Sat Oct 13, 2018 9:16 pm

Sun Jan 20, 2019 3:12 am

@ T1g_i
re: Sometimes if I connect my Panda with the USB-C port, it does not start at all. I must connect it several times to power it up. What can that be?

The issue is related to USB-C PD negotiation. Such procedure happens very early, when "a slight bit of power that is sufficient enough" is supplied to LP Alpha.

What happens is that the USB-C power adapter has not reached the steady state ready to start the USB-C PD negotiation. <-- With LP Alpha, in normal state, it will negotiate to supplying 15V to LPA.
Once the negotiation failed, it will not reenter into the negotiation phase and the USB-C power adapter appears to be dead.

What do you do?
method 1: let the USB-C power adapter still connect to the AC socket. Pull it out, wait for 0.5 second, then immediately plug it back in.
< -- Idea is to let USB-C power adapter remain to have sufficient charge stored inside, unplug/replug to reset itself, then the PD-negotiation hopefully will start from a health ground (the charge inside the USB-PD adapter is high enough.)

method 2: unplug USB-C cable on LP Alpha side, plug in USB-C power adapter to AC socket first. then plug the USB-C cable to LP Alpha.
< -- using this method to do a quick test is fine. However, I do not recommend plug/unplug the USB-C cable on LPA side too many times. That requires delicatle operation to avoid damaging parts.

==============
Other option is to use a different brand of USB-C PD power adapter.
These tend to not have integrated/unremovable cable on the power adapter side.
I will then always keep the power adapter plugged in and only connect/disconnec USB-C cable on the power adapter side.

User avatar
ccs_hello
Posts: 410
Joined: Sat Oct 13, 2018 9:16 pm

Tue Feb 05, 2019 2:24 am

Now I received the second Apple 61W USB-C PD power adapter, model A1718.
This time I make sure it is authentic/genuine/OEM and I had verified it is (using Web-U2 USB-C tester to check its S/N and there is one.)

However, there is a bad news. It is not usable for LP Alpha. The authentic one (made only for Apple) is not as versatile as the generic "Apple 61W adapter" you can find in fleaBay for cheap (usually less than $30 shipped.)
The authentic one only supports PD 2.0 in 3 settings: 5V, 9V, and 20V. < -- no 12V and most importantly no 15V support
LP Alpha will negotiate with it to get the power adapter to output 9V. As I had described before, LP Alpha's USB-C power in power sink mode, will not be awaken until the voltage is higher than 10.5V. Thus 9V will not be high enough to get LP Alpha to notice the power feed is available. I.e., as cold as dead.

In another word, buy generic but YMMV. Unfortunately, there are many clones and clone of clones. There is no way to tell if the so called "Apple USB-C 61W" will always supply 15V 3A in its internal offer capability table.
(Or try iClever one I mentioned here https://www.lattepanda.com/topic-p26449.html#p26449 )

P.S. LP Alpha will not negotiate the power adapter to supply 20V (voltage is too high beyond spec. thus does not do so.)

User avatar
SixSixSevenSeven
Posts: 22
Joined: Sun Sep 04, 2016 7:27 pm

Tue May 07, 2019 9:56 am

It was relatively well documented previously that the apple USB "PD" charger *is not* PD spec compliant, it causes issues with many PD devices even when the supported voltages match.

User avatar
SixSixSevenSeven
Posts: 22
Joined: Sun Sep 04, 2016 7:27 pm

Tue May 07, 2019 9:58 am

The same also goes for Hewlett Packard and Huawei PD supplies, both of which apply proprietary extensions to ensure you're only using HP/Huawei products with them.

Post Reply