As everything is connected now, the era of the Internet of Things is coming. Consumer products are developing towards intelligent and wireless applications. Based on this, the AB1611 low-power consumption BLE Bluetooth solution and the precise spO2 blood oxygen provided by the MTK Bio chip MT6381, Blood pressure, heart rate data. Combined with big data cloud database AI analysis service. It can achieve daily monitoring of physical conditions and early notification of physical abnormalities.
AB1611 is a very simple and easy-to-use low-power Bluetooth BT5.0/BT4.2 BLE chip platform. There is a flash that can store the application software that can be connected to the mobile phone GATT transparent transmission. The TRSPX bin software is the blue The ADV broadcast packet defined by the Bud BLE 4.2 specification, the mobile phone APP can also scan the AB1611 through the Bluetooth SCAN function, connect and then establish the GATT service, exchange the characteristic value and transmit the GATT package. The software can also perform MTU according to design requirements Set up and comply with Android MTU packet and 185 bytes Bluetooth packet exchange format defined by Apple IOS.
There are various FreeRTOS in AB1611, and all BLE stacks on it can be used directly. GATT, GAP, SM, FOTA, BLE mesh stacks are included in AB1611 and can be used directly.
AB1611 initialize BLE stack code
Init routine, initialize GATT, L2CAP package, OTA function
RSPX_service_init() – Initialize BLE GATT service and feature exchange
GATT characteristic value UUID
ADV broadcast packet RAW DATA
Software BLE event handler
The Bluetooth stack event is implemented through an event handler. When a mobile phone is successfully connected or disconnected, and MTU data is exchanged, AB1611 will notify the FreeRTOS BT event handler from the underlying Bluetooth hardware.
When the phone is connected to AB1611, it will trigger BT_GAP_EVT_CONNECTED
When the mobile phone and 1611 transmit data, it will trigger BLE_GAP_MTU_EXCHANGED, and then display it in the console debug log, which is convenient for monitoring Bluetooth status and BLE MTU packet transmission data inspection during development.
Console log,
Software Archive
Only six c codes are needed to easily complete the Bluetooth ble initialization, GATT service and MTU exchange data
Code snapshoot
Development environment
AB1611 provides a complete set of toolchain and C compiler. It conforms to its built-in MCU and Andes N9 core. After the installation is complete, a compilation shortcut will appear on your computer desktop.
Compiling is very easy, just type make to complete the compilation
Please refer to the compiled picture
Compilation instruction #make projects/SAC_1611/
After compiling, you only need to use AB1611 lab tool to burn
Start lab tool, set baudrate to 2M and program flash
Mobile APP software
AB1611 This solution provides a BLE GATT transparent transmission app, which can transmit the blood oxygen and blood pressure data read by the sensor to the mobile phone through the Bluetooth ble.
First install the app, then turn on the Bluetooth and scan device of the phone, the phone will find the SAC_AB1611 name, and then connect it, as shown below
Implementation of the program app, read blood oxygen, blood pressure data, and display it on the app
► Scenario application diagram
► Product entity diagram
► Showcase photos
► Scheme block diagram
► antenna test report
► Core technical advantages
Bluetooth 5 SIG grid solution, AB 1611 is an optimized single chip solution that integrates baseband, radio and flash memory for smart lighting and beacon applications. It complies with Bluetooth version 5.0 and SIG Mesh specifications. The embedded 512 KB flash memory is flexible and allows customized software development.
Feature
MT6381 module specifications:
► Solution specifications
IC MCU 32BIT 256KB FLASH 44VTLA
IC MCU 8BIT 768B OTP 28SDIP
IC MCU 32BIT 256KB FLASH 100TQFP
IC MCU 32BIT 128KB FLASH 64LQFP
1
2
3
4
5
6