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

NUS with Scanner

I can scan beacons with Scanner. and can use NUS (ble_periperall\ble_app_uart ) to get connect with device.

My goal is to combine both application Have NUS Service to connect with Mobile and Scanner for scanning and sending beacon data to Uart.

After combining code, I can connect to device using Mobile. and Device also receives the beacon.

When when I connect with device it stops Scanner. I want to make connection to configure device and Scanner should also work at this time.

Thank You

Bivay   



  • bivay said:
    Have you sent data from Mobile and seen in RTT viewer using NUS and at this time scanner is also working means seen beacon data in RTT Viewer.

    Hello,

    I didn't implement this to check, but I was able to see the data that I entered via UART on the mobile, and I was able to see the data that I sent from nRF Connect on mobile on the RTT window.

     

    bivay said:
    My module is 3rd party module : cdebyte e73-2g4m08s1c. I used external 32.768kHz external crystal on P0.0 and P0.1.

     Perhaps it is a different XTAL than the one we use on the DK. Does the 3rd party module mean that the XTAL came with the module, or did you add that yourself?

    Look up the datasheet on the LFXTAL (connected to P0.0 and P0.01). What is the accuracy of the XTAL? Make sure that the define, NRF_SDH_CLOCK_LF_ACCURACY, in sdk_config.h matches the accuracy of your LFXTAL.

    Best regards,

    Edvin

  • Thank You Edvin.

    You are right this is crystal issue, when I use internal RC clock then issue solved.

    Thank you so much for your kid support

    Bivay

Related