Hbc data synchronization method, computer device, and storage medium

By using the HBC data synchronization method and the target peak value of the preamble sequence code for data synchronization, the power consumption problem in the communication mode of medical testing instruments is solved, and a significant reduction in power consumption is achieved.

CN116668462BActive Publication Date: 2026-11-24WUHAN UNITED IMAGING HEALTHCARE SURGICAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310666248.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2026-11-24
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

Existing medical testing instrument communication modes suffer from high power consumption, especially ultra-narrowband and wired communication modes.

Method used

The HBC data synchronization method is adopted. By obtaining the preamble sequence code of the data to be synchronized, the target peak value is determined, and its position is used as the starting position to start receiving the preamble sequence code synchronously, thus completing the data synchronization.

Benefits of technology

It reduces the power consumption of the signal receiver, especially in human body communication mechanisms, significantly reducing the power consumption of the data transmission system compared to traditional Bluetooth or network communication mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116668462B_ABST
    Figure CN116668462B_ABST
Patent Text Reader

Abstract

This application relates to an HBC data synchronization method, computer device, and storage medium. The method acquires the data to be synchronized, determines a target peak value based on the data, and then determines the position of the received target peak value as the starting position of the preamble sequence code. Synchronization of the preamble sequence code begins based on the starting position, thus completing data synchronization. This method achieves HBC data synchronization by searching for the preamble sequence code. During the search process, only the target peak value of the data to be synchronized needs to be determined, and HBC data synchronization can be completed at the location of the found target peak value. It consumes relatively few logic resources, thus reducing power consumption. Especially in data synchronization based on human body communication mechanisms, compared to traditional methods using Bluetooth or network mechanisms, the HBC data synchronization method proposed in this application can significantly reduce the power consumption of each signal receiver in the corresponding data transmission system.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the case with the following application date: December 28, 2020; application number: 2020115808098; invention title: HBC data synchronization method, computer device and storage medium. Technical Field

[0002] This application relates to the field of human body communication technology, and in particular to an HBC data synchronization method, computer device and storage medium. Background Technology

[0003] With the mature application of various medical testing instruments in the medical industry, doctors can use these instruments to assist in diagnosing patients' diseases. Examples include medical-grade products for single-lead ECG, blood oxygen, EEG, and diabetes monitoring.

[0004] Current medical testing instruments typically use ultra-narrowband or wired communication modes. For example, medical-grade products for single-lead ECG, pulse oximetry, EEG, and diabetes monitoring use Bluetooth communication; implantable medical devices use MICS (402–405MHz) frequency communication; watches or wristbands use carrier network communication; and dynamic ECG machines use wired communication.

[0005] However, the above communication mode has the problem of high power consumption. Summary of the Invention

[0006] Therefore, it is necessary to provide an HBC data synchronization method, computer device, and storage medium that can effectively reduce power consumption in response to the above-mentioned technical problems.

[0007] Firstly, an HBC data synchronization method, the method comprising:

[0008] Acquire the data to be synchronized; the data frame structure of the data to be synchronized includes a preamble sequence code;

[0009] Based on the data to be synchronized, determine the target peak value;

[0010] The position where the target peak is received is determined as the starting position of the preamble sequence code, and the preamble sequence code is received synchronously according to the starting position to complete data synchronization.

[0011] In one embodiment, determining the target peak value based on the data to be synchronized includes:

[0012] Determine the first peak-to-average ratio (PAPR) of each segment of data in the data to be synchronized;

[0013] The target peak value is determined based on the first peak-to-average ratio of each data segment.

[0014] In one embodiment, determining the peak-to-average power ratio (PAPR) of each segment of data in the data to be synchronized includes:

[0015] Calculate the maximum correlation value of each segment of data in the data to be synchronized;

[0016] Calculate the average value of the correlation values ​​for each segment of data in the data to be synchronized;

[0017] The peak-to-average ratio of each data segment in the data to be synchronized is obtained by calculating the ratio of the maximum correlation value to the average of the correlation values.

[0018] In one embodiment, determining the target peak value based on the peak-to-average power ratio of each data segment includes:

[0019] Compare the peak-to-average ratio (PAR) of each data segment with a preset PAR threshold.

[0020] The peak value corresponding to the peak-to-average ratio (PAR) greater than the preset PAR threshold is determined as the target peak value.

[0021] In one embodiment, if there are multiple peak values ​​corresponding to peak-to-average ratios greater than the preset peak-to-average ratio threshold, then determining the peak values ​​corresponding to peak-to-average ratios greater than the preset peak-to-average ratio threshold as the target peak value includes:

[0022] Compare the peak-to-average ratios (PARs) of multiple peaks that are greater than the preset PAR threshold;

[0023] The peak value corresponding to the largest peak-to-average ratio among the plurality of peak-to-average ratios greater than the preset peak-to-average ratio threshold is determined as the target peak value.

[0024] In one embodiment, if the peak-to-average ratio (PAR) of each data segment is less than the preset PAR threshold, the method further includes:

[0025] The peak-to-average power ratio of each data segment is stored in a register, and new data to be synchronized is retrieved again.

[0026] Based on the new data to be synchronized and the peak-to-average power ratio stored in the register, a new target peak value is determined;

[0027] The step of determining the position of the received target peak as the starting position of the preamble sequence code, and starting to synchronously receive the preamble sequence code according to the starting position to complete data synchronization, includes:

[0028] The position where the new target peak is received is determined as the starting position of the preamble sequence code, and the preamble sequence code is received synchronously according to the starting position to complete the data synchronization.

[0029] In one embodiment, if the data frame structure further includes a start delimiter, then after determining the target peak value based on the data to be synchronized, the method further includes:

[0030] The search position is determined based on the location of the target peak value and the preset search window. New data to be synchronized is received at the search position, and a new target peak value is determined based on the new data to be synchronized.

[0031] The location where the target peak value is received is determined as the starting position of the starting delimiter, and the starting delimiter is synchronously received according to the starting position of the starting delimiter to complete data synchronization.

[0032] In one embodiment, determining the new target peak based on the new data to be synchronized includes:

[0033] Determine the second peak-to-average ratio (PAR) of the new data to be synchronized, and compare the second PAR with a preset PAR threshold.

[0034] If the second peak-to-average ratio is greater than the preset peak-to-average ratio threshold, then the peak value corresponding to the second peak-to-average ratio is determined as the new target peak value.

[0035] Secondly, an HBC data synchronization device, the device comprising:

