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

Serial communication (USB) with BLE HID

Hello together,

I want to create a program for the nRF52840 DK and later port it to the nRF52840 Dongle (both from Nordic).

The program should

1) over Serial (USB, that is important because of the Dongles native USB port), receive two values (e.g., [50, 20]) and then

2) over BLE, move the mouse on the connected PC/Laptop by those two values (i.e., x->50 pixels; y->20 pixels)

for this

3) it needs to establish a valid connection as BLE HID Mouse first including advertising etc.

My questions are:

a) Are there already similar projects within the nRF5 SDK that I can use?

b) Is this project possible at all?

c) Can someone point me to a good starting point as I'm currently struggling to find information about how to accomplish this. 

I already familiarized myself with programming the nRF52840 DK and Dongle with example applications from the nRF5 SDK.

EDIT://

I started by merging two projects of the SDK together, struggling with compiler errors. Its described here:

devzone.nordicsemi.com/.../nrf_success-undeclared-first-use-in-this-function-did-you-mean-exit_success

Thank you, 

ny_quist

Related