On Fri, 10 Jan 2003 16:38:31 +0100, Federico wrote: Hey Federico:
>If I use the java usb project to connect the cell, I have a expeption: the >device is claimed by a serial driver. >Well, if I use the rxtx or javacomm to acces to the serial port, I can >access only the real serial port and the usb "serial" is unknown to the >serial comm api. > >Anywere can help me? >I must use the java usb api or simply a general comm api for serial port?? You're running into an annoying issue with Linux's plug-and-play USB driver system, that we run into with the jSyncManager project (connecting a Palm for synchronization completely in Java). Linux (kernel 2.4.x series, and some 2.2 with the USB stuff backported) has a bunch of USB-serial based drivers included with the distro that will dynamically load themselves and claim the port as soon as you plug in a USB device they recognise. They claim control before you can through a more general Java USB API. The "solution" (which is by no means ideal) is to un-install the modules that are getting in your way (via rmmod), and then renaming their module files so the kernel can't load them again. In our case, unless you prevent the kernel from loading usbserial.o and visor.o, the jSyncManager can't connect to the Palm when it's plugged in -- these drivers load, make themselves the sole device owner, and prevent any direct USB access. Plug in your cell phone and run lsmod (as root) to see what modules are loaded. I'm willing to bet that at least usbserial.o is being loaded, and possibly others that rely upon it. Un-plug your phone, rmmod the offending modules, rename them, and then try connecting. We're still looking for a better solution to this problem for our project, as many users won't want to disable these modules completely (as they're used by other devices and applications). In our case, we'll probably create another connector class with some JNI in it to connect directly to visor.o specifically for Linux, and use jUSB and Java USB on all other platforms. Brad BARCLAY Lead Developer & Project Administrator, The jSyncManager Project. =-=-=-=-=-=-=-=-= >From the OS/2 WARP v4.5 Desktop of Brad BARCLAY. E-Mail: [EMAIL PROTECTED] Web: http://www.jsyncmanager.org ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel