~/Downloads/javax-usb-ri-linux-102/jni$ make
> gcc -I/include -I/include/linux -Wall -fPIC -c JavaxUsbKernel.c
> In file included from JavaxUsbKernel.c:11:
> JavaxUsb.h:14:44: error: com_ibm_jusb_os_linux_JavaxUsb.h: No such file or
> directory
> In file included from JavaxUsb.h:15
-I/include/linux -Wall -fPIC -c JavaxUsbKernel.c
In file included from JavaxUsbKernel.c:11:
JavaxUsb.h:14:44: error: com_ibm_jusb_os_linux_JavaxUsb.h: No such file or
directory
In file included from JavaxUsb.h:15,
from JavaxUsbKernel.c:11:
JavaxUsbLog.h:14:17: error: jni.h: No
I'm having some trouble trying to run the javax-usb-ri-linux package on a
fairly new linux (2.6.31.1). After manually mounting /proc/bus/usb I seem
to be hitting the same problem with both my client and the sample swing
client. Filesystem info and trace messages below:
i...@ubuntu:/proc/bus/us
nh
> wrote:
>
> Hello Dan,
>
> I am using Java 6 et eclipse Galileo 3.5. I have changed the
> libJavaxUsb.so library to the 1.0.1 version. The program can find
> the usb devices. Now I execute some code, I see the error below:
>
> [default](0) Java
find the usb devices. Now I
> execute some code, I see the error below:
>
> [default](0) JavaxUsbChecks.h.debug_exception[75] !! JNI Exception : file
> (JavaxUsbPipeRequest.c) function (pipe_request) line (41)
>
> [default](0) JavaxUsbChecks.h.debug_exception[76] ! Failure
Hello Dan,
I am using Java 6 et eclipse Galileo 3.5. I have changed the
libJavaxUsb.so library to the 1.0.1 version. The program can find the
usb devices. Now I execute some code, I see the error below:
[default](0) JavaxUsbChecks.h.debug_exception[75] !! JNI Exception :
file
ervices = UsbHostManager.getUsbServices();
> virtualRootUsbHub = services.getRootUsbHub();
>
> System.out.println(virtualRootUsbHub.getUsbDeviceDescriptor().toString());
>
> } catch (UsbException uE) {
> throw new RuntimeException("Error : " +
{
services = UsbHostManager.getUsbServices();
virtualRootUsbHub = services.getRootUsbHub();
System.out.println(virtualRootUsbHub.getUsbDeviceDescriptor().toString());
} catch (UsbException uE) {
throw new RuntimeException("
Hello Roger,
The USB Modem which I am using is from Sentar Wireless Technology and the
model number is ST860U. Following is the link for the same.
http://www.sentarwireless.com/rdr/?lang=english&mod=products&fileid=st860u_en.php
On Tue, Feb 3, 2009 at 9:36 PM, Sumeet Chakraborty <
sumeet.chakra
Hello Roger,
First of all my apologies for the delayed response. I went through the
PSTN120.pdf and I would like to sincerely thank you for providing me such a
nice document which has cleared my queries. However I am still left with a
few queries.
1) How do I recognise which interface corresponds
Sumeet Chakraborty wrote:
> Hello Roger,
>
> Thanks for providing more insight to my problem. When we look into the
> output of the "testlibusb-win32.exe" do we need to look at the key by
> the name "*bmAttributes*". In the key bmAttributes key I could see
> values as "02h", "03h", so do these
Hello Roger,
Thanks for providing more insight to my problem. When we look into the
output of the "testlibusb-win32.exe" do we need to look at the key by the
name "*bmAttributes*". In the key bmAttributes key I could see values as
"02h", "03h", so do these values correspond to the values that is
Sumeet Chakraborty wrote:
> Hello Roger,
>
> Thanks for providing some insight into my problem however the manual
> that came along with the USB Modem that I purchased does not provide
> any kind of documentation as to what it supports. The machine on which
> I am running this code does not have
Hello Roger,
Thanks for providing some insight into my problem however the manual that
came along with the USB Modem that I purchased does not provide any kind of
documentation as to what it supports. The machine on which I am running this
code does not have a serial port it just has 4 USB ports.
Sumeet Chakraborty wrote:
> Hello Mike,
>
> Thanks a lot for providing some insight to my problem. Can you please
> tell me whether it would be possible for me to send "AT" commands to
> the USB Modem. Another thing which I wanted to ask you is you said
> that there are 3 interfaces
> Interface
ave put the
> > DLL in the path for JRE to recognise it.
> > 2) I have downloaded the LibUSB-Win32 package for the Windows
> > implementation after which I generated the "Mydevice.inf" and
> > "Mydevice.cat" files using the inf-wi
ydevice.cat" files using the inf-wizard.exe
> 3) In my Java code firstly I traverse the RootHub to get
> access to all my USB Devices after which I try putting
> something to the console for each of the devices that I find.
> 4) I also set the
the USBConfiguration to 1 and then I traverse through all the
> USB Interfaces after which I try to claim the interface, it works fine till
> now but when I try to access the endpoints it gives me an error.
>
>
>
> log4j:WARN No appenders could be found for logger
> (com.mc
that I find.
> 4) I also set the USBConfiguration to 1 and then I traverse through all the
> USB Interfaces after which I try to claim the interface, it works fine till
> now but when I try to access the endpoints it gives me an error.
>
>
>
> log4j:WARN No appenders could
es that I find.
4) I also set the USBConfiguration to 1 and then I traverse through all the
USB Interfaces after which I try to claim the interface, it works fine till
now but when I try to access the endpoints it gives me an error.
log4j:WARN No appenders could be found for logger
(com.mcreations.
t; I build it on Eclipse, and this is the error that I receive.
>
> Exception in thread "main" java.lang.RuntimeException: Error : The UsbServices
> implementation class com.ibm.jusb.os.linux.LinuxUsbServices was not found :
> com.ibm.jusb.os.linux.LinuxUsbServices
>
it on Eclipse, and this is the error that I receive.
Exception in thread "main" java.lang.RuntimeException: Error : The UsbServices
implementation class com.ibm.jusb.os.linux.LinuxUsbServices was not found :
com.ibm.jusb.os.linux.LinuxUsbServices
at ShowTopology.getVi
gt; Jun 29 00:51:27 gilmour kernel: [113474.692905] usb 2-3: usbdev_ioctl:
> REAPURBDELAY
> Jun 29 00:51:27 gilmour kernel: [113474.693920] usb 2-3: usbdev_ioctl:
> REAPURBDELAY
> Jun 29 00:51:27 gilmour kernel: [113474.694934] usb 2-3: usbdev_ioctl:
> REAPURBDELAY
> ...
>
>
Thanks a lot for your patience!
Best regards,
--
Gabriel Queiroz Silva
E-mail: [EMAIL PROTECTED]
Tel: +55 61 9604.1412
On Sat, Jun 28, 2008 at 12:03 PM, Dan Streetman <[EMAIL PROTECTED]> wrote:
> Ah, the error is on the interrupt in pipe. You're going to need a usb
> bus trace to see
Ah, the error is on the interrupt in pipe. You're going to need a usb
bus trace to see what's going on.
On Fri, Jun 27, 2008 at 7:47 PM, Gabriel Queiroz <[EMAIL PROTECTED]> wrote:
> Hi Dan,
>
> Sorry, hadn't get ya. I don't need to send any command. The device
Hi Dan,
Sorry, hadn't get ya. I don't need to send any command. The device is
enumerated, and after it waits for the user to push a button... If a
button is pressed, then the device sends a command.
But nothing is being sent before the error, just the normal setup routine.
Cheers,
Yes, of course it happens after a submit, what I meant was what
command are you sending that causes the error?
On Fri, Jun 27, 2008 at 6:59 PM, Gabriel Queiroz <[EMAIL PROTECTED]> wrote:
> Hi Dan,
>
> Inside LinuxPipeOsImp.java, method void asyncSubmit( UsbIrpImp i
again!
--
Gabriel Queiroz Silva
E-mail: [EMAIL PROTECTED]
Tel: +55 61 9604.1412
On Fri, Jun 27, 2008 at 7:16 PM, Dan Streetman <[EMAIL PROTECTED]> wrote:
> No hint unfortunately. You may be able to track down where in the
> kernel it's generating the error, which might help, but ul
No hint unfortunately. You may be able to track down where in the
kernel it's generating the error, which might help, but ultimately it
may be a device problem.
What command are you getting the error for?
On Fri, Jun 27, 2008 at 5:27 PM, Gabriel Queiroz <[EMAIL PROTECTED]> wrot
mplete output from MouseDriver.java:
Found 1 HID-type interfaces.
Found mouse by SubClass/Protocol
Found mouse by Usage Page/Usage ID
Found HID mouse.
Driving HID mouse, move mouse to see movement events.
Press Enter when done.
Unable to submit data buffer to HID mouse : Error submitting IRP : Error
According to my Linux errno.h file, 62 is "Timer expired". I have no
idea where that would come from, but it's almost certainly coming from
Linux, not javax.usb - all the generic "Error N" errors come from
failed ioctls into Linux. If you are adventurous you could loo
the mouse pointer move around the screen.I
I've got this device to work under windows and linux with the default hid
drivers, but when i let the MouseDriver example drive it I'm getting the
following error:
Unable to submit data buffer to HID mouse : Error submitting IRP : Error 62
I've
I got error:
"Error while loading shared library LibusbJNI.dll : C:\Program
Files\Java\jdk1.6.0\jre\bin\LibusbJNI.dll: The operating system cannot
run %1"
I have installed libusb-win32 but it didn't work - java app just exits
after UsbHostManager.getUsbServices().
Then I copied
On Wed, 23 Aug 2006 08:18:18 +0200, Søren Mathiasen wrote:
This is on windows using libusb win32 from CVS
> Hi,
>
> When running the SwingUsbView exmaple/test it fails. First it discover
> all the devices correctly, all good.
> Then it appears that some topology updater is executed in a thread, a
Hi,
When running the SwingUsbView exmaple/test it fails. First it discover
all the devices correctly, all good.
Then it appears that some topology updater is executed in a thread, and
then my devices disappears from the list :o(
Is it me that is doing something wrong, or is this indeed a bug ?
B
Well you mentioned several problems in your first email. What problem
exactly are you having now?
On Sat, 27 May 2006, ahmad al-ansary wrote:
>
>Please I still get the same error, even after installing the common
>implementation.
>
>Sorry for bothering you, but I really n
Please I still get the same error, even after installing the common implementation.
Sorry for bothering you, but I really need to overcome this problem.
HELP HELP HELP !!!
From: Dan Streetman <[EMAIL PROTECTED]>Reply-To: [EMAIL PROTECTED]To: ahmad al-ansary <[EMAIL PROTECTED]&g
nloaded the RPMs javax-usb-1.0.1-1.i386.rpm
>and javax-usb-ri-linux-1.0.1-1.i386.rpm, and installed them both, then I
>downloaded the examples, but every time I try to run the project (one of the
>examples), I get the error:
>
>Error : Properties file javax.usb.properties not found
try to run the project (one of the
examples), I get the error:
Error : Properties file javax.usb.properties not found
I tried to do some troubleshooting, and here is my story:
First of all I can't import javax.usb, it keeps telling me that "can't find
symbol", I then copied
rvices servee=UsbHostManager.getUsbServices();
>
> }
> catch(Exception e) { System.out.println("The version is :" +e);}
>
> }
> }
>
> The above program gets compiled but it doesnot run and gives the error
> message
trial */ public static void main(String args[]) { try { UsbServices
servee=UsbHostManager.getUsbServices(); } catch(Exception e) { System.out.println("The version is :" +e);} } } The above program gets compiled but it doesnot run and gives the error message shown in t
You need to implement the entire USB mass storage protocol in Java if you
want to access a mass storage device (which your memory stick is). I
haven't looked at it but I think it's pretty big! Also, if you actually
want to get files off of the stick, you'll need to implement a FAT32
driver (
y it out...On Mon, 12 Sep 2005, siva balan wrote:>hi all. am new bie to this list.. > i have to devlop some USB API based application in linux platform.. for USB devices(mobile,Camera,memory stick,mouse) for uploading and downloading files thru USB port..> first i start with example file Mouse
a,memory stick,mouse) for uploading and downloading files
> thru USB port..
> first i start with example file MouseDriver.java.. i am facing some error..
> when i xecute it..
>then i devlop my own simple program.. stil
hi all. am new bie to this list..
i have to devlop some USB API based application in linux platform.. for USB devices(mobile,Camera,memory stick,mouse) for uploading and downloading files thru USB port..
first i start with example file MouseDriver.java.. i am facing some error.. when i xecute
face %d claimed "
"while '%s' sets config #%d\n",
actconfig->interface[i]
->cur_altsetting
-
s = 0 signal = 0
>[urb](2) JavaxUsb.h.debug_urb[274] isochronous_pipe_request : URB buffer
>length = 50 actual length = 0
>[urb](3) JavaxUsb.h.debug_urb[288] isochronous_pipe_request : URB data = 00
>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[xfer](1) JavaxUsbPipeRequest.c.pipe_request[73] Could not submit URB (errno
-22)
[xfer](2)
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78]
Completed Request
Error in recording data: Error submitting IRP
Ah, multi-setting interface with isoc endpoint(s)...
EINVAL (-22) is unfortunately the usbfs interface's generic error. There
are plenty of different reasons why the kernel would reject a URB with
that error, so it's very hard to tell what specifically the kernel didn't
like.
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[xfer](1) JavaxUsbPipeRequest.c.pipe_request[73] Could not submit URB (errno
-22)
[xfer](2)
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78]
Completed Request
Error in recording data: Error submitting IRP
.
>[xfer](5) JavaxUsbDeviceProxy.c.submitRequest[131] Submitting Pipe Request.
>[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB
>[xfer](1) JavaxUsbPipeRequest.c.pipe_request[73] Could not submit URB (errno
>-22)
>[xfer](2)
>JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nati
.
[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB
[xfer](1) JavaxUsbPipeRequest.c.pipe_request[73] Could not submit URB (errno
-22)
[xfer](2)
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78]
Completed Request
Error in recording data: Error submitting
Dan,
>Thanks for the help with SetInterface, and I really appreciate it. I can
>claim the interface setting and open the pipe now. But when I try to submit
>data using sysncSubmit, I got Error submitting IRP: Invalid. I searched the
>mailing list, and found that it is a problem with
I tried add export $CINCLUDES before rebuilding jar and so too, but the
problem is still there. The data transfer type is Isochronous.
Thanks
Charles Chen
_
Dont just search. Find. Check out the new MSN Search!
http://search.msn.cl
Dan,
Thanks for the help with SetInterface, and I really appreciate it. I can
claim the interface setting and open the pipe now. But when I try to submit
data using sysncSubmit, I got Error submitting IRP: Invalid. I searched the
mailing list, and found that it is a problem with Fedora 2, which
Hello,
When I try to "claim" using javax.usb appears the following error:
javax.usb.UsbException: Could not claim interface : Device or resource busy
at
com.ibm.jusb.os.linux.LinuxInterfaceOsImp.claim(LinuxInterfaceOsImp.ja
va:88)
Hello,
When I try to "claim" using javax.usb appears the following error:
javax.usb.UsbException: Could not claim interface : Device or resource busy
at
com.ibm.jusb.os.linux.LinuxInterfaceOsImp.claim(LinuxInterfaceOsImp.ja
va:88)
Hello,
When I try to "claim" using javax.usb appears the following error:
javax.usb.UsbException: Could not claim interface : Device or resource busy
at
com.ibm.jusb.os.linux.LinuxInterfaceOsImp.claim(LinuxInterfaceOsImp.ja
va:88)
> > export CINCLUDES=-I/usr/src/linux-2.6.1/include
>>>> > ant clean jars
>>>> >
>>>> >
>>>> >
>>>> > and use the jar built this way.
>>>> >
>>>> > On Thu, 2004-09-23 at 19:20, Andre Net
rique Martins
>>>
>>> > Build javax-usb-ri-linux using this option:
>>> >
>>> > export CINCLUDES=-I/usr/src/linux-2.6.1/include
>>> > ant clean jars
>>> >
>>> >
>>> >
>>> > and use the jar buil
to wrote:
> >
> > > Hello,
> > >
> > > I have exactly the same problem, it all works fine with RedHat
> > > 9.0(kernel version 2.4), but i get the same error with Fedora Core
> > > release 2, kernerl version(2.6).
> > > Did some one ma
nd use the jar built this way.
>
> On Thu, 2004-09-23 at 19:20, Andre Neto wrote:
>
> > Hello,
> >
> > I have exactly the same problem, it all works fine with RedHat
> > 9.0(kernel version 2.4), but i get the same error with Fedora Core
> > release 2, kern
/,
>and rebuilt the jar. I've actualized the jar and the libJavaxUsb.so, and tried
>to run the my code again, but I still get the same error in my 2.6.5 kernel.
>
>javax.usb.UsbException: Error submitting IRP : Invalid
>at
>com.ibm.jusb.os.linux.LinuxP
Really a pain. But that is not done yet, so for now, compile
against the specific kernel headers for the kernel you want to run
against.
On Fri, 24 Sep 2004, Andre Neto wrote:
>Hello,
>
>I have exactly the same problem, it all works fine with RedHat
>9.0(kernel version 2.4), b
Hello,
I have exactly the same problem, it all works fine with RedHat
9.0(kernel version 2.4), but i get the same error with Fedora Core
release 2, kernerl version(2.6).
Did some one manage to get a solution to this problem?
Regards,
André
Very strange. Can you try editing your
are you sure you are setting
>configuration 0? Becasue config 0 disables (un-configures) the device.
>Once you do that you shouldn't be able to use it at all, so I assume you
>meant config 1.
>
>The error is -ENOENT which basically means "there is no endpoint 2" whic
Well before looking into anything else - are you sure you are setting
configuration 0? Becasue config 0 disables (un-configures) the device.
Once you do that you shouldn't be able to use it at all, so I assume you
meant config 1.
The error is -ENOENT which basically means "t
leted Request
javax.usb.UsbException: Error submitting IRP : Submission
aborted
at
com.ibm.jusb.os.linux.LinuxPipeRequest.completeUsbIrp(LinuxPipeRequest.java:84)
at
com.ibm.jusb.os.linux.LinuxPipeRequest.setCompleted(LinuxPipeRequest.java:74)
…
Any ideas???
-Robert
that block to remove it from the
__KERNEL__ define (i.e. remove the #ifdef and #endif lines) everything
should work ok. I have no idea why I didn't get this error before...I
will see if I can get it fixed.
On Fri, 10 Sep 2004, Susheel Yadav wrote:
>Dan,
>I tried the CINCLUDES optio
,
[exec] from JavaxUsbLog.c:11:
[exec]
/usr/src/linux/include/linux/mod_devicetable.h:21:
error: syntax error before "kernel_ulong_t"
[exec]
/usr/src/linux/include/linux/mod_devicetable.h:21:
warning: no semicolon at end of struct or union
[exec]
/usr/src/lin
]
>Submitting Pipe Request.
>LOG:[xfer](4) JavaxUsbPipeRequest.c.pipe_request[63]
>Submitting URB
>LOG:[xfer](1) JavaxUsbPipeRequest.c.pipe_request[74]
>Could not submit URB (errno -22)
>LOG:[xfer](4)
>JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb
bmitRequest[131]
Submitting Pipe Request.
LOG:[xfer](4) JavaxUsbPipeRequest.c.pipe_request[63]
Submitting URB
LOG:[xfer](1) JavaxUsbPipeRequest.c.pipe_request[74]
Could not submit URB (errno -22)
LOG:[xfer](4)
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[78]
Completed Request
Exception
rogram works perfectly fine when I execute it in Mandrake linux 9.1,
>kernel version 2.4. But when I try to execute the same program for Fedora
>Core release 2, kernel version 2.6.5, it fails. I get the error Error
>submitting IRP :Invalid, which is as follows:
>
>javax.usb.UsbException: Err
Hello,
Iam trying to submit data to a device (Card reader) suing syncSubmit(). Now
this program works perfectly fine when I execute it in Mandrake linux 9.1,
kernel version 2.4. But when I try to execute the same program for Fedora
Core release 2, kernel version 2.6.5, it fails. I get the error
ubmit 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(Linu
ubmit 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(Linu
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
--- Begin Message ---
Roger
The javac -J-version command gives "java version 1.4.2_04".
Thanks,
Scott
On Jun 13, 2004 01:45 AM, Roger Lindsjà <[EMAIL PROTECTED]> wrote:
> Could it be that you are running the kaffe compiler included with most
> dristributions?
>
> What does 'javac -J-version'
Could it be that you are running the kaffe compiler included with most
dristributions?
What does 'javac -J-version' give?
//Roger
---
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, Insta
ete] /usr/java142/javax-usb/javax-usb-ri/docs/jdoc not found.
>
>compile:
> [echo] Compiling class files.
>[javac] Compiling 46 source files to /usr/java142/javax-usb/javax-usb-ri/src
>[javac]
> /usr/java142/javax-usb/javax-usb-ri/src/com/ibm/jusb/tools/swing/UsbControlI
jusb/tools/swing/UsbControlIrpPanel.java:221:
error: Type `JTextArea' not found in declaration of field `packetDataTextArea'.
[javac] protected JTextArea packetDataTextArea = new JTextArea(3, 25);
[javac] ^
[javac]
/usr/java142/javax-usb/javax-usb-ri/sr
The message contains Unicode characters and has been sent as a binary attachment.
<>
82 matches
Mail list logo