A circuit control structure for a non-invasive blood analyzer

By designing a daisy-chain cascade topology and serial data control signals, the problems of excessive pin resource usage and limited signal transmission distance in the LED driver control of non-invasive blood analyzers are solved, achieving efficient and reliable LED control, which is suitable for low-cost and miniaturized design of portable medical devices.

CN123147922APending Publication Date: 2026-11-24GUANGDONG DAIMANTE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611224649.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing LED driver control schemes for non-invasive blood analyzers suffer from problems such as excessive pin resource consumption, limited signal transmission distance, and insufficient signal integrity. In particular, timing drift and level attenuation are severe in multi-level cascaded systems, increasing system cost and complexity.

Method used

The circuit control structure adopts a daisy-chain cascaded topology, connecting the main control module and the cascaded LED driver module through a single-wire serial bus. It utilizes a microcontroller and Bluetooth communication module to realize the step-by-step transmission of serial data control signals, and combines power supply voltage sampling and current limiting protection circuits to ensure signal integrity and efficient utilization of pin resources.

Benefits of technology

It achieves efficient control of driving multi-level LEDs with limited pin resources, reduces system cost and PCB layout complexity, improves signal transmission reliability and electrical robustness, and is suitable for miniaturization and cost reduction of portable medical devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123147922A_ABST
    Figure CN123147922A_ABST
Patent Text Reader

Abstract

This invention discloses a circuit control structure for a non-invasive blood analyzer. The circuit control structure includes a main control module, a cascaded LED driver module, and a wireless communication module. The wireless communication module receives external wireless control commands. The main control module and the cascaded LED driver module are connected via a single-wire serial bus. The cascaded LED driver module includes N levels of LED driver units cascaded and coupled sequentially. The signal input terminal of the first-level LED driver unit is coupled to the control signal output terminal of the main control module. The signal input terminal of each subsequent-level LED driver unit is coupled to the signal output terminal of the preceding-level LED driver unit, forming a daisy-chain cascaded topology. This invention uses a daisy-chain cascaded topology, where each level of LED driver unit is connected in series via a single data line. The main control module only needs to occupy one general-purpose input / output pin to drive multiple levels of LED loads, significantly reducing the pin resource usage of the microcontroller and the complexity of PCB routing. This is particularly suitable for portable medical devices such as non-invasive blood analyzers that have strict requirements on device size and circuit board area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical electronic equipment technology, and more specifically to a circuit control structure for a non-invasive blood analyzer. Background Technology

[0002] Non-invasive blood analyzers are a new type of medical screening device based on the analysis of human thermodynamic parameters. They provide data on over a hundred health indicators, including blood components, biochemical indicators, hemodynamics, and metabolic parameters, without the need for blood collection. These data can be used for preliminary screening and auxiliary diagnosis of human health conditions. This device typically integrates multiple functional modules, including power management, wireless communication, data processing, and human-computer interaction indicators, to achieve a convenient, efficient, and safe operating experience. To provide users with visual feedback on the device's operating status, non-invasive blood analyzers usually require multiple LED indicators. Existing LED driver control schemes have the following problems in use: 1) Traditional LED driving structures typically employ a parallel driving method, meaning each LED requires an independent I / O pin on the main control chip for independent control. When the device needs to implement multi-level, multi-color status indication, the required number of MCU I / O pins increases linearly with the number of LEDs. For low-cost MCUs with limited pin resources, this parallel driving method severely restricts system scalability, forcing designers to choose MCU models with higher pin counts, increasing system cost and PCB layout complexity. 2) Under the multi-channel independent IO control mode, as the number of LEDs increases, the transmission distance of the drive signal is limited, and the problems of signal attenuation and timing offset become prominent, making it difficult to achieve stable control over long distances and multiple cascades.

[0003] 3) In existing LED driving solutions, the signal transmission integrity of multi-stage cascaded LEDs is not guaranteed. In long links of multi-stage cascaded LEDs, data signals are prone to timing drift, level attenuation, and waveform distortion after being transmitted through multiple chips, resulting in color display deviations of the final LEDs. Existing technologies often solve this problem by adding signal repeaters or drivers, but this increases system cost and power consumption. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a circuit control structure that is highly integrated, safe and reliable, has low pin resource consumption, and has the ability to provide collaborative protection against anomalies, in order to address the shortcomings of the existing technology.

[0005] To solve the above-mentioned technical problems, the present invention adopts the following technical solution: A circuit control structure for a non-invasive blood analyzer includes a main control module, a cascaded LED driver module, and a wireless communication module. The wireless communication module is coupled to the main control module and is used to receive external wireless control commands and transmit the wireless control commands to the main control module, so that the main control module can generate serial data control signals according to the wireless control commands. The main control module and the cascaded LED driver module are connected via a single-wire serial bus, and the single-wire serial data control signals output by the main control module are transmitted unidirectionally step by step along the single-wire serial bus.

[0006] Furthermore, the cascaded LED driving module includes N levels of LED driving units cascaded and coupled in sequence, where N is an integer greater than 1. Each level of LED driving unit has a data input pin and a data output pin. The signal input terminal of the first level LED driving unit is coupled to the control signal output terminal of the main control module, and the signal input terminal of the subsequent level LED driving unit is coupled to the signal output terminal of the previous level LED driving unit, forming a daisy-chain cascaded topology. Each level of LED driving unit is used to receive serial data control signals from the main control module, extract the corresponding driving data of its own level step by step, and forward the remaining serial data signals downstream to drive the corresponding LED light-emitting element to perform display work.

