CN114124105B - Digital signal data compression, encryption and decoding method - Google Patents

Digital signal data compression, encryption and decoding method Download PDF

Info

Publication number
CN114124105B
CN114124105B CN202111502408.5A CN202111502408A CN114124105B CN 114124105 B CN114124105 B CN 114124105B CN 202111502408 A CN202111502408 A CN 202111502408A CN 114124105 B CN114124105 B CN 114124105B
Authority
CN
China
Prior art keywords
pulse
template
waveform
num
array
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.)
Active
Application number
CN202111502408.5A
Other languages
Chinese (zh)
Other versions
CN114124105A (en
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.)
Maple Valley Chengdu Technology Co ltd
Original Assignee
Maple Valley Chengdu 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 Maple Valley Chengdu Technology Co ltd filed Critical Maple Valley Chengdu Technology Co ltd
Priority to CN202111502408.5A priority Critical patent/CN114124105B/en
Publication of CN114124105A publication Critical patent/CN114124105A/en
Application granted granted Critical
Publication of CN114124105B publication Critical patent/CN114124105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/70Type of the data to be coded, other than image and sound
    • 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/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The invention discloses a digital signal data compression, encryption and decoding method; the method is carried out on the basis of a waveform segmentation technology and a waveform template library construction technology, and a pulse waveform is segmented into a rising edge, a peak and a falling edge; comparing each part of the segmented waveform with the existing template in a template library by adopting an image recognition method, and finding out the template with the closest shape as an optimal matching template under the given precision requirement; remembering the number of the best matching template, if the matching is not successful in the existing template library, adding the waveform data as a new template into the existing template library and numbering, after all parts of the waveform are matched, representing all information of the signal by using a group of template numbers and special parameters such as the arrival time of marks of the waveform, and recording the information as waveform fingerprint codes; the fingerprint code is used for replacing actual data of a waveform, so that the signal data volume is greatly reduced while the accuracy of a digital signal is ensured; meanwhile, the encryption of the signals is realized.

Description

