CN114500511B - Data transmission method and device and electronic equipment - Google Patents

Data transmission method and device and electronic equipment Download PDF

Info

Publication number
CN114500511B
CN114500511B CN202210111243.7A CN202210111243A CN114500511B CN 114500511 B CN114500511 B CN 114500511B CN 202210111243 A CN202210111243 A CN 202210111243A CN 114500511 B CN114500511 B CN 114500511B
Authority
CN
China
Prior art keywords
transmission
data
target
equipment
transmitted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210111243.7A
Other languages
Chinese (zh)
Other versions
CN114500511A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210111243.7A priority Critical patent/CN114500511B/en
Publication of CN114500511A publication Critical patent/CN114500511A/en
Application granted granted Critical
Publication of CN114500511B publication Critical patent/CN114500511B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The application discloses a data transmission method, a data transmission device and electronic equipment, wherein the method comprises the following steps: acquiring attribute characteristics of data to be transmitted and equipment characteristics of the first equipment and the second equipment in response to the existence of the data to be transmitted in the first equipment and the second equipment; and determining a target transmission mode based on the attribute characteristics and the equipment characteristics so as to transmit the data to be transmitted through the target transmission mode. The target transmission mode is determined through the attribute characteristics of the data to be transmitted and the equipment characteristics of the data transmission, so that the target transmission mode is more in line with the current data transmission scene, and the data transmission efficiency is improved.

Description

Data transmission method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data transmission method, a data transmission device, and an electronic device.
Background
With the development of information technology, data transmission is generally required between different devices, and the requirement on data transmission delay is increasing. How to reduce the delay of data transmission becomes a problem to be solved.
Disclosure of Invention
In view of this, the present application provides the following technical solutions:
a data transmission method, comprising:
acquiring attribute characteristics of data to be transmitted and equipment characteristics of the first equipment and the second equipment in response to the existence of the data to be transmitted in the first equipment and the second equipment;
and determining a target transmission mode based on the attribute characteristics and the equipment characteristics so as to transmit the data to be transmitted through the target transmission mode.
Optionally, the acquiring the attribute characteristics of the data to be transmitted and the device characteristics of the first device and the second device includes:
acquiring the data quantity of data to be transmitted;
and acquiring transmission-associated hardware characteristic information of the first equipment and the second equipment.
Optionally, the target transmission mode includes a target transmission protocol, wherein the determining the target transmission mode based on the attribute feature and the device feature includes:
determining candidate transmission protocols based on the transmission-associated hardware feature information;
determining a transmission time corresponding to each candidate transmission protocol based on the data amount;
determining a target transmission protocol among the candidate transmission protocols based on a transmission time corresponding to each candidate transmission protocol;
and generating a target transmission mode corresponding to the target transmission protocol.
Optionally, the determining, based on the data amount, a transmission time corresponding to each candidate transmission protocol includes:
acquiring a first time for establishing communication connection between a first device and a second device corresponding to each candidate transmission protocol;
determining a second time to transmit the data to be transmitted based on each candidate transmission protocol based on the data amount;
a transmission time corresponding to each candidate transmission protocol is determined based on the first time and the second time.
Optionally, the determining a candidate transmission protocol based on the transmission associated hardware feature information includes:
determining transmission frequency information of a transmission antenna based on the transmission-associated hardware characteristic information;
and determining a candidate transmission protocol based on the transmission frequency information.
Optionally, the generating a target transmission mode corresponding to the target transmission protocol includes:
acquiring a transmission frequency corresponding to a target transmission protocol;
and controlling the frequency of the transmission antenna corresponding to the first device to be adjusted to a frequency range corresponding to the transmission frequency, so that the first device transmits the data to be transmitted based on the target transmission protocol and the transmission antenna with the adjusted frequency.
Optionally, the method further comprises:
determining positional relationship information between the first device and the second device based on a target candidate transmission protocol;
and determining a target transmission protocol in the candidate transmission protocols based on the position relation information.
Optionally, the determining a target transmission mode based on the attribute feature and the device feature includes:
determining the data type of the data to be transmitted based on the attribute characteristics;
and determining a target transmission mode based on the data type and the equipment characteristics, wherein the target transmission mode is a single-channel transmission mode or a multi-channel transmission mode, the single-channel transmission mode corresponds to a unique target transmission protocol, and the multi-channel transmission mode corresponds to at least two target transmission protocols.
A data transmission apparatus comprising:
an obtaining unit, configured to obtain attribute characteristics of data to be transmitted and device characteristics of a first device and a second device in response to the presence of the data to be transmitted in the first device and the second device;
and the determining unit is used for determining a target transmission mode based on the attribute characteristics and the equipment characteristics so as to enable the data to be transmitted through the target transmission mode.
An electronic device, comprising:
a memory for storing a program;
a processor for scheduling and executing the program in the memory, by executing the program, implementing the data transmission method according to any one of the above.
From the above technical solution, the present application provides a data transmission method, apparatus, and electronic device, including: acquiring attribute characteristics of data to be transmitted and equipment characteristics of the first equipment and the second equipment in response to the existence of the data to be transmitted in the first equipment and the second equipment; and determining a target transmission mode based on the attribute characteristics and the equipment characteristics so as to transmit the data to be transmitted through the target transmission mode. The target transmission mode is determined through the attribute characteristics of the data to be transmitted and the equipment characteristics of the data transmission, so that the target transmission mode is more in line with the current data transmission scene, and the data transmission efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a data transmission method according to an embodiment of the present application;
fig. 2 is a flow chart of another data transmission method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The embodiment of the application provides a data transmission method which can be used for a scene of data transmission between different devices. For example, the first device transmits data to be transmitted to the second device. And determining a target transmission mode which is most matched with the current data transmission scene so as to improve the efficiency of data transmission.
Referring to fig. 1, a flow chart of a data transmission method provided in an embodiment of the present application may include the following steps:
s101, responding to the existence of data to be transmitted of a first device and a second device, and acquiring attribute characteristics of the data to be transmitted and device characteristics of the first device and the second device.
S102, determining a target transmission mode based on the attribute characteristics and the equipment characteristics so as to enable the data to be transmitted through the target transmission mode.
The first device and the second device are devices needing data transmission, namely, the data transmission method in the embodiment of the application is applied to cross-device transmission.
The data to be transmitted in step S101 may be data that the first device needs to transmit to the second device, and may be data in any format. The attribute characteristics of the data to be transmitted refer to information related to the attribute of the data to be transmitted, and the attribute of the data to be transmitted can include characteristic information such as data type, data format, data size and the like. Different attribute characteristics of data to be transmitted may affect the efficiency of data transmission, for example, based on the same transmission module, the transmission time of a data packet with a larger data amount may be longer than the transmission time of a data packet with a smaller data amount. Or the transmission time of the file package in the video format may be longer than the transmission time of the file package in the text type.
In addition, it is also required to acquire the device characteristics of the first device and the second device, and the difference of the device characteristics also affects the data transmission efficiency. The device characteristics may include parameter information of antennas for data transmission by the device, distance information between devices to be data-transmitted, device load information, and the like.
In step S102, a corresponding target transmission mode is determined based on the acquired attribute characteristics of the data to be transmitted and the device characteristics of the first device and the second device. Furthermore, the target transmission mode can be determined from the characteristics of the data, the hardware characteristics corresponding to the equipment, the software resource information and other dimensions. Therefore, the determined target transmission mode is more matched with the current data transmission scene, and the data transmission efficiency is improved. The target transmission mode may be determined according to aspects of a data transmission network, hardware for performing data transmission, or a data transmission channel.
In an implementation manner of the embodiment of the present application, the attribute feature of the data to be transmitted includes a size of the data amount, and the device feature may include hardware feature information. The obtaining the attribute characteristics of the data to be transmitted and the equipment characteristics of the first equipment and the second equipment comprises the following steps:
acquiring the data quantity of data to be transmitted;
and acquiring transmission-associated hardware characteristic information of the first device and the second device.
The time of data transmission can be estimated according to the data amount of the data to be transmitted, and the selection range of the hardware for data transmission can be determined according to the transmission related hardware characteristic information. Accordingly, the corresponding target transmission mode can be determined based on the above-described features.
Specifically, the target transmission mode includes a target transmission protocol, referring to fig. 2, which is a schematic flow chart of another data transmission method provided in an embodiment of the present application, where the method may include the following steps:
s201, acquiring data quantity of data to be transmitted and transmission-related hardware characteristic information of a first device and a second device;
s202, determining candidate transmission protocols based on the transmission associated hardware characteristic information;
s203, determining the transmission time corresponding to each candidate transmission protocol based on the data quantity;
s204, determining a target transmission protocol in the candidate transmission protocols based on the transmission time corresponding to each candidate transmission protocol;
s205, generating a target transmission mode corresponding to the target transmission protocol.
A transmission protocol refers to a rule that two parties transmitting data must adhere to in data transmission, and may be determined based on a transmission medium and a communication technology, where the transmission medium may include a wired local area network, a wireless personal area network, a cellular mobile network, a satellite signal, and so on. The transmission protocols that may be supported by different devices are different, for example, some devices do not have a wireless network transmission module, and cannot perform data transmission with other devices through a transmission mode corresponding to the wireless network. Thus, based on transmission-associated hardware characteristic information of a device that needs to perform data transmission, a candidate transmission protocol can be determined. The transmission related hardware characteristic information may include hardware for directly performing data transmission, such as an antenna, a network module, etc., and may also include hardware for indirectly affecting data transmission, such as a data buffer module, a processing module, etc. For example, if the first device and the second device each include hardware capable of performing wireless network transmission, and also include hardware capable of performing Ultra Wide Band (UWB) transmission, the determined candidate transmission protocols include a wireless network transmission protocol and an UWB transmission protocol.
And then, estimating the transmission time corresponding to each candidate transmission protocol according to the data quantity corresponding to the data to be transmitted. The data transmission rates corresponding to different transmission protocols are different, and the transmission time corresponding to each candidate transmission protocol can be calculated based on the data size and the data transmission rate corresponding to the candidate transmission protocol. And then selecting the candidate transmission protocol corresponding to the shortest transmission time as the target transmission protocol.
After the target transmission protocol is obtained, determining the hardware parameters of the first device and/or the second device corresponding to the target transmission protocol, so that the related hardware of the first device and/or the second device is subjected to parameter configuration based on the hardware parameters, and data transmission between the devices is facilitated. For example, if the target protocol is an ultra wideband transmission protocol, the transmission frequencies of the antennas of the first device and the second device may be adjusted to a frequency corresponding to the ultra wideband transmission protocol.
Further, in order to accurately determine the transmission time based on the data to be transmitted, the transmission time in the embodiment of the present application includes the time when a communication connection is established between devices that need to perform data transmission, and the transmission time when data is transmitted.
In one implementation, the determining a transmission time corresponding to each candidate transmission protocol based on the data amount includes: acquiring a first time for establishing communication connection between a first device and a second device corresponding to each candidate transmission protocol; determining a second time to transmit the data to be transmitted based on each candidate transmission protocol based on the data amount; a transmission time corresponding to each candidate transmission protocol is determined based on the first time and the second time.
The first time at which the first device and the second device establish the communication connection may be a handshake time of the first device and the second device. In communication, two parties of communication negotiate a communication mode before communication, and meanwhile, the parties are informed of readiness for sending and receiving data, and the process is handshake. The process of handshaking is typically that one party of the communication sends a request and the other party responds. A successful handshake indicates a communication link over which data transfer may take place.
The second time for transmitting the transmission data based on the candidate transmission protocol refers to the determined transmission time when transmitting according to the data amount to be transmitted and the transmission rate corresponding to the candidate transmission protocol. Wherein, the transmission rate refers to the theoretical transmission rate corresponding to the candidate transmission protocol or the average transmission rate; the actual transmission rate is also affected by the transmission distance and the data transmission load of the device. Correspondingly, when the second time is calculated, the determination can be also performed based on the specific situation of the scene where the device needing to perform data transmission is located, namely, the condition affecting the actual transmission rate is considered to be in the range of the transmission rate determination.
For example, taking a transmission protocol corresponding to ultra-wideband (UWB) as an example, the handshake time of the first device and the second device is 0.5S, and the corresponding data transmission rate is 500Mbps, and if the amount of data to be transmitted is X, the transmission time T for transmitting the data to be transmitted between the first device and the second device UWB =0.5+X/500。
When data transmission is carried out by WIFi direct connection, the handshake time of the first equipment and the second equipment is 5S, the corresponding data transmission rate is 1000Mbps, and if the data quantity to be transmitted is still X, the transmission time for transmitting the data to be transmitted between the first equipment and the second equipment is T WIFI =5+X/1000。
If the candidate transmission protocol includes ultra-wideband (UWB) transmissionThe transmission protocol and the WIFI transmission protocol can be based on the obtained T UWB And T WIFI And (3) determining a target transmission protocol, namely selecting a candidate transmission protocol corresponding to the smaller value of the two values as the target transmission protocol, so that the first equipment and the second equipment transmit data to be transmitted based on the target transmission protocol.
In another implementation manner of the embodiment of the present application, the data transmission may be monitored in the whole process, that is, when the data is transmitted in the target transmission manner corresponding to the target transmission protocol, the remaining time of the data transmission may be detected in real time, and based on the remaining time and the state information of the current device, it is determined whether to switch the current target transmission protocol. Specifically, a switchable communication mode may be determined based on current status information of the first device and the second device, and then, based on the communication mode, the transmission time of the remaining data to be transmitted is estimated again to determine whether to switch to the information transmission mode. When determining the transmission time for transmitting the remaining data to be transmitted, the transmission mode switching time needs to be considered, i.e. the estimated remaining transmission time includes the transmission mode switching time and the estimated new mode transmission time. The switching time of the transmission mode needs to be determined according to the characteristics of the hardware of the device. That is, firstly, configuration information of transmission hardware of the device is determined, and whether a transmission mode to be switched is an independent transmission path or a mode shared by transmission antennas is determined according to the configuration information. If the transmission path is independent, the transmission mode switching time is the time for switching from the target transmission mode to the new transmission mode, namely the total time including the time when the device is disconnected from the target transmission mode and the time when the device establishes the communication connection through the new transmission mode. If the transmission antenna shares the same mode and the new transmission mode and the target transmission mode share the same antenna, for example, the 5G antenna covers the frequency band of the WLAN antenna, the switching time of the transmission mode is negligible.
In the process of monitoring data transmission, the transmission time for switching to a new transmission mode based on the residual data quantity is estimated based on the current state of the device and the hardware characteristics of the device, and then whether the current target transmission mode is switched to the new transmission mode is determined according to the transmission time, so that the first device and the second device can maintain optimal transmission efficiency in real time when transmitting data, and the high efficiency of data transmission is ensured.
The data transmission method of the embodiment of the present application is described below with specific information of attribute features corresponding to data to be transmitted and device features corresponding to the first device and the second device.
If the device characteristics corresponding to the first device and the second device include transmission-associated hardware characteristic information, and the transmission-associated hardware includes a transmission antenna, and correspondingly, determining the candidate transmission protocol based on the transmission-associated hardware characteristic information includes: determining transmission frequency information of a transmission antenna based on the transmission-related hardware characteristic information; and determining a candidate transmission protocol based on the transmission frequency information.
In this embodiment, the transmission frequency of the antenna corresponding to each device is determined based on the transmission-associated hardware feature information corresponding to the first device and the second device, so that the transmission protocol that can be supported by the antenna is determined as a candidate transmission protocol according to the transmission frequency corresponding frequency range of the antenna.
In addition, the data storage amount of the buffer unit of the device can be obtained to determine the candidate transmission protocol. If the data storage amount corresponding to the data caching unit is smaller, a transmission protocol with a slower transmission rate cannot be selected, so that the cache data of the caching unit is increased, and transmission faults are easy to cause. And determining the transmission protocol corresponding to the transmission rate larger than the transmission rate threshold as a candidate transmission protocol.
Further, the generating a target transmission mode corresponding to the target transmission protocol includes: acquiring a transmission frequency corresponding to a target transmission protocol; and controlling the frequency of the transmission antenna corresponding to the first equipment to be adjusted to a frequency range corresponding to the transmission frequency, so that the first equipment transmits the data to be transmitted based on the target transmission protocol and the transmission antenna with the adjusted frequency.
Switching the transmission frequency of the device to the transmission frequency corresponding to the target transmission protocol can ensure that corresponding hardware information can be matched with the target transmission mode when the device transmits data according to the target transmission protocol, thereby ensuring the efficient transmission of data. Further, when the frequency of the transmission antenna of the device is switched, the smoothness of data transmission and reception can be ensured by switching the transmission antennas corresponding to the device for transmitting data and the device for receiving data.
In another embodiment, the distance and relative positional relationship between the devices transmitting data also affects the data transmission efficiency. The data transmission method further comprises the following steps: determining positional relationship information between the first device and the second device based on the target candidate transmission protocol; based on the positional relationship information, a target transport protocol is determined among the candidate transport protocols.
The positional relationship information may include information such as a distance and an angle between the first device and the second device, and may further include positional information between the first device and the second device and the communication base station. Further, the positional relationship information may further include distances between the first device and the second device and surrounding devices or obstacles. Thus, the target transmission protocol can be determined based on the positional relationship information. Specifically, the distance between the first device and the second device may be determined based on the location relationship information, so that the transmission protocol with the highest cost performance in the distance range is determined to be the target transmission protocol. For example, both the first device and the second device may perform data transmission through a wired network transmission protocol and a wireless network transmission protocol, and the estimated data transmission time during data transmission is close, but if the relative distance between the first device and the second device is large, the length of the physical bus for transmission will be long and the cost will be large if the wired network transmission protocol is used for transmission, and at this time, the wireless network transmission protocol is used as the target transmission protocol.
For another example, the candidate transmission protocols determined based on the amount of transmission data between the first device and the second device include the first transmission protocol and the second transmission protocol, and may be obtained according to positional relationship information between the first device and the second device, and other communication devices exist between the first device and the second device, and these communication devices may interfere with data transmission between the first device and the second device, that is, may affect data transmission efficiency. Therefore, the second transmission protocol with better anti-interference effect can be determined as the target transmission protocol.
The communication connection establishment time may also be determined by determining a mode of establishing a communication connection corresponding to each candidate transmission protocol for the first device and the second device based on the positional relationship information between the first device and the second device. For example, when the distance between the first device and the second device is smaller than the preset distance threshold, the first candidate transmission protocol may realize that the first device actively recognizes the corresponding connection mode through the position relationship to establish communication connection with the second device, and if the second candidate transmission protocol is to realize the communication connection between the first device and the second device, the communication connection needs to be established based on the communication connection instruction sent by the base station or other control platforms, and the complexity of establishing the communication connection is higher than that of the first candidate transmission protocol, so that the first candidate transmission protocol may be determined as the target transmission protocol.
It should be noted that, in the embodiment of the present application, the positional relationship information between the first device and the second device is determined based on the target candidate transmission protocol. The target candidate transmission protocol needs to have the characteristic of being capable of quickly obtaining positioning information of the target candidate transmission protocol and the target candidate transmission protocol, so that the communication connection can be established more efficiently based on the position relation.
For example, the target candidate transmission protocol may be a ultra-wideband (UWB) transmission protocol, i.e., the location of the device to be data-transmitted is located by the positioning characteristics of UWB. Further, the location information may be stored, that is, stored in a storage unit corresponding to the first device and the second device, so that when the first device and the second device establish communication connection based on other communication protocols, the location information is called, so as to achieve the purpose of quickly searching for the corresponding device to establish communication connection.
Specifically, when the distance information of the device to be subjected to data transmission is positioned by using UWB, UWB message information can be sent to the second device through the first device, feedback information corresponding to the UWB message information based on the second device is obtained, and the distance between the first device and the second device is determined based on the feedback information.
In another implementation manner of the embodiment of the present application, the attribute features of the data to be transmitted may further include a data type, that is, the determining, based on the attribute features and the device features, a target transmission mode includes:
and determining the data type of the data to be transmitted based on the attribute characteristics.
And determining a target transmission mode based on the data type and the equipment characteristics, wherein the target transmission mode is a single-channel transmission mode or a multi-channel transmission mode, the single-channel transmission mode corresponds to a unique target transmission protocol, and the multi-channel transmission mode corresponds to at least two target transmission protocols.
In this embodiment, the target transmission mode may be a single channel transmission mode or a multi-channel transmission mode. In determining whether a multi-channel transmission mode can be employed, it is necessary to determine the data type of data to be transmitted, in addition to the hardware characteristics of the device itself. It is determined by the data type whether the data to be transmitted can be split. If a multi-channel transmission mode is adopted, the data to be transmitted needs to be transmitted in parallel through different transmission channels, so that the transmission efficiency is improved. However, the data to be transmitted is a whole, i.e. cannot be split, and the multi-channel transmission mode cannot be adopted. Whether the data can be split or not can be determined through the data type, if the data type is program code or single text, if the data of the type is split, errors can easily occur after the data is received. If the data type is in a picture format and the data to be transmitted comprises a plurality of pictures, the pictures can be split into different picture groups, each picture group comprises a plurality of pictures, and then the picture groups are distributed to different transmission channels for parallel transmission, so that the data transmission efficiency is improved. Wherein, different transmission channels can be corresponding to different transmission protocols, so that the data transmission hardware can be utilized efficiently, and the data transmission efficiency is ensured.
Correspondingly, the multi-channel data transmission can be realized in a time slot allocation mode, namely, time slots are allocated to each transmission channel, so that the time slots are fully utilized under the condition of meeting the data quantity required to be transmitted, and the time delay is minimum.
The embodiment of the application provides a data transmission method, which comprises the following steps: acquiring attribute characteristics of data to be transmitted and equipment characteristics of the first equipment and the second equipment in response to the existence of the data to be transmitted in the first equipment and the second equipment; and determining a target transmission mode based on the attribute characteristics and the equipment characteristics so as to transmit the data to be transmitted through the target transmission mode. The target transmission mode is determined through the attribute characteristics of the data to be transmitted and the equipment characteristics of the data transmission, so that the target transmission mode is more in line with the current data transmission scene, and the data transmission efficiency is improved.
In another embodiment of the present application, there is also provided a data transmission apparatus, referring to fig. 3, the apparatus may include:
an obtaining unit 301, configured to obtain attribute characteristics of data to be transmitted and device characteristics of a first device and a second device in response to the presence of the data to be transmitted in the first device and the second device;
a determining unit 302, configured to determine a target transmission mode based on the attribute feature and the device feature, so that the data to be transmitted is transmitted in the target transmission mode.
The embodiment of the application provides a data transmission device, which comprises: the method comprises the steps that an acquisition unit responds to the existence of data to be transmitted between a first device and a second device, and acquires attribute characteristics of the data to be transmitted and device characteristics of the first device and the second device; a determining unit determines a target transmission mode based on the attribute feature and the device feature so that the data to be transmitted is transmitted by the target transmission mode. The target transmission mode is determined through the attribute characteristics of the data to be transmitted and the equipment characteristics of the data transmission, so that the target transmission mode is more in line with the current data transmission scene, and the data transmission efficiency is improved.
In one implementation, the acquisition unit 301 includes:
the first acquisition subunit is used for acquiring the data quantity of the data to be transmitted;
and the second acquisition subunit is used for acquiring the transmission-associated hardware characteristic information of the first equipment and the second equipment.
Optionally, the target transmission mode includes a target transmission protocol, wherein the determining unit 302 includes:
a first determining subunit, configured to determine a candidate transmission protocol based on the transmission-associated hardware feature information;
a second determining subunit, configured to determine, based on the data amount, a transmission time corresponding to each candidate transmission protocol;
a third determination subunit configured to determine a target transmission protocol among the candidate transmission protocols based on a transmission time corresponding to each candidate transmission protocol;
and the generation subunit is used for generating a target transmission mode corresponding to the target transmission protocol.
Further, the second determining subunit is specifically configured to:
acquiring a first time for establishing communication connection between a first device and a second device corresponding to each candidate transmission protocol;
determining a second time to transmit the data to be transmitted based on each candidate transmission protocol based on the data amount;
a transmission time corresponding to each candidate transmission protocol is determined based on the first time and the second time.
Optionally, the first determining subunit is specifically configured to:
determining transmission frequency information of a transmission antenna based on the transmission-associated hardware characteristic information;
and determining a candidate transmission protocol based on the transmission frequency information.
Optionally, the generating subunit is specifically configured to:
acquiring a transmission frequency corresponding to a target transmission protocol;
and controlling the frequency of the transmission antenna corresponding to the first device to be adjusted to a frequency range corresponding to the transmission frequency, so that the first device transmits the data to be transmitted based on the target transmission protocol and the transmission antenna with the adjusted frequency.
In one embodiment, the apparatus further comprises:
a location determining unit configured to determine location relationship information between the first device and the second device based on a target candidate transmission protocol;
and a protocol determining unit, configured to determine a target transmission protocol from the candidate transmission protocols based on the location relationship information.
Optionally, the determining unit 302 is further configured to:
determining the data type of the data to be transmitted based on the attribute characteristics;
and determining a target transmission mode based on the data type and the equipment characteristics, wherein the target transmission mode is a single-channel transmission mode or a multi-channel transmission mode, the single-channel transmission mode corresponds to a unique target transmission protocol, and the multi-channel transmission mode corresponds to at least two target transmission protocols.
It should be noted that, the specific implementation of the processor in this embodiment may refer to the corresponding content in the foregoing, which is not described in detail herein.
In another embodiment of the present application, there is also provided a readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of data transmission as set forth in any of the above.
Referring to fig. 4, a schematic structural diagram of an electronic device provided in an embodiment of the present application, where the technical solution of the present embodiment is mainly used to improve data transmission efficiency between devices.
Specifically, the electronic device in this embodiment may include the following structure:
a memory 401 for storing a program;
a processor 402, configured to call and execute the program in the memory, by executing the program to implement:
acquiring attribute characteristics of data to be transmitted and equipment characteristics of the first equipment and the second equipment in response to the existence of the data to be transmitted in the first equipment and the second equipment;
and determining a target transmission mode based on the attribute characteristics and the equipment characteristics so as to transmit the data to be transmitted through the target transmission mode.
It should be noted that, the specific implementation of the processor in this embodiment may refer to the corresponding content in the foregoing, which is not described in detail herein.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A data transmission method, comprising:
acquiring attribute characteristics of data to be transmitted and equipment characteristics of the first equipment and the second equipment in response to the existence of the data to be transmitted in the first equipment and the second equipment;
determining a target transmission mode based on the attribute characteristics and the equipment characteristics so as to transmit the data to be transmitted through the target transmission mode;
the obtaining the attribute characteristics of the data to be transmitted and the device characteristics of the first device and the second device includes:
acquiring the data quantity of data to be transmitted;
acquiring transmission-related hardware characteristic information of the first equipment and the second equipment;
wherein the target transmission mode comprises a target transmission protocol, wherein the determining the target transmission mode based on the attribute feature and the device feature comprises:
determining candidate transmission protocols based on the transmission-associated hardware feature information;
determining a transmission time corresponding to each candidate transmission protocol based on the data amount;
determining a target transmission protocol in the candidate transmission protocols based on the transmission time corresponding to each candidate transmission protocol, wherein the target transmission protocol is the candidate transmission protocol with the shortest transmission time;
generating a target transmission mode corresponding to the target transmission protocol;
when data to be transmitted is transmitted in a target transmission mode corresponding to a target transmission protocol, detecting the residual time of data transmission in real time, estimating the transmission time for switching to a new transmission mode based on the residual data quantity based on the current state of the equipment and the hardware characteristics of the equipment, and then determining whether to switch the current target transmission mode to the new transmission mode according to the transmission time of the new transmission mode, so that the first equipment and the second equipment can maintain optimal transmission efficiency in real time when transmitting the data.
2. The method of claim 1, the determining a transmission time corresponding to each candidate transmission protocol based on the amount of data, comprising:
acquiring a first time for establishing communication connection between a first device and a second device corresponding to each candidate transmission protocol;
determining a second time to transmit the data to be transmitted based on each candidate transmission protocol based on the data amount;
a transmission time corresponding to each candidate transmission protocol is determined based on the first time and the second time.
3. The method of claim 1, the determining a candidate transmission protocol based on the transmission-associated hardware characteristic information, comprising:
determining transmission frequency information of a transmission antenna based on the transmission-associated hardware characteristic information;
and determining a candidate transmission protocol based on the transmission frequency information.
4. A method according to claim 3, said generating a target transmission mode corresponding to said target transmission protocol, comprising:
acquiring a transmission frequency corresponding to a target transmission protocol;
and controlling the frequency of the transmission antenna corresponding to the first device to be adjusted to a frequency range corresponding to the transmission frequency, so that the first device transmits the data to be transmitted based on the target transmission protocol and the transmission antenna with the adjusted frequency.
5. The method of claim 1, the method further comprising:
determining positional relationship information between the first device and the second device based on a target candidate transmission protocol;
and determining a target transmission protocol in the candidate transmission protocols based on the position relation information.
6. The method of claim 1, the determining a target transmission mode based on the attribute characteristics and the device characteristics, comprising:
determining the data type of the data to be transmitted based on the attribute characteristics;
and determining a target transmission mode based on the data type and the equipment characteristics, wherein the target transmission mode is a single-channel transmission mode or a multi-channel transmission mode, the single-channel transmission mode corresponds to a unique target transmission protocol, and the multi-channel transmission mode corresponds to at least two target transmission protocols.
7. A data transmission apparatus comprising:
an obtaining unit, configured to obtain attribute characteristics of data to be transmitted and device characteristics of a first device and a second device in response to the presence of the data to be transmitted in the first device and the second device;
a determining unit configured to determine a target transmission mode based on the attribute feature and the device feature, so that the data to be transmitted is transmitted through the target transmission mode;
the acquiring unit is used for acquiring attribute characteristics of data to be transmitted and equipment characteristics of the first equipment and the second equipment, and is particularly used for acquiring data quantity of the data to be transmitted; acquiring transmission-related hardware characteristic information of the first equipment and the second equipment;
the determining unit is configured to determine a target transmission mode based on the attribute feature and the device feature, and specifically configured to determine a candidate transmission protocol based on the transmission-associated hardware feature information; determining a transmission time corresponding to each candidate transmission protocol based on the data amount; determining a target transmission protocol in the candidate transmission protocols based on the transmission time corresponding to each candidate transmission protocol, wherein the target transmission protocol is the candidate transmission protocol with the shortest transmission time; generating a target transmission mode corresponding to the target transmission protocol;
the device is further used for detecting the residual time of data transmission in real time when the data to be transmitted is transmitted in a target transmission mode corresponding to a target transmission protocol, estimating the transmission time for switching to a new transmission mode based on the residual data quantity based on the current state of the equipment and the hardware characteristics of the equipment, and then determining whether to switch the current target transmission mode to the new transmission mode according to the transmission time of the new transmission mode, so that the first equipment and the second equipment can maintain optimal transmission efficiency in real time when transmitting the data.
8. An electronic device, comprising:
a memory for storing a program;
a processor for scheduling and executing the program in the memory, by executing the program, to implement the data transmission method according to any one of claims 1 to 6.
CN202210111243.7A 2022-01-29 2022-01-29 Data transmission method and device and electronic equipment Active CN114500511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210111243.7A CN114500511B (en) 2022-01-29 2022-01-29 Data transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210111243.7A CN114500511B (en) 2022-01-29 2022-01-29 Data transmission method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN114500511A CN114500511A (en) 2022-05-13
CN114500511B true CN114500511B (en) 2023-12-26

