Hi All,

I am trying to use the java usb api on a arm processor. I can list all the 
device connected and I can open the pipes. However when I attempt to send any 
data on either bulk or interrupt based devices I get an error.

the following is the trace that I get:

[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[117] Building device 
/dev/bus/usb/001/001
[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[141] Device is hub with 3 
ports
[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[156] Device speed is 12 Mbps
[hotplug](4) JavaxUsbTopologyUpdater.c.build_config[222] Building config 1
[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[282] Building interface 0
[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[296] Building endpoint 
0x81
[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[189] Building device 2 
attached to port 0
[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[117] Building device 
/dev/bus/usb/001/002
[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[141] Device is hub with 7 
ports
[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[156] Device speed is 12 Mbps
[hotplug](4) JavaxUsbTopologyUpdater.c.build_config[222] Building config 1
[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[282] Building interface 0
[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[296] Building endpoint 
0x81
[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[282] Building interface 0
[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[296] Building endpoint 
0x81
[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[189] Building device 3 
attached to port 0
[hotplug](3) JavaxUsbTopologyUpdater.c.build_device[117] Building device 
/dev/bus/usb/001/003
[hotplug](4) JavaxUsbTopologyUpdater.c.build_device[156] Device speed is 12 Mbps
[hotplug](4) JavaxUsbTopologyUpdater.c.build_config[222] Building config 1
[hotplug](4) JavaxUsbTopologyUpdater.c.build_interface[282] Building interface 0
[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[296] Building endpoint 
0x01
[hotplug](4) JavaxUsbTopologyUpdater.c.build_endpoint[296] Building endpoint 
0x82
[default](2) JavaxUsb.h.open_device[209] Opening node /dev/bus/usb/001/001
[hotplug](4) JavaxUsbActive.c.getActiveConfig[272] Getting active config using 
GET_CONFIGURATION standard request.
[hotplug](4) JavaxUsbActive.c.config_ask_device[212] Active device 
configuration is 1
[hotplug](4) JavaxUsbActive.c.getActiveConfig[274] Device returned 1.
[default](2) JavaxUsb.h.open_device[209] Opening node /dev/bus/usb/001/002
[hotplug](4) JavaxUsbActive.c.getActiveConfig[272] Getting active config using 
GET_CONFIGURATION standard request.
[hotplug](4) JavaxUsbActive.c.config_ask_device[212] Active device 
configuration is 1
[hotplug](4) JavaxUsbActive.c.getActiveConfig[274] Device returned 1.
[default](2) JavaxUsb.h.open_device[209] Opening node /dev/bus/usb/001/002
[default](2) JavaxUsb.h.open_device[209] Opening node /dev/bus/usb/001/003
[hotplug](4) JavaxUsbActive.c.getActiveConfig[272] Getting active config using 
GET_CONFIGURATION standard request.
[hotplug](4) JavaxUsbActive.c.config_ask_device[212] Active device 
configuration is 1
[hotplug](4) JavaxUsbActive.c.getActiveConfig[274] Device returned 1.
[default](2) JavaxUsb.h.open_device[209] Opening node /dev/bus/usb/001/003
[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[69] 
Got Request
[default](3) JavaxUsbInterfaceRequest.c.claim_interface[87] Claiming interface 0
[default](1) JavaxUsbInterfaceRequest.c.claim_interface[94] Could not claim 
interface 0 : errno -16
scsi: killing requests for dead queue
scsi: killing requests for dead queue
[default](2) JavaxUsbInterfaceRequest.c.disconnect_interface_driver[48] 
Disconnected driver from interface 0
[default](3) JavaxUsbInterfaceRequest.c.claim_interface[87] Claiming interface 0
[default](3) JavaxUsbInterfaceRequest.c.claim_interface[96] Claimed interface 0
[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[72] 
Completed Request
Reader started: press buttons to see values.
Writer started.
Buffer Size is: 512
[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[69] 
Got Request
[xfer](2) JavaxUsbPipeRequest.c.pipe_request[62] Submitting URB
[default](2) JavaxUsbKernel.c.setKernelVersion[46] Kernel version string 
3.0.9-PD11.1.0 parsed as 3.0.9
[urb](2) JavaxUsb.h.debug_urb[266] bulk_pipe_request : URB address = 0x8a2a8
[urb](2) JavaxUsb.h.debug_urb[267] bulk_pipe_request : URB endpoint = 1 status 
= 0 signal = 0
[urb](2) JavaxUsb.h.debug_urb[268] bulk_pipe_request : URB buffer length = 512 
actual length = 0
[urb](3) JavaxUsb.h.debug_urb[282] bulk_pipe_request : URB data = 00 00 00 00 
01 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 00 00 00 00 00 
000
[xfer](2) JavaxUsbPipeRequest.c.pipe_request[75] Submitted URB
[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[72] 
Completed Request
[xfer](2) 
JavaxUsbDeviceProxy.c.Java_com_ibm_jusb_os_linux_JavaxUsb_nativeDeviceProxy[85] 
Got completed URB
[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[112] Completing URB. of 
type: 2
[xfer](2) JavaxUsbPipeRequest.c.complete_pipe_request[114] Partially completed
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x401996d4, pid=211, tid=1311196272
#
# JRE version: 6.0_30-b12
# Java VM: Java HotSpot(TM) Client VM (20.5-b03 mixed mode linux-arm )
# Problematic frame:
# C  [libc.so.6+0x726d4]  memcpy+0x114
#
# An error report file with more information is saved as:
# /opt/testusb/hs_err_pid211.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

Has anyone successfully ran the API on an arm processor?

Cheers,

gk
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to