WICG / webusb

Connecting hardware to the web.
https://wicg.github.io/webusb/
Other
1.31k stars 131 forks source link

Feature request. On device webpage support. #228

Open oiaohm opened 1 year ago

oiaohm commented 1 year ago

https://developer.chrome.com/articles/usb/

Buy a USB device. Plug it into your computer. A notification appears right away, with the right website to go to for this device. Click the notification. The website is there and ready to use! Click to connect and a USB device chooser shows up in Chrome where you can pick your device.

Lets think about this workflow little more carefully. You buy device to take it home you plug it in and you get notification about website and you have no internet now how are you going to configure device to use device. Yes the ready to use here presumed working internet connection that is something you should not presume.

Lets say the device has usb storage. There could be a local webpage on device. Now problem how to write URL for web-browser to use the saved webpage on the USB device because the storage of the USB device can be mounted in different locations.

Think about this the webusb information that used to make notification may want to be able to provide ondevice and internet URL for the configuration web page.

I see this as possible coming a generic USB IPP everywhere printing like solution for device configuration. Install less device configuration. The catch is for this to be good install less device configuration just need functional path to work without internet.

This requires 2 things really. 1) Notification from device being able to have more than 1 URL with user interface that users can understand. 2) Local URL that able to correctly point to where the local webpage is even if the storage of device is mounted in different location.