[0036] The acquisition module is used to acquire the data to be synchronized; the data frame structure of the data to be synchronized includes a preamble sequence code.

[0037] The determination module is used to determine the target peak value based on the data to be synchronized;

[0038] The synchronization receiving module is used to determine the position of the received target peak as the starting position of the preamble sequence code, and to start synchronously receiving the preamble sequence code according to the starting position to complete data synchronization.

[0039] Thirdly, a computer device includes a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the method described in the first aspect.

[0040] Fourthly, a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0041] The aforementioned HBC data synchronization method, apparatus, computer equipment, and storage medium acquire the data to be synchronized, determine the target peak value based on the data, and then determine the position of the received target peak value as the starting position of the preamble sequence code. Synchronization of the preamble sequence code is then initiated based on the starting position, thus completing data synchronization. This method achieves HBC data synchronization by searching for the preamble sequence code. During the search process, only the target peak value of the data to be synchronized needs to be determined, and HBC data synchronization can be completed at the location of the found target peak value. This consumes relatively few logic resources, thus reducing power consumption. Especially when synchronizing data using a human body communication (HBC) mechanism, compared to traditional methods using Bluetooth or network mechanisms, the HBC data synchronization method proposed in this application can significantly reduce the power consumption of each signal receiver in the corresponding data transmission system. Attached Figure Description

[0042] Figure 1 This is a schematic diagram of the structure of an application system for the HBC data synchronization method in one embodiment;

[0043] Figure 2 This is a flowchart illustrating an HBC data synchronization method in one embodiment;

[0044] Figure 2A This is a schematic diagram of the data frame structure in one embodiment;

[0045] Figure 3 for Figure 2 A flowchart illustrating one implementation of S102 in the embodiment;

[0046] Figure 3A This is a schematic diagram of a data mapping method in one embodiment;

[0047] Figure 4 for Figure 3 A flowchart illustrating one implementation of S201 in the embodiment;

[0048] Figure 5 for Figure 3 A flowchart illustrating one implementation of S202 in the embodiment;

[0049] Figure 6 for Figure 5 A flowchart illustrating one implementation of S302 in the embodiment;

[0050] Figure 7 This is a flowchart illustrating an HBC data synchronization method in one embodiment;

[0051] Figure 8 This is a schematic diagram of an HBC data synchronization method in one embodiment;

[0052] Figure 9This is a schematic diagram of the data frame structure in one embodiment;

[0053] Figure 10 This is a flowchart illustrating an HBC data synchronization method in one embodiment;

[0054] Figure 11 for Figure 10 A flowchart illustrating one implementation of S601 in the embodiment;

[0055] Figure 12 This is a flowchart illustrating an HBC data synchronization method in one embodiment;

[0056] Figure 13 This is a flowchart illustrating an HBC data synchronization method in one embodiment;

[0057] Figure 14 This is a schematic diagram of the structure of an HBC data synchronization system in one embodiment;

[0058] Figure 15 This is a structural block diagram of an HBC data synchronization device in one embodiment;

[0059] Figure 16 This is a structural block diagram of an HBC data synchronization device in one embodiment;

[0060] Figure 17 This is a structural block diagram of an HBC data synchronization device in one embodiment;

[0061] Figure 18 This is a structural block diagram of an HBC data synchronization device in one embodiment;

[0062] Figure 19 This is a structural block diagram of an HBC data synchronization device in one embodiment;

[0063] Figure 20 This is a structural block diagram of an HBC data synchronization device in one embodiment;

[0064] Figure 21 This is a structural block diagram of an HBC data synchronization device in one embodiment;

[0065] Figure 22 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0066] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0067] The HBC data synchronization method provided in this application can be applied to, for example... Figure 1 The application system shown includes multiple signal acquisition nodes (Nodes) and a signal receiver hub (Hub). The primary function of a Node is to acquire data, while the primary function of the Hub is to receive data. Data is transmitted between the Hub and the Nodes via the human body. Nodes can be, but are not limited to, various portable wearable devices used in the medical field, such as electrocardiogram (ECG), pulse oximeter, blood pressure monitor, and electroencephalogram (EEG) devices. Nodes can also be signal acquisition devices from other application areas, such as mobile phones, watches, and wristbands. The Hub can be an independent signal receiving device, a standalone server, or a server cluster consisting of multiple servers.

[0068] Those skilled in the art will understand that Figure 1 The structure shown is merely a block diagram of a portion of the structure related to the solution of this application and does not constitute a limitation on the application system to which the solution of this application is applied. Specific application systems may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0069] In one embodiment, such as Figure 2 As shown, an HBC data synchronization method is provided, which can be applied to... Figure 1 Taking the signal receiver hub in the example, the following steps are included:

[0070] S101, Obtain the data to be synchronized; the data frame structure of the data to be synchronized includes a preamble sequence code.

[0071] The data to be synchronized is data of a preset number of bits received by the signal receiver; for example, it could be 2048 bits or 512 bits. The data to be synchronized can be transmitted using a preset data frame structure, such as... Figure 2A The diagram shows a data frame structure, which includes a preamble sequence code PLCP. This preamble sequence code is a physical layer preamble and consists of four 64-bit pseudo-random sequences of Gold code, which is mainly used by the signal receiver to receive data.

[0072] In this embodiment, the signal receiver and the signal collector transmit data via human body communication (HBC). Specifically, data transmission between the signal receiver and the signal collector is based on the frame structure of the physical layer of HBC. Given this application environment, when the signal collector collects data and transmits it to the signal receiver via HBC, the signal receiver can obtain a preset number of bits of data to be synchronized, i.e., HBC data. Optionally, the signal receiver and the signal collector can also transmit data via other transmission methods (e.g., wireless network transmission). In this mode, when the signal collector collects data and transmits it to the signal receiver, the signal receiver can obtain the data to be synchronized at the current moment.

[0073] S102, determine the target peak value based on the data to be synchronized.

[0074] The target peak value represents the position of the preamble sequence code in the data frame structure. The target peak value is the effective peak value corresponding to the preset number of bits of data to be synchronized received by the signal receiver.

