Re: [javax-usb-devel] Help on JAVAX

2009-09-16 Thread max
Since you wish to receive 64 bytes and an extra byte is coming in, have you tried requesting 65 bytes? Just my 2 cents worth. Dan Streetman wrote: > If it is a HID device, you'll need to read and understand the HID spec to > talk to it. > > On Tue, Sep 15, 2009 at 8:53 PM, Ruperto Dura

Re: [javax-usb-devel] Detecting mouse buttons on Windows

2009-08-06 Thread max
Well, it is a full serial port. In fact if you really do just want to use it as a serial port then I recommend you forget the mouse interface and just use it directly as a serial port. Your life will be much simpler. >From Sun you can download the javacomm package >(http://java.sun.com/product

Re: [javax-usb-devel] Detecting mouse buttons on Windows

2009-08-06 Thread max
I think your best bet is to get one a usb to serial adapter (for example: http://sewelldirect.com/usbtoserial.asp) This will simply show up as a serial port and you won't have to do anything differently than you do now. Oscar Lars Schnoor wrote: > Hi everyone > I have a Java applicatio

Re: [javax-usb-devel] 64 bit Linux

2009-04-25 Thread Max
Thank you for your help Dan. The problem turned out to be caused by the version of java that was being run. There was a confusion of different runtime environments. Dan Streetman wrote: That's strange, it's saying it can't find that method. Are you sure you don't have older JAR files that

Re: [javax-usb-devel] 64 bit Linux

2009-04-25 Thread max
I have a correction to the item I brought up below. It is likely that I was causing the wrong lib.so file to be loaded. After a bit more playing about I was able to make that problem go away. Here it is now, my real issue: When I initialize USB I print the responses, and alongside them I get

[javax-usb-devel] 64 bit Linux

2009-04-25 Thread max
Hi all. I get an error when I try to use the jsr80 under 64 bit Suse Linux 11.0 (works fine under 32 bit Suse 10.0): Error when loads libJavaxUsb.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) I did the total Ant rebuild thing, under the environment (64 bit

Re: [javax-usb-devel] 64 bit implementation

2009-04-22 Thread max
give me a rundown of what I need to do so that I can be prepared as possible when I get to the machine I will be doing this on. Dan Streetman wrote: > No, but you should be able to compile it yourself. > > On Wed, Apr 22, 2009 at 11:05 AM, Max wrote: >> Is there a pre-compi

[javax-usb-devel] 64 bit implementation

2009-04-22 Thread Max
Is there a pre-compiled 64 bit version of the libraries available? The standard release does not work under 64 bit Linux. -- Stay on top of everything new and different, both inside and around Java (TM) technology - reg

Re: [javax-usb-devel] How to compile from sources

2008-04-26 Thread Max
all set to run javax.usb. On Thu, Apr 24, 2008 at 12:02 AM, Max <[EMAIL PROTECTED]> wrote: > Hi, > I often see it recommended, on this list, to build the libraries from > the latest cvs sources. > Well, I checked out the source files using cvs, but I am not sure what >

Re: [javax-usb-devel] How to compile from sources

2008-04-24 Thread max
irectory to your LD_LIBRARY_PATH and your CLASSPATH and you are all set to run javax.usb. On Thu, Apr 24, 2008 at 12:02 AM, Max <[EMAIL PROTECTED]> wrote: > > Hi, > > I often see it recommended, on this list, to build the libraries from > > the latest cvs sources. > >

[javax-usb-devel] How to compile from sources

2008-04-23 Thread Max
Hi, I often see it recommended, on this list, to build the libraries from the latest cvs sources. Well, I checked out the source files using cvs, but I am not sure what all the steps are, or what else may be required, to perform a complete build. I looked for FAQ or examples on the jsr-80 pages.

[javax-usb-devel] I cannot consistently see USB devices

2008-04-23 Thread Max
Hi, I wrote an application that uses javax.usb to communicate with various usb devices.Currently I am running it under Suse 10.0. I know that in order for my Java program to be able to see a device (much less talk to it) the permissions have to be appropriately set.  For some reason I have been

Re: [javax-usb-devel] how to read while writing with the usbPipe!

2007-12-16 Thread Max
Here is an abbreviated example. Note that I have removed from this, all checks, error handling, and such. It is just the logic of creating two pipes for two endpoints. One IN and one OUT. Then using them to do a write and a read. It assumes that endpoint 2 is an OUT and endpoint 4 is an IN. Note

Re: [javax-usb-devel] how to read while writing with the usbPipe!

2007-12-14 Thread max
You can only open one pipe on a given endpoint. That pipe has to be either an IN or an OUT, depending on how that endpoint is defined. To do IN and OUT, you need to separate endpoints. "Xie wrote: > > > Dan, > > I have been trapped in a problem recently. That is, when I use an USBPip

[javax-usb-devel] fxload not hotplugging

2007-11-30 Thread max
javax.usb works great for me, but what I am missing is the magic formula to automatically call my 'fxload' script to load firmware into the usb device. I can load it manually and that works fine. I have tried various approaches mainly centered around adding a line to "/etc/hotplug/usb.usermap"