WO2020211682A1 - 一种数据传输方法及相关装置 - Google Patents

一种数据传输方法及相关装置 Download PDF

Info

Publication number
WO2020211682A1
WO2020211682A1 PCT/CN2020/083514 CN2020083514W WO2020211682A1 WO 2020211682 A1 WO2020211682 A1 WO 2020211682A1 CN 2020083514 W CN2020083514 W CN 2020083514W WO 2020211682 A1 WO2020211682 A1 WO 2020211682A1
Authority
WO
WIPO (PCT)
Prior art keywords
data transmission
link
data
relay
transmission task
Prior art date
Application number
PCT/CN2020/083514
Other languages
English (en)
French (fr)
Inventor
杨鑫
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020211682A1 publication Critical patent/WO2020211682A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • H04W40/14Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality based on stability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point

Definitions

  • the invention relates to the technical field of electronic equipment, and in particular to a data transmission method and related devices.
  • the current data transmission system can already interact and communicate with different electronic devices.
  • IOT Internet of Things
  • the Internet of Things allows electronic devices to perform Peer-to-Peer connections with each other.
  • the network environment between endpoints becomes more and more complex.
  • the best route is found to send the message by collecting the relay node information. When the quality of the entire link is poor, it is difficult to ensure that the message is sent correctly even if the best route is used.
  • the embodiments of the present invention provide a data transmission method and related devices, in order to improve the success rate and stability of data transmission.
  • an embodiment of the present application provides a data transmission method, which is applied to an electronic device, the electronic device includes a wireless transceiver module, and the method includes:
  • the target node is a device in a first local area network that the electronic device accesses through the wireless transceiver module, and the first local area network includes the electronic device , The target node and at least one relay device;
  • the first transmission link is a direct communication link between the electronic device and the target node;
  • the at least one data transmission task is transmitted through the multiple relay links.
  • an embodiment of the present application provides a data transmission device, which is applied to an electronic device, the electronic device includes a wireless transceiver module, and the data transmission device includes a processing unit and a communication unit, wherein:
  • the processing unit is configured to obtain at least one data transmission task that needs to be sent to a target node, where the target node is a device in a first local area network that the electronic device accesses through the wireless transceiver module, and the first local area network
  • the network includes the electronic device, the target node, and at least one relay device; and when it is detected that the first transmission link cannot meet the transmission demand of the at least one data transmission task, obtain the first transmission link through the communication unit Link information of at least one relay link and each relay link in a local area network, where the first transmission link is a direct communication link between the electronic device and the target node; and According to the at least one data transmission task and the link information of each relay link, multiple relay links for transmitting the at least one data transmission task are selected; through the multiple relay links The at least one data transmission task is transmitted.
  • embodiments of the present application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the above
  • the above-mentioned program includes instructions for executing the steps in any method of the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the foregoing computer-readable storage medium stores a computer program for electronic data exchange, wherein the foregoing computer program enables a computer to execute In one aspect, some or all of the steps described in any method.
  • embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute For example, some or all of the steps described in any method of the first aspect.
  • the computer program product may be a software installation package.
  • the electronic device acquires at least one data transmission task that needs to be sent to a target node, and the target node is a device in the first local area network that the electronic device accesses through the wireless transceiver module
  • the first local area network includes the electronic device, the target node, and at least one relay device; when it is detected that the first transmission link cannot meet the transmission demand of the at least one data transmission task, the first At least one relay link and link information of each relay link in a local area network, where the first transmission link is a direct communication link between the electronic device and the target node; Selecting the at least one data transmission task and the link information of each relay link, selecting multiple relay links for transmitting the at least one data transmission task; transmitting through the multiple relay links The at least one data transmission task.
  • the electronic device can obtain multiple relay links when the direct communication link does not meet the transmission requirements, and select the medium for transmission according to the link information of the multiple relay links and the data transmission task to be transmitted. Following the link, the success rate and stability of data transmission are improved.
  • FIG. 1 is a schematic diagram of a data transmission relay network structure provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another data transmission method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 5 is a block diagram of functional units of a data transmission device provided by an embodiment of the present application.
  • the embodiment of the invention discloses a terminal upgrade method and related equipment and system, which can effectively reduce the workload of the OLT and improve the upgrade efficiency of the terminal.
  • the terminal may be an ONT (including an active or passive network unit) or a digital subscriber line (DSL) terminal, which is not limited in the embodiment of the present invention.
  • the terminal is a DSL terminal
  • the DSL terminal can be connected to the OLT through a copper wire. Detailed descriptions are given below.
  • the wireless links on the access network side will be divided into two categories, namely: access link (Access-Link) and relay link (Relay- Link).
  • access link refers to the wireless link that starts or ends at the mobile terminal (MS, Mobile Station);
  • relay link refers to the wireless link between the base station (BS, Base Station) and the RS or RS and The wireless link between RSs.
  • FIG. 1 is a schematic diagram of a data transmission relay network structure according to an embodiment of the present invention.
  • the electronic device A described in this application can access at least one relay node (RS, Relay Station) a, b, c... and the target device B through a wireless transceiver module.
  • RS relay node
  • the electronic device A includes a wireless transceiver module, the wireless transceiver module includes at least a Transceiver (transceiver), among which some common combinations are (1) Transceiver: BaseBand signals are provided and received by an external processing IC, (2) MCU+ Transceiver: BaseBand signal is generated and received by MCU, (3) Modem+Transceiver: BaseBand signal is generated and received by Modem, (4) Transceiver+PA+LNA: BaseBand signal is provided and received by external processing IC, PA and LNA are used to improve RF performance.
  • Transceiver BaseBand signals are provided and received by an external processing IC
  • MCU+ Transceiver BaseBand signal is generated and received by MCU
  • Modem+Transceiver BaseBand signal is generated and received by Modem
  • Transceiver+PA+LNA BaseBand signal is provided and received by external processing IC, PA and LNA are used to improve RF performance.
  • Figure 2 is a schematic flow diagram of a data transmission method provided by an embodiment of the present application, which is applied to an electronic device that includes a wireless transceiver module. As shown in the figure, the data transmission method includes:
  • the electronic device acquires at least one data transmission task that needs to be sent to a target node, where the target node is a device in a first local area network that the electronic device accesses through the wireless transceiver module, and the first local area network includes The electronic device, the target node, and at least one relay device;
  • the wireless transceiver module includes but is not limited to a LORA module.
  • the electronic device acquires at least one relay link and each relay link in the first local area network when detecting that the first transmission link cannot meet the transmission demand of the at least one data transmission task
  • the first transmission link is a direct communication link between the electronic device and the target node
  • the link information is a link information parameter that can reflect the load transmission capability of each relay link.
  • the direct communication link cannot meet the transmission demand, which may be due to limited transmission distance or poor quality of the transmission link.
  • the electronic device selects multiple relay links for transmitting the at least one data transmission task according to the at least one data transmission task and the link information of each relay link;
  • the electronic device can split the data that needs to be transmitted according to the bandwidth load capacity of each relay link, or multiplex multiple relay links for concurrent transmission of the same data, or group the transmission data, and mark Link mark and time stamp, and then select the link corresponding to the link mark for transmission.
  • S204 The electronic device transmits the at least one data transmission task through the multiple relay links.
  • the transmission of the at least one data transmission task may be a single transmission or multiple repeated transmissions according to the selected relay link.
  • the electronic device acquires at least one data transmission task that needs to be sent to a target node, and the target node is a device in the first local area network that the electronic device accesses through the wireless transceiver module
  • the first local area network includes the electronic device, the target node, and at least one relay device; when it is detected that the first transmission link cannot meet the transmission demand of the at least one data transmission task, the first At least one relay link and link information of each relay link in a local area network, where the first transmission link is a direct communication link between the electronic device and the target node; Selecting the at least one data transmission task and the link information of each relay link, selecting multiple relay links for transmitting the at least one data transmission task; transmitting through the multiple relay links The at least one data transmission task.
  • the electronic device can obtain multiple relay links when the direct communication link does not meet the transmission requirements, and select the medium for transmission according to the link information of the multiple relay links and the data transmission task to be transmitted. Following the link, the success rate and stability of data transmission are improved.
  • the acquiring at least one relay link and link information of each relay link in the first local area network includes: the at least one data transmission task includes the at least one A preset parameter corresponding to a transmission task is obtained, and at least one type of link information of the relay link is acquired according to the preset parameter.
  • the preset parameter includes at least one of the following: data type, data volume, data importance, and Real-time requirements, the link information includes: current bandwidth, data rate, packet loss rate, and delay; or, query the historical acquisition times of the link information, and acquire the at least one of the most historical acquisition times Link information; or, acquiring the at least one type of link information according to a preset acquisition strategy.
  • the bandwidth is also called bandwidth, which refers to the amount of data that can be transmitted at a fixed time, that is, the ability to transmit data in a transmission pipeline.
  • the data rate is the data transfer rate (Data transfer rate).
  • Data transfer rate In a spread spectrum system, the larger the spreading factor, the larger the bandwidth, but in LoRa modulation, the data rate is not higher, but may become lower.
  • the packet loss rate refers to the ratio of the number of data packets lost in the test to the number of data packets sent. Generally speaking, the higher the data rate, the greater the packet loss rate.
  • the time delay refers to the time from data transmission to reception and successful processing.
  • the at least one data transmission task may include transmission data and preset parameters, and the preset parameters may be parameters such as transmission requirements of the transmission data.
  • the preset parameter is the data type
  • the data rate of each relay link is acquired; when the preset parameter is the data amount, the data rate or the current bandwidth of each relay link is acquired
  • the preset parameter is the importance of data
  • Obtaining the link information of each relay link may be one type of link information or multiple types of link information. For example, when the preset parameters are data volume and real-time requirements, the The data rate and delay of each relay link.
  • the electronic device obtains the relay link information corresponding to the preset parameters.
  • the user can query the link information with the most historical acquisition times and Obtain; Obtain the link information according to the user's preset acquisition strategy.
  • the preset acquisition strategy can be to obtain one kind of link information, or to obtain a combination of multiple link information, for example, to obtain each relay link All the link information of, then compare all the link information.
  • the electronic device can obtain the link information corresponding to each relay link based on the preset parameters of at least one data transmission task that needs to be sent, which saves the time for obtaining and processing link information, and improves the data transmission efficiency. rate.
  • the selecting multiple relay links for transmitting the at least one data transmission task according to the at least one data transmission task and the link information of each relay link includes: prioritizing each relay link according to the at least one type of link information to obtain a first priority sequence corresponding to the at least one type of link information; The information sorts the at least one data transmission task into groups to obtain a first data transmission task group; according to the first priority sequence and the first data transmission task group, the one used to transmit the at least one data transmission task is selected Multiple relay links.
  • At least one type of link information of each relay link is compared, and the link information includes current bandwidth, data rate, delay, packet loss rate, etc., to obtain the link transmission of each relay link Ability, according to the link transmission capacity, each relay link is sorted from good to bad.
  • the link information is the current bandwidth
  • the bandwidth information from each relay device to the target node is compared, and the current bandwidth is sorted from largest to smallest.
  • the priority sequence of the relay link is relay a-terminal B, relay b-terminal B, relay c-terminal B, etc.; according to the current bandwidth, the at least one data transmission task is grouped according to data importance, Obtain the first data transmission task grouping of data importance from high to low as data 1, data 2, data 3, etc.; according to relay a-terminal B, relay b-terminal B and relay c-terminal B, etc. and data 1. Data 2, Data 3, etc. select multiple relay links for transmission.
  • the at least one data transmission task can be classified into data 1 according to the importance of the data from high to low.
  • Data 2, data 3, etc. in a common FSK modulation system, the wider the bandwidth, the higher the data rate, the at least one data transmission task can be divided into data 1, data 2, data 3 according to the amount of data from large to small And so on; Then select multiple relay links for transmission according to relay a-terminal B, relay b-terminal B, and relay c-terminal B, etc. and data 1, data 2, data 3, etc.
  • the link information is the data rate
  • the priority sequence of the path is relay a-terminal B, relay b-terminal B, relay c-terminal B, etc.; according to the data rate information, the at least one data transmission task is grouped according to the amount of data to obtain the amount of data
  • the size from large to small is data transmission task grouping of data 1, data 2, data 3, etc., and then according to relay a-terminal B, relay b-terminal B and relay c-terminal B, etc. and data 1, data 2 , Data 3, etc. select multiple relay links for transmission.
  • the link information is the packet loss rate
  • the link priority sequence is relay a-terminal B, relay b-terminal B, relay c-terminal B, etc.; according to the packet loss rate, the at least one data transmission task is grouped according to data importance, Obtain the data transmission task grouping of data 1, data 2, data 3, etc. from large to small, and then according to relay a-terminal B, relay b-terminal B and relay c-terminal B, etc. and data 1 , Data 2, Data 3, etc. select multiple relay links for transmission.
  • the link information is time delay, and the delay information from each relay device to the target node is compared, and the delay information is sorted from small to large.
  • the time delay the at least one data transmission task is grouped according to real-time requirements, and the data transmission task groups with real-time requirements ranging from data 1, data 2, data 3, etc., are obtained, and then according to the relay a- Terminal B, relay b-terminal B, relay c-terminal B, etc., as well as data 1, data 2, data 3, etc. select multiple relay links for transmission.
  • the link information is a combination of multiple types of link information.
  • the link information may be delay and packet loss rate, data rate and delay, or packet loss rate and delay, etc.
  • the at least one data transmission task groups the at least one data transmission task according to the data importance and real-time requirements according to the data importance and real-time requirements.
  • the link priority sequence and packet selection relay link for transmission is the link priority sequence and packet selection relay link for transmission.
  • the electronic device can prioritize the relay link based on the link information and group the at least one data transmission task, and then transmit the at least one data transmission according to the priority ranking and group selection.
  • Multiple relay links for tasks ensure accurate data transmission and improve the success rate and stability of data transmission.
  • the selecting multiple relay links for transmitting the at least one data transmission task according to the at least one data transmission task and the link information of each relay link includes: prioritizing each of the relay links according to the at least one type of link information to obtain a second priority sequence corresponding to the at least one type of link information; and according to the second priority sequence Grouping and sorting the at least one data transmission task with the amount of data of the at least one data transmission task to obtain a second data transmission task grouping in descending order of data amount; marking the second data transmission task grouping with a time stamp , And mark the second data transmission task packet with a link mark according to the second priority sequence; select one of the plurality of data transmission tasks for transmitting the at least one data transmission task according to the time stamp and the link mark Following the link.
  • the link information is the data rate
  • compare the data rates of each relay device to the target node and sort the data rates from large to small, for example, relay a-terminal B, relay b-terminal B.
  • Relay c-terminal B etc.
  • At least one data transmission task to be sent is classified and time stamped, such as data 1, data 2, data 3, etc., where the data amount of data 1 ⁇ the data amount of data 2 ⁇ the data amount of data 3.
  • the data rate of the relay links is insufficient, that is, the data transmission cannot be supported by a certain relay link, then the video stream data packets are grouped, and the link mark and time stamp are marked, and the packet transmission is performed through different relay links. And reorganization.
  • the grouping of video stream data packets includes, but is not limited to, equal proportion allocation according to link bandwidth.
  • the link information may also include time delay and the like. Sort by time delay from smallest to largest, for example, relay a-terminal B, relay b-terminal B, relay c-terminal B, etc. At least one data transmission task to be sent is classified and timestamped, for example, For data 1, data 2, data 3, etc., where the data volume of data 1 ⁇ the data volume of data 2 ⁇ the data volume of data 3, mark data 1 with the link mark of relay a-terminal B, and mark data 2 Put the link mark of relay b-terminal B, mark data 3 with the link mark of relay c terminal B, etc., and then send data 1 according to the relay link of relay a-terminal B, and send data 2 The data 3 is transmitted according to the relay link of relay b-terminal B, and the data 3 is transmitted according to the relay link of relay c-terminal B.
  • the electronic device can group the at least one data transmission task based on the link information, mark the packet with a link mark and time stamp, and transmit the corresponding data packet according to the relay link corresponding to the link mark. , Improve the reliability and stability of data transmission.
  • the grouping and sorting the at least one data transmission task according to the at least one type of link information to obtain the first data transmission task group includes: obtaining according to the at least one type of link information A preset grouping condition corresponding to the at least one data transmission task, where the preset grouping condition includes a grouping quantity and a grouping type; grouping and sorting the at least one data transmission task according to the preset grouping condition to obtain the first data Transmission task grouping.
  • the corresponding relationship between the link information and the preset packet type includes, when the link information is the current bandwidth, the packet type is data importance or data volume, and when the link information is the data rate, the packet type is data type or The amount of data.
  • the link information is the packet loss rate
  • the packet type is the importance of data
  • the packet type is the data real-time requirement.
  • the number of packets can be grouped according to the link priority sequence. For example, it can be divided into 4 corresponding groups of the first data transmission task according to the 4 link data with high priority of the link priority; you can also choose the one that meets the transmission requirements Several relay links group data, and at least one data transmission task can also be grouped according to each relay link.
  • the transmitting the at least one data transmission task through the multiple relay links includes: using multiple relay links with priority from high to low in the priority sequence The multiple data transmission task packets are sequentially transmitted.
  • the multiple data transmission task packets are sequentially transmitted through a relay link with a higher priority.
  • the priority from high to low is relay a-terminal B and relay b-terminal.
  • B. Relay c-terminal B, etc. the data importance of the first data transmission task grouping from high to low is data 1, data 2, data 3, etc.; data 1 is relayed a-terminal B’s relay link Send, send data 2 according to the relay link of relay b-terminal B, and send data 3 according to the relay link of relay c-terminal B, etc.
  • the transmitting the at least one data transmission task through the multiple relay links includes: when each relay link does not meet the transmission requirement, transferring each data The transmission task packet is transmitted through the multiple relay links.
  • each data transmission task group of the at least one data transmission task is sent sequentially through multiple relay links.
  • the priority can be performed based on the current link information of each relay terminal to the target node B. Sort, for example, the link conditions from good to bad are relay a-terminal B, relay b-terminal B, relay c-terminal, etc., group the data transmission task data 1 according to relay a-terminal B, middle Following the transmission by b-terminal B and the transmission by relay c-terminal B, etc., data 2 is transmitted by relay a-terminal B, relay b-terminal B, relay c-terminal B, and so on.
  • transmitting each data transmission task packet through the plurality of relay links includes: detecting that each relay link The transmission status of the relay link; when judging that the transmission status does not meet the preset transmission status, prioritize each of the relay links to obtain a third priority sequence of at least one relay link; Transmitting the each data transmission task packet to the target node through the plurality of relay links according to the third priority sequence.
  • the electronic device by detecting the transmission status of each relay link, the electronic device prioritizes each relay transmission link when judging that the transmission status of the current transmission link does not meet the preset transmission status of the current transmission link ,
  • Each data transmission task grouping is transmitted sequentially through the relay link with priority from high to low.
  • priority sorting is performed based on the link information of each relay link, and the link information may include the current bandwidth, data rate, packet loss rate, time delay, and so on.
  • each data transmission task packet of the at least one data transmission task is sent sequentially through multiple relay links.
  • a preset number of relay links with priority sequences from high to low can be selected for data transmission.
  • the electronic device can send the same data through multiple relay links when detecting that the transmission status of the relay link for transmitting data is relatively poor, and then perform comparison processing to restore the data to be transmitted
  • the task has improved the reliability of data transmission and the accuracy of data.
  • the grouping each data transmission task into groups and transmitting through the multiple relay links according to the third priority sequence further includes: detecting that the target node receives After the data is received, the received data is compared to obtain a comparison result; the received data is deduplicated according to the comparison result and restored to the data of the at least one data transmission task.
  • the target node after receiving the data, performs comparison processing on the received data, discards the same data, and restores the original data, that is, the data of the at least one data transmission task.
  • the electronic device can send the same data through multiple relay links, and then perform comparison processing to restore the data task to be transmitted, which improves the reliability of data transmission and the accuracy of data.
  • FIG. 4 is a schematic structural diagram of an electronic device 400 provided by an embodiment of the present application.
  • the electronic device 400 includes an application The processor 410, the memory 420, the communication interface 430, and one or more programs 421, wherein the one or more programs 421 are stored in the above-mentioned memory 420 and are configured to be executed by the above-mentioned application processor 410.
  • the or multiple programs 421 include instructions for performing the following steps;
  • the target node is a device in a first local area network that the electronic device accesses through the wireless transceiver module, and the first local area network includes the electronic device , The target node and at least one relay device;
  • the first transmission link is a direct communication link between the electronic device and the target node;
  • the at least one data transmission task is transmitted through the multiple relay links.
  • the electronic device acquires at least one data transmission task that needs to be sent to a target node, and the target node is a device in the first local area network that the electronic device accesses through the wireless transceiver module
  • the first local area network includes the electronic device, the target node, and at least one relay device; when it is detected that the first transmission link cannot meet the transmission demand of the at least one data transmission task, the first At least one relay link and link information of each relay link in a local area network, where the first transmission link is a direct communication link between the electronic device and the target node; Selecting the at least one data transmission task and the link information of each relay link, selecting multiple relay links for transmitting the at least one data transmission task; transmitting through the multiple relay links The at least one data transmission task.
  • the electronic device can obtain multiple relay links when the direct communication link does not meet the transmission requirements, and select the medium for transmission according to the link information of the multiple relay links and the data transmission task to be transmitted. Following the link, the success rate and stability of data transmission are improved.
  • the instructions in the program are specifically used to perform the following operations :
  • the at least one data transmission task includes a preset parameter corresponding to the at least one transmission task, at least one type of link information of the relay link is acquired according to the preset parameter, and the preset parameter includes at least the following One: data type, data volume, data importance, and real-time requirements, the link information includes: current bandwidth, data rate, packet loss rate, and delay; or, query the historical acquisition times of the link information, Acquire the at least one type of link information with the largest number of historical acquisitions; or, acquire the at least one type of link information according to a preset acquisition strategy.
  • the multiple relay links used to transmit the at least one data transmission task are selected according to the at least one data transmission task and the link information of each relay link
  • the instructions in the program are specifically used to perform the following operations: prioritize each relay link according to the at least one type of link information to obtain the first corresponding to the at least one type of link information A priority sequence; grouping the at least one data transmission task according to the at least one link information to obtain a first data transmission task group; according to the first priority sequence and the first data transmission task
  • the packet selects multiple relay links for transmitting the at least one data transmission task.
  • the multiple relay links used to transmit the at least one data transmission task are selected according to the at least one data transmission task and the link information of each relay link
  • the instructions in the program are specifically used to perform the following operations: prioritize each relay link according to the at least one type of link information to obtain the first corresponding to the at least one type of link information A two-priority sequence; according to the second priority sequence and the data volume of the at least one data transmission task, the at least one data transmission task is sorted into groups to obtain the second data transmission task grouping from large to small ; Mark the second data transmission task packet with a timestamp, and mark the second data transmission task packet with a link mark according to the second priority sequence; select a link mark according to the timestamp and the link mark Multiple relay links for transmitting the at least one data transmission task.
  • the instructions in the program are specifically used to execute The following operations: obtaining a preset grouping condition corresponding to the at least one data transmission task according to the at least one type of link information, where the preset grouping condition includes the number of groups and the grouping type; At least one data transmission task is sorted into groups to obtain a first data transmission task group.
  • the instructions in the program are specifically used to perform the following operations:
  • the multiple relay links from high to low sequentially transmit the multiple data transmission task packets.
  • the instructions in the program are specifically used to perform the following operations: when each relay link When the paths do not meet the transmission requirements, each data transmission task packet is transmitted through the multiple relay links.
  • the electronic device includes hardware structures and/or software modules corresponding to each function.
  • this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiment of the present application may divide the electronic device into functional units according to the foregoing method examples.
  • each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 5 is a block diagram of the functional unit composition of the data transmission device 500 involved in an embodiment of the present application.
  • the data transmission device 500 is applied to electronic equipment, the electronic equipment includes a wireless transceiver module, and the device includes a processing unit 501 and a communication unit 502, wherein,
  • the processing unit 501 is configured to obtain at least one data transmission task that needs to be sent to a target node.
  • the target node is a device in a first local area network that the electronic device accesses through the wireless transceiver module.
  • a local area network includes the electronic device, the target node, and at least one relay device; and when it is detected that the first transmission link cannot meet the transmission demand of the at least one data transmission task, the communication unit 502 obtains Link information of at least one relay link and each relay link in the first local area network, and the first transmission link is a direct communication link between the electronic device and the target node And according to the at least one data transmission task and the link information of each relay link, selecting a plurality of relay links for transmitting the at least one data transmission task; through the plurality of The link transmits the at least one data transmission task.
  • the data transmission device 500 may further include a storage unit 503 for storing program codes and data of the electronic device.
  • the processing unit 501 may be a processor
  • the communication unit 502 may be a touch screen or a transceiver
  • the storage unit 503 may be a memory.
  • the electronic device acquires at least one data transmission task that needs to be sent to a target node, and the target node is a device in the first local area network that the electronic device accesses through the wireless transceiver module
  • the first local area network includes the electronic device, the target node, and at least one relay device; when it is detected that the first transmission link cannot meet the transmission demand of the at least one data transmission task, the first At least one relay link and link information of each relay link in a local area network, where the first transmission link is a direct communication link between the electronic device and the target node; Selecting the at least one data transmission task and the link information of each relay link, selecting multiple relay links for transmitting the at least one data transmission task; transmitting through the multiple relay links The at least one data transmission task.
  • the electronic device can obtain multiple relay links when the direct communication link does not meet the transmission requirements, and select the medium for transmission according to the link information of the multiple relay links and the data transmission task to be transmitted. Following the link, the success rate and stability of data transmission are improved.
  • the processing unit 501 is specifically configured to: A data transmission task includes a preset parameter corresponding to the at least one transmission task, at least one type of link information of the relay link is acquired according to the preset parameter, and the preset parameter includes at least one of the following: data Type, data volume, data importance, and real-time requirements, the link information includes: current bandwidth, data rate, packet loss rate, and delay; or, query the historical acquisition times of the link information to obtain the history The at least one type of link information that is acquired the most frequently; or, the at least one type of link information is acquired according to a preset acquisition strategy.
  • the multiple relay links used to transmit the at least one data transmission task are selected according to the at least one data transmission task and the link information of each relay link
  • the processing unit 501 is specifically configured to: prioritize each relay link according to the at least one type of link information to obtain the first priority sequence corresponding to the at least one type of link information
  • the at least one data transmission task is grouped and sorted to obtain a first data transmission task group; according to the first priority sequence and the first data transmission task grouping, selection is used
  • Multiple relay links that transmit the at least one data transmission task are selected according to the at least one data transmission task and the link information of each relay link.
  • the multiple relay links used to transmit the at least one data transmission task are selected according to the at least one data transmission task and the link information of each relay link
  • the processing unit 501 is specifically configured to: prioritize each relay link according to the at least one type of link information to obtain the second priority sequence corresponding to the at least one type of link information Grouping the at least one data transmission task according to the second priority sequence and the data volume of the at least one data transmission task to obtain the second data transmission task grouping from large to small;
  • the second data transmission task packet is marked with a timestamp, and the second data transmission task packet is marked with a link mark according to the second priority sequence; and selected for transmission according to the timestamp and the link mark Multiple relay links for at least one data transmission task.
  • the processing unit 501 is specifically configured to:
  • the at least one link information obtains a preset grouping condition corresponding to the at least one data transmission task, the preset grouping condition includes the number of groups and the grouping type; the at least one data transmission is performed according to the preset grouping condition
  • the tasks are grouped and sorted to obtain the first data transmission task group.
  • the processing unit 501 is specifically configured to: pass the priority sequence from high to The low multiple relay links sequentially transmit the multiple data transmission task packets.
  • the processing unit 501 is specifically configured to: when each relay link is not satisfied When transmission is required, each data transmission task packet is transmitted through the multiple relay links.
  • the processing unit 501 Specifically used to: detect the transmission status of each relay link; and when judging that the transmission status does not meet the preset transmission status, prioritize each of the relay links to obtain at least one relay A third priority sequence of the link; and according to the third priority sequence, the each data transmission task packet is transmitted to the target node through the plurality of relay links.
  • the processing unit 501 transmits each data transmission task packet to the target node through the multiple relay links according to the third priority sequence, further It is used to: after detecting that the target node receives data, perform comparison processing on the received data to obtain a comparison result; and perform deduplication processing on the received data according to the comparison result and restore it to the at least one data transmission task The data.
  • An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method as recorded in the above method embodiment ,
  • the aforementioned computer includes electronic equipment.
  • the embodiments of the present application also provide a computer program product.
  • the above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program.
  • the above-mentioned computer program is operable to cause a computer to execute any of the methods described in the above-mentioned method embodiments. Part or all of the steps of the method.
  • the computer program product may be a software installation package, and the above-mentioned computer includes electronic equipment.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory.
  • the technical solution of the present application essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, A number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the foregoing methods of the various embodiments of the present application.
  • the aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other various media that can store program codes.
  • the program can be stored in a computer-readable memory, and the memory can include: flash disk , Read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disc, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例公开一种数据传输方法及相关装置,应用于电子设备,电子设备包括无线收发模块,方法包括:获取需要向目标节点发送的至少一个数据传输任务;在检测到第一传输链路无法满足至少一个数据传输任务的传输需求时,获取第一局域网络中的至少一条中继链路和每条中继链路的链路信息;根据至少一个数据传输任务和每条中继链路的链路信息,选择用于传输至少一个数据传输任务的多条中继链路;通过多条中继链路传输至少一个数据传输任务。本申请实施例有利于提高数据传输的成功率和稳定性。

