CN109639361B - Signal decoding method, communication terminal and device with storage function - Google Patents

Signal decoding method, communication terminal and device with storage function Download PDF

Info

Publication number
CN109639361B
CN109639361B CN201811572354.8A CN201811572354A CN109639361B CN 109639361 B CN109639361 B CN 109639361B CN 201811572354 A CN201811572354 A CN 201811572354A CN 109639361 B CN109639361 B CN 109639361B
Authority
CN
China
Prior art keywords
signal
sub
sampling
signals
odd
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
CN201811572354.8A
Other languages
Chinese (zh)
Other versions
CN109639361A (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.)
Ningbo Onsight Co ltd
Original Assignee
Ningbo Onsight 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 Ningbo Onsight Co ltd filed Critical Ningbo Onsight Co ltd
Priority to CN201811572354.8A priority Critical patent/CN109639361B/en
Publication of CN109639361A publication Critical patent/CN109639361A/en
Application granted granted Critical
Publication of CN109639361B publication Critical patent/CN109639361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/50Transmitters
    • H04B10/516Details of coding or modulation
    • H04B10/524Pulse modulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/50Transmitters
    • H04B10/508Pulse generation, e.g. generation of solitons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/50Transmitters
    • H04B10/516Details of coding or modulation

Abstract

The invention discloses a signal decoding method, a communication terminal and a device with a storage function. The signal decoding method includes: receiving an encoded signal, wherein the encoded signal comprises at least one sub-signal; respectively sampling at least part of sub-signals in the coded signal for odd times, and obtaining a first digital signal corresponding to the coded signal according to a sampling result, wherein the odd number is more than one; and decoding the first digital signal to obtain an original signal. By the mode, the decoding error rate can be reduced.

Description

Signal decoding method, communication terminal and device with storage function
Technical Field
The present invention relates to the field of communications, and in particular, to a signal decoding method, a communication terminal, and a device having a storage function.
Background
For a signal coded by a 4PPM (pulse-position modulation) scheme, a decoding method is generally adopted in which the level of the middle point of each small pulse of a received signal is selected as the level of the small pulse, and the level is sent to a subsequent decoding module for decoding.
In the process of actually realizing 4PPM decoding, the applicant of the present application finds that when a non-dedicated infrared transceiver chip is used, a larger error rate occurs in the original scheme under the condition that signals received by a receiving end are not particularly ideal (for example, glitches and insufficient pulse widths) due to environmental interference.
Disclosure of Invention
The invention mainly solves the technical problem of providing a signal decoding method, a communication terminal and a device with a storage function, which can reduce the error rate of decoding.
In order to solve the technical problems, the invention adopts a technical scheme that: there is provided a signal decoding method including: receiving an encoded signal, wherein the encoded signal comprises at least one sub-signal; respectively sampling at least part of sub-signals in the coded signal for odd times, and obtaining a first digital signal corresponding to the coded signal according to the sampling result, wherein the odd number is greater than 1; and decoding the first digital signal to obtain an original signal.
Wherein the period of the sampling is an even fraction of the duration of the sub-signal; and/or the sampled sampling points do not comprise a start point and/or an end point of the sub-signal.
Wherein the even number is greater than or equal to 4.
Wherein the odd-number sampling of at least some sub-signals in the encoded signal comprises: sampling each sub-signal in the coded signal for odd times respectively to obtain odd characteristic values of each sub-signal; the obtaining a first digital signal corresponding to the encoded signal according to the sampling result includes: carrying out majority judgment on odd characteristic values of each sub-signal, and obtaining a second digital signal corresponding to each sub-signal according to the result of the majority judgment; and obtaining a first digital signal corresponding to the coded signal based on the second digital signal corresponding to each sub-signal.
Wherein the performing a majority decision on odd number of feature values of the sub-signal includes: and calculating the sum of the weighted values with the same characteristic value in the odd characteristic values of the sub-signals according to different weighted values of different preset characteristic values, and performing majority judgment based on the calculated sum.
The weighted value corresponding to the characteristic value obtained by sampling the middle of each sub-signal is the highest; and/or the weight values corresponding to the characteristic values obtained by correspondingly sampling each sub-signal from the middle to the two sides are decreased progressively.
The coded signal is a pulse signal obtained by pulse position modulation, and the sub-signal is a segment of sub-pulse signal in the pulse signal.
The step of respectively sampling at least part of sub-signals in the coded signal for odd times and obtaining a first digital signal corresponding to the coded signal according to the sampling result is realized by a field programmable gate array.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided a communication terminal including: a processor, a memory, and communication circuitry, the processor coupling the memory and the communication circuitry; wherein the memory is to store program instructions; the processor and the communication circuit are configured to execute the program instructions stored by the memory to implement the decoding method for pulse signals as described above.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided an apparatus having a storage function, storing program instructions executable to implement a decoding method for a pulse signal as described above.
The invention has the beneficial effects that: different from the situation of the prior art, the invention carries out odd-number sampling on the sub-signals of the coded signals when decoding the received coded signals, can effectively avoid decoding errors caused by the fact that single sampling is easily influenced by noise, and thus effectively reduces the decoding error rate.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
fig. 1 is a schematic flowchart of a first embodiment of a signal decoding method provided by the present invention;
FIG. 2 is a schematic waveform diagram of an encoded signal provided by the present invention;
FIG. 3 is a flowchart illustrating an embodiment of a step of obtaining a first value signal corresponding to an encoded signal according to a sampling result in a signal decoding method according to the present invention;
FIG. 4 is a schematic diagram of a first embodiment of sub-signal sampling in the signal decoding method provided by the present invention;
FIG. 5 is a schematic diagram of a second embodiment of sub-signal sampling in the signal decoding method provided by the present invention;
FIG. 6 is a schematic diagram of a third embodiment of sub-signal sampling in the signal decoding method provided by the present invention;
fig. 7 is a schematic structural diagram of an embodiment of a communication terminal provided in the present invention;
fig. 8 is a schematic structural diagram of an embodiment of the apparatus with a storage function according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a flowchart illustrating a signal decoding method according to a first embodiment of the present invention. The signal decoding method provided by the invention comprises the following steps:
s101: an encoded signal is received, wherein the encoded signal comprises at least one sub-signal.
In a particular implementation scenario, an encoded signal is received for decoding, the encoded signal comprising at least one sub-signal. In this implementation scenario, the encoded signal is a pulse signal encoded by a 4PPM (pulse-position modulation) scheme, and the sub-signal is a segment of sub-pulse signal in the pulse signal.
In the physical layer specification and protocol of the IrDA (Infrared Data Association) Infrared communication standard protocol, a communication mode with a communication rate of 4MHz is called IrDA FIR (Fast Infrared protocol), i.e., Fast Infrared communication. The coding and decoding scheme adopted by the communication mode is a 4PPM (pulse-position modulation) scheme. The general principle of the scheme is as follows: the method comprises the steps of forming a large-segment pulse signal by every two bits of data of a data stream, equally dividing the large-segment pulse signal into four sub-pulse signals, enabling pulse levels of pulse signals in every small segment of the four sub-pulse signals to be consistent, and representing original data stream combination by level combination in every large-segment pulse signal. Specifically, referring to fig. 2, fig. 2 is a schematic waveform diagram of an encoded signal provided by the present invention. As shown in fig. 2, the encoded signal 10 is a large pulse signal in the encoded signal, and includes four sub-signals 11, 12, 13 and 14, the four sub-signals are four sub-pulse signals, and the level combination in the encoded signal 10 can be used to represent the original data stream combination. In this embodiment, the pulse lengths of the four sub-signals are consistent, and in other embodiments, the pulse lengths of the four sub-signals may not be consistent.
In other implementation scenarios, other Pulse Modulation schemes may be adopted, for example, Pulse Amplitude Modulation (PAM), Pulse Intensity Modulation (PIM), Pulse Frequency Modulation (PFM), and the like are mainly used for Pulse Modulation.
S102: and respectively carrying out odd-number sampling on at least part of sub-signals in the coded signal, and obtaining a first digital signal corresponding to the coded signal according to the sampling result.
In a specific implementation scenario, at least some of the sub-signals in the encoded signal are sampled an odd number of times, the odd number being an odd number greater than 1, such as 3, 5, 7, 9, etc. Because only sampling the sub-signal for 1 time may meet the situation that the sampling point of the sampling is just a part with noise, the sampling result is inaccurate, and the error rate is improved. Therefore, the sub-signals are sampled for a plurality of times, and the problem of inaccurate sampling results can be effectively avoided.
Since the start point and the end point of the sub-signal are turning points at which the pulse level changes, the probability of errors occurring in the levels of the start point and the end point of the signal is high, and therefore in the implementation scenario, the sampling point does not include the start point and the end point of the sub-signal, so that the error rate is prevented from being increased due to the fact that an error signal is acquired.
In this implementation scenario, the sampling points are evenly distributed over the pulses of the sub-signal, with the period of the sampling being an even fraction of the duration of the sub-signal. For example, if the pulse duration of the sub-signal is t, the sampling period is t/4, t/6, t/8, etc. The even number is 4 at the minimum, because when the sampling period is t/2, the starting point and the end point of the sub-signal are removed from the three sampling points of the sampling, and only one sampling point is left as the sampling point at the middle point of the sub-signal, which cannot meet the requirement of a plurality of sampling points required by the invention.
In this implementation scenario, a corresponding feature value can be obtained in each sampling, where the feature value is a numerical value represented by a level of the sampling point obtained in the current sampling. For example, if the level value of a sampling point of a certain sampling is high and the representative value is 1, the feature value obtained by this sampling is 1. And if the level value of the sampling point of the sampling is low level and the value represented by the sampling point is 0, the characteristic value obtained by the sampling at this time is 0. The value represented by the level of the sampling point can be arbitrarily set or modified.
After sampling a sub-signal a plurality of times, a plurality of characteristic values of the sub-signal are obtained. And carrying out majority judgment on the plurality of characteristic values, and in order to avoid the situation that the judgment is that the numbers of sampling points representing different values are equal and a conclusion cannot be drawn, in the implementation scene, odd-number times of sampling is carried out on the sub-signals. In other implementations, the number of samples may be even.
In this implementation scenario, because the sampling frequency is too high, at least some sub-signals in the encoded signal are respectively sampled for an odd number of times, and the step of obtaining the first digital signal corresponding to the encoded signal according to the sampling result is implemented by an FPGA (Field-Programmable Gate Array).
Specifically, referring to fig. 3, the process of obtaining the first numerical signal corresponding to the encoded signal according to the sampling result in the embodiment of the present invention is shown in fig. 3, where fig. 3 is a schematic flow chart of an embodiment of a step of obtaining the first numerical signal corresponding to the encoded signal according to the sampling result in the signal decoding method provided by the present invention. The step of sampling the sub-signals in the encoded signal for odd times in the signal decoding method provided by the invention comprises the following steps:
s301: and carrying out majority judgment on odd characteristic values of each sub-signal, and obtaining a second digital signal corresponding to each sub-signal according to the result of the majority judgment.
In a specific implementation scenario, after odd-numbered sampling is performed on a sub-signal, odd-numbered eigenvalues are obtained, majority decision is performed on the odd-numbered eigenvalues, that is, the number of different eigenvalues is calculated, and the result of the sampling with a larger number of eigenvalues is the second digital signal corresponding to the sub-signal.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a first embodiment of sub-signal sampling in the signal decoding method according to the present invention. In this implementation scenario, the characteristic value of a sampling point is 1 if the level of the pulse of the sub-signal sampled at the sampling point is high, and the characteristic value of the sampling point is 0 if the level of the pulse of the sub-signal sampled at the sampling point is low. The period of sampling is one fourth of the duration of the sub-signal. In the present embodiment, therefore, the subsignal 13 is sampled 3 times. The eigenvalues sampled by the 3 sampling points 21, 22 and 23 are 1, 0 and 1 respectively, so that the eigenvalue 1 has 2, the eigenvalue 0 has 1, 2 is greater than 1, and the result is that the eigenvalue is 1 by adopting a majority decision method. Therefore, the second digital signal corresponding to the sub-signal 13 is 1. In the present implementation scenario, the number of eigenvalues 1 is only 1 more than the number of eigenvalues 0, and the difference between the two is small, so if an error occurs during statistics or calculation, the probability of a judgment error may be high.
Referring to fig. 5, fig. 5 is a schematic diagram of a sub-signal sampling according to a second embodiment of the present invention. In fig. 5, pulse 13 is sampled 7 times, and the results of sampling at seven sample points 31, 32, 33, 34, 35, 36, 37 are 1, 0, 1, respectively. Therefore, the number of the eigenvalues 1 is 6, the number of the eigenvalues 0 is 1, the number of the eigenvalues 1 is 5 more than the number of the eigenvalues 0, the difference between the eigenvalues and the eigenvalues is large, and even if errors occur, the possibility of influencing the judgment result is low. Therefore, comparing fig. 4 and 5, it can be seen that the more the number of sampling times is, the more accurate the result is.
Referring to fig. 6, fig. 6 is a schematic diagram of a sub-signal sampling according to a third embodiment of the present invention. In fig. 5, the pulse 13 is sampled 9 times, and the results of sampling at 9 sampling points 41, 42, 43, 44, 45, 46, 47, 48, 49 are 0, 1, 0, 1, 0, respectively. Therefore, there are 6 eigenvalues 1 and 3 eigenvalues 0, and even if there is 0 in the 9 sampling results due to insufficient pulse width and the influence of noise, the difference between 6 and 3 is large, and even if an error occurs, the possibility of influencing the determination result is low. Therefore, comparing fig. 4, 5 and 6, it can be seen that the more the number of sampling times is, the more accurate the result is.
In another specific implementation scenario, different weight values are set for different feature values, the sum of weight values with the same feature value in odd feature values of the sub-signal is calculated, and a majority decision is performed based on the sum of weight values.
For example, please continue to refer to fig. 5, the 7 sampling points in fig. 5 are respectively assigned with different weighted values, because the stability of the pulse start point and the pulse end point of the sub-signal is low, the probability of error is high, and the probability of interference in the middle of the pulse of the sub-signal is low, so theoretically, the accuracy of the result of the pulse middle sampling of the sub-signal is high. Therefore, in the present implementation scenario, the weight value corresponding to the feature value sampled at the middle of the sub-signal is the highest, and each weight value decreases from the middle to both sides. For example, the weighting values of 7 sampling points in fig. 5 are 1, 2, 3, 4, 3, 2, and 1, respectively. In fig. 5, the characteristic values obtained by 7 times of sampling of the neutron signal 13 are 1, 0, 1, and 1. The sum of the weight values of the eigenvalue 0 is 4, the sum of the weight values of the eigenvalue 1 is 1+2+3+3+2+1, which is 12, 12 is greater than 4, and a majority decision method is adopted, so that the result is that the eigenvalue is 1. Therefore, the second digital signal corresponding to the sub-signal 13 is 1, and the determination result is correct.
In another implementation scenario, in fig. 5, the weighted values of 7 sampling points are 1, 7, 1, and 7 respectively, the sum of weighted values of feature value 0 is 7, the sum of weighted values of feature value 1 is 1+1+1+1+1 ═ 6, 7 is greater than 6, the result of majority decision is 0, and the result of determination is an error. If the weighted values of 7 sampling points are adjusted to 1, 3, 1, and 1, the weighted sum of the eigenvalue 0 is 3, the weighted sum of the eigenvalue 1 is 1+1+1+1+1 is 6, 6 is greater than 3, and the result of majority decision is 1, it is determined to be correct. Or the weighted values of 7 sampling points are adjusted to be 1, 3, 5, 7, 5, 3 and 1, the weighted sum of the characteristic value 0 is 7, the weighted sum of the characteristic value 1 is 1+3+5+ 3+1 is 16, 16 is greater than 7, and the result of majority judgment is 1, so that the judgment is correct.
For another example, with continued reference to fig. 6, the weighted values of the 9 sampling points in fig. 6 are 1, 2, 3, 4, 5, 4, 3, 2, and 1, respectively. And the results of the sampling of the 9 sampling points 41, 42, 43, 44, 45, 46, 47, 48, 49 in fig. 6 are 0, 1, 0, respectively. Therefore, the number of eigenvalues 1 is 6, the number of eigenvalues 0 is 3, the sum of the weight values of the eigenvalue 0 is 1+5+1 to 7, the sum of the weight values of the eigenvalue 1 is 2+3+4+ 3+2 to 18, 18 is greater than 7, and a majority decision method is adopted, so that the result is that the eigenvalue is 1. Therefore, the second digital signal corresponding to the sub-signal 13 is 1.
In another implementation scenario, the weight values of the 9 sampling points 41, 42, 43, 44, 45, 46, 47, 48, and 49 in fig. 6 are 1, 7, 1, and 1, the sum of the weight values of the feature value 0 is 1+7+1 ═ 9, the sum of the weight values of the feature value 1 is 1+1+1+1+1 ═ 6, 9 is greater than 6, the majority decision result is 0, and the decision result is an error. If the weighted values of 7 sampling points are adjusted to 1, 3, 1, the sum of weighted values of the feature value 0 is 1+3+1 equals 5, the sum of weighted values of the feature value 1 equals 1+1+1+1+1 equals 6, 6 is greater than 5, and the result of majority decision is 1, the judgment is correct. Or the weighted values of 7 sampling points are adjusted to 1, 2, 3, 4, 7, 4, 3, 2 and 1, the sum of weighted values of the feature value 0 is 1+7+1 to 9, the sum of weighted values of the feature value 1 is 2+3+4+4+3+2 to 18, 18 is greater than 9, and the result of majority decision is 1, so that the judgment is correct.
Therefore, the difference between the sampling point and the sampling points on both sides is too large, so that the assignment method in the previous embodiment, in which the assignment is decreased from the middle to both sides, is considered preferentially, and the difference between the weight values of the adjacent sampling points cannot be too large, thereby effectively avoiding misjudgment.
S302: and obtaining a first digital signal corresponding to the coded signal based on the second digital signal corresponding to each sub-signal.
In a specific implementation scenario, a 4PPM (pulse-position modulation) scheme is adopted as a coding scheme, and a large-segment pulse codes a signal, including four sub-signals. And step S301 is respectively adopted to obtain second digital signals corresponding to the four sub-signals, and the second digital signals are sequentially combined together to obtain a first digital signal corresponding to the large-segment pulse code signal. For example, the second digital signals corresponding to the four sub-signals 11, 12, 13 and 14 of the encoded signal 10 shown in fig. 2 are 0, 1 and 0, and the first digital signal corresponding to the encoded signal 10 is 0010.
In other implementation scenarios, the received encoded signal includes a plurality of large-segment pulse signals, and the received encoded signal may be combined into a first digital signal corresponding to the encoded signal according to the second digital signals corresponding to the large-segment pulse signals, respectively, or may be directly combined into a first digital signal of the encoded signal according to the second digital signals corresponding to the sub-signals in the encoded signal.
S103: and decoding the first digital signal to obtain an original signal.
In a specific implementation scenario, after obtaining a first digital signal of the encoded signal, the first digital signal is decoded. A 4PPM (pulse-position modulation) scheme is adopted as the coding scheme, and therefore, table 1 can be referred to as table 1, where table 1 is a comparison table of the original signal and the 4PPM coded signal.
TABLE 1 comparison table of original signal and 4PPM coded signal
Data Bit Pair(DBP) 4PPM Data Symbol(DD)
00 1000
01 0100
10 0010
11 0001
In other implementation scenarios, the table lookup decoding method is known by those skilled in the art, and will not be described herein.
As can be seen from the above description, in this embodiment, odd-number sampling is performed on the sub-signals of the received encoded signal, and majority decision is performed on the sampled feature values, so that decoding errors caused by noise interference due to single sampling can be effectively avoided, and the error rate is effectively reduced.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a communication terminal according to an embodiment of the present invention. The communication terminal 10 includes a processor 11, a memory 12, and a communication circuit 13, wherein the processor 11 is coupled to the memory 12 and the communication circuit 13. The memory 12 is used to store program instructions. The processor 11 in combination with the communication circuitry 13 is operative to execute program instructions in the memory 12 to communicate and perform the following methods.
The communication circuit 13 of the communication terminal 10 receives an encoded signal, the encoded signal includes at least one sub-signal, the processor 11 of the communication terminal 10 samples at least some sub-signals of the encoded signal for an odd number of times, the odd number is greater than 1, and obtains a first digital signal corresponding to the encoded signal according to the sampling result. The processor 11 decodes the first digital signal to obtain an original signal.
As can be seen from the above description, in this embodiment, when decoding the sub-signal of the received encoded signal, the communication terminal performs odd-numbered sampling on the sub-signal, so that it can effectively avoid decoding errors caused by noise interference due to single sampling, and can effectively reduce the error rate.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of a device with a storage function according to the present invention. The means 20 with storage function has stored therein at least one program instruction 21, the program instruction 21 being for performing the method as shown in fig. 1 and 3. In one embodiment, the apparatus with storage function may be a storage unit in a processor chip of a device, a memory chip, a hard disk, or a removable hard disk, or a flash disk, an optical disk, or other readable and writable storage means, and may also be a server, or the like.
As can be seen from the above description, the program instructions stored in the embodiment of the apparatus with storage function in this embodiment may be used to decode a received encoded signal, respectively sample at least some sub-signals in the encoded signal for odd times, obtain a first digital signal corresponding to the encoded signal according to a sampling result, and decode the first digital signal to obtain an original signal. Decoding errors caused by noise interference due to single sampling can be avoided, and therefore the error rate is effectively reduced.
The invention is different from the prior art that the sub-signals of the coded signals are subjected to single sampling, so that the decoding errors are easily caused by noise interference.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A method of decoding a signal, comprising:
receiving an encoded signal, wherein the encoded signal comprises at least one sub-signal, the encoded signal is a pulse signal obtained by pulse position modulation encoding, and the sub-signal is a segment of sub-pulse signal in the pulse signal;
respectively sampling the sub-signals in the coded signal for odd times to obtain odd characteristic values of the sub-signals, calculating the sum of the weight values with the same characteristic value in the odd characteristic values of the sub-signals according to different preset weight values of different characteristic values, performing majority judgment based on the calculated sum, and obtaining a second digital signal corresponding to each sub-signal according to the result of the majority judgment; obtaining a first digital signal corresponding to the coded signal based on a second digital signal corresponding to each sub-signal, wherein the odd number is greater than one;
the weighted value corresponding to the characteristic value obtained by sampling the middle of each sub-signal is the highest; and/or the weight value corresponding to the characteristic value obtained by correspondingly sampling each sub-signal from the middle to the two sides is decreased;
and decoding the first digital signal to obtain an original signal.
2. The method of claim 1, wherein the period of the sampling is an even fraction of the duration of the sub-signal; and/or
The sampled sampling points do not comprise the start and/or end points of the sub-signals.
3. The method of claim 2, wherein the even number is greater than or equal to 4.
4. The method of claim 1,
the step of respectively sampling the sub-signals in the coded signal for odd times to obtain odd characteristic values of the sub-signals, calculating the sum of the weight values with the same characteristic value in the odd characteristic values of the sub-signals according to different preset weight values of different characteristic values, performing majority judgment based on the calculated sum, obtaining a second digital signal corresponding to each sub-signal according to the result of the majority judgment, and obtaining a first digital signal corresponding to the coded signal based on the second digital signal corresponding to each sub-signal is realized by a field programmable gate array.
5. A communication terminal, comprising: a processor, a memory, and communication circuitry, the processor coupling the memory and the communication circuitry;
wherein the memory is to store program instructions;
the processor and the communication circuit are configured to execute the program instructions stored by the memory to implement the signal decoding method of any of claims 1-4.
6. An apparatus having a storage function, characterized in that program instructions are stored, which can be executed to implement the signal decoding method according to any one of claims 1 to 4.
CN201811572354.8A 2018-12-21 2018-12-21 Signal decoding method, communication terminal and device with storage function Active CN109639361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811572354.8A CN109639361B (en) 2018-12-21 2018-12-21 Signal decoding method, communication terminal and device with storage function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811572354.8A CN109639361B (en) 2018-12-21 2018-12-21 Signal decoding method, communication terminal and device with storage function

