Reading the raw data from the host USB port of T4.1

Status
Not open for further replies.

alditeen

New member
I have a HID device (which is a touchscreen), that i want to debug and connected it to the USB host port of the Teensy 4.1.
To do this I need some way to display the raw HID data, that is arriving at the USB host port. Maybe via the serial console of the host computer?

I already checked out the USBHost_t36 library, which works great with mice and keyboards, but in my case the touchscreen not even outputs a simple "connected" message.

In the final project i want to modify the x and y coordinates coming from the touchscreen and proxy them to the host. But without being able to read data from the USB host port, i have nothing to start.
 
There is a DEBUG enable that will perhaps show more passing messages:
Code:
{your install}\hardware\teensy\avr\libraries\USBHost_t36\USBHost_t36.h:
   59  
   60  
   61: // Uncomment this line to see lots of debugging info!
   62: //#define USBHOST_PRINT_DEBUG
 
Thanks for this hint. This is the output of the debug:

Code:
port change: 10001803

    connect

  begin reset

port change: 18001205

  port enabled

  end recovery

new_Device: 480 Mbit/sec

new_Pipe

------------------------------
*** after disconnect ****

port change: 1C00100A

    disconnect

disconnect_Device:

USBDriver (available_drivers) list: 20002CC0 -> 20003080 -> 20003440 -> 20002780 -> 20002A20 -> 200020A0

USBDriver (dev->drivers) list: (empty

USBDriver (available_drivers) list: 20002CC0 -> 20003080 -> 20003440 -> 20002780 -> 20002A20 -> 200020A0

delete_Pipe 20004400

  shut down async schedule

  Free transfers

    * 536888640 * remove * free

    * 536888576 * remove * defer free until QH

    * 536888448 * remove * defer free until QH

  Free transfers attached to QH

    * 536888576

    * 536888448

    * 536888512

* Delete Pipe completed

removed Device_t from devlist

  disable


Still i have no clue, how i can get the raw USB data
 
Have you tried running it with the example sketch HIDDeviceInfo sketch?

It tries to dump lots of information about the HID devices...
 
@KurtE: I can't find this Sketch. Do you know the path where to find it in the examples?

On my machine it is at:
screenshot.jpg

Note: I am running the current release of Teensyduino.

It is up on github: https://github.com/PaulStoffregen/USBHost_t36/tree/master/examples/HIDDeviceInfo
 
Status
Not open for further replies.
Back
Top