Description

一种数据传输方法及相关装置 技术领域
本发明涉及电子设备技术领域,尤其涉及一种数据传输方法和相关装置。
背景技术
随着电子设备的发展,现行的数据传输系统已可通过不同的电子设备之间的互动与沟通。以物联网(IOT)的概念来说,物联网允许电子装置之间相互进行点对点(Peer-to-Peer)联机。随着端点的种类越来越多,端点与端点之间所处的网络环境也越来越复杂。现有技术中,通过收集中继节点信息,找到最佳路由来发送报文。而当整个链路质量较差时,即使是使用最佳路由也难以保证报文的正确发送。
发明内容
本发明实施例提供了一种数据传输方法及相关装置,以期提高数据传输的成功率和稳定性。
第一方面,本申请实施例提供一种数据传输方法,应用于电子设备,所述电子设备包括无线收发模块,所述方法包括:
获取需要向目标节点发送的至少一个数据传输任务,所述目标节点为所述电子设备通过所述无线收发模块接入的第一局域网络中的设备,所述第一局域网络包括所述电子设备、所述目标节点和至少一个中继设备;
在检测到第一传输链路无法满足所述至少一个数据传输任务的传输需求时,获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息,所述第一传输链路为所述电子设备与所述目标节点之间的直连通信链路;
根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路;
通过所述多条中继链路传输所述至少一个数据传输任务。
第二方面,本申请实施例提供一种数据传输装置,应用于电子设备,所述电子设备包括无线收发模块,所述数据传输装置包括处理单元和通信单元,其中,
所述处理单元用于获取需要向目标节点发送的至少一个数据传输任务,所述目标节点为所述电子设备通过所述无线收发模块接入的第一局域网络中的设备,所述第一局域网络包括所述电子设备、所述目标节点和至少一个中继设备;以及在检测到第一传输链路无法满足所述至少一个数据传输任务的传输需求时,通过所述通信单元获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息,所述第一传输链路为所述电子设备与所述目标节点之间的直连通信链路;以及根据所述至少一个数据传输任务和所述每条中继链路的 链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路;通过所述多条中继链路传输所述至少一个数据传输任务。
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
可以看出,本申请实施例中,电子设备获取需要向目标节点发送的至少一个数据传输任务,所述目标节点为所述电子设备通过所述无线收发模块接入的第一局域网络中的设备,所述第一局域网络包括所述电子设备、所述目标节点和至少一个中继设备;在检测到第一传输链路无法满足所述至少一个数据传输任务的传输需求时,获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息,所述第一传输链路为所述电子设备与所述目标节点之间的直连通信链路;根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路;通过所述多条中继链路传输所述至少一个数据传输任务。可见,电子设备能够根据在直连通信链路不满足传输需求时,获取多条中继链路,根据多条中继链路的链路信息和待传输的数据传输任务选择用于传输的中继链路,提高了数据传输的成功率和稳定性。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍。
图1是本申请实施例提供的数据传输的中继网络结构示意图;
图2是本申请实施例提供的一种数据传输方法的流程示意图;
图3是本申请实施例提供的另一种数据传输方法的流程示意图;
图4是本申请实施例提供的一种电子设备的结构示意图;
图5是本申请实施例提供的一种数据传输装置的功能单元组成框图。
具体实施方式
下面将结合本发明实施例中的附图对本发明实施例中的技术方案进行清楚、详细的描述。
本发明实施例公开了一种终端升级方法及相关设备、系统,能够有效降低OLT的工作负荷以及提升终端的升级效率。本发明实施例中,终端既可以是ONT(包括有源或无源网络单元),也可以是数字用户线路(DSL)终端,本发明实施例不作限定。当终端为DSL终端时,DSL终端可以通过铜线连接OLT。以下分别进行详细说明。
中继是高级国际移动通信(IMT-Advanced,International Mobile Telecommunication-Advanced)系统中可能使用到的一项重要技术,主要用于增加系统覆盖或增加容量。当在网络中引入中继节点(RS,Relay Station)后,接入网侧的无线链路将被分为两类,即:接入链路(Access-Link)和中继链路(Relay-Link)。其中,接入链路是指开始于或终结于移动终端(MS,Mobile Station)的无线链路;中继链路是指基站(BS,Base Station)和RS之间的无线链路或RS和RS之间的无线链路。
请参见图1,图1是本发明实施例提供的一种数据传输的中继网络结构示意图。如图1所示,本申请所述电子设备A可以通过无线收发模块接入至少一个中继节点(RS,Relay Station)a、b、c……和目标设备B。所述电子设备A包括无线收发模块,所述无线收发模块至少包括Transceiver(收发器),其中,常见的一些组合(1)有Transceiver:BaseBand信号由外部处理IC提供和接收,(2)MCU+Transceiver:BaseBand信号由MCU生成和接收,(3)Modem+Transceiver:BaseBand信号由Modem生成和接收,(4)Transceiver+PA+LNA:BaseBand信号由外部处理IC提供和接收,PA和LNA用于提高射频性能。
请参阅图2,图2是本申请实施例提供了一种数据传输方法的流程示意图,应用于电子设备,所述电子设备包括无线收发模块,如图所示,本数据传输方法包括:
S201,电子设备获取需要向目标节点发送的至少一个数据传输任务,所述目标节点为所述电子设备通过所述无线收发模块接入的第一局域网络中的设备,所述第一局域网络包括所述电子设备、所述目标节点和至少一个中继设备;
其中,所述至少一个数据传输任务为一种或多种数据类型。所述无线收发模块包括但不限于LORA模块。
S202,所述电子设备在检测到第一传输链路无法满足所述至少一个数据传输任务的传输需求时,获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息,所述第一传输链路为所述电子设备与所述目标节点之间的直连通信链路;
其中,所述链路信息为能够体现每条中继链路的负载传输能力的链路信息参数。所述直连通信链路无法满足传输需求,可能是传输距离受限或传输链路的质量不好等。
S203,所述电子设备根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路;
其中,所述电子设备可以根据每条中继链路的带宽负载能力对需要传输的数据进行分流,或复用多条中继链路进行相同数据的并发传输,或对传输数据进行分组,打上链路标记和时间戳,再选择链路标记对应的链路进行传输。
S204,所述电子设备通过所述多条中继链路传输所述至少一个数据传输任务。
具体实现中,对所述至少一个数据传输任务的传输可以是根据选择的中继链路进行单次传输或多次重复传输等。
可以看出,本申请实施例中,电子设备获取需要向目标节点发送的至少一个数据传输任务,所述目标节点为所述电子设备通过所述无线收发模块接入的第一局域网络中的设备,所述第一局域网络包括所述电子设备、所述目标节点和至少一个中继设备;在检测到第一传输链路无法满足所述至少一个数据传输任务的传输需求时,获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息,所述第一传输链路为所述电子设备与所述目标节点之间的直连通信链路;根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路;通过所述多条中继链路传输所述至少一个数据传输任务。可见,电子设备能够根据在直连通信链路不满足传输需求时,获取多条中继链路,根据多条中继链路的链路信息和待传输的数据传输任务选择用于传输的中继链路,提高了数据传输的成功率和稳定性。
在一个可能的示例中,所述获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息,包括:所述至少一个数据传输任务包括所述至少一个传输任务对应的预设参数,根据所述预设参数获取所述中继链路的至少一种链路信息,所述预设参数包括以下至少一种:数据类型、数据量、数据重要性和实时性要求,所述链路信息包括:当前带宽、数据率、丢包率和时延;或,查询所述链路信息的历史获取次数,获取所述历史获取次数最多的所述至少一种链路信息;或,根据预设置的获取策略获取所述至少一种链路信息。
其中,所述带宽(band width)又叫频宽,是指在固定的时间可传输的资料数量,即在传输管道中可以传递数据的能力。所述数据率即数据传输速率(Data transfer rate)。在含扩频系统中,扩频因子越大,带宽越大,但是在LoRa调制中,数据率并非越高,反而可能会变低。所述丢包率是指测试中所丢失数据包数量占所发送数据包的比率,一般来说,数据率越高,丢包率越大。所述时延是指从数据发射到接收并成功处理的时间。
其中,所述至少一种数据传输任务可以包括传输数据和预设参数,所述预设参数可以是所述传输数据的传输要求等参数。当所述预设参数为数据类型时, 获取所述每条中继链路的数据率;当所述预设参数为数据量时,获取所述每条中继链路的数据率或当前带宽;当所述预设参数为数据重要性时,获取所述每条中继链路的丢包率;当所述预设参数为实时性要求时,获取所述每条中继链路的时延。获取所述每条中继链路的链路信息可以是一种链路信息,也可以是多种链路信息,例如,所述预设参数为数据量和实时性要求时,获取所述每条中继链路的数据率和时延等。
具体实现中,电子设备获取预设参数对应的中继链路信息,还可以在用户对数据传输任务没有预设参数时,即没有传输要求等参数时,查询历史获取次数最多的链路信息并获取;获取根据用户预设置的获取策略获取链路信息,预设置的获取策略可以是获取其中一种链路信息,也可以是获取多种链路信息的组合,例如获取每条中继链路的全部链路信息,再对全部链路信息进行比较处理。
可见,本示例中,电子设备能够基于需要发送的至少一个数据传输任务的预设参数获取每条中继链路对应的链路信息,节约获取和处理链路信息的时间,提高了数据传输的速率。
在一个可能的示例中,所述根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路,包括:根据所述至少一种链路信息对所述每条中继链路进行优先级排序,得到所述至少一种链路信息对应的第一优先级序列;根据所述至少一种链路信息对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组;根据所述第一优先级序列和所述第一数据传输任务分组选择用于传输所述至少一个数据传输任务的多条中继链路。
其中,将所述每条中继链路的至少一种链路信息进行比较,链路信息包括当前带宽、数据率、时延、丢包率等,得到每条中继链路的链路传输能力,根据链路传输能力将每条中继链路从优到劣依次排序。
具体实现中,所述链路信息为当前带宽时,比较各个中继设备到目标节点的带宽信息,按当前带宽从大到小排序,当前带宽越大,优先级越高,则当前带宽对应的中继链路的优先级序列依次为中继a-终端B、中继b-终端B、中继c-终端B等;根据当前带宽将所述至少一个数据传输任务按照数据重要性进行分组,得到数据重要性从高到低为数据1、数据2、数据3等的第一数据传输任务分组;根据中继a-终端B、中继b-终端B和中继c-终端B等以及数据1、数据2、数据3等选择用于传输的多条中继链路。具体的,还可以根据通信系统特性进行分类,例如在lora调制的系统中,带宽越宽,可靠性会提高,所述至少一个数据传输任务可以根据数据重要性从高到低分为数据1、数据2、数据3等;在普通的FSK调制系统中,带宽越宽,数据率越高,所述至少一个数据传输任务可以根据数据量大小从大到小分为数据1、数据2、数据3等; 然后根据中继a-终端B、中继b-终端B和中继c-终端B等以及数据1、数据2、数据3等选择用于传输的多条中继链路。
所述链路信息为数据率时,比较各个中继设备到目标节点的数据率信息,按数据率从大到小排序,数据率越大,优先级越高,则数据率对应的中继链路的优先级序列依次为中继a-终端B、中继b-终端B、中继c-终端B等;根据数据率信息将所述至少一个数据传输任务按照数据量行分组,得到数据量大小从大到小为数据1、数据2、数据3等的数据传输任务分组,然后根据中继a-终端B、中继b-终端B和中继c-终端B等以及数据1、数据2、数据3等选择用于传输的多条中继链路。
所述链路信息为丢包率时,比较各个中继设备到目标节点的丢包率信息,按丢包率从小到大排序,丢包率越小,优先级越高,丢包率对应的链路优先级序列依次为中继a-终端B、中继b-终端B、中继c-终端B等;根据所述丢包率将所述至少一个数据传输任务按照数据重要性进行分组,得到数据重要性从大到小为数据1、数据2、数据3等的数据传输任务分组,然后根据中继a-终端B、中继b-终端B和中继c-终端B等以及数据1、数据2、数据3等选择用于传输的多条中继链路。
所述链路信息为时延时,比较各个中继设备到目标节点的时延信息,按时延从小到大排序,时延越小,优先级越高,时延对应的链路优先级序列依次为中继a-终端B、中继b-终端B、中继c-终端B等。根据所述时延将所述至少一个数据传输任务按照实时性要求进行分组,得到实时性要求从大到小为数据1、数据2、数据3等的数据传输任务分组,然后根据中继a-终端B、中继b-终端B和中继c-终端B等以及数据1、数据2、数据3等选择用于传输的多条中继链路。
具体实现中,所述链路信息为多种链路信息的组合,例如所述链路信息可以为时延和丢包率、数据率和时延或丢包率和时延等。所述链路信息为时延和丢包率时,所述至少一个数据传输任务按照数据重要性和实时性要求将所述至少一个数据传输任务按照数据重要性和实时性要求进行分组,在根据链路优先级序列和分组选择用于传输的中继链路。
可见,本示例中,由于电子设备能够基于链路信息进行中继链路的优先级排序和将所述至少一个数据传输任务进行分组,再根据优先级排序和分组选择传输所述至少一个数据传输任务的多条中继链路,确保数据的准确发送,提高了数据传输的成功率和稳定性。
在一个可能的示例中,所述根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路,包括:根据所述至少一种链路信息对所述每条中继链路进行优先级排序,得到所述至少一种链路信息对应的第二优先级序列;根据所述第二优先级序列和所 述至少一个数据传输任务的数据量对所述至少一个数据传输任务进行分组排序,得到数据量由大到小的第二数据传输任务分组;将所述第二数据传输任务分组标记时间戳,以及根据所述第二优先级序列将所述第二数据传输任务分组标记链路标记;根据所述时间戳和所述链路标记选择用于传输所述至少一个数据传输任务的多条中继链路。
具体实现中,所述链路信息为数据率时,比较各个中继设备到目标节点的数据率,按数据率从大到小排序,例如依次为中继a-终端B、中继b-终端B、中继c-终端B等。将要发送的至少一个数据传输任务进行分类,并打上时间戳,比如分为数据1、数据2、数据3等,其中数据1的数据量≥数据2的数据量≥数据3的数据量,将数据1标记上中继a-终端B的链路标记,将数据2标记上中继b-终端B的链路标记,将数据3标记上中继c终端B的链路标记等,然后将数据1按中继a-终端B的中继链路进行发送,将数据2按中继b-终端B的中继链路进行发送,将数据3按中继c-终端B的中继链路进行发送等。例如设备A和目标节点B点对点LORA连接场景中,设备A发起视频通话请求,AB基于位置关系等确定当前视频功能需要通过中继链路传输数据,设备A获取中继链路,当多条中继链路的数据率均不足,即通过某一条中继链路不能支持数据的传输,则将视频流数据包分组,打上链路标记和时间戳,分别通过不同的中继链路进行分组传输和聚合重组。其中,视频流数据包的分组包括但不限于根据链路带宽进行等比例分配。
其中,所述链路信息还可以包括时延等。按时延从小到大排序,例如依次为中继a-终端B、中继b-终端B、中继c-终端B等,要发送的至少一个数据传输任务进行分类,并打上时间戳,比如分为数据1、数据2、数据3等,其中数据1的数据量≥数据2的数据量≥数据3的数据量,将数据1标记上中继a-终端B的链路标记,将数据2标记上中继b-终端B的链路标记,将数据3标记上中继c终端B的链路标记等,然后将数据1按中继a-终端B的中继链路进行发送,将数据2按中继b-终端B的中继链路进行发送,将数据3按中继c-终端B的中继链路进行发送等。
可见,本示例中,电子设备可以基于根据链路信息对所述至少一个数据传输任务进行分组,将分组打上链路标记和时间戳,根据链路标记对应的中继链路传输对应的数据分组,提高了数据传输的可靠性和稳定性。
在一个可能的示例中,所述根据所述至少一种链路信息对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组,包括:根据所述至少一种链路信息获取所述至少一个数据传输任务对应的预设分组条件,所述预设分组条件包括分组数量和分组类型;根据所述预设分组条件对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组。
其中,链路信息和预设分组类型的对应关系包括,当链路信息为当前带宽 时,分组类型为数据重要性或数据量大小,当链路信息为数据率时,分组类型为数据类型或数据量大小,当链路信息为丢包率时,分组类型为数据重要性,当链路信息为时延时,分组类型为数据实时性要求。分组数量可以根据链路优先级序列进行分组,例如可以根据链路优先级的优先级高的4条链路数据,分为对应的4组第一数据传输任务分组;还可以选择满足传输要求的几条中继链路对数据进行分组,还可以根据每一条中继链路对至少一个数据传输任务进行分组。
在一种可能的示例中,所述通过所述多条中继链路传输所述至少一个数据传输任务,包括:通过所述优先级序列中优先级由高到低的多条中继链路依次传输所述多个数据传输任务分组。
具体实现中,通过优先级越高的中继链路依次传输所述多个数据传输任务分组,例如第一序列中优先级由高到低依次为中继a-终端B、中继b-终端B、中继c-终端B等,第一数据传输任务分组的数据重要性从高到低为数据1、数据2、数据3等;将数据1按中继a-终端B的中继链路进行发送,将数据2按中继b-终端B的中继链路进行发送,将数据3按中继c-终端B的中继链路进行发送等。
在一种可能的示例中,所述通过所述多条中继链路传输所述至少一个数据传输任务,包括:当所述每条中继链路都不满足传输要求时,将每个数据传输任务分组通过所述多条中继链路传输。
其中,所述每条中继链路的传输情况都不佳时,将所述至少一个数据传输任务的每个数据传输任务分组通过多条中继链路依次发送。
具体实现中,当检测到每条中继链路的传输状况都比较差时,例如当前带宽小于预设带宽时,可以先根据当前各个中继终端到目标节点B的链路信息,进行优先级排序,比如链路情况从优到劣依次为中继a-终端B、中继b-终端B、中继c-终端等,将要所述数据传输任务分组数据1按中继a-终端B、中继b-终端B进行发送、中继c-终端B等进行发送,数据2按中继a-终端B、中继b-终端B、中继c-终端B等进行发送。
在一种可能的示例中,所述当所述每条中继链路都不满足传输要求时,将每个数据传输任务分组通过所述多条中继链路传输,包括:检测每条中继链路的传输状况;判断所述传输状况不满足预设传输状况时,对所述所述每条中继链路进行优先级排序,得到至少一条中继链路的第三优先级序列;根据所述第三优先级序列将所述每个数据传输任务分组通过所述多条中继链路传输到所述目标节点。
其中,电子设备通过检测每条中继链路的传输状况,当判断当前传输链路的传输状况不满足当前传输链路的预设传输状况时,将每条中继传输链路进行优先级排序,将每个数据传输任务分组通过优先级由高到低的中继链路依次传输。其中,通过每条中继链路的链路信息进行优先级排序,所述链路信息可以 包括当前带宽、数据率、丢包率、时延等。
具体实现中,所述每条中继链路的传输情况都不佳时,将所述至少一个数据传输任务的每个数据传输任务分组通过多条中继链路依次发送。
具体实现中,当中继链路条数大于预设值时,可以选择优先级序列由高到低的预设条数的中继链路进行数据传输。
可见,本示例中,电子设备能够在检测到传输数据的中继链路的传输状况都比较差时,通过多个中继链路发送相同的数据,然后进行对比处理,恢复为待传输的数据任务,提高了数据传输的可靠性和数据的准确性。
在一种可能的示例中,所述将所述每个数据传输任务进行分组并根据所述第三优先级序列通过所述多条中继链路传输,还包括:检测到所述目标节点接收到数据后,对接收的数据进行对比处理,得到对比结果;根据所述对比结果对接收的数据进行去重处理并恢复为所述至少一个数据传输任务的数据。
其中,所述目标节点接收到数据后,对接收的数据进行对比处理,丢弃相同的数据,恢复为初始数据,即所述至少一个数据传输任务的数据。
可见,本示例中,电子设备能够通过多个中继链路发送相同的数据,然后进行对比处理,恢复为待传输的数据任务,提高了数据传输的可靠性和数据的准确性。
与上述实施例一致的
与上述图2、图3所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种电子设备400的结构示意图,如图所示,所述电子设备400包括应用处理器410、存储器420、通信接口430以及一个或多个程序421,其中,所述一个或多个程序421被存储在上述存储器420中,并且被配置由上述应用处理器410执行,所述一个或多个程序421包括用于执行以下步骤的指令;
获取需要向目标节点发送的至少一个数据传输任务,所述目标节点为所述电子设备通过所述无线收发模块接入的第一局域网络中的设备,所述第一局域网络包括所述电子设备、所述目标节点和至少一个中继设备;
在检测到第一传输链路无法满足所述至少一个数据传输任务的传输需求时,获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息,所述第一传输链路为所述电子设备与所述目标节点之间的直连通信链路;
根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路;
通过所述多条中继链路传输所述至少一个数据传输任务。
可以看出,本申请实施例中,电子设备获取需要向目标节点发送的至少一个数据传输任务,所述目标节点为所述电子设备通过所述无线收发模块接入的第一局域网络中的设备,所述第一局域网络包括所述电子设备、所述目标节点和至少一个中继设备;在检测到第一传输链路无法满足所述至少一个数据传输任务的传输需求时,获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息,所述第一传输链路为所述电子设备与所述目标节点之间的直 连通信链路;根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路;通过所述多条中继链路传输所述至少一个数据传输任务。可见,电子设备能够根据在直连通信链路不满足传输需求时,获取多条中继链路,根据多条中继链路的链路信息和待传输的数据传输任务选择用于传输的中继链路,提高了数据传输的成功率和稳定性。
在一个可能的示例中,在所述获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息方面,所述程序中的指令具体用于执行以下操作:所述至少一个数据传输任务包括所述至少一个传输任务对应的预设参数,根据所述预设参数获取所述中继链路的至少一种链路信息,所述预设参数包括以下至少一种:数据类型、数据量、数据重要性和实时性要求,所述链路信息包括:当前带宽、数据率、丢包率和时延;或,查询所述链路信息的历史获取次数,获取所述历史获取次数最多的所述至少一种链路信息;或,根据预设置的获取策略获取所述至少一种链路信息。
在一个可能的示例中,在所述根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路方面,所述程序中的指令具体用于执行以下操作:根据所述至少一种链路信息对所述每条中继链路进行优先级排序,得到所述至少一种链路信息对应的第一优先级序列;根据所述至少一种链路信息对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组;根据所述第一优先级序列和所述第一数据传输任务分组选择用于传输所述至少一个数据传输任务的多条中继链路。
在一个可能的示例中,在所述根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路方面,所述程序中的指令具体用于执行以下操作:根据所述至少一种链路信息对所述每条中继链路进行优先级排序,得到所述至少一种链路信息对应的第二优先级序列;根据所述第二优先级序列和所述至少一个数据传输任务的数据量对所述至少一个数据传输任务进行分组排序,得到数据量由大到小的第二数据传输任务分组;将所述第二数据传输任务分组标记时间戳,以及根据所述第二优先级序列将所述第二数据传输任务分组标记链路标记;根据所述时间戳和所述链路标记选择用于传输所述至少一个数据传输任务的多条中继链路。
在一个可能的示例中,在所述根据所述至少一种链路信息对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组方面,所述程序中的指令具体用于执行以下操作:根据所述至少一种链路信息获取所述至少一个数据传输任务对应的预设分组条件,所述预设分组条件包括分组数量和分组类型;根据所述预设分组条件对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组。
在一个可能的示例中,在所述通过所述多条中继链路传输所述至少一个数据传输任务方面,所述程序中的指令具体用于执行以下操作:通过所述优先级 序列中优先级由高到低的多条中继链路依次传输所述多个数据传输任务分组。
在一个可能的示例中,在所述通过所述多条中继链路传输所述至少一个数据传输任务方面,所述程序中的指令具体用于执行以下操作:当所述每条中继链路都不满足传输要求时,将每个数据传输任务分组通过所述多条中继链路传输。
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
图5是本申请实施例中所涉及的数据传输装置500的功能单元组成框图。该数据传输装置500应用于电子设备,所述电子设备包括无线收发模块,所述装置包括处理单元501和通信单元502,其中,
所述处理单元501,用于获取需要向目标节点发送的至少一个数据传输任务,所述目标节点为所述电子设备通过所述无线收发模块接入的第一局域网络中的设备,所述第一局域网络包括所述电子设备、所述目标节点和至少一个中继设备;以及在检测到第一传输链路无法满足所述至少一个数据传输任务的传输需求时,通过所述通信单元502获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息,所述第一传输链路为所述电子设备与所述目标节点之间的直连通信链路;以及根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路;通过所述多条中继链路传输所述至少一个数据传输任务。
其中,所述数据传输装置500还可以包括存储单元503,用于存储电子设备的程序代码和数据。所述处理单元501可以是处理器,所述通信单元502可以是触控显示屏或者收发器,存储单元503可以是存储器。
可以看出,本申请实施例中,电子设备获取需要向目标节点发送的至少一个数据传输任务,所述目标节点为所述电子设备通过所述无线收发模块接入的第一局域网络中的设备,所述第一局域网络包括所述电子设备、所述目标节点和至少一个中继设备;在检测到第一传输链路无法满足所述至少一个数据传输任务的传输需求时,获取所述第一局域网络中的至少一条中继链路和每条中继 链路的链路信息,所述第一传输链路为所述电子设备与所述目标节点之间的直连通信链路;根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路;通过所述多条中继链路传输所述至少一个数据传输任务。可见,电子设备能够根据在直连通信链路不满足传输需求时,获取多条中继链路,根据多条中继链路的链路信息和待传输的数据传输任务选择用于传输的中继链路,提高了数据传输的成功率和稳定性。
在一个可能的示例中,在所述获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息方面,所述处理单元501具体用于:所述至少一个数据传输任务包括所述至少一个传输任务对应的预设参数,根据所述预设参数获取所述中继链路的至少一种链路信息,所述预设参数包括以下至少一种:数据类型、数据量、数据重要性和实时性要求,所述链路信息包括:当前带宽、数据率、丢包率和时延;或,查询所述链路信息的历史获取次数,获取所述历史获取次数最多的所述至少一种链路信息;或,根据预设置的获取策略获取所述至少一种链路信息。
在一个可能的示例中,在所述根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路方面,所述处理单元501具体用于:根据所述至少一种链路信息对所述每条中继链路进行优先级排序,得到所述至少一种链路信息对应的第一优先级序列;根据所述至少一种链路信息对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组;根据所述第一优先级序列和所述第一数据传输任务分组选择用于传输所述至少一个数据传输任务的多条中继链路。
在一个可能的示例中,在所述根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路方面,所述处理单元501具体用于:根据所述至少一种链路信息对所述每条中继链路进行优先级排序,得到所述至少一种链路信息对应的第二优先级序列;根据所述第二优先级序列和所述至少一个数据传输任务的数据量对所述至少一个数据传输任务进行分组排序,得到数据量由大到小的第二数据传输任务分组;将所述第二数据传输任务分组标记时间戳,以及根据所述第二优先级序列将所述第二数据传输任务分组标记链路标记;根据所述时间戳和所述链路标记选择用于传输所述至少一个数据传输任务的多条中继链路。
在一个可能的示例中,在所述根据所述至少一种链路信息对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组方面,所述处理单元501具体用于:根据所述至少一种链路信息获取所述至少一个数据传输任务对应的预设分组条件,所述预设分组条件包括分组数量和分组类型;根据所述预设分组条件对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组。
在一个可能的示例中,在所述通过所述多条中继链路传输所述至少一个数 据传输任务方面,所述处理单元501具体用于:通过所述优先级序列中优先级由高到低的多条中继链路依次传输所述多个数据传输任务分组。
在一个可能的示例中,在所述通过所述多条中继链路传输所述至少一个数据传输任务方面,所述处理单元501具体用于:当所述每条中继链路都不满足传输要求时,将每个数据传输任务分组通过所述多条中继链路传输。
在一个可能的示例中,在所述当所述每条中继链路都不满足传输要求时,将每个数据传输任务分组通过所述多条中继链路传输方面,所述处理单元501具体用于:检测每条中继链路的传输状况;以及判断所述传输状况不满足预设传输状况时,对所述所述每条中继链路进行优先级排序,得到至少一条中继链路的第三优先级序列;以及根据所述第三优先级序列将所述每个数据传输任务分组通过所述多条中继链路传输到所述目标节点。
在一个可能的示例中,所述处理单元501在所述根据所述第三优先级序列将所述每个数据传输任务分组通过所述多条中继链路传输到所述目标节点之后,还用于:检测到所述目标节点接收到数据后,对接收的数据进行对比处理,得到对比结果;以及根据所述对比结果对接收的数据进行去重处理并恢复为所述至少一个数据传输任务的数据。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为 单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种数据传输方法,其特征在于,应用于电子设备,所述电子设备包括无线收发模块,所述方法包括:
    获取需要向目标节点发送的至少一个数据传输任务,所述目标节点为所述电子设备通过所述无线收发模块接入的第一局域网络中的设备,所述第一局域网络包括所述电子设备、所述目标节点和至少一个中继设备;
    在检测到第一传输链路无法满足所述至少一个数据传输任务的传输需求时,获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息,所述第一传输链路为所述电子设备与所述目标节点之间的直连通信链路;
    根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路;
    通过所述多条中继链路传输所述至少一个数据传输任务。
  2. 根据权利要求1所述的数据传输方法,其特征在于,所述获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息,包括:
    所述至少一个数据传输任务包括所述至少一个传输任务对应的预设参数,根据所述预设参数获取所述中继链路的至少一种链路信息,所述预设参数包括以下至少一种:数据类型、数据量、数据重要性和实时性要求,所述链路信息包括:当前带宽、数据率、丢包率和时延;或,
    查询所述链路信息的历史获取次数,获取所述历史获取次数最多的所述至少一种链路信息;或,
    根据预设置的获取策略获取所述至少一种链路信息。
  3. 根据权利要求1或2所述的数据传输方法,其特征在于,所述根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路,包括:
    根据所述至少一种链路信息对所述每条中继链路进行优先级排序,得到所述至少一种链路信息对应的第一优先级序列;
    根据所述至少一种链路信息对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组;
    根据所述第一优先级序列和所述第一数据传输任务分组选择用于传输所述至少一个数据传输任务的多条中继链路。
  4. 根据权利要求1或2所述的数据传输方法,其特征在于,所述根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路,包括:
    根据所述至少一种链路信息对所述每条中继链路进行优先级排序,得到所述至少一种链路信息对应的第二优先级序列;
    根据所述第二优先级序列和所述至少一个数据传输任务的数据量对所述至少一个数据传输任务进行分组排序,得到数据量由大到小的第二数据传输任务分组;
    将所述第二数据传输任务分组标记时间戳,以及根据所述第二优先级序列将所述第二数据传输任务分组标记链路标记;
    根据所述时间戳和所述链路标记选择用于传输所述至少一个数据传输任务的多条中继链路。
  5. 根据权利要求3所述的数据传输方法,其特征在于,所述根据所述至少一种链路信息对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组,包括:
    根据所述至少一种链路信息获取所述至少一个数据传输任务对应的预设分组条件,所述预设分组条件包括分组数量和分组类型;
    根据所述预设分组条件对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组。
  6. 根据权利要求1-5任一项所述的数据传输方法,其特征在于,所述通过所述多条中继链路传输所述至少一个数据传输任务,包括:
    通过所述优先级序列中优先级由高到低的多条中继链路依次传输所述多个数据传输任务分组。
  7. 根据权利要求1-5任一项所述的数据传输方法,其特征在于,所述通过所述多条中继链路传输所述至少一个数据传输任务,包括:
    当所述每条中继链路都不满足传输要求时,将每个数据传输任务分组通过所述多条中继链路传输。
  8. 根据权利要求7所述的数据传输方法,其特征在于,所述当所述每条中继链路都不满足传输要求时,将每个数据传输任务分组通过所述多条中继链路传输,包括:
    检测每条中继链路的传输状况;
    判断所述传输状况不满足预设传输状况时,对所述所述每条中继链路进行优先级排序,得到至少一条中继链路的第三优先级序列;
    根据所述第三优先级序列将所述每个数据传输任务分组通过所述多条中继链路传输到所述目标节点。
  9. 根据权利要求8所述的数据传输方法,其特征在于,所述根据所述第三优先级序列将所述每个数据传输任务分组通过所述多条中继链路传输到所述目标节点之后,还包括:
    检测到所述目标节点接收到数据后,对接收的数据进行对比处理,得到对比结果;
    根据所述对比结果对接收的数据进行去重处理并恢复为所述至少一个数据传输任务的数据。
  10. 一种数据传输装置,其特征在于,应用于电子设备,所述电子设备包括无线收发模块,所述数据传输装置包括处理单元和通信单元,其中,
    所述处理单元用于获取需要向目标节点发送的至少一个数据传输任务,所述目标节点为所述电子设备通过所述无线收发模块接入的第一局域网络中的设备,所述第一局域网络包括所述电子设备、所述目标节点和至少一个中继设备;以及在检测到第一传输链路无法满足所述至少一个数据传输任务的传输需求时,通过所述通信单元获取所述第一局域网络中的至少一条中继链路和每条中继链路的链路信息,所述第一传输链路为所述电子设备与所述目标节点之间的直连通信链路;以及根据所述至少一个数据传输任务和所述每条中继链路的链路信息,选择用于传输所述至少一个数据传输任务的多条中继链路;通过所述多条中继链路传输所述至少一个数据传输任务。
  11. 根据权利要求10所述的数据传输装置,其特征在于,所述处理单元还用于根据所述预设参数获取所述中继链路的至少一种链路信息,所述预设参数包括以下至少一种:数据类型、数据量、数据重要性和实时性要求,所述链路信息包括:当前带宽、数据率、丢包率和时延;或,还用于查询所述链路信息的历史获取次数,获取所述历史获取次数最多的所述至少一种链路信息;或,还用于根据预设置的获取策略获取所述至少一种链路信息。
  12. 根据权利要求10或11所述的数据传输装置,其特征在于,所述处理单元还用于根据所述至少一种链路信息对所述每条中继链路进行优先级排序,得到所述至少一种链路信息对应的第一优先级序列;以及根据所述至少一种链路信息对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组;以及根据所述第一优先级序列和所述第一数据传输任务分组选择用于传输所述至少一个数据传输任务的多条中继链路。
  13. 根据权利要求10或11所述的数据传输装置,其特征在于,所述处理单元还用于根据所述至少一种链路信息对所述每条中继链路进行优先级排序,得到所述至少一种链路信息对应的第二优先级序列;以及根据所述第二优先级序列和所述至少一个数据传输任务的数据量对所述至少一个数据传输任务进行分组排序,得到数据量由大到小的第二数据传输任务分组;以及将所述第二数据传输任务分组标记时间戳,以及根据所述第二优先级序列将所述第二数据传输任务分组标记链路标记;以及根据所述时间戳和所述链路标记选择用于传输所述至少一个数据传输任务的多条中继链路。
  14. 根据权利要求12所述的数据传输装置,其特征在于,所述处理单元还用于根据所述至少一种链路信息获取所述至少一个数据传输任务对应的预设分组条件,所述预设分组条件包括分组数量和分组类型;以及根据所述预设分组条件对所述至少一个数据传输任务进行分组排序,得到第一数据传输任务分组。
  15. 根据权利要求10-14任一项所述的数据传输装置,其特征在于,所述处理单元还用于通过所述优先级序列中优先级由高到低的多条中继链路依次 传输所述多个数据传输任务分组。
  16. 根据权利要求10-14任一项所述的数据传输装置,其特征在于,所述处理单元还用于当所述每条中继链路都不满足传输要求时,将每个数据传输任务分组通过所述多条中继链路传输。
  17. 根据权利要求16所述的数据传输装置,其特征在于,所述处理单元还用于检测每条中继链路的传输状况;以及判断所述传输状况不满足预设传输状况时,对所述所述每条中继链路进行优先级排序,得到至少一条中继链路的第三优先级序列;以及根据所述第三优先级序列将所述每个数据传输任务分组通过所述多条中继链路传输到所述目标节点。
  18. 根据权利要求17所述的数据传输装置,其特征在于,所述处理单元在根据所述第三优先级序列将所述每个数据传输任务分组通过所述多条中继链路传输到所述目标节点之后,还用于检测到所述目标节点接收到数据后,对接收的数据进行对比处理,得到对比结果;以及根据所述对比结果对接收的数据进行去重处理并恢复为所述至少一个数据传输任务的数据。
  19. 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-7任一项所述的方法中的步骤的指令。
  20. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-7任一项所述的方法。
