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

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

Info

Publication number
CN113114778A
CN113114778A CN202110437893.6A CN202110437893A CN113114778A CN 113114778 A CN113114778 A CN 113114778A CN 202110437893 A CN202110437893 A CN 202110437893A CN 113114778 A CN113114778 A CN 113114778A
Authority
CN
China
Prior art keywords
equipment
sending
receiving
information
data transmission
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.)
Pending
Application number
CN202110437893.6A
Other languages
Chinese (zh)
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110437893.6A priority Critical patent/CN113114778A/en
Publication of CN113114778A publication Critical patent/CN113114778A/en
Pending legal-status Critical Current

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/14Session management
    • H04L67/141Setup of application sessions
    • 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/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present disclosure relates to a data transmission method, apparatus, electronic device, and storage medium, the method comprising: acquiring a data transmission instruction, wherein the data transmission instruction comprises sending equipment information and receiving equipment information; determining whether the sending device and the receiving device are in the same local area network or not based on the sending device information and the receiving device information; if the sending equipment and the receiving equipment are in the same local area network, controlling the sending equipment and the receiving equipment to perform data transmission based on the local area network; and if the sending equipment and the receiving equipment are not in the same local area network, controlling the sending equipment and the receiving equipment to perform data transmission based on a cloud server. Through the technical scheme provided by the embodiment of the disclosure, a user can carry out interconnection and mutual control among different intelligent household devices at any time and any place, the use cost of flow and cloud server bandwidth is reduced, and the transmission efficiency and quality are improved in an application scene of large data volume transmission.

Description

