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

Linux central and 52840 Blinky App

Hello,  I am using Linux as a central and I created python app (bluez, pygatt) which simulates the Android Blinky app. It  communicates with the board and writes on the led characteristic and I subscribe to notifications on the button characteristic. This all works on the 52832.

When I use the same Linux and python code to communicate with Blinky app on the 52840 the led communication works, however the button notifications are not received by the app and Bluetooth logging on Linux shows no notifications. If I use the 52840 with the Android Blinky app the button notification is received.

I use the Blinky app from nRF5_SDK_14.2.0_17b948a/examples/ble_peripheral/ble_app_blinky

Is there something different I need to do when connecting to the 52840 or configuring on the Linux side?

Thanks in advance,

Eric

Parents Reply
  • Aha, so by the comment " the 52840 the console shows "button press received" or similar and there is no other output" you mean that this is printed when you push the button on the nRF52840 and not on the Linux side. 

    Its hard to say whats going on. Could you capture a sniffer trace with the nRF Sniffer  and attach it to the case when your back in office? Then we should be able to see if the nRF52840 is actually sending the notification or not. 

    And also check that ble_lbs_on_button_change in the button_event_handler() is not returning NRF_ERROR_INVALID_STATE or any other error as mentioned previously. 

    Best regards

    Bjørn 

Children
Related