WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: USB dongle in TCL/VritualBox  (Read 2897 times)

Offline bergtwvd

  • Newbie
  • *
  • Posts: 7
USB dongle in TCL/VritualBox
« on: April 10, 2015, 06:02:02 PM »
I am running TCL inside VirtualBox (VB) from docker.com, on Windows 7.
I have installed a (Java) application in TCL that requires a USB dongle in order to run.
VB sees the dongle and I have configured VB to filter on this dongle.

Now, the problem is:
The key activator of the application in TCL does not see the dongle. Get the following error:
Hardware verification failed: The correct hardware for this license could not be detected: No USB Dongle of the correct type detected.(Error Code: 401, Extended Error Code: 0)

Running the command dmesg I see:

on plugging in the USB dongle:
usb 2-1: new full-speed USB device number 10 using ohci-pci
usbhid 2-1:1.0: couldn't find an input interrupt endpoint

on remove of the USB dongle:
usb 2-1: USB disconnect, device number 10


Does TCL support USB dongles in combination with VB?
Basically, how can this be resolved?


Thanks!
TB.

« Last Edit: April 10, 2015, 06:22:15 PM by bergtwvd »

Offline bergtwvd

  • Newbie
  • *
  • Posts: 7
Re: USB dongle in TCL/VritualBox
« Reply #1 on: April 10, 2015, 06:48:52 PM »
Version:

docker@boot2docker:~$ uname -a
Linux boot2docker 3.18.5-tinycore64 #1 SMP Sun Feb 1 06:02:30 UTC 2015 x86_64 GNU/Linux

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: USB dongle in TCL/VritualBox
« Reply #2 on: April 10, 2015, 07:30:45 PM »
Neither VB nor your java application are are Core issues.
You should take it up with VB.

Offline bergtwvd

  • Newbie
  • *
  • Posts: 7
Re: USB dongle in TCL/VritualBox
« Reply #3 on: April 11, 2015, 09:13:50 AM »
I could go to VB, but most likely they point me back to TCL.

Still, I would like to explore and understand the problem more clearly. Anyone seen something like this before?

I see that VB picks up the USB dongle, and I see that the USB dongle is visible inTCL.

E.g. when I go to /sys/bus/usb/devices I see:

(before USB dongle is plugged in):
[ root@5b98944bf55f:/sys/bus/usb/devices ]$ ls
1-0:1.0  2-0:1.0  usb1  usb2

(after plugin):
[ root@5b98944bf55f:/sys/bus/usb/devices/2-1 ]$ dmesg | tail -2
usb 2-1: new full-speed USB device number 17 using ohci-pci
usbhid 2-1:1.0: couldn't find an input interrupt endpoint

[ root@5b98944bf55f:/sys/bus/usb/devices ]$ ls
1-0:1.0  2-0:1.0  2-1  2-1:1.0  usb1  usb2

(next):
[ root@5b98944bf55f:/sys/bus/usb/devices ]$ cd 2-1
[ root@5b98944bf55f:/sys/bus/usb/devices/2-1 ]$ ls
2-1:1.0/             bMaxPower           dev          manufacturer  serial
authorized           bNumConfigurations  devnum       maxchild      speed
avoid_reset_quirk    bNumInterfaces      devpath      port          subsystem
bConfigurationValue  bcdDevice           driver       power/        uevent
bDeviceClass         bmAttributes        ep_00/       product       urbnum
bDeviceProtocol      busnum              idProduct    quirks        version
bDeviceSubClass      configuration       idVendor     removable
bMaxPacketSize0      descriptors         ltm_capable  remove
[ root@5b98944bf55f:/sys/bus/usb/devices/2-1 ]$ cat product
HID Dongle



So I wonder what the the dmesg message  "usbhid 2-1:1.0: couldn't find an input interrupt endpoint" means,
and if it effects / relates to the problem reading the dongle.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: USB dongle in TCL/VritualBox
« Reply #4 on: April 11, 2015, 09:14:53 AM »
Try TC on real hw, compare the kernel messages and device nodes.
The only barriers that can stop you are the ones you create yourself.

Offline bergtwvd

  • Newbie
  • *
  • Posts: 7
Re: USB dongle in TCL/VritualBox
« Reply #5 on: April 11, 2015, 10:19:41 AM »
Try TC on real hw, compare the kernel messages and device nodes.

Yes, sure, I thought of that already. Only, I do not have a Linux box at all.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: USB dongle in TCL/VritualBox
« Reply #6 on: April 11, 2015, 11:36:55 AM »
A dedicated box is not needed, you can run live from a cd or an USB stick.
The only barriers that can stop you are the ones you create yourself.

Offline bergtwvd

  • Newbie
  • *
  • Posts: 7
Re: USB dongle in TCL/VritualBox
« Reply #7 on: April 11, 2015, 03:02:48 PM »
As I am a newby, please point me to a place where I can get this from, and I'll check it out.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: USB dongle in TCL/VritualBox
« Reply #8 on: April 11, 2015, 04:28:10 PM »
On the top of the page click Downloads, download CorePlus. You can then burn this to a cd, or use it to install to an usb stick.
The only barriers that can stop you are the ones you create yourself.

Offline bergtwvd

  • Newbie
  • *
  • Posts: 7
Re: USB dongle in TCL/VritualBox
« Reply #9 on: April 11, 2015, 05:00:13 PM »
Thanks. As soon as I have checked it out I'll report back.

Offline bergtwvd

  • Newbie
  • *
  • Posts: 7
Re: USB dongle in TCL/VritualBox
« Reply #10 on: May 06, 2015, 06:44:06 AM »
On the end it turned out to be a permission problem: the Docker container had not sufficient rights to access the host USB devices.
 
See http://stackoverflow.com/questions/24225647/docker-any-way-to-give-access-to-host-usb-or-serial-device

-- TB