PCT/CN2020/083514 2019-04-19 2020-04-07 一种数据传输方法及相关装置 WO2020211682A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910320246.XA CN111836329B (zh) 2019-04-19 2019-04-19 数据传输方法及相关装置
CN201910320246.X 2019-04-19

Publications (1)

Publication Number Publication Date
WO2020211682A1 true WO2020211682A1 (zh) 2020-10-22

Family

ID=72837727

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/083514 WO2020211682A1 (zh) 2019-04-19 2020-04-07 一种数据传输方法及相关装置

Country Status (2)

Country Link
CN (1) CN111836329B (zh)
WO (1) WO2020211682A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113609056A (zh) * 2021-06-25 2021-11-05 曙光信息产业(北京)有限公司 数据传输测试方法、装置、设备以及存储介质
CN113852941A (zh) * 2021-09-03 2021-12-28 深圳优地科技有限公司 多机器人通信方法、多机器人系统及机器人
CN116634589A (zh) * 2023-07-25 2023-08-22 杭州微联智控科技有限公司 一种半双工LoRa网络可靠报文收发的方法

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399484B (zh) * 2020-11-13 2023-09-12 Oppo广东移动通信有限公司 数据传输方法、装置、存储介质及电子设备
CN112422420A (zh) * 2020-11-18 2021-02-26 迈普通信技术股份有限公司 链路显示方法、装置、电子设备及可读存储介质
CN112600748B (zh) * 2020-12-02 2022-06-24 广东中兴新支点技术有限公司 面向vpn隧道的多链路聚合方法、系统及存储介质
CN113301096B (zh) * 2020-12-16 2023-03-14 阿里巴巴集团控股有限公司 内容分发网络中节点间数据传输方法、系统及节点设备
CN113365310B (zh) * 2021-05-31 2023-03-24 浙江大华技术股份有限公司 一种数据传输方法、装置、存储介质及电子装置
CN113904977A (zh) * 2021-10-13 2022-01-07 中国电信股份有限公司 多链路网关数据传输方法、装置、电子设备和可读介质
CN114157558A (zh) * 2021-11-29 2022-03-08 中国电信股份有限公司 工业网关实现方法、装置、网络设备和存储介质
CN114286416A (zh) * 2021-12-23 2022-04-05 中国电信股份有限公司 通信控制方法及装置、电子设备、存储介质
CN114698047A (zh) * 2022-03-30 2022-07-01 深圳市信锐网科技术有限公司 一种数据传输方法、装置、设备及计算机可读存储介质
CN115348610B (zh) * 2022-10-18 2023-03-24 成都市以太节点科技有限公司 一种毫米波多链路自适应通信方法、电子设备及存储介质
CN115361333B (zh) * 2022-10-19 2023-03-24 中国电子科技集团公司第二十八研究所 一种基于QoS边缘自适应的网云融合信息传输方法
CN117135191B (zh) * 2023-10-26 2024-01-16 江西云绿科技有限公司 物联网终端数据的传输方法及系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010051539A2 (en) * 2008-10-31 2010-05-06 Research In Motion Limited Layer 2 relay multiplexing and interference mitigation
EP2448354A1 (en) * 2009-07-31 2012-05-02 Huawei Technologies Co., Ltd. Method, device and system for determining and maintaining quality of service (qos) parameters of multi-hop network
CN103607750A (zh) * 2013-11-25 2014-02-26 南京邮电大学 下一代蜂窝系统中基于终端直通通信的中继选择方法
CN104640167A (zh) * 2013-11-06 2015-05-20 中兴通讯股份有限公司 一种毫米波定向链路切换方法及实现链路切换的设备
CN105554816A (zh) * 2015-12-14 2016-05-04 西安邮电大学 一种异构网络下基于d2d通信机制的负载均衡方法
CN106533956A (zh) * 2016-11-08 2017-03-22 中国电子科技集团公司第七研究所 通信节点间多中继链路的调度控制方法和系统

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9900931B2 (en) * 2013-05-02 2018-02-20 Qualcomm Incorporated Method and apparatus for device to device relay selection
US9407559B2 (en) * 2013-09-23 2016-08-02 Mitsubishi Electric Research Laboratories, Inc. Discovering stable routes in wireless networks
CN103716853B (zh) * 2013-10-22 2017-07-07 南京邮电大学 一种终端直通通信系统中的自适应多中继选择方法
CN104581613B (zh) * 2013-10-29 2019-07-30 索尼公司 增强用户装置之间的邻近服务发现的方法及设备
JP2016006951A (ja) * 2014-05-28 2016-01-14 株式会社リコー 伝送管理システム、伝送システム、中継装置の選択方法、プログラム、及びメンテナンスシステム
RU2700181C2 (ru) * 2014-08-06 2019-09-13 Интердиджитал Пэйтент Холдингз, Инк. Принудительное высвобождение и управление доступом по типу устройство-устройство (d2d)
CN105472742B (zh) * 2014-08-29 2018-08-03 中国电信股份有限公司 一种lte多跳网络中的资源分配方法、设备以及系统
EP3216259A2 (en) * 2014-11-07 2017-09-13 Interdigital Patent Holdings, Inc. Optimizations for relay communications
US10021620B2 (en) * 2015-02-10 2018-07-10 Qualcomm Incorporated Relay signaling between UE and network
US10375722B2 (en) * 2015-05-14 2019-08-06 Intel Corporation Reduction of concurrent signaling in a relay user equipment (UE)
WO2016210048A1 (en) * 2015-06-23 2016-12-29 Interdigital Patent Holdings, Inc. Priority handling for prose communications
CN106550485B (zh) * 2015-09-21 2020-06-02 海能达通信股份有限公司 一种获取用户设备信息的方法以及相关设备
DE102015122353A1 (de) * 2015-12-21 2017-06-22 Intel IP Corporation Kommunikationsvorrichtung und verfahren für die auswahl einer geschlossenen teilnehmergruppe
CN107295459B (zh) * 2016-03-30 2019-12-03 财团法人工业技术研究院 用于d2d通信的通信系统、通信装置、基站及其方法
CN105979562B (zh) * 2016-04-13 2019-04-26 东北大学 可保证协作通信中全局误码率性能的中继节点选择方法
KR102388049B1 (ko) * 2017-02-14 2022-04-19 삼성전자주식회사 무선 통신 시스템에서 통신을 수행하는 장치 및 이를 위한 방법
CN107360635B (zh) * 2017-07-18 2020-02-07 Oppo广东移动通信有限公司 一种数据传输方法、装置、终端及计算机可读存储介质
CN108683444B (zh) * 2018-07-31 2020-12-22 Oppo广东移动通信有限公司 数据传输方法及相关产品
CN109274596B (zh) * 2018-08-23 2021-01-22 Oppo广东移动通信有限公司 数据传输方法及相关装置
CN109246787B (zh) * 2018-10-22 2021-04-23 电子科技大学 一种结合预测控制的中继选择方法
CN109618372B (zh) * 2019-01-11 2020-09-15 Oppo广东移动通信有限公司 数据传输方法及相关装置
CN109618373B (zh) * 2019-01-15 2021-04-16 Oppo广东移动通信有限公司 链路选取方法及相关装置
CN109587827B (zh) * 2019-01-18 2021-08-03 哈尔滨工业大学 多模多对d2d通信方法及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010051539A2 (en) * 2008-10-31 2010-05-06 Research In Motion Limited Layer 2 relay multiplexing and interference mitigation
EP2448354A1 (en) * 2009-07-31 2012-05-02 Huawei Technologies Co., Ltd. Method, device and system for determining and maintaining quality of service (qos) parameters of multi-hop network
CN104640167A (zh) * 2013-11-06 2015-05-20 中兴通讯股份有限公司 一种毫米波定向链路切换方法及实现链路切换的设备
CN103607750A (zh) * 2013-11-25 2014-02-26 南京邮电大学 下一代蜂窝系统中基于终端直通通信的中继选择方法
CN105554816A (zh) * 2015-12-14 2016-05-04 西安邮电大学 一种异构网络下基于d2d通信机制的负载均衡方法
CN106533956A (zh) * 2016-11-08 2017-03-22 中国电子科技集团公司第七研究所 通信节点间多中继链路的调度控制方法和系统

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113609056A (zh) * 2021-06-25 2021-11-05 曙光信息产业(北京)有限公司 数据传输测试方法、装置、设备以及存储介质
CN113609056B (zh) * 2021-06-25 2023-08-25 曙光信息产业(北京)有限公司 数据传输测试方法、装置、设备以及存储介质
CN113852941A (zh) * 2021-09-03 2021-12-28 深圳优地科技有限公司 多机器人通信方法、多机器人系统及机器人
CN116634589A (zh) * 2023-07-25 2023-08-22 杭州微联智控科技有限公司 一种半双工LoRa网络可靠报文收发的方法
CN116634589B (zh) * 2023-07-25 2023-10-20 杭州微联智控科技有限公司 一种半双工LoRa网络可靠报文收发的方法