[0075] In this embodiment, when the signal receiver receives a preset number of bits of data to be synchronized, for example, when it receives 2048 bits of data to be synchronized, it can further employ corresponding summation and correlation operations to calculate the target peak value of the preset number of bits of data to be synchronized. Optionally, the signal receiver can also employ other detection methods to detect the peak value in the preset number of bits of data to be synchronized in order to obtain the target peak value in the data to be synchronized. Specifically, the process of calculating the target peak value based on summation and correlation operations can include: one method is, for example, taking the reception of 2048 bits of data to be synchronized as an example, directly performing summation operations on the 2048 bits of data to be synchronized, and then determining the correlation value of the data to be synchronized received at the current time based on the summation results of the 2048 bits of data to be synchronized at the current time and the summation results of the 2048 bits of data to be synchronized at the previous time. This correlation value is calculated repeatedly until 2048 correlation values ​​are obtained. Then, the peak value of the 2048 bits of data to be synchronized is calculated based on the 2048 correlation values, and if the peak value is valid, the peak value is determined as the target peak value of the data to be synchronized. Optionally, the 2048 bits of data to be synchronized can be segmented first, and the sum and correlation operations of each segment can be performed to calculate the correlation value of each segment using the method described above. Then, the peak value of each segment can be calculated from the correlation value, and the validity of the peak value of each segment can be verified. The valid peak value is then selected as the target peak value of the data to be synchronized. It should be noted that the method for calculating the peak value based on the correlation value can employ any method for determining the peak value, such as using the peak-to-average power ratio (PAPR) method to calculate the peak value based on the correlation value. Furthermore, the method for verifying the validity of the peak value can also employ any method for checking peak validity; there are no limitations here.

[0076] S103, the position of the received target peak is determined as the starting position of the preamble sequence code, and the preamble sequence code is received synchronously according to the starting position to complete the data synchronization.

[0077] Once the signal receiver obtains the target peak value based on the aforementioned steps, it can determine the position of the received target peak value as the starting position of the preamble sequence code, and start synchronously receiving the preamble sequence code at this starting position so that it can receive and transmit data normally afterwards, thus completing data synchronization.

[0078] The HBC data synchronization method provided in the above embodiments acquires the data to be synchronized, determines the target peak value based on the data, and then determines the position of the received target peak value as the starting position of the preamble sequence code. Synchronization of the preamble sequence code is then initiated based on the starting position, thus completing data synchronization. This method achieves HBC data synchronization by searching for the preamble sequence code. During the search process, only the target peak value of the data to be synchronized needs to be determined, and HBC data synchronization can be completed at the location of the found target peak value. This method consumes relatively few logic resources, thus reducing power consumption. Especially when synchronizing data using a human body communication (HBC) mechanism, compared to traditional methods using Bluetooth or network mechanisms, the HBC data synchronization method proposed in this application can significantly reduce the power consumption of each signal receiver in the corresponding data transmission system.

[0079] In one embodiment, one implementation of S102 above is provided, such as... Figure 3 As shown, the above-mentioned S102 "determine the target peak value based on the data to be synchronized" specifically includes:

[0080] S201, determine the first peak-to-average ratio of each data segment in the data to be synchronized.

[0081] In this embodiment, the signal receiver can divide the data to be synchronized into multiple segments for processing. For example, 2048 bits of data to be synchronized can be divided into 4 segments, each segment being 512 bits. Optionally, the 2048 bits of data to be synchronized can also be divided into 2 segments, each segment being 1024 bits, etc. The number of segments is not limited here. Then, the first peak-to-average power ratio (PAPR) of each segment is further calculated. The specific process for calculating the first PAPR of each segment is as follows... Figure 4 As shown, it includes:

[0082] S2010, calculate the maximum correlation value of each data segment in the data to be synchronized.

[0083] Optionally, the signal receiver can calculate the correlation value of each data segment based on the cumulative value of each data segment at the current time and the cumulative value of each data segment at the previous time, and select the largest correlation value as the maximum correlation value of each data segment.

[0084] Optionally, the signal receiver can calculate the cumulative value of each data segment at the current time based on each data segment acquired at the current time using the following relationship (1):

[0085]

[0086] Where i represents the segment number after the data to be synchronized is divided, and its value can be any natural integer; x represents each data in each segment of data received by the signal receiver at the current time; p represents the data after the preamble sequence code is mapped; n represents the data length after each preamble sequence code is mapped, for example, n = 512; k represents the sequence number of data x; t represents the receiving time, that is, the current time; Preamble_Accumulator(t)_i represents the accumulated value of the i-th segment of data at the current time.

[0087] The cumulative value of each data segment in the previous time step is calculated using the above method, as shown in the following formula (2);

[0088]

[0089] Where x represents each data segment received by the signal receiver at the previous moment; p represents the data after the preamble sequence code has been mapped; n represents the length of the data after the preamble sequence code has been mapped, for example, n = 512; k represents the sequence number of data x; t-1 represents the previous moment; Preamble_Accumulator(t-1) represents the correlation value of the i-th data segment at the previous moment.

[0090] Furthermore, the signal receiver can obtain the correlation value of each data segment through the following relationship (3):

[0091] Preamble_Correlation(t)_i=Preamble_Accumulator(t)_i-Preamble_Accumulator(t-1)_i(3);

[0092] Where Preamble_Correlation(t)_i represents the correlation value of the i-th segment of data in the data to be synchronized.

[0093] Specifically, once the signal receiver obtains the correlation value of each segment of data in the data to be synchronized, it can select the largest correlation value from the correlation values ​​of each segment as the maximum correlation value for that segment. Assuming the data to be synchronized is divided into four segments, four maximum correlation values ​​can be obtained.

[0094] It should be noted that when performing the above accumulation and correlation operations, the number of bits in the data to be calculated is the same as the number of bits in each preamble sequence code after mapping (in this embodiment, each preamble sequence code after mapping is 512 bits). That is, when calculating the correlation value of the data to be synchronized, the data to be synchronized is divided into multiple segments, and then accumulation and correlation operations are performed on each segment. Because there are four preamble codes in this embodiment, and these four preamble codes have been mapped, the data to be synchronized is divided into four segments according to the number of preamble codes for processing. The mapping method for the preamble sequence codes can be as follows: Figure 3A The data mapping diagram shown illustrates this. During mapping, when the preamble sequence code is 0, an 8-bit mapping of {1 0 1 01 0 10} can be used; when the preamble sequence code is 1, an 8-bit mapping of {0 1 0 1 0 1 0 1} can be used. A preamble is a 64-bit pseudo-random code, so after mapping, it becomes a 512-bit sequence code. Therefore, four preambles become a 2048-bit sequence code after mapping. After mapping, half of the preamble output data is 0. This means that when performing dot multiplication using accumulators later, only half the hardware resources are needed to complete the dot multiplication operation, which can greatly save computing resources and thus reduce power consumption.

