WO2018018627A1 - Data transmission method and system, and receiving device - Google Patents
Data transmission method and system, and receiving device Download PDFInfo
- Publication number
- WO2018018627A1 WO2018018627A1 PCT/CN2016/092407 CN2016092407W WO2018018627A1 WO 2018018627 A1 WO2018018627 A1 WO 2018018627A1 CN 2016092407 W CN2016092407 W CN 2016092407W WO 2018018627 A1 WO2018018627 A1 WO 2018018627A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data packet
- transport
- data
- transmission
- receiving device
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/12—Frequency diversity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
Definitions
- the embodiments of the present invention relate to the field of communications technologies, and in particular, to a data transmission method, system, and receiving apparatus.
- wireless transmission such as WIFI, LTE, and DVB
- WIFI wireless transmission
- LTE Long Term Evolution
- DVB wireless transmission
- the measures taken generally jump to another one.
- frequency hopping can be used to ensure data transmission, but the real-time performance of frequency hopping cannot be guaranteed.
- image mosaic, data error and other issues which have a great impact on the user experience.
- the related technology has the following problems: all data is transmitted on the same channel, and once interfered, all data is inaccurate, resulting in data errors, which is not conducive to data transmission.
- the technical problem to be solved by the embodiments of the present application is to provide a data transmission method, system, and receiving apparatus, which are configured to transmit data packets of the same data on two transmission channels by establishing two transmission channels between the transmitting device and the receiving device. This ensures that the data will not be lost or interfered with during transmission.
- a technical solution adopted by the embodiment of the present application is to provide a data transmission method.
- the method includes: generating a first transport data packet and a second transport data packet, where the first transport data packet and the second transport data packet include the same data content; and sending, by using the first transport channel, the first transport data packet to the receiving device; Transmitting a second transport packet to the receiving device over the second transport channel.
- the first transmission channel and the second transmission channel are located in different frequency bands.
- the coding manner of the data content in the first transmission data packet is different from the number of the second transmission data packet According to the way the content is encoded.
- the data transmission method further includes: the receiving device determines the earliest received data packet among the first transmission data packet and the second transmission data packet; and the receiving device processes the earliest received data packet.
- the present application also adopts a receiving apparatus, which receives a data packet sent by a transmitting apparatus through a first transmission channel or a second transmission channel; parses a data packet, determines whether the data packet is correct; and if the data packet is correct, determines The first received packet; the first received packet is processed.
- the receiving device further includes: if the data packet is incorrect, discarding the data packet.
- the present application further provides a data transmission system, including: a generating module, configured to generate a first transport data packet and a second transport data packet, where the first transport data packet and the second transport data packet include The same data content is provided; the sending module is configured to send the first transport data packet to the receiving device by using the first transport channel, and the second transport channel sends the second transport data packet to the receiving device.
- a generating module configured to generate a first transport data packet and a second transport data packet, where the first transport data packet and the second transport data packet include The same data content is provided
- the sending module is configured to send the first transport data packet to the receiving device by using the first transport channel, and the second transport channel sends the second transport data packet to the receiving device.
- the generating module further includes: a copy unit, configured to generate a copy of the transport data block; and a packaging unit, configured to encapsulate the sequence number corresponding to the transport data block and the transport data block into a transport data packet according to a preset encapsulation algorithm.
- a receiving device comprising: a receiving module, configured to receive a data packet sent by a sending device by using a first transport channel or a second transport channel; and a parsing module, configured to parse the first transport data packet or the second transport data packet; And used to determine whether the first transport packet or the second transport packet is correct.
- the receiving device further includes: a discarding module, configured to discard the data packet if the first transport data packet or the second transport data packet is incorrect.
- the transmitting device of the present application sends the first transmission data packet carrying the same data content to the receiving device through the first and second two transmission channels, respectively. Transmitting a data packet, after receiving, by the first and second two transmission channels, the first transmission data packet and the second transmission data packet, according to the earliest arrival of the first transmission data packet and the second transmission data packet Transmitting the data packet for processing is beneficial to ensure the timeliness of the receiving device to obtain the data content, and is well avoided in the single channel transmission, if the transmission data packet has a problem, it needs to be connected.
- the receiving device and the transmitting device synchronously hop to another transmission channel, and retransmit the transmission data content, causing a serious delay in the data content.
- FIG. 1 is a flow chart of a first embodiment of a data transmission method according to the present application.
- FIG. 2 is a flow chart of a second embodiment of a data transmission method according to the present application.
- FIG. 3 is a flow chart of a third embodiment of a data transmission method according to the present application.
- FIG. 4 is a schematic diagram of an embodiment of a data transmission system of the present application.
- FIG. 5 is a schematic diagram of a first embodiment of an electronic device according to a data transmission method of the present application.
- FIG. 6 is a schematic diagram of an embodiment of a receiving device of the present application.
- FIG. 7 is a schematic diagram of a second embodiment of an electronic device according to a data transmission method of the present application.
- an embodiment of a data transmission method of the present application includes:
- Step 101 Generate a first transport data packet and a second transport data packet, where the first transport data packet and the second transport data packet include the same data content;
- the data in the first transport data packet may be different from the encoding manner of the data content in the second transport data packet.
- the first and second preset encapsulation algorithms may be set, and the first preset encapsulation algorithm is corresponding to the first transmission.
- the second preset encapsulation algorithm is corresponding to the second transmission channel
- the data content is encapsulated into the second transmission data packet according to the second preset encapsulation algorithm
- the data content is encapsulated to the first according to the first preset encapsulation algorithm
- the data packet is transmitted.
- the data content may also be numbered and the number is encapsulated into the transport data packet.
- a copy of the data content is generated, and then a first transport packet is generated according to the data content, and a second transport packet is generated according to the copy of the data content.
- Step 102 Send a first transport data packet to the receiving device by using the first transport channel.
- Step 103 Send a second transmission data packet to the receiving device by using a second transmission channel.
- steps 101 to 103 are all performed by the transmitting device, and the first transmission channel and the second transmission channel refer to a data channel established between the transmitting device and the receiving device.
- the first transmission The channel and the second transmission channel are located in different frequency bands, for example, the first transmission channel is 2.4G, and the second transmission channel is 900M.
- the transmitting device sends the generated first data packet and the second data packet respectively from the first transport channel and the second transport channel, and since the first transport channel and the second transport channel are independent, the first transport packet and the first The two transport packets are not affected by each other.
- the transmitting apparatus ensures the independence of the first transport data packet and the second transport data packet by transmitting the same data content through the first transport channel and the second transport channel, even if one of the transport data is transmitted.
- the receiving device can use another transmission data packet for processing, ensuring the timeliness of data transmission, and well avoiding the need for receiving the device when there is a problem in the transmission of the data packet in the single channel transmission. Synchronously hopping with the transmitting device to another transport channel, retransmitting the transmitted data content, and the data content is seriously delayed.
- the transmitting device may also generate three, four or more transport packets carrying the same data content, and each transport packet corresponds to a transport channel for transmission.
- the receiving device may first arrive according to the first one of the first transport data packet and the second transport data packet.
- the method also includes:
- Step 201 The receiving device determines an earliest received data packet among the first transport data packet and the second transport data packet;
- the receiving device processes according to the earliest received data packet, which is beneficial to ensure the timeliness of the receiving device to obtain the data content.
- the real-time performance of the data content is very important, and the extension of the data content is likely to cause the cardon.
- the receiving device determines that the first received data packet among the first transport data packet and the second transport data packet can be transitioned through the data storage, as follows:
- Determining whether the first transmission data packet is correct if the correct receiving device parses the data packet, discarding the data packet if it is incorrect; and determining whether the data storage space is stored with the first transmission data If the data stored in the packet has the same data content, if the storage space stores data that is not the same as the data content carried by the first transport packet, the data content is stored in the storage space, otherwise the data packet is discarded.
- Step 202 The receiving device processes the earliest received data packet.
- the receiving device may further determine the correctness of the data packet, and directly discard the data packet when the data packet is incorrect.
- the sending device sends the first transport data packet and the second transport data packet carrying the same data content to the receiving device through the first and second two transmission channels, respectively, and the receiving device passes the first
- the second two transmission channels are processed according to the earliest arriving transmission data packet among the first transmission data packet and the second transmission data packet, thereby facilitating acquisition by the receiving device.
- the timeliness of the data content is well avoided in the single-channel transmission. If there is a problem in the transmission of the data packet, the receiving device and the transmitting device need to be synchronously hopped to another transmission channel, and the transmission data content is retransmitted, resulting in the appearance of the data content. A severe delay.
- FIG. 3 is a flowchart of a second embodiment of a data transmission method, and a data transmission method, including:
- Step 301 Receive, by using the first transport channel and the second transport channel, a data packet sent by the sending device.
- the first transmission channel and the second transmission channel are channels for transmitting data between the transmitting device and the receiving device, and when the transmitting device transmits the data content to the receiving device, respectively carrying the data through the first transmission channel and the second transmission channel
- the data packet of the content in short, a data content is transmitted to the receiving device twice through the first transmission channel and the second transmission channel, respectively.
- Step 302 Parsing the data packet, determining whether the data packet is correct; if yes, proceeding to step 303, otherwise proceeding to step 305;
- Parsing the data packet to obtain data content carried by the data packet may have different formats for transmitting data. Therefore, the first transport channel may correspond to a first preset parsing algorithm, and the second transport channel may correspond to a second preset parsing algorithm to parse the first transmit data. The manner of the packet is also performed according to the first preset parsing algorithm, and the first preset parsing algorithm corresponds to the second preset encapsulation algorithm.
- Step 303 If the data packet is correct, determine the data packet received for the first time;
- the package identifier determines whether the packet is correct.
- Step 304 Process the data packet received for the first time
- the method of determining the first received data packet can also be various, for example, recording the receiving time of each data packet, and when it is found that two data packets having the same data content are received, it is determined according to the receiving time which packet is received for the first time.
- the packet to.
- the storage space if any, discards the data packet, and subsequently processes the data packet, and directly extracts the data packet from the data storage space for processing, thereby effectively avoiding repeated processing of the data.
- the received data block to be transmitted may also be recorded in the form of a record table. When the receiving device finds that the same pending data block has been received from the record table, the data to be transmitted is received. Block is discarded.
- Step 305 If the data packet is incorrect, discard the data packet.
- the receiving device may also transmit a data retransmission message to the transmitting device when the receiving device determines that there are two data packets containing the same data content in the discarded data packet.
- the transmitting device transmits the data content
- the data content may be obtained by dividing the original data, and each data content is set with a sequence number, and the transmission data packet includes a corresponding content in addition to the data content. Sequence number. After receiving the data content and the sequence number, the receiving device restores the original data according to the sequence number and the data content.
- the receiving device after receiving, by the first and second two transmission channels, the first transmission data packet and the second transmission data packet, the receiving device is configured according to the earliest among the first transmission data packet and the second transmission data packet.
- the arrival of the transmitted data packet for processing is beneficial to ensure the timeliness of the receiving device to obtain the data content, and is well avoided in the single channel transmission. If there is a problem in the transmission data packet, the receiving device and the transmitting device need to be synchronously hopped to another A transmission channel retransmits the transmitted data content, causing a serious delay in the data content.
- the data transmission system 400 includes a transmitting device 401 and a receiving device 402.
- the transmitting device 401 includes a generating module 4011 and a transmitting module 4012.
- the receiving device 402 includes a determining module 4021 and a processing module 4022.
- the generating module 4011 is configured to generate a first transport data packet and a second transport data packet, where the first transport data packet and the second transport data packet include the same data content.
- a sending module 4012 configured to send, by using a first transport channel, a first transport data packet to a receiving device, where the second transport channel sends a second data to the receiving device Transfer packets.
- the determining module 4021 is configured to determine, by the receiving device, the earliest received data packet among the first transport data packet and the second transport data packet.
- the processing module 4022 is configured to, by the receiving device, process the earliest received data packet.
- the generating module 4011, the sending module 4012, the determining module 4021, and the processing module 4022 may each be a processor, and the processor executes various functional applications and data processing by running, that is, a processing method for implementing data transmission.
- the generating module 4011 may copy the data content to generate a copy of the data content, and the two data contents generate two data packets, which are respectively transmitted on the first transport channel and the second transport channel.
- the encoding manner of the data content in the first transport data packet may be different from the encoding manner of the data content in the second transport data packet.
- the first and second preset encapsulation algorithms may be set, the first preset encapsulation algorithm is corresponding to the first transmission channel, and the second preset encapsulation algorithm is corresponding to the second transmission channel, according to the second preset encapsulation algorithm.
- Encapsulating the data content into the second transport data packet, and encapsulating the data content into the first transport data packet according to the first preset encapsulation algorithm determining whether the first transport data packet and the second transport data packet include The same data content can also be used to number the data content and encapsulate the number into the transport data packet.
- the transmitting apparatus ensures the independence of the first transport data packet and the second transport data packet by transmitting the same data content through the first transport channel and the second transport channel, even if one of the transmissions is transmitted.
- the receiving device can use another transmission data packet for processing, ensuring the timeliness of the data transmission, and well avoiding the single channel transmission, if the transmission data packet has a problem, it needs to be received.
- the device and the transmitting device synchronously hop to another transmission channel, retransmitting the transmitted data content, and the data content is seriously delayed.
- the present application further provides an embodiment of a non-volatile computer storage medium storing computer-executable instructions that can perform the data transfer method of any of the above-described embodiments.
- FIG. 5 is a schematic diagram of a first embodiment of an electronic device for performing the data transmission method of the present application.
- the electronic device 500 includes a processor 501, a memory 503, a communication adapter 502, and a bus.
- the processor 501, the memory 503, the communication adapter 502, and the bus are connected.
- a bus connection is taken as an example.
- the memory 503 is used as a non-volatile computer readable storage medium for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as data transmission in the embodiments of the present application.
- the program instructions/modules (generation module 401, transmission module 402, determination module 403, and processing module 404) corresponding to the input method.
- the processor 501 executes various functional applications and data processing of the server by executing non-volatile software programs, instructions, and modules stored in the memory 503, that is, a processing method for implementing data transmission of the above method embodiments.
- the memory 503 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the processing device of the data transmission, and the like. Further, the memory 503 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some embodiments, the memory 503 can optionally include memory remotely located relative to the processor 501 that can be connected to the processing device of the data transfer over 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 one or more modules are stored in the memory 503, and when executed by the one or more processors 501, perform a processing method of data transmission in any of the above method embodiments.
- the electronic device of the embodiment of the present application exists in various forms, including but not limited to:
- Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
- Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
- Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
- Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
- Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
- the server consists of a processor, a hard disk, a memory, a system bus, etc.
- the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
- the device embodiments described above are merely illustrative, wherein the described as separate components
- the units may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- the first and second transmission channels between the receiving device and the receiving device are established by using a pre-stored instruction in the processor of the electronic device, and the transmission data block and the preset number are generated into data packets.
- the data packet on the transmission channel does not need to be synchronously hopped to another transmission channel when the receiving device and/or the transmitting device finds a transmission error in the transmission channel, and retransmits the transmission data block to ensure the real-time transmission of the transmission data block.
- the receiving device 600 includes: a receiving module 601, a parsing module 602, a determining module 603, a determining module 604, a processing module 605, and a discarding module 606.
- the receiving module 601 is configured to receive, by using the first transport channel or the second transport channel, a data packet sent by the sending device.
- the parsing module 602 is configured to parse the first transport data packet or the second transport data packet.
- the determining module 603 is configured to determine whether the first transport data packet or the second transport data packet is correct.
- the determining module 604 is configured to determine the data packet received for the first time if the data packet is correct.
- the processing module 605 is configured to process the data packet that is first received.
- the discarding module 606 is configured to discard the data packet if the first transport data packet or the second transport data packet is incorrect. It is worth noting that: determining whether the data storage space stores the same data block as the transport data block carried by the transport data packet is also processed by the judging module. If there is the same data block, the discarding module discards the duplicate data block if If there is no duplication, it is stored in the storage space.
- the receiving module 601, the parsing module 602, the judging module 603, the determining module 604, the processing module 605, and the discarding module 606 are respectively processors, and the processor executes various functional applications and data processing of the receiving device by running, that is, implementing data. The processing method of the transmission.
- the receiving device after receiving, by the first and second two transmission channels, the first transmission data packet and the second transmission data packet, the receiving device first arrives according to the first transmission data packet and the second transmission data packet.
- the transmission of the data packet is processed to ensure the timeliness of the receiving device to obtain the data content, and the single channel transmission is well avoided. If there is a problem in the transmission data packet, the receiving device and the transmitting device need to be synchronously hopped to another Transport channel, retransmitting the transmitted data content, causing the data content to appear A severe delay.
- FIG. 7 is a schematic diagram of a second embodiment of an electronic device for performing the data transmission method of the present application.
- the electronic device 700 further includes a processor 701, a memory 702, a communication adapter 703, and a bus.
- the processor 701, the memory 703, the communication adapter 702, and the bus are connected.
- a bus connection is taken as an example.
- the processor 701, the memory 702, and the communication adapter 703 are all connected to the bus.
- the memory 703 is used as a non-volatile computer readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, as in the processing method of data transmission in the embodiment of the present application.
- Program instructions/modules (receiving module 601, parsing module 602, judging module 603, determining module 604, processing module 605, and discarding module 606).
- the processor 701 executes various functional applications and data processing of the server by executing non-volatile software programs, instructions, and modules stored in the memory 703, that is, implementing the data transmission method of the above method embodiment.
- the memory 703 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the processing device of the data transmission, and the like. Further, the memory 703 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, or other nonvolatile solid state storage device. In some embodiments, the memory 703 can optionally include memory remotely located relative to the processor 701 that can be connected to the processing device of the data transfer over 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 one or more modules are stored in the memory 703, and when executed by the one or more processors 701, perform a processing method of data transmission in any of the above method embodiments.
- the electronic device of the embodiment of the present application exists in various forms, including but not limited to:
- Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
- Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
- Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
- Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
- Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable vehicles. Navigation device.
- the server consists of a processor, a hard disk, a memory, a system bus, etc.
- the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
- the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- the electronic device in the embodiment of the present application receives a data packet sent between the first transmission channel and the second transmission channel connected to the transmitting device by using a pre-stored instruction in the processor of the electronic device, and first stores the data according to the number. Whether there is the same data in the space, if not stored, if any, discard, so the data is selected very well, because the same data is transmitted through two transmission channels, even if one of the transmission channels is interfered, It is also possible to obtain data from the second transmission channel, preventing data loss and facilitating the correct transmission of data.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本申请实施例涉及通信技术领域,特别是涉及一种数据传输方法、系统及接收装置。The embodiments of the present invention relate to the field of communications technologies, and in particular, to a data transmission method, system, and receiving apparatus.
随着无线技术的日益发展,无线传输技术应用越来越被各行各业所接受。现在的无线传输,如WIFI、LTE、DVB,基本都是在同一频段下,某个频点的信道上,固定带宽的频道上进行数据传输,一旦受到干扰,采取的措施一般为跳到另外一个频点或采用通讯协议来规避干扰。但是在使用不同协议的无线通信,如果在同一信道干扰,只能采取跳频来保证数据传输,但是跳频的实时性就不能保证。特别是在实时视频及音频数字传输的情况下,会导致图像马赛克、数据错误等问题,对用户体验影响极高。With the development of wireless technology, wireless transmission technology applications are increasingly accepted by all walks of life. Nowadays, wireless transmission, such as WIFI, LTE, and DVB, basically transmits data on a fixed frequency channel on a channel of a certain frequency band in the same frequency band. Once the interference is received, the measures taken generally jump to another one. Frequency or use communication protocol to avoid interference. However, in wireless communication using different protocols, if the same channel interference, only frequency hopping can be used to ensure data transmission, but the real-time performance of frequency hopping cannot be guaranteed. Especially in the case of real-time video and audio digital transmission, it will lead to image mosaic, data error and other issues, which have a great impact on the user experience.
在实现本申请过程中,申请人发现相关技术存在以下问题:所有数据都在同一信道上传输,一旦受到干扰,就会影响所有的数据不准确,导致数据错误,不利于数据的传输。In the process of implementing the present application, the applicant finds that the related technology has the following problems: all data is transmitted on the same channel, and once interfered, all data is inaccurate, resulting in data errors, which is not conducive to data transmission.
【发明内容】[Summary of the Invention]
本申请实施方式主要解决的技术问题是提供一种数据传输方法、系统及接收装置,通过在发送装置和接收装置之间建立两条传输信道,在两条传输信道上传输相同数据的数据包,这样保证了数据在传输过程中不会造成丢失或受干扰而损坏。The technical problem to be solved by the embodiments of the present application is to provide a data transmission method, system, and receiving apparatus, which are configured to transmit data packets of the same data on two transmission channels by establishing two transmission channels between the transmitting device and the receiving device. This ensures that the data will not be lost or interfered with during transmission.
为解决上述技术问题,本申请实施方式采用的一个技术方案是:提供一种数据传输方法。包括:生成第一传输数据包和第二传输数据包,其中,第一传输数据包与第二传输数据包包含有相同的数据内容;通过第一传输信道向接收装置发送第一传输数据包;通过第二传输信道向接收装置发送第二传输数据包。To solve the above technical problem, a technical solution adopted by the embodiment of the present application is to provide a data transmission method. The method includes: generating a first transport data packet and a second transport data packet, where the first transport data packet and the second transport data packet include the same data content; and sending, by using the first transport channel, the first transport data packet to the receiving device; Transmitting a second transport packet to the receiving device over the second transport channel.
其中,第一传输信道与第二传输信道位于不同的频段上。The first transmission channel and the second transmission channel are located in different frequency bands.
其中,第一传输数据包中数据内容的编码方式不同于第二传输数据包中数 据内容的编码方式。Wherein, the coding manner of the data content in the first transmission data packet is different from the number of the second transmission data packet According to the way the content is encoded.
其中,一种数据传输方法,还包括:接收装置确定第一传输数据包与第二传输数据包之中最早接收到的数据包;接收装置对最早接收到的数据包进行处理。The data transmission method further includes: the receiving device determines the earliest received data packet among the first transmission data packet and the second transmission data packet; and the receiving device processes the earliest received data packet.
为了解决上述问题,本申请还采用一种接收装置,通过第一传输信道或第二传输信道接收发送装置发送的数据包;解析数据包,判断数据包是否正确;如果数据包是正确的,确定首次接收到的数据包;对首次接收到的数据包进行处理。In order to solve the above problem, the present application also adopts a receiving apparatus, which receives a data packet sent by a transmitting apparatus through a first transmission channel or a second transmission channel; parses a data packet, determines whether the data packet is correct; and if the data packet is correct, determines The first received packet; the first received packet is processed.
其中,接收装置还包括:如果数据包是不正确的,则丢弃数据包。The receiving device further includes: if the data packet is incorrect, discarding the data packet.
为了解决上述问题,本申请还提供了一种数据传输系统,包括:生成模块,用于生成第一传输数据包和第二传输数据包,其中,第一传输数据包与第二传输数据包包含有相同的数据内容;发送模块,用于通过第一传输信道向接收装置发送第一传输数据包,第二传输信道向接收装置发送第二传输数据包。In order to solve the above problem, the present application further provides a data transmission system, including: a generating module, configured to generate a first transport data packet and a second transport data packet, where the first transport data packet and the second transport data packet include The same data content is provided; the sending module is configured to send the first transport data packet to the receiving device by using the first transport channel, and the second transport channel sends the second transport data packet to the receiving device.
其中,生成模块还包括:复制单元,用于生成传输数据块的副本;封装单元,用于根据预设封装算法,将传输数据块和传输数据块对应的顺序编号封装成传输数据包。The generating module further includes: a copy unit, configured to generate a copy of the transport data block; and a packaging unit, configured to encapsulate the sequence number corresponding to the transport data block and the transport data block into a transport data packet according to a preset encapsulation algorithm.
一种接收装置,包括:接收模块,用于通过第一传输信道或第二传输信道接收发送装置发送的数据包;解析模块,用于解析第一传输数据包或第二传输数据包;判断模块,用于判断第一传输数据包或第二传输数据包是否正确。A receiving device, comprising: a receiving module, configured to receive a data packet sent by a sending device by using a first transport channel or a second transport channel; and a parsing module, configured to parse the first transport data packet or the second transport data packet; And used to determine whether the first transport packet or the second transport packet is correct.
其中,接收装置还包括:丢弃模块,用于如果第一传输数据包或第二传输数据包是不正确的,则丢弃数据包。The receiving device further includes: a discarding module, configured to discard the data packet if the first transport data packet or the second transport data packet is incorrect.
本申请实施方式的有益效果是:区别于现有技术的情况,本申请发送装置分别通过第一、第二两条传输信道向接收装置发送携带有相同的数据内容的第一传输数据包和第二传输数据包,接收装置在通过第一、第二两条传输信道接收至第一传输数据包和第二传输数据包之后,根据第一传输数据包和第二传输数据包之中最早到达的传输数据包进行处理,有利于保证接收装置获取数据内容的时效性,很好地避免了在单通道传输中,若传输数据包出现问题时,需要接 收装置和发送装置同步跳传到另一传输信道,重新传输传输数据内容,造成数据内容出现严重延时的情况。The beneficial effects of the embodiments of the present application are: different from the prior art, the transmitting device of the present application sends the first transmission data packet carrying the same data content to the receiving device through the first and second two transmission channels, respectively. Transmitting a data packet, after receiving, by the first and second two transmission channels, the first transmission data packet and the second transmission data packet, according to the earliest arrival of the first transmission data packet and the second transmission data packet Transmitting the data packet for processing is beneficial to ensure the timeliness of the receiving device to obtain the data content, and is well avoided in the single channel transmission, if the transmission data packet has a problem, it needs to be connected. The receiving device and the transmitting device synchronously hop to another transmission channel, and retransmit the transmission data content, causing a serious delay in the data content.
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍。显而易见地,下面所描述的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings to be used in the embodiments of the present application will be briefly described below. Obviously, the drawings described below are only some embodiments of the present application, and other drawings may be obtained from those skilled in the art without departing from the drawings.
图1是本申请一种数据传输方法第一实施方式的流程图;1 is a flow chart of a first embodiment of a data transmission method according to the present application;
图2是本申请一种数据传输方法第二实施方式的流程图;2 is a flow chart of a second embodiment of a data transmission method according to the present application;
图3是本申请一种数据传输方法第三实施方式的流程图3 is a flow chart of a third embodiment of a data transmission method according to the present application.
图4是本申请一种数据传输系统实施方式的示意图;4 is a schematic diagram of an embodiment of a data transmission system of the present application;
图5是本申请一种数据传输方法的电子设备第一实施例的示意图;FIG. 5 is a schematic diagram of a first embodiment of an electronic device according to a data transmission method of the present application; FIG.
图6是本申请一种接收装置实施方式的示意图;6 is a schematic diagram of an embodiment of a receiving device of the present application;
图7是本申请一种数据传输方法的电子设备第二实施例的示意图。FIG. 7 is a schematic diagram of a second embodiment of an electronic device according to a data transmission method of the present application.
参阅图1,本申请一种数据传输方法实施方式包括:Referring to FIG. 1, an embodiment of a data transmission method of the present application includes:
步骤101:生成第一传输数据包和第二传输数据包,其中,所述第一传输数据包与所述第二传输数据包包含有相同的数据内容;Step 101: Generate a first transport data packet and a second transport data packet, where the first transport data packet and the second transport data packet include the same data content;
虽然第一传输数据包与所述第二传输数据包包含有相同的数据内容,但是为了使第一传输数据包和第二传输数据包适应不同的传输信道,第一传输数据包中所述数据内容的编码方式可以不同于所述第二传输数据包中所述数据内容的编码方式,例如:可以设置第一、第二两个预设封装算法,第一预设封装算法是对应第一传输信道,第二预设封装算法是对应第二传输信道,根据第二预设封装算法,将数据内容封装至第二传输数据包,以及根据第一预设封装算法,将数据内容封装至第一传输数据包,当然,为了方便判断第一传输数据包和第二传输数据包是否包含相同的数据内容,还可以对数据内容进行编号,并且把编号封装至传输数据包中。Although the first transport data packet and the second transport data packet contain the same data content, in order to adapt the first transport data packet and the second transport data packet to different transport channels, the data in the first transport data packet The encoding manner of the content may be different from the encoding manner of the data content in the second transport data packet. For example, the first and second preset encapsulation algorithms may be set, and the first preset encapsulation algorithm is corresponding to the first transmission. Channel, the second preset encapsulation algorithm is corresponding to the second transmission channel, and the data content is encapsulated into the second transmission data packet according to the second preset encapsulation algorithm, and the data content is encapsulated to the first according to the first preset encapsulation algorithm The data packet is transmitted. Of course, in order to facilitate judging whether the first transport data packet and the second transport data packet contain the same data content, the data content may also be numbered and the number is encapsulated into the transport data packet.
进一步的,为了方便生成两个包含相同的数据内容的传输数据包,可以先 生成数据内容的副本,然后根据数据内容生成第一传输数据包,再根据数据内容的副本生成第二传输数据包。Further, in order to facilitate the generation of two transport packets containing the same data content, A copy of the data content is generated, and then a first transport packet is generated according to the data content, and a second transport packet is generated according to the copy of the data content.
步骤102:通过第一传输信道向接收装置发送第一传输数据包;Step 102: Send a first transport data packet to the receiving device by using the first transport channel.
步骤103:通过第二传输信道向所述接收装置发送第二传输数据包;Step 103: Send a second transmission data packet to the receiving device by using a second transmission channel.
需要说明的是:步骤101至103均是由发送装置执行的,而第一传输信道和第二传输信道是指发送装置与接收装置之间建立的数据通道,在本实施例中,第一传输信道与所述第二传输信道位于不同的频段上,例如:第一传输信道为2.4G,第二传输信道为900M。发送装置将生成的第一数据包和第二数据包分别从第一传输信道和第二传输信道发出,由于第一传输信道和第二传输信道是独立的,因此,第一传输数据包和第二传输数据包相互不受影响。It should be noted that
本申请实施例中,发送装置通过将携带相同的数据内容分别通过第一传输信道和第二传输信道进行传输,保证第一传输数据包和第二传输数据包的独立性,即使其中一个传输数据包在传输的过程出现问题时,接收装置可以使用另一个传输数据包进行处理,保证数据传输的时效性,很好地避免了在单通道传输中,若传输数据包出现问题时,需要接收装置和发送装置同步跳传到另一传输信道,重新传输传输数据内容,数据内容出现严重延时的情况。当然,在其它替代实施例中,发送装置也可以生成三个、四个或者更多的携带相同的数据内容的传输数据包,并且每一传输数据包对应一传输信道进行传输。In the embodiment of the present application, the transmitting apparatus ensures the independence of the first transport data packet and the second transport data packet by transmitting the same data content through the first transport channel and the second transport channel, even if one of the transport data is transmitted. When there is a problem in the process of transmission, the receiving device can use another transmission data packet for processing, ensuring the timeliness of data transmission, and well avoiding the need for receiving the device when there is a problem in the transmission of the data packet in the single channel transmission. Synchronously hopping with the transmitting device to another transport channel, retransmitting the transmitted data content, and the data content is seriously delayed. Of course, in other alternative embodiments, the transmitting device may also generate three, four or more transport packets carrying the same data content, and each transport packet corresponds to a transport channel for transmission.
由于第一传输数据包和第二传输数据包是携带相同的数据内容,为了避免接收装置重复使用相同的数据内容,接收装置可以根据第一传输数据包和第二传输数据包之中最早到达的传输数据包进行处理,则请参阅图2,方法还包括:Since the first transport data packet and the second transport data packet carry the same data content, in order to prevent the receiving device from repeatedly using the same data content, the receiving device may first arrive according to the first one of the first transport data packet and the second transport data packet. To transfer the packet for processing, please refer to Figure 2. The method also includes:
步骤201:所述接收装置确定所述第一传输数据包与所述第二传输数据包之中最早接收到的数据包;Step 201: The receiving device determines an earliest received data packet among the first transport data packet and the second transport data packet;
接收装置根据最早接收到的数据包进行处理,有利于保证接收装置获取数据内容的时效性,尤其是在线流媒体传输中,数据内容的实时性是非常重要,数据内容的延伸容易引起卡顿。The receiving device processes according to the earliest received data packet, which is beneficial to ensure the timeliness of the receiving device to obtain the data content. Especially in the online streaming media transmission, the real-time performance of the data content is very important, and the extension of the data content is likely to cause the cardon.
而另外,接收装置在确定所述第一传输数据包与所述第二传输数据包之中最早接收到的数据包可以通过数据存储器进行过渡判断,具体如下:In addition, the receiving device determines that the first received data packet among the first transport data packet and the second transport data packet can be transitioned through the data storage, as follows:
判断所述第一传输数据包是否正确,若正确接收装置将对数据包进行解析,不正确则丢弃该数据包;并判断数据存储空间是否存储有与所述第一传输数据 包所携带的数据内容相同的数据,若存储空间是否存储没有与所述第一传输数据包所携带的数据内容相同的数据则将数据内容存储至存储空间,否则丢弃该数据包。Determining whether the first transmission data packet is correct, if the correct receiving device parses the data packet, discarding the data packet if it is incorrect; and determining whether the data storage space is stored with the first transmission data If the data stored in the packet has the same data content, if the storage space stores data that is not the same as the data content carried by the first transport packet, the data content is stored in the storage space, otherwise the data packet is discarded.
步骤202:所述接收装置对所述最早接收到的数据包进行处理;Step 202: The receiving device processes the earliest received data packet.
进一步的,接收装置在通过第一传输信道和第二传输信道接收数据包时,还可以对数据包的正确性进行判断,当数据包不正确时直接掉弃。Further, when receiving the data packet through the first transmission channel and the second transmission channel, the receiving device may further determine the correctness of the data packet, and directly discard the data packet when the data packet is incorrect.
在本申请实施例中,发送装置分别通过第一、第二两条传输信道向接收装置发送携带有相同的数据内容的第一传输数据包和第二传输数据包,接收装置在通过第一、第二两条传输信道接收至第一传输数据包和第二传输数据包之后,根据第一传输数据包和第二传输数据包之中最早到达的传输数据包进行处理,有利于保证接收装置获取数据内容的时效性,很好地避免了在单通道传输中,若传输数据包出现问题时,需要接收装置和发送装置同步跳传到另一传输信道,重新传输传输数据内容,造成数据内容出现严重延时的情况。In the embodiment of the present application, the sending device sends the first transport data packet and the second transport data packet carrying the same data content to the receiving device through the first and second two transmission channels, respectively, and the receiving device passes the first, After receiving the first transmission data packet and the second transmission data packet, the second two transmission channels are processed according to the earliest arriving transmission data packet among the first transmission data packet and the second transmission data packet, thereby facilitating acquisition by the receiving device. The timeliness of the data content is well avoided in the single-channel transmission. If there is a problem in the transmission of the data packet, the receiving device and the transmitting device need to be synchronously hopped to another transmission channel, and the transmission data content is retransmitted, resulting in the appearance of the data content. A severe delay.
请参阅图3,图3是一种数据传输方法的第二实施例的流程图,一种数据传输方法,包括:Referring to FIG. 3, FIG. 3 is a flowchart of a second embodiment of a data transmission method, and a data transmission method, including:
步骤301:通过第一传输信道和第二传输信道接收发送装置发送的数据包;Step 301: Receive, by using the first transport channel and the second transport channel, a data packet sent by the sending device.
第一传输信道和第二传输信道是发送装置和接收装置之间用于传输数据的信道,而发送装置向接收装置发送数据内容时,分别通过第一传输信道和第二传输信道传输携带该数据内容的数据包,简而言之,一数据内容分别通过第一传输信道和第二传输信道向接收装置发送两次。The first transmission channel and the second transmission channel are channels for transmitting data between the transmitting device and the receiving device, and when the transmitting device transmits the data content to the receiving device, respectively carrying the data through the first transmission channel and the second transmission channel The data packet of the content, in short, a data content is transmitted to the receiving device twice through the first transmission channel and the second transmission channel, respectively.
步骤302:解析所述数据包,判断所述数据包是否正确;若正确则进入步骤303,否则进入步骤305;Step 302: Parsing the data packet, determining whether the data packet is correct; if yes, proceeding to step 303, otherwise proceeding to step 305;
解析所述数据包,获取所述数据包所携带的数据内容。另外,不同传输信道,其对传输数据的格式可以不相同的,因此,第一传输信道可以对应第一预设解析算法,第二传输信道可以对应第二预设解析算法,解析第一传输数据包的方式也是按第一预设解析算法进行的,第一预设解析算法与第二预设封装算法相对应的。Parsing the data packet to obtain data content carried by the data packet. In addition, different transport channels may have different formats for transmitting data. Therefore, the first transport channel may correspond to a first preset parsing algorithm, and the second transport channel may correspond to a second preset parsing algorithm to parse the first transmit data. The manner of the packet is also performed according to the first preset parsing algorithm, and the first preset parsing algorithm corresponds to the second preset encapsulation algorithm.
步骤303:如果所述数据包是正确的,确定首次接收到的所述数据包;Step 303: If the data packet is correct, determine the data packet received for the first time;
其中,校验数据包是否正确的方式可以有多种,例如:在数据包中设置校验码,通过校验码校验数据包是否正确,或者,通过判断数据包是否包含首尾 封装标识判断数据包是否正确。Among them, there are various ways to check whether the data packet is correct, for example, setting a check code in the data packet, checking whether the data packet is correct by using the check code, or by judging whether the data packet includes the first and last ends. The package identifier determines whether the packet is correct.
步骤304:对首次接收到的所述数据包进行处理;Step 304: Process the data packet received for the first time;
确定首次接收到的数据包的方式也可以有多种,例如:记录每一个数据包的接收时间,当发现接收到两个数据内容相同的数据包,根据接收时间判断哪一数据包时首次接收到的数据包。为了减少接收装置存储数据的存储量,也可能在接收到数据包时,并且判断到数据包是否正确时,判断数据存储空间是否存在有相同的数据包,若没有,则将数据包存储至数据存储空间,若有,则丢弃的该数据包,后续对数据包进行处理,直接从数据存储空间中提取数据包进行处理,有效地避免地重复处理数据。当然,在其它替代实施例中,也可以通过记录表的形式,记录接收到的待传数据块,当接收装置从记录表中找到已经接收过相同的待传数据块时,将该待传数据块丢弃。The method of determining the first received data packet can also be various, for example, recording the receiving time of each data packet, and when it is found that two data packets having the same data content are received, it is determined according to the receiving time which packet is received for the first time. The packet to. In order to reduce the storage amount of data stored by the receiving device, it is also possible to determine whether the data storage space has the same data packet when the data packet is received, and if the data packet is correct, if not, store the data packet to the data. The storage space, if any, discards the data packet, and subsequently processes the data packet, and directly extracts the data packet from the data storage space for processing, thereby effectively avoiding repeated processing of the data. Of course, in other alternative embodiments, the received data block to be transmitted may also be recorded in the form of a record table. When the receiving device finds that the same pending data block has been received from the record table, the data to be transmitted is received. Block is discarded.
步骤305:如果所述数据包是不正确的,则丢弃所述数据包;Step 305: If the data packet is incorrect, discard the data packet.
当接收装置在丢弃数据包中确定存在两个包含相同的数据内容的数据包时,接收装置也可以向发送装置发送数据重传消息。The receiving device may also transmit a data retransmission message to the transmitting device when the receiving device determines that there are two data packets containing the same data content in the discarded data packet.
需要说明的是:发送装置在传输数据内容时,数据内容可以是由原始数据分割得到的,并且每一个数据内容均设置有顺序编号,传输数据包中除了包含数据内容之外,还包括对应的顺序编号。接收装置在接收到数据内容和顺序编号之后,根据顺序编号和数据内容还原出原始数据。It should be noted that when the transmitting device transmits the data content, the data content may be obtained by dividing the original data, and each data content is set with a sequence number, and the transmission data packet includes a corresponding content in addition to the data content. Sequence number. After receiving the data content and the sequence number, the receiving device restores the original data according to the sequence number and the data content.
在本申请实施例中,接收装置在通过第一、第二两条传输信道接收至第一传输数据包和第二传输数据包之后,根据第一传输数据包和第二传输数据包之中最早到达的传输数据包进行处理,有利于保证接收装置获取数据内容的时效性,很好地避免了在单通道传输中,若传输数据包出现问题时,需要接收装置和发送装置同步跳传到另一传输信道,重新传输传输数据内容,造成数据内容出现严重延时的情况。In the embodiment of the present application, after receiving, by the first and second two transmission channels, the first transmission data packet and the second transmission data packet, the receiving device is configured according to the earliest among the first transmission data packet and the second transmission data packet. The arrival of the transmitted data packet for processing is beneficial to ensure the timeliness of the receiving device to obtain the data content, and is well avoided in the single channel transmission. If there is a problem in the transmission data packet, the receiving device and the transmitting device need to be synchronously hopped to another A transmission channel retransmits the transmitted data content, causing a serious delay in the data content.
本申请还提供数据传输系统的实施例,请参阅图4,数据传输系统400包括:发送装置401和接收装置402。发送装置401包括:生成模块4011和发送模块4012。接收装置402包括:确定模块4021和处理模块4022。生成模块4011,用于生成第一传输数据包和第二传输数据包,其中,所述第一传输数据包与所述第二传输数据包包含有相同的数据内容。发送模块4012,用于通过第一传输信道向接收装置发送第一传输数据包,第二传输信道向所述接收装置发送第二
传输数据包。确定模块4021,用于所述接收装置确定所述第一传输数据包与所述第二传输数据包之中最早接收到的数据包。处理模块4022,用于所述接收装置对所述最早接收到的数据包进行处理。生成模块4011、发送模块4012、确定模块4021和处理模块4022都可以分别是处理器,处理器通过运行从而执行各种功能应用以及数据处理,即实现数据传输的处理方法。The present application also provides an embodiment of a data transmission system. Referring to FIG. 4, the
具体的,生成模块4011可以对数据内容进行复制,生成数据内容的副本,两个数据内容生成两个数据包,分别在第一传输信道和第二传输信道上传输。为了使第一传输数据包和第二传输数据包适应不同的传输信道,第一传输数据包中所述数据内容的编码方式可以不同于所述第二传输数据包中所述数据内容的编码方式,例如:可以设置第一、第二两个预设封装算法,第一预设封装算法是对应第一传输信道,第二预设封装算法是对应第二传输信道,根据第二预设封装算法,将数据内容封装至第二传输数据包,以及根据第一预设封装算法,将数据内容封装至第一传输数据包,当然,为了方便判断第一传输数据包和第二传输数据包是否包含相同的数据内容,还可以对数据内容进行编号,并且把编号封装至传输数据包中。Specifically, the
在本申请实施例中,发送装置通过将携带相同的数据内容分别通过第一传输信道和第二传输信道进行传输,保证第一传输数据包和第二传输数据包的独立性,即使其中一个传输数据包在传输的过程出现问题时,接收装置可以使用另一个传输数据包进行处理,保证数据传输的时效性,很好地避免了在单通道传输中,若传输数据包出现问题时,需要接收装置和发送装置同步跳传到另一传输信道,重新传输传输数据内容,数据内容出现严重延时的情况。In the embodiment of the present application, the transmitting apparatus ensures the independence of the first transport data packet and the second transport data packet by transmitting the same data content through the first transport channel and the second transport channel, even if one of the transmissions is transmitted. When there is a problem in the transmission process of the data packet, the receiving device can use another transmission data packet for processing, ensuring the timeliness of the data transmission, and well avoiding the single channel transmission, if the transmission data packet has a problem, it needs to be received. The device and the transmitting device synchronously hop to another transmission channel, retransmitting the transmitted data content, and the data content is seriously delayed.
本申请又提供了一种非易失性计算机存储介质实施例,非易失性计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的数据传输方法。The present application further provides an embodiment of a non-volatile computer storage medium storing computer-executable instructions that can perform the data transfer method of any of the above-described embodiments.
请参阅图5,图5是执行本申请数据传输方法的电子设备第一实施例的示意图,该电子设备500包括:处理器501、存储器503、通信适配器502和总线。处理器501、存储器503、通信适配器502和总线连接。图5中以通过总线连接为例。Please refer to FIG. 5. FIG. 5 is a schematic diagram of a first embodiment of an electronic device for performing the data transmission method of the present application. The
存储器503作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的数据传
输方法对应的程序指令/模块(生成模块401、发送模块402、确定模块403和处理模块404)。处理器501通过运行存储在存储器503中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例数据传输的处理方法。存储器503可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据数据传输的处理装置的使用所创建的数据等。此外,存储器503可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器503可选包括相对于处理器501远程设置的存储器,这些远程存储器可以通过网络连接至数据传输的处理装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The
所述一个或者多个模块存储在所述存储器503中,当被所述一个或者多个处理器501执行时,执行上述任意方法实施例中的数据传输的处理方法。The one or more modules are stored in the
本申请实施例的电子设备以多种形式存在,包括但不限于:The electronic device of the embodiment of the present application exists in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication devices: These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The server consists of a processor, a hard disk, a memory, a system bus, etc. The server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction functions.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的 单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, wherein the described as separate components The units may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
本申请实施例中,通过电子设备的处理器中的事先存好的指令建立与接收装置之间的第一、第二两条传输信道,并生成传输数据块和预设的编号打成数据包,分别通过第一、第二两条传输信道向接收装置发送数据包,接收装置使用最早到达并且正确的传输数据包进行处理,在一传输信道上的数据包出现错误时,可以直接使另一传输信道上的数据包,无需要在接收装置和/或发送装置发现一传输信道出现传输错误时,同步跳传到另一传输信道,重新传输传输数据块,保证传输数据块传输的实时性。In the embodiment of the present application, the first and second transmission channels between the receiving device and the receiving device are established by using a pre-stored instruction in the processor of the electronic device, and the transmission data block and the preset number are generated into data packets. Sending data packets to the receiving device through the first and second transmission channels respectively, and the receiving device uses the earliest arriving and correct transmission data packet for processing, and when the data packet on one transmission channel has an error, the other device may directly make another The data packet on the transmission channel does not need to be synchronously hopped to another transmission channel when the receiving device and/or the transmitting device finds a transmission error in the transmission channel, and retransmits the transmission data block to ensure the real-time transmission of the transmission data block.
本申请还提供接收装置实施例,请参阅图6,接收装置600包括:接收模块601、解析模块602、判断模块603、确定模块604、处理模块605和丢弃模块606。接收模块601,用于通过第一传输信道或第二传输信道接收发送装置发送的数据包。解析模块602,用于解析所述第一传输数据包或所述第二传输数据包。判断模块603,用于判断所述第一传输数据包或所述第二传输数据包是否正确。确定模块604,用于如果所述数据包是正确的,确定首次接收到的所述数据包。处理模块605,用于对首次接收到的所述数据包进行处理。丢弃模块606,用于如果所述第一传输数据包或所述第二传输数据包是不正确的,则丢弃所述数据包。值得说明的是:判断数据存储空间是否存储有与传输数据包所携带的传输数据块相同的传数据块也是通过判断模块处理,如果有相同数据块,也通过丢弃模块丢弃重复的数据块,如果没有重复的,则存储到存储空间。接收模块601、解析模块602、判断模块603、确定模块604、处理模块605和丢弃模块606都可以分别是处理器,处理器通过运行从而执行接收装置的各种功能应用以及数据处理,即实现数据传输的处理方法。The present application further provides an embodiment of a receiving device. Referring to FIG. 6, the receiving
本申请实施例中,接收装置在通过第一、第二两条传输信道接收至第一传输数据包和第二传输数据包之后,根据第一传输数据包和第二传输数据包之中最早到达的传输数据包进行处理,有利于保证接收装置获取数据内容的时效性,很好地避免了在单通道传输中,若传输数据包出现问题时,需要接收装置和发送装置同步跳传到另一传输信道,重新传输传输数据内容,造成数据内容出现 严重延时的情况。In the embodiment of the present application, after receiving, by the first and second two transmission channels, the first transmission data packet and the second transmission data packet, the receiving device first arrives according to the first transmission data packet and the second transmission data packet. The transmission of the data packet is processed to ensure the timeliness of the receiving device to obtain the data content, and the single channel transmission is well avoided. If there is a problem in the transmission data packet, the receiving device and the transmitting device need to be synchronously hopped to another Transport channel, retransmitting the transmitted data content, causing the data content to appear A severe delay.
请参阅图7,图7是执行本申请数据传输方法的电子设备的第二实施例的示意图,该电子设备700还包括:处理器701、存储器702、通信适配器703和总线。处理器701、存储器703、通信适配器702和总线连接。图7中以通过总线连接为例。处理器701、存储器702和通信适配器703均与总线连接。Please refer to FIG. 7. FIG. 7 is a schematic diagram of a second embodiment of an electronic device for performing the data transmission method of the present application. The
存储器703作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的数据传输的处理方法对应的程序指令/模块(接收模块601、解析模块602、判断模块603、确定模块604、处理模块605和丢弃模块606)。处理器701通过运行存储在存储器703中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例数据传输方法。存储器703可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据数据传输的处理装置的使用所创建的数据等。此外,存储器703可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器703可选包括相对于处理器701远程设置的存储器,这些远程存储器可以通过网络连接至数据传输的处理装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The
所述一个或者多个模块存储在所述存储器703中,当被所述一个或者多个处理器701执行时,执行上述任意方法实施例中的数据传输的处理方法。The one or more modules are stored in the
本申请实施例的电子设备以多种形式存在,包括但不限于:The electronic device of the embodiment of the present application exists in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication devices: These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车 载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable vehicles. Navigation device.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The server consists of a processor, a hard disk, a memory, a system bus, etc. The server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction functions.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on such understanding, the above technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
本申请实施例的电子设备,通过电子设备的处理器中的事先存好的指令,收到与发送装置之间连接第一传输信道和第二传输信道发送过来的数据包,根据编号先查看存储空间中是否有同样的数据,如没有则存储,如有则丢弃,这样很好的对数据进行了选择,由于是通过两条传输信道进行传输相同的数据,即使其中有一条传输信道受到干扰,也可以从第二条传输信道中获取到数据,防止了数据的丢失,有利于数据的正确传输。The electronic device in the embodiment of the present application receives a data packet sent between the first transmission channel and the second transmission channel connected to the transmitting device by using a pre-stored instruction in the processor of the electronic device, and first stores the data according to the number. Whether there is the same data in the space, if not stored, if any, discard, so the data is selected very well, because the same data is transmitted through two transmission channels, even if one of the transmission channels is interfered, It is also possible to obtain data from the second transmission channel, preventing data loss and facilitating the correct transmission of data.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201680000634.4A CN106464581A (en) | 2016-07-29 | 2016-07-29 | Data transmission method and system and data receiving device |
| PCT/CN2016/092407 WO2018018627A1 (en) | 2016-07-29 | 2016-07-29 | Data transmission method and system, and receiving device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2016/092407 WO2018018627A1 (en) | 2016-07-29 | 2016-07-29 | Data transmission method and system, and receiving device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018018627A1 true WO2018018627A1 (en) | 2018-02-01 |
Family
ID=58215566
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/092407 Ceased WO2018018627A1 (en) | 2016-07-29 | 2016-07-29 | Data transmission method and system, and receiving device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106464581A (en) |
| WO (1) | WO2018018627A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116866883A (en) * | 2023-09-05 | 2023-10-10 | 中国兵器装备集团兵器装备研究所 | Method and system for improving timeliness of data transmission |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE102017113615A1 (en) | 2017-06-20 | 2018-12-20 | Carl Zeiss Smt Gmbh | System, method and marker for determining the position of a moving object in space |
| CN107623682B (en) * | 2017-09-06 | 2020-05-19 | 深圳众享互联科技有限公司 | Instruction transmission system based on double channels |
| WO2019095328A1 (en) * | 2017-11-17 | 2019-05-23 | 上海诺基亚贝尔股份有限公司 | Method and device for data replication, and computer-readable medium |
| CN109861800A (en) * | 2018-07-27 | 2019-06-07 | 北京新岸线移动通信技术有限公司 | A kind of radio data transmission method and system |
| CN110875787A (en) * | 2018-08-30 | 2020-03-10 | 广东新岸线计算机系统芯片有限公司 | Wireless communication method and system for realizing high-reliability low-delay transmission |
| CN108986829B (en) * | 2018-09-04 | 2020-12-15 | 北京猿力未来科技有限公司 | Data transmission method, device, equipment and storage medium |
| CN112700632A (en) * | 2020-12-23 | 2021-04-23 | 南方电网电力科技股份有限公司 | Method and system for transmitting wireless metering pulse in multiple channels |
| CN114070495A (en) * | 2021-11-17 | 2022-02-18 | 武汉联影智融医疗科技有限公司 | Data transmission method, device, electronic device and storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004073275A1 (en) * | 2003-02-13 | 2004-08-26 | Docomo Communications Laboratories Europe Gmbh | Space-time-frequency diversity for multi-carrier systems |
| CN1617478A (en) * | 2003-04-15 | 2005-05-18 | 夏普株式会社 | Wireless communication device and wireless communication system |
| CN1791084A (en) * | 2004-12-17 | 2006-06-21 | 清华大学 | Time-domain synchronous OFDM space-frequency coding time-frequency combination channel estimating method |
| CN101039136A (en) * | 2006-03-15 | 2007-09-19 | 华为技术有限公司 | Space-frequency coding-based multi-antenna transmitter diversity method and system thereof |
| CN101453257A (en) * | 2007-12-03 | 2009-06-10 | 国家广播电影电视总局广播科学研究院 | Differential space-time transmission diversity system in multi-carrier modulation system and implementing method |
| CN102468880A (en) * | 2010-11-09 | 2012-05-23 | 华为技术有限公司 | Information transmitting and receiving method and device |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102594672B (en) * | 2012-02-09 | 2015-05-06 | 北京网梯科技发展有限公司 | Method and system applicable to high-quality internet communication in low-reliability network environment |
| CN104348583A (en) * | 2013-08-08 | 2015-02-11 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN104519075A (en) * | 2013-09-26 | 2015-04-15 | 中兴通讯股份有限公司 | Data transmission method and device |
-
2016
- 2016-07-29 CN CN201680000634.4A patent/CN106464581A/en active Pending
- 2016-07-29 WO PCT/CN2016/092407 patent/WO2018018627A1/en not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004073275A1 (en) * | 2003-02-13 | 2004-08-26 | Docomo Communications Laboratories Europe Gmbh | Space-time-frequency diversity for multi-carrier systems |
| CN1617478A (en) * | 2003-04-15 | 2005-05-18 | 夏普株式会社 | Wireless communication device and wireless communication system |
| CN1791084A (en) * | 2004-12-17 | 2006-06-21 | 清华大学 | Time-domain synchronous OFDM space-frequency coding time-frequency combination channel estimating method |
| CN101039136A (en) * | 2006-03-15 | 2007-09-19 | 华为技术有限公司 | Space-frequency coding-based multi-antenna transmitter diversity method and system thereof |
| CN101453257A (en) * | 2007-12-03 | 2009-06-10 | 国家广播电影电视总局广播科学研究院 | Differential space-time transmission diversity system in multi-carrier modulation system and implementing method |
| CN102468880A (en) * | 2010-11-09 | 2012-05-23 | 华为技术有限公司 | Information transmitting and receiving method and device |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116866883A (en) * | 2023-09-05 | 2023-10-10 | 中国兵器装备集团兵器装备研究所 | Method and system for improving timeliness of data transmission |
| CN116866883B (en) * | 2023-09-05 | 2023-11-24 | 中国兵器装备集团兵器装备研究所 | Method and system for improving timeliness of data transmission |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106464581A (en) | 2017-02-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018018627A1 (en) | Data transmission method and system, and receiving device | |
| CN109996097B (en) | Screen projection method, system and storage device | |
| CN113411313B (en) | Data transmission method, device and system | |
| US12363584B2 (en) | Conserving network resources during transmission of packets of interactive services | |
| KR102107716B1 (en) | Method and apparatus for media data delivery control | |
| CN109905205B (en) | Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system | |
| CN106656424B (en) | A method of verifying data transmission | |
| KR101991388B1 (en) | Contents Transmission Method in Heterogeneous Network and Apparatus therefor | |
| US10200154B2 (en) | System and method for early packet header verification | |
| WO2018068570A1 (en) | Data transmission method and transmitting apparatus and receiving apparatus | |
| CN114979793B (en) | Live data transmission method, device, system, equipment and medium | |
| US20240397372A1 (en) | Data processing method and apparatus, computer-readable medium, and electronic device | |
| CN105791252A (en) | UDP (User Datagram Protocol) IP (Intellectual Property) core based on FPGA (Field Programmable Gate Array) | |
| KR101298640B1 (en) | Method and apparatus for transmitting transport stream packets | |
| WO2018165924A1 (en) | Adaptive transmission method and apparatus | |
| WO2018166433A1 (en) | Data transmission method and related device | |
| CN112469080B (en) | Data packet processing method and related device | |
| CN105610544B (en) | A kind of voice data transmission method and device | |
| CN109067922A (en) | A kind of data transmission method and device | |
| CN105391523B (en) | A kind of voice-optimizing transmission method and device | |
| CN112954255B (en) | Video conference code stream transmission method, device, computer equipment and storage medium | |
| CN112929742B (en) | A method and system for ultra-high-speed video stream control based on NI mmWave system | |
| CN112994848B (en) | MCS (modulation and coding scheme) adjusting method and device, storage medium and wireless node | |
| US9954984B2 (en) | System and method for enabling replay using a packetized link protocol | |
| WO2014100973A1 (en) | Video processing method, device and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16910207 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16910207 Country of ref document: EP Kind code of ref document: A1 |