[0007] Furthermore, the serial data control signal is a single-wire serial data control signal. The main control module includes a microcontroller and peripheral circuits coupled to the microcontroller. The microcontroller integrates an ADC sampling pin, a general-purpose input / output pin, and a serial communication interface. The control signal output terminal of the main control module is any one of the general-purpose input / output pins. The main control module is also used to perform external control command reception, power supply voltage monitoring, and system abnormal protection operations.

[0008] Furthermore, the serial data control signals received by each LED driver unit include 24-bit RGB color data; each LED driver unit is used to parse and latch the 24-bit RGB color data to drive the corresponding LED light-emitting elements to perform color mixing display.

[0009] Furthermore, when each LED driving unit drives the corresponding LED light-emitting element, the pulse width modulation (PWM) method is used to adjust the light-emitting duty cycle of the three primary color LEDs to achieve color mixing.

[0010] Furthermore, the wireless communication module is a Bluetooth communication slave module, which includes a Bluetooth chip, a power decoupling and RF power supply circuit, and a UART serial communication and current limiting protection circuit. The power decoupling and RF power supply circuit and the UART serial communication and current limiting protection circuit are all coupled to the Bluetooth chip. The Bluetooth chip integrates a processor core and a 2.4GHz RF transceiver. The Bluetooth communication slave module is coupled to the master control module through a UART serial communication interface to achieve bidirectional data interaction.

[0011] Furthermore, the power decoupling and RF power supply circuit includes a power supply terminal and a decoupling capacitor coupled between the power supply pin of the Bluetooth chip and ground. The decoupling capacitor is used to compensate for instantaneous current fluctuations through charging and discharging characteristics when the power supply voltage experiences transient drops or high-frequency glitches occur, and to discharge high-frequency noise to ground, so as to provide a low-ripple clean power supply to the internal circuit of the Bluetooth chip.

[0012] Furthermore, the UART serial communication and current limiting protection circuit includes a first current limiting resistor and a second current limiting resistor. The UART transmitting end of the microcontroller is coupled to the UART receiving pin of the Bluetooth chip via the first current limiting resistor to limit the overcurrent in the transmitting line. The UART transmitting pin of the Bluetooth chip is coupled to the UART receiving end of the microcontroller via the second current limiting resistor to limit the overcurrent in the receiving line.

[0013] Furthermore, the peripheral circuit includes a power supply voltage sampling circuit, a communication and debugging interface circuit, and a clock source circuit, all of which are coupled to the microcontroller.

[0014] Furthermore, the power supply voltage sampling circuit includes a first voltage divider resistor and a second voltage divider resistor; the externally input battery voltage is connected to the ADC sampling pin of the main control module after being divided in series by the first voltage divider resistor and the second voltage divider resistor; the microcontroller converts the divided analog signal into a digital quantity through its internally integrated ADC to realize power supply voltage monitoring.

[0015] Compared with the prior art, the present invention has the following beneficial effects: 1) The circuit control structure of this invention includes a main control module, a cascaded LED driver module, and a wireless communication module. The wireless communication module receives external wireless control commands and transmits them to the main control module, which then generates serial data control signals based on the commands. The main control module and the cascaded LED driver module are connected via a single-wire serial bus. The single-wire serial data control signals output by the main control module are transmitted unidirectionally along the single-wire serial bus. The cascaded LED driver module includes N levels of LED driver units cascaded and coupled sequentially. The signal input terminal of the first-level LED driver unit is coupled to the control signal output terminal of the main control module. The signal input terminal of the subsequent-level LED driver unit is coupled to the signal output terminal of the previous-level LED driver unit, forming a daisy-chain cascaded topology. This invention uses a daisy-chain cascaded topology, where each level of LED driver unit is connected in series via a single data line. The main control module only needs to occupy one general-purpose input / output pin to drive multiple levels of LED loads. Compared to traditional solutions where each LED channel requires an independent main control pin or an additional decoder / latch, this invention significantly reduces the pin resource usage of the microcontroller and the complexity of PCB routing. It is particularly suitable for portable medical devices such as non-invasive blood analyzers that have strict requirements on device size and circuit board area, which is conducive to achieving miniaturization and cost reduction of the device.

[0016] 2) This invention achieves real-time high-precision monitoring of external battery voltage by combining the voltage divider network of the power supply voltage sampling circuit with the high-precision 12-bit successive approximation ADC of the microcontroller. The voltage divider network accurately attenuates a wide range of input voltages to the safe range of the ADC.

[0017] 3) The present invention sets a current-limiting resistor on the UART communication path between the Bluetooth chip and the microcontroller, which effectively blocks the surge current and high voltage static electricity introduced by the external cable, prevents the breakdown and damage of the fragile IO ports inside the microcontroller and Bluetooth chip, and significantly improves the electrical robustness of the wireless communication interface. Attached Figure Description

[0018] Figure 1 This is a circuit diagram showing the coupling between the main control module and the cascaded LED driver module of the present invention. Figure 2 This is a circuit schematic diagram of the wireless communication module of the present invention. Detailed Implementation

[0019] The present invention will now be described in detail with reference to the accompanying drawings, which form part of this specification. The principles of the invention are illustrated by means of embodiments, and other aspects, features, and advantages of the invention will become apparent from this detailed description. In the accompanying drawings, the same or similar parts in different figures are indicated by the same reference numerals.

[0020] like Figures 1-2 As shown, Embodiment 1 of the present invention provides a circuit control structure for a non-invasive blood analyzer. This circuit control structure includes a main control module, a cascaded LED driver module, and a wireless communication module. The wireless communication module is coupled to the main control module and receives external wireless control commands, transmitting them to the main control module so that the main control module can generate serial data control signals based on the wireless control commands. The main control module and the cascaded LED driver module are connected via a single-wire serial bus. The single-wire serial data control signal output by the main control module is transmitted unidirectionally along the single-wire serial bus. The circuit control structure of the present invention includes a cascaded LED driver module, and the main control module and the cascaded LED driver module are connected via a single-wire serial bus. The cascaded LED driver module can drive LED light-emitting elements to perform color mixing display. Using multi-level full-color LED light-emitting elements, the operating status, result prompts, and abnormal alarms of the equipment can be intuitively reflected. Combined with the wireless communication module, medical personnel can remotely view the equipment status or adjust the indication mode via a mobile APP. It has good practical value and promotion prospects, and is particularly suitable for the status indication and interactive control of portable medical testing and analysis instruments.