[0095] S2011, calculate the average value of the correlation values ​​for each data segment.

[0096] Once the signal receiver has calculated the correlation value of each data segment based on the aforementioned steps, it can perform an average calculation on the correlation value of each data segment to obtain the average value of the correlation value of each data segment.

[0097] Optionally, the signal receiver can use equations (4) and (5) to calculate the average value of the correlation value for each data segment:

[0098]

[0099] Where i represents the segment number after the data to be synchronized is divided, and its value can be any natural integer; NumBit represents the number of bits in the data to be synchronized before division, for example, NumBit = 2048; L represents the number of segments in the data to be synchronized, and can be any natural integer; m represents the number of bits in each segment, which is related to the number of segments L and the number of bits NumBit in the data to be synchronized before division, for example, NumBit = 2048, L = 4, m = 512; Preamble_Data_Average_i represents the average value of the correlation value of the i-th segment. In this embodiment, assuming that the data to be synchronized is divided into 4 segments, the average value of the correlation value of the first segment Preamble_Data_Average_1, the average value of the correlation value of the second segment Preamble_Data_Average_2, the average value of the correlation value of the third segment Preamble_Data_Average_3, and the average value of the correlation value of the fourth segment Preamble_Data_Average_4 can be obtained through the above calculation. In this embodiment, the signal receiver only needs one adder to perform the average calculation once for every m data points.

[0100] S2012, based on the maximum correlation value of each data segment and the average correlation value of each data segment, the first peak-to-average ratio of each data segment in the data to be synchronized is obtained.

[0101] Optionally, the signal receiver can calculate the first peak-to-average ratio (PAPR) of each data segment based on the correlation value of each data segment and the average value of the correlation value of each data segment using the following relationship (6):

[0102]

[0103] Where i represents the segment number after the data to be synchronized is divided; max(Preamble_Correlation(t)_i) represents the maximum correlation value of the i-th segment of the data to be synchronized; Preamble_Data_Average_i represents the average correlation value of the i-th segment of the data; and Preamble_Peak_Average_Ratio_i represents the first peak-to-average ratio of the i-th segment of the data. For example, assuming the data to be synchronized is divided into 4 segments, then after the above calculation, 4 first peak-to-average ratios can be obtained: Preamble_Peak_Average_Ratio_1, Preamble_Peak_Average_Ratio_2, Preamble_Peak_Average_Ratio_3, and Preamble_Peak_Average_Ratio_4.

[0104] S202, determine the target peak value based on the first peak-to-average ratio of each data segment.

[0105] After the signal receiver obtains the first peak-to-average ratio (PAR) for each data segment based on the above steps, it can verify the validity of the PAR for each data segment. If the PAR is valid, it means that the maximum correlation value corresponding to that data segment is the peak value of that data segment; if the PAR is invalid, it means that there is no peak value in that data segment. Therefore, after verifying the validity of the PAR for each data segment, the valid PAR can be used as the target PAR, and the maximum correlation value corresponding to the target PAR is determined as the target peak value. If there are multiple valid PARs, such as two valid PARs, the largest PAR can be selected, and the target peak value can be determined based on the largest PAR.

[0106] Optionally, a specific method for determining the aforementioned target peak value is provided, such as... Figure 5 As shown, the method includes:

[0107] S301, compare the first peak-to-average ratio of each data segment with the preset peak-to-average ratio threshold.

[0108] The preset peak threshold is a reference index value for measuring whether the first peak-to-average power ratio is effective, and it can be determined in advance by the signal receiver according to the actual effective test standard.

[0109] Specifically, when the signal receiver verifies the validity of the first peak average of each data segment, it can compare the first peak average of each data segment with a preset peak value threshold in turn. If the first peak average ratio is greater than the preset peak value threshold, the first peak average ratio is determined to be valid, indicating that the maximum correlation value corresponding to the first peak average ratio is valid, and the maximum correlation value can be used as a valid peak value. If the first peak average ratio is not greater than the preset peak value threshold, the first peak average ratio is determined to be invalid, indicating that the maximum correlation value corresponding to the first peak average ratio is invalid, and the maximum correlation value cannot be used as a valid peak value.

[0110] S302, the maximum correlation value corresponding to the first peak-to-average ratio that is greater than the preset peak-to-average ratio threshold is determined as the target peak value.

[0111] In practical applications, when the signal receiving device verifies that the first peak-to-average ratio (PAR) of a segment of data in the data to be synchronized is valid according to the above method, the maximum correlation value corresponding to that first PAR can be directly determined as the target peak value. There is also an application scenario where the signal receiving device verifies that the first PARs of multiple segments of data in the data to be synchronized are all greater than the preset PAR threshold, meaning that the first PARs of multiple data segments are valid. In this case, when the signal receiver executes step S302 above, if... Figure 6 As shown, the specific steps that can be performed are as follows:

[0112] S401, compare the peak-to-average ratios of multiple peak-to-average ratios that are greater than the preset peak-to-average ratio threshold.

[0113] S402, the maximum correlation value corresponding to the largest peak-to-average ratio among multiple peak-to-average ratios greater than the preset peak-to-average ratio threshold is determined as the target peak value.

[0114] When the signal receiver determines that there are multiple peak-to-average ratios (PARs) greater than the preset PAR threshold, it can further compare the size of each PAR, select the largest PAR, and then determine the maximum correlation value corresponding to the largest PAR as the target peak value.

[0115] To clarify, when calculating the peak-to-average ratio (PAR) of each data segment (see equation (6) for details), it is obtained by performing a ratio operation between the maximum correlation value of each data segment and the average correlation value of each data segment. Therefore, each PAR corresponds to a maximum correlation value. If the PAR is valid, it means that its corresponding maximum correlation value is valid, which is the peak value.

[0116] In practical applications, there exists a scenario where the signal receiving device determines that the target peak value is missing from the preset number of bits of data to be synchronized. This means that the peak-to-average ratio (PAR) of each segment of the synchronized data is invalid. In this case, it indicates that the signal receiving device has not yet received valid data and needs to re-receive new synchronized data, re-acquire the preset number of bits of synchronized data, and re-determine the target peak value of the synchronized data to confirm that valid data has been received. Therefore, in one embodiment, this application also provides a method specifically executed by the signal receiver when the PAR of each data segment is less than a preset PAR threshold, such as... Figure 7 As shown, the method includes:

[0117] S501 stores the peak-to-average power ratio of each data segment in a register and then retrieves new data to be synchronized.

