Hello,
I created a small RAW Hid interface with a Teensy 3.1/3.2.
I changed the VID & PID (inside the usb_desc.h file) and all worked ok with both the USB Raw and Serial (emulation) ON. I used this interface for one year and a half now and never had a problem. The interface has been used on Windows 7, Windows 8, Windows 10 and Android, no issues for me or my customers.
Lately, the interface has started to have issues on some Windows machines. I say "some" because I could not identify how the problem arise.
I had an old Windows 8 setup in a secondary partition and I could see that in fact the interface doesn't work here even if on other Windows 8 machines it did work so the release of Windows is not the problem.
After some tests I found out that if I put back the VID and PID to stock Teensy values it all works ok. If I change the VID and PID then I get a strange behaviour on some machines: the serial interface output goes where I'd expect the Rawhid output. Tested with an HID terminal and a TCP terminal connected to teensy gateway I saw that the Serial messages are routed on the HID output.
So I hacked the teensy_gateway program to have it to connect to my new VID and PID to see if I can get the right output : it works fine where the interface works fine, it fails (so serial output is routed to rawhid output) where the interface fails.
Same interface, same firmware on another machine works fine with no problems, no matter which VID and PID I use.
Looking inside the core code (usb_desc, usb_rawhid.c and so on) I could not identify the problem and I'm sure it's not there because, as said, the same interface works fine on the same machine with a different Windows setup.
If I edit the teensy libraries and the usb_desc.h file to totally disable the serial emulated interface everything works OK on every machine.
So, to sum it up:
- PC #1 : Windows 7 ... OK
- PC #1 : Windows 8 ... NOT WORKING (serial output on rawhid output)
- PC #2 : Windows 7 ... OK
- Customer PC #1 : Windows 7 ... OK
- Customer PC #2 : Windows 7 ... NOT WORKING
Does anyone have an idea of why this happens?
I created a small RAW Hid interface with a Teensy 3.1/3.2.
I changed the VID & PID (inside the usb_desc.h file) and all worked ok with both the USB Raw and Serial (emulation) ON. I used this interface for one year and a half now and never had a problem. The interface has been used on Windows 7, Windows 8, Windows 10 and Android, no issues for me or my customers.
Lately, the interface has started to have issues on some Windows machines. I say "some" because I could not identify how the problem arise.
I had an old Windows 8 setup in a secondary partition and I could see that in fact the interface doesn't work here even if on other Windows 8 machines it did work so the release of Windows is not the problem.
After some tests I found out that if I put back the VID and PID to stock Teensy values it all works ok. If I change the VID and PID then I get a strange behaviour on some machines: the serial interface output goes where I'd expect the Rawhid output. Tested with an HID terminal and a TCP terminal connected to teensy gateway I saw that the Serial messages are routed on the HID output.
So I hacked the teensy_gateway program to have it to connect to my new VID and PID to see if I can get the right output : it works fine where the interface works fine, it fails (so serial output is routed to rawhid output) where the interface fails.
Same interface, same firmware on another machine works fine with no problems, no matter which VID and PID I use.
Looking inside the core code (usb_desc, usb_rawhid.c and so on) I could not identify the problem and I'm sure it's not there because, as said, the same interface works fine on the same machine with a different Windows setup.
If I edit the teensy libraries and the usb_desc.h file to totally disable the serial emulated interface everything works OK on every machine.
So, to sum it up:
- PC #1 : Windows 7 ... OK
- PC #1 : Windows 8 ... NOT WORKING (serial output on rawhid output)
- PC #2 : Windows 7 ... OK
- Customer PC #1 : Windows 7 ... OK
- Customer PC #2 : Windows 7 ... NOT WORKING
Does anyone have an idea of why this happens?