博文

目前显示的是 二月, 2021的博文

Item checking

图片
 To make sure all the components are ready to use, it is important to use the demo codes to check every function is good on the micro bits v2. Accelerometer Thermometer  

Bluetooth related coding

图片
 To enable codes on Micro bits: v2, it is important to enable some Bluetooth related packages. The first package is called BlockyBLE, which is used to create a response when receiving some given data from another Bluetooth node.

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 t...