Publications (2)

Publication Number Publication Date
CN109639361A CN109639361A (en) 2019-04-16
CN109639361B true CN109639361B (en) 2022-08-09

Family

ID=66076210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811572354.8A Active CN109639361B (en) 2018-12-21 2018-12-21 Signal decoding method, communication terminal and device with storage function

Country Status (1)

Country Link
CN (1) CN109639361B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5471534A (en) * 1993-09-27 1995-11-28 Texas Instruments Incorporated Devices, systems and methods for composite signal decoding employing interpolation filter
CN103731237A (en) * 2012-12-07 2014-04-16 深圳市金溢科技有限公司 Biphase-space-code-oriented decoding method, device, equipment and communication system
CN104753538A (en) * 2015-03-19 2015-07-01 惠州华阳通用电子有限公司 Method and device for decoding manchester encoding signal
CN105187070A (en) * 2015-09-22 2015-12-23 惠州华阳通用电子有限公司 Manchester encoding signal decoding method and device
CN108551433A (en) * 2018-06-27 2018-09-18 珠海市微半导体有限公司 The decoding system and coding/decoding method of BMC codes

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101660925B (en) * 2009-09-23 2011-01-12 宁波大学 Processing method of interference signals in decoding process of digital coder
EP3301876B1 (en) * 2016-08-05 2019-07-24 Shenzhen Goodix Technology Co., Ltd. Signal reception method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5471534A (en) * 1993-09-27 1995-11-28 Texas Instruments Incorporated Devices, systems and methods for composite signal decoding employing interpolation filter
CN103731237A (en) * 2012-12-07 2014-04-16 深圳市金溢科技有限公司 Biphase-space-code-oriented decoding method, device, equipment and communication system
CN104753538A (en) * 2015-03-19 2015-07-01 惠州华阳通用电子有限公司 Method and device for decoding manchester encoding signal
CN105187070A (en) * 2015-09-22 2015-12-23 惠州华阳通用电子有限公司 Manchester encoding signal decoding method and device
CN108551433A (en) * 2018-06-27 2018-09-18 珠海市微半导体有限公司 The decoding system and coding/decoding method of BMC codes

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
用于移动支付的自适应曼彻斯特解码器设计;陈毅成等;《微电子学与计算机》;20170105;全文 *

Also Published As

Publication number Publication date
CN109639361A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN111294058B (en) Channel coding and error correction decoding method, equipment and storage medium
CN108847916B (en) Encoding method, apparatus and readable storage medium
US20220321256A1 (en) Decoding method, decoding device, and readable storage medium
CN105187070A (en) Manchester encoding signal decoding method and device
CN110708079A (en) Polarization code construction method and device
CN109818713B (en) Subcarrier modulated Miller code decoding method, apparatus and device and storage medium
US20060242531A1 (en) Method for decoding tail-biting convolutional codes
US9866239B1 (en) Method and system for bi-phase mark coding (BMC) decoding
CN109639361B (en) Signal decoding method, communication terminal and device with storage function
EP3171520A1 (en) Decoding method and decoder
EP0233788A2 (en) Viterbi decoder and method
CN100391108C (en) Turbo decoder and dynamic decoding method used for same
CN110768748B (en) Convolutional code decoder and convolutional code decoding method
CN109688080B (en) Decoding method of Miller code and RFID reader
US9378085B2 (en) Method for estimating block error rate and communication device
CN115664903A (en) Data packet alignment method and device based on coded pulse technology
CN110620635A (en) Decoding method, apparatus and readable storage medium
US7903004B2 (en) Decoding apparatus and method
JP4606852B2 (en) How to simplify the Viterbi decoder
JP2010130271A (en) Decoder and decoding method
US20200382142A1 (en) Encoding method, decoding method, encoding apparatus, and decoding apparatus
CN109309548B (en) Encoding method, apparatus and readable storage medium
CN107579803B (en) Decoding device including error correction program and decoding method
RU2639687C1 (en) Decoding device and method and signal transmission system
JP4507089B2 (en) Optical receiver

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