Family

ID=81479102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210111243.7A Active CN114500511B (en) 2022-01-29 2022-01-29 Data transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114500511B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105703808A (en) * 2014-11-28 2016-06-22 腾讯科技(深圳)有限公司 Method and device for transmitting data
CN106230447A (en) * 2016-08-31 2016-12-14 维沃移动通信有限公司 A kind of data transfer control method and mobile terminal
CN107484195A (en) * 2017-09-27 2017-12-15 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable medium for selecting antenna
CN110708377A (en) * 2019-09-30 2020-01-17 联想(北京)有限公司 Data transmission method, device and storage medium
CN112291366A (en) * 2020-11-13 2021-01-29 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment
CN112822268A (en) * 2021-01-06 2021-05-18 大连理工大学 IP layer packet scheduling algorithm for multi-service coexistence and deterministic network requirements in industrial Internet of things
WO2021175300A1 (en) * 2020-03-06 2021-09-10 华为技术有限公司 Data transmission method and apparatus, electronic device, and readable storage medium
CN113676269A (en) * 2020-05-15 2021-11-19 华为技术有限公司 Data transmission method of electronic device, medium thereof, and electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105703808A (en) * 2014-11-28 2016-06-22 腾讯科技(深圳)有限公司 Method and device for transmitting data
CN106230447A (en) * 2016-08-31 2016-12-14 维沃移动通信有限公司 A kind of data transfer control method and mobile terminal
CN107484195A (en) * 2017-09-27 2017-12-15 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable medium for selecting antenna
CN110708377A (en) * 2019-09-30 2020-01-17 联想(北京)有限公司 Data transmission method, device and storage medium
WO2021175300A1 (en) * 2020-03-06 2021-09-10 华为技术有限公司 Data transmission method and apparatus, electronic device, and readable storage medium
CN113676269A (en) * 2020-05-15 2021-11-19 华为技术有限公司 Data transmission method of electronic device, medium thereof, and electronic device
CN112291366A (en) * 2020-11-13 2021-01-29 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment
CN112822268A (en) * 2021-01-06 2021-05-18 大连理工大学 IP layer packet scheduling algorithm for multi-service coexistence and deterministic network requirements in industrial Internet of things

