473,748 Members | 4,030 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Anybody use Java with USB devices?

Hi,
I'm thinking about using a USB attached device for some data collection.
I can use other languages to "talk" with it, but I'd prefer a Java solution.
Does anybody have any experience with USB and Java and could point me to a
starting point? Thanks. (Already know Java and apologize if I'm
overlooking the obvious.)
Jul 17 '05 #1
2 5240
"Fred" <Fr**@isp.com > wrote in message news:<ph5Hb.666 443$Tr4.1673039 @attbi_s03>...
Hi,
I'm thinking about using a USB attached device for some data collection.
I can use other languages to "talk" with it, but I'd prefer a Java solution.
Does anybody have any experience with USB and Java and could point me to a
starting point? Thanks. (Already know Java and apologize if I'm
overlooking the obvious.)


There is a third party Java USB class library. If my memory is fine,
it's called JUSB or something. Do google or serch groups.
Jul 17 '05 #2
Fred wrote:
Hi,
I'm thinking about using a USB attached device for some data collection.
I can use other languages to "talk" with it, but I'd prefer a Java solution.
Does anybody have any experience with USB and Java and could point me to a
starting point? Thanks. (Already know Java and apologize if I'm
overlooking the obvious.)


You have two options:

0) jUSB -- http://jusb.sourceforge.net

jUSB works quite well -- at least on Linux, where it's reference
implementation is. There has recently been a port to Win32-based
platforms, however I can't comment on how well it works (as i avoid
Win32 platforms like the plague that they are :) ). It has the benifit
of being available under an Open Source license. It has the
disadvantage, however, of being fairly poorly supported by its
developers -- project development activity is rare, and getting
questions answered can be exceedingly slow (I once had a question
answered several months after e-mailing it to their developers :P).

One thing to note: if you're going to try it out on Linux, grab the
sources from their CVS repository directly. Their downloadable releases
have badly broken build processes which don't work for many users.
However, once built it does what it advertizes -- we support it with the
jSyncManager Project (http://www.jsyncmanager.org) for talking to
USB-enabled PalmOS-based handhelds.

1) Javax-USB (JSR-080) -- http://javax-usb.org

This will probably eventually be the official USB solution for Java,
once it completes the Java Community Process (JCP). It officially has
been granted the package "javax.usb" .

This project is well maintained -- the developers run a mailing list
where they respond quickly to queries. As with jUSB, however, the
reference implementation is only for Linux, and AFAIK they don't have a
port to any other platform as of yet.

The jSyncManager project isn't setup to use this API just yet, but I've
assigned the task of writing a plug-in to use Javax-USB for connectivity
for our next release, as in the long term this appears to be the way to go.

I hope this helps!

Brad BARCLAY

--
=-=-=-=-=-=-=-=-=
From the OS/2 WARP v4.5 Desktop of Brad BARCLAY.
The jSyncManager Project: http://www.jsyncmanager.org
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2530
by: Tux | last post by:
Is it possible and does someone try to make driver for Linux in Java, for some USB device? Could Java do that ? I saw jUSB package but it seems that works only with the devices which Linux already see.
0
2238
by: asj | last post by:
luke: BORRRRRRRRING......the most interesting initiatives are happening on the client side - in small wireless devices such as cellphones and smartphones, where J2ME has become the de facto standard for application development. Article from Javaworld.com: "Java everywhere is for world domination" http://www.javaworld.com/javaworld/jw-08-2003/jw-0822-wireless.html? Some quotes:
11
9267
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
25
3180
by: wee | last post by:
I've been using Java for a few years now and am just amazed at how many new "technologies" or tools come out all the time (i.e., Struts, Java Server Faces, JMeter, jad, etc.). It is nigh impossible to keep up on everything. It seems almost like it's a fad in which you've got to know the next new thing or you aren't much. I've always wondered: does the C++ world do this? Are there new libraries coming out all the time, new paradigms, or...
4
4812
by: David Moss | last post by:
I was given a Compaq pocket PC with windows mobile 2002. I immediately began looking into how to program it and Java seemed initially to be a good choice. To my surprise I found it wasn't as straightforward as Java for the desktop. Even finding a JRE for the PDA is a nightmare. The PC came with Jeode, a version of PersonalJava. PersonalJava is no longer supported by SUN.
15
1496
by: atbusbook | last post by:
Programing Languiges Are Ment to be free. That is why i am starting The <i>Coo De Tar</i> thats french for Blow of state it is a flash/java alternative and if you are going to use a server side languige use Perl,Python or better yet Ruby. What is the point of a languige without a standerd and without a open source distrabution. Coo De Tar will be released as a api for perl,python and ruby. Java sucks because it IS NOT FREE. I AM A GNU GUY...
4
9169
by: deboshripauL | last post by:
hii frenz.. can sumbody tell me d way to go abt interfacing of java programs wid USB devices n ports... dis is reqd 4 a project m tryin 2 work on.. d details of d project r as follows: To control the devices or equipments from the remote place through a web-page. Here all the devices which are to be controlled are connected to the relays(acts as switches)on the webserver circuit board. The web-server circuit is connected to LAN or...
10
1555
by: Ben | last post by:
This is not a troll post. I am doing research on my own too but could use your guys/gals help. As mentioned in prev thread our company is about to embark on building a large scale web based application. "Shimmy" provided some help already but need more. This app will be hit by thousands of users, large data sets and be fed by GPS handheld devices such as cell phones, which will also require apps we write running on them. The response...
29
2347
by: s0suk3 | last post by:
Hello, I was hoping to get some opinions on a subject. I've been programming Python for almost two years now. Recently I learned Perl, but frankly I'm not very comfortable with it. Now I want to move on two either Java or C++, but I'm not sure which. Which one do you think is a softer transition for a Python programmer? Which one do you think will educate me the best?
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8244
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.