This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I can't write data through USB

Hello,
I'm trying to send data my usb device using simpleHIDWrite tool, but I'm getting this error:
access violation at address 00000, read of address 00000
Does anyone have an idea about what could be the source of this problem.

Parents
  • > it seems that I always start by sending a zero even that the first byte is not defined to be zero.

    It's the Windows way how MS implement PC HID driver.
    When your report descriptor on the device has no report ID, the default report ID (0) is assumed by the HID spec. On the firmware side, no report ID is preceded on the reports, exchanged by the device. But Windows application has to add the report ID: 0 before every type of reports. This report ID is deleted by the PC HID driver, when it is sent to the device. Also, this report ID is added by the HID PC driver, when it comes from the device.

    Tsuneo

Reply
  • > it seems that I always start by sending a zero even that the first byte is not defined to be zero.

    It's the Windows way how MS implement PC HID driver.
    When your report descriptor on the device has no report ID, the default report ID (0) is assumed by the HID spec. On the firmware side, no report ID is preceded on the reports, exchanged by the device. But Windows application has to add the report ID: 0 before every type of reports. This report ID is deleted by the PC HID driver, when it is sent to the device. Also, this report ID is added by the HID PC driver, when it comes from the device.

    Tsuneo

Children