nrf52832 mesh第一个程序,light_switch功能

nordic官网的Mesh SDK的网址:https://www.nordicsemi.com/Software-and-tools/Software/nRF5-SDK-for-Mesh/Download#infotabs

先下载Mesh SDK,这里以nrf5_SDK_for_Mesh_v3.2.0_src为例,nrf52832 mesh第一个程序,light_switch功能

因为Mesh协议在ble的基础上完成通讯,所以下载与之匹配的ble的SDK(v15.3.0),下载网址:https://www.nordicsemi.com/Software-and-tools/Software/nRF5-SDK/Download#infotabs

nrf52832 mesh第一个程序,light_switch功能

把两个SDK解压放在同一文件夹下,在Mesh的SDK里面的light_switch分别打开client和server工程,编译完分别下载到两个不同的开发板。

手机nRF Mesh,进行Provisioning,(图片简单示意)

1、在Network下,点右上角的+,分别Provisioning,选择NO OOB方式。

nrf52832 mesh第一个程序,light_switch功能nrf52832 mesh第一个程序,light_switch功能

2、回到Network,分别在Mesh Switch和Mesh Light添加相同的APP Key,(如果没有key的选项,在settings里添加)

  nrf52832 mesh第一个程序,light_switch功能nrf52832 mesh第一个程序,light_switch功能nrf52832 mesh第一个程序,light_switch功能

3、在各自Generic OnOff Server和Generic OnOff Clinet的Element 里bing APP key和set publication

nrf52832 mesh第一个程序,light_switch功能nrf52832 mesh第一个程序,light_switch功能nrf52832 mesh第一个程序,light_switch功能nrf52832 mesh第一个程序,light_switch功能

经过以上的配置,Mesh的网络组好了。按client的button能同时控制server和client的led。