3

I'm wondering if there is a specification around to address USB devices like:

usb://...

Does anyone know?

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
Volker von Einem
  • 556
  • 4
  • 13
  • I'm 99% sure that there isn't. Why should there be such a thing for USB devices when there isn't for any other type of attached device? And anyway, the computer treats USB devices as the specific class of device that they represent (i.e., a printer, a scanner, attached storage, etc.), not all as generic USB devices. – Cody Gray - on strike May 09 '11 at 09:57
  • I have to make things a little bit more concrete. We have a device that can be connected RS232, Ethernet and two different USB interfaces. My whish would be to have an interface like: Connect(String uri), Send, ... Based on the uri a factory could instanciate the proper communication layer. I haven't found anything like a USB URI but I thought I ask before I invent my own stuff. – Volker von Einem May 09 '11 at 13:10

2 Answers2

1

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

Community
  • 1
  • 1
Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
0

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.