Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • yeahtuna's Avatar
    09-13-2018, 03:18 PM
    So I managed to make this function multi-threaded. I needed up to four threads to use it on four separate Teensy devices, so I changed the declaration of rv_event to be an array of HANDLES, ditched the critical...
    1 replies | 45 view(s)
  • yeahtuna's Avatar
    09-13-2018, 11:40 AM
    Recently I've but a victim of slow HID read speeds in recent versions of Windows 10. I've had to increase my timeout values from 2ms all the way up to 50ms to prevent losing data. The real problem for me with long...
    1 replies | 45 view(s)
  • yeahtuna's Avatar
    09-08-2018, 02:38 AM
    Just a quick update to this thread. I tested making a second usb_descriptor_list_t and softcoded NUM_ENDPOINTS and NUM_INTERFACES, and was able to selectively load two separate device descriptors--extremely cool stuff....
    8 replies | 254 view(s)
  • yeahtuna's Avatar
    08-30-2018, 01:15 PM
    So I tested and was able to modify the HID usage page on the fly. I removed 'static' from the following line of code from usb_dev.c so that I could expose it using extern in usb_dev.h. uint8_t rawhid_report_desc = { ...
    8 replies | 254 view(s)
  • yeahtuna's Avatar
    08-30-2018, 11:02 AM
    For now, I'm only interested in being able to change the usage and usage_page of an HID device and I'm guessing that won't be so hard as I wouldn't need to change the size of the descriptor. But this certainly get's me...
    8 replies | 254 view(s)
  • yeahtuna's Avatar
    08-30-2018, 08:42 AM
    Very interesting. I haven't tested it yet, but I managed to get the code to compile. I had no idea that I could do something like that. This opens up lots of opportunities. Thank-you so much.
    8 replies | 254 view(s)
  • yeahtuna's Avatar
    08-30-2018, 04:36 AM
    I would like to hack teensyduino to allow me to set aspects of my USB descriptor from my sketch. The idea is to start my sketch, read settings from EEPROM, adjust aspects of the USB descriptor, and present the device...
    8 replies | 254 view(s)
  • yeahtuna's Avatar
    08-22-2018, 01:18 AM
    Thank-you for these. Does anyone have a complete Teensy 3.6 reference design in Eagle the are willing to share?
    7 replies | 4502 view(s)
  • yeahtuna's Avatar
    07-29-2018, 12:54 PM
    And one last note, with a timeout of 15 ms on my desktop in 'High Performance mode', there are no missing packets whatsoever. Clearly Microsoft has been tweeking things on the Surface to get more battery life.
    14 replies | 427 view(s)
  • yeahtuna's Avatar
    07-29-2018, 12:51 PM
    Sorry, I miss read your post. I do check on the Teensy side of the things and there are no issues there. It's always returning 64 bytes sent.
    14 replies | 427 view(s)
  • yeahtuna's Avatar
    07-29-2018, 12:47 PM
    Hi, Kurt. I guess I'm using the wrong terminology. I do check the return value and the packets are in fact timing out (returning 0) as opposed to being dropped, but I would think that 15ms should be enough time to...
    14 replies | 427 view(s)
  • yeahtuna's Avatar
    07-29-2018, 12:03 PM
    I have no idea and no old machines to test on. I can say that even with a timeout of 15, there are still occasionally dropouts. If there's a steady stream of packets, then all is good. But if the packets are few and...
    14 replies | 427 view(s)
  • yeahtuna's Avatar
    07-29-2018, 09:12 AM
    I've found the source of the problem. It's the timeout in the rawhid_recv() method. I've bumped it up to 15 ms, and all the packets arrive as expected.
    14 replies | 427 view(s)
  • yeahtuna's Avatar
    07-29-2018, 09:06 AM
    I wounder if there's a bug in the following code which was pulled from the old rawHID example. int rawhid_recv(int num, void *buf, int len, int timeout) { hid_t *hid; unsigned char tmpbuf; OVERLAPPED ov;...
    14 replies | 427 view(s)
  • yeahtuna's Avatar
    07-29-2018, 08:39 AM
    I've installed Arduino IDE 1.85 and TD 1.42. The test results are about the same. Packets are still being dropped! Here is a link to a console application I through together. Run the application first, and then...
    14 replies | 427 view(s)
  • yeahtuna's Avatar
    07-29-2018, 06:05 AM
    No, it shouldn't matter what's in the buffer. My Teensyduino is several years old already. I'm going to install from scratch on another machine to see if this is a bug that's been fixed
    14 replies | 427 view(s)
  • yeahtuna's Avatar
    07-29-2018, 02:33 AM
    Here's some teensy side code. It sends 1000 packets, but only 936 are received on my Windows desktop machine. I'll provide an .exe for testing as soon as possible. void setup() { // put your setup code here, to...
    14 replies | 427 view(s)
  • yeahtuna's Avatar
    07-29-2018, 02:05 AM
    Crazy! Even dropping my packet transition rate to 1 packet every 100 ms still results in lost packets!
    14 replies | 427 view(s)
  • yeahtuna's Avatar
    07-29-2018, 01:13 AM
    I've been noticing that Windows 10 occasionally drops rawHID packets. On my development machine (desktop) about 1 in every 100 packets gets dropped. On my Surface Pro (2017) with battery saver turned on, it's about 1...
    14 replies | 427 view(s)
No More Results
About yeahtuna

Basic Information

Statistics


Total Posts
Total Posts
259
Posts Per Day
0.13
Last Post
Question about mutex in rawhhid_recv 09-13-2018 03:18 PM
General Information
Last Activity
09-13-2018 03:18 PM
Join Date
06-04-2013