This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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

Applet Access to USB for Serial I/O

Bill Denniston

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

Joined: Mar 22, 2005
Posts: 42958
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 points to a couple of articles about using USB from Java, and a library that actually does it.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Applet Access to USB for Serial I/O
It's not a secret anymore!