Digital signal data compression, encryption and decoding method
Technical Field
The invention belongs to the technical field of digital signal analysis and processing, and particularly relates to a digital signal data compression, encryption and decoding method.
Background
Different sensors output pulse signals carrying different physical information, the signals are analog signals, in the network layout, the near end of the sensor is followed by a waveform digitization device, the analog signals output by the sensor are converted into digital signals through analog/digital conversion as soon as possible, and the digital signals have the following commonalities: 1 the digital signal at this time may be represented by a series of time, amplitude data sequences, referred to as time domain signals.
2 the analog signal introduces digital noise in the process of being digitized. The digital noise is reduced along with the improvement of sampling frequency and conversion digit in analog/digital conversion, but the cost of reducing the digital noise is that the data volume is greatly increased, which brings burden to subsequent transmission and data processing and forms the contradiction between sampling precision and data volume.
3 the shapes of different types of physical pulse waveforms output by the same sensor are different, and the shapes of the same type of physical signals output by the same sensor are highly similar.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a digital signal data compression, encryption and decoding method.
The purpose of the invention is realized by the following technical scheme:
a method for compressing, encrypting and decoding digital signal data, characterized by: the method comprises the following steps:
step S1: constructing a pulse fingerprint coding data structure;
constructing a head structure: the method comprises the steps of starting a mark, a data frame type, a data length, a sampling rate and an ADC bit number;
constructing a middle structure: the method comprises the steps of triggering time, pulse numbering, pulse polarity rising edge template numbering, peak template numbering and falling edge template numbering;
constructing a tail structure: including check code and end mark;
the trigger time of the middle structure is synchronous with the ADC clock;
step S2: constructing empty matrices
Figure 173844DEST_PATH_IMAGE001
Starting measurement, wherein the empty matrix is used for a space of a pulse waveform template library, A in the empty matrix is used for storing a trigger value array, B is used for storing a peak width value array, C is used for storing a rising edge coefficient array, D is used for storing a peak coefficient array, and E is used for storing a falling edge coefficient array;
step S3: completing the construction of a waveform template base and the generation of pulse waveform fingerprint codes at the same time of measurement;
step S4: after the measurement is finished, a waveform template database and a pulse fingerprint coding database of the measurement are obtained;
step S5: and respectively transmitting the measured fingerprint codes of the waveform template library and the pulse waveform to a signal receiving end, and finishing decoding and waveform signal reconstruction by the signal receiving end according to the template library data and the pulse fingerprint code information.
Further, the step S3 further includes a waveform template library construction and pulse waveform fingerprint code generation method, and the specific steps are as follows:
s3.1: counting the number of pulses sensed by the system and numbering the pulses, if the Num pulse is sensed;
s3.2: recording the absolute time of the triggering moment of the Num pulse by using a synchronous clock in the analog-digital converter, wherein the timing precision is determined by the sampling frequency of the analog-digital converter;
s3.3: the Num analog pulse signals are converted into Num digital pulse signals through an analog/digital converter;
s3.4: dividing a single pulse waveform into a rising edge image, a peak image and a falling edge image, and calculating a trigger value array of the pulse signal
Figure 123346DEST_PATH_IMAGE002
Array of peak widths
Figure 274841DEST_PATH_IMAGE003
Rising edge coefficient array
Figure 600780DEST_PATH_IMAGE004
Array of crest coefficients
Figure 29488DEST_PATH_IMAGE005
Array of falling edge coefficients
Figure 540104DEST_PATH_IMAGE006
And the trigger value array, the peak width array, the rising edge coefficient array, the peak coefficient array and the falling edge coefficient array are collected into a feature array of Num pulses;
s3.5: if the signal is the first signal obtained in the measurement, namely Num =1, the characteristic arrays of the signal obtained in the fourth step are respectively stored in
Figure 788682DEST_PATH_IMAGE001
The sub-templates of the pulse are respectively set as templates of A1, B1, C1, D1 and E1;
s3.6: if the signal is not in the measurementThe first signal obtained, i.e.
Figure 918312DEST_PATH_IMAGE007
Comparing the five groups of template arrays of the signal obtained in the fourth step with the existing template data in the template library respectively, if a certain characteristic array of the pulse is the same as the existing template value in the corresponding template library, not forming a new template by the characteristic array of the Num number pulse, and if the certain characteristic array of the Num number pulse is not the same as the existing template in the corresponding template library, adding the characteristic value serving as the new template into the corresponding sub-template library and numbering the new template.
Further, the step S3 further includes the following steps: filling information such as the triggering time, the pulse number, the sampling rate, the ADC digit, the pulse polarity and the like of the Num pulse into the head structure in the step S1, filling the rising edge template number, the peak template number and the falling edge template number of the Num pulse into the middle structure in the step S1, and filling the tail structure in the step S1 with an end bit to form the fingerprint code FcodeNum of the Num pulse.
Further, step S5 includes a method for digitally reconstructing the pulse signal:
s5.1: reading the pulse fingerprint coding data according to the definition of the fingerprint coding data structure, and obtaining the pulse information:
header structure data: sampling rate: the number of the Sps is measured by a sensor,
the number of transform bits: the number of nbit is not limited,
data in the middle: pulse numbering: the number of the Num is not more than two,
time of pulse trigger
Figure 326160DEST_PATH_IMAGE008
: hh min sec snd ms um ns at MM day DD of YY month of year,
pulse polarity: 0 (negative pulse, 1 positive pulse,
pulse trigger value array template numbering: noa
Numbering the pulse peak width value array templates: NoB
Pulse rising edge array template numbering: NoC
Pulse peak array template numbering: NoD
Pulse falling edge array template numbering: NoE
S5.2, decoding, and searching a template value corresponding to the middle data of the structure of the pulse fingerprint code No. Num by contrasting with a template library:
Figure 883043DEST_PATH_IMAGE010
Figure 743552DEST_PATH_IMAGE012
Figure 676873DEST_PATH_IMAGE014
Figure 814593DEST_PATH_IMAGE016
Figure 669941DEST_PATH_IMAGE018
s5.3: pulse signal reconstruction:
after decoding, arranging the pulse numbers in sequence from small to large:
s5.31 pulse shape reconstruction:
array according to formula 1
Figure 893112DEST_PATH_IMAGE019
Substituting the value into a rising edge fitting polynomial to obtain a Num pulse rising edge analytical expression:
equation 1:
Figure 630124DEST_PATH_IMAGE021
z in formula 1 represents the pulse shape image abscissa coordinate value,
Figure 746984DEST_PATH_IMAGE022
a coordinate value representing a vertical coordinate of the pulse rising edge shape image;
array according to formula 2
Figure 645670DEST_PATH_IMAGE023
Substituting the value into a pulse peak fitting polynomial to obtain a peak shape analytical expression of the Num pulse:
equation 2:
Figure 480771DEST_PATH_IMAGE025
in equation 2
Figure 755895DEST_PATH_IMAGE026
Representing the ordinate coordinate value of the pulse peak shape image;
according to equation 3, the arrays are
Figure 602628DEST_PATH_IMAGE027
Substituting the value into a pulse falling edge fitting polynomial to obtain a falling edge shape analytic expression of the pulse Num:
equation 3:
Figure 796849DEST_PATH_IMAGE029
in equation 3
Figure 994612DEST_PATH_IMAGE030
Representing the ordinate coordinate value of the pulse falling edge shape image;
s5.32: pulse width reconstruction
To be provided with
Figure 73426DEST_PATH_IMAGE031
For the pulse baseline amplitude value, will
Figure 899300DEST_PATH_IMAGE032
Data in template
Figure 405368DEST_PATH_IMAGE033
Substituting into formula 4 to obtain the peak amplitude of the Num pulse
Figure 949482DEST_PATH_IMAGE034
Equation 4:
Figure 566408DEST_PATH_IMAGE036
will be provided with
Figure 387733DEST_PATH_IMAGE034
And
Figure 189336DEST_PATH_IMAGE032
data in template
Figure 96112DEST_PATH_IMAGE037
Substituting equation 5 can obtain the pulse end point amplitude value
Figure 516729DEST_PATH_IMAGE039
Equation 5:
Figure 317195DEST_PATH_IMAGE041
will be provided with
Figure 165065DEST_PATH_IMAGE034
And
Figure 824717DEST_PATH_IMAGE042
data in template
Figure 657148DEST_PATH_IMAGE043
Substituting equation 6 to obtain the amplitude value of the peak start point of the pulse
Figure 453066DEST_PATH_IMAGE045
Equation 6:
Figure 330892DEST_PATH_IMAGE047
will be provided with
Figure 477840DEST_PATH_IMAGE034
And
Figure 974680DEST_PATH_IMAGE042
data in template
Figure 15317DEST_PATH_IMAGE048
Substituting into equation 7 to obtain the amplitude value of the pulse peak ending point
Figure 939411DEST_PATH_IMAGE050
Equation 7:
Figure 167130DEST_PATH_IMAGE052
order to
Figure 467661DEST_PATH_IMAGE054
Substituting the equation into equation 1 to obtain the abscissa z value of the starting point of the Num pulse
Figure 238171DEST_PATH_IMAGE056
Order to
Figure 723379DEST_PATH_IMAGE058
Substituting the equation 2 to obtain the abscissa z of the starting point of the peak of the Num pulse, so as to
Figure 313761DEST_PATH_IMAGE060
Order to
Figure 417983DEST_PATH_IMAGE062
Substituting the equation 3 to obtain the abscissa value z of the peak end point of the Num pulse, so that
Figure 433212DEST_PATH_IMAGE064
Order to
Figure 699108DEST_PATH_IMAGE066
Substituting the equation 4 to obtain the horizontal coordinate value z of the pulse end point of Num, so that
Figure 901420DEST_PATH_IMAGE068
The pulse Num number rises the edge width
Figure 543754DEST_PATH_IMAGE069
Comprises the following steps:
equation 8:
Figure 23277DEST_PATH_IMAGE071
pulse peak width of Num
Figure 850287DEST_PATH_IMAGE072
Comprises the following steps:
equation 9:
Figure 415261DEST_PATH_IMAGE074
pulse peak width of Num
Figure 861285DEST_PATH_IMAGE075
Comprises the following steps:
equation 10:
Figure 322878DEST_PATH_IMAGE077
pulse width of Num
Figure 196156DEST_PATH_IMAGE078
Comprises the following steps:
equation 11:
Figure 373060DEST_PATH_IMAGE080
s5.33: time-amplitude sequence reconstruction
Obtaining the length of the pulse time sequence matrix of the Num number according to the formula 12
Figure 622776DEST_PATH_IMAGE081
Equation 12:
Figure 811311DEST_PATH_IMAGE083
obtain the time sequence matrix of the pulse number Num
Figure 980125DEST_PATH_IMAGE084
Each element in equation 13 represents the relative time when the Num pulse data occurs:
equation 13:
Figure 519690DEST_PATH_IMAGE086
absolute time corresponding to Num pulse data
Figure 307518DEST_PATH_IMAGE087
From equation 14:
equation 14:
Figure 740773DEST_PATH_IMAGE089
in equation 14
Figure 690275DEST_PATH_IMAGE008
The absolute trigger time of the pulse Num is represented;
equation 15 calculates the length of the rising edge time series of the pulse Num
Figure 107349DEST_PATH_IMAGE090
Equation 15:
Figure 167709DEST_PATH_IMAGE092
get the pulse rising edge time sequence matrix of the Num number
Figure 596417DEST_PATH_IMAGE093
Each element in the matrix of formula 16 represents the relative time of occurrence of the Num pulse data;
equation 16:
Figure 107032DEST_PATH_IMAGE095
Will be provided with
Figure 621190DEST_PATH_IMAGE093
Middle t value and Num pulse fingerprint coding
Figure 609875DEST_PATH_IMAGE096
Substituting the corresponding template parameters into the formula 1 to obtain the Num pulse rising edge amplitude sequence matrix
Figure 158668DEST_PATH_IMAGE097
Expressed as:
equation 17:
Figure 449972DEST_PATH_IMAGE099
will be provided with
Figure 576060DEST_PATH_IMAGE100
Middle t value and Num number pulse fingerprint coding
Figure 243802DEST_PATH_IMAGE101
Substituting the corresponding template parameters into formula 2 to obtain the Num pulse peak amplitude sequence matrix
Figure 647101DEST_PATH_IMAGE102
Expressed as:
equation 18:
Figure 236870DEST_PATH_IMAGE104
will be provided with
Figure 725620DEST_PATH_IMAGE105
Middle t value and Num pulse fingerprint coding
Figure 56107DEST_PATH_IMAGE106
Substituting the corresponding template parameters into equation 3 to obtain the pulse number NumEdge dropping amplitude sequence matrix
Figure 313913DEST_PATH_IMAGE107
Expressed as:
equation 19:
Figure 212599DEST_PATH_IMAGE109
depending on the pulse polarity, if the polarity is positive:
and (3) integrating the formula 13, the formula 17, the formula 18 and the formula 19 to complete the reconstruction of the time-amplitude sequence waveform of the Num pulse, wherein the reconstructed waveform can be expressed as:
equation 20:
Figure 313279DEST_PATH_IMAGE111
when the polarity is negative, the polarity of the negative electrode is positive,
and (3) integrating the formula 13, the formula 17, the formula 18 and the formula 19 to complete the reconstruction of the time-amplitude sequence waveform of the Num pulse, wherein the reconstructed waveform can be expressed as:
equation 21:
Figure 57244DEST_PATH_IMAGE113
matrices in equations 20 and 21
Figure 294191DEST_PATH_IMAGE114
Is equal to
Figure 363778DEST_PATH_IMAGE097
Figure 561541DEST_PATH_IMAGE102
Figure 499410DEST_PATH_IMAGE107
The sum of the three matrix lengths.
The beneficial effects of the invention are:
1) for one measurement, because the pulse waveform shape similarity obtained by the same measurement system for the same type of physical signals is very high, the number of pulses in the waveform template library is far smaller than the number of pulses actually measured in the measurement, and simultaneously, according to the pulse fingerprint coding method, the data volume of each pulse fingerprint code is far smaller than the data volume of each digital pulse consisting of a time-amplitude sequence. Thereby achieving compression of the burst data. Especially when high-precision analog-digital conversion is carried out by adopting high-bit with high sampling rate, the fingerprint coding method has more obvious effect on the fidelity compression of the pulse signals.
2) The pulse signal template database and the pulse fingerprint coding database are independent. The two databases can be stored respectively, transmitted in time-sharing and channel-dividing ways, and compared at a receiving end to complete the digital reconstruction of the pulse signal. And realizing encrypted transmission of signal data.
Drawings
FIG. 1 is a schematic flow diagram of the process of the present invention;
FIG. 2 is a schematic diagram of the data structure of the pulse fingerprint encoding data and five waveform template data according to the present invention;
FIG. 3 is a table illustrating the pulse trigger time data format according to the present invention;
FIG. 4 is a diagram illustrating a trigger value template data structure according to the present invention;
FIG. 5 is a schematic diagram of a peak width template data structure according to the present invention;
FIG. 6 is a diagram illustrating data structures of a rising edge template, a peak template, and a falling edge template of a pulse signal according to the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
Referring to fig. 1-6, the present invention provides a technical solution:
step S1, defining the pulse fingerprint encoding data structure as shown in fig. two. This is a fixed-length data structure, and the fingerprint code of each pulse is composed of 37 bytes of data. Wherein the 1 st Byte is written into 0xF0 as the start flag of data frame, the 2 nd Byte is written into data type, and 0xF1 indicates that the data is fingerprint encoding data. The 3 rd and 4 th Byte are data length bits which represent the data length in the middle of the waveform, and the measured data in the middle of each pulse fingerprint code is 27 bytes with fixed length. The 5 th to 6 th Byte represent the sampling frequency Sps of the analog-to-digital converter in the present measurement, in units of "1/sec". The 7 th Byte represents the number of conversion bits of the analog-to-digital converter in this measurement. The above is the header data of the pulse fingerprint encoding data string. The 8 th to 19 th Byte are the trigger times of the pulses. The triggering time in each pulse fingerprint coding data is represented by data of 13 bytes, and the specific structure and meaning are shown in fig. three, wherein 8-9 bytes represent year, 10 bytes represent month, 11 bytes represent day, 12 bytes represent hour, 13 bytes represent minute, 14 bytes represent second, 15 bytes represent millisecond, 16 bytes represent microsecond, and 17-20 bytes represent nanosecond.
The 21 st to 24 th Byte indicate the number Num of the pulse in the present measurement. The 25 th Byte represents the polarity of the pulse, 0 represents a negative pulse, and 1 represents a positive pulse. 26-27Byte represents the trigger value template number that matches the Num pulse. 28-29Byte represents the number of peak width template matching the Num pulse. The 30 th to 31 th bytes indicate the number of the rising edge template matching the Num number of the pulse. 32-33Byte represents the peak template number that matches the Num pulse. 34-35Byte represents the number of the falling edge template matching the Num pulse. The 36 th Byte is a check bit and the 37 th end bit.
Step S2, a waveform image template database is built. The database comprises 5 sub-databases, the database header file data structure is shown in the fourth figure, and comprises a 1Byte start bit of 0xF0, a 2Byte represents a data type, 0xF2 represents that the data is trigger value template data, 0xF3 represents peak width template data, 0xF4 represents rising edge template data, 0xF5 represents peak template data, 0xF6 represents falling edge template data, 3-4Byte represents the length of the template data (the template database data is an indefinite length data string, 5-8 bytes are template numbers, and the template data is the template after 9Byte, wherein the trigger value template data structure is shown in the fourth figure, the 9Byte represents a p 7 value, the 10Byte represents a p2 value, and the last two Byte bit end marks The peak and falling edge template data structures are the same as shown in figure six. The 1 st to 8 th bytes are defined as the trigger value template, the 9 th Byte represents the polarity of the pulse described by the template, 0 is a negative pulse, and 1 is a positive pulse. Then leaving 104 bytes to store the template data, the format of the template data is (the abscissa value, the ordinate value, … … … … represents the template shape binary image by the coefficient matrix.
Step S3: completing the construction of a waveform template base and the generation of pulse waveform fingerprint codes at the same time of measurement;
step S4: after the measurement is finished, acquiring a waveform template database and a pulse fingerprint coding database of the measurement;
step S5: respectively transmitting the measured fingerprint codes of the waveform template library and the pulse waveform to a signal receiving end, and finishing decoding and waveform signal reconstruction by the signal receiving end according to the template library data and the pulse fingerprint code information;
s5.3: pulse signal reconstruction:
after decoding, arranging the signals in sequence from small to large according to the pulse numbers:
s5.31 pulse shape reconstruction:
array according to formula 1
Figure 466229DEST_PATH_IMAGE116
Substituting the value into a rising edge fitting polynomial to obtain a Num pulse rising edge analytical expression:
equation 1:
Figure 972297DEST_PATH_IMAGE118
z in equation 1 represents the pulse shape image abscissa coordinate value,
Figure 516410DEST_PATH_IMAGE022
representing pulseThe coordinate value of the vertical coordinate of the rising edge shape image is rushed;
array according to formula 2
Figure 133337DEST_PATH_IMAGE023
Substituting the value into a pulse peak fitting polynomial to obtain a peak shape analytical expression of the pulse Num:
equation 2:
Figure 79296DEST_PATH_IMAGE120
in equation 2
Figure 490686DEST_PATH_IMAGE026
Representing the ordinate coordinate value of the pulse peak shape image;
according to equation 3, the arrays are
Figure 522096DEST_PATH_IMAGE027
Substituting the value into a pulse falling edge fitting polynomial to obtain a falling edge shape analytic expression of the pulse Num:
equation 3:
Figure 677133DEST_PATH_IMAGE122
in equation 3
Figure 884124DEST_PATH_IMAGE030
Representing the ordinate coordinate value of the pulse falling edge shape image;
s5.32: pulse width reconstruction
To be provided with
Figure 593978DEST_PATH_IMAGE031
For the pulse baseline amplitude value, will
Figure 988051DEST_PATH_IMAGE032
Data in template
Figure 946779DEST_PATH_IMAGE033
Substituting into formula 4 to obtain the peak amplitude of the Num pulseDegree of rotation
Figure 601752DEST_PATH_IMAGE034
Equation 4:
Figure 620523DEST_PATH_IMAGE124
will be provided with
Figure 767471DEST_PATH_IMAGE034
And
Figure 388945DEST_PATH_IMAGE032
data in template
Figure 304948DEST_PATH_IMAGE037
Substituting equation 5 can obtain the pulse end point amplitude value
Figure DEST_PATH_IMAGE125
Equation 5:
Figure DEST_PATH_IMAGE127
will be provided with
Figure 291359DEST_PATH_IMAGE034
And
Figure 784657DEST_PATH_IMAGE042
data in template
Figure 85188DEST_PATH_IMAGE043
Substituting equation 6 to obtain the amplitude value of the peak start point of the pulse
Figure 980332DEST_PATH_IMAGE128
Equation 6:
Figure 809748DEST_PATH_IMAGE130
will be provided with
Figure 931288DEST_PATH_IMAGE034
And
Figure 160144DEST_PATH_IMAGE042
data in template
Figure 519581DEST_PATH_IMAGE048
Substituting equation 7 can obtain the peak ending point amplitude value of the pulse
Figure DEST_PATH_IMAGE131
Equation 7:
Figure DEST_PATH_IMAGE133
order to
Figure 378952DEST_PATH_IMAGE134
Substituting the equation into equation 1 to obtain the abscissa z value of the starting point of the Num pulse
Figure 572475DEST_PATH_IMAGE136
Order to
Figure DEST_PATH_IMAGE137
Substituting the equation 2 to obtain the abscissa z of the starting point of the peak of the Num pulse, so as to
Figure DEST_PATH_IMAGE139
Order to
Figure 542705DEST_PATH_IMAGE140
Substituting the equation 3 to obtain the abscissa value z of the peak ending point of the Num pulse, so as to
Figure 287807DEST_PATH_IMAGE142
Order to
Figure DEST_PATH_IMAGE143
Substituting into equation 4 to obtain the pulse end point of NumIndex value z, order
Figure DEST_PATH_IMAGE145
The pulse Num number rises the edge width
Figure 318080DEST_PATH_IMAGE069
Comprises the following steps:
equation 8:
Figure 7687DEST_PATH_IMAGE146
pulse peak width of Num
Figure 188133DEST_PATH_IMAGE072
Comprises the following steps:
equation 9:
Figure DEST_PATH_IMAGE147
pulse peak width Num
Figure 381216DEST_PATH_IMAGE075
Comprises the following steps:
equation 10:
Figure 254495DEST_PATH_IMAGE148
pulse width of Num
Figure 431398DEST_PATH_IMAGE078
Comprises the following steps:
equation 11:
Figure DEST_PATH_IMAGE149
s5.33: time-amplitude sequence reconstruction
Obtaining the length of the pulse time sequence matrix of the Num according to the formula 12
Figure 884376DEST_PATH_IMAGE081
Equation 12:
Figure 463125DEST_PATH_IMAGE150
obtain the time sequence matrix of the pulse number Num
Figure 507304DEST_PATH_IMAGE084
Each element in equation 13 represents the relative time when pulse data Num occurs:
equation 13:
Figure DEST_PATH_IMAGE151
absolute time corresponding to Num pulse data
Figure 905925DEST_PATH_IMAGE087
From equation 14:
equation 14:
Figure 693752DEST_PATH_IMAGE152
in equation 14
Figure 129937DEST_PATH_IMAGE008
The absolute trigger time of the pulse Num is represented;
equation 15 calculates the length of the rising edge time sequence of the pulse Num
Figure 79439DEST_PATH_IMAGE090
Equation 15:
Figure DEST_PATH_IMAGE153
get the pulse rising edge time sequence matrix of the Num number
Figure 699776DEST_PATH_IMAGE093
Each element in the matrix of formula 16 represents the relative time when the Num pulse data occurs;
equation 16:
Figure 291294DEST_PATH_IMAGE154
will be provided with
Figure 579056DEST_PATH_IMAGE093
Middle t value and Num number pulse fingerprint coding
Figure 699459DEST_PATH_IMAGE096
Substituting the corresponding template parameters into the formula 1 to obtain the Num pulse rising edge amplitude sequence matrix
Figure 338250DEST_PATH_IMAGE097
Expressed as:
equation 17:
Figure DEST_PATH_IMAGE155
will be provided with
Figure 936722DEST_PATH_IMAGE100
Middle t value and Num pulse fingerprint coding
Figure 78990DEST_PATH_IMAGE101
Substituting the corresponding template parameters into formula 2 to obtain the Num pulse peak amplitude sequence matrix
Figure 635874DEST_PATH_IMAGE102
Expressed as:
equation 18:
Figure DEST_PATH_IMAGE156
will be provided with
Figure 230803DEST_PATH_IMAGE105
Middle t value and Num number pulse fingerprint coding
Figure 23179DEST_PATH_IMAGE106
Substituting the corresponding template parameters into formula 3 to obtain a Num pulse falling edge amplitude sequence matrix, which is expressed as:
equation 19:
Figure DEST_PATH_IMAGE157
depending on the polarity of the pulse, if the polarity is positive:
and (3) integrating the formula 13, the formula 17, the formula 18 and the formula 19 to complete the reconstruction of the time-amplitude sequence waveform of the Num pulse, wherein the reconstructed waveform can be expressed as:
equation 20:
Figure DEST_PATH_IMAGE158
when the polarity is negative, the polarity of the negative electrode is positive,
and (3) integrating the formula 13, the formula 17, the formula 18 and the formula 19 to complete the reconstruction of the time-amplitude sequence waveform of the Num pulse, wherein the reconstructed waveform can be expressed as:
equation 21:
Figure DEST_PATH_IMAGE159
matrices in equations 20 and 21
Figure 957637DEST_PATH_IMAGE114
Is equal to
Figure 547405DEST_PATH_IMAGE097
Figure 36156DEST_PATH_IMAGE102
Figure 366643DEST_PATH_IMAGE107
The sum of the three matrix lengths.
The foregoing is illustrative of the preferred embodiments of the present invention, and it is to be understood that the invention is not limited to the precise form disclosed herein and is not to be construed as limited to the exclusion of other embodiments, and that various other combinations, modifications, and environments may be used and modifications may be made within the scope of the concepts described herein, either by the above teachings or the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (3)

1. A method for compressing, encrypting and decoding digital signal data, characterized by: the method comprises the following steps:
step S1: constructing a pulse fingerprint coding data structure;
constructing a head structure: the method comprises the steps of starting a mark, a data frame type, a data length, a sampling rate and an ADC bit number;
constructing a middle structure: the method comprises the steps of triggering time, pulse numbering, pulse polarity rising edge template numbering, peak template numbering and falling edge template numbering;
constructing a tail structure: including check code and end mark;
the trigger time of the middle structure is synchronous with the ADC clock;
step S2: constructing an empty matrix MShop [ A, B, C, D, E ], and starting to measure, wherein the empty matrix is used for a space of a pulse waveform template library, A in the empty matrix is used for storing a trigger value array, B is used for storing a peak width value array, C is used for storing a rising edge coefficient array, D is used for storing a peak coefficient array, and E is used for storing a falling edge coefficient array;
step S3: completing the construction of a waveform template base and the generation of pulse waveform fingerprint codes at the same time of measurement;
step S4: after the measurement is finished, a waveform template database and a pulse fingerprint coding database of the measurement are obtained;
step S5: respectively transmitting the measured fingerprint codes of the waveform template library and the pulse waveform to a signal receiving end, and finishing decoding and waveform signal reconstruction by the signal receiving end according to the template library data and the pulse fingerprint code information;
the method of digital reconstruction is as follows:
s5.1: reading the pulse fingerprint encoding data according to the definition of the fingerprint encoding data structure to obtain pulse information and encode a pulse module;
s5.2: decoding the pulse information;
s5.3: pulse signal reconstruction: after decoding, arranging the pulse signals in sequence from small to large according to the pulse numbers, and reconstructing the pulse signals;
s5.31 reconstructing the pulse shape;
s5.33: and (5) reconstructing the time-amplitude sequence.
2. A method of compressing, encrypting, and decoding digital signal data according to claim 1, wherein: the step S3 further includes a waveform template library construction and pulse waveform fingerprint code generation method, and the specific steps are as follows:
s3.1: counting the number of pulses sensed by the system and numbering the pulses, if the Num pulse is sensed;
s3.2: recording the absolute time of the triggering time of the Num pulse by using a synchronous clock in the analog-digital converter, wherein the absolute time of the triggering time is determined by the sampling frequency of the analog-digital converter;
s3.3: the Num analog pulse signals are converted into Num digital pulse signals through an analog/digital converter;
s3.4: dividing a single pulse waveform into a rising edge image, a peak image and a falling edge image, and calculating a trigger value array [ p ] of the pulse signal 1 ,p 2 ]The array of peak widths [ q ] 1 ,q 2 ]Rising edge coefficient array [ a ] 0 ,a 1 ,…,a m ]The crest coefficient array [ b ] 0 ,b 1 ,…,b n ]Falling edge coefficient array [ c ] 0 ,c 1 ,…,c k ]And the trigger value array, the peak width array, the rising edge coefficient array, the peak coefficient array and the falling edge coefficient array are collected into a feature array of Num pulses;
s3.5: if the signal is the first signal obtained in the measurement, that is, Num is 1, storing the feature array of the signal obtained in the step (r) into five sub-template libraries in MShop ═ a, B, C, D, E, respectively, and setting the sub-templates of the pulse as templates a1, B1, C1, D1, and E1, respectively;
s3.6: if the signal is not the first signal obtained in the measurement, namely Num is not equal to 1, comparing the five groups of template arrays of the signal obtained in the step (IV) with the existing template data in the template library respectively, if a certain characteristic array of the pulse is the same as the existing template value in the corresponding template library, the characteristic array of the Num pulse does not form a new template, and if the certain characteristic array of the Num pulse is different from the existing template in the corresponding template library, the characteristic value is used as the new template to be added into the corresponding sub-template library and is numbered for the new template.
3. A method of compressing, encrypting, and decoding digital signal data according to claim 1, wherein: the step S3 further includes the steps of: filling information such as the triggering time, the pulse number, the sampling rate, the ADC digit, the pulse polarity and the like of the Num pulse into the head structure in the step S1, filling the rising edge template number, the peak template number and the falling edge template number of the Num pulse into the middle structure in the step S1, and filling the tail structure in the step S1 with an end bit to form a fingerprint code Fcode.
CN202111502408.5A 2021-12-10 2021-12-10 Digital signal data compression, encryption and decoding method Active CN114124105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111502408.5A CN114124105B (en) 2021-12-10 2021-12-10 Digital signal data compression, encryption and decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111502408.5A CN114124105B (en) 2021-12-10 2021-12-10 Digital signal data compression, encryption and decoding method

