This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE hid keyboard with mouse project pc driver error

hi support team,

i have a wired problem that i can't explain to customer:

first, i test this project "nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_hids_keyboard" and every thing is fine,

second,and customer want to merge mouse into this project so i did it, you can see attachment "main_1.c"  ,and tested, it turned out that pc driver error.

third, i use command nrfjprog -e to erase all the flash and reprogram the DK board(52840DK), find out that every thing is fine,

so i guess may be this is windows driver problem, but i don't know why.

could you please help about this? i really don't know why.

main_1.c

Regards,

William.

  • Hello,

    third, i use command nrfjprog -e to erase all the flash and reprogram the DK board(52840DK), find out that every thing is fine,

    Could you elaborate what you mean by this - does doing an erase all operation fix the driver issue with windows..?
    That would be very strange indeed.

    so i guess may be this is windows driver problem, but i don't know why.

    could you please help about this? i really don't know why.

    I too would think that this might be a Windows driver error - which Windows version is the customer / you using?

    you can see attachment "main_1.c"  ,and tested, it turned out that pc driver error.

    Which driver error is given? If you go into device manager, and click properties on the connected device with the error, which driver is it using?

    Best regards,
    Karl

  • PC driver shows as below. and if you can help to try this main.c

    if there is driver error, why erase chip can help to solve this issue

    Regards,

    William.

  • Hello William,

    William.wei said:
    if you can help to try this main.c

    Sure, I can try it. Is there any other changes I need to do, than to just substitute in the provided main file into the ble peripheral keyboard example? No changes to the sdk_config or project configurations?
    In general it would be best if you could provide the entire project in a zip when asking us to perform a test, to eliminate potential sources of error (such as a project configuration being different between our two projects, or similar).

    William.wei said:
    if there is driver error, why erase chip can help to solve this issue

    I've learnt that there are many things that could cause such behavior of drivers in windows, unfortunately. It could be so easy that the reboot and reopening of the COM port is enough for it to resolve the issue, for example, or it could require a reinstall of the driver entirely.

    Please also show me the 'driver' and 'details' tabs of the properties you have sent screenshots of.

    Please see my other question from my previous comment as well:

    Karl Ylvisaker said:
    I too would think that this might be a Windows driver error - which Windows version is the customer / you using?


    Looking forward to resolving this issue together!

    Best regards,
    Karl

  • Hi Karl,

    sorry i was on business trip and missed this ticket.

    yes, of course i can provide the entire project, just simply replacing the main.c by main_.c should be OK.

    this is based on keyboard project ----examples\ble_peripheral\ble_app_hids_keyboard\pca10056. 

    ble_app_hids_keyboard.7z

    Regards,

    William.

  • Hello again, William

    Thank you for your patience with this. The summer holidays have begun here in Norway, and DevZone is therefore operating with reduced staff for the time being. Sorry for any inconvenience this might cause.

    I see that multiple other users have had similar issues when merging the keyboard and mouse example. It seems that separating the mouse and keyboard into two separate HID services resolves this issue.
    Could you try this as well, and see if it resolves your issue?

    Best regards,
    Karl

Related