Re: [javax-usb-devel] Error submitting IRP : Device or resource busy

2004-07-15 Thread Dan Streetman
If you do have a driver already driving your device, and you need to remove that driver, you can use a UsbInterfacePolicy while claiming the UsbInterface, and make the "forceClaim" method in the policy return true. You will need a kernel with USBDEVFS_DISCONNECT support in it. While building

Re: [javax-usb-devel] Error submitting IRP : Device or resource busy

2004-07-15 Thread Dan Streetman
If you do have a driver already driving your device, and you need to remove that driver, you can use a UsbInterfacePolicy while claiming the UsbInterface, and make the "forceClaim" method in the policy return true. You will need a kernel with USBDEVFS_DISCONNECT support in it. While building

Re: [javax-usb-devel] Re: Java USB API

2004-07-15 Thread Dan Streetman
Hello, Do you mean that your devices are RS232 or USB? If you want to communicate with USB devices, you should use javax.usb, however if you want to talk to RS232 devices, you should use javax.comm. Since you say your devices are RS232, I think you probably want to use javax.comm. If your d

Re: [javax-usb-devel] Cannot find USB devices

2004-07-15 Thread Andre Neto
Hello all, I wasn't running the code as root (I must admit it was quite obvious) now I can see the devices. Thank you very much for your help! Best regards, André Roberto Perpuly wrote: Andre, You are running the examples as root user, correct? I am developing a driver for a USB device. I

[javax-usb-devel] Re: Java USB API

2004-07-15 Thread Boyd Dimmock
Dan et al.  could you give Chrisian an hand?   Boyd Dimmock Senior Technical Staff IBM Retail Store Solutions, Raleigh 919-301-5713;  TieLine 8-352-5713 [EMAIL PROTECTED] 07/14/2004 07:07 AM To Boyd Dimmock/Raleigh/[EMAIL PROTECTED] cc Subject Java USB API Dear Boyd Dimmock

Re: [javax-usb-devel] Driver for CM19a X10 Transceiver Posted

2004-07-15 Thread Dan Streetman
Great! Is it ok if I add it to the javax-usb-example package? On Sat, 10 Jul 2004, Judy Kerr wrote: >It can be downloaded from http://members.cox.net/judykerr/. This is a >very simple USB device, so the download may also be helpful as example >code. > >BTW thanks for all the good work on the

Re: [javax-usb-devel] Cannot find USB devices

2004-07-15 Thread Dan Streetman
You need /proc/bus/usb/ mounted (the usbfs filesystem) and you need read-write access to the device nodes (/proc/bus/usb/NNN/NNN). By default the nodes are read-write only be root. On 2.4 kernels you can make them read-write by mounting the filesystem with the mount option "devmode", e.g.: m

Re:[javax-usb-devel] Cannot find USB devices

2004-07-15 Thread Roberto Perpuly
Andre, You are running the examples as root user, correct? I am developing a driver for a USB device. I am using red hat 9.0 (kernel 2.4). For my driver to work, I need to disbale the hotplug driver. You might want to check if the devices you are developing drivers for have already been cl

[javax-usb-devel] Error submitting IRP : Device or resource busy

2004-07-15 Thread Tomaz Hutter
Hello, I am trying to submit a control IRP packet to an USB device (UsbDevice. asyncSubmit(UsbControlIrp irp)) and I get the following Exception: javax.usb.UsbException: Error submitting IRP : Device or resource busy at com.ibm.jusb.os.linux.LinuxPipeRequest.completeUsbIrp(LinuxPipeReques

[javax-usb-devel] Cannot find USB devices

2004-07-15 Thread Andre Neto
Hello, We are working in a project at about three years, we've always used RS-232 and the javax.comm API to connect several apparatus to different computers, but now we've decided to use USB to control the new apparatus. Since we use Linux and Java, I've decided to use your API, but when I run o