Also Published As

Publication number Publication date
CN114500511A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
US11005544B2 (en) Communication device and method for performing radio communication
US20180270679A1 (en) Reliability-based multi-link communications
US9681464B2 (en) Cooperative transmission within heterogeneous stations
KR101289136B1 (en) Dynamic scheduling overwriting of semi-persistent allocation in an uplink
US10492118B2 (en) Apparatus and method for supporting data transmission service over multiple networks
WO2018202178A1 (en) Beam recovery method and device
JP5797343B2 (en) Wireless access point apparatus and bandwidth control method
US11483844B1 (en) Multi-mode dynamic frequency selection system
JP2019519955A (en) Communication method, network equipment and terminal equipment
JP2022500935A (en) Resource allocation method and equipment, terminals
JP4769656B2 (en) Wireless communication method and wireless communication terminal
WO2020031682A1 (en) Communication device
CN108513728B (en) System information sending method, system information receiving method and device
US11350417B2 (en) Method and apparatus for transmitting information
US20150312910A1 (en) Dynamic Channel Bandwidth Selection Based on Information for Packets transmitted at Different Channel Bandwidths
CN114500511B (en) Data transmission method and device and electronic equipment
CN109257794A (en) A kind of accidental access method and equipment
US10645003B2 (en) Data packet transmission method, network side device, and user equipment
KR20180045407A (en) Method and Apparatus for selecting an access network in a wireless communication system
JP2008289080A (en) Terminal device, network device, and data communication method
US10165568B2 (en) Data communication apparatus, computer readable medium, and satellite communication system
JP2010056942A (en) Wireless communication apparatus and wireless communication method
US10813110B2 (en) Method and apparatus for scheduling terminal radio resources
US8437289B2 (en) Communication apparatus, communication interface module, and communication method
JP7322524B2 (en) Communication system and communication device

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