example peripheral LBS nrf5340, led service doesn't work

Hello,

I'm exploring the nrf5340 controller with a Fanstel evaluation board (EV-BT40)
I use the SDK V1.7.1 with vsCode.

Used example "Bluetooth: Peripheral LBS".

Connecting with phone works with the use of "nrfConnect" app and "bleScanner" app.

The button serves works also fine, after signing up, the button state is updated in both aps. But the Led service doesn't work from both apps.

I placed allready a breakpoint in "lbs.c" in function "write_led()" which should be called after data receive, but this is not triggered.

What could be wrong or how can I debug on a lower level?

Greetings peter

Parents
  • Hello,

    Sorry for the delayed response. Have you had any progress on this in the meantime? I tried to replicate this here with the nRF5340DK, but everything seems to be working as expected here. I placed a breakpoint in write_led() and it got hit as soon as I sent the "ON" (0x01) command from the nRF connect app.

    Maybe you can try to increase the logging and see if there are any errors? You can increase the log level by adding the following configurations to your prj.conf file:

    CONFIG_NCS_SAMPLES_DEFAULTS=n
    CONFIG_LOG=y
    CONFIG_LOG_MAX_LEVEL=4
    CONFIG_BT_LBS_LOG_LEVEL_DBG=y

    Best regards,

    Vidar

Reply
  • Hello,

    Sorry for the delayed response. Have you had any progress on this in the meantime? I tried to replicate this here with the nRF5340DK, but everything seems to be working as expected here. I placed a breakpoint in write_led() and it got hit as soon as I sent the "ON" (0x01) command from the nRF connect app.

    Maybe you can try to increase the logging and see if there are any errors? You can increase the log level by adding the following configurations to your prj.conf file:

    CONFIG_NCS_SAMPLES_DEFAULTS=n
    CONFIG_LOG=y
    CONFIG_LOG_MAX_LEVEL=4
    CONFIG_BT_LBS_LOG_LEVEL_DBG=y

    Best regards,

    Vidar

Children
No Data
Related