Closed alees24 closed 2 months ago
I was mimicking uart_check.cc which contained its own implementation; now changed. It may be worth mentioning that including a header file which contains functions defined as 'static' can lead to warnings from the compiler if a translation unit happens not to use all of the functions in the header file. The builds are okay for now.
This does not require any special software on a physical USB host controller;
usbdev_check
will simply set up and connect the USB device to the USB host controller and await successful completion of the the normal device inspection and configuration sequence by the host.If the where the number 'n' may be ascertained by monitoring the output from dmesg when the USB device is being configured.
do_disconnect
switch in usbdev_check.cc is set to false then serial comunications may also be tested by opening a terminal emulator on /dev/ttyUSBNotes on the code:
usbdev_check.cc
simple application code. This layer handles the configuration sequence over the 'Default Control Pipe'. It can form the basis of a more complete test application.simpleserial
driver.