Resources
BMHB2020:BH66F2455 CGM Dev Board Resources
- CGM Continuous Glucose Monitoring Dev Board BMHB2020 ,, based on the BH66F2455 (3.0V) AFE + HT32F67593 (BLE MCU) platform.
- The AFE is based on BH66F2455 (3.0V platform). It handles analog signal acquisition (battery voltage, temperature resistance, WE1/WE2 currents, etc.), communicating with the BLE MCU (HT32F67593) or a host over UART.
- The BLE side uses HT32F67593, running a BLE 5.1 stack. It talks to phones / apps over BLE, and to the AFE over UART, forming the full CGM link. The default advertising name is "BH CGM HT32", declaring the standard CGM Service (UUID 0x181F), with CGMS-compatible mode supported.
Quick Start
Platform: BH66F2455 (3.0V AFE) + HT32F67593 (BLE MCU) Version Date: 2026-08-17
This document is the user guide for the BestHealth CGM (Continuous Glucose Monitoring) development board BMHB2020 (board rev. V1.0) and its companion software resources, based on the BH66F2455 (3.0V) AFE + HT32F67593 (BLE MCU) platform.
project-root/
├── 1.doc/ # Documents and references
├── 2.code_AFE/ # AFE firmware and drivers
├── 2.code_BLE/ # BLE firmware and stack
├── 3.board/ # Board-level and PCB files
└── README.md # This guideProduct documentation, protocols, chip datasheets, and evaluation tools for understanding the system and starting secondary development.
| File / Directory | Description |
|---|---|
CGM_BH66F2455_HT32F67593_Demo_Board 使用说明-V0.1.pdf | Dev board user guide (required reading) |
@健康量測產品-產品推廣-CGM_BH66F2455_HT32F67593.pdf | Product and solution introduction (download upon request — contact service@e-besthealth.com) |
CGM_BLE协议_V0.5.pdf | CGM BLE communication protocol |
| File | Description |
|---|---|
HT CGM 二维码生成工具.html | CGM QR-code generator (web page, open directly in a browser) |
HT CGM 功耗评估工具.url | Shortcut to the online power estimation tool (https://www.e-besthealth.com/tools/power-estimator) |
| Path / File | Description |
|---|---|
相关器件Datasheet/ | Main chip and key component datasheets |
BH66F2455v120.pdf / simBH66F2455v120.pdf | BH66F2455 AFE datasheet (English / Simplified Chinese) |
HT32F67593_Datasheet_v100.pdf / simHT32F67593_Datasheet_v100.pdf | HT32F67593 datasheet (English / Simplified Chinese) |
3.0V_宇锋CR920.pdf | Yufeng CR920 3.0V coin-cell battery datasheet |
C42379496_陶瓷天线_CW201-02_规格书_WJ1477289.PDF | CW201-02 ceramic antenna datasheet |
MDT-Switch-Sensors-TMR1369-Datasheet-CN-V1.0.1.pdf | MDT TMR1369 magnetic switch sensor datasheet |
NTC热敏电阻_NTCG064BF473FTBX_规格书_WJ269337.PDF / ntcg064bf473ftbx.csv | NTC thermistor datasheet and R-T characteristic table |
USB-UART/ | Components of the isolated USB-UART debug circuit (B0505XT-1WR3 isolated DC-DC, CA-IS3722CHS digital isolator, HT42B534 USB-UART bridge, HT73Lxx LDO) |
Recommended reading order: start with the dev board user guide and CGM_BLE协议_V0.5.pdf (BLE protocol), then consult the datasheets as needed.
The AFE is based on BH66F2455 (3.0V platform). It handles analog signal acquisition (battery voltage, temperature resistance, WE1/WE2 currents, etc.), communicating with the BLE MCU (HT32F67593) or a host over UART.
2.code_AFE/
└── BH66F2455_Driver/
├── application/ # Application layer (e.g. IAP/ISP)
├── application_projects/ # CGM application projects (flashable to the AFE)
├── board/ # Board configuration
├── driver/ # Low-level drivers
├── example/ # Example projects (ADC, NTC, current, UART, timers, etc.)
└── application_projects/doc/ # AFE communication protocol document- Interface: UART
- Parameters: 38400 bps, 8N1, no parity
- Data: little-endian; request-response; inter-frame gap must exceed 50 ms
- Frame format: header(1) + length(1) + cmd(1) + data(9) + LRC(1), fixed total length 0x0D; header 0x55 (master→slave), 0xAA (slave→master)
Common commands:
| Command | Description |
|---|---|
| 0xB0 | Parameter read/write (firmware version, ADC sample rate/gain, VREF, DAC1O/2O/3O, AFE restart count, etc.) |
| 0xC1 | Voltage calibration (DACVREF, electrode count, DAC1O/2O/3O) |
| 0xC2 | Current calibration (WE1/WE2 feedback resistors and K1/K2) |
| 0xD1 | Measurement command (battery voltage, temperature resistance, WE1 current, WE2 current — one type per request) |
| 0xF0 | Restart count read/erase (kept for compatibility, debug use) |
Detailed frame definitions and examples: 2.code_AFE/BH66F2455_Driver/application_projects/doc/BH66F2452_55_CGM_AFE通信协议.md
- Projects use Holtek's format (
.pjtx/.OPT); open and build with the official Holtek HT-IDE. The latest IDE ships with the BH66F2455 CFG configuration — no extra patch is needed. - Refer to Holtek's programming guide for BH66F2455.
The BLE side uses HT32F67593, running a BLE 5.1 stack. It talks to phones / apps over BLE, and to the AFE over UART, forming the full CGM link. The default advertising name is "BH CGM HT32", declaring the standard CGM Service (UUID 0x181F), with CGMS-compatible mode supported.
2.code_BLE/
├── libraries/ # Precompiled BLE libraries (boot2 / patch / rom)
├── projects/ # Buildable projects
│ ├── application/cgm_profile/ # CGM product firmware (Keil and HT32-IDE projects)
│ └── libraries/ # boot2 / patch library projects
├── release/ # Firmware release (V0.4 B499: full-image hex and OTA bin)
├── sources/ # Source code
│ ├── ble5.1/ # BLE 5.1 stack
│ ├── boards/ # Board definitions
│ ├── components/ # Common components (OTA, Flash, timing, HCI, IPC, etc.)
│ ├── device/ # Device support (CMSIS, startup files, etc.)
│ ├── drivers/ # Peripheral drivers
│ ├── mem_cfg/ # Memory configuration
│ ├── patch/ # Patches and extensions
│ └── projects_source/ # Application project sources (application/cgm_profile, etc.)
├── third_party/ # Third-party configuration (CMSIS Pack)
└── tools/ # Firmware tools (bin2array, boot2_pkg, flash_algorithm, fw_upgrade, mlog, etc.)- CGM product firmware project:
projects/application/cgm_profile/(project_keil/project_HT32-IDE) - Application source:
sources/projects_source/application/cgm_profile/ - Released firmware:
release/BH_CGM_HT32_V0.4_B499_cgm_profile.hex(full image),release/BH_CGM_HT32_V0.4_B499_bin2B3F866C.bin(OTA upgrade package)
- Open the project under
projects/application/cgm_profile/in Keil or HT32-IDE and build. - Flash with J-Link or Holtek programming tools; firmware packaging and upgrade scripts are under
tools/.
Complete PCB design files of the BMHB2020 dev board V1.0, for hardware reference and redesign.
| File | Description |
|---|---|
SCH_BH66F2455+HT32F67593_CGM_DevBoard_V1.0.pdf | Schematic PDF |
PCB_BH66F2455+HT32F67593_CGM_DevBoard_V1.0.pdf | PCB layout PDF |
BOM_BH66F2455+HT32F67593_CGM_DevBoard_V1.0.xlsx | Bill of materials |
Gerber_BH66F2455+HT32F67593_CGM_DevBoard_V1.0.zip | Gerber production files |
PickAndPlace_BH66F2455_HT32F67593_CGM_DevBoard_V1.0.xlsx | Pick-and-place coordinates |
ProPrj_BH66F2455+HT32F67593_CGM_DevBoard_V1.0.epro2 | EasyEDA Pro project file |
3D正面/3D背面/3D侧面_.png, 实物图_.png | 3D renders and photos of the board |
Tip: verify the schematic and PCB revision (V1.0) before referencing them in your own design.
- Read the docs
1.doc/CGM_BH66F2455_HT32F67593_Demo_Board 使用说明-V0.1.pdf1.doc/CGM_BLE协议_V0.5.pdf
- Prepare hardware
- Use the BMHB2020 dev board or your own board (see
3.board/); - Confirm the power supply (3.0V, e.g. Yufeng CR920 coin cell) and components such as the antenna / NTC / TMR sensor (see
1.doc/相关器件Datasheet/).
- AFE firmware
- Open the CGM application project under
2.code_AFE/BH66F2455_Driver/, build and flash with the Holtek IDE; - When integrating with BLE or a host, strictly follow the AFE protocol framing (UART 38400 8N1, inter-frame gap > 50 ms).
- BLE firmware
- Open and build the project under
2.code_BLE/projects/application/cgm_profile/, or directly flash the V0.4 firmware under2.code_BLE/release/; - Pair with the app following the CGM BLE protocol (default advertising name "BH CGM HT32").
- Power estimation & selection
- Use the online tool linked by
1.doc/HT CGM 功耗评估工具.urlto estimate system power consumption.
- Resource pack version: based on the BestHealth CGM BH66F2455 + HT32F67593 (BMHB2020 V1.0) design as of 2026-08-17.
- BLE firmware version: V0.4 (Build 499), see
2.code_BLE/release/. - Technical support: tony@e-besthealth.com (project contact)
- Business inquiries: service@e-besthealth.com
- Website: https://www.e-besthealth.com
- Address: Office 301, Building 10, Xinzhu Garden, No.4 Xinzhu Road, Songshan Lake, Dongguan, Guangdong, China
- Phone: +86-769-26261311
The materials in this repository — including hardware schematics, PCB files, source code, and documents — are provided solely for customer reference and evaluation. Before using these materials in product design, mass production, or commercial deployment, customers are responsible for conducting full functional testing, reliability validation, and regulatory certification. BestHealth Electronics Inc. (悠健电子(东莞)有限公司) shall not be liable for any direct or indirect losses arising from the customer's use of these materials in production, sale, or operation — including but not limited to yield issues, field failures, product recalls, or end-customer claims. These materials are provided "as is" without warranty of any kind, express or implied.
All materials in this repository (including but not limited to hardware design files, source code, documents, trademarks, and logos) are the intellectual property of BestHealth Electronics Inc. (悠健电子(东莞)有限公司), protected by applicable laws. Customers are granted only the right to use these materials for reference and evaluation. Reverse engineering, resale, redistribution, or unauthorized public release is prohibited without prior written consent.
© 2026 BestHealth Electronics Inc. (悠健电子(东莞)有限公司) All Rights Reserved.
This README is a directory-level user guide for fast navigation. Refer to the individual PDFs and source code for protocol and register details.
