Layke
Layke

Reputation: 53196

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 need to research to add this functionality with a particular device I have.

Upvotes: 0

Views: 297

Answers (2)

janmoesen
janmoesen

Reputation: 8020

You will need to create a browser plug-in for this. In Garmin's case, it is Garmin Communicator.

Upvotes: 2

Quentin
Quentin

Reputation: 944010

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).

Upvotes: 3

Related Questions