Dear friends,
When teensy ++ 2.0 is configured as sdcard+keyboard, I am able to receive data from teensy via the teensy_gateway program by listening to 127.0.0.1:28541.
The problem is that under Ubuntu Linux, I can no longer receive data from teensy if I remove and re-add the usbhid kernel module:
I have tried killing and restarting the teensy_gateway program after I re-add the usbhid module, but I still cannot receive data from teensy.
Another way to reproduce the problem is to unplug the teensy, and plug it back in. No data can be received after it's plugged back in.
I wonder if anyone could help me understand how teensy_gateway works, and/or point me to its source code so that I can take a look.
Thank you very much!
Huan
When teensy ++ 2.0 is configured as sdcard+keyboard, I am able to receive data from teensy via the teensy_gateway program by listening to 127.0.0.1:28541.
The problem is that under Ubuntu Linux, I can no longer receive data from teensy if I remove and re-add the usbhid kernel module:
Code:
sudo modprobe -r usbhid # remove usbhid kernel module
sudo modprobe usbhid # add back usbhid kernel module
I have tried killing and restarting the teensy_gateway program after I re-add the usbhid module, but I still cannot receive data from teensy.
Another way to reproduce the problem is to unplug the teensy, and plug it back in. No data can be received after it's plugged back in.
I wonder if anyone could help me understand how teensy_gateway works, and/or point me to its source code so that I can take a look.
Thank you very much!
Huan