| Electronics > Projects, Designs, and Technical Stuff |
| USB PD "Vendor Defined Messages" (VDMs) |
| (1/2) > >> |
| TimNJ:
Hi everyone, I'm working on a system using USB Power Delivery (PD) and am struggling to understand the specifications/features. Maybe someone here has experience with USB PD signalling/communication. I have a USB PD source capable of 5V and 20V. I want my powered device to request 20V, but only after it has identified the power source as a particular product ID/serial number. Basically, the powered device has to "authenticate" the source as "genuine" first. A typical PD system doesn't care about this. If the powered device needs high power, it will select the highest-power profile advertised by the source, no questions asked. I've spent a few hours now, searching through the USB PD spec, and some white papers published by IC manufacturers. One thing that caught my eye was "Vendor Defined Messages" (VDMs). These messages are allowed to contain information not explicitly defined in the USB specification. My question is: Can I use VDMs to interrogate the power source for some sort of product ID? Both the source and the device are custom. I would imagine I couldn't use off-the-shelf USB PD controllers. Think I would have to use a micro-controller to implement the USB PD stack + additional VDM signalling. Any thoughts on the feasibility of this? Maybe it's better off to send some data over D+ /D- separately. Thanks. :) |
| amyk:
Don't do it. The last thing we want is more incompatible chargers and vendor-lockdowns. |
| NiHaoMike:
If you just want to reject poor quality chargers, check the voltage sag at full current. |
| TimNJ:
Thanks to both of you. Trust me, I hate vendor-locking just as much as anyone. --- Quote from: NiHaoMike on June 08, 2019, 01:49:31 am ---If you just want to reject poor quality chargers, check the voltage sag at full current. --- End quote --- Close. This is a medical system. The idea is to reject chargers which do not have medical approvals. In this case, it would be locked to a single supply, yes, but it's not intended to be a scheme to sell replacement chargers or anything. Just don't want someone to grab a consumer-grade USB PD supply off AliExpress and plug it into the system. Also, I don't really agree with the idea to use USB PD in this application. Not my idea. Maybe a standard power adapter with a non-standard connector would be good enough. Or a 3rd wire to do some sort of psuedo-analog-handshaking thing. Thanks. |
| Whales:
Use a custom connector? That way it's clear to people that you need the very specific charger, and they can't replace it without intentional effort. If you use a USB connector then any amount of DRM is going to be confusing and difficult to accept. You don't want doctors/healthcare confused about why your device is not working. |
| Navigation |
| Message Index |
| Next page |