Data transmission method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a data transmission method and apparatus, an electronic device, and a storage medium.
Background
With the continuous development of mobile terminals and home intelligent devices, the requirements for mutual control and data transmission between devices in a home gateway are becoming stronger and stronger, and the concept of Internet of Things (IoT) comes along. Services such as screen projection and remote monitoring have been widely used in our lives.
At present, two network connection modes between different smart home devices are local area network connection and cloud connection. The two network connection modes are alternative. The local area network connection is limited by regions, and remote equipment control cannot be realized. In the cloud connection, the data packet is transmitted to the cloud server through the operator network, and then the data packet is forwarded to the receiving end device by the cloud server, so that delay is generated. Therefore, neither of the two existing network connections can meet the user's needs well.
Disclosure of Invention
To solve the technical problem or at least partially solve the technical problem, the present disclosure provides a data transmission method, an apparatus, an electronic device, and a storage medium.
In a first aspect, the present disclosure provides a data transmission method, including:
acquiring a data transmission instruction, wherein the data transmission instruction comprises sending equipment information and receiving equipment information;
determining whether the sending device and the receiving device are in the same local area network or not based on the sending device information and the receiving device information;
if the sending equipment and the receiving equipment are in the same local area network, controlling the sending equipment and the receiving equipment to perform data transmission based on the local area network;
and if the sending equipment and the receiving equipment are not in the same local area network, controlling the sending equipment and the receiving equipment to perform data transmission based on a cloud server.
In a second aspect, the present disclosure further provides a data transmission apparatus, including:
the instruction acquisition module is used for acquiring a data transmission instruction, and the data transmission instruction comprises sending equipment information and receiving equipment information;
the judging module is used for determining whether the sending equipment and the receiving equipment are in the same local area network or not based on the sending equipment information and the receiving equipment information;
the local area network transmission module is used for controlling the sending equipment and the receiving equipment to carry out data transmission based on a local area network if the sending equipment and the receiving equipment are in the same local area network;
and the cloud transmission module is used for controlling the sending equipment and the receiving equipment to perform data transmission based on a cloud server if the sending equipment and the receiving equipment are not in the same local area network.
In a third aspect, the present disclosure also provides an electronic device, including:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a data transmission method as described above.
In a fourth aspect, the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the data transmission method as described above.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
the essence of the technical scheme provided by the embodiment of the present disclosure is that when data transmission is needed, whether a condition for performing data transmission based on a local area network exists between a sending device and a receiving device is judged, and if yes, data transmission is performed based on the local area network; otherwise, data transmission is carried out based on the cloud server. The data transmission can simultaneously have respective advantages of cloud connection and local area network connection by the aid of the arrangement, and the data transmission effect is optimal. Specifically, if the transmitting device and the receiving device have a condition for data transmission via the local area network, and preferentially use the local area network for data transmission, the advantages of low connection delay and high transmission performance of the local area network can be enjoyed. If the sending equipment and the receiving equipment do not have the condition of data transmission based on the local area network, cloud connection transmission is facilitated, and the advantages of good cloud connection stability and no region limitation can be enjoyed.
Through the technical scheme provided by the embodiment of the disclosure, a user can carry out interconnection and mutual control among different intelligent household devices at any time and any place, the use cost of flow and cloud server bandwidth is reduced, and the transmission efficiency and quality are improved in an application scene of large data volume transmission.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a block diagram of a data transmission system according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a data transmission method provided in an embodiment of the present disclosure;
fig. 3 is a flowchart of another data transmission method provided by the embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating information interaction among the sending device, the receiving device, and the cloud server when the data transmission method in fig. 3 is executed;
fig. 5 is a flowchart of another data transmission method provided by the embodiment of the present disclosure;
FIG. 6 is a flow chart of a method for implementing S140 of FIG. 2;
fig. 7 is a schematic structural diagram of a data transmission device in an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
Fig. 1 is a block diagram of a data transmission system according to an embodiment of the present disclosure. Fig. 2 is a flowchart of a data transmission method according to an embodiment of the present disclosure. The data transmission method provided by the present disclosure can be applied to the application environment shown in fig. 1. Referring to fig. 1, the data transmission system includes a cloud server, a first gateway, a second gateway, and a plurality of smart home devices. And one part of the intelligent household equipment is in communication connection with the first gateway through the network, and the other part of the intelligent household equipment is in communication connection with the second gateway through the network. Exemplarily, in fig. 1, an intelligent home device 1 and an intelligent home device 2 are connected to a first gateway through network communication; the intelligent household equipment 3 is in communication connection with the second gateway through a network. The first gateway and the second gateway are in communication connection with the cloud server through a network.
The cloud server can be implemented by an independent server or a server cluster consisting of a plurality of servers. Smart home devices may include, but are not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, smart screens, cameras, file storage, electric cookers, microwave ovens, air conditioners, table lamps, sockets, televisions, refrigerators, washing machines, dish washers, and stereos.
For example, in fig. 1, a first gateway and a second gateway may be bridged, and a local area network is jointly established by the first gateway and the second gateway, so that the smart home devices 1, 2, and 3 are located in the same local area network, which is referred to as a cascading case. The first gateway and the second gateway can also be used for respectively establishing local area networks, so that the intelligent home equipment 1 and the intelligent home equipment 2 are located in the same local area network, the intelligent home equipment 3 and the intelligent home equipment 1 are located in different local area networks, and the intelligent home equipment 3 and the intelligent home equipment 2 are located in different local area networks, which is called as a non-cascading situation.
In fig. 2, the data transmission method is executed by the smart home device. Exemplarily, if two local area networks are established by using a first gateway and a second gateway respectively, when the smart home device 1 needs to perform data transmission with the smart home device 2, the smart home device 1 obtains a data transmission instruction; and determining whether the intelligent household equipment 1 and the intelligent household equipment 2 are in the same local area network or not based on the information of the intelligent household equipment 1 and the information of the intelligent household equipment 2 in the data transmission instruction. Because the intelligent household equipment 1 and the intelligent household equipment 2 are located in the same local area network, the intelligent household equipment 1 and the intelligent household equipment 2 are controlled to perform data transmission based on the local area network. If the intelligent home equipment 1 needs to perform data transmission with the intelligent home equipment 3, the intelligent home equipment 1 acquires a data transmission instruction; and determining whether the intelligent household equipment 1 and the intelligent household equipment 3 are in the same local area network or not based on the information of the intelligent household equipment 1 and the information of the intelligent household equipment 3 in the data transmission instruction. Because the intelligent home devices 1 and 3 are not in the same local area network, the intelligent home devices 1 and 3 are controlled to perform data transmission based on the cloud server.
Alternatively, the method may be performed by a data transmission device, which may be implemented in software and/or hardware, and the device may be configured in the smart home device. As shown in fig. 2, the method may specifically include:
s110, acquiring a data transmission instruction, wherein the data transmission instruction comprises sending equipment information and receiving equipment information.
In practice, in the same data transmission system, the sending device and the receiving device are not fixed, but dynamically change according to the data transmission situation. For example, referring to fig. 1, it is assumed that the smart home device 1 is a mobile terminal, such as a mobile phone, and the smart home device 2 is a television. When a user wants to use the mobile terminal to project a certain video on a television, the smart home device 1 is a sending device and the smart home device 2 is a receiving device for the video to be projected. If in another situation, if the user uses the mobile terminal to project a certain video on the television, but the screen projection fails, and the television feeds back the prompt information of the screen projection failure to the mobile terminal, the smart home device 2 is a sending device and the smart home device 1 is a receiving device for the prompt information to be fed back. Therefore, referring to fig. 1, in practice, any one smart home device may be a sending device and may also be a receiving device. When the data transmission method provided by the present disclosure is executed, the determination needs to be made according to actual conditions.
The sending device information includes sending device identification information and/or identification information of a gateway connected with the sending device. The sending device identification information is information which can uniquely distinguish the sending device from other intelligent household devices which are connected with the same cloud server with the sending device. Illustratively, the transmitting device identification information includes, but is not limited to, at least one of: a sending device hardware ID, a sending device MAC address, a sending device IP address, a sending device name, and a sending device model. The identification information of the gateway connected to the transmission device is information that can uniquely distinguish the gateway connected to the transmission device from other gateways. Illustratively, the identification information of the gateway connected to the sending device includes: at least one of a MAC address and an SSID number of a gateway connected with the transmitting device.
Similarly, the reception device information includes reception device identification information and/or identification information of a gateway connected to the reception device. Wherein the receiving device identification information includes but is not limited to at least one of the following: a receiving device hardware ID, a receiving device MAC address, a receiving device IP address, a receiving device name, and a receiving device model. Identification information of a gateway connected to the receiving device, including: at least one of a MAC address and an SSID number of a gateway connected with the receiving device.
The data transmission instruction is generated based on a user operation. Illustratively, an application program for adjusting the working state of the receiving device is installed in the sending device (such as a mobile phone). And the user generates a data transmission instruction by operating the application program. The receiving equipment receives and executes the data to be transmitted in the data transmission instruction so as to realize the adjustment of the working state.
And S120, determining whether the sending device and the receiving device are in the same local area network or not based on the sending device information and the receiving device information.
There are various implementation methods of this step, and optionally, it is determined whether the sending device and the receiving device are in the same local area network based on the identification information of the gateway connected to the sending device and the identification information of the gateway connected to the receiving device. This method is suitable for non-cascaded cases.
Illustratively, if the identification information of the gateway connected to the transmitting device includes the MAC address of the gateway connected to the transmitting device, the identification information of the gateway connected to the receiving device includes the MAC address of the gateway connected to the receiving device, and it is determined whether the transmitting device and the receiving device are within the same local area network based on the MAC address of the gateway connected to the transmitting device and the MAC address of the gateway connected to the receiving device. If the two MAC addresses are the same, determining that the sending equipment and the receiving equipment are connected with the same gateway and are in the same local area network; and if the two MAC addresses are different and the same, determining that the sending equipment and the receiving equipment are not in the same local area network.
Or, if the identification information of the gateway connected to the sending device includes the SSID number of the gateway connected to the sending device, and the identification information of the gateway connected to the receiving device includes the SSID number of the gateway connected to the receiving device, determining whether the sending device and the receiving device are connected in the same local area network based on the SSID number of the gateway connected to the sending device and the SSID number of the gateway connected to the receiving device. If the two SSID numbers are the same, determining that the sending equipment and the receiving equipment are connected with the same gateway and are positioned in the same local area network; and if the two SSID numbers are different and the same, determining that the sending equipment and the receiving equipment are in different local area networks.
Or, if the identification information of the gateway connected to the sending device includes: the MAC address and SSID number of the gateway connected with the sending device; the identification information of the gateway connected to the receiving device includes: the MAC address and SSID number of the gateway connected with the receiving device; based on the two MAC addresses and the two SSID numbers, it is determined whether the transmitting device and the receiving device are in the same local area network. If the two MAC addresses and the two SSID numbers are the same, determining that the sending equipment and the receiving equipment are connected with the same gateway and are positioned in the same local area network; otherwise, the sending equipment and the receiving equipment are determined to be in different local area networks.
It should be noted that, for the receiving device information, only the receiving device identification information is included, and the identification information of the gateway connected to the receiving device is not included; and/or in the case where the sending device information includes only the sending device identification information and does not include the identification information of the gateway connected to the sending device, optionally, the identification information of the gateway connected to the receiving device and the identification information of the gateway connected to the sending device may be determined by means of the device information list. The device information list is stored in the cloud server and comprises identification information of all devices in communication connection with the cloud server and identification information of gateways connected with the devices.
Exemplarily, if in the data transmission instruction, the sending device information includes identification information of a gateway connected to the sending device, and the receiving device information includes identification information of the receiving device; this step can be replaced by: determining identification information of a gateway connected with the receiving device based on the identification information of the receiving device and the device information list; and determining whether the sending device and the receiving device are connected with the same gateway and are in the same local area network based on the identification information of the gateway connected with the sending device and the identification information of the gateway connected with the receiving device. The method is suitable for the condition that the receiving equipment information comprises the identification information of the gateway connected with the receiving equipment in the data transmission instruction, and is also suitable for the condition that the receiving equipment information does not comprise the identification information of the gateway connected with the receiving equipment in the data transmission instruction.
Optionally, the implementation method in this step may further be that, based on the public network IP of the sending device and the public network IP of the receiving device, it is determined whether the sending device and the receiving device are in the same local area network. The method is suitable for the non-cascading condition and the cascading condition.
Exemplarily, if the sending device information includes sending device identification information in the data transmission instruction, the sending device identification information includes a sending device public network IP; the receiving device information includes receiving device identification information; this step can also be replaced by: determining a public network IP of the receiving equipment based on the identification information of the receiving equipment and the equipment information list; in the device information list, the identification information of all devices comprises the public network IP of the devices; and determining whether the sending equipment and the receiving equipment are in the same local area network or not based on the public network IP of the sending equipment and the public network IP of the receiving equipment. In the above technical scheme, the device information list may be stored in the sending device, or may be stored in the cloud server. The device information list is stored in the cloud server, and timely maintenance of the device information list can be achieved. The method is suitable for the condition that the identification information of the receiving equipment in the data transmission instruction comprises the public network IP of the receiving equipment, and is also suitable for the condition that the identification information of the receiving equipment in the data transmission instruction does not comprise the public network IP of the receiving equipment.
And S130, if the sending device and the receiving device are in the same local area network, controlling the sending device and the receiving device to perform data transmission based on the local area network.
And S140, if the sending device and the receiving device are not in the same local area network, controlling the sending device and the receiving device to perform data transmission based on the cloud server.
The essence of the technical scheme is that when data transmission is needed, whether conditions for data transmission based on the local area network exist between the sending equipment and the receiving equipment is judged, and if yes, data transmission is carried out based on the local area network; otherwise, data transmission is carried out based on the cloud server. The data transmission can simultaneously have respective advantages of cloud connection and local area network connection by the aid of the arrangement, and the data transmission effect is optimal. Specifically, if the transmitting device and the receiving device have a condition for data transmission via the local area network, and preferentially use the local area network for data transmission, the advantages of low connection delay and high transmission performance of the local area network can be enjoyed. If the sending equipment and the receiving equipment do not have the condition of data transmission based on the local area network, cloud connection transmission is facilitated, and the advantages of good cloud connection stability and no region limitation can be enjoyed.
Through the technical scheme, the user can carry out interconnection and mutual control among different intelligent household equipment at any time and any place, the use cost of flow and cloud server bandwidth is reduced, and the transmission efficiency and quality are improved in the application scene of large data volume transmission.
Optionally, on the basis of the above technical solution, after the data transmission is completed, the connection is disconnected. Here, disconnection refers to disconnection of a connection established for data transmission, including disconnection of a local area network connection and a cloud connection.
Fig. 3 is a flowchart of another data transmission method according to an embodiment of the disclosure. Fig. 4 is a schematic diagram of information interaction among the sending device, the receiving device, and the cloud server when the data transmission method in fig. 3 is executed. Fig. 3 is a specific example of fig. 2, and the technical scheme in fig. 3 is applicable to the non-cascaded case. Referring to fig. 3 and 4, the data transmission method includes:
s210, the sending device acquires a data transmission instruction, wherein the data transmission instruction comprises identification information of a gateway connected with the sending device and identification information of a receiving device.
S220, the sending equipment sends the receiving equipment identification information to a cloud server.
S230, the cloud server determines the identification information of the gateway connected with the receiving device based on the identification information of the receiving device and the device information list, and returns the identification information of the gateway connected with the receiving device to the sending device.
The device information list is stored in the server and comprises identification information of all devices in communication connection with the cloud server and identification information of gateways connected with the devices.
Specifically, the device information list includes a plurality of device information, and the device information corresponds to the smart home devices in communication connection with the cloud server one to one. Each device information includes: the identification information of the intelligent home equipment and the identification information of the gateway connected with the intelligent home equipment.
Optionally, in practice, the cloud server may be configured to update the device information list in real time, so as to ensure timeliness of the device information list. And updating the equipment information list in real time, wherein the equipment information list comprises identification information of the intelligent household equipment in the equipment information and/or identification information of a gateway connected with the intelligent household equipment.
Optionally, the device information list may further include information about whether all devices connected to the cloud server in communication are online, where each device information includes: the identification information of the intelligent home equipment, the identification information of the gateway connected with the intelligent home equipment and the information of whether the intelligent home equipment is in an online state or not. And updating the equipment information list in real time, wherein the equipment information list comprises at least one of identification information of the intelligent household equipment in the equipment information, identification information of a gateway connected with the intelligent household equipment and whether the intelligent household equipment is in online state or not.
The method for updating the device information list in real time by the cloud server is various, and exemplarily, the cloud server periodically acquires heartbeat packet data of all devices in communication connection with the cloud server; and the cloud server updates the equipment information list based on the heartbeat packet data.
Optionally, before the device is normally offline (e.g., shutdown of the device), the device in communication connection with the cloud server may be actively configured to send a logout instruction to the cloud server, and the cloud server updates the device information list in real time based on the logout instruction, for example, changes the on-line status information of the smart home device to offline.
Optionally, the device connected to the cloud server in communication may be set to be offline abnormally (for example, the device is powered off, the network is disconnected, and the like), the server does not receive heartbeat packet data within a preset time period (for example, within 1 minute), and the cloud server updates the device information list, for example, changes the online status information of the smart home device to offline.
The essence of this step is to determine which device information in the device information list specifically corresponds to the current receiving device from the device information list, and further determine the identification information of the gateway connected to the receiving device.
The implementation method of the step is various, exemplarily, firstly, the identification information of the receiving device is compared with the identification information of the smart home devices in each piece of device information in the device information list one by one until the device information matched with the identification information of the receiving device is obtained; and then, based on the matched device information, taking the identification information of the gateway connected with the intelligent household device in the device information as the identification information of the gateway connected with the receiving device.
Further, if the device information list further comprises information about whether all devices in communication connection with the cloud server are in an online state or not; this step can also be replaced by: determining whether the receiving device is in an online state based on the receiving device identification information and the device information list; and if the receiving equipment is in an online state, determining the identification information of the gateway connected with the receiving equipment based on the identification information of the receiving equipment and the equipment information list. Since the receiving device is in the offline state, the device information corresponding to the receiving device in the device information list may be inaccurate, or the receiving device may be abnormal. The purpose of this is to increase the success rate of data transmission.
S240, the sending device determines whether the sending device and the receiving device are in the same local area network or not based on the identification information of the gateway connected with the sending device and the identification information of the gateway connected with the receiving device; if yes, go to S250; if not, go to S260.
And S250, controlling the sending equipment and the receiving equipment to transmit data based on the local area network.
And S260, controlling the sending equipment and the receiving equipment to transmit data based on the cloud server.
In practice, the data transmission instruction generated based on the user operation may include incomplete receiving device information, often does not include an IP address of the receiving device, and cannot acquire identification information of a gateway connected to the receiving device. The essence of the technical scheme is that the information of the receiving device is perfected by means of the device information list, so that whether the sending device and the receiving device are in the same local area network or not is determined, and the data transmission method can be ensured to be successfully realized.
It should be noted that, in the above technical solution, S230 may be replaced by that the sending device acquires the device information list from the cloud server, and determines the identification information of the gateway connected to the receiving device based on the receiving device identification information and the acquired device information list. The essence of this is that it is determined from the device information list which piece of device information in the device information list specifically corresponds to the current receiving device, and this is performed by the transmitting device.
On the basis of the above technical solutions, optionally, before S210, the steps of completing registration and account binding based on controlling the smart home devices in response to a user operation may be further set, so that communication connection between the smart home devices and the cloud server is already achieved; and after the intelligent household equipment is started, the intelligent household equipment information is issued to the cloud server so as to update the equipment information list by the cloud server.
Fig. 5 is a flowchart of another data transmission method according to an embodiment of the disclosure. Fig. 5 is a specific example of fig. 2, and the technical scheme in fig. 5 is applicable to both the non-cascaded case and the cascaded case. Referring to fig. 5, the data transmission method includes:
s310, the sending equipment acquires a data transmission instruction, wherein the data transmission instruction comprises sending equipment identification information and receiving equipment identification information; the sending equipment identification information comprises a sending equipment public network IP; the receiving device identification information does not include the receiving device public network IP.
And S320, the sending equipment sends the identification information of the receiving equipment to the cloud server.
S330, the cloud server determines the public network IP of the receiving device based on the identification information of the receiving device and the device information list, and returns the public network IP of the receiving device to the sending device.
The device information list is stored in the server and comprises identification information of all devices in communication connection with the cloud server; in the device information list, the identification information of all devices includes the public network IP of the device.
Specifically, the device information list includes a plurality of device information, and the device information corresponds to the smart home devices in communication connection with the cloud server one to one. Each device information includes: and identification information of the intelligent household equipment. The identification information of the intelligent household equipment comprises a public network IP of the intelligent household equipment.
Optionally, in practice, the cloud server may be configured to update the device information list in real time, so as to ensure timeliness of the device information list. And updating the equipment information list in real time, wherein the equipment information list comprises identification information of the intelligent household equipment in the equipment information.
Optionally, the device information list may further include information about whether all devices connected to the cloud server in communication are online, where each device information includes: the identification information of the intelligent home equipment and the information of whether the intelligent home equipment is in an online state or not. And updating the equipment information list in real time, wherein the equipment information list comprises at least one of identification information of the intelligent household equipment in the equipment information and whether the intelligent household equipment is in the online state or not.
The method for updating the device information list in real time by the cloud server is various, and exemplarily, the cloud server periodically acquires heartbeat packet data of all devices in communication connection with the cloud server; and the cloud server updates the equipment information list based on the heartbeat packet data.
Optionally, before the device is normally offline (e.g., shutdown of the device), the device in communication connection with the cloud server may be actively configured to send a logout instruction to the cloud server, and the cloud server updates the device information list in real time based on the logout instruction, for example, changes the on-line status information of the smart home device to offline.
Optionally, the device connected to the cloud server in communication may be set to be offline abnormally (for example, the device is powered off, the network is disconnected, and the like), the server does not receive heartbeat packet data within a preset time period (for example, within 1 minute), and the cloud server updates the device information list, for example, changes the online status information of the smart home device to offline.
The essence of this step is to determine which device information in the device information list specifically corresponds to the current receiving device from the device information list, and further determine the public network IP of the receiving device.
The implementation method of the step is various, and exemplarily, firstly, the identification information such as the name and the model of the receiving device is compared with the name and the model of the intelligent home equipment in each piece of equipment information in the equipment information list one by one until the equipment information matched with the receiving device is obtained; and then, based on the matched device information, taking the public network IP in the device information as the public network IP of the receiving device.
Further, if the device information list further comprises information about whether all devices in communication connection with the cloud server are in an online state or not; this step can also be replaced by: determining whether the receiving device is in an online state based on the receiving device identification information and the device information list; and if the receiving equipment is in an online state, determining the public network IP of the receiving equipment based on the identification information of the receiving equipment and the equipment information list. Since the receiving device is in the offline state, the device information corresponding to the receiving device in the device information list may be inaccurate, or the receiving device may be abnormal. The purpose of this is to increase the success rate of data transmission.
S340, the sending device determines whether the sending device and the receiving device are in the same local area network or not based on the public network IP of the sending device and the public network IP of the receiving device; if yes, go to S350; if not, go to S380.
S350, the sending device sends a handshake request to the receiving device based on the local area network.
Optionally, when S330 is executed, the cloud server further returns the intranet IP of the receiving device to the sending device. And the sending equipment sends a handshake request to the receiving equipment by utilizing the local area network based on the intranet IP of the receiving equipment.
S360, the sending equipment receives response result information generated based on the handshake request from the receiving equipment; if so, go to S370; otherwise, S380 is executed.
And S370, the sending equipment and the receiving equipment carry out data transmission based on the local area network.
And S380, the sending equipment and the receiving equipment transmit data based on the cloud server.
In practice, it may happen that the parameter configuration in the gateway is improper and incorrect, so that the intranet IP is isolated and data exchange cannot be realized in the case of cascade connection. In this regard, the purpose of S350-S380 is to perform an experiment on whether the sending device and the receiving device can perform data exchange based on the local area network, and finally select whether the sending device and the receiving device are based on the local area network or the cloud server for data transmission based on an experiment result.
The essence of the technical scheme is that the information of the receiving device is perfected by means of the device information list, so that whether the sending device and the receiving device are in the same local area network or not is determined, and the data transmission method can be guaranteed to be successfully realized.
It should be noted that, in the above technical solution, S330 may be replaced by that the sending device acquires the device information list from the cloud server, and determines the identification information of the gateway connected to the receiving device based on the receiving device identification information and the acquired device information list. The essence of this is that it is determined from the device information list which piece of device information in the device information list specifically corresponds to the current receiving device, and this is performed by the transmitting device.
On the basis of the above technical solutions, optionally, before S310, the steps of completing registration and account binding based on controlling the smart home devices in response to a user operation may be further set, so that communication connection between the smart home devices and the cloud server is already achieved; and after the intelligent household equipment is started, the intelligent household equipment information is issued to the cloud server so as to update the equipment information list by the cloud server.
Fig. 6 is a flowchart of a method for implementing S140 in fig. 2. Referring to fig. 6, the method is suitable for data transmission based on a cloud server. The data transmission instruction comprises data to be transmitted, and the method comprises the following steps:
and S141, determining the data type of the data to be transmitted.
The data type of the data to be transmitted may be determined according to the classification criteria. The selection of classification criteria is not limiting in this disclosure.
For example, the data types of the data to be transmitted may be divided into streaming media and non-streaming media according to whether the data to be transmitted is streaming media. Streaming media refers to data that requires high real-time performance, such as video stream data or game data.
Further, the non-streaming media can be divided into control signaling data and non-control signaling data according to whether the non-streaming media is the control signaling data. The control signaling data refers to data for controlling the receiving device to adjust the operating state, such as data for controlling the receiving device to turn off.
Furthermore, non-control signaling data can be divided into high-flow overhead data and low-flow overhead data according to the size of the occupied space of the data. The high-flow overhead data refers to data which occupies a large space and needs to consume a large amount of flow in transmission, such as picture data, audio data, compressed files and the like.
And S142, controlling the sending equipment and the receiving equipment to transmit data based on the cloud server and the data type of the data to be transmitted.
The essence of this step is that a data transmission strategy is selected in a targeted manner based on the data type of the data to be transmitted. Exemplarily, if the data type of the data to be transmitted is streaming media; when executing the step, adjusting the code rate of the streaming media so that the compression ratio of the streaming media after adjustment is higher than that of the streaming media before adjustment; and controlling the sending equipment to transmit the adjusted streaming media to the receiving equipment based on the cloud server. Optionally, adjusting the streaming media bitrate comprises adjusting one or more of a sharpness, a resolution, and a frame rate of the streaming media. Because the transmission stream media consumes more flow, the flow consumption can be reduced by adjusting the code rate of the stream media, so that the operation cost of the cloud server is reduced, and the cost of users is reduced.
Optionally, if the type of the data to be transmitted is high-traffic overhead data in the non-control signaling data, the data to be transmitted is limited from being transmitted between the sending device and the receiving device.
And if the type of the data to be transmitted is control signaling type data, allowing the data to be transmitted between the sending equipment and the receiving equipment.
Due to the fact that data transmission is carried out based on the cloud server, flow overhead is brought, and the operation cost of the cloud server is increased. The essence of the technical scheme is that a data transmission strategy is reasonably selected according to the data type of data to be transmitted, the flow pressure of the cloud server is reduced, and the operation cost of the cloud server is controlled.
On the basis of the above technical solutions, optionally, if data transmission is performed based on a local area network, the type of the data to be transmitted may be set as a streaming media; adjusting the code rate of the streaming media to ensure that the compression ratio of the streaming media after adjustment is lower than that of the streaming media before adjustment; and controlling the sending equipment to transmit the adjusted streaming media to the receiving equipment based on the cloud server. The definition of the streaming media content can be improved and the use experience of the user is improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Fig. 7 is a schematic structural diagram of a data transmission device in an embodiment of the present disclosure. The data transmission device provided by the embodiment of the disclosure can be configured in the smart home equipment. Referring to fig. 7, the data transmission apparatus specifically includes:
an instruction obtaining module 410, configured to obtain a data transmission instruction, where the data transmission instruction includes sending device information and receiving device information;
a determining module 420, configured to determine whether a sending device and a receiving device are in the same local area network based on the sending device information and the receiving device information;
a local area network transmission module 430, configured to control the sending device and the receiving device to perform data transmission based on a local area network if the sending device and the receiving device are in the same local area network;
the cloud transmission module 440 is configured to control the sending device and the receiving device to perform data transmission based on a cloud server if the sending device and the receiving device are not in the same local area network.
Further, the sending device information includes the sending device identification information and/or identification information of a gateway connected to the sending device; and the number of the first and second groups,
the receiving device information includes the receiving device identification information and/or identification information of a gateway connected to the receiving device.
Further, in the data transmission instruction, the sending device information includes identification information of a gateway connected to the sending device, and the receiving device information includes receiving device identification information;
a determining module 420, configured to:
determining identification information of a gateway connected with the receiving device based on the receiving device identification information and a device information list; the device information list is stored in a cloud server and comprises identification information of all devices in communication connection with the cloud server and identification information of gateways connected with the devices;
determining whether the transmitting device and the receiving device are in the same local area network based on the identification information of the gateway connected to the transmitting device and the identification information of the gateway connected to the receiving device.
Further, in the data transmission instruction, the sending device information includes the sending device identification information, and the sending device identification information includes the sending device public network IP; the receiving device information includes receiving device identification information;
a determining module 420, configured to:
determining a public network IP of the receiving equipment based on the identification information of the receiving equipment and an equipment information list; the device information list is stored in a cloud server; the equipment information list comprises identification information of all equipment in communication connection with the cloud server; in the device information list, the identification information of all devices comprises the public network IP of the device;
and determining whether the sending equipment and the receiving equipment are in the same local area network or not based on the sending equipment public network IP and the receiving equipment public network IP.
Further, the device information list also includes information on whether all devices in communication connection with the cloud server are online;
the determining module 420 is further configured to:
determining whether the receiving device is in an online state based on the receiving device identification information and the device information list;
and if the receiving equipment is in an online state, determining whether the sending equipment and the receiving equipment are in the same local area network or not based on the sending equipment information and the receiving equipment information.
Further, the determining module 420 is further configured to: if the sending equipment and the receiving equipment are in the same local area network, controlling the sending equipment to send a handshake request to the receiving equipment based on the local area network;
receiving response result information generated based on the handshake request from the receiving device; judging whether the response result information is received or not;
the local area network transmission module 430 is further configured to control the sending device and the receiving device to perform data transmission based on a local area network if the response result information is received;
the cloud transmission module 440 is further configured to:
and if the response result information is not received, controlling the sending equipment and the receiving equipment to carry out data transmission based on a cloud server.
Further, the device also comprises an equipment information list updating module, which is used for controlling the cloud server to periodically acquire heartbeat packet data of all equipment in communication connection with the cloud server; and updating the device information list based on the heartbeat packet data.
Further, the data transmission instruction comprises data to be transmitted;
the cloud transmission module 440 is configured to determine a data type of the data to be transmitted;
and controlling the sending equipment and the receiving equipment to transmit data based on a cloud server and the data type of the data to be transmitted.
Further, if the data type of the data to be transmitted is streaming media;
cloud transmission module 440, configured to:
adjusting the code rate of the streaming media so that the compression ratio of the streaming media after adjustment is higher than that of the streaming media before adjustment;
and controlling the sending equipment to transmit the adjusted streaming media to the receiving equipment based on a cloud server.
The data transmission device provided in the embodiment of the disclosure can execute the steps executed by the smart home device or the cloud server in the data transmission method provided in the embodiment of the disclosure, and has the execution steps and beneficial effects, which are not described herein again.
Fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. Referring now specifically to fig. 8, a schematic diagram of an electronic device 1000 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device 1000 in the embodiments of the present disclosure may include, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, smart screens, cameras, file storages, electric cookers, microwave ovens, air conditioners, table lamps, sockets, televisions, refrigerators, washing machines, dish washers, and stereos. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, the electronic device 1000 may include a processing means (e.g., a central processing unit, a graphic processor, etc.) 1001 which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)1002 or a program loaded from a storage means 1008 into a Random Access Memory (RAM)1003 to implement the data transmission method of the embodiments as described in the present disclosure. In the RAM 1003, various programs and information necessary for the operation of the electronic apparatus 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
Generally, the following devices may be connected to the I/O interface 1005: input devices 1006 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 1007 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 1008 including, for example, magnetic tape, hard disk, and the like; and a communication device 1009. The communications apparatus 1009 may allow the electronic device 1000 to communicate wirelessly or by wire with other devices to exchange information. While fig. 8 illustrates an electronic device 1000 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart, thereby implementing the data transmission method as described above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 1009, or installed from the storage means 1008, or installed from the ROM 1002. The computer program, when executed by the processing device 1001, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may include an information signal propagated in baseband or as part of a carrier wave, in which computer readable program code is carried. Such a propagated information signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the client and cloud servers may communicate using any known or future developed networking Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital information communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
acquiring a data transmission instruction, wherein the data transmission instruction comprises sending equipment information and receiving equipment information;
determining whether the sending device and the receiving device are in the same local area network or not based on the sending device information and the receiving device information;
if the sending equipment and the receiving equipment are in the same local area network, controlling the sending equipment and the receiving equipment to perform data transmission based on the local area network;
and if the sending equipment and the receiving equipment are not in the same local area network, controlling the sending equipment and the receiving equipment to perform data transmission based on a cloud server.
Optionally, when the one or more programs are executed by the electronic device, the electronic device may further perform other steps described in the above embodiments.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or cloud server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. 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 disclosure. Thus, the present disclosure 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 (12)