Also Published As

Publication number Publication date
CN111836329A (zh) 2020-10-27
CN111836329B (zh) 2022-04-22

Similar Documents

Publication Publication Date Title
WO2020211682A1 (zh) 一种数据传输方法及相关装置
CN108494681B (zh) 多链路的数据流传输方法、无线通信设备及存储介质
WO2020207229A1 (zh) 数据传输方法及相关装置
CN109787868B (zh) 一种选取路由路径的方法、系统及服务器
CN110225547A (zh) 一种调度请求发送、接收方法、终端及网络侧设备
CN109842556A (zh) 带宽确定方法、路由器及终端设备
CN104023408A (zh) 调度器及其基于网络多路径并行传输的数据调度方法
CN109479295A (zh) 传输状态报告装置、方法以及通信系统
CN106507489B (zh) 一种资源分配方法,及接入设备
CN115720384A (zh) 连接建立方法及相关设备
CN109729602A (zh) 一种链路数据处理方法、装置和计算机存储介质
CN109803277A (zh) 数据包处理的方法和设备
CN109511176A (zh) 调度请求处理方法、装置及存储介质
US9537735B2 (en) Data collection method, mobile terminal and data storage device
CN111278163B (zh) 解决短距离无线物联网隐藏终端问题的信道接入方法
CN107018088B (zh) 传输链路选择方法及装置
CN102802200A (zh) 一种数据报文的发送方法和设备
CN114337942B (zh) 一种报文重传方法、装置及电子设备
CN113727453B (zh) 资源调度的方法、装置、系统及存储介质
CN115706705A (zh) 测量方法和设备
CN108886766A (zh) 一种控制信息的传输方法及装置
CN111345111B (zh) 用于处理数据到无线设备的无线电通信的方法和设备代理
CN113973058A (zh) 一种链路管理方法及通信装置
CN114095504A (zh) 使用多链路进行点对点通信的方法、装置及存储介质
US7016364B2 (en) Power pooling in network downstream data transmission

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: 20792209

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: 20792209

Country of ref document: EP

Kind code of ref document: A1