[0021] In its specific implementation, this cascaded LED driver module includes N levels of LED driver units cascaded and coupled sequentially, where N is an integer greater than 1. Each level of LED driver unit has a data input pin and a data output pin. The signal input terminal of the first level LED driver unit is coupled to the control signal output terminal of the main control module. The signal input terminal of the subsequent level LED driver unit is coupled to the signal output terminal of the previous level LED driver unit, forming a daisy-chain cascaded topology. Each level of LED driver unit receives serial data control signals from the main control module, extracts its corresponding driving data level by level, and forwards the remaining serial data signals downstream to drive the corresponding LED light-emitting elements to perform display operations. This invention uses the WS2811 series cascaded driver chip to construct a daisy-chain topology LED driver module. The microcontroller only needs to occupy a single general-purpose GPIO pin to drive up to six levels (or even more) of LED beads for independent addressing and full-color control. Compared to existing technologies where each LED requires a separate general-purpose input / output pin, this invention reduces the number of I / O pins from N to 1. For low-cost microcontrollers with limited pin resources, this significantly frees up I / O resources for other functional modules, reducing chip selection costs and PCB layout complexity. Simultaneously, the signal regeneration circuits built into each LED driver chip can reshape the remaining data stream for output, effectively overcoming signal attenuation and timing offset issues in long-distance transmission, ensuring signal integrity and control reliability in multi-stage cascaded scenarios.

[0022] The serial data control signal is a single-wire serial data control signal. The main control module includes a microcontroller U1 and peripheral circuits coupled to the microcontroller U1. The microcontroller U1 integrates an ADC sampling pin, general-purpose input / output pins, and a serial communication interface. The control signal output terminal of the main control module can be any one of the general-purpose input / output pins. The main control module is also used to receive external control commands, monitor power supply voltage, and perform system fault protection operations. In specific implementation, the microcontroller U1 of this invention preferably uses the LPC824M201JHI33E chip as the main control core. This microcontroller U1 is based on the ARM Cortex-M0+ core, with a maximum operating frequency of up to 30MHz. It integrates a 12-bit successive approximation analog-to-digital converter (ADC), multiple 32-bit timers, multiple general-purpose I / O channels, and a standard UART serial communication interface. Its package is HVQFN33 with a pin pitch of 0.5mm, making it very suitable for space-constrained portable device applications.

[0023] The control signal output terminal of the main control module uses any one of its general purpose input / output (GPIO) pins to generate and output a single-wire serial data control signal to the first-stage LED driver unit HL1. In this embodiment, the control signal output terminal preferably uses pin 5 of the LPC824M201JHI33E chip. This pin is configured in general purpose output mode. Through the timer and software precision delay inside the main control module, the pin is controlled to toggle high and low levels according to the timing requirements of the WS2811 protocol, thereby generating a standard-compliant serial data control signal. The UART serial communication interface of the main control module includes a UART transmitter (corresponding to pin 4 of the microcontroller U1, U0_TXD) and a UART receiver (i.e., U0_RXD, pin 24), used for bidirectional data interaction with the wireless communication module, receiving wireless control commands transparently transmitted from the wireless communication module, and converting the parsed commands into corresponding serial data control signals.

[0024] The microcontroller U1 of this invention also integrates the following extended functions: 1) External control command reception: Receive external control commands (such as color setting, brightness adjustment, display mode switching, etc.) transmitted by the wireless communication module through the UART serial port, and parse them into target driving data for each LED driver unit; 2) Power supply voltage monitoring: The system power supply voltage is collected in real time through the ADC sampling pin (i.e., pin 1). When the voltage is detected to be lower than the preset threshold, the microcontroller U1 determines that the system is in an undervoltage state and actively reduces the LED driver brightness or terminates the driver output to protect the system stability. 3) System anomaly protection: The microcontroller U1 has a built-in watchdog timer and anomaly handling logic. When the program runs abnormally (such as infinite loop, communication timeout, etc.), it will automatically perform a system reset or enter a safety lock state to prevent LED display abnormalities.

[0025] The main control module of this invention collects the system power supply voltage in real time through the ADC sampling pin. When it is determined that the power supply voltage exceeds the preset normal threshold range, the main control module outputs a reset signal to the reset terminal of the wireless communication module through the general-purpose input / output pin, forcing the wireless communication module to enter the hardware reset state.

[0026] Each LED driver unit receives a serial data control signal containing 24-bit RGB color data. Each LED driver unit parses and latches this 24-bit RGB color data to drive the corresponding LED light-emitting elements for color mixing display. When driving the corresponding LED light-emitting elements, each LED driver unit uses pulse width modulation (PWM) to adjust the duty cycle of the three primary color LEDs to achieve color mixing. Each LED driver unit extracts its own 24-bit RGB data from the serial data stream, enabling independent brightness and color control of each LED light-emitting element. Combined with PWM constant current driving, each LED can output stable and precisely controllable light intensity. For the AFND non-invasive blood analyzer, the luminous intensity of different wavelength light sources (such as red, infrared, and green light) directly affects the signal quality of photoplethysmography (PPG). The precise constant current driving capability of this invention can effectively improve the signal-to-noise ratio and consistency of the PPG signal, providing a reliable optical basis for the accurate calculation of subsequent blood parameters.

[0027] In specific implementation, the LED driving unit preferably uses WS2811D-F5 constant current driver chips to form a cascaded LED driving module. The cascaded LED driving module includes six sequentially cascaded LED driving units, HL1 to HL6, denoted as HL1, HL2, HL3, HL4, HL5, and HL6 (i.e., N=6). HL1 to HL6 correspond to the first to sixth level LED driving units, respectively. The WS2811D-F5 used is a constant current driver chip specifically designed for full-color LED driving, integrating a data decoder, data latch, three independent constant current PWM driving circuits, and a data regeneration circuit. Each level of the WS2811D-F5 chip is powered by the same DC power supply in parallel (preferably 5.0V in this embodiment), meaning that pin 2 of all WS2811D-F5 chips is connected to the same power network, and pin 4 is grounded. The data lines are connected via a daisy-chain topology: pin 5 of the microcontroller U1 of the main control module is used as the control signal output terminal and is coupled to the data input pin (i.e., pin 4) of the first-stage LED driver unit HL1 chip; the data output pin (i.e., pin 1) of the first-stage LED driver unit HL1 chip is coupled to pin 4 of the next-stage LED driver unit HL2 chip; pin 1 of the next-stage LED driver unit HL2 is coupled to pin 4 of the LED driver unit HL3; and so on, until pin 1 of the LED driver unit HL5 is coupled to the data input pin (i.e., pin 4) of the final-stage LED driver unit HL6, forming a complete daisy-chain cascaded topology.

[0028] The microcontroller U1 outputs a serial data control signal from its control signal output terminal, which is connected to pin 4 of the first-stage LED driver unit HL1. After receiving the serial data control signal, the first-stage LED driver unit HL1 executes the following signal processing procedure: Step 1) Data extraction and latching: The decoder of the first-level LED driver unit HL1 extracts the first 24 bits of color gamut data (arranged in high-order order, namely 8 bits of green component, 8 bits of red component, and 8 bits of blue component) from the received serial data stream and latches it into the internal register. Step 2) PWM constant current drive: The first-level LED driver unit HL1 adjusts the duty cycle of each primary color LED according to the latched 24-bit RGB data through three independent internal constant current PWM drive circuits, so that the three primary color lights are mixed according to the set brightness ratio to achieve full-color display. Step 3) Residual data regeneration and forwarding: The first-level LED driver unit HL1 extracts the remaining serial data stream, reshapes it through the internal data regeneration circuit, and outputs it from its first pin to the fourth pin of the next-level LED driver unit HL2.

[0029] The second-level LED driver units to the sixth-level LED driver units HL2 to HL6 follow the same signal processing flow as the first-level LED driver unit. They sequentially extract the first 24 bits from the remaining data stream they receive as the driving data for their respective levels, and continue to forward the remaining data stream of the next level downstream until the final-level LED driver unit HL6 completes the final color mixing display.

[0030] The advantage of the daisy-chain cascade topology used in this invention is that, regardless of the number of cascaded stages, the main control module only needs to occupy one general-purpose input / output pin (control signal output). The length of the transmitted data frame increases linearly with the number of cascaded stages (24 bits per stage), and all WS2811D-F5 chips sequentially extract the required data in the same data stream. For example, in a six-stage cascade, the data frame length sent by the main control module is 6 × 24 = 144 bits. The first-stage LED driver unit HL1 extracts bits 1 to 24, the second-stage LED driver unit HL2 extracts bits 25 to 48, ..., and the sixth-stage HL6 extracts bits 121 to 144. This distributed data extraction and forwarding mechanism avoids the drawbacks of traditional shift register schemes that require additional clock and latch signals, significantly simplifies system interconnection, and reduces the pin resource occupation of the main control module. Simultaneously, each chip in each stage has data regeneration and signal shaping capabilities, effectively ensuring signal integrity during long-distance cascaded transmission.

[0031] The peripheral circuitry of this invention includes a power supply voltage sampling circuit, a communication and debugging interface circuit, and a clock source circuit, all of which are coupled to the microcontroller U1. The power supply voltage sampling circuit includes a first voltage divider resistor and a second voltage divider resistor. The externally input battery voltage is divided in series by the first and second voltage divider resistors and then connected to the ADC sampling pin of the main control module. The microcontroller U1 converts the divided analog signal into a digital value using its internally integrated ADC to monitor the power supply voltage. This power supply voltage sampling circuit is used to monitor the voltage state of an external battery or power module, and its specific connection relationship is as follows: The externally input battery voltage (VBAT) signal is first attenuated by a voltage divider network consisting of a first voltage divider resistor and a second voltage divider resistor. In this embodiment, the range of the ADC inside the microcontroller U1 is 0~3.3V. Therefore, based on the resistance ratio of the two voltage divider resistors (for example, when the battery voltage is at most 24V, let the ratio of the first voltage divider resistor to the second voltage divider resistor be 20:3), the battery voltage is attenuated to below 3.3V to meet the ADC input range requirements.

[0032] In this embodiment, the first voltage divider resistor is preferably R2 (200kΩ), and the second voltage divider resistor is preferably R3 (30kΩ), which are connected in series to form a voltage divider network. The externally input battery voltage is divided by the first voltage divider resistor R2 and the second voltage divider resistor R3, and then connected in series to form a voltage divider network. The divided signal (ADC_BATT) is connected to the ADC sampling pin of the microcontroller U1 (corresponding to pin 1 PIO0_13 / ADC_10 in this embodiment). The scaling factor of this voltage divider network satisfies:

[0033] That is, when the battery voltage is 24V, the ADC input voltage is about 3.13V, which is lower than the ADC reference voltage of 3.3V, ensuring safe measurement across the entire range.

[0034] In the signal processing flow, the microcontroller U1 integrates a 12-bit successive approximation ADC (SAR ADC) peripheral. This ADC module is independently driven by an internal clock, and during analog-to-digital conversion, it does not require the MCU core to perform real-time comparison operations, thus effectively freeing up core resources. In this embodiment, the ADC module is configured in continuous sampling mode (or, depending on power consumption requirements, in single-sampling mode). During the conversion process, the sample-and-hold circuit inside the ADC module first samples the voltage on the input pin and maintains this voltage value on the holding capacitor; subsequently, the successive approximation logic inside the ADC module quantizes the held voltage into a 12-bit digital value (corresponding to a count value from 0 to 4095). The microcontroller U1 provides a precise reference voltage source, with the reference voltage VRef being 3.3V in this embodiment. The main control software obtains this digital value Dval by reading the ADC data register and, combined with the voltage divider ratio, uses the following formula to back-calculate the external power supply voltage value in real time:

[0035] in, This represents the proportional gain of the voltage divider network. Through the above conversion, the system can obtain the voltage status of the external power supply in real time, achieving accurate monitoring of the power supply's operating status and providing a basis for the microcontroller U1 to perform abnormal protection operations such as power supply voltage monitoring and undervoltage protection.

[0036] The communication and debugging interface circuit of this invention includes a UART serial communication interface and an SWD online debugging interface. The UART transmitter and receiver of the microcontroller U1 are respectively connected to the data transmission terminal of the UART serial communication interface. The SWD clock terminal and SWD data terminal of the microcontroller U1 are respectively connected to the clock terminal and data terminal of the SWD online debugging interface. Preferably, the UART serial communication interface uses a pin header connector CON3, whose pins 4 and 5 are respectively connected to the UART transmitter (corresponding to pin 4 of the microcontroller U1, U0_TXD) and the UART receiver (corresponding to pin 24 of the microcontroller U1, U0_RXD), for serial data communication and program burning between the microcontroller U1 and the host computer. The SWD online debugging interface uses a pin header connector CON4, whose pins 2 and 3 are respectively connected to the SWCLK pin (corresponding to pin 6 of the microcontroller U1) and the SWDIO pin (corresponding to pin 7 of the microcontroller U1), for connecting an external emulator to realize online debugging and firmware maintenance of the main control module.

[0037] The UART serial communication interface section: Pin 4 of the microcontroller U1 is multiplexed as the UART transmitter (U0_TXD), and pin 24 is multiplexed as the UART receiver (U0_RXD). These two pins are connected to the corresponding data transmission terminals of the UART serial communication interface connector (the UART serial communication interface connector preferably uses a 4-pin header CON3, where pins 4 and 5 serve as the UART receive and transmit signal terminals, respectively; that is, U0_TXD of the microcontroller U1 is connected to pin 4 of CON3, and U0_RXD of the microcontroller U1 is connected to pin 5 of CON3). When the system is running normally, the microcontroller U1 can output TTL level serial data through the UART transmitter to upload system status information (such as the voltage sampling results, device ID, operation log, etc.) to the host computer for display and recording; at the same time, the microcontroller U1 can also receive configuration commands from the host computer through the UART receiver to realize online setting of system parameters.

[0038] The SWD online debug interface section: Pins 6 (SWCLK) and 7 (SWDIO) of the microcontroller U1 are connected to the clock and data terminals of the SWD online debug interface connector, respectively (the debug interface connector preferably uses a 4-pin header connector CON4, where pin 2 is the SWCLK signal terminal and pin 3 is the SWDIO signal terminal). When an external emulator (such as J-Link or DAP-Link) is connected to this debug interface, the SWCLK pin receives a synchronous clock pulse from the emulator, and the SWDIO pin serves as a bidirectional data line. The communication protocol is as follows: on the rising edge of the clock, the host (emulator) sends data to the slave (microcontroller U1); on the falling edge of the clock, the slave replies with data to the host. Through this two-wire interface, the debugger can directly access the debug access port (DAP) inside the microcontroller U1, thereby enabling firmware erasure and writing, breakpoint setting, single-step debugging, and online variable monitoring of the microcontroller U1's internal Flash memory.

[0039] The clock source circuit includes an external crystal oscillator, a first load capacitor, and a second load capacitor. The two ends of the external crystal oscillator are connected to the crystal input terminal and the crystal output terminal of the microcontroller U1, respectively. The first load capacitor is coupled between the crystal input terminal and ground, and the second load capacitor is coupled between the crystal output terminal and ground. In this embodiment, the clock source circuit is used to provide the microcontroller U1 with the basic clock signal required for system operation. The clock source circuit includes an external crystal oscillator, a first load capacitor, and a second load capacitor. The specific connection relationship is as follows: pin 18 (PIO0_8 / XTALIN) of the microcontroller U1 is used as the crystal oscillator input terminal, and pin 17 (PIO0_9 / XTALOUT) is used as the crystal oscillator output terminal. The two ends of the external crystal oscillator Q1 are respectively connected to the above two pins. At the same time, the first load capacitor C10 is coupled between the crystal oscillator input terminal (pin 18) and ground, and the second load capacitor C11 is coupled between the crystal oscillator output terminal (pin 17) and ground. In this embodiment, the external crystal oscillator Q1 is preferably a high-frequency crystal oscillator with a frequency of 12MHz or 16MHz, and the capacitance values ​​of the first load capacitor C10 and the second load capacitor C11 are both preferably 20pF.

