Is there something like a URI for USB devices?
I'm wondering if there is a specification around to address USB devices like:
usb://开发者_如何学C...
Does anyone know?
There is a URN format which any device which supports the Universal Plug-and-Play protocol can use to advertise its capabilities:
When a device is added to the network, it multicasts discovery messages to advertise its root device, any embedded devices, and any services.
For example:
- urn:schemas-upnp-org:device:deviceType:v
- urn:schemas-microsoft-com:device:MediaCenterExtenderMFD:1
- urn:schemas-wifialliance-org:device:WFADevice:1
- urn:schemas-upnp-org:device:BinaryLight:1
- urn:wifialliance-org:serviceId:
- urn:microsoft-com:serviceId:NULL
- urn:upnp-org:serviceId:SwitchPower:1
References
- Remote Experience Advertisement Protocol: Appendix B: UPnP Device Description
- Writing a UPnP Service
- RFC 7255: Using the International Mobile station Equipment Identity (IMEI) Uniform Resource Name (URN) as an Instance ID
- WFA Device 1.0 (pdf)
- UPnP Technical Basics: UPnP Device Architecture (UDA) (pdf)
- Nodejs implementation of the UPnP Device Architecture 1.1
- Zoltan Balazs: The real risks of the IoT security nightmare (pdf)
- Learning IoT Security: Jan 2016 (pdf)
- Accenture Security Call to Action: IoT PoV (pdf)
- The QName URN Namespace
- URIs, URLs, and URNs: Clarifications and Recommendations 1.0
- URL vs. URI vs. URN, in More Concise Terms | Damnhandy
Yes. Per kcmshell5 kcm_printer_manager
, literally usb://
.
https://learn.microsoft.com/en-us/dotnet/api/android.hardware.usb.usbaccessory.uri?view=xamarin-android-sdk-13&viewFallbackFrom=xamarin-android-sdk-9 may additionally provide USB URIs, but I have not evaluated it.
精彩评论