Building BLE Environment

 To begin with, as BlueZ is used as the Bluetooth stack of the raspberry pi 4, some services have to be enabled so that the mesh network could be generated.

 Firstly, to enable the construction of a mesh network, service meshctl have to be installed. BlueZ is a preinstalled Bluetooth stack of all Linux systems. However, meshctl is not in the default package, so the first step is to install the latest BlueZ version. 

Way to install BlueZ

1. Update the system

2. Install the dependents
3. Install the json-c
4.Install the ell
5.Install the BlueZ 5.50
6. Start meshctl menu


Then, the environment should include the key part, zephyr project, which is specially designed to be used in Linux system. According to the guides on Zephyr Project, the recommended Linux system includes Ubuntu, Fedora, Clear Linux and Arch Linux. It is to say, Raspbian is not recommended in the project. This might cause unexpected problem in the programming and mesh construction.


Here, we have two compile tools that can be used, which is CMake and Ninja. The recommended one is CMake. 






评论

此博客中的热门博文