[0040] After the microcontroller U1 is powered on, the inverting amplifier inside the microcontroller U1 chip starts up, forming a positive feedback oscillation loop together with the external crystal oscillator Q1, the first load capacitor C10, and the second load capacitor C11. This oscillation loop generates a stable sine wave signal, which is converted into a square wave clock signal by the clock shaping circuit inside the microcontroller U1. After frequency multiplication or division by the programmable clock divider inside the microcontroller U1, it serves as the system master clock (SYSCLK) for use by the core and peripherals such as the ADC. For example, when using a 12MHz external crystal oscillator, the clock frequency can be multiplied to the maximum required master frequency of 30MHz by the phase-locked loop (PLL) inside the microcontroller U1, providing a stable clock source for the precise timing generation of serial data control signals executed by the microcontroller U1.

[0041] In specific implementation, the wireless communication module is a Bluetooth communication slave module, which includes a Bluetooth chip, a power decoupling and RF power supply circuit, and a UART serial communication and current limiting protection circuit. The power decoupling and RF power supply circuit, and the UART serial communication and current limiting protection circuit are all coupled to the Bluetooth chip. The Bluetooth chip integrates a processor core and a 2.4GHz RF transceiver. The Bluetooth communication slave module is coupled to the master control module through a UART serial communication interface to achieve bidirectional data interaction. In this embodiment, the Bluetooth chip U2 is preferably a BL651 chip, which integrates a processor core and a 2.4GHz RF transceiver. The processor core is preferably an ARM Cortex-M4F with a maximum operating frequency of 64MHz; the RF transceiver supports the BLE 5.0 protocol stack (compatible with the Bluetooth 5.0 Low Energy specification). The Bluetooth chip U2 is responsible for establishing a wireless connection with external Bluetooth master devices (such as mobile apps, Bluetooth remote controls, etc.), receiving control commands sent by external devices, and transmitting the command data to the master control module through the UART serial communication interface.

[0042] The data interaction between the Bluetooth communication slave module and the master module is as follows: the UART transmit pin of Bluetooth chip U2 (corresponding to pin 19 of Bluetooth chip U2, TX_BLE) is coupled to the UART receive pin of microcontroller U1 (corresponding to pin 24 of microcontroller U1, U0_RXD), and the UART receive pin of Bluetooth chip U2 (corresponding to pin 17 of Bluetooth chip U2, RX_BLE) is coupled to the UART transmit pin of microcontroller U1 (corresponding to pin 4 of microcontroller U1, U0_TXD), thereby realizing bidirectional serial data communication.

[0043] The workflow of the Bluetooth communication slave module is as follows: After the system is powered on, the Bluetooth chip U2 starts the Bluetooth protocol stack, broadcasts the device name, and waits for connection requests from external Bluetooth master devices. When an external device sends a control command via Bluetooth, the 2.4GHz radio frequency transceiver of the Bluetooth chip U2 receives the wireless data packet, and obtains the original command data after unpacking it through the internal protocol stack. The Bluetooth chip U2 sends the parsed instruction data to the main control module via the UART serial port, so that the main control module can parse it and generate the corresponding LED drive signal; The main control module can also transmit its working status back to the Bluetooth chip U2 via the UART serial port, and the Bluetooth module can then wirelessly send it to external devices to achieve two-way interaction.

[0044] The power decoupling and RF power supply circuit of the present invention includes a power supply terminal and a decoupling capacitor coupled between the power supply pin of the Bluetooth chip and ground. The decoupling capacitor is used to compensate for instantaneous current fluctuations through charging and discharging characteristics when the power supply voltage experiences transient drops or high-frequency glitches, and to discharge high-frequency noise to ground, so as to provide a low-ripple clean power supply to the internal circuit of the Bluetooth chip. In this embodiment, the power decoupling and RF power supply circuit is an essential peripheral power supply circuit for the Bluetooth chip U2, including a power supply terminal (preferably a 3.3V power rail in this embodiment) and a decoupling capacitor C14 coupled between the power supply pin of the Bluetooth chip U2 and ground. The decoupling capacitor C14 is connected in parallel between the power supply pin of the Bluetooth chip U2 (pin 26 VDD_nRF in this embodiment) and ground (pin 27 GND). Its capacitance value is preferably 0.1μF, and the decoupling capacitor C14 is placed close to the power supply pin of the Bluetooth chip U2 in the PCB layout to minimize the impact of lead inductance on the decoupling effect. The decoupling capacitor C14 provided in this invention is also used to compensate for instantaneous current fluctuations through charging and discharging characteristics when the power supply voltage experiences transient drops or high-frequency glitches occur, and to discharge high-frequency noise to ground, so as to provide a low-ripple clean power supply to the internal circuit of the Bluetooth chip U2.

[0045] The working principle and technical effects of decoupling capacitor C14 are as follows: When the RF power amplifier (PA) inside the Bluetooth chip U2 generates a sudden large current demand during data transmission, the system power rail may experience a momentary voltage drop due to insufficient response speed. Simultaneously, the high-speed switching action of the digital circuitry may couple high-frequency glitches onto the power rail. These power supply instabilities directly affect the transmit power accuracy and receive sensitivity of the RF circuitry, potentially leading to Bluetooth connection interruptions or data errors. The decoupling capacitor C14, utilizing its rapid charge-discharge characteristics, actively releases its stored charge to the Bluetooth chip's power supply pins to compensate for current shortfalls during these momentary current fluctuations. Simultaneously, it provides a low-impedance discharge path to ground for high-frequency noise components on the power rail, effectively filtering out power ripple and ensuring a clean, low-ripple, low-noise power supply for the internal processor and RF circuitry of the Bluetooth chip U2, thus guaranteeing the stability and reliability of wireless communication.