[0118] When the peak-to-average ratio (PAR) of each segment of the data to be synchronized is invalid, the PAR of each segment of the data to be synchronized, which was previously calculated, can be stored in a register. Specifically, it can be stored in a register of appropriate size (e.g., 512-bit RAM). Alternatively, the signal receiver can store the PAR of all segments of data in a single register (e.g., 2048-bit RAM). When storing the PAR of each segment of data in the register, the PAR of each segment can be marked to indicate the data source of each PAR.

[0119] When the peak-to-average ratio (PAR) of each data segment in the synchronization data verified by the signal receiver is invalid, new synchronization data can be acquired to determine a new target peak value. In the above method, since the PAR of each data segment is the result obtained by the signal receiver after performing relevant accumulation operations on each data segment, storing the PAR of each data segment in a register allows the direct use of the calculation result (PAR) of the repeated data segments when performing relevant accumulation operations on the repeated data segments, without needing to perform the relevant accumulation operations again. This reduces the consumption of adder hardware resources and can save hardware resources to a certain extent.

[0120] S502 determines the new target peak value based on the new data to be synchronized and the peak-to-average power ratio stored in the register.

[0121] When the signal receiver acquires new data to be synchronized, it can further acquire new data of a preset number of bits (e.g., 2048 bits), and then proceed according to the aforementioned method ( Figures 2-6 (Example) The target peak value of the new data to be synchronized is calculated. For details, please refer to the aforementioned calculation description, which will not be repeated here. Optionally, the signal receiver may also perform accumulation and correlation operations only on the last segment of received data (e.g., the last 512 bits of data) in the new data to be synchronized to obtain the peak-to-average power ratio of the last segment of data. Then, combined with the peak-to-average power ratios of other data segments stored in the register, the new target peak value is determined.

[0122] Correspondingly, the signal receiver is performing... Figure 2 In the embodiment, step S103, "determine the position of the received target peak as the starting position of the preamble sequence code, and start synchronously receiving the preamble sequence code according to the starting position to complete data synchronization," can be specifically executed as follows: determine the position of the received new target peak as the starting position of the preamble sequence code, and start synchronously receiving the preamble sequence code according to the starting position to complete data synchronization.

[0123] This embodiment relates to the process by which the signal receiver completes data synchronization based on a new target peak value. This process is the same as the process described in S103 above. For details, please refer to the description of S103 above, which will not be repeated here.

[0124] Exemplary Description Figure 7 The method described in the embodiments, such as Figure 8 The diagram shows Pr1, Pr2, Pr3, Pr4, Pr5, Pr6... as the data received by the signal receiver, with each of Pr1, Pr2, Pr3, Pr4, Pr5, and Pr6 being a mapped preamble (512 bits). After receiving the data, the signal receiver can store the received Pr1, Pr2, Pr3, and Pr4 in a register (specifically, a FIFO register), and then use the aforementioned... Figures 3-4The method described in this embodiment performs correlation accumulation and peak-to-average power ratio (PAPR) calculations on Pr1, Pr2, Pr3, and Pr4 in the registers to obtain the PAPR corresponding to each of Pr1, Pr2, Pr3, and Pr4. Then, the PAPRs corresponding to each of Pr1, Pr2, Pr3, and Pr4 are stored in Random Access Memory (RAM). Subsequently, when the signal receiver determines that the PAPRs corresponding to Pr1, Pr2, Pr3, and Pr4 are all invalid, new data to be synchronized (Pr5) is acquired again, and... Figures 3-4 The method described in this embodiment uses an adder to perform correlation accumulation and peak-to-average ratio (PAR) calculations on Pr5 to obtain its PAR. Then, the PARs of Pr2, Pr3, and Pr4 are read from RAM and added to the PAR of Pr5. The PARs of Pr2, Pr3, Pr4, and Pr5 are then re-validated, and the maximum correlation value corresponding to the valid PAR is determined as the new target peak value. It should be noted that after the signal receiver calculates the PAR of Pr5, it can store this PAR in RAM, while deleting the previously stored PAR of Pr1 from RAM. This ensures that RAM always retains the latest four PARs (e.g., Pr2, Pr3, Pr4, and Pr5), fully utilizing memory space and avoiding waste.

[0125] In the above embodiments, each time new data to be synchronized is acquired, a related accumulation operation needs to be performed. This operation only requires one adder to perform the accumulation operation on the new data to be synchronized. Compared to the traditional method that requires four adders for each operation, the method provided in the above embodiments does not require repeated calculations, which can greatly save computing resources and improve the calculation speed, thereby improving the efficiency of data synchronization.

[0126] In one embodiment, this application also provides a data frame structure, such as Figure 9 As shown, this data frame structure includes not only a preamble sequence code but also a start delimiter (SFD in the figure). When the data frame structure of the signal received by the signal receiving device is as follows... Figure 9 When the data frame structure shown is provided, this application also provides a method for searching the start delimiter, that is, when the signal receiving device executes... Figure 2 After step S103, as follows Figure 10 As shown, the specific steps to be performed are as follows:

[0127] S601 determines the search position based on the location of the target peak and the preset search window, receives new data to be synchronized at the search position, and determines a new target peak based on the new data to be synchronized.

[0128] The preset search window can be determined in advance by the signal receiver. In practical applications, the length of the search window plays a decisive role in the search time, and can generally be calculated based on empirical values. Optionally, this embodiment can calculate the chip offset based on the clock synchronization deviation, and can calculate the system clock deviation in real time during clock synchronization at the MAC layer, thus dynamically adjusting the length of the search window. According to the protocol standard, the clock frequency accuracy is 20ppm. Calculated at a clock frequency of 42MHz, there will be an offset of 840*2=1680 chips per second. The minimum allocation slot is 500µs. Using 14 minimum allocation slots as the Aloha allocation slot length, the offset of one Aloha allocation slot is 14*500 / 1000 / 1000*1680=11.76 chip offsets.

[0129] Based on the method described above, the length of the search window can be determined, and its size can be specifically defined as 11.76 chips, allowing for accurate calculation of the frame interval start position (i.e., the start position of the start delimiter). In practical applications, the size of the search window can be continuously optimized to achieve higher accuracy in data synchronization.

[0130] In this embodiment, after the signal receiver determines the target peak value of the data to be synchronized, it is equivalent to the signal receiver finding the preamble sequence code. To ensure the accuracy of subsequent data synchronization, the signal receiver can continue to search for the start delimiter in the data frame structure. If the start delimiter can be successfully found later, the accuracy of data synchronization can be improved. Specifically, after determining the target peak value of the data to be synchronized, the signal receiver determines the search position for the start delimiter based on the receiving position of the target peak value and a preset search window, and receives new data to be synchronized at this search position, and then processes the data according to the specified parameters. Figure 2 In the embodiment, the method for determining the target peak value described in S102 obtains a new target peak value for the new data to be synchronized, which is the peak value corresponding to the search start delimiter.

[0131] S602, the position of receiving the new target peak is determined as the starting position of the starting delimiter, and the receiving of the starting delimiter is started synchronously according to the starting position to complete the data synchronization.

[0132] Once the signal receiver obtains the new target peak value based on the aforementioned steps, the position of the received new target peak value can be determined as the starting position of the start delimiter. Synchronization of the start delimiter reception begins at this starting position to ensure normal subsequent data reception and transmission, thus completing data synchronization. This method improves the accuracy of synchronized data by first searching the preamble sequence code, then successively searching for the start delimiter, and finally synchronizing data based on the search results.

[0133] Accordingly, based on Figure 10 The method described in the embodiment also provides a specific implementation of "determining a new target peak value based on new data to be synchronized" in S601 above, such as... Figure 11 As shown, the method includes:

[0134] S701, determine the second peak-to-average ratio of the new data to be synchronized, and compare the second peak-to-average ratio with the preset peak-to-average ratio threshold.

[0135] In this embodiment, when the signal receiver acquires new data to be synchronized, the number of bits in the new data to be synchronized is the same as the number of bits after mapping the start delimiter (e.g., 512 bits). The signal receiver performs accumulation, correlation, and peak-to-average ratio (PAR) calculations on the new data to be synchronized to obtain a second PAR. Then, the second PAR is compared with a preset PAR threshold to obtain a comparison result, which is used to determine the new target peak value corresponding to the new data to be synchronized. It should be noted that the preset PAR threshold can be the same as or different from the preset PAR threshold used when determining the target peak value corresponding to the preamble sequence code.

[0136] Optionally, the signal receiver can calculate the accumulated value of the new data to be synchronized at the current moment based on the new data to be synchronized acquired at the current moment using the following relationship (7):

[0137]

[0138] Where v represents each data in the new data to be synchronized received by the signal receiver at the current time; s represents the data after the start delimiter is mapped; q represents the length of the data after the start delimiter is mapped, for example, q = 512; j represents the sequence number of data v; t represents the receiving time, for example, the current time; Sfd_Accumulator(t) represents the accumulated value of the new data to be synchronized at the current time.

[0139] The accumulated value of the new data to be synchronized at the previous moment is calculated using the above method, as shown in the following relationship (8);

[0140]

[0141] Where v represents each data in the new data to be synchronized at the current moment received by the signal receiver; s represents the data after the start delimiter has been mapped; q represents the length of the data after the start delimiter has been mapped, for example, q = 512; j represents the sequence number of data v; t-1 represents the previous moment; and Sfd_Accumulator(t-1) represents the accumulated value of the new data to be synchronized at the previous moment.

[0142] Furthermore, the signal receiver can obtain the correlation value of the new data to be synchronized through the following relationship (9):

[0143] Sfd_Correlation(t)=Sfd_Accumulator(t)-Sfd_Accumulator(t-1) (9);

[0144] Where Sfd_Correlation(t) represents the correlation value of the new data to be synchronized.

[0145] It should be noted that when performing the above accumulation and correlation operations, the number of bits in the data to be calculated is the same as the number of bits in the mapped start delimiter (in this embodiment, the number of bits in the mapped start delimiter is 512 bits). That is, when calculating the correlation value of new data to be synchronized, the accumulation and correlation operations are directly performed on the new data to be synchronized. The mapping method for the start delimiter can also be as follows: Figure 3A The data mapping diagram shown is implemented as previously explained and will not be repeated here.

[0146] Optionally, the signal receiver can use equations (10) and (11) to calculate the average value of the correlation values ​​of the new data to be synchronized:

[0147] Sfd_Data_Average=[∑ABS(Sfd_Correlation(t))] / q (10);

[0148] Where q represents the data length after the start delimiter is mapped, for example, q = 512; t represents the receiving time, for example, the current time; Sfd_Data_Average represents the average value of the correlation values ​​of the new data to be synchronized.

[0149] Optionally, the signal receiver can calculate the second peak-to-average ratio of the new data to be synchronized based on the correlation value of the new data to be synchronized and the average of the correlation values ​​of the new data to be synchronized using the following relationship (6):

[0150]

[0151] Where max(Sfd_Correlation(t)) represents the maximum correlation value of the new data to be synchronized; Sfd_Data_Average represents the average correlation value of the new data to be synchronized; and Sfd_Peak_Average_Ratio represents the second peak-to-average ratio of the new data to be synchronized.

[0152] S702, if the second peak-to-average ratio is greater than the preset peak-to-average ratio threshold, then the maximum correlation value corresponding to the second peak-to-average ratio is determined as the new target peak value.

[0153] When the signal receiver obtains the second peak-to-average ratio (PAR) of the new data to be synchronized using the above method, it can compare the second PAR with a preset PAR threshold. If the second PAR is greater than the preset PAR threshold, it indicates that the second PAR is valid, and the maximum correlation value corresponding to the second PAR can be determined as the new target peak value. If the second PAR is not greater than the preset PAR threshold, it indicates that the second PAR is invalid, and the signal receiver needs to re-acquire the new data to be synchronized. This process is repeated until the second PAR corresponding to the new data to be synchronized is valid, and the new target peak value of the new data to be synchronized can be determined.

[0154] The above method first searches for a preamble sequence code, then searches for a start delimiter based on the found preamble sequence code, and begins data synchronization only after the start delimiter is found. In one embodiment, this application also provides a method for searching for the start delimiter separately, such as... Figure 12 The method includes:

[0155] S801, obtain the data to be synchronized; the data frame structure of the data to be synchronized includes a start delimiter.

[0156] S802 determines the target peak value based on the data to be synchronized.

[0157] S803, the position of the received target peak is determined as the starting position of the start delimiter, and the start delimiter is synchronously received according to the starting position to complete the data synchronization.

[0158] The methods described in the above steps are the same as those described earlier. Figure 2 The methods described in each step of the embodiment are basically the same, except that the starting delimiter after mapping has 512 bits. Therefore, the data to be synchronized obtained in this embodiment is 512 bits. In the later stage, it is only necessary to accumulate and perform related operations on the 512 bits of data. For specific methods, please refer to the description of the aforementioned embodiment, which will not be repeated here.

[0159] In one embodiment, this application also provides an HBC data synchronization method, such as... Figure 13 As shown, the HBC data synchronization method includes:

[0160] S901, retrieve data to be synchronized.

[0161] S902, perform a preamble sequence code search on the data to be synchronized. If a preamble sequence code is found, proceed to steps S903-S906; if no preamble is found, proceed to step S909.

[0162] S903 determines the search position based on the receiving position of the preamble sequence code and the preset search window.

[0163] S904 receives new data to be synchronized at the search location.

[0164] S905, perform a start delimiter search on the new data to be synchronized. If a start delimiter is found, proceed to steps S906-S907. If no start delimiter is found, proceed to step S910.

[0165] S906, confirm that the search was successful, and start synchronously receiving the start delimiter and the frame header data of the data frame structure at the location where the start delimiter is found.

[0166] S907: Parse the frame header data and perform CRC check statistics on the frame header data. If the check passes, proceed to S908; otherwise, proceed to S911.

[0167] S908, begin receiving valid data and complete data synchronization.

[0168] S909, re-receive the data to be synchronized and search for the preamble sequence code until the preamble sequence code is found.

[0169] S910: Re-receive the data to be synchronized and search for the start delimiter until the start delimiter is found.

[0170] S911, return to step S901, and re-execute subsequent steps until data synchronization is complete.

[0171] The methods described in each of the above steps have been described in the foregoing embodiments (the preamble sequence search method corresponds to the foregoing). Figures 2-8 The method described in the embodiments, wherein the start delimiter corresponds to the aforementioned Figures 9-12 The method described in the embodiments is detailed in the foregoing description and will not be repeated here.

[0172] Based on the methods described in all the above embodiments, this application also provides an HBC data synchronization system, such as... Figure 14As shown, the HBC data synchronization system includes a signal receiver and at least one signal transmitter. The signal receiver and transmitters communicate with each other, and the receiver can transmit received data to a cloud computing center for processing and storage. The signal transmitter can be a signal acquisition device, such as collecting ECG or blood oxygen saturation signals, and transmitting the acquired signals to the signal receiver. In this data synchronization system, the signal receiver provides a relatively large capacity, while the signal transmitter provides a smaller capacity. Since the system requires relatively long operating times, it is necessary to reduce the power consumption of the signal transmitter. Furthermore, since the primary function of the signal transmitter is data acquisition and transmission, the main power consumption in the data synchronization system is for data transmission, while the receiving function is relatively minor. Therefore, related calculations can be simplified to reduce overall power consumption, such as by using single data sampling. Since the primary function of the signal receiver is to receive data from the transmitters, quadruple data sampling can be used to accurately synchronize data transmission.

[0173] Figure 14 The HBC data synchronization system shown can be applied to the aforementioned Figures 2-13 The HBC data synchronization method described in the embodiments, and in order to reduce the power consumption of various components in the data transmission system, data synchronization between the signal transmitter and the signal receiver can be achieved by... Figures 2-8 The data synchronization method described in the embodiments (i.e., data synchronization is completed by searching for a preamble sequence code), or, using... Figure 12 The data synchronization method described in the embodiment (i.e., data synchronization is completed by searching the start delimiter sequence code) reduces power consumption. To improve the accuracy and efficiency of data synchronization, data synchronization between the signal transmitter and the signal receiver can employ... Figure 10 or Figure 11 The data synchronization method described in the embodiments (i.e., first searching the preamble sequence code and then searching the start delimiter sequence code to complete data synchronization). The HBC data synchronization system provided in this application can select different data synchronization methods to complete data synchronization according to actual application requirements.

[0174] It should be understood that, although Figure 2-13 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 2-13At least some of the steps in the process may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the steps or stages in other steps.

[0175] In one embodiment, such as Figure 15 As shown, an HBC data synchronization device is provided, comprising:

[0176] Acquisition module 11 is used to acquire data to be synchronized; the data frame structure of the data to be synchronized includes a preamble sequence code;

[0177] The determining module 12 is used to determine the target peak value based on the data to be synchronized;

[0178] The synchronization receiving module 13 is used to determine the position of receiving the target peak as the starting position of the preamble sequence code, and to start synchronously receiving the preamble sequence code according to the starting position to complete data synchronization.

[0179] In one embodiment, such as Figure 16 As shown, the aforementioned determining module 12 includes:

[0180] The first determining unit 121 is used to determine the first peak-to-average ratio of each segment of data in the data to be synchronized;

[0181] The second determining unit 122 is used to determine the target peak value based on the first peak-to-average ratio of each data segment.

[0182] In one embodiment, such as Figure 17 As shown, the first determining unit 121 includes:

[0183] The first calculation subunit 1211 is used to calculate the maximum correlation value of each segment of data in the data to be synchronized;

[0184] The second calculation subunit 1212 is used to calculate the average value of the correlation value of each segment of data in the data to be synchronized;

[0185] The first determining subunit 1213 is used to obtain the first peak-to-average ratio of each segment of data in the data to be synchronized based on the maximum correlation value of each segment of data and the average correlation value of each segment of data.

[0186] In one embodiment, such as Figure 18 As shown, the second determining unit 122 includes:

[0187] The first comparison subunit 1221 is used to compare the first peak-to-average ratio of each data segment with a preset peak-to-average ratio threshold.

[0188] The second determining subunit 1222 is used to determine the maximum correlation value corresponding to the first peak-to-average ratio that is greater than the preset peak-to-average ratio threshold as the target peak value.

[0189] In one embodiment, the second determining subunit 1222 is specifically used to compare multiple peak-to-average ratios that are greater than the preset peak-to-average ratio threshold; and to determine the maximum correlation value corresponding to the largest peak-to-average ratio among the multiple peak-to-average ratios that are greater than the preset peak-to-average ratio threshold as the target peak value.

[0190] In one embodiment, such as Figure 19 As shown, the above-mentioned HBC data synchronization device further includes:

[0191] Storage module 14 is used to store the peak-to-average ratio of each data segment into a register and to reacquire new data to be synchronized.

[0192] The newly determined module 15 is used to determine a new target peak value based on the new data to be synchronized and the peak-to-average power ratio stored in the register.

[0193] Correspondingly, the aforementioned synchronization receiving module 13 is specifically used to determine the position of receiving the new target peak as the starting position of the preamble sequence code, and to start synchronously receiving the preamble sequence code according to the starting position, thereby completing data synchronization.

[0194] In one embodiment, such as Figure 20 As shown, the above-mentioned HBC data synchronization device further includes:

[0195] The re-determination module 16 is used to determine a search position based on the position of receiving the target peak and a preset search window, receive new data to be synchronized at the search position, and determine a new target peak based on the new data to be synchronized.

[0196] The resynchronization module 17 is used to determine the position of receiving the new target peak as the starting position of the starting delimiter, and to start synchronously receiving the starting delimiter according to the starting position to complete data synchronization.

[0197] In one embodiment, such as Figure 21 As shown, the aforementioned re-determination module 16 includes:

[0198] Comparison unit 161 is used to determine the second peak-to-average ratio of the new data to be synchronized, and compare the second peak-to-average ratio with a preset peak-to-average ratio threshold.

[0199] The third determining unit 162 is used to determine the maximum correlation value corresponding to the second peak-to-average ratio as the new target peak value when the second peak-to-average ratio is greater than the preset peak-to-average ratio threshold.

[0200] Specific limitations regarding the HBC data synchronization device can be found in the limitations of the HBC data synchronization method described above, and will not be repeated here. Each module in the aforementioned HBC data synchronization device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0201] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 22 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data to be synchronized. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements an HBC data synchronization method.

