Go Down

Topic: USB Device not responding (Read 754 times) previous topic - next topic

doraemonwindosxp

I use the USB Keyboard connected the Yun USB port and install "kmod-input-core", "kmod-input-evdev", "kmod-usb-hid".

Use
Quote
cat /dev/input/event1  | hexdump
to test and it's working fine. But after a few hours, I press some key on my keyboard it won't responding, I need to reboot yun to slove it.

By the way, how could I convent the USB HID raw data to ascii?
for example when I press "1" on keyboard, I'll receive "0x1e", press "2" get "0x1f".
I want to connect a QR Code reader, it'll simulator like a keyboard, I need to get whole string.

ballscrewbob

You may want to include the sketch you are using so if it is an issue in there people can point it out for you.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

doraemonwindosxp

If I re-plug-in the USB device, the kernel log show "[34620.590000] hub 1-1:1.0: unable to enumerate USB device on port 1".
I need to reboot the arduino yun to solve it

Go Up