Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
tni's Activity
About Me
Tab Content
  • tni's Avatar
    09-07-2017, 05:21 PM
    You can use usage page / usage: cat /sys/class/hidraw/hidraw0/device/report_descriptor | hidrd-convert -o spec Usage Page (FFC9h), ; FFC9h, vendor-defined Usage (04h), Collection (92), Report Size...
    6 replies | 461 view(s)
  • tni's Avatar
    09-07-2017, 03:58 PM
    micros(), which is called by elapsedMicros, re-enables interrupts. So the timer interrupts still happen. uint32_t micros(void) { uint32_t count, current, istatus; __disable_irq(); current = SYST_CVR;...
    8 replies | 1958 view(s)
  • tni's Avatar
    09-02-2017, 07:41 PM
    In terms of useful consecutive pins, you have C0 - C7, B16 - B23 and D0 - D7. The port registers are 32 pins / bits, but byte access works. So you could do 3 byte writes for the pins I mentioned to set 16 address bits +...
    5 replies | 292 view(s)
  • tni's Avatar
    09-01-2017, 12:24 PM
    tni replied to a thread help with atoi code in Project Guidance
    You have buffer overflows everywhere. All your toCharArray() stuff is wrong and uses buffers that are too small. There is no reason to use atoi. Use String::toInt() (it uses atol() under the hood): int tmin =...
    5 replies | 421 view(s)
  • tni's Avatar
    08-31-2017, 05:43 PM
    I don't think you are supposed to use the interface subclass to identify the device type. Per USB HID spec (Device Class Definition for Human Interface Devices (HID) Version 1.11): 4.2 Subclass ... The HID committee...
    143 replies | 6242 view(s)
  • tni's Avatar
    08-30-2017, 07:48 PM
    I tried a Microsoft Optical Mouse Blue and a Logitech G400s, both work correctly (with the Mouse-Rabbit-Hole branch).
    143 replies | 6242 view(s)
  • tni's Avatar
    08-30-2017, 02:55 PM
    tni replied to a thread Teensyduino 1.39 Beta #1 in Announcements
    Are you running some real-time virus scanner? The file might be opened by the scanner and thus ar.exe fails.
    15 replies | 1918 view(s)
  • tni's Avatar
    08-28-2017, 11:07 PM
    Doesn't work for me. Messages with extended IDs are not received without setting up the filters (Teensy 3.6). Can you post a working example that uses 2 Teensies (or the 2 CAN interfaces on 3.6)?
    7 replies | 379 view(s)
  • tni's Avatar
    08-28-2017, 10:56 PM
    My best SD card can do about 5MB/s sustained on Teensy 3.6 (220kB buffers) with a contiguous, pre-allocated, pre-erased file. It sounds like Bill's Samsung card might do 18MB/s with the same code. At least with the...
    67 replies | 5139 view(s)
  • tni's Avatar
    08-28-2017, 06:38 PM
    I would be hesitant to use some non-Raspbian distro. Standard Debian armhf is ARMv7 with hard float, armel is ARMv4 with soft float. Raspbian is ARMv6 with hard float (Pi 1 is ARMv6). I would also be hesitant to use...
    30 replies | 1802 view(s)
  • tni's Avatar
    08-28-2017, 05:28 PM
    It looks like this commit is responsible: https://github.com/PaulStoffregen/cores/commit/632f311db1b60a5b6a89f2d9c1dee782e2747e71 Since Teensy LC has a shared interrupt for the PIT channels, it should probably be...
    9 replies | 1202 view(s)
  • tni's Avatar
    08-28-2017, 04:03 PM
    Is that a Kinetis / Teensy issue or a general issue with the native SD mode (does it work on some other hardware)?
    67 replies | 5139 view(s)
  • tni's Avatar
    08-28-2017, 03:06 PM
    The transceiver doesn't matter, it's only responsible for the electrical interface. To receive messages with extended IDs, set up filters like this:...
    7 replies | 379 view(s)
No More Results
About tni

Basic Information

Statistics


Total Posts
Total Posts
843
Posts Per Day
0.49
Last Post
Which of the two "hidraw" devices is my RawHID? 09-07-2017 05:21 PM
General Information
Last Activity
09-07-2017 05:23 PM
Join Date
01-22-2013