Hello,
I have a Teensy 2.0 project that set up as a RawHid device and was able to get the project going under windows in visual c++.
I switched to Linux a while back (long story), bought a Teensy 3.0, and now I am getting to building a better circuit for my project with the newer hardware.
The issue I am having is that in Teensydurino, set up as a RawHid device, I am not getting any traffic back to the rawhid listener example found here:
http://www.pjrc.com/teensy/rawhid.html
Basically the code is as simple as:
I just needed to get some context of what the board was seeing so I could start taking some measurements.
I thought it might be something with the board, so I switch over back to the 2.0 which I know works as a RawHid device.
The output from the listener example is that the RawHid devices are found for both the Teensy 2.0 and 3.0, and the rawhid_recv function is returning 0 (which means no error, but not reporting data). I tried the sketch posted on my 2.0, but my original program was written with a Makefile and avr-gcc. In either attempt I tried, I could not get any data output from the listener example with the 2.0. dmesg shows that in all cases I've tried, the device appeared to be registering correctly.
I wiresharked the USB device, but I didn't see any packets that were relevant with the data I would expect to be sent back. So it seems that the problem is something with my operating system, or there is just something that I am completely overlooking. I am running Ubuntu 12.04 with Teensyduino 1.15 on top of Arduino 1.0.5.
Anyone have any thoughts or suggestions?
Thanks,
Pete
I have a Teensy 2.0 project that set up as a RawHid device and was able to get the project going under windows in visual c++.
I switched to Linux a while back (long story), bought a Teensy 3.0, and now I am getting to building a better circuit for my project with the newer hardware.
The issue I am having is that in Teensydurino, set up as a RawHid device, I am not getting any traffic back to the rawhid listener example found here:
http://www.pjrc.com/teensy/rawhid.html
Basically the code is as simple as:
Code:
void setup()
{
Serial.begin(9600); // USB is always 12 Mbit/sec
}
void loop()
{
Serial.println("Hello World...");
delay(1000); // do not print too fast!
}
I just needed to get some context of what the board was seeing so I could start taking some measurements.
I thought it might be something with the board, so I switch over back to the 2.0 which I know works as a RawHid device.
The output from the listener example is that the RawHid devices are found for both the Teensy 2.0 and 3.0, and the rawhid_recv function is returning 0 (which means no error, but not reporting data). I tried the sketch posted on my 2.0, but my original program was written with a Makefile and avr-gcc. In either attempt I tried, I could not get any data output from the listener example with the 2.0. dmesg shows that in all cases I've tried, the device appeared to be registering correctly.
I wiresharked the USB device, but I didn't see any packets that were relevant with the data I would expect to be sent back. So it seems that the problem is something with my operating system, or there is just something that I am completely overlooking. I am running Ubuntu 12.04 with Teensyduino 1.15 on top of Arduino 1.0.5.
Anyone have any thoughts or suggestions?
Thanks,
Pete