1. A method of data transmission, comprising:
acquiring a data transmission instruction, wherein the data transmission instruction comprises sending equipment information and receiving equipment information;
determining whether the sending device and the receiving device are in the same local area network or not based on the sending device information and the receiving device information;
if the sending equipment and the receiving equipment are in the same local area network, controlling the sending equipment and the receiving equipment to perform data transmission based on the local area network;
and if the sending equipment and the receiving equipment are not in the same local area network, controlling the sending equipment and the receiving equipment to perform data transmission based on a cloud server.
2. The method of claim 1,
the sending equipment information comprises the sending equipment identification information and/or identification information of a gateway connected with the sending equipment; and the number of the first and second groups,
the receiving device information includes the receiving device identification information and/or identification information of a gateway connected to the receiving device.
3. The method according to claim 2, wherein in the data transmission instruction, the sending device information includes identification information of a gateway connected to the sending device, and the receiving device information includes receiving device identification information;
the determining whether the sending device and the receiving device are in the same local area network based on the sending device information and the receiving device information includes:
determining identification information of a gateway connected with the receiving device based on the receiving device identification information and a device information list; the device information list is stored in a cloud server; the device information list comprises identification information of all devices in communication connection with the cloud server and identification information of gateways connected with the devices;
determining whether the transmitting device and the receiving device are in the same local area network based on the identification information of the gateway connected to the transmitting device and the identification information of the gateway connected to the receiving device.
4. The method according to claim 2, wherein in the data transmission instruction, the sending device information includes the sending device identification information, and the sending device identification information includes the sending device public network IP; the receiving device information includes receiving device identification information;
the determining whether the sending device and the receiving device are in the same local area network based on the sending device information and the receiving device information includes:
determining a public network IP of the receiving equipment based on the identification information of the receiving equipment and an equipment information list; the device information list is stored in a cloud server; the equipment information list comprises identification information of all equipment in communication connection with the cloud server; in the device information list, the identification information of all devices comprises the public network IP of the device;
and determining whether the sending equipment and the receiving equipment are in the same local area network or not based on the sending equipment public network IP and the receiving equipment public network IP.
5. The method according to claim 3 or 4, wherein the device information list further includes information on whether all devices communicatively connected to the cloud server are online;
the determining whether the sending device and the receiving device are in the same local area network based on the sending device information and the receiving device information includes:
determining whether the receiving device is in an online state based on the receiving device identification information and the device information list;
and if the receiving equipment is in an online state, determining whether the sending equipment and the receiving equipment are in the same local area network or not based on the sending equipment information and the receiving equipment information.
6. The method according to claim 4, wherein if the sending device and the receiving device are in the same local area network, controlling the sending device and the receiving device to perform data transmission based on the local area network comprises:
controlling the sending device to send a handshake request to the receiving device based on the local area network;
receiving response result information generated based on the handshake request from the receiving device;
if the response result information is received, controlling the sending equipment and the receiving equipment to carry out data transmission based on a local area network;
and if the response result information is not received, controlling the sending equipment and the receiving equipment to carry out data transmission based on a cloud server.
7. The method of claim 3 or 4, further comprising:
the cloud server periodically acquires heartbeat packet data of all equipment in communication connection with the cloud server; and updating the device information list based on the heartbeat packet data.
8. The method of claim 1, wherein the data transmission instruction comprises data to be transmitted;
the control the sending equipment and the receiving equipment are based on a cloud server, and data transmission is carried out, and the control method comprises the following steps:
determining the data type of the data to be transmitted;
and controlling the sending equipment and the receiving equipment to transmit data based on a cloud server and the data type of the data to be transmitted.
9. The method of claim 8, wherein if the data type of the data to be transmitted is streaming media; the control of the sending device and the receiving device performs data transmission based on a cloud server and the data type of the data to be transmitted, and includes:
adjusting the code rate of the streaming media so that the compression ratio of the streaming media after adjustment is higher than that of the streaming media before adjustment;
and controlling the sending equipment to transmit the adjusted streaming media to the receiving equipment based on a cloud server.
10. A data transmission apparatus, comprising:
the instruction acquisition module is used for acquiring a data transmission instruction, and the data transmission instruction comprises sending equipment information and receiving equipment information;
the judging module is used for determining whether the sending equipment and the receiving equipment are in the same local area network or not based on the sending equipment information and the receiving equipment information;
the local area network transmission module is used for controlling the sending equipment and the receiving equipment to carry out data transmission based on a local area network if the sending equipment and the receiving equipment are in the same local area network;
and the cloud transmission module is used for controlling the sending equipment and the receiving equipment to perform data transmission based on a cloud server if the sending equipment and the receiving equipment are not in the same local area network.
11. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-9.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-9.
CN202110437893.6A 2021-04-22 2021-04-22 Data transmission method and device, electronic equipment and storage medium Pending CN113114778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110437893.6A CN113114778A (en) 2021-04-22 2021-04-22 Data transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110437893.6A CN113114778A (en) 2021-04-22 2021-04-22 Data transmission method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113114778A true CN113114778A (en) 2021-07-13

