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

HID Mouse Example - Can't Pair with Windows 10

I want to run the HID Mouse and Keyboard examples on nRF51 Dongle. How I can configure it first, to connect with my PC via Bluetooth and second, to configure the GPIOs act like buttons, since the dongle doesn't have user programmable buttons.

I am also stuck with simple bluetooth connection - the nRF51 Dongle is not vissible to other devices. Is it possible to be a GATT Server (Master device) ?

I am using Keil with SDK 12.3.0

Parents
  • I have made it. It turned out that I had to configure the clock source. By default it is NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, but it should be changed to NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM.

    Source: What low-frequency clock sources can I use?

    The example is working, in debug mode I can see that it handles events from pressing the buttons.

    However, I have another issue - When I click on 'Pair' in Windows 10 bluetooth menu it says "That passcode isn't right. Try adding your mouse again."

    image description

    Is it a Windows 10's fault or I should modify something on the example?

  • No, it's not right. If you read the case you pointed to you can find this line:

    In general, there should never be a reason to use this clock source (NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM), and you should always be able to use the RC oscilator instead of the synthesized clock.
    

    I don't know why there is a passkey here. Usually with the mouse there should be no passkey. Please try to test with unmodified code of the mouse example.

    We use Justwork to pair.

Reply
  • No, it's not right. If you read the case you pointed to you can find this line:

    In general, there should never be a reason to use this clock source (NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM), and you should always be able to use the RC oscilator instead of the synthesized clock.
    

    I don't know why there is a passkey here. Usually with the mouse there should be no passkey. Please try to test with unmodified code of the mouse example.

    We use Justwork to pair.

Children
No Data
Related