[fpc-pascal] USB Human Interface Devices
Stefan V. Pantazi
svpantazi at gmail.com
Thu Aug 22 04:19:31 CEST 2019
On 8/21/19 6:35 PM, James Richters wrote:
> I had them separated, but whenever it happened that I tried to write while it was waiting to read, I would get the error below. If it was reading all the time it seemed fine.. just if it was idle waiting to read and I did a write that it would fail with EAccessViolation: Access violation
That should not happen - out of curiosity I modified a graphic tablet
test program and included:
- a separate read thread with a timeout of 1 second and
- in the main thread, one set feature report call followed by a get
feature report call (every 1 second).
This was the behaviour:
1) if there is no input:
- the main thread keeps calling set report +get report every 1 second
- in the read thread, the interrupt read times out every second but
generates report data every 5 seconds (tablet generates an interrupt
read even if there is no input - a sort of heartbeat);
2) if there is input (pen approaches tablet or writes on tablet) there
is a flurry of data from the read thread and of course, no more
interrupt read timeouts; the main thread is business as usual, setting
and getting feature reports every second; see the attached debug log
Note that the interrupt read report size is specific to the device (10
bytes for the tablet); is the length for your device correct?
-------------- next part --------------
DEBUG Found 15 devices attached
[...]
DEBUG Found device with vid:pid 1386:222 at idx:12!
DEBUG Device instance found: 1 at idx:12!
[...]
DEBUG Device opened. Next I must claim the interface.
[...]
DEBUG Claiming interface.....fingers crossed...
DEBUG Interface claimed ... yay!
DEBUG 22:13:42:711 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:42:713 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:43:711 libusbhid_set_report. written: 2 bytes to device
DEBUG 22:13:43:715 libusbhid_interrupt_read. TIMEOUT bytes read: 0
DEBUG 22:13:43:812 libusbhid_get_report. received: 2 bytes from device
DEBUG 22:13:44:718 libusbhid_interrupt_read. TIMEOUT bytes read: 0
DEBUG 22:13:44:812 libusbhid_set_report. written: 2 bytes to device
DEBUG 22:13:44:913 libusbhid_get_report. received: 2 bytes from device
DEBUG 22:13:45:720 libusbhid_interrupt_read. TIMEOUT bytes read: 0
DEBUG 22:13:45:914 libusbhid_set_report. written: 2 bytes to device
DEBUG 22:13:46:014 libusbhid_get_report. received: 2 bytes from device
DEBUG 22:13:46:722 libusbhid_interrupt_read. TIMEOUT bytes read: 0
DEBUG 22:13:46:852 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:858 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:866 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:874 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:882 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:888 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:895 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:904 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:912 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:918 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:926 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:934 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:942 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:948 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:956 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:964 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:972 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:978 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:986 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:46:994 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:002 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:008 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:015 libusbhid_set_report. written: 2 bytes to device
DEBUG 22:13:47:015 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:024 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:032 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:038 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:046 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:054 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:062 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:068 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:076 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:084 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:092 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:098 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:106 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:114 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:115 libusbhid_get_report. received: 2 bytes from device
DEBUG 22:13:47:122 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:128 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:136 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:144 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:152 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:158 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:166 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:174 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:182 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:188 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:196 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:204 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:212 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:218 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:226 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:234 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:240 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:248 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:256 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:264 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:272 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:278 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:286 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:294 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:302 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:308 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:316 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:324 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:332 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:338 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:346 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:354 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:362 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:368 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:376 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:384 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:392 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:398 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:406 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:414 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:422 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:428 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:436 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:444 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:452 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:458 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:466 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:474 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:482 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:488 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:496 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:504 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:512 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:518 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:526 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:534 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:542 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:548 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:556 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:564 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:572 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:578 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:586 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:594 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:602 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:608 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:616 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:624 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:632 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:638 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:646 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:654 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:662 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:668 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:676 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:684 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:690 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:698 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:47:740 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:096 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:104 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:112 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:116 libusbhid_set_report. written: 2 bytes to device
DEBUG 22:13:48:118 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:126 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:134 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:142 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:148 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:156 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:164 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:170 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:178 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:186 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:194 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:202 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:208 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:216 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:216 libusbhid_get_report. received: 2 bytes from device
DEBUG 22:13:48:224 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:232 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:238 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:246 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:254 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:262 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:268 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:276 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:284 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:296 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:304 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:312 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:318 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:326 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:334 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:342 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:348 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:356 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:364 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:372 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:378 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:386 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:394 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:402 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:408 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:416 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:424 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:432 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:438 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:446 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:454 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:462 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:468 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:476 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:484 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:492 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:498 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:506 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:514 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:522 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:528 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:536 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:544 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:552 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:558 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:566 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:574 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:582 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:588 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:596 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:604 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:612 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:618 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:626 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:634 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:642 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:648 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:656 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:664 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:672 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:678 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:686 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:694 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:702 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:708 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:716 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:724 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:732 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:738 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:746 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:754 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:762 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:768 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:776 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:784 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:792 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:798 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:806 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:814 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:822 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:828 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:836 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:844 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:852 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:858 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:866 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:874 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:882 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:888 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:896 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:904 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:912 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:918 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:926 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:934 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:942 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:948 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:956 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:964 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:972 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:978 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:986 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:48:994 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:002 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:008 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:016 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:024 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:032 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:038 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:046 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:054 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:062 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:068 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:076 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:084 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:092 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:098 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:106 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:114 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:122 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:128 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:136 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:144 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:152 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:158 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:166 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:174 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:182 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:188 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:196 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:204 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:212 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:217 libusbhid_set_report. written: 2 bytes to device
DEBUG 22:13:49:218 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:226 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:234 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:242 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:248 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:256 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:264 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:272 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:278 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:286 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:49:317 libusbhid_get_report. received: 2 bytes from device
DEBUG 22:13:50:288 libusbhid_interrupt_read. TIMEOUT bytes read: 0
DEBUG 22:13:50:318 libusbhid_set_report. written: 2 bytes to device
DEBUG 22:13:50:418 libusbhid_get_report. received: 2 bytes from device
DEBUG 22:13:51:290 libusbhid_interrupt_read. TIMEOUT bytes read: 0
DEBUG 22:13:51:419 libusbhid_set_report. written: 2 bytes to device
DEBUG 22:13:51:519 libusbhid_get_report. received: 2 bytes from device
DEBUG 22:13:52:292 libusbhid_interrupt_read. TIMEOUT bytes read: 0
DEBUG 22:13:52:520 libusbhid_set_report. written: 2 bytes to device
DEBUG 22:13:52:620 libusbhid_get_report. received: 2 bytes from device
DEBUG 22:13:52:790 libusbhid_interrupt_read. received: 10 bytes from device
DEBUG 22:13:53:621 libusbhid_set_report. written: 2 bytes to device
DEBUG 22:13:53:722 libusbhid_get_report. received: 2 bytes from device
DEBUG 22:13:53:792 libusbhid_interrupt_read. TIMEOUT bytes read: 0
DEBUG 22:13:54:722 libusbhid_set_report. written: 2 bytes to device
DEBUG 22:13:54:794 libusbhid_interrupt_read. TIMEOUT bytes read: 0
DEBUG 22:13:54:823 libusbhid_get_report. received: 2 bytes from device
DEBUG 22:13:55:796 libusbhid_interrupt_read. TIMEOUT bytes read: 0
DEBUG Interface released. Phew..
Heap dump by heaptrc unit
2794 memory blocks allocated : 167506/177512
2794 memory blocks freed : 167506/177512
0 unfreed memory blocks : 0
True heap size : 131072
True free heap : 131072
More information about the fpc-pascal
mailing list