A communication control method for an intelligent sleep monitoring system
Through the FMCW radar and wireless communication synchronization control mechanism, the adaptive selection of sensors and real-time data interaction in the sleep monitoring system are realized, the problems of data redundancy and blind spots are solved, and the accuracy and reliability of monitoring are improved.
Patent Information
- Application Number
- CN202411132925.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2044-08-16
AI Technical Summary
The existing sleep monitoring system has difficulties in data redundancy, blind spots and real-time acquisition and fusion of multimodal data in data acquisition and evaluation, which affects the accuracy and reliability of monitoring.
The target is scanned through the FMCW radar, and the effective monitoring area in the pressure sensor matrix is dynamically determined, the adaptive selection and activation of the sensor is realized, and real-time data interaction and synchronous acquisition between different sensors is realized through wireless communication and synchronization control mechanisms.
It reduces data redundancy and blind spots, improves the spatio-temporal consistency and fusion accuracy of monitoring data, and achieves more accurate and reliable sleep monitoring.
Smart Images

Figure CN118942667B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of communication control, and in particular relates to a communication control method for an intelligent sleep monitoring system. Background Art
[0002] With the increasing pressure of life in modern society, sleep problems have become an important factor affecting people's physical and mental health. The assessment and management of sleep quality are of great significance for early detection and intervention of sleep disorders and improving people's quality of life. Traditional sleep monitoring methods mainly include subjective evaluation methods such as sleep diaries and questionnaires, as well as clinical examination methods such as polysomnography (PSG). However, these methods have limitations such as complex operation, high cost, and interference with sleep, making it difficult to achieve long-term, continuous, and home sleep monitoring and evaluation.
[0003] In recent years, with the rapid development of technologies such as the Internet of Things, big data, and artificial intelligence, sleep monitoring systems based on multiple sensors and intelligent algorithms have received widespread attention. Such systems integrate sensors in daily necessities such as mattresses to achieve non-invasive and continuous collection of physiological and behavioral signals during sleep, and use intelligent algorithms to automatically analyze and evaluate indicators such as sleep stages, body movements, and respiratory heart rate.
[0004] However, traditional sleep monitoring systems usually use a fixed layout of sensor arrays, which leads to data redundancy for subjects of different body shapes and sleeping positions. The lack of effective communication and synchronization mechanisms between different types of sensors makes it difficult to achieve real-time collection and fusion of multimodal data, affecting the accuracy and reliability of monitoring.
[0005] Therefore, an intelligent communication control method is needed that can adaptively select and activate sensors according to the position and posture of the monitored object to achieve dynamic optimization and tracking of the monitoring area; at the same time, it is also necessary to establish a synchronous acquisition and real-time interaction mechanism between different types of sensors to improve the efficiency and accuracy of data fusion. Summary of the invention
[0006] In view of the defects in the above-mentioned prior art, the present invention provides a communication control method for an intelligent sleep monitoring system, the method comprising:
[0007] Step 1: The FMCW radar scans the target to obtain the target location information;
[0008] Step 2: The FMCW radar determines the projection area of the target in the pressure sensor matrix according to the obtained target position information, and determines the effective sensor for this monitoring based on the projection area;
[0009] Step 3: The FMCW radar sends the information of the selected effective pressure sensor to the acceleration sensor paired with it through wireless communication;
[0010] Step 4: The acceleration sensor that receives the pressure sensor selection information sends a synchronization signal to the pressure sensor matrix and the FMCW radar according to a preset communication control mechanism;
[0011] Step 5: The selected effective pressure sensor, FMCW radar and acceleration sensor simultaneously collect data at the specified time point;
[0012] Step 6: After completing a round of data collection, the FMCW radar continues to track and detect the position of the target; when it is detected that the target moves and exceeds the effective monitoring range of the current pressure sensor, it returns to step 2, reselects the effective pressure sensor, and initiates a new round of synchronous data collection.
[0013] Among them, the acceleration sensor uploads the FMCW radar and pressure data to the gateway through the wireless communication module;
[0014] The gateway uploads the data to the cloud server or local terminal;
[0015] The cloud server stores and analyzes massive amounts of sleep data and generates personalized sleep reports.
[0016] Among them, the acceleration sensor that receives the pressure sensor selection information in step 4 sends a synchronization signal to the wired pressure sensor matrix based on the adaptive time division multiplexing trigger communication control mechanism, and sends the synchronization signal to the FMCW radar wirelessly.
[0017] Among them, the acceleration sensor generates a synchronization frame and a synchronization clock signal; the acceleration sensor is internally integrated with a clock source for generating a synchronization clock signal; the period of the synchronization clock signal is Ts; and the synchronization frame is sent at the rising edge of each synchronization clock period.
[0018] Among them, the synchronous clock signal passes through the frequency division circuit to generate two clock outputs;
[0019] One of the synchronous clock signals is used as the working clock of the acceleration sensor itself to control the generation and sending of the synchronous frame; the other synchronous clock signal is used as the column selection signal of the pressure sensor matrix to control the selection timing of the pressure sensor.
[0020] Among them, the synchronous clock signal of the acceleration sensor passes through the frequency division circuit to generate n clock signals with different phases, where n is the number of columns of the pressure sensor matrix, and the phase-divided clock signal is sent to the column line and row line of the pressure sensor matrix through the column selection signal and the row selection signal respectively.
[0021] Among them, the synchronization frame is sent through two physical links:
[0022] Sending the first synchronization frame to the pressure sensor matrix through the wired communication interface;
[0023] sending the second synchronization frame as a synchronization signal to the FMCW radar via the wireless communication interface;
[0024] The sending times of the two synchronization frames are synchronized.
[0025] Among them, after each pressure sensor in the pressure sensor matrix receives the synchronization frame, the MCU extracts the pressure sensor selection mapping table from the data segment and loads it into the memory.
[0026] Among them, the column selection signal, i.e. the frequency-divided synchronous clock, periodically scans each column of the pressure sensor matrix; when the level jump edge of the column selection signal arrives, the column selection control register outputs the selection information corresponding to the current column and transfers to the next column;
[0027] The row selection signal generates an enable signal for each row according to the pressure sensor selection mapping table obtained in the first synchronization frame, and sends it to the row line of the pressure sensor matrix;
[0028] The input end of each pressure sensor is connected to an AND gate, and three inputs of the AND gate are respectively connected to a column selection signal of the same column, a row selection signal of the same row, and a corresponding bit in a pressure sensor selection mapping table read from a memory of the corresponding pressure sensor;
[0029] When the column selection signal and the row selection signal are both high level and the corresponding bit in the pressure sensor selection mapping table is 1, the pressure sensor is selected and data collection starts; the unselected pressure sensors remain idle.
[0030] The acceleration sensor sends the first synchronization frame to the pressure sensor matrix through the wired communication interface;
[0031] Each first synchronization frame consists of a synchronization header, a data segment and a check bit; the synchronization header contains a frame start identifier and a reset flag; the data segment contains a timestamp, the number of valid pressure sensors, and a pressure sensor selection mapping table; the check bit is used for data verification; a reset flag is added to the synchronization frame; when the synchronization frame sent by the acceleration sensor contains a reset flag, the control circuit of the pressure sensor sets the reset signal high to trigger the reset of the trigger; the pressure sensor selection mapping table uses a bitmap encoding method, each bit corresponds to a pressure sensor, a bit of 1 indicates that the sensor is selected, and a bit of 0 indicates that it is not selected.
[0032] The present invention uses FMCW radar to scan and detect the position of the target, dynamically determines the effective monitoring area in the pressure sensor matrix, realizes adaptive selection and activation of sensors, and reduces data redundancy and blind areas. The present invention realizes real-time data interaction and synchronous collection between different sensors through wireless communication and synchronous control mechanism, and improves the spatiotemporal consistency and fusion accuracy of monitoring data. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present disclosure will become readily understood. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0034] Figure 1 is a flow chart showing a communication control method of an intelligent sleep monitoring system according to an embodiment of the present invention;
[0035] Figure 2 is a schematic diagram showing an intelligent sleep monitoring system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.
[0038] It should be understood that although the terms first, second, third, etc. may be used to describe ... in the embodiments of the present invention, these ... should not be limited to these terms. These terms are only used to distinguish .... For example, without departing from the scope of the embodiments of the present invention, the first ... may also be referred to as the second ..., and similarly, the second ... may also be referred to as the first ....
[0039] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0040] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0041] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.
[0042] The present invention provides a communication control method based on an intelligent sleep monitoring system, wherein the intelligent sleep monitoring system comprises an FMCW radar, an acceleration sensor and a pressure sensor matrix, wherein the FMCW radar is connected to the acceleration sensor in a wireless manner, and the pressure sensor matrix is connected to another acceleration sensor in a wired manner.
[0043] like Figure 2 As shown, the intelligent sleep monitoring system of the present invention includes an FMCW radar 1, an acceleration sensor 2 and a pressure sensor matrix 3. Among them, the FMCW radar 1 adopts the principle of frequency modulation continuous wave, transmits continuous frequency scanning signals through the antenna, receives the target reflected echo, and calculates the distance, speed and angle of the target. The acceleration sensor 2 has a built-in three-axis MEMS accelerometer for measuring the acceleration change at the location of the sensor. The pressure sensor matrix 3 is composed of m×n piezoresistive pressure sensors 4, which are distributed on the surface of the mattress and are used to collect the contact pressure distribution between the sleeper's body and the mattress.
[0044] Common wireless communication protocols such as WiFi and Zigbee are used between FMCW radar 1 and acceleration sensor 2 to achieve two-way transmission of data and instructions. The wireless communication modules of the two are integrated on their respective circuit boards, including components such as RF transceiver, baseband processor and antenna. By configuring the protocol stack and application program of the wireless communication module, reliable communication and synchronous control between FMCW radar 1 and acceleration sensor 2 can be achieved.
[0045] Common wired communication protocols such as SPI and I2C are used between the acceleration sensor 2 and the pressure sensor matrix 3 to realize power supply, configuration and data reading of the pressure sensor 4. The acceleration sensor 2 is integrated with a wired communication interface, which is connected to the pressure sensor matrix 3 through a flexible cable 5. The flexible cable 5 can be customized according to the size and shape of the mattress, and includes a power line, a ground line, and a signal line. The pressure sensor matrix 3 is also integrated with a wired communication interface, which is reliably connected to the corresponding interface on the flexible cable 5.
[0046] The software of FMCW radar 1 mainly includes signal acquisition, preprocessing, target detection and parameter estimation modules. First, the triangular wave modulation signal is generated by controlling the frequency synthesizer to drive the voltage-controlled oscillator to output the frequency-modulated continuous wave, which is then transmitted through the power amplifier and the transmitting antenna. After the receiving antenna receives the target reflected echo, it is mixed with the local oscillator signal to obtain the intermediate frequency signal. The intermediate frequency signal is amplified, filtered and A / D converted to obtain a digital baseband signal.
[0047] The baseband signal is preprocessed, including digital down-conversion, low-pass filtering and windowing, to improve the signal-to-noise ratio and range resolution. Then the preprocessed signal is subjected to fast Fourier transform (FFT) to obtain the range Doppler map. Constant false alarm rate detection (CFAR) is performed on the range Doppler map to extract the target echo signal. According to the distance, Doppler frequency shift and angle of the target echo signal, the target's position, velocity and attitude parameters are estimated.
[0048] The acceleration sensor 2 mainly includes the following functional modules:
[0049] Sensor data acquisition: Control the three-axis MEMS accelerometer to collect data, and filter and calibrate the collected raw data.
[0050] According to the output of the accelerometer, the inclination and azimuth of the sensor are calculated to obtain the attitude information of the sensor.
[0051] By analyzing the characteristics of the acceleration signal, such as mean, variance, spectrum, etc., it is possible to determine whether the sensor is in motion.
[0052] Data interaction and synchronous control are performed with the FMCW radar 1 through the wireless communication module.
[0053] The data acquisition of the pressure sensor matrix 3 is controlled through the wired communication interface, and the acquisition results are read.
[0054] The data acquisition process of the pressure sensor matrix 3 includes:
[0055] According to the control instruction of the acceleration sensor 2, the pressure sensor array is scanned row by row or column by column in a preset order.
[0056] The weak analog voltage signal output by the pressure sensor 4 is amplified, filtered and processed.
[0057] The conditioned analog signal is converted into a digital signal and sent to the acceleration sensor 2 through the wired communication interface 9.
[0058] In the non-scanning state, the pressure sensor matrix 3 enters the sleep mode to reduce power consumption; when receiving the wake-up command from the acceleration sensor 2, it enters the working mode.
[0059] The acceleration sensor 2 fuses the data of the FMCW radar 1 and the pressure sensor matrix 3 to obtain the comprehensive physiological information of the sleeper. The data collected by different sensors need to be time-stamped to ensure the time consistency of the data.
[0060] Based on the features extracted by the sensor group, the sleeper's sleep stage, body position, respiratory events and other states are estimated.
[0061] The fused sleep status information can be uploaded to the cloud server or local terminal through the wireless communication module for storage, display and analysis. Users can view their sleep reports through mobile APP, web pages, etc., understand the changing trends of sleep quality, and get personalized suggestions for improving sleep.
[0062] The intelligent sleep monitoring system of the present invention comprises an FMCW radar 1 , an acceleration sensor 2 and a pressure sensor matrix 3 .
[0063] The FMCW radar 1 is installed above the headboard, with the radar antenna facing the mattress surface. A wireless communication module is integrated on the radar circuit board for data exchange with the acceleration sensor 2.
[0064] The acceleration sensor 2 is placed at the center under the mattress and fixed to the mattress by Velcro or buckle. The sensor circuit board integrates a three-axis MEMS accelerometer, a wireless communication module and a wired communication interface. The wireless communication module communicates with the FMCW radar 1, and the wired communication interface is connected to the pressure sensor matrix 3 through a flexible cable 5.
[0065] The pressure sensor matrix 3 is embedded in the mattress and distributed in an m×n array. Each pressure sensor 4 is evenly spaced, and the size and shape of the sensor array are adapted to the mattress. The pressure sensor 4 is integrated with the flexible substrate using a flexible printed circuit board process. A flexible thin-film lithium battery array is provided around the sensor array to power the sensor. The battery array is connected to the sensor through a power line on a flexible cable 5.
[0066] The flexible cable 5 is led out from one side of the pressure sensor matrix 3, runs along the edge of the mattress, and finally connects to the wired communication interface of the acceleration sensor 2. The total length of the flexible cable 5 can be customized according to the size of the mattress, and a certain margin is reserved to adapt to the deformation of the mattress.
[0067] The acceleration sensor 2 uploads the radar and pressure data to the gateway 6 through the wireless communication module. The gateway 6 can be a mobile phone, tablet computer, router or other device with wireless communication and data processing capabilities. The gateway 6 further uploads the data to the cloud server 7 or the local terminal 8 through WIFI, Bluetooth or other means.
[0068] The cloud server 7 is responsible for storing and analyzing massive amounts of sleep data and generating personalized sleep reports. Users can remotely view their sleep status and trends through a mobile phone APP or a web page.
[0069] The local terminal 8 may be a smart device with a display screen and an interactive interface, such as a smart speaker, a smart watch, etc. The user can query the current sleep state in real time or replay historical sleep data by voice or touch.
[0070] like Figure 1 As shown, the present invention discloses a communication control method for an intelligent sleep monitoring system, the method comprising the following steps:
[0071] Step 1: The FMCW radar transmits continuous frequency modulated waves through its antenna to scan the target, and calculates the target's distance, angle and other position information by receiving and processing the echo signal.
[0072] Step 2: The FMCW radar determines the projection area of the target in the pressure sensor matrix based on the obtained target position information, and determines the effective sensor for this monitoring based on the projection area.
[0073] Step 3: The FMCW radar sends the number or coordinate information of the selected effective pressure sensor to the acceleration sensor paired with it through wireless communication.
[0074] Step 4: The acceleration sensor that receives the pressure sensor selection information sends a synchronization signal to the wired pressure sensor matrix according to a preset communication control mechanism, and sends the synchronization signal to the FMCW radar wirelessly.
[0075] Step 5: After the pressure sensor matrix receives the synchronization signal, the selected effective pressure sensor collects pressure data at the specified time point, and the FMCW radar and acceleration sensor also collect their respective data at the same time point.
[0076] Step 6: After completing a round of data collection, the FMCW radar continues to track and detect the target. When the target is detected to move beyond the effective monitoring range of the current pressure sensor, it returns to step 2, reselects the effective pressure sensor, and initiates a new round of synchronous data collection.
[0077] The communication control method of the present invention utilizes the spatial positioning capability of the FMCW radar to realize the adaptive selection of the pressure sensor and reduce the blind area of data collection; at the same time, through the communication control of the acceleration sensor, the distributed synchronous collection of multiple sensors is realized, and the real-time performance and reliability of the system are improved. The present invention can be widely used in the fields of sleep monitoring, vital sign detection, etc., and realizes intelligent evaluation of human sleep status and health level through the collection and analysis of information such as pressure distribution, body movement and micro-movement.
[0078] Optionally, the FMCW radar determines a projection area of the target in the pressure sensor matrix according to the obtained target position information, and determines an effective sensor for this monitoring based on the projection area, including the FMCW radar determining a projection area of the target in the pressure sensor matrix according to the obtained target position information, and selecting a pressure sensor in the area as an effective sensor for this monitoring.
[0079] Optionally, step 4: the acceleration sensor that receives the pressure sensor selection information sends a synchronization signal to the wired pressure sensor matrix based on an adaptive time division multiplexing trigger communication control mechanism, and sends the synchronization signal to the FMCW radar wirelessly.
[0080] Optionally, the specific implementation of the adaptive time division multiplexing triggered communication control mechanism is as follows:
[0081] The accelerometer generates a synchronization frame and a synchronization clock signal according to the preset communication frame structure and sampling frequency. The period of the synchronization clock signal is Ts, which is equal to the reciprocal of the sampling frequency fs, that is, Ts=1 / fs.
[0082] The accelerometer has a high-precision clock source integrated inside to generate a synchronous clock signal. The period of the synchronous clock signal is Ts, and the reciprocal of Ts is equal to the sampling frequency fs, that is, fs=1 / Ts. The default values of Ts and fs are set during system initialization.
[0083] The synchronous clock signal passes through a frequency division circuit to generate two clock outputs: one serves as the working clock of the acceleration sensor itself to control the generation and transmission of synchronous frames; the other serves as the column strobe signal of the pressure sensor matrix to control the strobe timing of the pressure sensors.
[0084] The synchronous clock signal of the acceleration sensor passes through a frequency division circuit to generate n clock signals with different phases, where n is the number of columns of the pressure sensor matrix. The phase-split clock signals are sent to the column lines and row lines of the pressure sensor matrix through the column strobe signal and the row strobe signal respectively. The pulse widths of the column strobe signal and the row strobe signal are both Ts / n.
[0085] The data segment length of the synchronous frame is variable and depends on the number k of effective pressure sensors, and the value of k is equal to m×n. The pressure sensor selection mapping table adopts a bitmap coding method, with each bit corresponding to a pressure sensor. A bit of 1 indicates that the sensor is selected, and a bit of 0 indicates that it is not selected. The data segment length is dynamically adjusted according to the total number of pressure sensors and the mapping table coding method.
[0086] The acceleration sensor sends the synchronous frame to the pressure sensor matrix through a wired communication interface. The transmission frequency of the synchronous frame is fs, that is, fs synchronous frames are sent per second. The value of fs is dynamically adjusted according to the size of m. Multiple pressure sensor quantity thresholds are set, corresponding to different determination strategies for the value of fs.
[0087] For example, the pressure sensor quantity thresholds are set as:
[0088] Threshold 1: m1 = 12
[0089] Threshold 2: m2 = 25
[0090] Threshold 3: m3 = 100
[0091] The corresponding formula for the value of fs is as follows:
[0092] When m ≤ m1, the value of fs is:
[0093] where f0 is the reference frequency, representing the value of fs when m = m1; α1 is the adjustment coefficient, controlling the rate of change of fs with m.
[0094] When m1 < m ≤ m2, the value of fs is:
[0095] where f1 is the value of fs when m = m1; β1 is the adjustment coefficient, controlling the rate of change of fs with m. fs decreases as m increases.
[0096] When \(m_2 \lt m \leq m_3\), the value of \(f_s\) is:
[0097] where \(f_2\) is the value of \(f_s\) when \(m = m_2\); \(\beta_2\) and \(\gamma\) are adjustment coefficients that control the rate of change of \(f_s\) with respect to \(m\). \(f_s\) decreases as \(m\) increases.
[0098] When \(m \gt m_3\), the value of \(f_s\) is:
[0099] \(f_s = f_{min}\), where \(f_{min}\) is the minimum frequency, indicating that when \(m\) exceeds the threshold \(m_3\), \(f_s\) takes a fixed minimum value and no longer changes with \(m\).
[0100] Among them, in the said step 4, the MCU of the acceleration sensor generates a synchronization frame according to a preset communication frame structure. The transmission frequency of the synchronization frame is equal to \(f_s\), that is, at the rising edge of each synchronization clock cycle, a synchronization frame is sent.
[0101] The synchronization frame is sent through two physical links:
[0102] Through a wired communication interface (such as SPI), the complete synchronization frame is sent to the pressure sensor matrix.
[0103] Through a wireless communication interface (such as WiFi), a simplified version of the synchronization frame without the pressure sensor selection mapping table is sent as a synchronization signal to the FMCW radar.
[0104] The transmission times of the two synchronization frames are completely synchronized to ensure the consistency of the data acquisition timings of the pressure sensor matrix and the FMCW radar.
[0105] The column strobe signal (i.e., the divided synchronization clock) periodically scans each column of the pressure sensor matrix. When the level transition edge of the column strobe signal arrives, the column selection control register outputs the selection information corresponding to the current column and transfers to the next column.
[0106] At the same time, the row strobe signal generates an enable signal for each row according to the pressure sensor selection mapping table obtained in the synchronization frame and sends it to the row lines of the pressure sensor matrix.
[0107] The input end of each pressure sensor is connected to an AND gate. The three inputs of the AND gate are respectively connected to the column strobe signal of the same column, the row strobe signal of the same row, and the corresponding bit in the pressure sensor selection mapping table read from the corresponding pressure sensor memory. When the column strobe signal and the row strobe signal are both at a high level and the corresponding bit in the pressure sensor selection mapping table is 1, the pressure sensor is selected and starts data acquisition. The unselected pressure sensors remain in an idle state.
[0108] Each pressure sensor has an AND gate and a trigger integrated inside. When the rising edge of the column selection signal and the row selection signal are received at the same time and the corresponding bit in the pressure sensor selection mapping table is 1, the AND gate outputs a high-level pulse, the trigger is triggered, and the pressure sensor starts to collect pressure data. The collected pressure data is packaged according to the preset data frame structure and sent to the acceleration sensor through the wired communication interface.
[0109] In order to determine the simultaneous arrival of the column selection signal and the row selection signal, the two signals need to be aligned in time.
[0110] The period of the synchronous clock is equal to the period Ts of the column strobe signal, and its rising edge is aligned with the rising edge of the column strobe signal. The transmission time of the row strobe signal is determined by the number of rows m of the pressure sensor matrix, and it is necessary to ensure that the rising edge of the row strobe signal arrives no later than the rising edge of the column strobe signal.
[0111] By sampling the column selection signal and the row selection signal with a synchronous clock, the rising edges of the two signals can be aligned to the same clock edge.
[0112] The pressure sensor selection mapping table is stored in the internal memory of the pressure sensor, and each bit corresponds to a pressure sensor. When the pressure sensor receives the synchronization frame, the pressure sensor selection mapping table is read into the internal shift register.
[0113] The number of bits in the shift register is equal to the number of columns n of the pressure sensor matrix. In each synchronous clock cycle, the shift register shifts the bit corresponding to the current column right by one bit according to the value of the column selection signal, and moves the rightmost bit to the leftmost bit, forming a circular shift.
[0114] After n clock cycles, the bit distribution in the shift register completely corresponds to the layout of the pressure sensor matrix, that is, the i-th bit corresponds to the pressure sensor in the i-th row and j-th column, where i is the row number and j is the column number.
[0115] The AND gate has three inputs: the column select signal, the row select signal, and the corresponding bit in the pressure sensor selection mapping table.
[0116] The column selection signal and the row selection signal are sampled by the synchronous clock and connected to the two input terminals of the AND gate respectively.
[0117] The pressure sensor selects the corresponding bit in the mapping table and reads it through the parallel output of the shift register. In each synchronous clock cycle, the bit corresponding to the current column is connected to the third input of the AND gate.
[0118] The output of the AND gate is connected to the control end of the trigger. When the three inputs of the AND gate are high at the same time, a high-level pulse is output, the trigger is triggered, and the pressure sensor starts to collect pressure data.
[0119] The type of trigger can be an SR trigger, a D trigger or a JK trigger. The output of the trigger controls the working state of the pressure sensor. A high level indicates the start of data collection, and a low level indicates the stop of data collection.
[0120] Assume that the column selection signal is CS, the row selection signal is RS, the corresponding bit in the pressure sensor selection mapping table is MB, and the control signal of the trigger is TRG, then the logical expression of the AND gate is:
[0121] TRG = CS&RS&MB.
[0122] The acceleration sensor sends the first synchronization frame to the pressure sensor matrix through the wired communication interface.
[0123] Each first synchronization frame consists of a synchronization header, a data segment, and a check bit. The synchronization header contains a frame start identifier and a reset flag; the data segment contains a timestamp, the number of valid pressure sensors, a pressure sensor selection mapping table, etc.; the check bit is used for data verification. A reset flag can be added to the synchronization frame. When the synchronization frame sent by the acceleration sensor contains a reset flag, the control circuit of the pressure sensor sets the reset signal high, triggering the reset of the trigger.
[0124] The first synchronization frame includes:
[0125] 1. Synchronous Head
[0126] The synchronization header is used to mark the beginning of a new synchronization frame. It consists of two fixed bytes and can select any special character sequence, such as 0xAA 0x55. The receiver determines the boundary of each synchronization frame by continuously detecting the synchronization header in the data stream.
[0127] 2. Reset Flag
[0128] Include the reset flag in the frame type field:
[0129] 0x00: does not contain reset flag
[0130] 0x01: Contains reset flag
[0131] In this way, the control circuit of the pressure sensor only needs to check the lowest bit of the frame type field to determine whether the current frame contains a reset flag.
[0132] 3. Timestamp
[0133] The timestamp is used to record the sending time of the current synchronization frame. It can be a 32-bit unsigned integer, which represents the number of milliseconds from system startup to the current time. The receiving end can calculate the delay and frame loss of the data frame based on the timestamp, and make corresponding compensation and error correction.
[0134] 4. Number of effective pressure sensors
[0135] The number of valid pressure sensors is used to indicate the number of pressure sensor selection mapping tables contained in the current synchronization frame. It can be an 8-bit unsigned integer with a maximum value of 255. The receiving end determines the length and format of subsequent data based on this field.
[0136] 5. Pressure sensor selection mapping table
[0137] The pressure sensor selection mapping table is used to indicate which pressure sensors need to be selected and collect data in the current frame. Each mapping table can be a variable-length bitmap, whose length is determined by the total number of pressure sensors. For example, if there are 256 pressure sensors, each mapping table is 32 bytes (256 / 8=32).
[0138] In the mapping table, each bit corresponds to a pressure sensor, and a bit value of 1 indicates selection, and a bit value of 0 indicates unselection. The receiving end controls the corresponding pressure sensor to collect data according to the bit value in the mapping table.
[0139] 6. Check digit
[0140] The check bit is used to check the data content of the synchronization frame to detect whether there is an error in the transmission process. Commonly used check algorithms include CRC, parity check, Hamming code, etc. The specific algorithm to be selected can be determined based on the system's reliability requirements and computing resources.
[0141] The check bit usually consists of two bytes, and its value is calculated by the sender based on the data content and appended to the end of the synchronization frame. After receiving the complete synchronization frame, the receiver recalculates the check value and compares it with the received check bit. If the two are inconsistent, it means that an error has occurred in the data transmission and retransmission or error correction is required.
[0142] The acceleration sensor sends a second synchronization frame to the FMCW radar through the wireless communication interface while sending the synchronization frame. Compared with the first synchronization frame, the structure of the second synchronization frame omits the reset flag, the number of valid pressure sensors and the pressure sensor selection mapping table. The second synchronization frame includes a synchronization header, a timestamp and a check bit.
[0143] After receiving the synchronization signal, the FMCW radar extracts the timestamp and uses it as the time reference for data acquisition, and adjusts its own scanning cycle according to the synchronization clock period Ts.
[0144] After completing a round of data collection, the FMCW radar continues to track and detect the target. When the target is detected to move beyond the effective monitoring range of the current pressure sensor, the pressure sensor selection information is sent to the accelerometer through the wireless communication interface. After receiving the information, the accelerometer updates the pressure sensor selection mapping table and synchronization clock frequency in the next synchronization frame, reselects the effective pressure sensor, and initiates a new round of synchronous data collection.
[0145] The present invention uses FMCW radar to scan and detect the position of the target, dynamically determines the effective monitoring area in the pressure sensor matrix, realizes adaptive selection and activation of sensors, and reduces data redundancy and blind areas. The present invention realizes real-time data interaction and synchronous collection between different sensors through wireless communication and synchronous control mechanism, and improves the spatiotemporal consistency and fusion accuracy of monitoring data.
[0146] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0147] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0148] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0149] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0150] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0151] The above introduces the preferred embodiments of the present invention, which is intended to make the spirit of the present invention clearer and easier to understand, but is not intended to limit the present invention. All modifications, substitutions, and improvements made within the spirit and principles of the present invention should be included in the scope of protection outlined by the claims attached to the present invention.
Claims
1. A communication control method for an intelligent sleep monitoring system, the method comprising: Step 1: The FMCW radar scans the target and obtains the target location information; Step 2: According to the obtained target position information, determine the projection area of the target in the pressure sensor matrix, and determine the effective sensor for this monitoring based on the projection area; Step 3: The FMCW radar sends the information of the selected effective pressure sensor to the acceleration sensor paired with it through wireless communication; Step 4: The acceleration sensor that receives the pressure sensor selection information sends a synchronization signal to the selected pressure sensor matrix and FMCW radar according to a preset communication control mechanism; Step 5: The selected effective pressure sensor, FMCW radar and acceleration sensor simultaneously collect data at the specified time point; Step 6: After completing a round of data collection, the FMCW radar continues to track and detect the target; when it is detected that the target moves and exceeds the effective monitoring range of the current pressure sensor, it returns to step 2, reselects the effective pressure sensor, and initiates a new round of synchronous data collection; The acceleration sensor uploads FMCW radar and pressure data to the gateway through the wireless communication module; The gateway uploads the data to the cloud server or local terminal; The cloud server stores and analyzes massive amounts of sleep data and generates personalized sleep reports; The acceleration sensor that receives the pressure sensor selection information in step 4 sends a synchronization signal to the wired pressure sensor matrix based on an adaptive time division multiplexing trigger communication control mechanism, and sends the synchronization signal to the FMCW radar wirelessly; The acceleration sensor generates a synchronization frame and a synchronization clock signal; the acceleration sensor is internally integrated with a clock source for generating a synchronization clock signal; the period of the synchronization clock signal is Ts; at the rising edge of each synchronization clock period, a synchronization frame is sent; The synchronous clock signal passes through the frequency division circuit to generate two clock outputs; One of the synchronous clock signals is used as the working clock of the acceleration sensor itself to control the generation and transmission of the synchronous frame; the other synchronous clock signal is used as the column selection signal of the pressure sensor matrix to control the selection timing of the pressure sensor; The synchronous clock signal of the acceleration sensor passes through the frequency division circuit to generate n clock signals with different phases, where n is the number of columns of the pressure sensor matrix. The phase-divided clock signal is sent to the column line and row line of the pressure sensor matrix respectively through the column selection signal and the row selection signal.
2. The communication control method of the intelligent sleep monitoring system according to claim 1, characterized in that: Sync frames are sent over two physical links: Sending the first synchronization frame to the pressure sensor matrix through the wired communication interface; sending the second synchronization frame as a synchronization signal to the FMCW radar via the wireless communication interface; The sending times of the two synchronization frames are synchronized.
3. The communication control method of the intelligent sleep monitoring system according to claim 1, characterized in that: After each pressure sensor in the pressure sensor matrix receives the synchronization frame, the MCU extracts the pressure sensor selection mapping table from the data segment and loads it into the memory.
4. The communication control method of the intelligent sleep monitoring system according to claim 3, characterized in that: The column selection signal, i.e. the frequency-divided synchronous clock, periodically scans each column of the pressure sensor matrix; when the level transition edge of the column selection signal arrives, the column selection control register outputs the selection information corresponding to the current column and transfers to the next column; The row selection signal generates an enable signal for each row according to the pressure sensor selection mapping table obtained in the first synchronization frame, and sends it to the row line of the pressure sensor matrix; The input end of each pressure sensor is connected to an AND gate, and three inputs of the AND gate are respectively connected to a column selection signal of the same column, a row selection signal of the same row, and a corresponding bit in a pressure sensor selection mapping table read from a memory of the corresponding pressure sensor; When the column selection signal and the row selection signal are both high level and the corresponding bit in the pressure sensor selection mapping table is 1, the pressure sensor is selected and data collection starts; the unselected pressure sensors remain idle.
5. The communication control method of the intelligent sleep monitoring system according to claim 1, characterized in that: The acceleration sensor sends the first synchronization frame to the pressure sensor matrix through the wired communication interface; Each first synchronization frame consists of a synchronization header, a data segment and a check bit; the synchronization header contains a frame start identifier and a reset flag; the data segment contains a timestamp, the number of valid pressure sensors, and a pressure sensor selection mapping table; the check bit is used for data verification; a reset flag is added to the synchronization frame; when the synchronization frame sent by the acceleration sensor contains a reset flag, the control circuit of the pressure sensor sets the reset signal high to trigger the reset of the trigger; the pressure sensor selection mapping table uses a bitmap encoding method, each bit corresponds to a pressure sensor, a bit of 1 indicates that the sensor is selected, and a bit of 0 indicates that it is not selected.
Citation Information
Patent Citations
Sleep apnea detection method and system based on millimeter wave radar
CN117958761A
Sleep state intelligent monitoring system and method based on sensor array data
CN118245794A