Project evaluation for low power switch

Hi support team,

We have a new project now. We plan to use nrf52832 for the project. We know about the BLE and the related development, but
we are not familiar with nordic BLE. Our project requirements are following:
1. The project includes two parts: a bulb powered by AC-DC, a switch powered by a battery.
2. The bulb works as the BLE master and the switch works as BLE slave.
3. The switch connects to the bulb and get paired. After being paired, they disconnect.
4. After being paired, the switch sends out the ON/OFF command which contained in advertise frame to the bulb upon the button
is pressed. Note: there is no connection between the bulb and the switch while the command is being sent out.
Out questions are:
1. How to implement our project? any suggestion will be appreciated.
2. Which examples can be properly referred to for the begining of our project?

Thanks in advance!

Parents
  • Hello,

    This absolutely looks doable. What you want is the bulb to scan for advertisement packs coming from the switch, and control the light accordingly. 

    For the light switch, I suggest you have a look at this blogpost, written by a colleague of mine.

    As for the central, I suggest you set up a scanner using one of the ble_central examples from our SDK, and remove the scanning filters, and handle all advertisements in your main.c file's ble_evt_handler (you can add the BLE_GAP_EVT_ADV_REPORT event to any BLE event handler).

    Manually look for what you added to your advertising packets to control your lights based to the advertisements you are seeing.

    Best regards,

    Edvin

Reply
  • Hello,

    This absolutely looks doable. What you want is the bulb to scan for advertisement packs coming from the switch, and control the light accordingly. 

    For the light switch, I suggest you have a look at this blogpost, written by a colleague of mine.

    As for the central, I suggest you set up a scanner using one of the ble_central examples from our SDK, and remove the scanning filters, and handle all advertisements in your main.c file's ble_evt_handler (you can add the BLE_GAP_EVT_ADV_REPORT event to any BLE event handler).

    Manually look for what you added to your advertising packets to control your lights based to the advertisements you are seeing.

    Best regards,

    Edvin

Children
No Data
Related