Recent

Author Topic: HID for Teensy 4  (Read 6339 times)

avra

  • Hero Member
  • *****
  • Posts: 2355
    • Additional info
Re: HID for Teensy 4
« Reply #15 on: July 15, 2021, 02:29:26 pm »
Beware that USB HID can not handle more then 1000 messages per second (1ms maximum latency). If you need hight throughput then USB CDC serial is better then USB HID.
« Last Edit: July 15, 2021, 02:33:37 pm by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

MarkMLl

  • Hero Member
  • *****
  • Posts: 4764
Re: HID for Teensy 4
« Reply #16 on: July 15, 2021, 02:47:12 pm »
I've never really exercised the rawhid stuff other than to check basic operation. But that now leaves my demo program able to talk to an Arduino (etc.) using either a proprietary protocol or PJRC's HID, or to drive GPIO bits via either /sys or /dev on either a PC or an RPi.

I was tinkering with a Linux kernel module over the weekend and was able to get uSec timing precision, but that was very much an exceptional situation and in no way a substitute for having a proper RTOS.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018