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

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

Info

Publication number
CN113364682A
CN113364682A CN202110605205.2A CN202110605205A CN113364682A CN 113364682 A CN113364682 A CN 113364682A CN 202110605205 A CN202110605205 A CN 202110605205A CN 113364682 A CN113364682 A CN 113364682A
Authority
CN
China
Prior art keywords
target
transmission
link
determining
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110605205.2A
Other languages
Chinese (zh)
Other versions
CN113364682B (en
Inventor
吕鑫鑫
唐斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110605205.2A priority Critical patent/CN113364682B/en
Publication of CN113364682A publication Critical patent/CN113364682A/en
Application granted granted Critical
Publication of CN113364682B publication Critical patent/CN113364682B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/30Routing of multiclass traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention provides a data transmission method, a data transmission device, a storage medium and an electronic device, wherein the method comprises the following steps: determining a target priority of a target scene; determining target link information corresponding to the target priority based on a corresponding relation between the pre-configured priority and the link information; determining a target transmission link meeting the target link information from a plurality of target transmission links; and transmitting the target data by using the target transmission link. By the method and the device, the problem of low scene monitoring precision is solved, and the effect of improving the scene monitoring precision is achieved.

Description

Data transmission method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a data transmission method, a data transmission device, a storage medium and an electronic device.
Background
Currently, security devices have been widely used in various fields as important public safety facilities.
However, in the current scene process of the security device, when the bandwidth of data transmission is insufficient during the event detection reporting process, the problem that the event data cannot be reported in time after the event is triggered easily occurs, thereby affecting the event monitoring precision.
Disclosure of Invention
The embodiment of the invention provides a data transmission method, a data transmission device, a storage medium and an electronic device, which are used for at least solving the problem of low data monitoring precision in the related technology.
According to an embodiment of the present invention, there is provided a data transmission method including:
determining a target priority of a target scene;
determining target link information corresponding to the target priority based on a corresponding relation between the pre-configured priority and the link information;
determining a target transmission link meeting the target link information from a plurality of target transmission links;
and transmitting target data by using the target transmission link, wherein the target data is data collected in a target scene.
In an optional embodiment, before determining the target link information corresponding to the target priority based on a preconfigured correspondence between the priority and the link information, the method further includes:
in case it is determined that the first mode is enabled, a plurality of said transmission links are established.
In an optional embodiment, determining a target transmission link satisfying the target link information from the plurality of transmission links includes:
determining a first transmission link satisfying the target link information as the target transmission link in the case of determining that the first transmission link exists among the plurality of transmission links;
and under the condition that a first transmission link meeting the target link information does not exist in the plurality of transmission links, determining at least two second transmission links included in the plurality of transmission links as the target transmission links, wherein the sum of the link information of the at least two second transmission links meets the target link information.
In an optional embodiment, in a case that it is determined that there is a first transmission link satisfying the target link information among the plurality of transmission links, determining the first transmission link as the target transmission link includes:
determining a type of a plurality of the first transmission links in a case where the number of the first transmission links is determined to be plural;
and selecting the target transmission link from the plurality of first transmission links according to a pre-configured transmission link selection sequence.
In one exemplary embodiment, in a case where at least two second transmission links included in the plurality of transmission links are determined as the destination transmission link, transmitting destination data using the destination transmission link includes:
determining a data transmission weight ratio of at least two second transmission links;
segmenting the target data according to the data transmission weight ratio to determine target subdata required to be transmitted by each second transmission link;
and transmitting the target subdata by utilizing at least two second transmission links.
In an optional embodiment, after determining a target transmission link satisfying the target link information from a plurality of transmission links, the method further includes:
and sending the identification information of the target transmission link to second equipment to instruct the second equipment to transmit data by using the target transmission link.
According to another embodiment of the present invention, there is provided a data transmission apparatus including:
the priority determining module is used for determining the target priority of the target scene;
the information determining module is used for determining target link information corresponding to the target priority based on the corresponding relation between the preset priority and the link information;
the link determining module is used for determining a target transmission link meeting the target link information from a plurality of transmission links;
and the data transmission module is used for transmitting target data by using the target transmission link, wherein the target data is acquired under the target scene.
In an optional embodiment, the apparatus further comprises:
and the link establishing module is used for establishing a plurality of transmission links under the condition of determining the starting of the first mode before determining the target link information corresponding to the target priority based on the corresponding relation between the preset priority and the link information.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, since the judgment is carried out according to the priority of the scene before the data transmission is carried out, the link which can determine the bandwidth to meet the data requirement can be determined according to the priority, and the condition that the data transmission is not timely caused by insufficient bandwidth is avoided, so that the problem of low scene monitoring precision caused by untimely data transmission can be solved, and the effect of improving the scene monitoring precision is achieved.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a data transmission method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of data transmission according to an embodiment of the present invention;
fig. 3 is a block diagram of a data transmission apparatus according to an embodiment of the present invention;
FIG. 4 is a flow diagram according to an embodiment of the present invention;
FIG. 5 is a first block diagram of an embodiment of the present invention;
fig. 6 is a second schematic structural diagram according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the operation on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of a data transmission method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to a data transmission method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 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 transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a data transmission method is provided, and fig. 2 is a flowchart according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, determining the target priority of a target scene;
in the present embodiment, the determination of the target priority of the target scene is to classify the target scene, so that different operations can be performed according to the difference in priority.
The target scenes comprise (but are not limited to) road monitoring, indoor monitoring and the like, and the target priorities comprise high priority and low priority or high priority, medium priority and low priority and the like; the acquisition of the target scene may (but is not limited to) be acquired by the camera device to the target area.
For example, a concerned dynamic event may be identified as a high-priority event, and other events may be identified as low-priority events, where when the concerned dynamic event dependent scene is a road monitoring scene, the high-priority event is characterized as a scene event such as a red light running, a yellow line pressing, and a pedestrian not being given a gift; when the concerned dynamic event is a household indoor monitoring scene, the high-priority event is characterized as a scene event such as a fire, intrusion of a stranger, falling of a baby and the like; or, the events occurring in a specific time period may be identified as high-priority events, and the events in other time periods may be identified as low-priority events, where, when the concerned dynamic event dependent scene is a traffic detection scene, the event information in the early peak time period and the late peak time period is identified as high-priority events, and the event information in other time periods is identified as low-priority events; when the concerned dynamic event scene is an indoor scene, the event information of the time periods of breakfast, supper and evening is marked as high-priority time, and the event information of other time periods is marked as low-priority events.
Step S204, determining target link information corresponding to the target priority based on the corresponding relation between the preset priority and the link information;
in this embodiment, the determination of the target link information is to determine a link for transmitting the target data, so as to avoid data transmission being untimely in the case of insufficient link bandwidth.
The link information includes (but is not limited to) link bandwidth, IP address, uplink and downlink data transmission rate, data transmission time, etc.
Step S206, determining a target transmission link meeting the target link information from the multiple item label transmission links;
in the present embodiment, the target transmission link includes (but is not limited to) a wifi network and a cellular network, wherein in the case that the front-end device for data transmission accesses the wifi network and the cellular network simultaneously, one of the wifi network and the cellular network is generally used for service communication; the wifi network and the cellular network can be used for data transmission, specifically, the front-end device can perform corresponding transmission by aggregating bandwidths correspondingly connected with the wifi network and the cellular network respectively, so that the improvement of transmission rate is facilitated, transmission blocking is reduced, and the timeliness of event information reporting is improved.
It should be noted that, the front-end device identifies and determines the event information, and if the event information is characterized as a low-priority event, the front-end device may set one of the two links as a main link and the other link as a standby link, and then notify the server through the two links which link is the main link and which link is the standby link, and then the server sends downlink data to the front-end device through the link notified by the front-end device, and the front-end device sends uplink data through the link. Namely, the front-end device can inform the server to send downlink data by using a link corresponding to the wifi network and send uplink data by itself through the wifi network, or inform the server to send downlink data by using a link corresponding to the cellular network and send uplink data by itself through the cellular network, and link selection is performed in a self-selection mode. In the scheme, the link where the wifi network is located is preferentially used as the main transmission link, and the cellular network is used as the standby link, so that the problems of energy consumption and expense caused by using the cellular network are reduced, and the user experience is improved.
Correspondingly, the bit rate of the video data to be transmitted can also be acquired under the condition that the acquired event information is characterized as a high-priority event, then the network bandwidths of the wifi network and the cellular network are respectively estimated by applying a common bandwidth estimation algorithm, and then a transmission link is determined according to the relationship between the bandwidths and the data with transmission. For example, if the network bandwidth of the wifi network meets a set threshold (the threshold is a bandwidth pre-estimated value commonly used by the device), the link corresponding to the cellular network may be used as a standby link; and when the bandwidth of the wifi does not meet the set threshold value, comparing the bandwidth data of the wifi with the bandwidth data of the cellular network, and if the bandwidth of the cellular network is greater than the bandwidth of the wifi, using the link corresponding to the wifi network as a standby link.
And S208, transmitting target data by using the target transmission link, wherein the target data is acquired in a target scene.
In this embodiment, the target data may be (but is not limited to) any one or more types of data such as video image data, audio data, infrared monitoring data, RFID data, and the like, and correspondingly, the acquisition of the target data may be acquired by one or more types of devices among a visible light camera device, an infrared camera device, and an RFID sensing device.
Through the steps, the priority of the target scene is judged before data transmission is carried out, and the transmission link is continuously selected and processed according to the priority, so that the problem of untimely data transmission caused by insufficient bandwidth is avoided, the problem of low scene monitoring precision is solved, and the data monitoring precision is improved.
In an optional embodiment, before determining the target link information corresponding to the target priority based on the preconfigured correspondence between the priority and the link information, the method further includes:
step S200, establishing a plurality of transmission links under the condition that the first mode is determined to be started.
In this embodiment, the establishment of the transmission link is performed after the first mode is determined to be activated, so that unnecessary resource consumption can be reduced.
The first mode may be (but is not limited to) a mode in which an application program used by the front-end device for event detection is executed, and may also be another mode.
In an optional embodiment, determining a target transmission link satisfying the target link information from the plurality of transmission links includes:
step S2062, in a case where it is determined that the first transmission link satisfying the target link information exists in the plurality of transmission links, determining the first transmission link as the target transmission link;
step S2064, in a case that it is determined that there is no first transmission link satisfying the target link information among the plurality of transmission links, determining at least two second transmission links included in the plurality of transmission links as target transmission links, where a sum of link information of the at least two second transmission links satisfies the target link information.
In this embodiment, when the bandwidth of the corresponding transmission link meets the data transmission requirement in the target scenario, the corresponding transmission link is used as the target transmission link, and when the bandwidth of the corresponding transmission link does not meet the data transmission requirement, multiple transmission links can be aggregated, so that multiple links of different types transmit data together, and normal transmission of the data is ensured.
For example, the front-end device aggregates bandwidths of the wifi network and the cellular network, which are respectively connected correspondingly, so that the wifi network and the cellular network can be used simultaneously, and corresponding data transmission is realized.
In an optional embodiment, in the case that it is determined that there is a first transmission link satisfying the target link information among the plurality of transmission links, determining the first transmission link as the target transmission link includes:
step S20622 of determining types of the plurality of first transmission links in a case where the number of the first transmission links is determined to be plural;
step S20624, selecting a target transmission link from the plurality of first transmission links according to the pre-configured transmission link selection sequence.
In this embodiment, under the condition that both the wifi network and the cellular network meet the bandwidth requirement, the wifi network and the cellular network are arranged according to the data transmission rate to realize the fast transmission of data.
For example, the front-end device may set one of the two links as a main link and the other link as a standby link, then notify the server through the two links which link is the main link and which link is the standby link, and then the server sends downlink data to the front-end device on the link notified by the front-end device, and the front-end device sends uplink data through the link. Namely, the front-end device can inform the server to send downlink data by using a link corresponding to the wifi network and send uplink data by itself through the wifi network, or inform the server to send downlink data by using a link corresponding to the cellular network and send uplink data by itself through the cellular network, and link selection is performed in a self-selection mode.
In an optional embodiment, in the case where at least two second transmission links included in the plurality of transmission links are determined to be destination transmission links, transmitting the destination data using the destination transmission links includes:
step S20642, determining the data transmission weight ratio of at least two second transmission links;
step S20644, according to the data transmission weight ratio, segmenting the target data to determine the target subdata required to be transmitted by each second transmission link;
step S20646, the target sub-data is transmitted by using at least two second transmission links.
In this embodiment, data is segmented, so that a plurality of transmission links can rapidly transmit data according to their own bandwidths.
For example, if the video bitrate of the current event to be transmitted is 4Mbps, the wifi link estimation bandwidth is 2Mb/s, and the cellular data link is 3Mb/s, then 40% of the data amount of the current video data to be transmitted may be transmitted using the wifi link, and 60% of the data amount may be transmitted using the cellular data link.
In an optional embodiment, after determining a target transmission link satisfying the target link information from the plurality of transmission links, the method further includes:
step S2068, sending the identification information of the destination transmission link to the second device, so as to instruct the second device to transmit data by using the destination transmission link.
In this embodiment, the sending of the identification information to the second device is to inform the second device to transmit data by using the corresponding destination transmission link, so as to improve the data transmission rate.
For example, the front-end device sends the identification information to the server to inform the server to send downlink data using a link corresponding to the wifi network and send uplink data through the wifi network, or inform the server to send downlink data using a link corresponding to the cellular network and send uplink data through the cellular network.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a data transmission device is further provided, and the data transmission device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a data transmission apparatus according to an embodiment of the present invention, as shown in fig. 3, the apparatus including:
a priority determination module 32, configured to determine a target priority of the target scene;
an information determining module 34, configured to determine, based on a pre-configured correspondence between the priority and the link information, target link information corresponding to the target priority;
a link determining module 36, configured to determine a target transmission link that satisfies the target link information from the plurality of transmission links;
and a data transmission module 38, configured to transmit target data using the target transmission link, where the target data is data collected in a target scene.
In an optional embodiment, the apparatus further comprises:
and a link establishing module 30, configured to establish a plurality of transmission links when the first mode is determined to be started before determining target link information corresponding to the target priority based on a pre-configured correspondence between the priority and the link information.
In an alternative embodiment, the link determination module 36 includes:
a first link unit 362 for determining a first transmission link as a target transmission link in a case where it is determined that there is a first transmission link satisfying the target link information among the plurality of transmission links;
a second link unit 364, configured to determine at least two second transmission links included in the plurality of transmission links as target transmission links if it is determined that there is no first transmission link satisfying the target link information among the plurality of transmission links, where a sum of link information of the at least two second transmission links satisfies the target link information.
In an alternative embodiment, the first link unit 362 includes:
a first type subunit 3622, configured to, in a case where the number of the first transmission links is determined to be multiple, determine types of the multiple first transmission links;
a first link subunit 3624, configured to select a target transmission link from the plurality of first transmission links according to a preconfigured transmission link selection order.
In an alternative embodiment, the second link unit 364 includes:
a weight determining subunit 3642, configured to determine a data transmission weight ratio of at least two second transmission links included in the plurality of transmission links, in a case where the at least two second transmission links are determined as the target transmission link;
the data splitting subunit 3644 is configured to split the target data according to the data transmission weight ratio to determine target sub data that needs to be transmitted by each second transmission link;
and a self-data transmission subunit 3646, configured to transmit the target sub-data using at least two second transmission links.
In an optional embodiment, the apparatus further comprises:
the identification sending module 368 is configured to, after determining a target transmission link that meets the target transmission link information from the plurality of transmission links, send the identification information of the target transmission link to the second device to instruct the second device to transmit data using the target transmission link.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
The present invention will be described with reference to specific examples.
As shown in fig. 4, the front-end device in the security system of the present application is responsible for event detection and information acquisition.
Step S401, when the application program of event detection is executed, the front-end equipment establishes at least two communication connections (not limited to two) with a central server for providing service for the detection program;
step S402, after the event information is collected by the front-end equipment, analyzing the scene information of the event;
step S403, according to the characterization information of the acquired event, calculating the bandwidth of the communication link by analyzing the communication connection property;
step S404, dynamically selecting corresponding transmission connection to achieve the purpose of data dynamic transmission.
As shown in fig. 5, the front-end communication scheme for multipath transmission includes:
the front-end equipment of the scheme is a universal camera capable of carrying out network communication and can collect concerned event information. When the application program for event detection is executed, the front-end equipment establishes at least two communication connections (not limited to two) with a central server for providing service for the detection program.
When the scene information acquired by the front-end equipment is characterized as low-priority event information, each established connection property is acquired, if the scene is supported by wifi, wifi link transmission is preferentially used, and the flow loss is reduced.
And when the event information collected by the front-end equipment is characterized as high-level event information, detecting the attribute of each connection, respectively calculating the bandwidth information of each connection, and performing data transmission by taking the optimal connection.
And in a supported scenario, the communication connection includes at least the following: and the communication connection corresponding to the cellular network and the communication connection corresponding to the wireless fidelity wifi network.
The event is determined as follows:
the first mode is as follows: dynamic events of interest are identified as high priority events and other events are identified as low priority events.
When the concerned dynamic event dependent scene is a road monitoring scene, the high-priority event is characterized by scene events such as red light running, yellow line pressing, pedestrian refusal and the like.
When the concerned dynamic event is a household indoor monitoring scene, the high-priority event is characterized as a scene event such as a fire, intrusion of a stranger, falling of a baby and the like.
The second mode is as follows: events occurring within a particular time period are identified as high priority events, and other time period events are low priority events.
When the concerned dynamic incident dependence scene is a traffic detection scene, the incident information of the early peak time period and the late peak time period is marked as a high priority incident, and the incident information of other time periods is marked as a low priority incident.
When the concerned dynamic event scene is an indoor scene, the event information of the time periods of breakfast, supper and evening is marked as high-priority time, and the event information of other time periods is marked as low-priority events.
For the establishment and selection of the communication link, the following is used:
as shown in fig. 6, when the application program for event detection is executed while the front-end device is in server communication, at least two communication connections (not limited to two) are established with the central server for serving the detection program.
The front-end equipment can access a wifi network and a cellular network.
In the case that the front-end device has access to the wifi network and the cellular network, generally, one of the wifi network and the cellular network is used for service communication. When the front-end equipment is accessed to the wifi network and the cellular network, the wifi network and the cellular network can be used for data transmission at the same time. Specifically, the front-end device can perform corresponding transmission through aggregating bandwidths correspondingly connected with the wifi network and the cellular network, which is beneficial to improving the transmission rate, reducing transmission congestion and improving the timeliness of event information reporting.
For the selection of the communication link, the following method is adopted:
the method comprises the following steps: when the application program for event detection is executed, the front-end equipment establishes at least two communication connections (not limited to two) with a central server for providing service for the detection program.
The first mode is as follows: after obtaining the event information, the front-end device identifies and judges the event information, if the event information is characterized as a low-priority event, the front-end device can set one of the two links as a main link and the other link as a standby link, then notify the server through the two links which link is the main link and which link is the standby link, then the server sends downlink data to the front-end device through the link notified by the front-end device, and the front-end device sends uplink data through the link. Namely, the front-end device can inform the server to send downlink data by using a link corresponding to the wifi network and send uplink data by itself through the wifi network, or inform the server to send downlink data by using a link corresponding to the cellular network and send uplink data by itself through the cellular network, and link selection is performed in a self-selection mode. In the scheme, the link where the wifi network is located is preferentially used as the main transmission link, and the cellular network is used as the standby link, so that the problems of energy consumption and expense caused by using the cellular network are reduced, and the user experience is improved.
The second mode is as follows: and if the acquired event information represents a high-priority event, acquiring the code rate of the video data to be transmitted. Respectively evaluating the network bandwidths of the wifi network and the cellular network by using a common bandwidth evaluation algorithm, and if the network bandwidth of the wifi network meets a set threshold (the threshold is a bandwidth pre-evaluation value commonly used by equipment), using a link corresponding to the cellular network as a standby link; and when the bandwidth of the wifi does not meet the set threshold value, comparing the bandwidth data of the wifi with the bandwidth data of the cellular network, and if the bandwidth of the cellular network is greater than the bandwidth of the wifi, using the link corresponding to the wifi network as a standby link.
The important points are: and acquiring the main transmission link and the standby link in a bandwidth evaluation mode. However, the video code rate corresponding to the high-priority event is high, higher bandwidth is needed for data transmission, proportion calculation can be performed according to certain weight, the video data to be transmitted are divided according to proportion, data transmission is performed simultaneously by using the main link and the auxiliary link, the server receives data information of the two links, and the received data are integrated and restored according to the timestamp, so that the purpose of timely and effectively transmitting the event data is achieved.
For example, if the video bitrate of the current event to be transmitted is 4Mbps, the wifi link estimation bandwidth is 2Mb/s, and the cellular data link is 3Mb/s, 40% of the data amount of the current video data to be transmitted can be transmitted by using the wifi link, and 60% of the data amount can be transmitted by using the cellular data link.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of data transmission, comprising:
determining a target priority of a target scene;
determining target link information corresponding to the target priority based on a corresponding relation between the pre-configured priority and the link information;
determining a target transmission link meeting the target link information from a plurality of target transmission links;
and transmitting target data by using the target transmission link, wherein the target data is data collected in a target scene.
2. The method of claim 1, wherein before determining the target link information corresponding to the target priority based on a pre-configured correspondence between priorities and link information, the method further comprises:
in case it is determined that the first mode is enabled, a plurality of said transmission links are established.
3. The method of claim 1, wherein determining a target transmission link from the plurality of transmission links that satisfies the target link information comprises:
determining a first transmission link satisfying the target link information as the target transmission link in the case of determining that the first transmission link exists among the plurality of transmission links;
and under the condition that a first transmission link meeting the target link information does not exist in the plurality of transmission links, determining at least two second transmission links included in the plurality of transmission links as the target transmission links, wherein the sum of the link information of the at least two second transmission links meets the target link information.
4. The method of claim 3, wherein determining the first transmission link as the target transmission link if it is determined that a first transmission link satisfying the target link information exists among the plurality of transmission links comprises:
determining a type of a plurality of the first transmission links in a case where the number of the first transmission links is determined to be plural;
and selecting the target transmission link from the plurality of first transmission links according to a pre-configured transmission link selection sequence.
5. The method of claim 3, wherein in the case that at least two second transmission links included in the plurality of transmission links are determined to be the destination transmission link, transmitting destination data using the destination transmission link comprises:
determining a data transmission weight ratio of at least two second transmission links;
segmenting the target data according to the data transmission weight ratio to determine target subdata required to be transmitted by each second transmission link;
and transmitting the target subdata by utilizing at least two second transmission links.
6. The method of claim 1, wherein after determining a target transmission link from the plurality of transmission links that satisfies the target link information, the method further comprises:
and sending the identification information of the target transmission link to second equipment to instruct the second equipment to transmit data by using the target transmission link.
7. A data transmission apparatus, comprising:
the priority determining module is used for determining the target priority of the target scene;
the information determining module is used for determining target link information corresponding to the target priority based on the corresponding relation between the preset priority and the link information;
the link determining module is used for determining a target transmission link meeting the target link information from a plurality of transmission links;
and the data transmission module is used for transmitting target data by using the target transmission link, wherein the target data is acquired under the target scene.
8. The apparatus of claim 7, further comprising:
and the link establishing module is used for establishing a plurality of transmission links under the condition of determining the starting of the first mode before determining the target link information corresponding to the target priority based on the corresponding relation between the preset priority and the link information.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 6 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
CN202110605205.2A 2021-05-31 2021-05-31 Data transmission method and device, storage medium and electronic device Active CN113364682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110605205.2A CN113364682B (en) 2021-05-31 2021-05-31 Data transmission method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110605205.2A CN113364682B (en) 2021-05-31 2021-05-31 Data transmission method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113364682A true CN113364682A (en) 2021-09-07
CN113364682B CN113364682B (en) 2023-04-07

Family

ID=77530601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110605205.2A Active CN113364682B (en) 2021-05-31 2021-05-31 Data transmission method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113364682B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113904977A (en) * 2021-10-13 2022-01-07 中国电信股份有限公司 Multilink gateway data transmission method and device, electronic equipment and readable medium
CN114157558A (en) * 2021-11-29 2022-03-08 中国电信股份有限公司 Industrial gateway implementation method, device, network equipment and storage medium
CN115134060A (en) * 2022-06-20 2022-09-30 京东科技控股股份有限公司 Data transmission method and device, electronic equipment and computer readable medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1643690A1 (en) * 2004-10-01 2006-04-05 Matsushita Electric Industrial Co., Ltd. Quality-of-Service (QoS)-aware scheduling for uplink transmissions on dedicated channels
CN103326959A (en) * 2012-09-14 2013-09-25 深圳市中兴移动通信有限公司 Switching application method and switching application system of multiple network modes, and cloud storage system
CN104158753A (en) * 2014-06-12 2014-11-19 南京工程学院 Dynamic flow dispatch method and system based on software definition network
CN106452958A (en) * 2016-09-30 2017-02-22 中国联合网络通信集团有限公司 Flow control method and system, and centralized controller
CN106789660A (en) * 2017-03-31 2017-05-31 中国科学技术大学苏州研究院 The appreciable flow managing methods of QoS in software defined network
CN107483337A (en) * 2017-07-31 2017-12-15 郑州云海信息技术有限公司 Determine the method and its network equipment in path
GB2558923A (en) * 2017-01-20 2018-07-25 Airties Kablosuz Iletism Sanayi Ve Disticaret As Methods for link and path quality assessment
CN109495880A (en) * 2018-11-30 2019-03-19 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus
CN109618372A (en) * 2019-01-11 2019-04-12 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus
CN110290178A (en) * 2019-05-30 2019-09-27 厦门网宿有限公司 A kind of dispatching method of data flow, electronic equipment and storage medium
CN111405531A (en) * 2020-03-26 2020-07-10 上海有个机器人有限公司 Method, medium, terminal and device for improving communication quality
CN112492643A (en) * 2020-11-12 2021-03-12 普联技术有限公司 Multilink-based data forwarding method and device and terminal equipment
CN112559831A (en) * 2020-12-24 2021-03-26 平安普惠企业管理有限公司 Link monitoring method and device, computer equipment and medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1643690A1 (en) * 2004-10-01 2006-04-05 Matsushita Electric Industrial Co., Ltd. Quality-of-Service (QoS)-aware scheduling for uplink transmissions on dedicated channels
CN103326959A (en) * 2012-09-14 2013-09-25 深圳市中兴移动通信有限公司 Switching application method and switching application system of multiple network modes, and cloud storage system
CN104158753A (en) * 2014-06-12 2014-11-19 南京工程学院 Dynamic flow dispatch method and system based on software definition network
CN106452958A (en) * 2016-09-30 2017-02-22 中国联合网络通信集团有限公司 Flow control method and system, and centralized controller
GB2558923A (en) * 2017-01-20 2018-07-25 Airties Kablosuz Iletism Sanayi Ve Disticaret As Methods for link and path quality assessment
CN106789660A (en) * 2017-03-31 2017-05-31 中国科学技术大学苏州研究院 The appreciable flow managing methods of QoS in software defined network
CN107483337A (en) * 2017-07-31 2017-12-15 郑州云海信息技术有限公司 Determine the method and its network equipment in path
CN109495880A (en) * 2018-11-30 2019-03-19 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus
CN109618372A (en) * 2019-01-11 2019-04-12 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus
CN110290178A (en) * 2019-05-30 2019-09-27 厦门网宿有限公司 A kind of dispatching method of data flow, electronic equipment and storage medium
CN111405531A (en) * 2020-03-26 2020-07-10 上海有个机器人有限公司 Method, medium, terminal and device for improving communication quality
CN112492643A (en) * 2020-11-12 2021-03-12 普联技术有限公司 Multilink-based data forwarding method and device and terminal equipment
CN112559831A (en) * 2020-12-24 2021-03-26 平安普惠企业管理有限公司 Link monitoring method and device, computer equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113904977A (en) * 2021-10-13 2022-01-07 中国电信股份有限公司 Multilink gateway data transmission method and device, electronic equipment and readable medium
CN114157558A (en) * 2021-11-29 2022-03-08 中国电信股份有限公司 Industrial gateway implementation method, device, network equipment and storage medium
CN115134060A (en) * 2022-06-20 2022-09-30 京东科技控股股份有限公司 Data transmission method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN113364682B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN113364682B (en) Data transmission method and device, storage medium and electronic device
EP3780702B1 (en) Method and device for monitoring network data
US11646968B2 (en) Communication method and related device
CN110972193A (en) Slice information processing method and device
US9462486B2 (en) Method and device for classifying wireless data service
US9705745B2 (en) System and method for virtualizing software defined network (SDN)-based network monitoring
CN111614563A (en) User plane path selection method and device
US8848534B2 (en) Dynamic resource allocation within a heterogeneous wireless transport network
US11696167B2 (en) Systems and methods to automate slice admission control
CN107920366A (en) The method and device that a kind of business to mobile terminal is shunted
CN114095956B (en) Network optimization method, device and storage medium
CN101951665A (en) Routing method of double-card mobile terminal and double-card mobile terminal
Du et al. Application specific mobile edge computing through network softwarization
WO2021114839A1 (en) Resource allocation method and device, apparatus, and storage medium
CN110611831B (en) Video transmission method and device
CN107483234B (en) Method and device for split backup of access point of Internet of things
EP3096492B1 (en) Page push method and system
CN102316483B (en) A kind of EVDO system ensures the method and device of applied business QoS
RU2598293C1 (en) Method and apparatus for transmitting standard configuration data of improved system of selecting a transmitting protocol
US11310677B2 (en) Method for selecting packet processing function and device therefor
US20170105205A1 (en) Method and apparatus for processing uplink data
CN111050356B (en) Data transmission processing method and device, storage medium and electronic device
CN107306412B (en) Method, user equipment and base station for realizing reliable transmission of message
EP3641248B1 (en) Traffic optimization device, communication system, traffic optimization method, and program
CN111480364A (en) Access control method, device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant