views:

67

answers:

2

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.

Thanks.

+2  A: 

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

David Dorward
Matt S
So, I could use Flash as the direct interface to the device? Any other directions you can point me before I begin the task.
Laykes
Also David, the intention is to allow people with the devices, to access my website and then use the device on the website. Its only basic transfers of information. Very minimal complexity.
Laykes
+1  A: 

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

janmoesen
Yes, I have downloaded that and installed to get my USB GPS working when I use their website. I would like t oknow what I need to research to create something like this myself.
Laykes