USB device on website
Is it possible to use a USB device peripheral that I have created directly on a website. I am not sure how to start, but for example, on websites like connect.garmin.com they allow you to connect your Sat Nav and then transfer the data to the website after you have downloaded a application and restarted your browser.
What do I nee开发者_如何学Pythond to research to add this functionality with a particular device I have.
Directly? Generally not.
Browsers run websites are run in highly sandboxed environments. If you want to access a USB device you will need:
- Drivers for the OS
- Heightened security privileges
- An interface (which will usually be fairly limited in its environments, e.g. ActiveX for IE/Windows)
If you have an application, then it just needs to load an HTTP library, make use of a webservice that you provide, then open a URL (in the default browser) which is related to the updated data (e.g. by a unique ID returned by the webservice).
You will need to create a browser plug-in for this. In Garmin's case, it is Garmin Communicator.
精彩评论