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

Scan only one nrf52832 peripheral

HI

I am using nrf52832 modules with SDK 11.0.0, s132.

I am able to advertise and scan the devices and display RSSI and peer address.

For my project i want to display the RSSI of the advertising nrf module , but the central device is scanning all the surrounding peripheral devices.So how do i implement to scan only one particular peripheral device and there by display that device address and RSSI only??

central: ble_app_uart_c example

peripheral: ble_beacon example

Thanks,

Uma

Parents
  • Hi Uma,

    You have a few options in this case:

    1. Scan with whitelisting provided that you know the MAC address or IRK (if the peripheral uses privacy). If you are not bonded with the device, you can do something similar to this.
    2. Just filter in the handling of the BLE_GAP_EVT_ADV_REPORT event. Then you can filter on anything you want (MAC address, name or whatever), and only print the RSSI of the device(s) you are interested in.
  • Hey,

    I mean is there an PA/LNA in the nrf52832 that needs to be enabled to get more range.

    If i have understood it correctly ,your saying there is no such feature in the module specifically for PA/LNA but can be implemented through external PA\LNA using available GPIO pins .?

    To understand , GPIOTE, when i need a particular pin to be triggered after a function or task is completed, say i have established a connection between central and peripheral and i have made GPIO pin to go high to indicate that status ,is that when the GPIOTE comes into picture?

    How can i understand GPIOTE better?

    The document says about the pin operations and pin conditions, which are quite understandable when read but to get know about using them is confusing.So How can i understand the usage?

    I found https://devzone.nordicsemi.com/f/nordic-q-a/18559/understanding-gpiote-better but did not understand.

    Thanks

  • Hi,

    guma said:
    I mean is there an PA/LNA in the nrf52832 that needs to be enabled to get more range.

    You control the internal output power (think of it as an internal PA as we have discussed earlier). The internal LNA is automatically controlled and cannot be configured in any way.

    guma said:
    If i have understood it correctly ,your saying there is no such feature in the module specifically for PA/LNA but can be implemented through external PA\LNA using available GPIO pins .?

    Yes. If you need a external PA or LNA, that is supported and can be controlled via GPIO pins, which are asserted by the SoftDevice when the radio is in Tx or Rx mode.

    guma said:
    To understand , GPIOTE, when i need a particular pin to be triggered after a function or task is completed, say i have established a connection between central and peripheral and i have made GPIO pin to go high to indicate that status ,is that when the GPIOTE comes into picture?

    When using PA/LNA support in the SoftDevice, The SoftDevice will assert the a GPIO pin whenever the radio is in Tx mode, and similarly assart another pin when the radio is in Rx mode.

    guma said:
    How can i understand GPIOTE better?

    You can start by looking at the GPIOTE chapter in the PS. Essentially it is GPIO pins with support for tasks and events are described under Peripheral interface.

    guma said:
    The document says about the pin operations and pin conditions, which are quite understandable when read but to get know about using them is confusing.So How can i understand the usage?

    The best way to understand things is to read documentatin and experiment wit some simple examples related to what you want to do.

    By the way, why are you starting development with the ancient SDK 11?

  • Thank you for the quick reply.

    I happen to have the SDK, just trying to get to know to be easy with new version.

Reply Children
Related