CN115632897A - Communication control method and related device - Google Patents
Communication control method and related device Download PDFInfo
- Publication number
- CN115632897A CN115632897A CN202211261668.2A CN202211261668A CN115632897A CN 115632897 A CN115632897 A CN 115632897A CN 202211261668 A CN202211261668 A CN 202211261668A CN 115632897 A CN115632897 A CN 115632897A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- terminal equipment
- terminal
- binding
- equipment
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 82
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000005540 biological transmission Effects 0.000 claims description 72
- 238000004590 computer program Methods 0.000 claims description 14
- 230000015654 memory Effects 0.000 claims description 13
- 238000012795 verification Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 description 10
- 238000013441 quality evaluation Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- QVFWZNCVPCJQOP-UHFFFAOYSA-N chloralodol Chemical compound CC(O)(C)CC(C)OC(O)C(Cl)(Cl)Cl QVFWZNCVPCJQOP-UHFFFAOYSA-N 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000001419 dependent effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 238000010408 sweeping Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2807—Exchanging configuration information on appliance services in a home automation network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application discloses a communication control method and a related device, which are applied to a server, wherein the method comprises the following steps: receiving a sub-device binding request sent by a first terminal device, wherein the sub-device binding request is used for binding a second terminal device as a sub-device of the first terminal device; establishing communication connection between the first terminal equipment and the second terminal equipment; sending a binding instruction to the first terminal equipment through an MQTT communication protocol, and establishing an affiliation binding relationship between the first terminal equipment and the second terminal equipment through the first terminal equipment; receiving a binding success message fed back by the first terminal device; verifying the validity of the second terminal equipment; and when the validity check of the second terminal equipment passes, determining that the subordinate binding relationship is legal. By adopting the method and the device, the intelligence of the smart home in the scene can be improved.
Description
Technical Field
The application relates to the technical field of electronics and the technical field of internet of things, in particular to a communication control method and a related device.
Background
With the development of society and science and technology, intelligent home is derived, the intelligent home serves as the sunward industry, and manufacturers of many intelligent homes accelerate the pace of developing the intelligent home products. With the rapid advance of technologies such as big data and artificial intelligence, smart homes play an increasingly important role in life.
Two big characteristics of intelligence house are exactly networking and intellectuality, but most intelligent house products all are independent individuality on the existing market, equipment expansibility is low, even the equipment has own corresponding subset, the subset also can only be used by this equipment, can not adapt to other equipment, compatibility is poor, the subset breaks away from equipment and just can not the exclusive use, with the master equipment has very strong dependence, bind firmly nature, as long as there is an equipment unable normal use, another also can receive the influence, thereby, the intelligence under the intelligent house application scene has been reduced, therefore, how to promote the intelligent problem of intelligence under the intelligent house scene urgent need to be solved.
Disclosure of Invention
The embodiment of the application provides a communication control method and a related device, which can improve the intelligence of an intelligent home scene.
In a first aspect, an embodiment of the present application provides a communication control method, which is applied to a server, and the method includes:
receiving a sub-device binding request sent by a first terminal device, wherein the sub-device binding request is used for binding a second terminal device as a sub-device of the first terminal device; establishing communication connection between the first terminal equipment and the second terminal equipment;
sending a binding instruction to the first terminal equipment through an MQTT communication protocol, and establishing an affiliation binding relationship between the first terminal equipment and the second terminal equipment through the first terminal equipment;
receiving a binding success message fed back by the first terminal device;
verifying the validity of the second terminal equipment;
and when the validity check of the second terminal equipment passes, determining that the subordinate binding relationship is legal.
In a second aspect, an embodiment of the present application provides a communication control apparatus, which is applied to a server, and the apparatus includes: a receiving unit, a transmitting unit, a checking unit and a determining unit, wherein,
the receiving unit is configured to receive a sub-device binding request sent by a first terminal device, where the sub-device binding request is used to bind a second terminal device as a sub-device of the first terminal device; establishing communication connection between the first terminal equipment and the second terminal equipment;
the sending unit is used for sending a binding instruction to the first terminal equipment through an MQTT communication protocol and establishing an affiliation binding relationship between the first terminal equipment and the second terminal equipment through the first terminal equipment;
the receiving unit is further configured to receive a binding success message fed back by the first terminal device;
the verification unit is used for verifying the validity of the second terminal equipment;
the determining unit is configured to determine that the subordination relationship is legal when the validity check of the second terminal device passes.
In a third aspect, an embodiment of the present application provides a server, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that the communication control method and the related apparatus described in the embodiments of the present application are applied to a server, and receive a sub-device binding request sent by a first terminal device, where the sub-device binding request is used to bind a second terminal device as a sub-device of the first terminal device; the method comprises the steps of establishing communication connection between first terminal equipment and second terminal equipment, sending a binding instruction to the first terminal equipment through an MQTT communication protocol, establishing a subordinate binding relationship between the first terminal equipment and the second terminal equipment through the first terminal equipment, receiving a binding success message fed back by the first terminal equipment, checking the legality of the second terminal equipment, determining that the subordinate binding relationship is legal when the legality of the second terminal equipment is checked, establishing a subordinate binding relationship between main equipment and sub-equipment, enabling the equipment to be in a binding relationship with the other sub-equipment, realizing combined use, namely combined use between the equipment, realizing function expansion, and further improving intelligence under an intelligent home scene.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of an intelligent home system for implementing a communication control method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a communication control method according to an embodiment of the present application;
fig. 3 is a schematic partial demonstration diagram of an intelligent home system provided in an embodiment of the present application;
fig. 4 is another partial schematic illustration of an intelligent home system according to an embodiment of the present application;
fig. 5 is another partial schematic illustration of an intelligent home system provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a server provided in an embodiment of the present application;
fig. 7 is a block diagram of functional units of a communication control apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, 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 obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein may be combined with other embodiments.
In this embodiment, the terminal device may include at least one of the following: may include, but is not limited to: examples of suitable processing devices include, but are not limited to, smart phones, tablets, smart robots, in-vehicle devices, wearable devices, smart cars, smart home devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), mobile Stations (MS), terminal equipment (terminal device), and the like.
Wherein, smart home devices can include at least one of the following: intelligent TV set, intelligent doorbell, intelligent electric rice cooker, intelligent refrigerator, intelligent washing machine, intelligent treadmill, intelligent door lock, intelligent air conditioner, intelligent dish washer, intelligent microwave oven, intelligent sofa, intelligent massage armchair, intelligent (window) curtain, intelligent oven, intelligent camera, intelligent gateway, intelligent router, intelligent flush mounting plate, intelligence robot etc. of sweeping the floor do not restrict here.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an intelligent home system for implementing a communication control method according to an embodiment of the present application, where as shown in the figure, the intelligent home system may include at least one server and multiple terminal devices. The server may include a cloud server or an edge server.
Based on the server in the smart home system described in fig. 1, the following functions may be implemented:
receiving a sub-device binding request sent by a first terminal device, wherein the sub-device binding request is used for binding a second terminal device as a sub-device of the first terminal device; establishing communication connection between the first terminal equipment and the second terminal equipment;
sending a binding instruction to the first terminal equipment through an MQTT communication protocol, and establishing an affiliation binding relationship between the first terminal equipment and the second terminal equipment through the first terminal equipment;
receiving a binding success message fed back by the first terminal device;
verifying the validity of the second terminal equipment;
and when the validity check of the second terminal equipment passes, determining that the subordination relation is legal.
Optionally, the second terminal device is not directly connected to the server, and may further include the following steps:
and sending a target instruction to the first terminal device, and forwarding the target instruction to the second terminal device through the first terminal device so as to control the second terminal device to execute the target instruction.
Optionally, the method may further include the following steps:
detecting whether the connection between the first terminal device and the second terminal device is lost;
when the connection between the first terminal device and the second terminal device is lost, sending the target instruction to the second terminal device;
and when the connection between the first terminal device and the second terminal device is not lost, executing the step of sending the target instruction to the first terminal device.
Optionally, when the first terminal device has multiple sub-devices, the method may further include the following steps:
and sending a first message to the first terminal device, indicating the first terminal device to determine the forwarding priorities of the plurality of sub-devices, and forwarding the first message according to the forwarding priorities.
Optionally, the method may further include the following steps:
when communication connection is established between third terminal equipment and the server, whether the third terminal equipment has a binding main equipment is detected;
when the third terminal equipment does not have the binding master equipment, sending a second message to the third terminal equipment;
and receiving a feedback message of the third terminal equipment aiming at the second message.
Optionally, the method may further include the following steps:
the first terminal equipment allows one or more sub-equipment to be bound, and the second terminal equipment allows the plurality of main equipment to be bound; when the second terminal device is bound by the plurality of master devices, the plurality of master devices are devices of the same type.
Optionally, the directly connecting the second terminal device to the server may further include the following steps:
determining data to be transmitted;
determining a first data transmission link and a second data transmission link, wherein the first data transmission link is a data transmission link between the server and the second terminal equipment through the first terminal equipment, and the second data transmission link is a data transmission link between the server and the second terminal equipment;
determining a first channel parameter of the first data transmission link, determining a second channel parameter of the second data transmission link;
dividing the data to be transmitted into first data to be transmitted and second data to be transmitted according to the first channel parameter and the second channel parameter;
and transmitting the first data to be transmitted through the first data transmission link and transmitting the second data to be transmitted through the second data transmission link.
Referring to fig. 2, fig. 2 is a schematic flowchart of a communication control method provided in an embodiment of the present application, and as shown in the drawing, the communication control method is applied to a server in an intelligent home system shown in fig. 1, and the communication control method may include:
201. receiving a sub-device binding request sent by a first terminal device, wherein the sub-device binding request is used for binding a second terminal device as a sub-device of the first terminal device; and establishing communication connection between the first terminal equipment and the second terminal equipment.
In the embodiment of the application, the server can establish communication connection with the first terminal device in a direct connection mode, and communication connection can also be established between the first terminal device and the second terminal device. The first terminal device and the second terminal device can establish communication connection through at least one of the following communication modes: a lora communication mode, an NB-IOT communication mode, a ZigBee communication mode, a WiFi communication mode, a BLE 5 communication mode, a sub1G communication mode, an infrared communication mode, a mobile communication mode (such as 2G, 3G, 4G, 5G, 6G, etc.), and the like, but are not limited thereto.
For example, the device a and the device B may communicate through lora, NB-IOT, zigBee, wiFi, BLE 5, sub1g, and other communication protocols. For example, taking an intelligent lock and an electronic doorbell as examples, a user can press a doorbell button of the intelligent lock to further notify the electronic doorbell.
In a specific implementation, the server may receive a binding sub-device request sent by the first terminal device, where the binding sub-device request is used to bind the second terminal device as a sub-device of the first terminal device, that is, after the binding is successful, the first terminal device is a main device of the second terminal device, and the second terminal device is a sub-device of the first terminal device.
202. And sending a binding instruction to the first terminal equipment through an MQTT communication protocol, and establishing an affiliation binding relationship between the first terminal equipment and the second terminal equipment through the first terminal equipment.
In this embodiment of the application, the server may send a binding instruction to the first terminal device through a Message Queue Telemetry Transport (MQTT) communication protocol, and establish an dependent binding relationship between the first terminal device and the second terminal device through the first terminal device, that is, after receiving the binding instruction, the first terminal device may execute the binding instruction to establish the dependent binding relationship between the first terminal device and the second terminal device.
203. And receiving the binding success message fed back by the first terminal equipment.
In a specific implementation, after the first terminal device establishes the dependent binding relationship with the second terminal device, the server may feed back a binding success message to the server, and the server may receive the binding success message fed back by the first terminal device.
204. And verifying the legality of the second terminal equipment.
In specific implementation, in this embodiment of the present application, the server may check validity of the second terminal device, for example, may obtain a device identifier of the second terminal device, detect whether the device identifier exists in a preset device identifier set, and when the device identifier set exists in a preset device identifier set, indicate that the second terminal device is valid, where the preset device identifier set may include at least one device identifier, and the device identifier may include at least one of the following: an Electronic Serial Number (ESN), a physical address, an IP address, a device name, a device number, and the like, which are not limited herein.
Certainly, in this embodiment of the application, the server may also check the validity of the second terminal device through the first terminal device, for example, a check instruction may be sent to the first terminal device, where the check instruction is used to check the validity of the second terminal device, and after receiving the check instruction, the first terminal device may check the validity of the second terminal device, and feed back a check result to the server. For example, the first terminal device may obtain a device identifier of the second terminal device, detect whether the device identifier exists in a preset device identifier set, and when the device identifier set exists in a preset device identifier set, it indicates that the second terminal device is legal, where the preset device identifier set may include at least one device identifier, and the device identifier may include at least one of the following: an Electronic Serial Number (ESN), a physical address, an IP address, a device name, a device number, etc., without limitation.
205. And when the validity check of the second terminal equipment passes, determining that the subordinate binding relationship is legal.
In the implementation of the application, when the validity check of the second terminal device passes, the subordinate binding relationship can be determined to be legal, otherwise, when the validity check of the second terminal device fails, the subordinate binding relationship can be determined to be illegal. Furthermore, the device can be in a binding relationship with another sub-device to realize combined use. The combined use of the devices realizes the expansion of functions.
For example, in a specific implementation, a user may initiate a request for binding a sub-device through an APP of a device a, a server sends a binding instruction to the device a through an MQTT communication protocol, assuming that the device a is a master device and the device B is a sub-device, the device a and the device B may establish a communication connection through lora, NB-IOT, zigBee, wiFi, BLE 5, sub1g, and the like, the device a replies a binding success message to the server based on the MQTT communication protocol, the server checks the validity of the device B, and after the validity check is successful, establishes a subordinate binding relationship between the device a and the device B, thereby implementing extension of functions, and the device B may report related information of the device B to the server based on the MQTT communication protocol, thereby implementing intellectualization.
For example, the extensibility of the devices in the current market is low, for example, the sound of a horn of a smart lock is not large enough, and under the condition that a house is large, a guest is probably unknown to visit, but at present, the doorbell is a single device, the doorbell does not sound when the lock is pressed, the lock is a guarantee for personal safety and property safety, the user is informed at the first time when the visitor or other alarms are received, and the lock can be regarded as a master device, the doorbell device is regarded as a sub-device, and the doorbell sound can be realized when the lock is pressed, so that the prompt efficiency is improved.
Optionally, the second terminal device is not directly connected to the server, and may further include the following steps:
and sending a target instruction to the first terminal device, and forwarding the target instruction to the second terminal device through the first terminal device so as to control the second terminal device to execute the target instruction.
In a specific implementation, when the second terminal device is not directly connected to the server, that is, the second terminal device and the server cannot communicate directly. The target instruction may be any operation instruction.
Specifically, the server may send the target instruction to the first terminal device, and forward the target instruction to the second terminal device through the first terminal device, so as to control the second terminal device to execute the target instruction.
Specifically, as shown in fig. 3, if the device B cannot directly connect to the server, the server may issue an instruction to the device a connected to the server, and the device a forwards the instruction to the device B, so as to control the device B, otherwise, the device B may also transmit a message to the server through the device a.
Optionally, the method may further include the following steps:
a1, detecting whether the connection between the first terminal device and the second terminal device is lost;
a2, when the connection between the first terminal device and the second terminal device is lost, sending the target instruction to the second terminal device;
and A3, when the connection between the first terminal device and the second terminal device is not lost, executing the step of sending the target instruction to the first terminal device.
In the embodiment of the application, whether the connection between the first terminal device and the second terminal device is lost is detected, when the connection between the first terminal device and the second terminal device is lost, the communication connection between the server and the second terminal device can be established, and then, the target instruction can be directly sent to the second terminal device, when the connection between the first terminal device and the second terminal device is not lost, the step of sending the target instruction to the first terminal device is executed, of course, when the connection between the first terminal device and the second terminal device is lost, whether other main devices exist in the second terminal device can also be detected, and when a reference main device exists in the second terminal device, the target instruction can be sent to the reference main device, and then the reference main device forwards the target instruction to the second terminal device, wherein the reference main device is a terminal device different from the first terminal device. When the connection between the sub-equipment and the main equipment is lost, the server can directly send a command to the sub-equipment, namely, the sub-equipment can be independently used, and the sub-equipment supports independent use, so that the equipment dependency is reduced.
Optionally, when the first terminal device has multiple sub-devices, the method further includes:
and sending a first message to the first terminal device, indicating the first terminal device to determine the forwarding priorities of the plurality of sub-devices, and forwarding the first message according to the forwarding priorities.
In this embodiment of the application, the first terminal device may have a plurality of sub devices, and when the first terminal device has a plurality of sub devices, the server sends the first message to the first terminal device, and may instruct the first terminal device to determine forwarding priorities of the plurality of sub devices, and forward the first message according to the forwarding priorities, where the forwarding priorities may be related to distances between the respective sub devices and the first terminal device, for example, the closer the distances are, the higher the forwarding priorities are, or the forwarding priorities may also be related to channel qualities of distance communication links between the respective sub devices and the first terminal device, for example, the better the channel qualities are, the higher the forwarding priorities are.
In the embodiment of the application, the main device can be bound with a plurality of sub-devices, and when the main device forwards the message, the main device can preferentially inform the sub-device closest to the main device so as to achieve near field communication.
Optionally, the method may further include the following steps:
b1, when communication connection is established between third terminal equipment and the server, whether the third terminal equipment has a binding main equipment or not is detected;
b2, when the third terminal equipment does not have the binding master equipment, sending a second message to the third terminal equipment;
and B3, receiving a feedback message of the third terminal equipment aiming at the second message.
In this embodiment of the application, when a communication connection is established between the third terminal device and the server, the server may detect whether the third terminal device has a binding master device, and when the third terminal device does not have the binding master device, that is, when the third terminal device does not have the binding master device, the third terminal device may be used as a single independent device for normal use, and further, send the second message to the third terminal device, receive a feedback message of the third terminal device for the second message, that is, the device function may be further extended, that is, the sub-device supports independent use, and the sub-device may be used as a device alone, so that the dependency on the master device may be weakened.
Optionally, the method may further include the following steps:
the first terminal device allows one or more sub-devices to be bound, and the second terminal device allows a plurality of main devices to be bound; when the second terminal device is bound by the plurality of master devices, the plurality of master devices are devices of the same type.
In this embodiment of the present application, a first terminal device may allow one or more sub-devices to be bound, and a second terminal device may also allow multiple master devices to be bound, where, of course, when the second terminal device is bound by multiple master devices, the multiple master devices are devices of the same type, and the same type may be understood as devices having the same configuration or the same function, for example, two terminal devices of the same type may be bound as slave devices.
In the embodiment of the present application, as shown in fig. 4, when the device B does not bind to the master device, the device B may also be used as a single independent device for normal use. The device B can establish the connection of the server through the MQTT communication protocol, receive the message sent by the server and receive and reply the instruction.
In the embodiment of the application, the binding of the sub-devices may not be limited to the main devices of the designated type, for example, the device B may be bound by the device a and may also be bound by the device C, at this time, the device a and the device C may both be the main devices, and the device a and the device C are the same type of devices, that is, the sub-devices may support the binding by the devices other than the main devices, so that the compatibility of the devices is improved, and the intelligence of the smart home system is further improved.
Optionally, the second terminal device directly connecting to the server, further including the following steps:
c1, determining data to be transmitted;
c2, determining a first data transmission link and a second data transmission link, wherein the first data transmission link is a data transmission link between the server and the second terminal equipment through the first terminal equipment, and the second data transmission link is a data transmission link between the server and the second terminal equipment;
c3, determining a first channel parameter of the first data transmission link, and determining a second channel parameter of the second data transmission link;
c4, dividing the data to be transmitted into first data to be transmitted and second data to be transmitted according to the first channel parameter and the second channel parameter;
and C5, transmitting the first data to be transmitted through the first data transmission link, and transmitting the second data to be transmitted through the second data transmission link.
In this embodiment of the application, the data to be transmitted may include at least one of the following: video data, audio data, text data, image data, upgrade data packets, instruction data, and the like, without limitation.
In specific implementation, the server may determine to-be-transmitted data, may also determine a first data transmission link and a second data transmission link, where the first data transmission link is a data transmission link from the server to the second terminal device via the first terminal device, and the second data transmission link is a data transmission link between the server and the second terminal device, and may also determine a first channel parameter of the first data transmission link, and determine a second channel parameter of the second data transmission link. In this embodiment, the channel parameter may include at least one of the following: signal-to-noise ratio, channel delay, packet loss rate, channel transmission rate, bit error rate, etc., which are not limited herein. As shown in fig. 5, it is assumed that there may be one data transmission link between the server and the device a and the device B, and there may be another data transmission link between the server and the device B.
Further, the data to be transmitted may be divided into the first data to be transmitted and the second data to be transmitted according to the first channel parameter and the second channel parameter, specifically, at least one channel parameter may be adopted to perform channel quality evaluation on the two data transmission links respectively to obtain at least one channel quality evaluation value, and then at least one channel quality evaluation value is subjected to weighted operation to obtain respective channel quality evaluation values, for example, the first data transmission link corresponds to a first channel quality evaluation value, and the second data transmission link corresponds to a second channel quality evaluation value, so that a share corresponding to the first data transmission link = the first channel quality evaluation value/(the first channel quality evaluation value + the second channel quality evaluation value), and then the data to be transmitted is divided based on 2 shares to obtain the first data to be transmitted and the second data to be transmitted, and finally, the first data to be transmitted may be transmitted through the first data transmission link, and the second data to be transmitted through the second data transmission link, so that when the data transmission is applied, the two data transmission links may be established, and the two data transmission links may be used to achieve synchronous transmission efficiency improvement of the data transmission.
Referring to fig. 6 in keeping with the above embodiments, fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application, where the server includes a processor, a memory, a communication interface, and one or more programs, and the one or more programs are stored in the memory and configured to be executed by the processor, and in an embodiment of the present application, the programs include instructions for:
receiving a sub-device binding request sent by a first terminal device, wherein the sub-device binding request is used for binding a second terminal device as a sub-device of the first terminal device; establishing communication connection between the first terminal equipment and the second terminal equipment;
sending a binding instruction to the first terminal equipment through an MQTT communication protocol, and establishing an affiliation binding relationship between the first terminal equipment and the second terminal equipment through the first terminal equipment;
receiving a binding success message fed back by the first terminal device;
verifying the validity of the second terminal equipment;
and when the validity check of the second terminal equipment passes, determining that the subordinate binding relationship is legal.
Optionally, the second terminal device is not directly connected to the server, and the program further includes instructions for executing the following steps:
and sending a target instruction to the first terminal device, and forwarding the target instruction to the second terminal device through the first terminal device so as to control the second terminal device to execute the target instruction.
Optionally, the program further includes instructions for performing the following steps:
detecting whether the connection between the first terminal device and the second terminal device is lost;
when the connection between the first terminal device and the second terminal device is lost, sending the target instruction to the second terminal device;
and when the connection between the first terminal device and the second terminal device is not lost, executing the step of sending the target instruction to the first terminal device.
Optionally, when there are multiple pieces of sub-equipment in the first terminal equipment, the program further includes instructions for executing the following steps:
and sending a first message to the first terminal device, indicating the first terminal device to determine the forwarding priorities of the plurality of sub-devices, and forwarding the first message according to the forwarding priorities.
Optionally, the program further includes instructions for performing the following steps:
when communication connection is established between third terminal equipment and the server, whether the third terminal equipment has a binding main equipment is detected;
when the third terminal equipment does not have the binding master equipment, sending a second message to the third terminal equipment;
and receiving a feedback message of the third terminal equipment aiming at the second message.
Optionally, the program further includes instructions for performing the following steps:
the first terminal device allows one or more sub-devices to be bound, and the second terminal device allows a plurality of main devices to be bound; when the second terminal device is bound by the plurality of master devices, the plurality of master devices are devices of the same type.
Optionally, the second terminal device is directly connected to the server, and the program further includes instructions for executing the following steps:
determining data to be transmitted;
determining a first data transmission link and a second data transmission link, wherein the first data transmission link is a data transmission link between the server and the second terminal equipment through the first terminal equipment, and the second data transmission link is a data transmission link between the server and the second terminal equipment;
determining a first channel parameter of the first data transmission link, determining a second channel parameter of the second data transmission link;
dividing the data to be transmitted into first data to be transmitted and second data to be transmitted according to the first channel parameter and the second channel parameter;
and transmitting the first data to be transmitted through the first data transmission link, and transmitting the second data to be transmitted through the second data transmission link.
It can be seen that, the server described in the embodiment of the present application receives a request for binding a child device sent by a first terminal device, where the request for binding the child device is used to bind a second terminal device as a child device of the first terminal device; the method comprises the steps that communication connection is established between first terminal equipment and second terminal equipment, a binding instruction is sent to the first terminal equipment through an MQTT communication protocol, a subordinate binding relation between the first terminal equipment and the second terminal equipment is established through the first terminal equipment, a binding success message fed back by the first terminal equipment is received, the legality of the second terminal equipment is verified, when the legality of the second terminal equipment is verified, the subordinate binding relation is determined to be legal, the subordinate binding relation between main equipment and sub-equipment can be established, the equipment can be in a binding relation with another sub-equipment, combined use is achieved, namely the equipment is combined use, functions are expanded, and further the intelligence under an intelligent home scene is improved.
Fig. 7 is a block diagram showing functional units of a communication control apparatus 700 according to an embodiment of the present application. The communication control device 700 is applied to a server, and the device 700 comprises: a receiving unit 701, a transmitting unit 702, a checking unit 703 and a determining unit 704, wherein,
the receiving unit 701 is configured to receive a sub-device binding request sent by a first terminal device, where the sub-device binding request is used to bind a second terminal device as a sub-device of the first terminal device; establishing communication connection between the first terminal equipment and the second terminal equipment;
the sending unit 702 is configured to send a binding instruction to the first terminal device through an MQTT communication protocol, and establish an affiliation binding relationship between the first terminal device and the second terminal device through the first terminal device;
the receiving unit 701 is further configured to receive a binding success message fed back by the first terminal device;
the verifying unit 703 is configured to verify the validity of the second terminal device;
the determining unit 704 is configured to determine that the subordination relationship is legal when the validity check of the second terminal device passes.
Optionally, the second terminal device is not directly connected to the server, and the apparatus 700 is further specifically configured to:
and sending a target instruction to the first terminal device, and forwarding the target instruction to the second terminal device through the first terminal device so as to control the second terminal device to execute the target instruction.
Optionally, the apparatus 700 is further specifically configured to:
detecting whether the connection between the first terminal device and the second terminal device is lost;
when the connection between the first terminal device and the second terminal device is lost, sending the target instruction to the second terminal device;
and when the connection between the first terminal device and the second terminal device is not lost, executing the step of sending the target instruction to the first terminal device.
Optionally, when there are multiple pieces of sub-equipment in the first terminal equipment, the apparatus 700 is further specifically configured to:
and sending a first message to the first terminal device, indicating the first terminal device to determine the forwarding priorities of the plurality of sub-devices, and forwarding the first message according to the forwarding priorities.
Optionally, the apparatus 700 is further specifically configured to:
when communication connection is established between third terminal equipment and the server, whether the third terminal equipment has a binding main equipment is detected;
when the third terminal equipment does not have the binding master equipment, sending a second message to the third terminal equipment;
and receiving a feedback message of the third terminal equipment aiming at the second message.
Optionally, the apparatus 700 is further specifically configured to:
the first terminal device allows one or more sub-devices to be bound, and the second terminal device allows a plurality of main devices to be bound; when the second terminal device is bound by the plurality of master devices, the plurality of master devices are devices of the same type.
Optionally, the second terminal device is directly connected to the server, and the apparatus 700 is further specifically configured to:
determining data to be transmitted;
determining a first data transmission link and a second data transmission link, wherein the first data transmission link is a data transmission link between the server and the second terminal equipment through the first terminal equipment, and the second data transmission link is a data transmission link between the server and the second terminal equipment;
determining a first channel parameter of the first data transmission link, determining a second channel parameter of the second data transmission link;
dividing the data to be transmitted into first data to be transmitted and second data to be transmitted according to the first channel parameter and the second channel parameter;
and transmitting the first data to be transmitted through the first data transmission link and transmitting the second data to be transmitted through the second data transmission link.
It can be seen that the communication control apparatus described in this embodiment of the present application is applied to a server, and receives a request for binding a child device sent by a first terminal device, where the request for binding the child device is used to bind a second terminal device as a child device of the first terminal device; the method comprises the steps of establishing communication connection between first terminal equipment and second terminal equipment, sending a binding instruction to the first terminal equipment through an MQTT communication protocol, establishing a subordinate binding relationship between the first terminal equipment and the second terminal equipment through the first terminal equipment, receiving a binding success message fed back by the first terminal equipment, checking the legality of the second terminal equipment, determining that the subordinate binding relationship is legal when the legality of the second terminal equipment is checked, establishing a subordinate binding relationship between main equipment and sub-equipment, enabling the equipment to be in a binding relationship with the other sub-equipment, realizing combined use, namely combined use between the equipment, realizing function expansion, and further improving intelligence under an intelligent home scene.
It is to be understood that the functions of each program module of the communication control apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a server.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a server.
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 application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, read-Only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing embodiments have been described in detail, and specific examples are used herein to explain the principles and implementations of the present application, where the above description of the embodiments is only intended to help understand the method and its core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A communication control method applied to a server, the method comprising:
receiving a sub-device binding request sent by a first terminal device, wherein the sub-device binding request is used for binding a second terminal device as a sub-device of the first terminal device; establishing communication connection between the first terminal equipment and the second terminal equipment;
sending a binding instruction to the first terminal equipment through an MQTT communication protocol, and establishing an affiliation binding relationship between the first terminal equipment and the second terminal equipment through the first terminal equipment;
receiving a binding success message fed back by the first terminal device;
verifying the validity of the second terminal equipment;
and when the validity check of the second terminal equipment passes, determining that the subordinate binding relationship is legal.
2. The communication control method according to claim 1, wherein the second terminal device is not directly connected to the server, the method further comprising:
and sending a target instruction to the first terminal device, and forwarding the target instruction to the second terminal device through the first terminal device so as to control the second terminal device to execute the target instruction.
3. The communication control method according to claim 2, characterized in that the method further comprises:
detecting whether the connection between the first terminal device and the second terminal device is lost;
when the connection between the first terminal device and the second terminal device is lost, sending the target instruction to the second terminal device;
and when the connection between the first terminal device and the second terminal device is not lost, executing the step of sending the target instruction to the first terminal device.
4. The communication control method according to any one of claims 1 to 3, wherein when there are a plurality of sub-devices in the first terminal device, the method further comprises:
and sending a first message to the first terminal device, indicating the first terminal device to determine the forwarding priorities of the plurality of sub-devices, and forwarding the first message according to the forwarding priorities.
5. The communication control method according to any one of claims 1 to 3, characterized in that the method further comprises:
when communication connection is established between third terminal equipment and the server, whether the third terminal equipment has a binding main equipment is detected;
when the third terminal equipment does not have the binding master equipment, sending a second message to the third terminal equipment;
and receiving a feedback message of the third terminal equipment aiming at the second message.
6. The communication control method according to any one of claims 1 to 3, characterized in that the method further comprises:
the first terminal device allows one or more sub-devices to be bound, and the second terminal device allows a plurality of main devices to be bound; when the second terminal device is bound by the plurality of master devices, the plurality of master devices are devices of the same type.
7. The communication control method according to claim 1, wherein the second terminal device is directly connected to the server, and the method further comprises:
determining data to be transmitted;
determining a first data transmission link and a second data transmission link, wherein the first data transmission link is a data transmission link between the server and the second terminal equipment through the first terminal equipment, and the second data transmission link is a data transmission link between the server and the second terminal equipment;
determining a first channel parameter of the first data transmission link, determining a second channel parameter of the second data transmission link;
dividing the data to be transmitted into first data to be transmitted and second data to be transmitted according to the first channel parameter and the second channel parameter;
and transmitting the first data to be transmitted through the first data transmission link and transmitting the second data to be transmitted through the second data transmission link.
8. A communication control apparatus, applied to a server, the apparatus comprising: a receiving unit, a sending unit, a checking unit and a determining unit, wherein,
the receiving unit is configured to receive a sub-device binding request sent by a first terminal device, where the sub-device binding request is used to bind a second terminal device as a sub-device of the first terminal device; establishing communication connection between the first terminal equipment and the second terminal equipment;
the sending unit is used for sending a binding instruction to the first terminal equipment through an MQTT communication protocol and establishing an affiliation binding relationship between the first terminal equipment and the second terminal equipment through the first terminal equipment;
the receiving unit is further configured to receive a binding success message fed back by the first terminal device;
the verification unit is used for verifying the validity of the second terminal equipment;
the determining unit is configured to determine that the subordination relationship is legal when the validity check of the second terminal device passes.
9. A server, comprising a processor, a memory to store one or more programs and configured to be executed by the processor, the programs including instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211261668.2A CN115632897A (en) | 2022-10-14 | 2022-10-14 | Communication control method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211261668.2A CN115632897A (en) | 2022-10-14 | 2022-10-14 | Communication control method and related device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115632897A true CN115632897A (en) | 2023-01-20 |
Family
ID=84904080
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211261668.2A Pending CN115632897A (en) | 2022-10-14 | 2022-10-14 | Communication control method and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115632897A (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105357116A (en) * | 2015-10-23 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | Method of multiple terminals for accessing server and intelligent terminal |
CN105530222A (en) * | 2014-09-29 | 2016-04-27 | 腾讯科技(深圳)有限公司 | Method for establishing connection among terminals, and device and system |
CN106686585A (en) * | 2016-12-07 | 2017-05-17 | 深圳市金立通信设备有限公司 | Binding method and system |
CN107911337A (en) * | 2017-10-11 | 2018-04-13 | 海信集团有限公司 | A kind of apparatus bound method, server and equipment |
CN109510796A (en) * | 2017-09-14 | 2019-03-22 | 杭州萤石网络有限公司 | A kind of apparatus bound method and system |
CN109714769A (en) * | 2018-12-28 | 2019-05-03 | 北京深思数盾科技股份有限公司 | Information binding method, device, equipment and storage medium |
CN111479295A (en) * | 2020-03-06 | 2020-07-31 | 珠海格力电器股份有限公司 | Data transmission method, system, device, equipment and storage medium |
CN111490916A (en) * | 2020-04-15 | 2020-08-04 | 公牛集团股份有限公司 | Method, system, device and medium for binding ZigBee sub-devices of ZigBee |
CN111615170A (en) * | 2020-05-18 | 2020-09-01 | 北京世纪鼎点软件有限公司 | Data transmission method and system |
WO2020243639A1 (en) * | 2019-05-31 | 2020-12-03 | Apple Inc. | Device-relationship based communication |
CN112312386A (en) * | 2019-07-15 | 2021-02-02 | 广东美的制冷设备有限公司 | Equipment binding method and device and electronic equipment |
CN114666151A (en) * | 2022-04-08 | 2022-06-24 | 深圳市欧瑞博科技股份有限公司 | Equipment binding method, device, terminal, Internet of things equipment and storage medium |
-
2022
- 2022-10-14 CN CN202211261668.2A patent/CN115632897A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105530222A (en) * | 2014-09-29 | 2016-04-27 | 腾讯科技(深圳)有限公司 | Method for establishing connection among terminals, and device and system |
CN105357116A (en) * | 2015-10-23 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | Method of multiple terminals for accessing server and intelligent terminal |
CN106686585A (en) * | 2016-12-07 | 2017-05-17 | 深圳市金立通信设备有限公司 | Binding method and system |
CN109510796A (en) * | 2017-09-14 | 2019-03-22 | 杭州萤石网络有限公司 | A kind of apparatus bound method and system |
CN107911337A (en) * | 2017-10-11 | 2018-04-13 | 海信集团有限公司 | A kind of apparatus bound method, server and equipment |
CN109714769A (en) * | 2018-12-28 | 2019-05-03 | 北京深思数盾科技股份有限公司 | Information binding method, device, equipment and storage medium |
WO2020243639A1 (en) * | 2019-05-31 | 2020-12-03 | Apple Inc. | Device-relationship based communication |
CN112312386A (en) * | 2019-07-15 | 2021-02-02 | 广东美的制冷设备有限公司 | Equipment binding method and device and electronic equipment |
CN111479295A (en) * | 2020-03-06 | 2020-07-31 | 珠海格力电器股份有限公司 | Data transmission method, system, device, equipment and storage medium |
CN111490916A (en) * | 2020-04-15 | 2020-08-04 | 公牛集团股份有限公司 | Method, system, device and medium for binding ZigBee sub-devices of ZigBee |
CN111615170A (en) * | 2020-05-18 | 2020-09-01 | 北京世纪鼎点软件有限公司 | Data transmission method and system |
CN114666151A (en) * | 2022-04-08 | 2022-06-24 | 深圳市欧瑞博科技股份有限公司 | Equipment binding method, device, terminal, Internet of things equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106301785B (en) | Method and system for binding intelligent household equipment and intelligent terminal | |
CN110740460B (en) | Network access method and device of equipment, network equipment and storage medium | |
US10171997B2 (en) | Method and apparatus for interconnection between terminal device and gateway device | |
US8743903B2 (en) | Hybrid networking simple-connect setup using forwarding device | |
CN107113892B (en) | Method and device for automatically networking gateway equipment | |
CN104243210A (en) | Method and system for remotely having access to administrative web pages of routers | |
CN109617963B (en) | Equipment control method and device and Internet of things system | |
CN105392181A (en) | Intelligent equipment networking method and device, and system | |
CN110691110B (en) | Communication method, device, system, terminal, equipment and medium | |
CN110913006B (en) | Remote diagnosis method and system | |
KR20150003203A (en) | Software upgrade using layer-2 management entity messaging | |
CN110086839B (en) | Dynamic access method and device for remote equipment | |
CN113596783A (en) | Internet of things equipment binding method and device, storage medium and electronic device | |
CN105450330B (en) | Ascending transmission method, website, access point AP, communication system and management entity | |
CN113595839B (en) | Device binding method, terminal device and storage medium | |
CN115632897A (en) | Communication control method and related device | |
CN116321224A (en) | Sensing request node, response node and data relay transmission method | |
CN112532663B (en) | Household intelligent gateway login method and device | |
US20150229513A1 (en) | Systems and methods for efficient remote security panel configuration and management | |
CN111917886B (en) | Intelligent device data migration method and device and intelligent device | |
CN101790164B (en) | Authentication method, communication system and relevant equipment | |
WO2014026598A1 (en) | Method, device and system for acquiring endpoint mac address of maintenance entity group | |
CN109982427B (en) | Information processing method and device | |
CN103703816B (en) | Retransmission method and device in WLAN | |
CN115580533A (en) | Networking configuration method based on server, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |