eclipse-threadx / usbx

Eclipse ThreadX - USBX is a high-performance USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with Eclipse ThreadX RTOS
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/usbx/index.md
MIT License
146 stars 87 forks source link

Extending dpump example #125

Closed mendez23 closed 7 months ago

mendez23 commented 7 months ago

Greetings!

I'm working on a project that involves implementing a proprietary protocol between usb host and device using usbx, and since the hardware is not availble yet, the interim plan is to implement on linux. I was able to compile and run demo_usbx.c on linux, however I'm facing few issues

  1. after tx_demo_thread_host_sim and tx_demo_thread_dev_sim threads exit, the app doesn't exit forever (ctrl-c terminates the app) -- is there an explanation to this behavior and a workaround on how to make the app exit gracefully?
  2. threadx publishes regression tests on github, however, I couldn't find any for usbx; since the apis for host_sim and dev_sim are not documented, its unclear which programming apis to use from dev_sim or host_sim side to connect/disconnect, actiate/deactivate, exit gracefully etc

I would really appreciate if you could provide a hid-mouse example that exercises ux_hcd_sim_host and ux_dcd_sim_slave apis showing connect/disconnect, actiate/deactivate, graceful exit etc?

Thank you.

mendez23 commented 7 months ago

closing

mendez23 commented 7 months ago

closing