[0046] The UART serial communication and current limiting protection circuit includes a first current limiting resistor and a second current limiting resistor. The UART transmitting terminal of the microcontroller U1 is coupled to the UART receiving pin of the Bluetooth chip via the first current limiting resistor to limit overcurrent in the transmitting line. The UART transmitting pin of the Bluetooth chip is coupled to the UART receiving terminal of the microcontroller U1 via the second current limiting resistor to limit overcurrent in the receiving line. In this embodiment, the first current limiting resistor R12 is coupled between the UART transmitting terminal of the microcontroller U1 (corresponding to pin 4 of the microcontroller U1, U0_TXD) and the UART receiving pin of the Bluetooth chip U2 (corresponding to pin 17 of the Bluetooth chip U2, RX_BLE). Specifically, the UART transmitting terminal of the microcontroller U1 is coupled to the UART receiving pin of the Bluetooth chip U2 via the first current limiting resistor R12. The first current limiting resistor R12 is used to limit the line current when the microcontroller U1 sends data to the Bluetooth chip U2, avoiding damage to the receiving port of the Bluetooth chip U2 due to overcurrent caused by level mismatch or signal conflict. The second current-limiting resistor R13 is connected in series between the UART transmit pin (corresponding to pin 19, TX_BLE) of Bluetooth chip U2 and the UART receive pin (pin 24). Specifically, the UART transmit pin (corresponding to pin 19, TX_BLE) of Bluetooth chip U2 is coupled to the UART receive pin (pin 24) of microcontroller U1 via the second current-limiting resistor R13. The function of the current-limiting resistor R13 includes: First, it limits the pin current flowing into the microcontroller U1. When the wireless communication module outputs a high level (3.3V) and the microcontroller U1 pin is clamped by an internal ESD protection diode, it prevents excessive current from damaging the pin. Secondly, the current-limiting resistor R13 plays a role in surge current limiting and energy dissipation in the signal transmission path. When external cables (such as antenna feed lines or debugging interface leads) introduce surge current or peak voltage, this resistor effectively reduces the surge amplitude by dissipating peak energy. Combined with the ESD protection structure integrated inside the Bluetooth chip U2, it can significantly reduce the risk of high voltage peaks impacting the CMOS input / output ports.

[0047] Correspondingly, the UART transmitter (serial transmission) of microcontroller U1 is connected to the UART receiver pin (pin 17) of Bluetooth chip U2 via current-limiting resistor R12. This second current-limiting resistor is used to limit the line current when Bluetooth chip U2 sends data to the main control module, preventing overcurrent damage to the main control module's receiver port due to level mismatch or signal conflict. The value of current-limiting resistor R12 is the same as that of current-limiting resistor R13, preferably 100Ω. This resistance value can effectively limit the transient overshoot current on the UART communication line without affecting the logic level discrimination of the UART signal due to voltage division effect, realizing symmetrical protection of the bidirectional communication link, thereby achieving electrical protection of the UART interface while ensuring communication reliability.

[0048] In its implementation, Bluetooth chip U2 also integrates a hardware flow control request send pin (corresponding to pin 20 of Bluetooth chip U2, RTS_BLE) and a clear send pin (corresponding to pin 18 of Bluetooth chip U2, CTS_BLE). When the capacity of the UART receive buffer inside Bluetooth chip U2 reaches a preset threshold (e.g., the remaining space in the buffer is less than 16 bytes), Bluetooth chip U2 sends a high-level pause send request signal to microcontroller U1 through the RTS_BLE pin. After detecting this signal, microcontroller U1 pauses sending new UART data to Bluetooth chip U2. After Bluetooth chip U2's receive buffer completes data processing and releases space, the RTS_BLE pin returns to a low level, and microcontroller U1 continues to send data. Through the above hardware flow control mechanism, the serial port data overflow and packet loss problem caused by microcontroller U1 continuously sending data too quickly and Bluetooth chip U2 not processing it in time is effectively avoided, ensuring the integrity and reliability of wireless control commands in the serial transmission link.

[0049] The SWD online debugging and programming circuit of this invention includes a debugging interface connector. The first pin of the debugging interface connector is coupled to the reset pin of the Bluetooth chip, the second pin is coupled to the SWD clock pin of the Bluetooth chip, and the third pin is coupled to the SWD data pin of the Bluetooth chip. This SWD online debugging and programming circuit is used to realize firmware download, online debugging, and operation monitoring of the Bluetooth chip. The SWD online debugging and programming circuit includes a debugging interface connector (preferably a 4-pin header connector CON5 in this embodiment, as the standard SWD debugging interface lead-out terminal). The debugging interface connector leads out the Bluetooth chip's reset pin (corresponding to pin 7 of the Bluetooth chip, nRESET), SWD clock pin (corresponding to pin 6 of the Bluetooth chip, SWCLK), and SWD data pin (corresponding to pin 5 of the Bluetooth chip, SWDIO) for external SWD emulator access. Pin 1 of the debug interface connector is connected to pin 7 (nRESET_BLE) of the Bluetooth chip, pin 2 is connected to pin 6 (SWDCLK_BLE) of the Bluetooth chip, pin 3 of the debug interface connector is connected to pin 5 (SWDIO_BLE) of the Bluetooth chip, and pin 4 is connected to system ground (GND) as a reference ground.

