2015-08-28 12:03 PM
Hello,
up to now I used the SPL USB device code and I'd like to switch to the HAL/Cube version now. Unfortunately that only supports setting feature reports. But I'd also like to get feature reports from the device. Has someone already implemented this and is able to share the corresponding code? Best regards, Michael #usb-hal-customhid-hid-cube #usb-hid-getfeature-setfeature2015-09-02 09:41 AM
2015-12-13 10:40 AM
I am working with USB HID in stm32f On Get_Report Request I have to send data to Host PC through Control Transfer Endpoint. I am trying to do so. But it is sending always some wrong data. If I want to elaborate the problem, that is
case HID_REQ_GET_REPORT: if(req->wValue==PID_POOL_BLOCK_REPORT){ buf[0] = 0x07; buf[1] = 0xFF; buf[2] = 0xFF, buf[3] = 0x0A; buf[4] = 0x02; if(USBD_LL_FlushEP (pdev, 0x00)==USBD_OK){ USBD_CtlSendData (pdev, buf, 5); } }
But the data send through is actually ''0xF6 0x3A 0x82 0x28 0x45''. I have no clue what is happening inside. I have benn trying it with flushing the endpoint too. But it seems no working. What to do really? Any clue please. Thank you.
2016-06-15 11:23 AM
Hi,
Sorry for bumping this thread. Could you please send your project as an exemple ( maybe in Github) ? Because actually in 2016 ST don't provide project with can receive report over HID Thanks in advance2016-06-22 10:20 PM
Hello Smithers,
sorry for my late reply. I didn't get a notification about the answers here. Please give me another day or maybe two to have a look on the code and do some cleanup. Then I'll upload it to GitHub and post a link here.2016-07-08 01:28 PM
Please excuse the delay. You can find the corresponding project for F1 and L1 on
https://github.com/pikim/HIDIRT-STM32x1xx
. The host application for Windows is also there in another repository () and uses a modified library, which was initially written by Janet Axelson.