Get data from OUT Interrupt Endpoint #68
-
|
I might be missing something, but I seem to be having an issue receiving data from the host on PIO-USB configured as a device. if(pio_usb_device_transfer(0x1,tempIn,64)) Which does grab data from the host, but it does not match what was sent. I'm able to send data without issue. -Thanks [1204307.389323] usb 1-1.4.4: new full-speed USB device number 109 using xhci_hcd |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Got VSCode set up so I could debug the library. The following change seems to correct the issue with the first two bytes being wrong. I tested pushing a 64byte payload with a non-zero value at the very end and I was able to receive it. As of right now, I don't have a good understanding of how the usb_rx_buffer is filled in this scenario to know whether this is correct. @sekigon-gonnoc thoughts? |
Beta Was this translation helpful? Give feedback.




Got VSCode set up so I could debug the library. The following change seems to correct the issue with the first two bytes being wrong. I tested pushing a 64byte payload with a non-zero value at the very end and I was able to receive it. As of right now, I don't have a good understanding of how the usb_rx_buffer is filled in this scenario to know whether this is correct. @sekigon-gonnoc thoughts?