CN116668462A - HBC data synchronization method, computer device and storage medium - Google Patents

HBC data synchronization method, computer device and storage medium Download PDF

Info

Publication number
CN116668462A
CN116668462A CN202310666248.0A CN202310666248A CN116668462A CN 116668462 A CN116668462 A CN 116668462A CN 202310666248 A CN202310666248 A CN 202310666248A CN 116668462 A CN116668462 A CN 116668462A
Authority
CN
China
Prior art keywords
data
peak
synchronized
average ratio
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310666248.0A
Other languages
Chinese (zh)
Inventor
陈绪辉
何卓彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan United Imaging Zhirong Medical Technology Co Ltd
Original Assignee
Wuhan United Imaging Zhirong Medical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan United Imaging Zhirong Medical Technology Co Ltd filed Critical Wuhan United Imaging Zhirong Medical Technology Co Ltd
Priority to CN202310666248.0A priority Critical patent/CN116668462A/en
Publication of CN116668462A publication Critical patent/CN116668462A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B13/00Transmission systems characterised by the medium used for transmission, not provided for in groups H04B3/00 - H04B11/00
    • H04B13/005Transmission systems in which the medium consists of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to an HBC data synchronization method, a computer device and a storage medium. According to the method, data to be synchronized is obtained, a target peak value is determined according to the data to be synchronized, the position of the received target peak value is determined to be the initial position of a preamble sequence code, and the preamble sequence code starts to be synchronously received according to the initial position, so that data synchronization is completed. According to the method, the HBC data synchronization is realized by searching the preamble sequence code, only the target peak value of the data to be synchronized is needed to be determined in the searching process, the HBC data synchronization can be completed at the position of the searched target peak value, occupied logic resources are relatively less, the purpose of reducing power consumption can be achieved, and particularly in the mechanism synchronization data based on human body communication, compared with the traditional method for synchronizing the data by adopting a Bluetooth or network mechanism, the HBC data synchronization method provided by the application can greatly reduce the power consumption of each signal receiver in a corresponding data transmission system.

Description

