CN111130700B - Data transmission method and device, storage medium, and electronic device - Google Patents

Data transmission method and device, storage medium, and electronic device Download PDF

Info

Publication number
CN111130700B
CN111130700B CN201911399949.2A CN201911399949A CN111130700B CN 111130700 B CN111130700 B CN 111130700B CN 201911399949 A CN201911399949 A CN 201911399949A CN 111130700 B CN111130700 B CN 111130700B
Authority
CN
China
Prior art keywords
target data
data
frequency band
target
bytes
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
CN201911399949.2A
Other languages
Chinese (zh)
Other versions
CN111130700A (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201911399949.2A priority Critical patent/CN111130700B/en
Publication of CN111130700A publication Critical patent/CN111130700A/en
Application granted granted Critical
Publication of CN111130700B publication Critical patent/CN111130700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0079Receiver details
    • H04L7/0087Preprocessing 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

Data transmission method and device, storage medium, and electronic device
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. To this kind of join in marriage net technique closely most adopts the form of sound wave, passes through the sound wave with information such as account number, password of wifi and transmits away, thereby the sound wave that smart machine gathered through the mike carries out modem and acquires wifi information and reach 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 algorithm in the acoustic transmission is not clearly explained, 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 a starting 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: a first determining module, configured to perform RS coding processing for 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 for 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.
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 method embodiments described above 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 art can be solved, and the effect of accurate data transmission 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 diagram of a data processing method according to an embodiment of the 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 method running on a mobile terminal, fig. 1 is a block diagram of a hardware structure 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 computer programs, for example, software programs and modules 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 programs stored in the memory 104, that is, implementing 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.
Alternatively, 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. To achieve data synchronization, 2 frequency bands are used to indicate the beginning of the synchronization signal before the beginning of the data, and the transmission duration of the beginning synchronization signal is 6 × tms, as 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 bytes in 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;
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 with the determined sending frequency into a sending 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 GROUP includes the following: the starting frequency F0 of all GROUP is passed; then transmitting GROUP value I, and obtaining transmitted bit R by adopting a frequency modulation method I (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 (Reed-Solomon) coding processing on K bytes in each data group in first target data to obtain second target data, wherein each data group in the second target data comprises: the data content of K bytes, the data length of N bytes, the error correction code of M bytes, K, N, M are all greater than or equal to 1 natural number.
Alternatively, RS coding (Reed-solomon codes), which is a kind of forward error correction channel coding, is used.
Optionally, in this embodiment, for example, the GROUP intra-GROUP coded modulation transmission rule includes the following: to pairFor each GROUP data, firstly setting a sending frequency F1 to represent the starting point of one GROUP; for each GROUP data with length k, when x is equal to 0]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 the 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: 1. the length of data to be transmitted of a byte, k bytes of data to be transmitted and n-k bytes of error correcting codes. Therefore, the length of data to be modulated and transmitted is N +1 bytes, that is, N =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 R N The number of bits of (c).
In an optional embodiment, 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, includes:
s1, converting a frequency band corresponding to the second target data into M-system data to obtain third target data, wherein the M-system is used for representing 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 third target data through frequency shift keying FSK to obtain modulated third target data;
and S2, 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 and 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 3 bits are actually transmitted each time, that is 8+3-8 = 3 bit.
Each time j bits are transmitted, 2 bits are required j For each frequency band, the synchronous frequency bands of two frequency points of F0 and F1 are added simultaneously, and M =2+2 is needed during transmission j And (4) frequency bands. The frequency range values are represented as F0-FM-1, and F2-FM-1 correspond to 0-2 j -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 R I +I*R N The 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.
Optionally, the execution subject of the above steps may be a terminal, etc., 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 art can be solved, and the effect of accurate data transmission is achieved.
In an optional embodiment, filtering the received data to obtain fourth target data includes:
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 point is 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 a frequency band in fourth target data to determine a synchronous signal from the frequency band;
and S2, determining a data group corresponding to the frequency points with the first preset number in front of the synchronous signal as 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 the signals are detected, for the detected F0 frequency point, the start segment currently being the transmission data is indicated, and then 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 an actual GROUP length value for guiding how many GROUP remain to be analyzed subsequently.
In an alternative embodiment, converting the third target data to obtain the second target data includes:
s1, performing FSK demodulation on a 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 F1 is analyzed, 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 the corresponding specific frequency values between F2 and FM-1: f2 to FM-1 correspond to 0 to 2 j -1 value (binary number of corresponding 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, carrying out RS decoding processing on bytes in each data group in the second target data to obtain data contents of K bytes in each data group, and obtaining the first target data.
Optionally, for example, the parsed data is decoded by using an RS (n, k) error correcting 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, and R bytes are truncated from the 2 nd byte starting from the data with the length of k, where the truncated R bytes represent the actual 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 description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may 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 or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (which may be 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 apparatus is further provided, which is used to implement the foregoing embodiments and preferred embodiments, and details of the description already given are not repeated. 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 a starting 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 both 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 greater than or equal to 1 natural number.
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;
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:
an eighth determining unit, configured to perform 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, and 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 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, performing forward error correction RS coding processing 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 synchronous signal of third target data from the transmitting frequency band to obtain fourth target data, wherein the synchronous signal is used for indicating an initial frequency band for transmitting the third target data;
and S4, sending fourth target data.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, filtering received data to obtain fourth target data;
s2, 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;
s3, converting the third target data to obtain second target data;
and S4, carrying out RS decoding processing on the second target data to obtain 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 further provide an electronic device, comprising 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.
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, performing forward error correction RS coding processing 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 synchronous signal of third target data from the transmitting frequency band to obtain fourth target data, wherein the synchronous signal is used for indicating an initial frequency band for transmitting the third target data;
and S4, sending fourth target data.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, filtering received data to obtain fourth target data;
s2, 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;
s3, converting the third target data to obtain second target data;
and S4, carrying out RS decoding processing on the second target data to obtain the first target data.
Optionally, for a specific example in this embodiment, reference may be made to the examples described in the above embodiment and optional implementation, 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 (12)

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;
transmitting the fourth target data;
the method for performing RS encoding processing for forward error correction on the determined first target data to obtain second target data includes:
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 and the error correcting code of the M bytes are all natural numbers which are more than or equal to 1;
performing data conversion on the second target data to determine a transmission frequency band corresponding to the second target data, and obtaining third target data, including:
and converting the second target data into M-system data to obtain third target data, wherein the frequency band corresponding to the M-system data is modulated by Frequency Shift Keying (FSK), and the duration of data transmission in each frequency band is Tms.
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 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.
4. 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, wherein each data group in the second target data comprises: the data content of the K bytes, the data length of the N bytes and the error correcting code of the M bytes are all natural numbers which are more than or equal to 1;
performing RS decoding processing on the second target data to obtain first target data;
converting the third target data to obtain second target data, including:
and converting the second target data into M-system data to obtain the second target data, wherein the frequency band corresponding to the M-system data is modulated by frequency shift keying FSK, and the duration of data transmission in each frequency band is Tms.
5. The method of claim 4, 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.
6. The method of claim 4, 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.
7. The method of claim 4, 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.
8. The method of claim 4, 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.
9. A data transmission apparatus, comprising:
a first determining module, configured to perform RS coding processing for 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;
a sending module, configured to send the fourth target data;
the first determining module is further configured to perform RS encoding processing on K bytes in each data group in the first target data to obtain the 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 and the error correcting code of the M bytes are all natural numbers which are more than or equal to 1;
the second determining module is further configured to convert the second target data into M-ary data to obtain the third target data, where a frequency band corresponding to the M-ary data is modulated by frequency shift keying FSK, and a duration of data transmission in each frequency band is Tms.
10. 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, where each data group in the second target data includes: the data content of the K bytes, the data length of the N bytes and the error correcting code of the M bytes are all natural numbers which are more than or equal to 1;
a seventh determining module, configured to perform RS decoding processing on the second target data to obtain first target data;
the sixth determining module is further configured to convert the third target data into M-ary data to obtain the second target data, where a frequency band corresponding to the M-ary data is modulated by frequency shift keying FSK, and a duration of data transmission in each frequency band is Tms.
11. 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 3 when executed or wherein the computer program is arranged to perform the method of any of claims 4 to 8 when executed.
12. An electronic apparatus comprising a memory and a processor, wherein the memory has a computer program stored therein, and the processor is configured to run the computer program to perform the method of any one of claims 1 to 3, or the processor is configured to run the computer program to perform the method of any one of claims 4 to 8.
CN201911399949.2A 2019-12-30 2019-12-30 Data transmission method and device, storage medium, and electronic device Active CN111130700B (en)

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 CN111130700A (en) 2020-05-08
CN111130700B true 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN110324094A (en) * 2019-08-08 2019-10-11 浙江大华技术股份有限公司 Sound wave communication method and device, storage medium and electronic device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8509355B2 (en) * 2008-06-30 2013-08-13 Medtronic, Inc. Method and apparatus for low power simultaneous frequency, automatic gain control and timing acquisition in radio receivers
CN102123122B (en) * 2010-01-07 2013-10-16 无锡爱睿芯电子有限公司 Modulation-demodulation device and modulation-demodulation method
EP2670102B1 (en) * 2012-05-31 2016-03-30 Mitsubishi Electric R&D Centre Europe B.V. Method and device for synchronizing a receiver on received preamble symbol
TWI516060B (en) * 2012-12-27 2016-01-01 Chunghwa Telecom Co Ltd Synchronization sequence data transmission method and circuit device
CA2946621C (en) * 2014-04-22 2023-05-02 Cold Bore Technology Inc. Methods and systems for forward error correction for measurement while drilling (mwd) communication systems
CA2974951A1 (en) * 2015-01-26 2016-08-04 Northeastern University Internet-linked ultrasonic network
CN108809441B (en) * 2017-04-28 2021-09-21 杭州萤石网络股份有限公司 Sound wave communication method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN111130700A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN107087033A (en) Information push method, device, storage medium and computer equipment
CN110324094B (en) Sound wave communication method and device, storage medium and electronic device
CN202663412U (en) Sending equipment, receiving equipment and transmission system
CN204633784U (en) A kind of data transmission device
CN103532673A (en) Distributed wireless meteorological encoding monitoring method, device and system
CN110113771B (en) Data processing method, device, gateway equipment and storage medium
CN111130700B (en) Data transmission method and device, storage medium, and electronic device
CN112769455B (en) Method, device, equipment and storage medium for generating aperiodic long code spreading code
CN104468042A (en) Data transmission method and system
CN112803950A (en) Data compression method, device and equipment and computer storage medium
CN204615911U (en) A kind of modem chip of low-voltage powerline carrier communication and device
CN109347605B (en) Encoding method, decoding method and device, and computer readable storage medium
CN108242977B (en) Data processing method, data processing device and electronic equipment
CN102957445A (en) Wireless communication device and train control system using same
CN105637956A (en) Access network node and paging method
CN107078992A (en) A kind of information transferring method, equipment and system
CN111800360B (en) FSK software decoding method based on frequency identification
US9532348B2 (en) Apparatus and method for obtaining information related to removing interference based on structural identifier allocation in wireless communication system
CN106576269B (en) Data transmission method, equipment and system
EP3910800A1 (en) Wireless communication system, wireless communication device, transmitting device, and receiving device
CN105791897A (en) Signaling coding modulation method and signaling demodulation decoding method based on superposition coding
CN116192998B (en) Method, device and equipment for decoding power transmission protocol information packet
CN104468441A (en) Signal coding and modulating method and device for digital interphone, signal demodulating and decoding method and device for digital interphone
CN115642955A (en) Wireless communication method, system, device and medium
CN118101054A (en) Cable monitoring method, device, storage medium and system based on signal coding

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