Replies: 1 comment 3 replies
-
I don't know of any good & cheap solution here. I use:
All three have different bugs and quirks. I did look into designing one and making it, (even made draft PCB's) but just didnt have time to get any firmware rolling really for it and so it was shelved for some rainy day in the future. At this point its mostly the KM002C with windows in a VM for debugging smaller issues. The FUSB302 can be used as a decoder so long as the messages for EPR are chunked (which they will be for Pinecil at least). In terms of understanding, I've mostly relied upon reading the specifications and whatever google turns up that day. USB-PD is only around 300kHz iirc, so you can probably make one of the cheaper capture units work with sigrok. You will need to amplify it up to 3.3V. This would probably be the path I'd look into first. If I had any spare time I'd make an interceptor board with amp + fx2 on it. Just dont have time at the moment. QC is purely analog on the USB data pins in the 0-3.3V range, and its masssssively slower, basically anything > 10Hz is good here. I hope I hit the main points, lmk if questions. |
Beta Was this translation helpful? Give feedback.
-
TL;DR:
What is the lowest budget & easy-to-use solution to capture dumps of low-level packets with
QC
/PD
protocol frames overUSB-C
?Is my understanding correct that [even on crowdsupply] there is no ready-to-use off-the-shelf device which I can order online, get it, connect three
USB-C
cables in it (source, sink, PC) without worry for25+ V / 3+ A
sparkles & magic smoke around, run [some neat] software and start to capture frames & their decoding right away?Hello. To be honest, I think it's even a bit strange that there is no such information widely available in the documentation nor in the discussions. But even my online search skills are failing me on that a bit as well.
So, let's say I'm getting more & more curious to dig deeper into those power protocols for:
IronOS
with improving its power management for some power supplies (at least just by providing samples of dumps);Where should I start?
twinkie
is not an option since it looks like some Google's internal hardware tool;twonkie
demands a lot of additional effort: you have to getPCB
&BOM
separately, and then [micro]solder it yourself;USB-PD
I see a lot of mentions ofFUSB302
but as far as I understand it's just anIC
supporting power protocols on hardware level but there is no any widely available hardware research tools based on thatIC
.From software point of view, there is a
USB-PD
protocol decoder forsigrok
. But what hardware would you recommend? Off-the-shelf preferably.Then I came up with the similar idea like here:
USB-C
breakout boards;data
/CC
lines & multimeter forVCC
/GND
(not to fry the analyzer since there may be high voltage & a lot of amps).But is this approach "work-able"? If so, what analyzer you would recommend? What minimal sample rate must be supported by analyzer? Does it have to be one of those original
100+
MHz sample rate devices or a cheap24 MHz
fx2lafw
-based piece will do its job?Also, thanks to this comment I discovered for myself a whole set of devices made by PowerZ, such as
KM002
&KM003[C]
. At first they look useful and just what I look for, but according to some reviews (since it's fully proprietary completely closed hardware, firmware & software) even getting GUI software may be a problem - I saw some comments where people have to write to corporate email to getzip
with software because they just couldn't find/download it in any other way freely available online. Such level of support raises a lot of questions for future maintenance of devices by the manufacturer and make the cost too pricey for such level of support in my opinion.However, what I would like to have is something like
KM00C
probably, BUT without a screen so just a box with cables (which in its turn should have less price) and reliable support by FOSS software community likesigrok
or some similar project. Is such hardware solution / device out there?So, bottom line is:
QC
/PD
?Oh, and about the latter... just before posting this, I decided to check online search again just in case, so it seems I trained it by now, because I got in the results this super interesting set of articles including how to use the mentioned above
FUSB302
IC withMicroPython
supported board. But once again, it demands getting some additional pieces of hardware (i.e., more than just one unit). Also, just to save the effort & time for responders - I understand that additional good source of knowledge on the topic isPinecil
-related source code - the article above also has a reference to very interesting piece of information, and sources of Ralim'susb-pd
obviously.However, if you're aware of really good materials / write-ups / videos (especially interesting presentations from DefCon / ChaosCommunicationCongress / etc. about USB-C / USB-PD), please, share them in the comments.
I guess that just like with any other hardware tools for such things, we need some more time. I mean, at first, it was almost a luxury to debug
JTAG
at home. But thenBusPirate
/HydraBus
& others came to the scene. The same did happen withSDR
- what would cost kilotons of money a couple of decades ago, now is relatively affordable thanks toHackRF
/BladeRF
/LimeSDR
projects. It seems that it's just a matter of time when we start to have really awesome hardware tools to tinker with power overUSB-C
in plug&play manner. In fact, for those hardware hackers who has a bit of business spirit, it could be a good opportunity to start & run such kind of open hardware project. NOT A BUSINESS ADVICE though :)As always, thank the community for any advice in advance.
Beta Was this translation helpful? Give feedback.
All reactions