zebra1122 / snake-os

Automatically exported from code.google.com/p/snake-os
0 stars 0 forks source link

USB HID support #350

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello.
Is there kernel support for USB HID devices?
I have a Temper1 USB temperature sensor/logger that is detected as an USB FTDI 
device. Any chance to get it detected as an HID device?

Thank you
Rui

Original issue reported on code.google.com by rall...@gmail.com on 2 Feb 2013 at 12:45

GoogleCodeExporter commented 8 years ago
Now, for some reason the device is detected differently, and OHCI is being 
used..

"kernel: usb 2-2: new low speed USB device using str8100-ohci and address 4"

Original comment by rall...@gmail.com on 2 Feb 2013 at 1:13

GoogleCodeExporter commented 8 years ago
Any chance that the FTDI thing is just from the ftdi_sio driver getting loaded?

It looks like there are userspace "drivers" for those things.

https://github.com/jeixav/HID-TEMPerHUM
https://github.com/bitplane/temper
http://relavak.wordpress.com/2009/10/17/temper-temperature-sensor-linux-driver/
http://relavak.wordpress.com/2009/10/17/temper-temperature-sensor-linux-driver/#
comment-194

I just don't know which one is the best one.

Original comment by stefansc...@googlemail.com on 3 Feb 2013 at 12:23

GoogleCodeExporter commented 8 years ago
Yes, i think it uses "user space drivers", but i tried several options and 
can't get it to work on SnakeOS. Works perfectly with Ubuntu.

If no one tried this devices with SnakeOS i guess i will keep trying.

thanks

Original comment by rall...@gmail.com on 3 Feb 2013 at 2:49

GoogleCodeExporter commented 8 years ago
Well.. does the attached binary do anything? It's this thing: 
https://github.com/bitplane/temper. I can't test it.

Original comment by stefansc...@googlemail.com on 5 Feb 2013 at 1:54

Attachments:

GoogleCodeExporter commented 8 years ago
It tries to find the device but it's unsuccessful. I have to do more tests.
I think different applications for that device use different approaches to find 
it.

Would it - theoretically - work through Debian Chroot? The devices folders are 
linked to the SnakeOS ones like in the FAQ. No success with that too.

Original comment by rall...@gmail.com on 5 Feb 2013 at 10:22

GoogleCodeExporter commented 8 years ago
Too bad. They should work in the chroot too. I think they either look under 
/dev or /proc for usb devices.

I got the first two compiled there with something like:
apt-get install build-essential git-core libusb-dev
git clone git://github.com/jeixav/HID-TEMPerHUM.git
cd HID-TEMPerHUM
make

Original comment by stefansc...@googlemail.com on 6 Feb 2013 at 12:15

GoogleCodeExporter commented 8 years ago
I also compiled in Chroot without problems, but the device is never found by 
the software. I admit i don't know that much about linux devices and was 
avoiding to spend much time around this (i can use a Raspberry Pi for this 
project). I know some software for this device tries to find one of the known 
device IDs, but others check for the device itself at /dev . I think i tried at 
least one of each, but with no success. I don't know if it's important how the 
OS detects the device when user space drivers are used or if there's some kind 
of dependence between the two.

But it's a shame, because this cheap little device with the cool SnakeOS was 
more than enough for my needs.  Thanks anyway!

Original comment by rall...@gmail.com on 6 Feb 2013 at 10:16