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

There is a lot of peripheral devices around and I just want to connect one peripheral device

I am using nrf52832 module with SDK 11.0.0, s132.

I am advertising and the central device is able to scan the advertising devices and  displaying the RSSI and peer address.

For the project , i have to read the RSSI as the distance varies so that i can check for a distance of 5m how much RSSI i will obtain.

The central is scanning all the  surrounding devices ,how do i limit the central to scan this one particular peripheral??
So how do i implement ?

How can i scan the device with respect to the advertising device name?

central : ble_app_uart example
peripheral : ble_beacon example

Thanks

Parents
  • The application will receive an BLE_GAP_EVT_ADV_REPORT for each received advertisement packet, the filtering (for instance based on device name) must be done in the application. 

    Best regards,
    Kenneth

  • Hi Kenneth,

    I have filtered the data required.

    I have loaded the board with the peripheral beacon and at the central device i have app_uart_c code where i am scanning the device and then displaying RSSI.

    I am able to do this , but i have a problem.In the central code when in dumping the code with uart initiation like this.

    After loading the code into the board ,the data is not displaying continuously.But when i am making contact with the Gnd and Vcc pins on the PCB the data in COM port is displayed continuously.

    When i have made the following changes

    I am able to get continuous data displayed in COM port.

    Am i missing something?I need clue ?


    Thanks

Reply
  • Hi Kenneth,

    I have filtered the data required.

    I have loaded the board with the peripheral beacon and at the central device i have app_uart_c code where i am scanning the device and then displaying RSSI.

    I am able to do this , but i have a problem.In the central code when in dumping the code with uart initiation like this.

    After loading the code into the board ,the data is not displaying continuously.But when i am making contact with the Gnd and Vcc pins on the PCB the data in COM port is displayed continuously.

    When i have made the following changes

    I am able to get continuous data displayed in COM port.

    Am i missing something?I need clue ?


    Thanks

Children
  • Hi,

    GND needs to be connected as a reference point between two UART devices (e.g. your board and com port), else data through RXD/TXD may randomly work (if at all). Make sure that voltage level on the UART serial interface (RXD, TXD, CTS, RXD) does not exceed VDD of the board.

    If RXD is not connected/used, then it should either by disconnected ("NULL") or use an external pull up resistor (e.g. >100kohm).

    Best regards,
    Kenneth

Related