[0050] The circuit control structure of this invention uses the main control module as the core hub. Upward, it interacts with the wireless communication module via a UART serial communication interface, receiving 2.4GHz wireless control commands from a smartphone app or dedicated remote control (this embodiment uses Bluetooth protocol as an example). Downward, it drives an N-level serially cascaded WS2811D-F5 constant current driver chip via a single signal line in a daisy-chain topology, achieving independent addressing of multiple nodes and dynamic lighting effect output. Simultaneously, the main control module collects the system power supply voltage in real time through its built-in ADC channel, establishing a complete power supply anomaly self-check and hardware protection mechanism. A DC power supply is used, providing unified power to the wireless communication module, microcontroller U1, and the N-level LED driver unit. The microcontroller U1 integrates a 3.3V LDO regulator to power its core and I / O, while the WS2811D-F5 driver chip and LED beads of the N-level LED driver unit are powered by the same DC power supply (preferably 5.0V in this embodiment) to ensure LED brightness and PWM drive dynamic range. When the microcontroller U1 is working, the color adjustment command sent by the mobile APP is received by the wireless communication module and converted into serial port data, which is then transmitted to the microcontroller U1 through the UART interface. After receiving each frame of data, the microcontroller U1 first samples the system power supply through the ADC_BATT pin to determine the power supply status. Under normal power conditions, the software algorithm converts the RGB requirements into a single-wire pulse signal that conforms to the timing standard of the WS2811D-F5 driver chip, and sends it down level by level through the cascaded link. In case of power failure, the system immediately enters the hardware protection mode.

[0051] The present invention has been described in detail above. The above description is only a preferred embodiment of the present invention and should not be construed as limiting the scope of this application. All equivalent changes and modifications made within the scope of this application should still fall within the scope of the present invention.

Claims

1. A circuit control structure for a non-invasive blood analyzer, characterized in that: The circuit control structure includes a main control module, a cascaded LED driver module, and a wireless communication module. The wireless communication module is coupled to the main control module and is used to receive external wireless control commands and transmit the wireless control commands to the main control module so that the main control module can generate serial data control signals according to the wireless control commands. The main control module and the cascaded LED driver module are connected via a single-wire serial bus. The single-wire serial data control signal output by the main control module is transmitted unidirectionally step by step along the single-wire serial bus.

2. The circuit control structure for a non-invasive blood analyzer according to claim 1, characterized in that: The cascaded LED driver module includes N levels of LED driver units cascaded and coupled in sequence, where N is an integer greater than 1. Each level of LED driver unit has a data input pin and a data output pin. The signal input terminal of the first level LED driver unit is coupled to the control signal output terminal of the main control module. The signal input terminal of the subsequent level LED driver unit is coupled to the signal output terminal of the previous level LED driver unit, forming a daisy-chain cascaded topology. Each level of LED driver unit is used to receive serial data control signals from the main control module, extract the corresponding driving data of its own level step by step, and forward the remaining serial data signals downstream to drive the corresponding LED light-emitting element to perform display work.

3. The circuit control structure for a non-invasive blood analyzer according to claim 1, characterized in that: The serial data control signal is a single-wire serial data control signal. The main control module includes a microcontroller and peripheral circuits coupled to the microcontroller. The microcontroller integrates an ADC sampling pin, a general-purpose input / output pin, and a serial communication interface. The control signal output terminal of the main control module is any one of the general-purpose input / output pins. The main control module is also used to perform external control command reception, power supply voltage monitoring, and system abnormal protection operations.

4. The circuit control structure for a non-invasive blood analyzer according to claim 2, characterized in that: The serial data control signals received by each LED driver unit contain 24-bit RGB color data; each LED driver unit is used to parse and latch the 24-bit RGB color data to drive the corresponding LED light-emitting elements to perform color mixing display.

5. The circuit control structure for a non-invasive blood analyzer according to claim 4, characterized in that: When each LED driver unit drives the corresponding LED light-emitting element, the pulse width modulation (PWM) method is used to adjust the light-emitting duty cycle of the three primary color LEDs in order to achieve color mixing.

6. The circuit control structure for a non-invasive blood analyzer according to claim 4, characterized in that: The wireless communication module is a Bluetooth communication slave module, which includes a Bluetooth chip, a power decoupling and RF power supply circuit, and a UART serial communication and current limiting protection circuit. The power decoupling and RF power supply circuit and the UART serial communication and current limiting protection circuit are all coupled to the Bluetooth chip. The Bluetooth chip integrates a processor core and a 2.4GHz RF transceiver. The Bluetooth communication slave module is coupled to the master control module through a UART serial communication interface to achieve bidirectional data interaction.

7. The circuit control structure for a non-invasive blood analyzer according to claim 6, characterized in that: The power decoupling and RF power supply circuit includes a power supply terminal and a decoupling capacitor coupled between the power supply pin of the Bluetooth chip and ground. The decoupling capacitor is used to compensate for instantaneous current fluctuations through charging and discharging characteristics when the power supply voltage experiences transient drops or high-frequency glitches occur, and to discharge high-frequency noise to ground, so as to provide a low-ripple clean power supply to the internal circuit of the Bluetooth chip.

8. The circuit control structure for a non-invasive blood analyzer according to claim 6, characterized in that: The UART serial communication and current limiting protection circuit includes a first current limiting resistor and a second current limiting resistor. The UART transmitting end of the microcontroller is coupled to the UART receiving pin of the Bluetooth chip via the first current limiting resistor to limit the overcurrent in the transmitting line. The UART transmitting pin of the Bluetooth chip is coupled to the UART receiving end of the microcontroller via the second current limiting resistor to limit the overcurrent in the receiving line.

9. The circuit control structure for a non-invasive blood analyzer according to claim 3, characterized in that: The peripheral circuit includes a power supply voltage sampling circuit, a communication and debugging interface circuit, and a clock source circuit, all of which are coupled to the microcontroller.

10. The circuit control structure for a non-invasive blood analyzer according to claim 9, characterized in that: The power supply voltage sampling circuit includes a first voltage divider resistor and a second voltage divider resistor; the externally input battery voltage is connected to the ADC sampling pin of the main control module after being divided in series by the first voltage divider resistor and the second voltage divider resistor; the microcontroller converts the divided analog signal into a digital signal through its internally integrated ADC to realize power supply voltage monitoring.