Search results

  1. prnthp

    Streaming data to a PC

    I use raw HID transfers for 64 bytes/ms. Fast, cross-platform and plug-and-play on almost everything that has a USB host.
  2. prnthp

    Teensy 3.2, 3.6: how to change GUID/UUID?

    You can modify the PID in usb_desc.h. https://forum.pjrc.com/threads/26988-Teensy-3-1-PID-and-VID-to-emulate-a-Touchscreem?p=57430&viewfull=1#post57430
  3. prnthp

    RawHID.recv() hangs after updating to Teensyduino 1.4.9 or higher for Teensy 4.0

    I just had time to get back to the project and wanted to chime in that @KurtE's branch does indeed work with my full project. Thank you all for the great work!
  4. prnthp

    RawHID.recv() hangs after updating to Teensyduino 1.4.9 or higher for Teensy 4.0

    @Paul I whipped up a super simple program that just writes a 64 byte HID packet with 0xAB in the first byte every 100 ms to the device with VID: 0x16C0 PID: 0x0486 and usage page 0xFFAB. Unfortunately I only have macOS w/ Xcode at hand so this probably only runs on macOS 10.15. It's using a...
  5. prnthp

    RawHID.recv() hangs after updating to Teensyduino 1.4.9 or higher for Teensy 4.0

    I had the same hunch and reverted the code in that function back to 1.48. However, it didn't seem to help for me. It seems to hang much later than normally though, after possibly thousands of packets sent. From TD 1.48: static void run_callbacks(endpoint_t *ep) { transfer_t *t, *next...
  6. prnthp

    Help with 3.5 Interval Timer and maybe I2C ?

    Then it looks like timing isn't the issue, since the display.display() calls were blocking everything else. There are several threads about the SSD1306 and it seems like there is a better way to refresh it with the DMA. I don't have experience with driving displays so I can't comment much on it.
  7. prnthp

    Help with 3.5 Interval Timer and maybe I2C ?

    I don't know how fast the SD card can be written to, but I bet it's a lot faster than your 40 ms interval - probably in the order of 0.1 ms. IMO you should write to it just double the rate of your fastest device, so every 20 ms. You probably won't benefit anything from logging at 1000 Hz...
  8. prnthp

    Help with 3.5 Interval Timer and maybe I2C ?

    Seems like you're hammering the SD card with writes in the main loop(). Try limiting the writes to a lower frequency. elapsedMicros loop_timer; void loop() { if (loop_timer < 1000) // 1000 us = 1 ms { return; } // do your state machine loop_timer = 0; }
  9. prnthp

    Teensyduino 1.52 Beta #1

    I'm getting random crashes on macOS 10.15, presumably after checking the Tools -> Port menu. Is there a log file somewhere I can submit? Also, I'd like to bring up the RawHID issue ever since TD 1.49 on Teensy 4.0: RawHID-recv()-hangs-after-updating-to-Teensyduino-1-4-9-or-higher-for-Teensy-4-0...
  10. prnthp

    RawHID.recv() hangs after updating to Teensyduino 1.4.9 or higher for Teensy 4.0

    ^ The above code is missing time = 0; at the end of the main loop(). I've tested it again and the issue is still there for TD1.49 - TD1.51. Just wanted to add that it still hangs on TD 1.52 Beta 1.
  11. prnthp

    RawHID.recv() hangs after updating to Teensyduino 1.4.9 or higher for Teensy 4.0

    Thanks @mstrthalias, @defragster. Here's the updated code w/o all the interrupt stuff. Like what @mstrthalias has found, it works fine for single HID packets but randomly crashes once consecutive reads are done. I can confirm that it does not hang for TD 1.48 and hangs for TD 1.51. #include...
  12. prnthp

    RawHID.recv() hangs after updating to Teensyduino 1.4.9 or higher for Teensy 4.0

    Thanks for all the help! I haphazardly assumed that RawHID.recv(rx_buffer, 1); would be blocking and the 1 ms timeout would handle that issue for me, looks like it is not. I tried something similar to what you suggested on the toy code in the OP and it worked. However, when I implemented it...
  13. prnthp

    RawHID.recv() hangs after updating to Teensyduino 1.4.9 or higher for Teensy 4.0

    Yes. Still hangs on both TD 1.51 and PIO teensy@4.8.0. I just double-checked right now to make sure.
  14. prnthp

    Teensy dev-platform 4.8.0 for PlatformIO is out! 🚀

    It does support the Teensy 4.0. It's lightyears ahead of Arduino IDE-wise since it's an extension of VS Code.
  15. prnthp

    RawHID.recv() hangs after updating to Teensyduino 1.4.9 or higher for Teensy 4.0

    Hello I've been having trouble receiving raw HID packets after upgrading to Teensyduino 1.4.9 or higher. I've boiled my code down to its simplest form and by simply switching from 1.4.8 to 1.4.9 or higher it hangs. It also does not respond to the magic reboot/programming packet (have to press...
  16. prnthp

    Teensyduino 1.48 Released

    Thanks for the clarification, raw packets is all I need!
  17. prnthp

    Teensyduino 1.48 Released

    Has the experimental RawHID mode for T4 from beta#2 been disabled? All I can select is Serial from the USB Type menu.
Back
Top