HBC data synchronization method, computer device and storage medium
The application relates to a method for preparing a medicine for treating the skin cancer, which is characterized in that the application date is as follows: 12 months and 28 days 2020; application number: 2020115808098; the application name is as follows: HBC data synchronization method, computer equipment and case division application of storage medium.
Technical Field
The present application relates to the field of human body communication technologies, and in particular, to an HBC data synchronization method, a computer device, and a storage medium.
Background
With the mature application of various medical detection instruments in the medical industry, doctors can assist in realizing disease diagnosis of patients by means of various types of medical detection instruments. For example, medical grade products of single-lead electrocardiograph, blood oxygen, electroencephalogram, diabetes and other monitors.
Current medical detection instruments are usually in ultra-narrow band communication mode or wired communication mode, for example, bluetooth communication is used for medical grade products of single-lead electrocardiograph, blood oxygen, electroencephalogram, diabetes and other monitors; medical implant devices communicate using MICS (402-405 MHz) frequency; the watch or the bracelet adopts the network communication of an operator; dynamic electrocardiographs and the like employ wired communication.
However, the above communication mode has a problem of large power consumption.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an HBC data synchronization method, a computer device, and a storage medium that can effectively reduce power consumption.
In a first aspect, a HBC data synchronization method, the method comprising:
acquiring data to be synchronized; the data frame structure of the data to be synchronized comprises a preamble sequence code;
Determining a target peak value according to the data to be synchronized;
and determining the position of the target peak value as the initial position of the preamble sequence code, and starting to synchronously receive the preamble sequence code according to the initial position to finish data synchronization.
In one embodiment, the determining the target peak value according to the data to be synchronized includes:
determining a first peak-to-average ratio of each piece of data in the data to be synchronized;
and determining the target peak value according to the first peak-to-average ratio of each piece of data.
In one embodiment, the determining the peak-to-average ratio of each piece of data in the data to be synchronized includes:
calculating the maximum correlation value of each piece of data in the data to be synchronized;
calculating the average value of the correlation value of each segment of data in the data to be synchronized;
and carrying out ratio operation on the maximum correlation value and the average value of the correlation values to obtain the peak-to-average ratio of each segment of data in the data to be synchronized.
In one embodiment, said determining said target peak value according to a peak-to-average ratio of said each piece of data comprises:
comparing the peak-to-average ratio of each segment of data with a preset peak-to-average ratio threshold value;
and determining a peak value corresponding to the peak-to-average ratio greater than the preset peak-to-average ratio threshold as the target peak value.
In one embodiment, if there are a plurality of peaks corresponding to peak-to-average ratios greater than the preset peak-to-average ratio threshold, determining the peak corresponding to the peak-to-average ratio greater than the preset peak-to-average ratio threshold as the target peak includes:
comparing a plurality of peak-to-average ratios greater than the preset peak-to-average ratio threshold;
and determining the peak value corresponding to the largest peak-to-average ratio in the peak-to-average ratios larger than the preset peak-to-average ratio threshold as the target peak value.
In one embodiment, if the peak-to-average ratio of each segment of data is less than the preset peak-to-average ratio threshold, the method further comprises:
storing the peak-to-average ratio of each piece of data into a register, and re-acquiring new data to be synchronized;
determining a new target peak value according to the new data to be synchronized and the peak-to-average ratio stored in the register;
the step of determining the position of the target peak as the initial position of the preamble sequence code, and starting to synchronously receive the preamble sequence code according to the initial position to complete data synchronization includes:
and determining the position of the new target peak value as the initial position of the preamble sequence code, and starting to synchronously receive the preamble sequence code according to the initial position to finish data synchronization.
In one embodiment, if the data frame structure further includes a start delimiter, after determining a target peak according to the data to be synchronized, the method further includes:
determining a search position according to the position of the target peak value and a preset search window, receiving new data to be synchronized at the search position, and determining a new target peak value according to the new data to be synchronized;
and determining the position for receiving the target peak value as the starting position of the starting delimiter, starting to synchronously receive the starting delimiter according to the starting position of the starting delimiter, and finishing data synchronization.
In one embodiment, the determining a new target peak according to the new data to be synchronized includes:
determining a second peak-to-average ratio of the new data to be synchronized, and comparing the second peak-to-average ratio with a preset peak-to-average ratio threshold;
and if the second peak-to-average ratio is larger than the preset peak-to-average ratio threshold, determining a peak value corresponding to the second peak-to-average ratio as the new target peak value.
In a second aspect, an HBC data synchronization apparatus, the apparatus comprising:
the acquisition module is used for acquiring data to be synchronized; the data frame structure of the data to be synchronized comprises a preamble sequence code;
The determining module is used for determining a target peak value according to the data to be synchronized;
and the synchronous receiving module is used for determining the position for receiving the target peak value as the initial position of the preamble sequence code, and starting to synchronously receive the preamble sequence code according to the initial position to finish data synchronization.
In a third aspect, a computer device comprises a memory storing a computer program and a processor implementing the method according to the first aspect when executing the computer program.
In a fourth aspect, a computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method of the first aspect described above.
According to the HBC data synchronization method, the HBC data synchronization device, the computer equipment and the storage medium, the data to be synchronized is obtained, the target peak value is determined according to the data to be synchronized, the position of the target peak value is determined to be the initial position of the preamble sequence code, and the preamble sequence code is synchronously received according to the initial position, so that data synchronization is completed. According to the method, the HBC data synchronization is realized by searching the preamble sequence code, only the target peak value of the data to be synchronized is needed to be determined in the searching process, the HBC data synchronization can be completed at the position of the searched target peak value, occupied logic resources are relatively less, the purpose of reducing power consumption can be achieved, and particularly in the mechanism synchronization data based on human body communication, compared with the traditional method for synchronizing the data by adopting a Bluetooth or network mechanism, the HBC data synchronization method provided by the application can greatly reduce the power consumption of each signal receiver in a corresponding data transmission system.
Drawings
Fig. 1 is a schematic structural diagram of an application system of an HBC data synchronization method according to one embodiment;
figure 2 is a flow diagram of a method of HBC data synchronization in one embodiment;
FIG. 2A is a schematic diagram of a data frame structure in one embodiment;
FIG. 3 is a flow chart of one implementation of S102 in the embodiment of FIG. 2;
FIG. 3A is a diagram illustrating a data mapping scheme in one embodiment;
FIG. 4 is a flow chart of one implementation of S201 in the embodiment of FIG. 3;
FIG. 5 is a flow chart of one implementation of S202 in the embodiment of FIG. 3;
FIG. 6 is a flow chart of one implementation of S302 in the embodiment of FIG. 5;
figure 7 is a flow diagram of a method of HBC data synchronization in one embodiment;
figure 8 is a schematic diagram of a HBC data synchronization method in one embodiment;
FIG. 9 is a schematic diagram of a data frame structure in one embodiment;
figure 10 is a flow diagram of a method of HBC data synchronization in one embodiment;
FIG. 11 is a flow chart of one implementation of S601 in the embodiment of FIG. 10;
figure 12 is a flow diagram of a method of HBC data synchronization in one embodiment;
figure 13 is a flow diagram of a method of HBC data synchronization in one embodiment;
Figure 14 is a schematic diagram of the structure of an HBC data synchronization system in one embodiment;
figure 15 is a block diagram of the HBC data synchronization apparatus in one embodiment;
figure 16 is a block diagram of the HBC data synchronization apparatus in one embodiment;
figure 17 is a block diagram of the HBC data synchronization apparatus in one embodiment;
figure 18 is a block diagram of the HBC data synchronization apparatus in one embodiment;
figure 19 is a block diagram of the HBC data synchronization apparatus in one embodiment;
figure 20 is a block diagram of the HBC data synchronization apparatus in one embodiment;
figure 21 is a block diagram of the HBC data synchronization apparatus in one embodiment;
fig. 22 is an internal structural view of the computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The HBC data synchronization method provided by the application can be applied to an application system shown in figure 1. The system comprises a plurality of signal collectors Node and a signal receiver Hub. The main function of the Node is to collect data, the main function of Hub is to receive data, and the Hub and each Node transmit data through human body. The Node may be, but not limited to, various portable wearable devices such as an electrocardiograph, an oximetry, a blood pressure tester, an electroencephalogram tester, etc. used in the medical field. The Node may also be a signal acquisition device in other application fields, such as a mobile phone, a watch, a bracelet, and other portable wearable devices. Hub may be a stand-alone signal receiving device, a stand-alone server, or a server cluster of multiple servers.
It will be appreciated by those skilled in the art that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the application system to which the present inventive arrangements may be applied, and that a particular application system may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, as shown in fig. 2, there is provided an HBC data synchronization method, which is described by taking as an example that the method is applied to the signal receiver Hub in fig. 1, and includes the following steps:
s101, acquiring data to be synchronized; the data frame structure of the data to be synchronized includes a preamble sequence code.
The data to be synchronized is data with preset bit number received by the signal receiver, for example, the data can be 2048 bit data received or 512 bit data received. The data to be synchronized can be transmitted through a preset data frame structure, as shown in a data frame structure diagram shown in fig. 2A, the data frame structure includes a preamble sequence code PLCP, the preamble sequence code is a preamble of a physical layer, and a pseudorandom sequence Gold code consisting of 4 64 bits is mainly used for receiving data of a signal receiver.
In this embodiment, data is transmitted between the signal receiver and the signal collector by means of human body communication, that is, data transmission is performed between the signal receiver and the signal collector based on the frame structure of the physical layer of human body communication (Human Body Communications, HBC). Based on the application environment, when the signal collector collects data and transmits the collected data to the signal receiver in a human body transmission mode, the signal receiver can acquire data to be synchronized with preset digits, namely HBC data. Optionally, the signal receiver and the signal collector may also transmit data (e.g. wireless network transmission) through other transmission modes, where in this transmission mode, when the signal collector collects data and transmits the collected data to the signal receiver, the signal receiver may obtain the data to be synchronized at the current moment.
S102, determining a target peak value according to the data to be synchronized.
Wherein the target peak represents the position of the preamble code found in the data frame structure. The target peak value is an effective peak value corresponding to the data to be synchronized of a preset bit number received by the signal receiver.
In this embodiment, when the signal receiver obtains the data to be synchronized with the preset number of bits, for example, when receiving the data to be synchronized with 2048 bits, a corresponding method of accumulation and correlation operation may be further adopted to calculate the target peak value of the data to be synchronized with the preset number of bits. Alternatively, the signal receiver may also detect the peak value in the data to be synchronized with a preset number of bits by adopting other detection methods, so as to obtain the target peak value in the data to be synchronized. Specifically, the process of calculating the target peak value according to the sum and the correlation operation may include: for example, taking 2048-bit data to be synchronized as an example, directly performing accumulation and operation on 2048-bit data to be synchronized, determining a correlation value of the data to be synchronized received at the current moment according to the accumulation and operation result of 2048-bit data to be synchronized at the current moment and the accumulation and operation result of 2048-bit data to be synchronized at the previous moment, repeatedly calculating the correlation value of each data until 2048 correlation values are calculated, further calculating a peak value of 2048-bit data to be synchronized according to the 2048 correlation values, and determining the peak value as a target peak value of the data to be synchronized when the peak value is effective. Alternatively, 2048 bits of data to be synchronized may be segmented, and each segment of data is accumulated and correlated, the correlation value of each segment of data is calculated according to the method, then the peak value of each segment of data is calculated according to the correlation value of each segment of data, and validity check is performed on the peak value of each segment of data, so that an effective peak value is selected as a target peak value of the data to be synchronized. It should be noted that, any method for determining the peak value may be used in the method for calculating the peak value of the data according to the correlation value of the data, for example, a peak-to-average ratio calculation method may be used to calculate the peak value of the data according to the correlation value of the data, and any method for checking the validity of the peak value may be used in the method for checking the validity of the peak value, which is not limited herein.
S103, determining the position of the receiving target peak value as the initial position of the preamble sequence code, and starting to synchronously receive the preamble sequence code according to the initial position to complete data synchronization.
After the signal receiver obtains the target peak value based on the above steps, the position of the received target peak value can be determined as the starting position of the preamble sequence code, and the preamble sequence code starts to be synchronously received at the starting position, so that the transmission data is normally received later, and the data synchronization is completed.
According to the HBC data synchronization method provided by the embodiment, the data to be synchronized is obtained, the target peak value is determined according to the data to be synchronized, the position of the received target peak value is determined to be the initial position of the preamble sequence code, and the preamble sequence code is synchronously received according to the initial position, so that data synchronization is completed. According to the method, the HBC data synchronization is realized by searching the preamble sequence code, only the target peak value of the data to be synchronized is needed to be determined in the searching process, the HBC data synchronization can be completed at the position of the searched target peak value, occupied logic resources are relatively less, the purpose of reducing power consumption can be achieved, and particularly in the mechanism synchronization data based on human body communication, compared with the traditional method for synchronizing the data by adopting a Bluetooth or network mechanism, the HBC data synchronization method provided by the application can greatly reduce the power consumption of each signal receiver in a corresponding data transmission system.
In one embodiment, an implementation manner of the step S102 is provided, as shown in fig. 3, where the step S102 "determining a target peak value according to data to be synchronized" specifically includes:
s201, determining a first peak-to-average ratio of each piece of data in the data to be synchronized.
In this embodiment, the signal receiver may divide the data to be synchronized into multiple pieces of data for processing, for example, divide 2048 bits of data to be synchronized into 4 pieces of data, and each piece of data is 512 bits of data; alternatively, 2048 bits of data to be synchronized may be divided into 2 pieces of data, each piece of data is 1024 bits of data, and the number of divided pieces is not limited herein. Then, further calculating the first peak-to-average ratio of each piece of data, specifically calculating the first peak-to-average ratio of each piece of data, as shown in fig. 4, includes:
s2010, calculating the maximum correlation value of each piece of data in the data to be synchronized.
Alternatively, the signal receiver may calculate the correlation value of each piece of data according to the accumulated value of each piece of data at the current time and the accumulated value of each piece of data at the previous time, and select the maximum correlation value from the calculated correlation values as the maximum correlation value of each piece of data.
Alternatively, the signal receiver may calculate the accumulated value of each piece of data at the current time according to the following relation (1):
Wherein i represents the number of segments after dividing the data to be synchronized, and the value of i can be any natural integer; x represents each piece of data in each piece of data at the current moment received by the signal receiver; p represents the data of the preamble sequence code after mapping; n represents the data length of each preamble after mapping, e.g., n=512; k represents the serial number of data x; t represents the reception time, i.e., the current time; preamble_ Accumulator (t) _i represents an accumulated value of the i-th piece of data at the current time.
Calculating an accumulated value of each piece of data at the previous moment according to the method, wherein the accumulated value is represented by the following relational expression (2);
wherein x represents each piece of data in each piece of data at the last moment received by the signal receiver; p represents the data of the preamble sequence code after mapping; n represents the data length of each preamble after mapping, e.g., n=512; k represents the serial number of data x; t-1 represents the last time; the preamble_accumulator (t-1) indicates the correlation value of the i-th piece of data at the previous time.
Further, the signal receiver can obtain the correlation value of each piece of data by the following relation (3):
Preamble_Correlation(t)_i=Preamble_Accumulator(t)_i-Preamble_Accumulator(t-1)_i(3);
wherein, preamble_ Correlation (t) _i represents the related value of the ith segment of data in the data to be synchronized.
Specifically, after the signal receiver obtains the correlation value of each piece of data in the data to be synchronized, the maximum correlation value can be selected from the correlation values of each piece of data as the maximum correlation value of each piece of data. Assuming that the data to be synchronized is divided into 4 pieces of data, 4 maximum correlation values can be correspondingly obtained.
It should be noted that, when performing the above accumulation and correlation operation, the number of bits of the data to be calculated is selected to be the same as the number of bits of each mapped preamble sequence code (in this embodiment, the number of bits of each mapped preamble sequence code 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 the accumulation and correlation operation is performed on each segment of data, because in this embodiment, the preamble is 4 preambles, and the 4 preambles are mapped, the data to be synchronized is divided into 4 segments according to the number of preambles for processing. The mapping manner of the preamble sequence code may be implemented by using a data map as shown in fig. 3A. When the preamble sequence code is 0 in mapping, 8-bit number { 10 10 10 10} mapping can be adopted; when the preamble sequence code is 1, 8-bit number {0 10 10 10 1} mapping can be adopted, and one preamble is a 64-bit pseudo-random code, so that the preamble sequence code is changed into a 512-bit sequence code after mapping, and four preambles are changed into 2048-bit sequence codes after mapping. After mapping, half of data output by the preamble is 0, namely when the accumulator is used for dot product operation in the later period, the dot product operation can be completed only by hardware resources with the reduced number of the accumulator by half, so that the computing resources can be greatly saved, and the purpose of reducing the power consumption is achieved.
And S2011, calculating to obtain an average value of the correlation value of each piece of data.
After the signal receiver calculates the correlation value of each piece of data based on the steps, the average value operation can be performed on the correlation value of each piece of data to obtain the average value of the correlation value of each piece of data.
Alternatively, the signal receiver may calculate an average value of the correlation value of each piece of data using the relations (4) and (5):
wherein i represents the number of segments after dividing the data to be synchronized, and the value of i can be any natural integer; numBit represents the number of bits of data to be synchronized before division, for example, numbit=2048; l represents the number of segments for dividing the data to be synchronized, and any natural integer is taken; m represents the number of bits per piece of data, and is related to the number of pieces L of data to be synchronized and the number of bits NumBit of data to be synchronized before division, for example, numbit=2048, l=4, m=512; preamble_data_average_i represents an Average value of correlation values of the i-th piece of Data. In this embodiment, it is assumed that the Data to be synchronized is divided into 4 segments of Data, and after the above calculation, an Average value preamble_data_average_1 of the correlation values of the 1 st segment of Data, an Average value preamble_data_average_2 of the correlation values of the 2 nd segment of Data, an Average value preamble_data_average_3 of the correlation values of the 3 rd segment of Data, and an Average value preamble_data_average_4 of the correlation values of the 4 th segment of Data are obtained. In this embodiment, the signal receiver can perform the average value calculation once every m data, only one adder is needed.
And S2012, obtaining a first peak-to-average ratio of each piece of data in the data to be synchronized according to the average value of the maximum correlation value of each piece of data and the correlation value of each piece of data.
Alternatively, the signal receiver may calculate the first peak-to-average ratio of each piece of data according to the following relation (6) according to the correlation value of each piece of data and the average value of the correlation values of each piece of data:
wherein i represents the number of segments after dividing the data to be synchronized; max (preamble_ Correlation (t) _i) represents the maximum correlation value of the i-th segment Data in the Data to be synchronized, preamble_data_average_i represents the Average value of the correlation values of the i-th segment Data, and preamble_peak_average_ratio_i represents the first Peak-to-Average Ratio of the i-th segment Data. For example, assuming that the data to be synchronized is divided into 4 pieces of data, 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, preamble_peak_average_ratio_4.
S202, determining a target peak value according to the first peak-to-average ratio of each piece of data.
After the signal receiver obtains the first peak-to-average ratio of each piece of data based on the steps, the validity check can be carried out on the first peak-to-average ratio of each piece of data, and if the first peak-to-average ratio is valid, the maximum correlation value corresponding to the piece of data is the peak value on the piece of data; if the first peak-to-average ratio is invalid, it is indicated that there is no peak on the segment of data. Therefore, after the validity check is performed on the first peak-to-average ratio of each segment of data, the valid first peak-to-average ratio can be used as a target peak-to-average ratio, and then the maximum correlation value corresponding to the target peak-to-average ratio is determined as a target peak value. If there are a plurality of valid first peak-to-average ratios, for example 2 first peak-to-average ratios are valid, one of the largest peak-to-average ratios may be further selected and the target peak is determined from the largest peak-to-average ratio.
Optionally, a specific determination manner of the target peak is provided, as shown in fig. 5, and the method includes:
s301, comparing the first peak-to-average ratio of each piece of data with a preset peak-to-average ratio threshold.
The preset peak threshold is a reference index value for measuring whether the first peak-to-average ratio is valid or not, and can be determined in advance by the signal receiver according to an actual valid test standard.
Specifically, when the signal receiver performs validity verification on the first peak average value of each piece of data, the signal receiver can sequentially compare the first peak average value of each piece of data with a preset peak value threshold value, if the first peak average value ratio is greater than the preset peak value threshold value, the first peak average value ratio is determined to be valid, and the maximum correlation value corresponding to the first peak average value ratio is indicated to be valid, namely the maximum correlation value can be used as a valid peak value; if the first peak-to-average ratio is not greater than the preset peak threshold, determining that the first peak-to-average ratio is invalid, and indicating that the maximum correlation value corresponding to the first peak-to-average ratio is invalid, namely, the maximum correlation value cannot be used as an effective peak.
S302, determining a maximum correlation value corresponding to a first peak-to-average ratio greater than a preset peak-to-average ratio threshold as a target peak value.
In practical application, when the signal receiving device verifies that a first peak-to-average ratio corresponding to a piece of data in the data to be synchronized is valid according to the method, the maximum correlation value corresponding to the first peak-to-average ratio can be directly determined as a target peak value. There is also an application scenario in which the signal receiving device verifies that the first peak-to-average ratios corresponding to the multiple pieces of data in the data to be synchronized are all greater than the preset peak-to-average ratio threshold, that is, the first peak-to-average ratios of the multiple pieces of data are all valid, in this case, when the signal receiver performs the step of S302, as shown in fig. 6, the step may specifically be performed:
S401, comparing a plurality of peak-to-average ratios larger than a preset peak-to-average ratio threshold.
S402, determining the maximum correlation value corresponding to the maximum peak-to-average ratio in a plurality of peak-to-average ratios larger than a preset peak-to-average ratio threshold as a target peak value.
When the signal receiver determines that a plurality of peak-to-average ratios larger than a preset peak-to-average ratio threshold exist, the magnitude of each peak-to-average ratio can be further compared, the largest peak-to-average ratio is selected, and then the maximum correlation value corresponding to the largest peak-to-average ratio is determined as a target peak value.
It is added that when calculating the peak-to-average ratio of each piece of data (see relation (6)) is obtained by performing a ratio operation on the maximum correlation value of each piece of data and the average value of the correlation values of each piece of data, so that each peak-to-average ratio corresponds to a maximum correlation value, and if the peak-to-average ratio is valid, the corresponding maximum correlation value is valid, namely the peak value.
In practical application, there is an application scenario that the signal receiving device determines that there is no target peak value in the data to be synchronized with the preset number of bits, that is, the peak-to-average ratio corresponding to each segment of data in the verified data to be synchronized is invalid, in this case, it is indicated that the signal receiving device has not received valid data yet, it is necessary to re-receive new data to be synchronized, re-acquire the data to be synchronized with the preset number of bits, and re-determine the target peak value of the data to be synchronized, so as to determine that valid data is received. Therefore, in one embodiment, the present application further provides a method specifically executed by the signal receiver in a case where the peak-to-average ratio of each piece of data is smaller than a preset peak-to-average ratio threshold, as shown in fig. 7, where the method includes:
S501, storing the peak-to-average ratio of each piece of data into a register, and reacquiring new data to be synchronized.
When the peak-to-average ratio corresponding to each segment of data in the verified data to be synchronized is invalid, the peak-to-average ratio of each segment of data in the data to be synchronized, which is calculated before, can be stored in a register, and can be specifically stored in a register (for example, a 512-bit RAM) with corresponding size respectively; alternatively, the signal receiver may store the peak-to-average ratio of all pieces of data in one register (e.g., 2048bit RAM). When storing the peak-to-average ratio of each piece of data in the register, the peak-to-average ratio of each piece of data may be marked to mark the source of the data for each peak-to-average ratio.
When the peak-to-average ratio corresponding to each segment of data in the data to be synchronized checked by the signal receiver is invalid, new data to be synchronized can be acquired again to determine a new target peak value. In the method, since the peak-to-average ratio of each segment of data is a result obtained by performing the correlation accumulation operation on each segment of data by the signal receiver, the peak-to-average ratio of each segment of data is stored in the register, and then the operation result of the repeated data segment, namely the peak-to-average ratio, can be directly called when the correlation accumulation operation of the repeated data segment is performed, and the correlation accumulation operation is not required to be performed again, so that the consumption of hardware resources of the adder is reduced, and the hardware resources can be saved to a certain extent.
S502, determining a new target peak value according to the new data to be synchronized and the peak-to-average ratio stored in the register.
When the signal receiver acquires new data to be synchronized, the signal receiver may further acquire new data to be synchronized (e.g. 2048 bits) with a preset number of bits, and calculate the new target peak value of the data to be synchronized according to the foregoing method (embodiments of fig. 2-6), which is specifically referred to the foregoing calculation description and is not repeated herein. Alternatively, the signal receiver may perform accumulation and correlation operation on only the last segment of received data (for example, the last 512 bits of data) in the new data to be synchronized to obtain the peak-to-average ratio of the last segment of data, and then combine the peak-to-average ratios corresponding to other data segments stored in the register to jointly determine the new target peak value.
Correspondingly, when the signal receiver performs the step S103 "determining the position of the target peak as the start position of the preamble sequence code and starting to synchronously receive the preamble sequence code according to the start position and complete the data synchronization" in the embodiment of fig. 2, the signal receiver may specifically perform: and determining the position of the new target peak value as the initial position of the preamble sequence code, and starting to synchronously receive the preamble sequence code according to the initial position to complete data synchronization.
The present embodiment relates to a process of completing data synchronization by the signal receiver based on the new target peak, which is the same as the process of S103, and the detailed description of S103 is omitted here.
Exemplary of the method described in the embodiment of fig. 7, as shown in the schematic diagram of fig. 8, pr1, pr2, pr3, pr4, pr5, pr6 and … … are data received by the signal receiver, and Pr1, pr2, pr3, pr4, pr5 and Pr6 are mapped preambles (512 bits). After the signal receiver receives the data, the received Pr1, pr2, pr3, pr4 may be stored in a register (specifically, FIFO registers may be used), and then, by adopting the method described in the foregoing embodiment of fig. 3 to fig. 4, the correlation accumulation operation and the peak-to-average ratio operation are performed on the Pr1, pr2, pr3, pr4 in the register to obtain the peak-to-average ratio corresponding to each of Pr1, pr2, pr3, pr4, and then, the peak-to-average ratio corresponding to each of Pr1, pr2, pr3, pr4 is stored in the random access memory (Random Access Memory, RAM). And when the signal receiver determines that the peak-to-average ratios of Pr1, pr2, pr3 and Pr4 are invalid, acquiring new data to be synchronized (Pr 5) again, performing correlation accumulation operation and peak-to-average ratio operation on Pr5 by using an adder to obtain the peak-to-average ratio of Pr5, reading the peak-to-average ratios of Pr2, pr3 and Pr4 from the RAM, adding the peak-to-average ratio of Pr5, performing validity check on the peak-to-average ratios of Pr2, pr3, pr4 and Pr5 respectively, and determining the maximum correlation value corresponding to the valid peak-to-average ratio as a new target peak. After the signal receiver calculates the peak-to-average ratio of Pr5, the peak-to-average ratio of Pr5 may be stored in the RAM, and the peak-to-average ratio of Pr1 originally stored in the RAM may be deleted, so that the latest 4 peak-to-average ratios (for example, pr2, pr3, pr4, and Pr 5) are always reserved in the RAM, and the space size of the memory is fully utilized, so that no waste of the storage space is caused.
In the above embodiment, each time new data to be synchronized is acquired, a correlation accumulation operation is required, where only 1 adder is required to perform the correlation accumulation operation on the new data to be synchronized. Compared with the traditional method of carrying out correlation operation, which needs to occupy 4 adders each time, the method provided by the embodiment does not need repeated calculation, can greatly save calculation resources and improve calculation speed, thereby improving the efficiency of data synchronization.
In one embodiment, the present application also provides a data frame structure, as shown in fig. 9, which not only includes a preamble sequence code, but also includes a start delimiter (SFD in the figure). When the data frame structure of the signal received by the signal receiving device is the data frame structure shown in fig. 9, the present application further provides a method for searching for the start delimiter, that is, after the signal receiving device performs step S103 in fig. 2, as shown in fig. 10, the signal receiving device specifically further performs the steps of:
s601, determining a search position according to the position of the received target peak value and a preset search window, receiving new data to be synchronized at the search position, and determining a new target peak value according to the new data to be synchronized.
Wherein the preset search window may be predetermined by the signal receiver. In practical applications, the length of the search window plays a decisive role in the length of the search time, and the length of the search window can be generally calculated according to an empirical value. Optionally, in this embodiment, the offset of the chip may be calculated according to the clock synchronization deviation, and when the MAC layer performs clock synchronization, the system clock deviation may be calculated in real time, so that the length of the search window may be dynamically adjusted. According to the protocol standard, the accuracy of the clock frequency is 20ppm, and when calculated at a clock frequency of 42M, an offset of 840×2=1680 chips occurs in 1 second. The minimum allocation slot is 500us, and the length of 14 minimum allocation slots is taken as an Aloha allocation slot, so that the deviation of one Aloha allocation slot is 14×500/1000/1000×1680=11.76 chip offsets.
The length of the search window is determined based on the above method, and the size of the search window can be specifically defined to be 11.76 chips, so that the frame interval starting position (i.e., the starting position of the starting delimiter) can be accurately calculated. In practical application, the size of the search window can be continuously optimized, so that the accuracy of data synchronization is achieved.
In this embodiment, after the signal receiver determines the target peak value of the data to be synchronized, the signal receiver searches the preamble sequence code, so as to ensure the accuracy of the data synchronization later, the signal receiver may further search the start delimiter in the data frame structure, and if the start delimiter can be successfully searched later, the accuracy of the data synchronization may be improved. Specifically, after determining the target peak value of the data to be synchronized, the signal receiver determines the search position of the search start delimiter according to the receiving position of the target peak value and the preset search window, receives new data to be synchronized at the search position, and obtains a new target peak value of the new data to be synchronized according to the method for determining the target peak value described in S102 in the embodiment of fig. 2, where the new target peak value is the peak value corresponding to the search start delimiter.
S602, determining the position of the new target peak as the starting position of the starting delimiter, and starting to synchronously receive the starting delimiter according to the starting position to complete data synchronization.
After the signal receiver obtains a new target peak value based on the above steps, the position of the new target peak value can be determined as the starting position of the starting delimiter, and the starting delimiter starts to be synchronously received at the starting position, so that the transmission data can be normally received later, and the data synchronization is completed. The method can improve the accuracy of the synchronous data by searching the preamble sequence code, searching the initial delimiter successively, and then synchronizing the data according to the searching result.
Accordingly, there is further provided a specific implementation manner of "determining a new target peak value according to new data to be synchronized" in S601, as shown in fig. 11, according to the method described in the embodiment of fig. 10, where the method includes:
s701, determining a second peak-to-average ratio of the new data to be synchronized, and comparing the second peak-to-average ratio with a preset peak-to-average ratio threshold.
In this embodiment, when the signal receiver obtains new data to be synchronized, the number of bits of the new data to be synchronized is the same as the number of bits of the mapped initial delimiter (for example, 512 bits), the signal receiver performs accumulation and correlation operation and peak-to-average ratio operation on the new data to be synchronized to obtain a second peak-to-average ratio of the new data to be synchronized, and then compares the second peak-to-average ratio with a preset peak-to-average ratio threshold value to obtain a comparison result, so as to determine a new target peak corresponding to the new data to be synchronized according to the comparison result. The preset peak-to-average ratio threshold value may be the same as or different from the preset peak-to-average ratio threshold value used when determining the target peak value corresponding to the preamble sequence code.
Optionally, the signal receiver may calculate the accumulated value of the new data to be synchronized at the current time according to the new data to be synchronized acquired at the current time by the following relation (7):
Wherein 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 is mapped, q represents the data length after the start delimiter is mapped, e.g., q=512; j represents the serial number of the data v; t represents a reception time, for example, a current time; sfd_ Accumulator (t) represents the accumulated value of the new data to be synchronized at the current time.
Calculating an accumulated value of new data to be synchronized at the previous moment according to the method, wherein the accumulated value is represented by the following relational expression (8);
wherein 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 is mapped, q represents the data length after the start delimiter is mapped, e.g., q=512; j represents the serial number of the data v; t-1 represents the last time and sfd_accumulator (t-1) represents the accumulated value of the new data to be synchronized at the last time.
Further, the signal receiver may obtain a correlation value of the new data to be synchronized by the following relation (9):
Sfd_Correlation(t)=Sfd_Accumulator(t)-Sfd_Accumulator(t-1) (9);
where sfd_ Correlation (t) represents the correlation value of the new data to be synchronized.
It should be noted that, when performing the above-mentioned accumulation and correlation operation, the number of bits of the data to be calculated is selected to be the same as the number of bits of the mapped initial delimiter (in this embodiment, the number of bits of the mapped initial delimiter is 512 bits), that is, when calculating the correlation value of the new data to be synchronized, the accumulation and correlation operation is directly performed on the new data to be synchronized, where the mapping manner of the initial delimiter may also be implemented by using a data map as shown in fig. 3A, and the foregoing description is omitted herein.
Alternatively, the signal receiver may calculate an average value of correlation values of the new data to be synchronized using the relations (10) and (11):
Sfd_Data_Average=[∑ABS(Sfd_Correlation(t))]/q (10);
where q represents the data length of the start delimiter after mapping, e.g., q=512; t represents a reception time, for example, a current time; sfd_data_average represents an Average value of correlation values of new Data to be synchronized.
Optionally, the signal receiver may calculate the second peak-to-average ratio of the new data to be synchronized according to the following relation (6) according to the correlation value of the new data to be synchronized and the average value of the correlation values of the new data to be synchronized:
wherein max (sfd_ Correlation (t)) represents the maximum correlation value of the new data to be synchronized; sfd_data_average represents an Average value of correlation values of new Data to be synchronized. Sfd_peak_average_ratio represents the second Peak-to-Average Ratio of the new data to be synchronized.
S702, if the second peak-to-average ratio is greater than the preset peak-to-average ratio threshold, determining the maximum correlation value corresponding to the second peak-to-average ratio as a new target peak value.
When the signal receiver obtains a second peak-to-average ratio of new data to be synchronized according to the method, the second peak-to-average ratio can be compared with a preset peak-to-average ratio threshold value, if the second peak-to-average ratio is larger than the preset peak-to-average ratio threshold value, the second peak-to-average ratio is effective, and the maximum correlation value corresponding to the second peak-to-average ratio can be determined as a new target peak value; if the second peak-to-average ratio is not greater than the preset peak-to-average ratio threshold, the second peak-to-average ratio is invalid, the signal receiver is required to acquire new data to be synchronized again, and the operation is repeated until the second peak-to-average ratio corresponding to the new data to be synchronized is valid, so that a new target peak value of the new data to be synchronized can be determined.
The method searches the preamble sequence code, searches the start delimiter based on the searched preamble sequence code, and starts synchronizing data based on the searched start delimiter. In one embodiment, the present application also provides a method of searching for a start delimiter alone, as illustrated in fig. 12, the method comprising:
s801, obtaining data to be synchronized; the data frame structure of the data to be synchronized includes a start delimiter.
S802, determining a target peak value according to data to be synchronized.
S803, determining the position of the receiving target peak value as the starting position of the starting delimiter, and starting to synchronously receive the starting delimiter according to the starting position to complete data synchronization.
The method described in the above steps is basically the same as the method described in the above steps in the embodiment of fig. 2, but because the number of bits of the mapped start delimiter is 512, the data to be synchronized obtained in the embodiment is 512-bit data, and only the accumulation and correlation operation are needed for 512-bit data in the later stage, and the specific method can be referred to the description of the above embodiments and is not repeated here.
In an embodiment, the present application further provides an HBC data synchronization method, as shown in fig. 13, where the HBC data synchronization method includes:
S901, obtaining data to be synchronized.
S902, searching a preamble sequence code of the data to be synchronized, and if the preamble sequence code is searched, executing steps S903-S906; if no preamble is searched, step S909 is executed.
S903, determining a search position according to the receiving position of the preamble sequence code and a preset search window.
And S904, receiving new data to be synchronized at the search position.
S905, searching for a start delimiter for the new data to be synchronized, if the start delimiter is searched, executing steps S906-S907, and if the start delimiter is not searched, executing step S910.
S906, determining that the search is successful, and starting to synchronously receive the start delimiter and the frame header data of the data frame structure at the position where the start delimiter is searched.
S907, parse the frame header data, and perform CRC check statistics on the frame header data, if the frame header data passes the check, S908 is executed, and if the frame header data does not pass the check, S911 is executed.
S908, starting to receive the effective data and finishing data synchronization.
S909, re-receiving the data to be synchronized to perform preamble code search until the preamble code is searched.
S910, the data to be synchronized is received again to search for the start delimiter until the start delimiter is searched.
S911, return to the step of S901, and re-execute the following steps until the data synchronization is completed.
The methods described in the foregoing steps are all described in the foregoing embodiments (the preamble searching method corresponds to the method described in the foregoing embodiments of fig. 2-8, the start delimiter corresponds to the method described in the foregoing embodiments of fig. 9-12), and the detailed description is omitted herein.
Based on the methods described in all the embodiments, the present application further provides an HBC data synchronization system, as shown in fig. 14, where the HBC data synchronization system includes: the system comprises a signal receiver and at least one signal transmitter, wherein human body communication is carried out between the signal receiver and each signal transmitter, and meanwhile, the signal receiver can transmit received data to a cloud computing center for processing and storage. The signal transmitter may be a signal acquisition device, such as an electrocardiograph, blood oxygenation, etc. acquisition of signals while transmitting the acquired signals to the signal receiver. In the data synchronization system, the signal receiver provides a relatively large capacitance, while the signal transmitter provides a relatively small capacitance, and requires a relatively long time to operate, and thus requires a reduction in power consumption of the signal transmitter. In addition, the signal transmitter has the main function of collecting and transmitting data, so that the main power consumption in the data synchronization system is data transmission, and the receiving function is relatively less, thus simplifying the correlation operation to achieve the purpose of reducing the overall power consumption, such as adopting single-data sampling. Since the primary function of the signal receiver is to receive the data from each signal transmitter, four times the data sampling can be used to accurately synchronize the transmission of data.
The HBC data synchronization system shown in fig. 14 may be applied to the HBC data synchronization method described in the foregoing embodiment of fig. 2 to 13, and in order to reduce power consumption of each component in the data transmission system, data synchronization between the signal transmitter and the signal receiver may be performed by the data synchronization method described in the embodiment of fig. 2 to 8 (i.e., performing data synchronization by means of searching for preamble sequence codes), or by the data synchronization method described in the embodiment of fig. 12 (i.e., performing data synchronization by means of searching for start delimiter sequence codes), so as to reduce power consumption. To improve the accuracy and efficiency of data synchronization, the data synchronization between the signal transmitter and the signal receiver may be performed by the data synchronization method described in the embodiment of fig. 10 or fig. 11 (i.e., searching for the preamble sequence code and searching for the start delimiter sequence code). The HBC data synchronization system provided by the application can select different data synchronization methods to complete data synchronization according to actual application requirements.
It should be understood that, although the steps in the flowcharts of fig. 2-13 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in FIGS. 2-13 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 15, there is provided an HBC data synchronization apparatus including:
an acquisition module 11, configured to acquire data to be synchronized; the data frame structure of the data to be synchronized comprises a preamble sequence code;
a determining module 12, configured to determine a target peak value according to the data to be synchronized;
and the synchronous receiving module 13 is used for determining the position for receiving the target peak value as the initial position of the preamble sequence code, and starting to synchronously receive the preamble sequence code according to the initial position to complete data synchronization.
In one embodiment, as shown in fig. 16, the determining module 12 includes:
a first determining unit 121, configured to determine a first peak-to-average ratio of each piece of data in the data to be synchronized;
a second determining unit 122, configured to determine the target peak value according to the first peak-to-average ratio of each piece of data.
In one embodiment, as shown in fig. 17, the first determining unit 121 includes:
a first calculating subunit 1211, configured to calculate a maximum correlation value of each piece of data in the data to be synchronized;
a second calculating subunit 1212, configured to calculate an average value of correlation values of each segment of data in the data to be synchronized;
The first determining subunit 1213 is configured to obtain a first peak-to-average ratio of each piece of data in the data to be synchronized according to an average value of the maximum correlation value of each piece of data and the correlation value of each piece of data.
In one embodiment, as shown in fig. 18, the second determining unit 122 includes:
a first comparing subunit 1221, configured to compare the first peak-to-average ratio of each piece of data with a preset peak-to-average ratio threshold;
the second determining subunit 1222 is configured to determine a maximum correlation value corresponding to the first peak-to-average ratio greater than the preset peak-to-average ratio threshold as the target peak value.
In one embodiment, the second determining subunit 1222 is specifically configured to compare a plurality of peak-to-average ratios greater than the preset peak-to-average ratio threshold; and determining the maximum correlation value corresponding to the maximum peak-to-average ratio of the peak-to-average ratios larger than the preset peak-to-average ratio threshold as the target peak value.
In one embodiment, as shown in fig. 19, the HBC data synchronization apparatus further includes:
a storage module 14, configured to store the peak-to-average ratio of each piece of data into a register, and reacquire new data to be synchronized;
a new determining module 15, configured to determine a new target peak value according to the new data to be synchronized and a peak-to-average ratio stored in the register:
Correspondingly, the synchronous receiving module 13 is specifically configured to determine a position for receiving the new target peak value as a starting position of the preamble sequence code, and start to synchronously receive the preamble sequence code according to the starting position, so as to complete data synchronization.
In one embodiment, as shown in fig. 20, the HBC data synchronization apparatus further includes:
a redetermining module 16, configured to determine a search position according to the position of the target peak value and a preset search window, receive new data to be synchronized at the search position, and determine a new target peak value according to the new data to be synchronized;
a resynchronization module 17, configured to determine a position of the new target peak as a start position of the start delimiter, and start to synchronously receive the start delimiter according to the start position, so as to complete data synchronization.
In one embodiment, as shown in fig. 21, the redetermining module 16 includes:
a comparing unit 161, configured to determine a 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;
and a third determining unit 162, configured to determine, as the new target peak, a maximum correlation value corresponding to the second peak-to-average ratio if the second peak-to-average ratio is greater than the preset peak-to-average ratio threshold.
For specific limitations of the HBC data synchronization apparatus, reference may be made to the above limitation of the HBC data synchronization method, and no further description is given here. The above-described individual modules in the HBC data synchronization apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 22. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an 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 of the computer device is used for storing data to be synchronized. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a HBC data synchronization method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 22 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring data to be synchronized; the data frame structure of the data to be synchronized comprises a preamble sequence code;
determining a target peak value according to the data to be synchronized;
and determining the position of the target peak value as the initial position of the preamble sequence code, and starting to synchronously receive the preamble sequence code according to the initial position to finish data synchronization.
The computer device provided in the foregoing embodiments has similar implementation principles and technical effects to those of the foregoing method embodiments, and will not be described herein in detail.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
Acquiring data to be synchronized; the data frame structure of the data to be synchronized comprises a preamble sequence code;
determining a target peak value according to the data to be synchronized;
and determining the position of the target peak value as the initial position of the preamble sequence code, and starting to synchronously receive the preamble sequence code according to the initial position to finish data synchronization.
The foregoing embodiment provides a computer readable storage medium, which has similar principles and technical effects to those of the foregoing method embodiment, and will not be described herein.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (RandomAccess Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (12)

1. A method for HBC data synchronization, said method comprising:
acquiring data to be synchronized; the data frame structure of the data to be synchronized comprises a preamble sequence code;
determining a target peak value according to the data to be synchronized;
and determining the starting position of the preamble sequence code or the starting position of the starting delimiter according to the situation that whether the data frame structure of the data to be synchronized further comprises the starting delimiter or not and determining the starting position of the preamble sequence code or the starting position of the starting delimiter according to the starting position of the preamble sequence code, and starting to synchronously receive the preamble sequence code or the starting delimiter according to the starting position of the starting delimiter, so as to complete data synchronization.
2. The method of claim 1, wherein determining a target peak from the data to be synchronized comprises:
determining a first peak-to-average ratio of each piece of data in the data to be synchronized;
and determining the target peak value according to the first peak-to-average ratio of each piece of data.
3. The method of claim 2, wherein determining the first peak-to-average ratio for each segment of the data in the data to be synchronized comprises:
calculating the maximum correlation value of each piece of data in the data to be synchronized;
calculating the average value of the correlation value of each segment of data in the data to be synchronized;
and obtaining a first peak-to-average ratio of each piece of data in the data to be synchronized according to the average value of the maximum correlation value of each piece of data and the correlation value of each piece of data.
4. The method of claim 2, wherein said determining said target peak from said first peak-to-average ratio of each segment of data comprises:
comparing the first peak-to-average ratio of each segment of data with a preset peak-to-average ratio threshold;
and determining the maximum correlation value corresponding to the first peak-to-average ratio greater than the preset peak-to-average ratio threshold as the target peak value.
5. The method of claim 4, wherein if there are a plurality of peak values corresponding to peak-to-average ratios greater than the preset peak-to-average ratio threshold, determining the peak value corresponding to the peak-to-average ratio greater than the preset peak-to-average ratio threshold as the target peak value comprises:
Comparing a plurality of peak-to-average ratios greater than the preset peak-to-average ratio threshold;
and determining the maximum correlation value corresponding to the maximum peak-to-average ratio of the peak-to-average ratios larger than the preset peak-to-average ratio threshold as the target peak value.
6. The method of claim 4, wherein if the peak-to-average ratio of each piece of data is less than the preset peak-to-average ratio threshold, the method further comprises:
storing the peak-to-average ratio of each piece of data into a register, and re-acquiring new data to be synchronized;
determining a new target peak value according to the new data to be synchronized and the peak-to-average ratio stored in the register;
the step of determining the position of the target peak as the initial position of the preamble sequence code, and starting to synchronously receive the preamble sequence code according to the initial position to complete data synchronization includes:
and determining the position of the new target peak value as the initial position of the preamble sequence code, and starting to synchronously receive the preamble sequence code according to the initial position to finish data synchronization.
7. The method of claim 1, wherein if the start delimiter is not included in the data frame structure, the determining the start position of the preamble sequence code based on the position at which the target peak is received comprises:
And determining the position of the target peak as the starting position of the preamble sequence code.
8. The method of claim 1, wherein if the start delimiter is further included in the data frame structure, determining a start position of the start delimiter based on a position at which the target peak is received comprises:
determining a search position according to the position of the target peak value and a preset search window, receiving new data to be synchronized at the search position, and determining a new target peak value according to the new data to be synchronized;
the location at which the new target peak is received is determined as the starting location of the start delimiter.
9. The method of claim 8, wherein said determining a new target peak from said new data to be synchronized comprises:
determining a second peak-to-average ratio of the new data to be synchronized, and comparing the second peak-to-average ratio with a preset peak-to-average ratio threshold;
and if the second peak-to-average ratio is larger than the preset peak-to-average ratio threshold, determining the maximum correlation value corresponding to the second peak-to-average ratio as the new target peak value.
10. An HBC data synchronization apparatus, comprising:
The acquisition module is used for acquiring data to be synchronized; the data frame structure of the data to be synchronized comprises a preamble sequence code;
the determining module is used for determining a target peak value according to the data to be synchronized;
and the synchronous receiving module is used for determining the initial position of the preamble sequence code or the initial position of the initial delimiter according to the condition that whether the data frame structure of the data to be synchronized further comprises the initial delimiter or not and according to the position of the target peak value, starting to synchronously receive the preamble sequence code according to the initial position of the preamble sequence code or starting to synchronously receive the initial delimiter according to the initial position of the initial delimiter, and finishing data synchronization.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 9 when the computer program is executed.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 9.
CN202310666248.0A 2020-12-28 2020-12-28 HBC data synchronization method, computer device and storage medium Pending CN116668462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310666248.0A CN116668462A (en) 2020-12-28 2020-12-28 HBC data synchronization method, computer device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011580809.8A CN114760319B (en) 2020-12-28 2020-12-28 HBC data synchronization method, computer device and storage medium
CN202310666248.0A CN116668462A (en) 2020-12-28 2020-12-28 HBC data synchronization method, computer device and storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202011580809.8A Division CN114760319B (en) 2020-12-28 2020-12-28 HBC data synchronization method, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN116668462A true CN116668462A (en) 2023-08-29

Family

ID=82324674

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310666248.0A Pending CN116668462A (en) 2020-12-28 2020-12-28 HBC data synchronization method, computer device and storage medium
CN202011580809.8A Active CN114760319B (en) 2020-12-28 2020-12-28 HBC data synchronization method, computer device and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202011580809.8A Active CN114760319B (en) 2020-12-28 2020-12-28 HBC data synchronization method, computer device and storage medium

Country Status (1)

Country Link
CN (2) CN116668462A (en)

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100937602B1 (en) * 2007-12-13 2010-01-20 한국전자통신연구원 Human body communication system and communication method thereof
KR101537312B1 (en) * 2008-10-23 2015-07-16 삼성전자주식회사 Apparatus and method for transmitting and receiveing data in human bodycommunication
JP2011003948A (en) * 2009-06-16 2011-01-06 Sony Corp Data processing apparatus and method, receiving apparatus and method, synchronous detection apparatus and method, and computer program
US7920599B1 (en) * 2010-02-03 2011-04-05 Anna University Methods and systems for synchronizing wireless transmission of data packets
KR101580479B1 (en) * 2011-02-08 2015-12-29 한국전자통신연구원 Transmitter, receiver and the method thereof in human body communication
US20130003886A1 (en) * 2011-07-01 2013-01-03 Electonics And Telecommunications Research Institute Method for generating and detecting preamble, and digital communication system based on the same
CN102378354A (en) * 2011-11-04 2012-03-14 中国兵器工业第二〇六研究所 Synchronization method for short-term burst communication
WO2013140910A1 (en) * 2012-03-22 2013-09-26 古野電気株式会社 Signal search method, signal search program, signal search device, global navigation satellite system (gnss) signal receiver, and information terminal
CN106557497A (en) * 2015-09-25 2017-04-05 阿里巴巴集团控股有限公司 A kind of method of data synchronization and device
US10033491B2 (en) * 2015-11-25 2018-07-24 Electronics And Telecommunications Research Institute Data transmission device for human body communication, preamble generation method thereof, and frame synchronization method thereof
KR101803317B1 (en) * 2016-07-20 2017-12-05 한국전자통신연구원 Capsule endoscope transmitter and capsule endoscope receiver configured to perform human body communication and method of human body communication using the same
EP3370365B1 (en) * 2017-03-02 2020-07-01 Nxp B.V. Processing module and associated method
CN109005137B (en) * 2018-08-17 2020-12-11 北京智芯微电子科技有限公司 Frame synchronization method and system for OFDM system receiver
CN109818644B (en) * 2019-02-02 2020-08-11 深圳市华智芯联科技有限公司 Signal synchronization method and device, computer equipment and storage medium
CN109831287B (en) * 2019-03-08 2020-08-04 深圳市华智芯联科技有限公司 Signal synchronization method, device, system, computer equipment and storage medium
CN110493744B (en) * 2019-08-20 2022-02-01 郑州大学 Data synchronous acquisition method and system of master-slave wireless sensor
CN110974416B (en) * 2019-12-23 2021-02-19 武汉联影智融医疗科技有限公司 Puncture parameter determination method, device, system, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114760319A (en) 2022-07-15
CN114760319B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN101951273B (en) Long code word acquisition method for wireless sensor network
CN110755059B (en) Blood pressure waveform monitoring method and device
CN102340796B (en) Secondary synchronization channel detection method and device
CN114760319B (en) HBC data synchronization method, computer device and storage medium
CN112910499A (en) Spread spectrum signal accurate acquisition system
CN110727004A (en) Weil code generation method and device and storage medium
CN111404853B (en) Carrier frequency offset estimation method, device and computer storage medium
CN114785653B (en) Symbol synchronization method, system, equipment and readable storage medium
CN104008080A (en) Serial data analytic method and device
US9138143B2 (en) Annotating medical data represented by characteristic functions
CN201152895Y (en) GPS signal correlating device
CN111290305B (en) Multi-channel digital quantity acquisition and processing anti-collision method and system for multiple sets of inertial navigation systems
US8495038B2 (en) Validating sensor data represented by characteristic functions
US8583718B2 (en) Comparing boolean functions representing sensor data
US20230053088A1 (en) Waveform synchronization system for data received from a network
CN114337725B (en) Method, apparatus, device and medium for synchronizing incoherent direct sequence spread spectrum signal bit
CN108763109B (en) Data storage method and device and application thereof
WO2019036926A1 (en) Acceleration information-based foot step counting method and apparatus, and device
CN114488019A (en) Multichannel data acquisition method, device, acquisition equipment and acquisition system
KR102190822B1 (en) Method for processing biological signals based on parallel processing and apparatus for the same
US20210052166A1 (en) Synchronization of physiological data
CN105141561A (en) Low resource consumption high precision OFDM-PON system symbol synchronization method
CN108494715A (en) A kind of primary synchronization signal catching method of lte-a system
JP6935894B2 (en) Sensor systems, receivers, programs, and signal sources
CN114025420B (en) 5G NR master synchronization detection method and device and wireless terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination