CN111130700A - Data transmission method and device, storage medium, and electronic device - Google Patents
Data transmission method and device, storage medium, and electronic device Download PDFInfo
- Publication number
- CN111130700A CN111130700A CN201911399949.2A CN201911399949A CN111130700A CN 111130700 A CN111130700 A CN 111130700A CN 201911399949 A CN201911399949 A CN 201911399949A CN 111130700 A CN111130700 A CN 111130700A
- Authority
- CN
- China
- Prior art keywords
- target data
- data
- frequency band
- target
- synchronization signal
- 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.)
- Granted
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 76
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000012545 processing Methods 0.000 claims abstract description 38
- 238000012937 correction Methods 0.000 claims abstract description 25
- 238000006243 chemical reaction Methods 0.000 claims abstract description 16
- 238000004590 computer program Methods 0.000 claims description 22
- 238000001514 detection method Methods 0.000 claims description 19
- 230000001360 synchronised effect Effects 0.000 claims description 15
- 238000001914 filtration Methods 0.000 claims description 12
- 238000003672 processing method Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 claims description 3
- 230000001131 transforming effect Effects 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 4
- 238000004891 communication Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 3
- 238000002135 phase contrast microscopy Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 239000012782 phase change material Substances 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
- H04L7/0079—Receiver details
- H04L7/0087—Preprocessing of received signal for synchronisation, e.g. by code conversion, pulse generation or edge detection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
The invention provides a data sending method and device, a storage medium and an electronic device, wherein the method comprises the following steps: performing forward error correction RS coding processing on the determined first target data to obtain second target data; performing data conversion on the second target data to determine a sending frequency band corresponding to the second target data to obtain third target data, wherein the sending frequency band is used for indicating the duration of sending the third target data; determining a synchronization signal of third target data from the transmission frequency band to obtain fourth target data, wherein the synchronization signal is used for indicating an initial frequency band for transmitting the third target data; and transmitting the fourth target data. By the method and the device, the problem of inaccurate data transmission is solved, and the effect of accurate data transmission is achieved.
Description
Technical Field
The present invention relates to the field of computers, and in particular, to a data transmission method and apparatus, a storage medium, and an electronic apparatus.
Background
In recent years, better advantages are shown by more and more widely applied sound wave communication technologies, such as the emerging security protection field, the deep sea communication technology and indoor communication. Especially in recent years, the continuous development of internet of things technology and artificial intelligence AI, intelligent robots, intelligent sound boxes, intelligent monitoring equipment and the like need to be networked and bound with mobile phone APP. Most adopt the form of sound wave to this kind of net technique is joined in marriage to closely, pass through the sound wave transmission with information such as account number, password of wifi away, thereby the sound wave that smart machine gathered through the mike carries out modem and acquires wifi information and reaches the networking.
However, in the prior art, no channel coding technique is adopted for data transmission or no description is given for the adopted channel coding, and the accuracy of the data transmission process cannot be ensured. The explanation of the algorithm in the acoustic wave legend is not clear enough, and the specific adopted mode is not well explained. Data redundancy exists in data transmission, and transmission efficiency is not high, for example, the transmitted synchronization code element signal affects the data receiving and transmitting efficiency through verification.
In view of the above technical problems, no effective solution has been proposed in the related art.
Disclosure of Invention
The embodiment of the invention provides a data sending method and device, a storage medium and an electronic device, which are used for at least solving the problem of inaccurate data transmission in the related art.
According to an embodiment of the present invention, there is provided a data transmission method including: performing forward error correction RS coding processing on the determined first target data to obtain second target data; performing data conversion on the second target data to determine a transmission frequency band corresponding to the second target data, so as to obtain third target data, wherein the transmission frequency band is used for indicating the duration of transmitting the third target data; determining a synchronization signal of the third target data from the transmission frequency band to obtain fourth target data, wherein the synchronization signal is used for indicating an initial frequency band for transmitting the third target data; and transmitting the fourth target data.
According to an embodiment of the present invention, there is provided a data processing method including: filtering the received data to obtain fourth target data; performing frequency domain detection on the fourth target data to determine a synchronization signal in the fourth target data to obtain third target data, wherein the synchronization signal is used for indicating an initial frequency band for transmitting the third target data; converting the third target data to obtain second target data; and performing RS decoding processing on the second target data to obtain first target data.
According to another embodiment of the present invention, there is provided a data transmission apparatus including: the first determining module is used for carrying out RS coding processing of forward error correction on the determined first target data to obtain second target data; a second determining module, configured to perform data conversion on the second target data to determine a transmission frequency band corresponding to the second target data, so as to obtain third target data, where the transmission frequency band is used to indicate a duration of transmitting the third target data; a third determining module, configured to determine a synchronization signal of the third target data from the transmission frequency band to obtain fourth target data, where the synchronization signal is used to indicate an initial frequency band for transmitting the third target data;
and the sending module is used for sending the fourth target data.
According to another embodiment of the present invention, there is provided a data processing apparatus including: the fourth determining module is used for filtering the received data to obtain fourth target data; a fifth determining module, configured to perform frequency domain detection on the fourth target data to determine a synchronization signal in the fourth target data, so as to obtain third target data, where the synchronization signal is used to indicate an initial frequency band for transmitting the third target data; a sixth determining module, configured to convert the third target data to obtain second target data; and the seventh determining module is used for performing RS decoding processing on the second target data to obtain the first target data.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the determined first target data is subjected to RS coding processing of forward error correction to obtain second target data; performing data conversion on the second target data to determine a sending frequency band corresponding to the second target data to obtain third target data, wherein the sending frequency band is used for indicating the duration of sending the third target data; determining a synchronization signal of third target data from the transmission frequency band to obtain fourth target data, wherein the synchronization signal is used for indicating an initial frequency band for transmitting the third target data; and transmitting the fourth target data. Through RS coding processing of the data and the added synchronous signals, the accuracy of the data in the transmission process can be achieved. Therefore, the problem of inaccurate data transmission in the related technology can be solved, and the effect of accurately transmitting data is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a data transmission method according to an embodiment of the present invention;
fig. 2 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 3 is a flowchart of a transmitting end transmitting data according to an embodiment of the present invention;
FIG. 4 is a flow chart of a data processing method according to an embodiment of the present invention;
FIG. 5 is a flow chart of a receiving end receiving data according to an alternative embodiment of the present invention;
fig. 6 is a block diagram of a structure of a data transmission apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the operation on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of a data transmission method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the data transmission method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, a data transmission method is provided, and fig. 2 is a flowchart of the data transmission method according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, the determined first target data is subjected to RS coding processing of forward error correction to obtain second target data;
step S204, performing data conversion on the second target data to determine a sending frequency band corresponding to the second target data to obtain third target data, wherein the sending frequency band is used for indicating the duration of sending the third target data;
step S206, determining a synchronization signal of third target data from the transmission frequency band to obtain fourth target data, wherein the synchronization signal is used for indicating an initial frequency band for transmitting the third target data;
step S208, the fourth target data is transmitted.
Optionally, the present embodiment includes, but is not limited to, application in a scenario of acoustic wave communication, for example, a scenario of transmitting audio data.
Optionally, in this embodiment, the data to be transmitted is mainly subjected to necessary processing, and then sent to the RS (n, k) for channel coding processing. And carrying out data conversion on the RS-coded data. Optionally, M-2 system conversion is performed on the encoded data, M-2 frequency bands modulated by FSK are selected to represent M system numbers, and the transmission duration of each frequency band is Tms. In order to achieve data synchronization, 2 frequency bands are used to represent the beginning synchronization signal before the beginning of data, and the transmission duration of the beginning synchronization signal is 6 × Tms, and the specific flow is shown in fig. 3.
Alternatively, the execution subject of the above steps may be a terminal or the like, but is not limited thereto.
Through the steps, the determined first target data is subjected to RS coding processing of forward error correction to obtain second target data; performing data conversion on the second target data to determine a sending frequency band corresponding to the second target data to obtain third target data, wherein the sending frequency band is used for indicating the duration of sending the third target data; determining a synchronization signal of third target data from the transmission frequency band to obtain fourth target data, wherein the synchronization signal is used for indicating an initial frequency band for transmitting the third target data; and transmitting the fourth target data. Through RS coding processing of the data and the added synchronous signals, the accuracy of the data in the transmission process can be achieved. Therefore, the problem of inaccurate data transmission in the related technology can be solved, and the effect of accurately transmitting data is achieved.
In an optional embodiment, before performing RS encoding processing for forward error correction on the determined first target data to obtain second target data, the method further includes:
s1, segmenting the determined bytes in the data to be sent to obtain I data groups, wherein each data group in the I data groups comprises K bytes, and both I and K are natural numbers which are more than or equal to 1;
s2, setting the sending frequency of each data group, wherein the sending frequency is used for identifying the sending starting point of each data group;
and S3, storing each data group after the determined transmission frequency into a transmission buffer area to obtain first target data.
Optionally, in this embodiment, for example, the data to be transmitted is I bytes, the data to be transmitted is divided into I segments by taking the length of k as a unit, I ═ Ceil (I/k), and if the I segments cannot be divided completely, the original data to be transmitted is filled with zeros to make the length of the original data to be transmitted be a multiple of k, so that I data GROUPs GROUP are obtained by division.
Optionally, the start transmission rule of the GROUPThe method comprises the following steps: the start frequency F0 for all GROUP is passed; then transmitting GROU value I, and obtaining transmitted bit R by adopting frequency modulation methodI(ii) a Each GROUP is transmitted in a loop.
In an alternative embodiment, the RS encoding process for forward error correction on the determined first target data to obtain the second target data includes:
s1, performing RS encoding processing on K bytes in each data group in the first target data to obtain second target data, where each data group in the second target data includes: the data content of K bytes, the data length of N bytes, the error correction code of M bytes, K, N, M are all natural numbers greater than or equal to 1.
Alternatively, RS coding (Reed-solomon codes), which is a kind of channel coding for forward error correction.
Optionally, in this embodiment, for example, the GROUP intra-GROUP coded modulation transmission rule includes the following: for each GROUP data, firstly setting a sending frequency F1 to represent the starting point of one GROUP; for each GROUP data with length of k, when x is equal to [0, I-1 ]]Firstly, one byte is used for representing the data length k (k value is aligned) of the current GROUP, and the actual effective bit length value Rk corresponding to the value k is put into a sending buffer area of the current GROUP; for a GROUP of data GROUPs to be transmitted with the length of k, coding k bytes by an error correction algorithm RS (n, k) to obtain n bytes, calculating to obtain n-k bytes of error correction codes, obtaining n lengths at the moment, and putting the n lengths into a transmission buffer area of the current GROUP; the modulation data that needs to be sent by the current GROUP buffer is: the length of data to be transmitted is 1 byte, the data to be transmitted is k bytes, and the error correcting code is n-k bytes. Therefore, the length of data to be modulated and transmitted is N +1 bytes, that is, N is 8 × N +1 bits of data; adopting a frequency modulation method for the sending buffer area of the current GROUP, and modulating and sending all values of the buffer area to obtain RNThe number of bits of (c).
In an optional embodiment, the data conversion of the second target data to determine a transmission frequency band corresponding to the second target data, so as to obtain third target data includes:
and S1, converting the frequency band corresponding to the second target data into M-system data to obtain third target data, wherein the M-system is used for indicating the duration of each frequency band for transmitting the third target data.
Optionally, in this embodiment, the duration of each frequency band may be 6 × Tms.
In an optional embodiment, determining a synchronization signal of third target data from the transmission frequency band to obtain fourth target data includes:
s1, modulating the third target data through frequency shift keying FSK to obtain modulated third target data;
s2, adding a preset number of frequency bands in the transmission frequency bands to the modulated third target data to determine a synchronization signal of the third target data, so as to obtain fourth target data.
Alternatively, Frequency-shift keying (FSK) is a modulation scheme used earlier in information transmission.
Optionally, in this embodiment, when the third target data is a group of data with a length of N, the modulation method is as follows:
j bits are used as a unit for sending, if j bits are sent each time, and N is not an integral multiple of j, high bit 0 is complemented, and the actually sent bits are: R-N + j-N% j. For example, 8 bits need to be transmitted, while each actual transmission is 3 bits, that is 8+ 3-8% 3 ═ 9 bits.
Each time j bits are transmitted, 2 bits are requiredjA frequency band, and a synchronous frequency band of two frequency points F0 and F1, when transmitting, M is 2+2jAnd (4) frequency bands. The frequency band values are represented by F0-FM-1, and F2-FM-1 correspond to 0-2j-a value of 1.
The data to be modulated is finally obtained as follows: adding RI corresponding to I values of the numbers of GROUPs to be transmitted and RN corresponding to the actual transmission bit numbers of the I GROUPs, namely RI+I*RNThe number of bits.
Therefore, the RS error correction technology is adopted in this embodiment, which can correct errors occurring in the received data and ensure the accuracy of data reception. The fixed sending time of the length field of the key field is prolonged in the data transmission process, and effective identification of the key data can be guaranteed.
In the present embodiment, a data processing method is provided, and fig. 4 is a flowchart of a data processing method according to an embodiment of the present invention, where as shown in fig. 4, the flowchart includes the following steps:
step S402, filtering the received data to obtain fourth target data;
step S404, performing frequency domain detection on the fourth target data to determine a synchronous signal in the fourth target data to obtain third target data, wherein the synchronous signal is used for indicating an initial frequency band for sending the third target data;
step S406, converting the third target data to obtain second target data;
step S408, RS decoding the second target data to obtain the first target data.
Optionally, the present embodiment includes, but is not limited to, application in a scenario of acoustic wave communication, for example, a scenario of transmitting audio data.
Optionally, in this embodiment, for example, the receiving end collects sound through the sound collection device, and the collected sound is filtered through the band-pass filter to prevent interference of other frequency components; performing frequency domain detection on the data filtered by the band-pass filter to judge whether a starting synchronous signal is received; if receiving the starting synchronous signal, starting fsk demodulation, mainly analyzing the selected M frequency bands, and acquiring the received data; and if the initial synchronization signal is not received, continuing to detect the synchronization signal.
Decoding the received data through RS (n, k), verifying whether the data is correct by adopting a verification algorithm, outputting the detected data if the data is correct, and simultaneously entering a synchronous detection state in the detection state; if the check error considers that the detected data is erroneous, and the detection state enters the synchronous detection state, the specific flow is shown in fig. 5.
Alternatively, the execution subject of the above steps may be a terminal or the like, but is not limited thereto.
Through the steps, the determined first target data is subjected to RS coding processing of forward error correction to obtain second target data; performing data conversion on the second target data to determine a sending frequency band corresponding to the second target data to obtain third target data, wherein the sending frequency band is used for indicating the duration of sending the third target data; determining a synchronization signal of third target data from the transmission frequency band to obtain fourth target data, wherein the synchronization signal is used for indicating an initial frequency band for transmitting the third target data; and transmitting the fourth target data. Through RS coding processing of the data and the added synchronous signals, the accuracy of the data in the transmission process can be achieved. Therefore, the problem of inaccurate data transmission in the related technology can be solved, and the effect of accurately transmitting data is achieved.
In an optional embodiment, filtering the received data to obtain fourth target data includes:
and S1, filtering the received data through a band-pass filter to obtain fourth target data, wherein the fourth target data comprises frequency band information.
Optionally, for example, the acquired pcm audio data is processed by a band-pass filter, and information of a transmission frequency band is reserved, wherein the frequency points are F0-FM-1.
In an optional embodiment, performing frequency domain detection on the fourth target data to determine a synchronization signal in the fourth target data, and obtaining third target data includes:
s1, identifying the frequency band in the fourth target data to determine the synchronous signal from the frequency band;
s2, determining the data group corresponding to the first preset number of frequency points before the synchronization signal as the second target data.
Optionally, for example, the filtered data is first subjected to frequency segment identification to see whether the start synchronization point signals F0 of all signals are detected, for the detected F0 frequency point, the start segment currently being the transmission data is indicated, and then the subsequent frequency values are analyzed until the F1 frequency point is analyzed, and the values corresponding to the frequency values before F0 and F1 constitute the actual GROUP length value for guiding how many GROUP are to be analyzed subsequently.
In an alternative embodiment, converting the third target data to obtain the second target data includes:
and S1, performing FSK demodulation on the frequency band in the third target data to obtain second target data.
Optionally, in this embodiment, the FSK demodulation of the frequency band in the third target data includes analyzing the GROUP data therein, which is specifically as follows:
when the analysis reaches F1, the analysis is continued until F0 or F1 is analyzed. And decoding the analyzed data by adopting an RS (n, k) error correcting code to obtain actual data with the length of k bytes, analyzing the actual length R of the current GROUP from the 1 st byte of the beginning of the data with the length of k, and intercepting R bytes from the 2 nd byte of the beginning of the data with the length of k.
The intercepted R byte data represents the real information transmitted by the current GROUP, and the frequency value decoding method comprises the following steps:
when frequency analysis is carried out to obtain a frequency value Fi, a mapping method of a sending end is adopted for a corresponding specific frequency value between F2 and FM-1: F2-FM-1 correspond to 0-2jA 1 value (corresponding to a binary number of j bits);
and each frequency value Fi corresponds to j bit numbers, so that a real whole bit string is obtained, and high-order zeros of the bit string are removed.
The frequency demodulation detection method comprises the following steps: assuming that the number of the PCMs of one frequency value is Y, the received PCM value is W according to a PCM window, and the step length is S to be used as a detection unit; adopting a detection method such as energy, and determining that X same frequencies are hit, wherein the number of X can be X > Y/W/2; and analyzing all the GROUP information and then connecting the GROUP information according to the sequence to obtain complete transmission decoding information.
In an optional embodiment, performing RS decoding processing on the second target data to obtain the first target data includes:
s1, performing RS decoding processing on the bytes in each data group in the second target data to obtain the data content of K bytes included in each data group, and obtain the first target data.
Optionally, for example, the parsed data is decoded by using an RS (n, k) error correction code to obtain actual data with a length of k bytes, the actual length R of the current GROUP is parsed from the 1 st byte starting from the data with the length of k, the R bytes are truncated from the 2 nd byte starting from the data with the length of k, and the truncated R bytes represent the real information transmitted by the current GROUP.
In summary, the sliding window method and the probability hit method are combined, so that the probability of successful signal detection can be greatly improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a data sending device is further provided, and the data sending device is used to implement the foregoing embodiments and preferred embodiments, and the description of the data sending device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a data transmission apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus including:
a first determining module 62, configured to perform RS encoding processing for forward error correction on the determined first target data to obtain second target data;
a second determining module 64, configured to perform data conversion on the second target data to determine a sending frequency band corresponding to the second target data, so as to obtain third target data, where the sending frequency band is used to indicate a duration of sending the third target data;
a third determining module 66, configured to determine a synchronization signal of third target data from the transmission frequency band to obtain fourth target data, where the synchronization signal is used to indicate an initial frequency band for transmitting the third target data;
a sending module 68, configured to send the fourth target data.
Optionally, the apparatus further comprises:
an eighth determining module, configured to perform RS encoding processing for forward error correction on the determined first target data, and before obtaining second target data, segment bytes in the determined data to be sent to obtain I data groups, where each data group in the I data groups includes K bytes, and I and K are natural numbers greater than or equal to 1;
the first setting module is used for setting the sending frequency of each data group, wherein the sending frequency is used for identifying the sending starting point of each data group;
and the first storage module is used for storing each data group after the sending frequency is determined into the sending buffer area so as to obtain first target data.
Optionally, the first determining module includes:
a first determining unit, configured to perform RS encoding processing on K bytes in each data group in the first target data to obtain second target data, where each data group in the second target data includes: the data content of K bytes, the data length of N bytes, the error correction code of M bytes, K, N, M are all natural numbers greater than or equal to 1.
Optionally, the second determining module includes:
and the second determining unit is used for converting the frequency band corresponding to the second target data into M-system data to obtain third target data, wherein the M-system is used for indicating the duration of each frequency band for transmitting the third target data.
Optionally, the third determining module includes:
a third determining unit, configured to modulate third target data by frequency shift keying FSK to obtain modulated third target data;
a fourth determining unit, configured to add a preset number of frequency bands in the transmission frequency bands to the modulated third target data to determine a synchronization signal of the third target data, so as to obtain fourth target data.
Fig. 7 is a block diagram of a data processing apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus including:
a fourth determining module 72, configured to filter the received data to obtain fourth target data;
a fifth determining module 74, configured to perform frequency domain detection on the fourth target data to determine a synchronization signal in the fourth target data, so as to obtain third target data, where the synchronization signal is used to indicate an initial frequency band for sending the third target data;
a sixth determining module 76, configured to convert the third target data to obtain second target data;
and a seventh determining module 78, configured to perform RS decoding processing on the second target data to obtain the first target data.
Optionally, the fourth determining module includes:
and the fifth determining unit is used for filtering the received data through a band-pass filter to obtain fourth target data, wherein the fourth target data comprises frequency band information.
Optionally, the fifth determining unit includes:
the identification unit is used for identifying the frequency band in the fourth target data so as to determine the synchronous signal from the frequency band;
and the sixth determining unit is used for determining the data group corresponding to the frequency points with the first preset number before the synchronous signal as the second target data.
Optionally, the sixth determining module includes:
and the seventh determining unit is used for carrying out FSK demodulation on the frequency band in the third target data to obtain second target data.
Optionally, the seventh determining module includes:
and the eighth determining unit is used for performing RS decoding processing on the bytes in each data group in the second target data to obtain the data content of the K bytes in each data group, so as to obtain the first target data.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, carrying out RS coding processing of forward error correction on the determined first target data to obtain second target data;
s2, performing data conversion on the second target data to determine a sending frequency band corresponding to the second target data to obtain third target data, wherein the sending frequency band is used for indicating the duration of sending the third target data;
s3, determining a synchronization signal of third target data from the transmission frequency band to obtain fourth target data, wherein the synchronization signal is used for indicating an initial frequency band for transmitting the third target data;
s4, the fourth target data is transmitted.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, filtering the received data to obtain fourth target data;
s2, performing frequency domain detection on the fourth target data to determine a synchronization signal in the fourth target data to obtain third target data, wherein the synchronization signal is used for indicating an initial frequency band for sending the third target data;
s3, converting the third target data to obtain second target data;
s4, RS decoding the second target data to obtain the first target data.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, carrying out RS coding processing of forward error correction on the determined first target data to obtain second target data;
s2, performing data conversion on the second target data to determine a sending frequency band corresponding to the second target data to obtain third target data, wherein the sending frequency band is used for indicating the duration of sending the third target data;
s3, determining a synchronization signal of third target data from the transmission frequency band to obtain fourth target data, wherein the synchronization signal is used for indicating an initial frequency band for transmitting the third target data;
s4, the fourth target data is transmitted.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, filtering the received data to obtain fourth target data;
s2, performing frequency domain detection on the fourth target data to determine a synchronization signal in the fourth target data to obtain third target data, wherein the synchronization signal is used for indicating an initial frequency band for sending the third target data;
s3, converting the third target data to obtain second target data;
s4, RS decoding the second target data to obtain the first target data.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (14)
1. A data transmission method, comprising:
performing forward error correction RS coding processing on the determined first target data to obtain second target data;
performing data conversion on the second target data to determine a sending frequency band corresponding to the second target data to obtain third target data, wherein the sending frequency band is used for indicating the duration of sending the third target data;
determining a synchronization signal of the third target data from the transmission frequency band to obtain fourth target data, wherein the synchronization signal is used for indicating an initial frequency band for transmitting the third target data;
and transmitting the fourth target data.
2. The method of claim 1, wherein before the RS encoding process for forward error correction is performed on the determined first target data to obtain the second target data, the method further comprises:
segmenting bytes in the determined data to be sent to obtain I data groups, wherein each data group in the I data groups comprises K bytes, and I and K are natural numbers which are more than or equal to 1;
setting a transmission frequency of each data group, wherein the transmission frequency is used for identifying a transmission starting point of each data group;
and storing each data group after the transmission frequency is determined into a transmission buffer area to obtain the first target data.
3. The method according to claim 1 or 2, wherein the RS encoding process for forward error correction of the determined first target data to obtain the second target data comprises:
performing RS encoding processing on K bytes in each data group in the first target data to obtain second target data, where each data group in the second target data includes: the data content of the K bytes, the data length of the N bytes, the error correction code of the M bytes, and the K, N, M are all natural numbers greater than or equal to 1.
4. The method of claim 1, wherein performing data conversion on the second target data to determine a transmission frequency band corresponding to the second target data to obtain third target data comprises:
and converting the frequency band corresponding to the second target data into M-system data to obtain the third target data, wherein the M-system is used for representing the duration of each frequency band for transmitting the third target data.
5. The method of claim 1, wherein determining the synchronization signal of the third target data from the transmission frequency band to obtain fourth target data comprises:
modulating the third target data through frequency shift keying FSK to obtain modulated third target data;
and adding a preset number of frequency bands in the sending frequency bands into the modulated third target data to determine a synchronous signal of the third target data, so as to obtain the fourth target data.
6. A data processing method, comprising:
filtering the received data to obtain fourth target data;
performing frequency domain detection on the fourth target data to determine a synchronization signal in the fourth target data to obtain third target data, wherein the synchronization signal is used for indicating an initial frequency band for transmitting the third target data;
converting the third target data to obtain second target data;
and performing RS decoding processing on the second target data to obtain first target data.
7. The method of claim 6, wherein filtering the received data to obtain fourth target data comprises:
and filtering the received data through a band-pass filter to obtain fourth target data, wherein the fourth target data comprises frequency band information.
8. The method of claim 6, wherein performing frequency domain detection on the fourth target data to determine a synchronization signal in the fourth target data to obtain third target data comprises:
identifying a frequency band in the fourth target data to determine the synchronization signal from the frequency band;
and determining a data group corresponding to a first preset number of frequency points before the synchronous signal as the second target data.
9. The method of claim 6, wherein transforming the third target data to obtain second target data comprises:
and performing FSK demodulation on the frequency band in the third target data to obtain the second target data.
10. The method of claim 6, wherein performing RS decoding processing on the second target data to obtain first target data comprises:
and performing RS decoding processing on bytes in each data group in the second target data to obtain data contents of K bytes included in each data group, so as to obtain the first target data.
11. A data transmission apparatus, comprising:
the first determining module is used for carrying out RS coding processing of forward error correction on the determined first target data to obtain second target data;
a second determining module, configured to perform data conversion on the second target data to determine a sending frequency band corresponding to the second target data, so as to obtain third target data, where the sending frequency band is used to indicate a duration of sending the third target data;
a third determining module, configured to determine a synchronization signal of the third target data from the transmission frequency band to obtain fourth target data, where the synchronization signal is used to indicate an initial frequency band for transmitting the third target data;
and the sending module is used for sending the fourth target data.
12. A data processing apparatus, comprising:
the fourth determining module is used for filtering the received data to obtain fourth target data;
a fifth determining module, configured to perform frequency domain detection on the fourth target data to determine a synchronization signal in the fourth target data, so as to obtain third target data, where the synchronization signal is used to indicate an initial frequency band for transmitting the third target data;
a sixth determining module, configured to convert the third target data to obtain second target data;
and the seventh determining module is used for performing RS decoding processing on the second target data to obtain the first target data.
13. A storage medium having stored thereon a computer program, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when executed or wherein the computer program is arranged to perform the method of any of claims 6 to 10 when executed.
14. An electronic apparatus comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 5, or wherein the processor is arranged to execute the computer program to perform the method of any of claims 6 to 10.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911399949.2A CN111130700B (en) | 2019-12-30 | 2019-12-30 | Data transmission method and device, storage medium, and electronic device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911399949.2A CN111130700B (en) | 2019-12-30 | 2019-12-30 | Data transmission method and device, storage medium, and electronic device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111130700A true CN111130700A (en) | 2020-05-08 |
| CN111130700B CN111130700B (en) | 2022-10-18 |
Family
ID=70505625
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911399949.2A Active CN111130700B (en) | 2019-12-30 | 2019-12-30 | Data transmission method and device, storage medium, and electronic device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111130700B (en) |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090323865A1 (en) * | 2008-06-30 | 2009-12-31 | Peter Bradley | Method and Apparatus for Low Power Simultaneous Frequency, Automatic Gain Control and Timing Acquisition in Radio Receivers |
| CN102123122A (en) * | 2010-01-07 | 2011-07-13 | 无锡爱睿芯电子有限公司 | Modulation-demodulation device and modulation-demodulation method |
| CN103199977A (en) * | 2012-12-27 | 2013-07-10 | 中华电信股份有限公司 | Synchronous sequence data transmission method and circuit device |
| EP2670102A1 (en) * | 2012-05-31 | 2013-12-04 | Mitsubishi Electric R&D Centre Europe B.V. | Method and device for synchronizing a receiver on received preamble symbol |
| CN103825675A (en) * | 2014-01-28 | 2014-05-28 | 华南理工大学 | Coding method and apparatus in secondary ultrasonic communication |
| CN106375023A (en) * | 2016-08-29 | 2017-02-01 | 普联技术有限公司 | Sound wave communication method and system based on multi-system chirp-rate keying modulation |
| US20170138185A1 (en) * | 2014-04-22 | 2017-05-18 | Cold Bore Technology Inc. | Methods and systems for forward error correction for measurement while drilling (mwd) communication systems |
| US20170367578A1 (en) * | 2015-01-26 | 2017-12-28 | Northeastern University | Ultrasonic Network for Wearable Devices |
| CN108809441A (en) * | 2017-04-28 | 2018-11-13 | 杭州萤石网络有限公司 | A kind of sound wave communication method and system |
| CN110324094A (en) * | 2019-08-08 | 2019-10-11 | 浙江大华技术股份有限公司 | Sound wave communication method and device, storage medium and electronic device |
-
2019
- 2019-12-30 CN CN201911399949.2A patent/CN111130700B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090323865A1 (en) * | 2008-06-30 | 2009-12-31 | Peter Bradley | Method and Apparatus for Low Power Simultaneous Frequency, Automatic Gain Control and Timing Acquisition in Radio Receivers |
| CN102123122A (en) * | 2010-01-07 | 2011-07-13 | 无锡爱睿芯电子有限公司 | Modulation-demodulation device and modulation-demodulation method |
| EP2670102A1 (en) * | 2012-05-31 | 2013-12-04 | Mitsubishi Electric R&D Centre Europe B.V. | Method and device for synchronizing a receiver on received preamble symbol |
| CN103199977A (en) * | 2012-12-27 | 2013-07-10 | 中华电信股份有限公司 | Synchronous sequence data transmission method and circuit device |
| CN103825675A (en) * | 2014-01-28 | 2014-05-28 | 华南理工大学 | Coding method and apparatus in secondary ultrasonic communication |
| US20170138185A1 (en) * | 2014-04-22 | 2017-05-18 | Cold Bore Technology Inc. | Methods and systems for forward error correction for measurement while drilling (mwd) communication systems |
| US20170367578A1 (en) * | 2015-01-26 | 2017-12-28 | Northeastern University | Ultrasonic Network for Wearable Devices |
| CN106375023A (en) * | 2016-08-29 | 2017-02-01 | 普联技术有限公司 | Sound wave communication method and system based on multi-system chirp-rate keying modulation |
| CN108809441A (en) * | 2017-04-28 | 2018-11-13 | 杭州萤石网络有限公司 | A kind of sound wave communication method and system |
| CN110324094A (en) * | 2019-08-08 | 2019-10-11 | 浙江大华技术股份有限公司 | Sound wave communication method and device, storage medium and electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111130700B (en) | 2022-10-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR102296684B1 (en) | Encoding method and device | |
| CN107087033A (en) | Information push method, device, storage medium and computer equipment | |
| CN110445860B (en) | Message sending method, device, terminal equipment and storage medium | |
| CN102480341A (en) | Transmitting device, transmitting method, receiving device, receiving method, program, and transmission system | |
| CN110324094B (en) | Sound wave communication method and device, storage medium and electronic device | |
| CN104468042A (en) | Data transmission method and system | |
| CN111106838B (en) | A communication synchronization method, device and system | |
| CN111130700B (en) | Data transmission method and device, storage medium, and electronic device | |
| CN112803950A (en) | Data compression method, device and equipment and computer storage medium | |
| US20160218825A1 (en) | Rateless decoding | |
| CN105637956A (en) | Access network node and paging method | |
| CN114201310A (en) | Signal receiving and transmitting system and method based on software definition and storage medium | |
| CN103840914A (en) | Data communication method, terminal and information security equipment | |
| CN114629917B (en) | Data processing method and device for cross-system communication and electronic equipment | |
| CN108242977B (en) | Data processing method, data processing device and electronic equipment | |
| CN102341784B (en) | A method for fast MAP recovery when an error occurs in MoCA | |
| CN104468441A (en) | Signal coding and modulating method and device for digital interphone, signal demodulating and decoding method and device for digital interphone | |
| CN113242473B (en) | Data processing method, system, data acquisition equipment and readable storage medium | |
| CN107078992A (en) | A kind of information transferring method, equipment and system | |
| CN113572572B (en) | Information processing method and device, terminal, chip and storage medium | |
| US9532348B2 (en) | Apparatus and method for obtaining information related to removing interference based on structural identifier allocation in wireless communication system | |
| CN113162628A (en) | Data encoding method, data decoding method, terminal and storage medium | |
| CN116192998B (en) | Method, device and equipment for decoding power transmission protocol information packet | |
| CN113609356A (en) | Intelligent building data acquisition method | |
| CN116049174B (en) | Power Internet of Things node information forwarding method, device and wireless node |
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 |