How to adapt the OpenHarmony 4.1 Bluetooth chip? Tactile Intelligence RK3568 Motherboard SBC3568 Demonstration
[Copy link]
When there is no response after turning on Bluetooth, you need to check whether the Bluetooth node corresponds and whether the firmware is loaded successfully. This article introduces the method of adapting Bluetooth under the open source Hongmeng OpenHarmony4.1 system. The tactile intelligent SBC3568 motherboard is demonstrated, equipped with Rockchip RK3568 chip, and its applications can cover edge computing, artificial intelligence, industrial HMI, industrial gateway, smart medical care, self-service terminals, smart retail, energy and power and other industries.
Modify the corresponding node
The Bluetooth hardware connection of the development board is UART1. Modify the corresponding node and the path is:
ido_ohos_4.1r_sdk/vendor/hihope/rk3568/bluetooth/include/bt_vendor_brcm.h
/* Device port name where Bluetooth controller attached */
#ifndef BLUETOOTH_UART_DEVICE_PORT
#define BLUETOOTH_UART_DEVICE_PORT "/dev/ttyS1" /* maguro */
#endif
As shown in the figure:
Add corresponding firmware
Check ido_ohos_4.1r_sdk/vendor/hihope/rk3568/bluetooth/ whether there is corresponding Bluetooth firmware in the Bluetooth firmware location path, as shown in the figure:
Note: If there is no corresponding Bluetooth firmware, please contact the WiFi manufacturer to obtain it. Modify the BUILD.gn file under the bluetooth path and add the used Bluetooth firmware to the following, as shown in the figure:
{
"subsystem": "rockchip_products",
"parts": {
"rockchip_products": {
"module_list": [
"//device/board/hihope/${device_name}:rk3568_group",
"//vendor/hihope/${product_name}/bluetooth:libbt_vendor",
"//vendor/hihope/${product_name}/bluetooth:BCM43430A1.hcd",
"//vendor/hihope/${product_name}/bluetooth:BCM4345C0.hcd",
"//vendor/hihope/${product_name}/bluetooth:BCM4345C5.hcd",
"//device/board/hihope/${device_name}/camera/vdi_impl/v4l2:camera_board_vdi_impl"
],
"test_list": [
"//kernel/linux/build/test:linuxkerneltest",
"//device/board/hihope/${device_name}/camera/vdi_impl/v4l2:camera_board_test"
],
"inner_kits": []
}
}
}
Recompile
Save the modified code, exit, and recompile
./build.sh --project-name rk3568 --ccache
Product Introduction
The tactile intelligent SBC3568 motherboard is a multi-functional industry motherboard based on Rockchip RK3568, and its applications can cover edge computing, artificial intelligence, industrial HMI, industrial gateway, smart medical care, self-service terminals, smart retail, energy and power, etc. It has the following advantages:
- Support OpenHarmony, KylinOS, Linux, and Android operating systems;
- Quad-core A55 processor, clocked at 2.0GHz, Mali G52-2EE GPU;
- Support 4K video decoding and three-screen display output;
- 1T computing power NPU, supporting INT8/INT16 operations, TensorFlow/MXNet/PyTorch and other frameworks;
- Rich audio and video interfaces: HDMI, eDP, MIPI DSI, Dual LVDS, MIPI CSI;
- Onboard 2×USB3.0, 4×USB2.0;
- Support 5G/4G/WiFi/BT wireless communication;
- 1×UART, 4×RS232, 1×RS485 bus;
- Support lithium battery charge and discharge management;
- Support WOL network port wake-up and startup;
|