Publications (2)

Publication Number Publication Date
CN114124105A CN114124105A (en) 2022-03-01
CN114124105B true CN114124105B (en) 2022-08-19

Family

ID=80364299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111502408.5A Active CN114124105B (en) 2021-12-10 2021-12-10 Digital signal data compression, encryption and decoding method

Country Status (1)

Country Link
CN (1) CN114124105B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116664872A (en) * 2023-07-26 2023-08-29 成都实时技术股份有限公司 Embedded image recognition method, medium and system based on edge calculation

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483338A (en) * 2009-01-19 2009-07-15 哈尔滨工业大学深圳研究生院 Periodic waveform sampling data compression system and method for electric power system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011012158A1 (en) * 2009-07-28 2011-02-03 Ecole Polytechnique Federale De Lausanne Encoding and decoding of information
CN109948223B (en) * 2019-03-12 2021-03-16 中山大学 Pulse amplitude acquisition method based on Lagrange interpolation

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483338A (en) * 2009-01-19 2009-07-15 哈尔滨工业大学深圳研究生院 Periodic waveform sampling data compression system and method for electric power system

Also Published As

Publication number Publication date
CN114124105A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN114124105B (en) Digital signal data compression, encryption and decoding method
CN105824817B (en) A kind of digitizing solution of scintillation pulse
JPS615499A (en) Data memory array device and sampling method for analog signal sample value
JPS5331920A (en) Bar code reader
CA2017394A1 (en) Data Alignment Method and Apparatus
CN110443156B (en) Track similarity measurement method, data processing equipment and storage equipment
CN110311686A (en) A kind of pseudorandom equivalent sampling signal reconfiguring method of compressed sensing
CN112486008B (en) Resolution-adjustable time measurement statistical system and method based on TDC
CN102201882B (en) Blind identification method for coding parameters of linear block codes
CN106855633A (en) A kind of synchronous method for extracting inert satellite combination metric data
CN104833999B (en) A kind of X-ray pulse detection system signal processing method
CN111413725A (en) System and method for realizing gamma-gamma digital coincidence measurement by using virtual instrument technology
FR2616918A1 (en) SYSTEM AND METHOD FOR RECORDING AND REPRODUCING RADAR SIGNAL INFORMATION
US7493223B2 (en) Pattern identification and bit level measurements on repetitive patterns
CN116243583A (en) Neural network measurement calibration system and method for TDL-TDC
CN111585742A (en) Multi-channel signal peak value synchronous detection system
Swansen et al. A digital random pulser for testing nuclear instrumentation
US3599155A (en) Method for extracting information contained in a signal degraded by noise
CN116664872A (en) Embedded image recognition method, medium and system based on edge calculation
SU809544A1 (en) Method and device for matching precise and coarse readings of analogue-digital converter
SU959288A1 (en) Apparatus for registering errors apparatus for registering errors in discrete communication channel
SU842911A1 (en) Device for compressing signal train
Blanar Electronic instrumentation for smart structures
SU1226487A1 (en) Device for analyzing distributions of random processes
SU1494779A1 (en) Apparatus for displaying data on tv receiver screen

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
GR01 Patent grant
GR01 Patent grant