[0202] Those skilled in the art will understand that Figure 22 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0203] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0204] Acquire the data to be synchronized; the data frame structure of the data to be synchronized includes a preamble sequence code;

[0205] Based on the data to be synchronized, determine the target peak value;

[0206] The position where the target peak is received is determined as the starting position of the preamble sequence code, and the preamble sequence code is received synchronously according to the starting position to complete data synchronization.

[0207] The computer device provided in the above embodiments has a similar implementation principle and technical effect to the above method embodiments, and will not be described again here.

[0208] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0209] Acquire the data to be synchronized; the data frame structure of the data to be synchronized includes a preamble sequence code;

[0210] Based on the data to be synchronized, determine the target peak value;

[0211] The position where the target peak is received is determined as the starting position of the preamble sequence code, and the preamble sequence code is received synchronously according to the starting position to complete data synchronization.

[0212] The computer-readable storage medium provided in the above embodiments has a similar implementation principle and technical effect to the above method embodiments, and will not be described again here.

[0213] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0214] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0215] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. An HBC data synchronization method, characterized in that, The method includes: S901, retrieve data to be synchronized; S902, perform a preamble sequence code search on the data to be synchronized. If the preamble sequence code is found, proceed to steps S903-S906; if the preamble is not found, proceed to step S909. S903, determine the search position based on the receiving position of the preamble sequence code and the preset search window; S904, Receive new data to be synchronized at the search location; S905, Search for a start delimiter for the new data to be synchronized. If a start delimiter is found, proceed to steps S906-S907. If no start delimiter is found, proceed to step S910. S906, confirm that the search was successful, and start synchronously receiving the start delimiter and the frame header data of the data frame structure at the position where the start delimiter is found; S907, parse the frame header data and perform CRC check statistics on the frame header data. If the check passes, proceed to S908; if the check fails, proceed to S911. S908, begin receiving valid data and complete data synchronization; S909, re-receive the data to be synchronized and search for the preamble sequence code until the preamble sequence code is found; S910: Re-receive the data to be synchronized and search for the start delimiter until the start delimiter is found; S911, return to step S901, and re-execute subsequent steps until data synchronization is complete; Specifically, after receiving new data to be synchronized at the search position, the new data to be synchronized is divided into multiple data segments. For each data segment, the data in the current segment and the data after mapping with the preamble sequence code are summed to obtain the summed value of each data segment at the current time. The summed value of each data segment at the current time is then compared with the summed value of each data segment at the previous time to obtain the correlation value of each data segment. The largest correlation value is selected from the correlation values ​​of each data segment as the maximum correlation value of each data segment, and the average correlation value of each data segment is calculated to obtain the average correlation value of each data segment. The ratio of the maximum correlation value of each data segment to the average correlation value of each data segment is calculated to obtain the first peak-to-average ratio of each data segment. The target peak value is determined based on the first peak-to-average ratio of each data segment. If the start delimiter is found, then the step of synchronously receiving the start delimiter and the frame header data of the data frame structure at the location where the start delimiter is found includes: determining the starting position of the start delimiter based on the position of the target peak and a preset search window, and starting synchronously receiving the start delimiter and the frame header data of the data frame structure based on the starting position of the start delimiter; the length of the search window is dynamically determined based on the chip offset calculated from the clock synchronization deviation.

2. The method according to claim 1, characterized in that, Determining the target peak value based on the first peak-to-average ratio of each data segment includes: Compare the first peak-to-average ratio (PAR) of each data segment with a preset PAR threshold. The maximum correlation value corresponding to the first peak-to-average ratio (PAR) that is greater than the preset PAR threshold is determined as the target peak value.

3. The method according to claim 2, characterized in that, If there are multiple peak values ​​corresponding to peak-to-average ratios greater than the preset peak-to-average ratio threshold, then determining the peak value corresponding to the first peak-to-average ratio greater than the preset peak-to-average ratio threshold as the target peak value includes: Compare the peak-to-average ratios (PARs) of multiple peaks that are greater than the preset PAR threshold; The maximum correlation value corresponding to the largest peak-to-average ratio among the plurality of peak-to-average ratios greater than the preset peak-to-average ratio threshold is determined as the target peak value.

4. The method according to claim 1, characterized in that, If the starting delimiter is found, determining the starting position of the starting delimiter based on the position of the received target peak and a preset search window includes: The search position is determined based on the location of the target peak value and the preset search window. New data to be synchronized is received at the search position, and a new target peak value is determined based on the new data to be synchronized. The position where the new target peak is received is determined as the starting position of the starting delimiter.

5. The method according to claim 4, characterized in that, The step of determining the new target peak value based on the new data to be synchronized includes: Determine the second peak-to-average ratio (PAR) of the new data to be synchronized, and compare the second PAR with a preset PAR threshold. If the second peak-to-average ratio is greater than the preset peak-to-average ratio threshold, then the maximum correlation value corresponding to the second peak-to-average ratio is determined as the new target peak value.

6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Timing synchronization system and method for superregenerative receiver based on ultra low power communications

    KR1020150018362A

  • Data transmission device for human body communication, preamble generation method thereof, and frame synchronization method thereof

    US20170149599A1