Solved

Using Java to communicate to a USB device from browser

Posted on 2008-06-15
4
1,008 Views
Last Modified: 2013-12-29
Hi Experts,
We have a ASPNET web application and now we have a new request: the client wants to communicate with their USB device using our application. They plug the device into their PCs, open a page of our web application and the page will communicate with the device to get some input. Of course the device must already have proper driver. Comunication here means reading some input from the device.

Someone said that we can use JAVA to do this. So I'd like to get more information about it. Can someone give me a guide or a link which tells me how to do?
Thank you for reading.
0
Comment
Question by:thuannguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
Meritor earned 300 total points
ID: 21788616
Accessing USB using java is possible:
Please read through the following link:
http://www-128.ibm.com/developerworks/library/j-usb.html
and you can write applet which will run in browser.
for the detail please visit:
http://java.sun.com/applets/
http://www.dgp.utoronto.ca/~mjmcguff/learn/java/

Feel free to revert back in case of any doubts
0
 
LVL 6

Author Comment

by:thuannguy
ID: 21890808
Hi,
Sorry for my late response. I have learned the links you gave me. I found out that the javax.usb library only works on Linux. It is not good for me :(
However, it seems that the library aims to help us access usb devices directly regardingless drivers, doesn't it? What about if a driver is ready? Is it easier to access it?
Thank for you help :)
0
 
LVL 3

Assisted Solution

by:softwarepearls_com
softwarepearls_com earned 200 total points
ID: 22018972
Whether via an applet, or a JavaWebStart application, the simplest approach is to reach into the host OS' filesystem. For example on UNIX/Linux/OSX hosts, you would go to the mount points of drives, and simply locate the mounted USB drive there. For Windows, you'd need to deal with its drive letters, etc..

Personally, I would try to avoid USB-specific Java libraries at all costs, and try to create a solution based on the above approach. Sticking to standard JRE APIs is sticking to tried-and-tested, supported classes.
0
 
LVL 6

Author Closing Comment

by:thuannguy
ID: 31478772
We are waiting for more input from our clients. Although your posts don't give me what I was looking for, which might not really exist, they are still good hints for me. Thank you all :)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSV file parsing thru Java 13 40
glassfish admin console 1 23
DTD and JAVA versions 1 33
IntelliJ and Eclipse Neon 2 installations 4 39
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question