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

Data transmission method and device and electronic equipment Download PDF

Info

Publication number
CN114500511A
CN114500511A CN202210111243.7A CN202210111243A CN114500511A CN 114500511 A CN114500511 A CN 114500511A CN 202210111243 A CN202210111243 A CN 202210111243A CN 114500511 A CN114500511 A CN 114500511A
Authority
CN
China
Prior art keywords
transmission
data
equipment
determining
target
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
CN202210111243.7A
Other languages
Chinese (zh)
Other versions
CN114500511B (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

Images

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

Landscapes

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

Abstract

The application discloses a data transmission method, a data transmission device and electronic equipment, wherein the data transmission method comprises the following steps: responding to the existence of data to be transmitted between first equipment and second equipment, and acquiring attribute characteristics of the data to be transmitted and equipment characteristics of the first equipment and the second equipment; and determining a target transmission mode based on the attribute characteristics and the equipment characteristics, so that the data to be transmitted is 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 for data transmission, so that the target transmission mode can better accord 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 application relates to the field of computer technologies, and in particular, to a data transmission method and apparatus, 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 higher and higher. 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 method of data transmission, comprising:
responding to the existence of data to be transmitted between first equipment and second equipment, and acquiring attribute characteristics of the data to be transmitted and equipment characteristics of 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 obtaining of the attribute feature of the data to be transmitted and the device features of the first device and the second device includes:
acquiring the data volume of data to be transmitted;
and acquiring transmission associated hardware characteristic information of the first device and the second device.
Optionally, the target transmission mode comprises a target transmission protocol, wherein the determining the target transmission mode based on the attribute characteristics and the device characteristics comprises:
determining a candidate transmission protocol based on the transmission associated hardware characteristic information;
determining a transmission time corresponding to each candidate transmission protocol based on the amount of data;
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 first time for establishing communication connection between first equipment and second equipment corresponding to each candidate transmission protocol;
determining, based on the amount of data, a second time to transmit the data to be transmitted based on each candidate transmission protocol;
based on the first time and the second time, a transmission time corresponding to each candidate transmission protocol is determined.
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-related hardware characteristic information;
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 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.
Optionally, the method further comprises:
determining location relationship information between the first device and the second device based on a target candidate transmission protocol;
determining a target transmission protocol among the candidate transmission protocols based on the positional relationship 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:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for responding to the existence of data to be transmitted between first equipment and second equipment, and acquiring the attribute characteristics of the data to be transmitted and the equipment characteristics of the first equipment and the second equipment;
and the determining unit is used for 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.
An electronic device, comprising:
a memory for storing a program;
a processor for scheduling and executing the program in the memory, and implementing the data transmission method according to any one of the above by executing the program.
It can be seen from the above technical solutions that the present application provides a data transmission method, apparatus and electronic device, including: responding to the existence of data to be transmitted between first equipment and second equipment, and acquiring attribute characteristics of the data to be transmitted and equipment characteristics of 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 for data transmission, so that the target transmission mode can better accord 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 needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart 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 technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a data transmission method, which can be used in a scene of data transmission between different devices. For example, a first device transmits data to be transmitted to a 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 schematic flow chart of a data transmission method provided in an embodiment of the present application is shown, where the method includes the following steps:
s101, responding to the existence of data to be transmitted between first equipment and second equipment, and obtaining attribute characteristics of the data to be transmitted and equipment characteristics of the first equipment and the second equipment.
S102, determining a target transmission mode based on the attribute characteristics and the equipment characteristics, so that the data to be transmitted are transmitted through the target transmission mode.
The first device and the second device are devices which need to perform data transmission, that is, 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 attributes of the data to be transmitted, and the attributes of the data to be transmitted may include characteristic information such as data type, data format, data size, and the like. Different attribute characteristics of the data to be transmitted affect the efficiency of data transmission, for example, based on the same transmission modulus, the transmission time of a data packet with a large data volume is longer than that of a data packet with a small data volume. Or the transmission time of the video format file packet is longer than that of the text type file packet.
Moreover, the device characteristics of the first device and the second device need to be acquired, and the difference in the device characteristics may also affect the data transmission efficiency. The device characteristics may include parameter information of an antenna for data transmission by the device, distance information between devices to be subjected to data transmission, 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. And furthermore, the target transmission mode can be determined according to the characteristics of the data, hardware characteristics corresponding to the equipment, 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 a data volume, and the device feature may include hardware feature information. The obtaining of 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 volume of data to be transmitted;
acquiring transmission associated hardware characteristic information of the first device and the second device.
The data transmission time can be estimated according to the data quantity of the data to be transmitted, and the selection range of hardware for data transmission can be determined according to the transmission related hardware characteristic information. Accordingly, the corresponding target transmission mode may be determined based on the above-described characteristics.
Specifically, the target transmission mode includes a target transmission protocol, and referring to fig. 2, a flow diagram of another data transmission method provided in the embodiment of the present application is shown, where the method may include the following steps:
s201, acquiring the data volume of data to be transmitted and transmission associated hardware characteristic information of first equipment and second equipment;
s202, determining a candidate transmission protocol based on the transmission associated hardware characteristic information;
s203, determining the transmission time corresponding to each candidate transmission protocol based on the data volume;
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.
The transmission protocol refers to a rule that both parties transmitting data must comply with 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 the like. The transmission protocols that different devices can support 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 a wireless network. Therefore, based on the transmission-related hardware characteristic information of the device that needs to perform data transmission, candidate transmission protocols can be determined. The transmission of the associated hardware feature information may include hardware that directly performs data transmission, such as an antenna and a network module, and may also include hardware that indirectly affects data transmission, such as a data caching module and a processing module. For example, if the first device and the second device both 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 Ultra Wide Band transmission protocol.
And then, estimating the transmission time corresponding to each candidate transmission protocol according to the data amount 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 size of the data volume 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 hardware parameters of the first device and/or the second device corresponding to the target transmission protocol, and performing parameter configuration on related hardware of the first device and/or the second device based on the hardware parameters so as to facilitate data transmission between the devices. 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 frequencies 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 a time for establishing a communication connection between devices that need to transmit data, and a transmission time for transmitting data.
In one implementation, the determining a transmission time corresponding to each candidate transmission protocol based on the amount of data includes: acquiring first time for establishing communication connection between first equipment and second equipment corresponding to each candidate transmission protocol; determining, based on the amount of data, a second time to transmit the data to be transmitted based on each candidate transmission protocol; based on the first time and the second time, a transmission time corresponding to each candidate transmission protocol is determined.
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 communicating parties negotiate a communication mode before communicating, and simultaneously tell the other party that the data is ready to be sent and received, and the process is handshake. The process of handshaking is typically one party to a communication sends a request and the other party responds. Successful handshaking indicates a link for communication and data transfer is possible.
The second time for transmitting the transmission data based on the candidate transmission protocol is the transmission time determined when the transmission is performed according to the data volume to be transmitted and the transmission rate corresponding to the candidate transmission protocol. Wherein, the transmission rate refers to a theoretical transmission rate corresponding to the candidate transmission protocol, or an average transmission rate; its actual transmission rate is also affected by the transmission distance and the data transmission load of the device. Correspondingly, when calculating the second time, the determination may also be performed based on the specific situation of the scene where the device that needs to perform data transmission is located, that is, the condition that affects the actual transmission rate is considered in the transmission rate determination range.
For example, taking a transmission protocol corresponding to a super bandwidth (UWB) as an example, the handshake time of the first device and the second device is 0.5S, 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 is TUWB=0.5+X/500。
When data transmission is carried out by using 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 volume 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 TWIFI=5+X/1000。
If the candidate transmission protocol includes a super-bandwidth (UWB) transmission protocol and a WIFI transmission protocol, the obtained T can be used as the basisUWBAnd TWIFIThe target transmission protocol is determined according to the value of the first parameter, namely, the candidate transmission protocol corresponding to the smaller value of the two values is selected as the target transmission protocol, so that the first device and the second device transmit data to be transmitted based on the target transmission protocol.
In another implementation manner of the embodiment of the present application, data transmission may also be monitored in the whole process, that is, when data is transmitted in a target transmission manner corresponding to a target transmission protocol, the remaining time of data transmission may be detected in real time, and whether to switch the current target transmission protocol is determined based on the remaining time and the state information of the current device. Specifically, the communication mode that can be switched to may be determined based on current state information of the first device and the second device, and then the transmission time of the remaining data to be transmitted is estimated again based on the communication mode to determine whether to switch to the transmission mode of the information. When determining the transmission time for transmitting the remaining data to be transmitted, the transmission mode switching time also needs to be considered, that is, 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. The method comprises the steps of firstly determining configuration information of transmission hardware of equipment, and determining whether a transmission mode to be switched is an independent transmission path or a mode shared by transmission antennas according to the configuration information. In case of an independent transmission path, the transmission mode switching time is a time for switching from the target transmission mode to the new transmission mode, i.e. a total time including a time for disconnecting the device from the target transmission mode plus a time for establishing a communication connection by the device through the new transmission mode. If the transmission antenna is in a common 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 can be ignored.
In the process of monitoring data transmission, the transmission time for switching to a new transmission mode based on the residual data volume is estimated based on the current state of the equipment and the hardware characteristics of the equipment, 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 equipment and the second equipment can keep the optimal transmission efficiency in real time when data transmission is carried out, and the high efficiency of the data transmission is ensured.
The data transmission method according to the embodiment of the present application is described below with reference to attribute features corresponding to data to be transmitted and specific information of 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-related hardware characteristic information, and the transmission-related hardware includes a transmission antenna, correspondingly, determining the candidate transmission protocol based on the transmission-related hardware characteristic information includes: determining transmission frequency information of a transmission antenna based on the transmission associated hardware characteristic information; 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-related hardware characteristic 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 the candidate transmission protocol according to the frequency range corresponding to the transmission frequency of the antenna.
In addition, the data storage amount of the cache unit of the device can be acquired to determine the candidate transmission protocol. If the data storage amount corresponding to the cache unit of the data is small, the transmission protocol with a slow transmission rate cannot be selected, so that the cache data of the cache unit is increased, and transmission failure is easily caused. And determining the transmission protocol corresponding to the transmission rate greater than the transmission rate threshold value as a candidate transmission protocol.
Further, the generating a target transmission mode corresponding to a 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.
The transmission frequency of the equipment is switched to the transmission frequency corresponding to the target transmission protocol, so that when the equipment transmits data by the target transmission protocol, the corresponding hardware information can be matched with the target transmission mode, and efficient data transmission is guaranteed. Further, when the frequency of the transmission antenna of the device is switched, the fluency of data transmission and data reception can be ensured by switching the transmission antenna corresponding to the device for transmitting data and the device for receiving data.
In another embodiment, the distance and relative position relationship between devices performing data transmission also affect the data transmission efficiency. The data transmission method further comprises the following steps: determining location 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 transmission protocol is determined among the candidate transmission protocols.
The location relationship information may include information such as a distance and an angle between the first device and the second device, and may further include location information between the first device and the second device and the communication base station. Further, the positional relationship information may also include distances between the first device and the second device and surrounding devices or obstacles. Accordingly, 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 as to determine the most cost-effective transmission protocol in the distance range as the target transmission protocol. For example, the first device and the second device may both 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 to each other, but the relative distance between the first device and the second device is large, and if the wired network transmission protocol is used for transmission, the length of a transmission physical bus is long, and the cost is high, and at this time, the wireless network transmission protocol is taken as a 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 a first transmission protocol and a second transmission protocol, and it can be obtained from the information of the position relationship between the first device and the second device that other communication devices exist between the first device and the second device, and these communication devices may interfere with the data transmission of the first device and the second device, that is, may affect the data transmission efficiency. Therefore, the second transmission protocol with better anti-interference effect can be determined as the target transmission protocol.
The mode of establishing the communication connection corresponding to each candidate transmission protocol of the first device and the second device may be determined based on the position relationship information between the first device and the second device, so as to determine the establishment time of the communication connection. For example, when the distance between the first device and the second device is smaller than a preset distance threshold, the first candidate transmission protocol may enable the first device to actively identify a corresponding connection mode through a position relationship to establish a communication connection with the second device, and if the second candidate transmission protocol is to enable the communication connection between the first device and the second device, the communication connection may be established only based on a communication connection instruction sent by a base station or another control platform, and the complexity of establishing the communication connection is higher than that of the first candidate transmission protocol, so 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 position relationship information between the first device and the second device is determined based on the target candidate transmission protocol. The target candidate transport protocol needs to have the characteristic of being capable of rapidly obtaining the positioning information of the target candidate transport protocol and the target candidate transport 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 which the data transmission is to be made is located by the positioning features of UWB. Further, the location information may be stored, that is, stored in the storage unit corresponding to the first device and the second device, so that when the first device and the second device establish a communication connection based on another communication protocol, the location information is called to achieve the purpose of quickly searching for the corresponding device to establish the communication connection.
Specifically, when the distance information of the device to be subjected to data transmission is located by using UWB, UWB message information may be sent to the second device through the first device, feedback information corresponding to the second device based on the UWB message information may be acquired, and the distance between the first device and the second device may be determined based on the feedback information.
In another implementation manner of the embodiment of the present application, the attribute feature of the data to be transmitted may further include a data type, that is, determining the target transmission mode based on the attribute feature and the device feature 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. When determining whether a multi-channel transmission mode can be adopted, the data type of the data to be transmitted needs to be determined in addition to the hardware characteristics of the device itself. Whether the data to be transmitted can be split or not is determined by the data type. If a multi-channel transmission mode is adopted, data to be transmitted need to be transmitted in parallel through different transmission channels, so that the transmission efficiency is improved. However, if the data to be transmitted is a whole, i.e., cannot be split, a 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 codes or a single text, errors can easily occur after the data are received if the data of the type are split. If the data type is in a picture format and the data to be transmitted comprises a plurality of pictures, the plurality of pictures can be split and divided into different picture groups, each picture group comprises a plurality of pictures, and then the picture groups are distributed to different transmission channels to be transmitted in parallel, so that the data transmission efficiency is improved. Different transmission channels can correspond to different transmission protocols, so that data transmission hardware can be efficiently utilized, and the data transmission efficiency is ensured.
Correspondingly, when multi-channel data transmission is carried out, the multi-channel data transmission can also be realized in a time slot allocation mode, namely, a time slot is allocated to each transmission channel, so that the time slot is fully utilized under the condition of meeting the data quantity required to be transmitted, and the time delay is minimum.
An embodiment of the present application provides a data transmission method, including: responding to the existence of data to be transmitted between first equipment and second equipment, and acquiring attribute characteristics of the data to be transmitted and equipment characteristics of 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 for data transmission, so that the target transmission mode can better accord 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 first and second devices in response to the existence of the data to be transmitted between the first and second devices;
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 through the target transmission mode.
An embodiment of the present application provides a data transmission apparatus, including: the method comprises the steps that an obtaining unit responds to the fact that data to be transmitted exist between first equipment and second equipment, and obtains attribute characteristics of the data to be transmitted and equipment characteristics of the first equipment and the second equipment; the determination 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 for data transmission, so that the target transmission mode can better accord with the current data transmission scene, and the data transmission efficiency is improved.
In one implementation, the obtaining unit 301 includes:
the first acquisition subunit is used for acquiring the data volume of the data to be transmitted;
and the second acquiring subunit is configured to acquire the transmission-related hardware feature information of the first device and the second device.
Optionally, the target transmission mode includes a target transmission protocol, where the determining unit 302 includes:
a first determining subunit, configured to determine a candidate transmission protocol based on the transmission-related 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 determining 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 generating 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 first time for establishing communication connection between first equipment and second equipment corresponding to each candidate transmission protocol;
determining, based on the amount of data, a second time to transmit the data to be transmitted based on each candidate transmission protocol;
based on the first time and the second time, a transmission time corresponding to each candidate transmission protocol is determined.
Optionally, the first determining subunit is specifically configured to:
determining transmission frequency information of a transmission antenna based on the transmission-related hardware characteristic information;
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 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.
In one embodiment, the apparatus further comprises:
a location determination unit configured to determine location relationship information between the first device and the second device based on a target candidate transmission protocol;
a protocol determining unit, configured to determine a target transmission protocol among the candidate transmission protocols based on the location relation 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, in the present embodiment, reference may be made to the corresponding contents in the foregoing, and details are not described here.
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, carries out the steps of the data transmission as described 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 is shown, where the technical solution of this 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 for calling and executing the program in the memory, and implementing by executing the program:
responding to the existence of data to be transmitted between first equipment and second equipment, and acquiring attribute characteristics of the data to be transmitted and equipment characteristics of 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, in the present embodiment, reference may be made to the corresponding contents in the foregoing, and details are not described here.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
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 components and steps have been described above generally in terms of their functionality in order to clearly illustrate this 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 implementation. 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. A software module may reside 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 (10)

1. A method of data transmission, comprising:
responding to the existence of data to be transmitted between first equipment and second equipment, and acquiring attribute characteristics of the data to be transmitted and equipment characteristics of 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.
2. The method according to claim 1, wherein the obtaining of the attribute characteristics of the data to be transmitted and the device characteristics of the first device and the second device comprises:
acquiring the data volume of data to be transmitted;
and acquiring transmission associated hardware characteristic information of the first device and the second device.
3. The method of claim 2, the target transmission mode comprising a target transmission protocol, wherein the determining a target transmission mode based on the attribute characteristic and the device characteristic comprises:
determining candidate transmission protocols based on the transmission associated hardware characteristic information;
determining a transmission time corresponding to each candidate transmission protocol based on the amount of data;
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.
4. The method of claim 3, the determining a transmission time corresponding to each candidate transmission protocol based on the amount of data, comprising:
acquiring first time for establishing communication connection between first equipment and second equipment corresponding to each candidate transmission protocol;
determining, based on the amount of data, a second time to transmit the data to be transmitted based on each candidate transmission protocol;
based on the first time and the second time, a transmission time corresponding to each candidate transmission protocol is determined.
5. The method of claim 3, the determining a candidate transmission protocol based on the transmission-related hardware characterization information, comprising:
determining transmission frequency information of a transmission antenna based on the transmission-related hardware characteristic information;
determining a candidate transmission protocol based on the transmission frequency information.
6. The method of claim 5, the generating a target transmission mode corresponding to the 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 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.
7. The method of claim 3, further comprising:
determining location relationship information between the first device and the second device based on a target candidate transmission protocol;
determining a target transmission protocol among the candidate transmission protocols based on the location relation information.
8. The method of claim 3, 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.
9. A data transmission apparatus comprising:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for responding to the existence of data to be transmitted between first equipment and second equipment, and acquiring the attribute characteristics of the data to be transmitted and the equipment characteristics of the first equipment and the second equipment;
and the determining unit is used for 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.
10. An electronic device, comprising:
a memory for storing a program;
a processor for scheduling and executing the program in the memory, the program being executed to implement the data transmission method according to any one of claims 1 to 8.
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 true CN114500511A (en) 2022-05-13
CN114500511B 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
CN114500511B (en) 2023-12-26

Similar Documents

Publication Publication Date Title
US8923267B2 (en) System and method for high speed peer-to-peer connectivity between wireless devices
US20180270679A1 (en) Reliability-based multi-link communications
RU2742143C1 (en) Method for configuring measurement interval and corresponding apparatus, device, terminal device and system
CN109075905B (en) ACK/NACK feedback method under unlicensed spectrum and related equipment
US20190159073A1 (en) Method for transmitting information, network device and terminal device
CN110996395B (en) Transmission configuration information indication method and device for auxiliary link, storage medium and terminal
CN110603738A (en) Beam recovery method and device
CN111586878A (en) Communication method and device
JP2019519955A (en) Communication method, network equipment and terminal equipment
JP2022500935A (en) Resource allocation method and equipment, terminals
CN109729761A (en) Access method, terminal device and the network equipment of network
CN110431878B (en) Base station comprising a software defined radio receiver
CN112929968B (en) Transmission method, device and storage medium of random access preamble
US11297637B2 (en) Method for data transmission based on uplink grant, and terminal device thereof
US9807780B2 (en) Data sharing system
CN109257794A (en) A kind of accidental access method and equipment
KR20130097328A (en) Apparatus and method for dynamically determining communication link in communication system
JP2019513309A (en) Communication method based on device to device
CN114500511B (en) Data transmission method and device and electronic equipment
US10165568B2 (en) Data communication apparatus, computer readable medium, and satellite communication system
CN112839360B (en) Resource allocation method and communication equipment
JP2020522941A (en) Signal transmission method, terminal device and network device
EP3905736A1 (en) Device discovery method, apparatus, and system
US10813110B2 (en) Method and apparatus for scheduling terminal radio resources
CN116210292A (en) Information transmission method and related equipment

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