tinyusb icon indicating copy to clipboard operation
tinyusb copied to clipboard

TMC device does not perform clear

Open hinxx opened this issue 2 years ago • 0 comments

Operating System

Linux

Board

RPi Pico

Firmware

examples/device/usbtmc

What happened ?

When issuing read() to provoke timeout the device becomes unusable. It does not respond to new commands anymore; needs to be power cycled.

How to reproduce ?

Issue read() without prior write(). The command will timeout. Trying to do a clear() with result in endless messages from host to device without positive result ; i.e. any new command results in timeout. See log files for steps to reproduce.

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

Debug log is here minicom.txt

These are the commands ran from the PC side from python with python-usbtmc
timeout1.txt

Here is the wireshark capture of the traffic timeout1.pcapng.gz

Screenshots

No response

I have checked existing issues, dicussion and documentation

  • [X] I confirm I have checked existing issues, dicussion and documentation.

hinxx avatar Aug 27 '23 18:08 hinxx