Quick update:
As I mentioned in the update to the last post, moving the events and critical sections to the struct associated with each rawhid connection, appears to work. I have it setup that each one
is trying to recv messages on different std::thread threads. The code is setup as I mentioned for the SEREMU data packets that I receive, I allocate some memory and copy the contents and size to the structure... And when the current command is done, I check to see if I have any pending data to output and if so do a writef of the data to stdout. The linking in and unlinking of these structures is
protected using std::mutex.
So then tried building and running it on Linux, in my case Ubuntu 22.04. Appears to work fine when I disable the SEREMU stuff. But when I enable the SEREMU, the commands don't complete and it feels like the Teensy is locked up...
The linux read function, is pretty simple:
Code:
int rawhid_recv(int num, void *buf, int len, int timeout)
{
hid_t *hid;
int r;
hid = get_hid(num);
if (!hid || !hid->open) return -1;
r = usb_interrupt_read(hid->usb, hid->ep_in, buf, len, timeout);
if (r >= 0) return r;
if (r == -110) return 0; // timeout
return -1;
}
Wondering if usb_interrupt_read is thread safe...
Looks like another rabbit hole!
Update with more information:
I connected up a T3.5 instead of T4.1, such that I am running at full speed and not high speed. Such that I could capture the USB with Saleae LA... My updated USB capture and HLA capture, I was able to verify that it looks like the T3.5 responded to my DIR/LS command with a full file list.
Code:
name type start_time duration pid addr endpoint data text
USB Data Packets HLA USB 6.04612275 4.6602e-05 IN 0x16 0x01 0xa 0xa 0x55 0x53 0x42 0x20 0x48 0x6f 0x73 0x74 0x20 0x52 0x61 0x77 0x48 0x69 0x64 0x20 0x46 0x69 0x6c 0x65 0x20 0x54 0x72 0x61 0x6e 0x73 0x66 0x65 0x72 0x73 0x20 0x52 0x65 0x6d 0x6f 0x74 0x65 0x28 0x73 0x6c 0x61 0x76 0x65 0x29 0x20 0x73 0x69 0x64 0x65 0xa 0x54 0x72 0x61 0x6e 0x73 0x66 0x65 0x72 0x20 0x73 0x69 0x7a
USB Data Packets HLA USB 6.0471227 4.66e-05 IN 0x16 0x01 0x65 0x3a 0x20 0x36 0x34 0xa 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 11.4921018 4.6746e-05 OUT 0x16 0x04 0xa 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 11.4931018 4.6596e-05 IN 0x16 0x03 0xb 0x0 0x15 0x0 0xc 0x7d 0x0 0x0 0x1a 0x26 0x97 0x61 0x20 0xd4 0x66 0x61 0x0 0x78 0x2e 0x74 0x78 0x74 0x0 0x1f 0xd1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 11.4941018 4.6596e-05 IN 0x16 0x03 0xb 0x0 0x14 0x0 0x1c 0x22 0x0 0x0 0x20 0x26 0x97 0x61 0x44 0xdf 0x59 0x61 0x0 0x46 0x53 0x2e 0x68 0x0 0x0 0x1f 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.4980979 4.676e-05 IN 0x16 0x03 0xb 0x0 0x2a 0x0 0xf4 0xeb 0x4f 0x1 0xac 0xeb 0x9d 0x61 0x30 0xdb 0x84 0x61 0x0 0x54 0x34 0x4c 0x61 0x72 0x67 0x65 0x49 0x6e 0x64 0x65 0x78 0x65 0x64 0x54 0x65 0x73 0x74 0x66 0x69 0x6c 0x65 0x2e 0x74 0x78 0x74 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.4990979 4.676e-05 IN 0x16 0x03 0xb 0x0 0x19 0x0 0x15 0x0 0x0 0x0 0x8 0x68 0xe3 0x77 0x8 0x68 0xe3 0x77 0x0 0x74 0x65 0x73 0x74 0x31 0x2e 0x74 0x78 0x74 0x0 0x65 0x78 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5000979 4.6588e-05 IN 0x16 0x03 0xb 0x0 0x1c 0x0 0x0 0x0 0x0 0x0 0x9a 0xc7 0xe 0x64 0x0 0x0 0x0 0x0 0x0 0x6d 0x74 0x70 0x69 0x6e 0x64 0x65 0x78 0x2e 0x64 0x61 0x74 0x0 0x64 0x54 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5010979 4.661e-05 IN 0x16 0x03 0xb 0x0 0x13 0x0 0x0 0x0 0x0 0x0 0x66 0x2a 0x97 0x61 0x66 0x2a 0x97 0x61 0x1 0x66 0x6f 0x6f 0x0 0x6e 0x64 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5020979 4.6608e-05 IN 0x16 0x03 0xb 0x0 0x13 0x0 0x0 0x0 0x0 0x0 0x58 0x14 0xdb 0x61 0x58 0x14 0xdb 0x61 0x1 0x33 0x33 0x33 0x0 0x6e 0x64 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5030979 4.6606e-05 IN 0x16 0x03 0xb 0x0 0x13 0x0 0x0 0x0 0x0 0x0 0x58 0x14 0xdb 0x61 0x58 0x14 0xdb 0x61 0x1 0x31 0x31 0x31 0x0 0x6e 0x64 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5040979 4.6604e-05 IN 0x16 0x03 0xb 0x0 0x1d 0x0 0x0 0x0 0x0 0x0 0xda 0xad 0x2a 0x5c 0xda 0xad 0x2a 0x5c 0x1 0x53 0x6f 0x6d 0x65 0x5f 0x50 0x69 0x63 0x74 0x75 0x72 0x65 0x73 0x0 0x54 0x65 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5050978 4.6604e-05 IN 0x16 0x03 0xb 0x0 0x21 0x0 0x36 0x84 0x3 0x0 0x18 0xc8 0xe 0x64 0x2e 0xa0 0xe3 0x61 0x0 0x61 0x6e 0x6e 0x69 0x65 0x33 0x20 0x2d 0x20 0x43 0x6f 0x70 0x79 0x2e 0x62 0x6d 0x70 0x0 0x66 0x69 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5060979 4.6602e-05 IN 0x16 0x03 0xb 0x0 0x1a 0x0 0x36 0x84 0x3 0x0 0x18 0xc8 0xe 0x64 0x2e 0xa0 0xe3 0x61 0x0 0x61 0x6e 0x6e 0x69 0x65 0x33 0x2e 0x62 0x6d 0x70 0x0 0x70 0x79 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5070979 4.6602e-05 IN 0x16 0x03 0xb 0x0 0x29 0x0 0x0 0x0 0x0 0x0 0xea 0x35 0xa8 0x62 0xec 0x35 0xa8 0x62 0x1 0x53 0x79 0x73 0x74 0x65 0x6d 0x20 0x56 0x6f 0x6c 0x75 0x6d 0x65 0x20 0x49 0x6e 0x66 0x6f 0x72 0x6d 0x61 0x74 0x69 0x6f 0x6e 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5080978 4.66e-05 IN 0x16 0x03 0xb 0x0 0x23 0x0 0x8 0x97 0x3e 0x0 0x18 0xc8 0xe 0x64 0x6 0xbe 0x15 0x3e 0x0 0x44 0x53 0x43 0x30 0x30 0x30 0x34 0x30 0x20 0x2d 0x20 0x43 0x6f 0x70 0x79 0x2e 0x4a 0x50 0x47 0x0 0x61 0x74 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5090979 4.66e-05 IN 0x16 0x03 0xb 0x0 0x1c 0x0 0x8 0x97 0x3e 0x0 0x1a 0xc8 0xe 0x64 0x6 0xbe 0x15 0x3e 0x0 0x44 0x53 0x43 0x30 0x30 0x30 0x34 0x30 0x2e 0x4a 0x50 0x47 0x0 0x70 0x79 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5100978 4.6596e-05 IN 0x16 0x03 0xb 0x0 0x1c 0x0 0x9d 0xcc 0x0 0x0 0x1a 0xc8 0xe 0x64 0xee 0x92 0xe8 0x3e 0x0 0x44 0x53 0x43 0x30 0x30 0x34 0x34 0x35 0x2e 0x6a 0x70 0x67 0x0 0x70 0x79 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5110979 4.6596e-05 IN 0x16 0x03 0xb 0x0 0x19 0x0 0x34 0x26 0x3 0x0 0x1a 0xc8 0xe 0x64 0x22 0xae 0x2a 0x5c 0x0 0x68 0x6f 0x75 0x73 0x65 0x2e 0x67 0x69 0x66 0x0 0x70 0x67 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5120978 4.6594e-05 IN 0x16 0x03 0xb 0x0 0x21 0x0 0x36 0x84 0x3 0x0 0x1a 0xc8 0xe 0x64 0x2e 0xa0 0xe3 0x61 0x0 0x61 0x6e 0x6e 0x69 0x65 0x31 0x20 0x2d 0x20 0x43 0x6f 0x70 0x79 0x2e 0x62 0x6d 0x70 0x0 0x47 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5130978 4.6676e-05 IN 0x16 0x03 0xb 0x0 0x1a 0x0 0x5a 0xfc 0x1 0x0 0x72 0xd 0x59 0x64 0x28 0xd 0x59 0x64 0x0 0x63 0x6f 0x79 0x6f 0x74 0x65 0x2e 0x6a 0x70 0x67 0x0 0x70 0x79 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5140979 4.659e-05 IN 0x16 0x03 0xb 0x0 0x21 0x0 0x36 0x84 0x3 0x0 0x1a 0xc8 0xe 0x64 0x2e 0xa0 0xe3 0x61 0x0 0x61 0x6e 0x6e 0x69 0x65 0x32 0x20 0x2d 0x20 0x43 0x6f 0x70 0x79 0x2e 0x62 0x6d 0x70 0x0 0x47 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5150978 4.6612e-05 IN 0x16 0x03 0xb 0x0 0x1a 0x0 0x8c 0x82 0x3 0x0 0x1a 0xc8 0xe 0x64 0x3e 0x47 0x53 0x64 0x0 0x61 0x6e 0x6e 0x69 0x65 0x32 0x2e 0x62 0x6d 0x70 0x0 0x70 0x79 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5160979 4.6608e-05 IN 0x16 0x03 0xb 0x0 0x22 0x0 0x36 0x84 0x3 0x0 0x46 0xc8 0xe 0x64 0x5a 0xa0 0xe3 0x61 0x0 0x4c 0x61 0x69 0x69 0x6b 0x2d 0x69 0x73 0x2d 0x54 0x69 0x72 0x65 0x64 0x2e 0x62 0x6d 0x70 0x0 0x0 0x61 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5170978 4.6608e-05 IN 0x16 0x03 0xb 0x0 0x1e 0x0 0x36 0x64 0x3 0x0 0x74 0xae 0x2a 0x5c 0x2e 0xa0 0xe3 0x61 0x0 0x61 0x6e 0x6e 0x69 0x65 0x31 0x5f 0x62 0x61 0x64 0x2e 0x62 0x6d 0x70 0x0 0x62 0x6d 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5180978 4.6606e-05 IN 0x16 0x03 0xb 0x0 0x1c 0x0 0x9a 0x10 0x1b 0x0 0x48 0xc8 0xe 0x64 0x14 0xc4 0xc2 0x38 0x0 0x50 0x33 0x30 0x39 0x30 0x30 0x30 0x35 0x2e 0x4a 0x50 0x47 0x0 0x70 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5190978 4.6772e-05 IN 0x16 0x03 0xb 0x0 0x23 0x0 0xd5 0xe 0x0 0x0 0x4a 0xc8 0xe 0x64 0xfc 0x8a 0xfe 0x3e 0x0 0x6a 0x30 0x32 0x33 0x34 0x36 0x39 0x36 0x20 0x2d 0x20 0x43 0x6f 0x70 0x79 0x2e 0x67 0x69 0x66 0x0 0x61 0x74 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.520098 4.677e-05 IN 0x16 0x03 0xb 0x0 0x1c 0x0 0xd5 0xe 0x0 0x0 0x4a 0xc8 0xe 0x64 0xfc 0x8a 0xfe 0x3e 0x0 0x6a 0x30 0x32 0x33 0x34 0x36 0x39 0x36 0x2e 0x67 0x69 0x66 0x0 0x70 0x79 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5210978 4.6686e-05 IN 0x16 0x03 0xb 0x0 0x1c 0x0 0xd7 0xbc 0x1e 0x0 0x5e 0xc8 0xe 0x64 0x9c 0xcd 0xdf 0x41 0x0 0x44 0x53 0x43 0x30 0x31 0x35 0x31 0x31 0x2e 0x4a 0x50 0x47 0x0 0x70 0x79 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5220978 4.66e-05 IN 0x16 0x03 0xb 0x0 0x26 0x0 0x57 0x0 0x0 0x0 0xac 0x9c 0x54 0x64 0x14 0xbc 0x54 0x64 0x0 0x70 0x69 0x63 0x74 0x75 0x72 0x65 0x76 0x69 0x65 0x77 0x6f 0x70 0x74 0x69 0x6f 0x6e 0x73 0x2e 0x69 0x6e 0x69 0x0 0x6f 0x6e 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5230978 4.66e-05 IN 0x16 0x03 0xb 0x0 0x1f 0x0 0xb6 0xf 0x67 0x0 0x74 0xc8 0xe 0x64 0xc4 0x8d 0xcf 0x42 0x0 0x53 0x68 0x61 0x72 0x6f 0x6e 0x20 0x42 0x61 0x72 0x6e 0x2e 0x62 0x6d 0x70 0x0 0x6e 0x73 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5240978 4.6598e-05 IN 0x16 0x03 0xb 0x0 0x1f 0x0 0xb5 0xd4 0x0 0x0 0xe8 0xbe 0x54 0x64 0x9e 0xad 0x2a 0x5c 0x0 0x53 0x6d 0x61 0x6c 0x6c 0x2d 0x44 0x72 0x61 0x6b 0x65 0x2e 0x6a 0x70 0x67 0x0 0x6e 0x73 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5250979 4.6596e-05 IN 0x16 0x03 0xb 0x0 0x19 0x0 0x0 0x0 0x0 0x0 0x7a 0xeb 0x55 0x64 0x7a 0xeb 0x55 0x64 0x1 0x46 0x4f 0x55 0x4e 0x44 0x2e 0x30 0x30 0x30 0x0 0x65 0x2e 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5260978 4.6594e-05 IN 0x16 0x03 0xb 0x0 0x1a 0x0 0x36 0x84 0x3 0x0 0x88 0xf4 0x55 0x64 0x2e 0xa0 0xe3 0x61 0x0 0x41 0x6e 0x6e 0x69 0x65 0x31 0x2e 0x62 0x6d 0x70 0x0 0x2e 0x6a 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5270978 4.6594e-05 IN 0x16 0x03 0xb 0x0 0x14 0x0 0x0 0x0 0x0 0x0 0x88 0x2b 0x67 0x64 0x88 0x2b 0x67 0x64 0x1 0x74 0x65 0x73 0x74 0x0 0x31 0x2e 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
USB Data Packets HLA USB 12.5280977 4.6592e-05 IN 0x16 0x03 0x7 0x0 0xc 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
The first ones I showed here to endpoint 1 are the output to SEREMU... The OUT to endpoint 4 is my command from Ubuntu to Teensy to give me a file list then lots of messages to end point 3, where the first byte 0x0b is information for a file... Then last one 0x07 is the response message which says, there are no more...
But the CMD window on Ubuntu shows error of timeout...
Code:
kurte@kurte-750-435st:~/github/RawHID/VS/RawHid/FileTransferTest/build_with_make$ ./FileTransferTest
rawhid_open, max=2
device: vid=16C0, pic=0486, with 2 iface
type 3, 0, 0
IN endpoint 3 max: 64 attr: 3
OUT endpoint 4 max: 64 attr: 3
hid interface (generic)
in use by driver "usbhid"
descriptor, len=28
tag: 4, val FFAB
tag: 8, val 200
type 3, 0, 0
IN endpoint 1 max: 64 attr: 3
OUT endpoint 2 max: 32 attr: 3
hid interface (generic)
in use by driver "usbhid"
descriptor, len=33
tag: 4, val FFC9
tag: 8, val 4
found rawhid 2 devices
(ffab, 200):Rawhid index 0 packet size:64
(ffc9, 4):SEREMU index 1 packet size : 64
Command list
dir(or ls) [optional pattern] - show directory files on remote FS
cd <file pattern> - Change directory on remote FS
pwd - Print remote working directory
mkdir <name> - Create a directory on remote FS
rmdir <name> - Remove a directory on remote FS
del(rm) <name> - delete a file on FS
download(or d) <remote file> <localfile spec> - download(Receive) file from From remote
upload(or u) <local file spec> [remote file spec] - Upload file to remote
reset - reboots the remote teensy
scan - run the rawhid scan again
exit - end the program
: <<<SEREMU >>>> [
USB Host RawHid File Transfers Remote(slave) side
Transfer size: 64
dir
]<<<< <SEREMU >>>>
>>> Thread Exit <<<
remote_dir called
x.txt C: 11/19/2021 04:20 M: 10/13/2021 12:42 32012
Receive *** failed ***
: (11, 42) FILEINFO
: (11, 26) FILEINFO
: (11, 33) FILEINFO
There was a pretty good gap of time, and then a few messages came through on my clear out the rawhid thread after the command failed