In USB HID Generic Example implemented mouse example. I need simple hid device for data exchange.Is it possible?
In USB HID Generic Example implemented mouse example. I need simple hid device for data exchange.Is it possible?
I need simple hid device for data exchange.Is it possible?
Yes. HID is widely used for simple data exchange.
Is example for 52840 ?
Is example for 52840 ?
The USB HID Generic device example demonstrates the configuration and usage of the nRF52840's USB peripheral.
Furthermore, the BLE peripheral HID mouse example demonstrates a BLE HID mouse.
The essence of the examples' code is the same for all nRF52840 SoC's, but you will have to make changes if you attempt to run it on a PCB that is not the nRF52840 ( or nRF52 ) Development kit.
Best regards,
Karl
(or nRF52 ) Development kit
Errr ... the nRF52 DK is nRF52832 - which doesn't have USB.
So it would have to be the nRF52840 DK
I am sorry if my previous comment was unclear in any way - what I meant to say is that the BLE peripheral HID example that I referenced is available for both the nRF52840 Development Kit and the nRF52 Development Kit ( which indeed features the nRF52832 SoC ). Therefore, if the example is programmed on either the nRF52840 DK or the nRF52 DK there will not be necessary to make any changes to the supplied code / project files for the example to function as described in the example documentation.I concur that you would want the USBD controller peripheral when developing a HID device that might find itself connected through either USB or BLE. However, if the HID device is not intended for use with a wired connection then developing on either the nRF52 DK or nRF52840 DK is fine.
In essence, what @awneil is saying is correct; The nRF52840 and nRF52833 SoC's both have the USBD peripheral, which is what you will need when developing a USB HID Generic Device, @alebo62. The HID USB Generic example is available for both the nRF52840 DK and the nRF52833 DK in nRF5 SDK v.17.
Thank you for pointing out my mistake, awneil!
Best regards,
Karl
EDIT: My mistake; I see now that the original ticket specifically requested only USB functionality, without BLE - as I thought I had read. I will update the answer to reflect this.
ah yes - I see your point that HID could go directly over BLE without involving USB (or other TLAs).