Family

ID=76719771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110437893.6A Pending CN113114778A (en) 2021-04-22 2021-04-22 Data transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113114778A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055458A (en) * 2023-03-31 2023-05-02 睿云联(厦门)网络通讯技术有限公司 Audio and video call method, equipment and medium between cloud platform equipment of Internet of things
CN116866400A (en) * 2023-08-01 2023-10-10 广东金朋科技有限公司 Device control method
WO2024027713A1 (en) * 2022-08-05 2024-02-08 华为技术有限公司 Scenario configuration method, electronic device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170105171A1 (en) * 2015-10-07 2017-04-13 Mcafee, Inc. Multilayer access control for connected devices
CN109189698A (en) * 2018-08-10 2019-01-11 深圳绿米联创科技有限公司 Apparatus control method, device and Internet of things system
CN111541593A (en) * 2020-04-16 2020-08-14 杭州鸿雁电器有限公司 Home management method, home management system and computer readable storage medium
CN112583907A (en) * 2020-12-04 2021-03-30 深圳Tcl新技术有限公司 Connection method and device, smart home equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170105171A1 (en) * 2015-10-07 2017-04-13 Mcafee, Inc. Multilayer access control for connected devices
CN109189698A (en) * 2018-08-10 2019-01-11 深圳绿米联创科技有限公司 Apparatus control method, device and Internet of things system
CN111541593A (en) * 2020-04-16 2020-08-14 杭州鸿雁电器有限公司 Home management method, home management system and computer readable storage medium
CN112583907A (en) * 2020-12-04 2021-03-30 深圳Tcl新技术有限公司 Connection method and device, smart home equipment and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024027713A1 (en) * 2022-08-05 2024-02-08 华为技术有限公司 Scenario configuration method, electronic device and system
CN116055458A (en) * 2023-03-31 2023-05-02 睿云联(厦门)网络通讯技术有限公司 Audio and video call method, equipment and medium between cloud platform equipment of Internet of things
CN116866400A (en) * 2023-08-01 2023-10-10 广东金朋科技有限公司 Device control method
CN116866400B (en) * 2023-08-01 2024-03-08 广东金朋科技有限公司 Device control method

