This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes Applet Access to USB for Serial I/O Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet Access to USB for Serial I/O" Watch "Applet Access to USB for Serial I/O" New topic
Author

Applet Access to USB for Serial I/O

Bill Denniston
Greenhorn

Joined: Feb 18, 2006
Posts: 5
I would like an applet to communicate via USB to a simple serial device (not mass storage or HID), sort of like we used to do with good old fashioned RS232C. (Sorry; I'm dating myself...) Are there any applet restrictions? Any USB driver issues, like getting around or through them? Any good examples available? Any suggestions or advice appreciated. Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41123
    
  45
An applet can't normally access local I/O devices. The way to do it is to sign it, or change the local security policy. See HowCanAnAppletReadFilesOnTheLocalFileSystem for details.

The http://faq.javaranch.com/java/JavaIoFaq points to a couple of articles about using USB from Java, and a library that actually does it.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet Access to USB for Serial I/O
 
Similar Threads
reading barcode from scanner
Building my own hardware/device
starting with ports
Controlling Mouse / Pedal from USB in Multi Platforms
GWT to access Serial or USB port using Java Communications API (javax.comm) or RXTX