Similar Documents

Publication Publication Date Title
WO2020093500A1 (en) Intelligent scheduling method, terminal device, edge node cluster and intelligent scheduling system
CN107231606B (en) WiFi network access method, intelligent hardware equipment and electronic terminal
US11395213B2 (en) Systems and methods for implementing multiple band service discovery
CN113114778A (en) Data transmission method and device, electronic equipment and storage medium
US10523794B2 (en) Method and apparatus for managing multipath transmission control protocol
CN110266810B (en) Message receiving method, device and storage medium based on MQTT protocol
CN112751699B (en) OTA upgrading and upgrading management method, equipment, network and storage medium
CN105847168B (en) data transmission method, network server, user terminal and system
CN107979534B (en) Method implemented in a device connected to a user premises equipment and corresponding device
US20200169774A1 (en) Control method and device
JP7063985B2 (en) Network support for uplink streaming
CN111586601A (en) Network auxiliary information providing method and related equipment
CN107094102B (en) Information transmission method and equipment
CN103856374A (en) Data transmission method, terminal and home interconnected system
US9294563B2 (en) Apparatus and method for level-based self-adjusting peer-to-peer media streaming
WO2017219852A1 (en) Data information sharing method and apparatus, and terminal
WO2019041371A1 (en) Internet of things number-of-connections-based router switching method and device
CN111586600A (en) Network auxiliary information providing method and related equipment
CN112738283B (en) Signaling transmission method, device, equipment and storage medium
US20190098351A1 (en) Method for managing the access right to an item of digital content
JP2021527351A (en) Network-controlled uplink media transmission for collaborative media production in scenarios with limited network capacity
US20170187763A1 (en) Streaming service system, streaming service method and controller thereof
CN113507750B (en) Terminal control method and device, terminal and storage medium
CN112585979B (en) Method and system for network controlled media upload of stored content
WO2020164950A1 (en) Distributing events indicative of device state changes

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210713

RJ01 Rejection of invention patent application after publication