CN117768516A - Device control method and device based on matter protocol - Google Patents

Device control method and device based on matter protocol Download PDF

Info

Publication number
CN117768516A
CN117768516A CN202311781400.6A CN202311781400A CN117768516A CN 117768516 A CN117768516 A CN 117768516A CN 202311781400 A CN202311781400 A CN 202311781400A CN 117768516 A CN117768516 A CN 117768516A
Authority
CN
China
Prior art keywords
equipment
target
target equipment
cloud
related information
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
CN202311781400.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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202311781400.6A priority Critical patent/CN117768516A/en
Publication of CN117768516A publication Critical patent/CN117768516A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a device control method and device based on a matter protocol. Wherein the method comprises the following steps: after the communication connection with the cloud is established, switching to a scanning state to monitor whether Bluetooth broadcasting supporting a matter protocol exists in the current environment; when a newly added Bluetooth broadcast supporting the matter protocol exists in the current environment, determining that a target device supporting the matter protocol exists in the current environment; acquiring equipment related information of target equipment; and transmitting the equipment related information to the cloud end so as to transmit the equipment related information to a target application through the cloud end, wherein the target application is an application bound by the Bluetooth auxiliary distribution network equipment. The intelligent home control method solves the technical problems that equipment involved in the intelligent home in the related technology is participated by a plurality of manufacturers, different APP operation groups adopted by equipment of different manufacturers lack unified standards and protocols, and control on all equipment in the intelligent home is difficult.

Description

Device control method and device based on matter protocol
Technical Field
The invention relates to the technical field of intelligent home control, in particular to a device control method and device based on a matter protocol.
Background
With the development of smart home, more and more manufacturers participate in the smart home. The equipment of different manufacturers adopts different APP operations, lacks unified standard and protocol, and the user wants to realize each in intelligent house, so that the control of each equipment in intelligent house becomes more difficult.
Aiming at the problems that the devices involved in the intelligent home in the related technology are participated by a plurality of manufacturers, and different APP operation groups adopted by the devices of different manufacturers lack unified standards and protocols, so that the control of the devices in the intelligent home is difficult, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a device control method and device based on a matter protocol, which at least solve the technical problems that equipment involved in intelligent home in the related technology is participated by a plurality of manufacturers, different APP operation groups adopted by equipment of different manufacturers lack uniform standards and protocols, and control of all equipment in the intelligent home is difficult.
According to an aspect of the embodiment of the present invention, there is provided a device control method based on a matter protocol, including: after the communication connection with the cloud is established, switching to a scanning state to monitor whether Bluetooth broadcasting supporting a matter protocol exists in the current environment; determining that a target device supporting the matter protocol exists in the current environment when the newly added Bluetooth broadcast supporting the matter protocol exists in the current environment; acquiring device-related information of the target device, wherein the device-related information at least comprises: the key generated by the target equipment and the mac address of the target equipment; transmitting the equipment related information to the cloud end so as to transmit the equipment related information to a target application through the cloud end, wherein the target application is an application bound by Bluetooth auxiliary network equipment, when receiving a triggering operation, the target application searches for a control instruction of the target equipment matched with the triggering operation from a first manufacturer server of the Bluetooth auxiliary network equipment, and transmits the control instruction to a second manufacturer server of the target equipment so as to forward the control instruction to the target equipment through the second manufacturer server, so that the control of the target equipment is completed.
Optionally, establishing a communication connection with the cloud connection includes: sending a connection request to the cloud, wherein the connection request is used for requesting to establish communication connection with the cloud; and when receiving a registration success message fed back by the cloud based on the connection request, determining to establish communication connection with the cloud.
Optionally, acquiring the device related information of the target device includes: acquiring a distribution network state of the target equipment; when the distribution network state indicates that the target equipment is not distributed with a network, request information is sent to the target equipment; and acquiring the device-related information fed back by the target device based on the request information.
Optionally, acquiring the ligand state of the target device includes: sending a query request to the cloud end to query whether registration information of the target device exists in the cloud end or not based on the query request; when the query result indicates that the registration information of the target equipment does not exist in the cloud, determining that the target equipment is not connected with a network; and when the query result indicates that the registration information of the target equipment exists in the cloud, determining that the target equipment is matched with a network.
Optionally, acquiring the device related information of the target device includes: sending a pairing request to the target equipment through a Bluetooth module; when receiving a pairing success message fed back by the target equipment based on the pairing request, establishing a Bluetooth communication relation with the target equipment, wherein the target equipment sends the equipment related information through a Bluetooth module; and acquiring the equipment related information sent by the target equipment.
Optionally, after establishing the bluetooth communication relationship with the target device, the device control method based on the matter protocol further includes: and sending route information corresponding to the router to the target equipment, wherein the route information at least comprises: the device information of the router and the login password of the router are used for data transmission of the Bluetooth auxiliary distribution network device and the target device.
Optionally, after sending the routing information corresponding to the router to the target device, the device control method based on the matter protocol further includes: and switching to the scanning state, sending a switching instruction to the target equipment so that the target equipment is also switched to the scanning state, monitoring the current environment, and determining that new equipment supporting the matter protocol exists in the current environment according to a monitoring result.
Optionally, the device control method based on the matter protocol further includes: receiving a current equipment state and a control instruction set sent by the target equipment, wherein the current equipment state is information obtained by encrypting self state information by the target equipment, and the target equipment sends the current equipment state and the control instruction set according to the received routing information; and uploading the current equipment state and the control instruction set to the first manufacturer server after receiving the current equipment state and the control instruction set.
According to another aspect of the embodiment of the present invention, there is also provided an apparatus control device based on a matter protocol, including: the switching unit is used for switching to a scanning state to monitor whether Bluetooth broadcasting supporting a matter protocol exists in the current environment after the communication connection with the cloud is established; a determining unit, configured to determine that a target device supporting the data protocol exists in the current environment when the newly added bluetooth broadcast supporting the data protocol exists in the current environment; an obtaining unit, configured to obtain device related information of the target device, where the device related information at least includes: the key generated by the target equipment and the mac address of the target equipment; the processing unit is used for transmitting the equipment related information to the cloud end so as to transmit the equipment related information to a target application through the cloud end, wherein the target application is an application bound by the Bluetooth auxiliary network distribution equipment, when the target application receives a triggering operation, a control instruction of the target equipment matched with the triggering operation is searched from a first manufacturer server of the Bluetooth auxiliary network distribution equipment, and the control instruction is transmitted to a second manufacturer server of the target equipment so as to forward the control instruction to the target equipment through the second manufacturer server, so that the control of the target equipment is completed.
Optionally, the switching unit includes: the cloud terminal comprises a cloud terminal, a first sending module and a second sending module, wherein the cloud terminal is used for sending a connection request to the cloud terminal, and the connection request is used for requesting to establish communication connection with the cloud terminal; the determining module is used for determining to establish communication connection with the cloud when receiving a registration success message fed back by the cloud based on the connection request.
Optionally, the acquiring unit includes: the first acquisition module is used for acquiring the distribution network state of the target equipment; the second sending module is used for sending request information to the target equipment when the distribution network state indicates that the target equipment is not distributed with a network; and the second acquisition module is used for acquiring the equipment related information fed back by the target equipment based on the request information.
Optionally, the device control apparatus based on the matter protocol further includes: the sending submodule is used for sending a query request to the cloud end so as to query whether registration information of the target equipment exists in the cloud end or not based on the query request; the first determining submodule is used for determining that the target equipment is not connected with the network when the query result indicates that the registration information of the target equipment does not exist in the cloud; and the second determining submodule is used for determining that the target equipment is connected when the query result indicates that the registration information of the target equipment exists in the cloud.
Optionally, the acquiring unit includes: the third sending module is used for sending a pairing request to the target equipment through the Bluetooth module; the establishing module is used for establishing a Bluetooth communication relation with the target equipment when receiving a pairing success message fed back by the target equipment based on the pairing request, wherein the target equipment sends the equipment related information through the Bluetooth module; and a third acquisition module, configured to acquire the device related information sent by the target device.
Optionally, the device control apparatus based on the matter protocol further includes: a fourth sending module, configured to send routing information corresponding to a router to the target device after establishing a bluetooth communication relationship with the target device, where the routing information at least includes: the device information of the router and the login password of the router are used for data transmission of the Bluetooth auxiliary distribution network device and the target device.
Optionally, the device control apparatus based on the matter protocol further includes: the switching unit is further configured to switch to the scanning state after sending the routing information corresponding to the router to the target device, and send a switching instruction to the target device, so that the target device is also switched to the scanning state, monitor the current environment, and determine that a new device supporting the matter protocol exists in the current environment according to a monitoring result.
Optionally, the device control apparatus based on the matter protocol further includes: the receiving unit is used for receiving the current equipment state and the control instruction set sent by the target equipment, wherein the current equipment state is information obtained by encrypting the state information of the target equipment, and the target equipment sends the current equipment state and the control instruction set according to the received routing information; and the uploading unit is used for uploading the current equipment state and the control instruction set to the first manufacturer server after receiving the current equipment state and the control instruction set.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program performs the device control method based on the matter protocol of any one of the above.
According to another aspect of the embodiment of the present invention, there is provided a processor, configured to execute a program, where the program executes any one of the above methods for controlling a device based on a matter protocol.
In the embodiment of the invention, after the communication connection with the cloud is established, the method is switched to a scanning state to monitor whether Bluetooth broadcasting supporting a matter protocol exists in the current environment; when a newly added Bluetooth broadcast supporting the matter protocol exists in the current environment, determining that a target device supporting the matter protocol exists in the current environment; acquiring device-related information of a target device, wherein the device-related information at least comprises: a key generated by the target equipment and a mac address of the target equipment; transmitting the equipment related information to the cloud end so as to transmit the equipment related information to a target application through the cloud end, wherein the target application is an application bound by the Bluetooth auxiliary distribution network equipment, when the target application receives a triggering operation, the target application searches a first manufacturer server of the Bluetooth auxiliary distribution network equipment for obtaining a control instruction of the target equipment matched with the triggering operation, and transmits the control instruction to a second manufacturer server of the target equipment so as to forward the control instruction to the target equipment through the second manufacturer server, so that the control of the target equipment is completed. According to the technical scheme provided by the invention, when the user family has the equipment supporting the matter protocol, other equipment supporting the matter protocol is added later, the aim of completing the noninductive distribution network in an auxiliary way through the equipment supporting the matter protocol is fulfilled, the network distribution time of the user is reduced, the user operation experience is improved, and the technical problems that equipment involved in the intelligent family in the related technology is participated by a plurality of manufacturers, different APP operation groups adopted by equipment of different manufacturers lack unified standards and protocols, and the control of all equipment in the intelligent family is difficult are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a device control method based on a matter protocol according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of device control based on the matter protocol, according to an embodiment of the invention;
FIG. 3 is a flow chart of an alternative method of device control based on the matter protocol, in accordance with an embodiment of the present invention;
fig. 4 is a schematic diagram of a device control apparatus based on the matter protocol according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As described in the background art, the devices involved in the smart home in the related art are participated by a plurality of manufacturers, and the different APP operators adopted by the devices of different manufacturers lack unified standards and protocols, so that the control of each device in the smart home is difficult. In view of the above drawbacks, an embodiment of the present invention provides a method and an apparatus for controlling a device based on a matter protocol.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The method embodiments provided in the embodiments of the present invention may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store computer programs, such as software programs and modules of application software, such as computer programs corresponding to the device control method based on the data protocol in the embodiment of the present invention, and the processor 102 executes the computer programs stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
According to an embodiment of the present invention, there is provided a method embodiment of a device control method based on a matter protocol, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different from that herein.
Fig. 2 is a flowchart of a device control method based on a matter protocol according to an embodiment of the present invention, and as shown in fig. 2, the device control method based on the matter protocol includes the steps of:
step S202, after establishing communication connection with the cloud, switching to a scanning state to monitor whether Bluetooth broadcasting supporting a matter protocol exists in the current environment.
Alternatively, the bluetooth assisted distribution network device herein is a device that can support the matter protocol.
Because devices between different protocols cannot communicate with each other, and devices between even the same communication protocol may not communicate with each other, for this problem, the matter protocol has emerged to solve these compatibility problems.
The matter standard specification is based on internet protocols, enabling intelligent internet of things devices, mobile applications and cloud services to communicate and define a specific set of IP-based network technologies for device authentication, which is an overall standard that integrates different devices and ecosystems, an open source standard that any intelligent device can use to create a more seamless experience. Any compatible smart home device, such as a light bulb or door lock, can be purchased by the dispenser and configured to be used on any platform. In other words, the matter connects other smart home ecosystems together for use on all smart home devices.
In this embodiment, the bluetooth auxiliary distribution network device (i.e., device a) may establish a connection with the cloud, and after the cloud is successfully established, may switch bluetooth to a scanning state, i.e., a scanning state, so as to monitor whether a bluetooth broadcast supporting the matter protocol exists in the current environment.
For example, a bluetooth auxiliary network device a capable of supporting the matter protocol exists in the home environment, and after the connection between the device a and the cloud end is established, bluetooth can switch to a scanning state to monitor whether a bluetooth broadcast supporting the matter protocol exists in the current environment.
In step S204, when there is a new bluetooth broadcast supporting the matter protocol in the current environment, it is determined that there is a target device supporting the matter protocol in the current environment.
In this embodiment, if device a listens to the bluetooth broadcast supporting the matter protocol in the current environment through bluetooth, it may be determined that there is a target device supporting the matter protocol in the current environment, that is, device B.
Step S206, obtaining device-related information of the target device, where the device-related information at least includes: the key generated by the target device itself, the mac address of the target device.
In this embodiment, device a may obtain device-related information of device B, e.g., a key generated by device B itself, the mac address of device B.
Step S208, the device related information is transmitted to the cloud end so as to transmit the device related information to a target application through the cloud end, wherein the target application is an application bound by the Bluetooth auxiliary distribution network device, and when the target application receives a triggering operation, a control instruction of the target device matched with the triggering operation is searched from a first manufacturer server of the Bluetooth auxiliary distribution network device and is transmitted to a second manufacturer server of the target device, so that the control instruction is forwarded to the target device through the second manufacturer server, and the control of the target device is completed.
In this embodiment, the device a transmits the acquired device-related information of the device B to the cloud, that is, the device information (key, mac, etc.) of the device B is reported to the cloud through the connection between the device a and the cloud. The cloud end can transmit the information of the device B to the application bound by the device A to form a virtual device, so that the device B is pseudo-online, and the user cannot feel the virtual device.
When the user controls the pseudo-online device using the target application, i.e., the APP, device B may use the previously stored ssid and passwd connection routes and report its own state to the server of the device B vendor after encrypting it with the key. Meanwhile, the APP acquires a key encryption control instruction of the device B stored in the manufacturer server of the device A, uploads the key encryption control instruction to the manufacturer server of the device B and converts the key encryption control instruction to the device B, so that the device B can respond to the control instruction of the APP.
As can be seen from the above, in the embodiment of the present invention, after establishing a communication connection with the cloud, the method switches to a scanning state to monitor whether there is a bluetooth broadcast supporting the matter protocol in the current environment; when a newly added Bluetooth broadcast supporting the matter protocol exists in the current environment, determining that a target device supporting the matter protocol exists in the current environment; acquiring device-related information of a target device, wherein the device-related information at least comprises: a key generated by the target equipment and a mac address of the target equipment; the method comprises the steps of transmitting equipment related information to a cloud end to transmit the equipment related information to a target application through the cloud end, wherein the target application is an application bound by Bluetooth auxiliary distribution network equipment, when the target application receives a triggering operation, searching a first manufacturer server of the Bluetooth auxiliary distribution network equipment to obtain a control instruction of the target equipment matched with the triggering operation, and transmitting the control instruction to a second manufacturer server of the target equipment, so that the control instruction is transmitted to the target equipment through the second manufacturer server to complete control of the target equipment, the purpose that when a user family has equipment supporting a matter protocol, other equipment supporting the matter protocol is added later, and the purpose of completing a non-inductive distribution network in an auxiliary mode can be achieved through the equipment supporting the matter protocol, so that the user distribution network time is shortened, and the user operation experience is improved.
Therefore, through the technical scheme provided by the embodiment of the invention, the technical problem that the equipment involved in the intelligent home in the related technology is participated by a plurality of manufacturers, and different APP operation groups adopted by equipment of different manufacturers lack unified standards and protocols, so that the control of all the equipment in the intelligent home is difficult is solved.
According to the above embodiment of the present invention, establishing a communication connection with a cloud connection may include: sending a connection request to the cloud, wherein the connection request is used for requesting to establish communication connection with the cloud; and when receiving a registration success message fed back by the cloud based on the connection request, determining to establish communication connection with the cloud.
In this embodiment, the device a may send a connection request to the cloud end to request to establish a communication connection with the cloud end; when the cloud receives the connection request sent by the device A, the device information of the device A carried in the connection request is verified, when the verification passes, communication connection with the device A can be allowed, and the device information of the device A is registered in a device information list.
According to the above embodiment of the present invention, acquiring device-related information of a target device includes: acquiring a distribution network state of target equipment; when the distribution network state indicates that the target equipment is not distributed with the network, request information is sent to the target equipment; and acquiring device-related information fed back by the target device based on the request information.
In this embodiment, when it is scanned that there is a bluetooth broadcast supporting the matter protocol in the current environment, a target device, i.e., device a, broadcasting the bluetooth broadcast may be determined. Then, it may be detected whether the device a has been configured with a network, and if it has not, request information may be sent to the device a to request device B for its device information for subsequent control operations on the device B.
According to the above embodiment of the present invention, obtaining a ligand state of a target device includes: sending a query request to the cloud end to query whether the cloud end has registration information of the target device or not based on the query request; when the query result indicates that the registration information of the target equipment does not exist in the cloud, determining that the target equipment is not connected with the network; and when the query result indicates that the registration information of the target equipment exists in the cloud, determining that the target equipment is matched with the network.
In this embodiment, the configuration state of the target device is obtained, and a query request may be sent to the cloud first, so as to query whether the device B has been configured with a network in the cloud based on the device information of the device B carried in the query request, that is, whether the cloud already has registration information of the device B. When the query result shows that the cloud end does not have the registration information of the target equipment, the target equipment can be determined to be not connected, otherwise, the target equipment is determined to be connected.
According to the above embodiment of the present invention, acquiring device-related information of a target device includes: sending a pairing request to target equipment through a Bluetooth module; when a pairing success message fed back by the target equipment based on the pairing request is received, establishing a Bluetooth communication relation with the target equipment, wherein the target equipment sends equipment related information through a Bluetooth module; and acquiring the device-related information sent by the target device.
In this embodiment, the pairing request may be sent to the device B through the bluetooth module of the device a, and when receiving the response of the device B to the pairing request, a bluetooth communication relationship with the device B may be established, and further, device related information, such as a key generated by the device B, and a mac address of the device B, may be acquired from the device B through the bluetooth communication relationship.
According to the above embodiment of the present invention, after establishing the bluetooth communication relationship with the target device, the device control method based on the matter protocol further includes: and sending the route information corresponding to the router to the target equipment, wherein the route information at least comprises the following components: the router is used for data transmission of the Bluetooth auxiliary distribution network equipment and the target equipment.
In this embodiment, after the bluetooth communication relationship is established between the device a and the device B, the routing information corresponding to the router may be sent to the device B, where the routing information may include, but is not limited to: the device information of the router and the login password of the router, and the router can be used for data transmission between the device A and the device B.
According to the above embodiment of the present invention, after transmitting the routing information corresponding to the router to the target device, the device control method based on the matter protocol may further include: and switching to a scanning state, sending a switching instruction to the target equipment so that the target equipment is also switched to the scanning state, monitoring the current environment, and determining that new equipment supporting the matter protocol exists in the current environment according to the monitoring result.
In this embodiment, after the routing information corresponding to the router is sent to the target device, the device a and the device B may switch to the scanning state to monitor the current environment, so as to determine in real time whether a new device supporting the matter protocol exists in the current environment, so as to implement the autonomous noninductive distribution network.
According to the above embodiment of the present invention, the device control method based on the matter protocol may further include: receiving a current equipment state and a control instruction set sent by target equipment, wherein the current equipment state is information obtained by encrypting self state information by the target equipment, and the target equipment sends the current equipment state and the control instruction set according to the received routing information; after receiving the current device state and the control instruction set, uploading the current device state and the control instruction set to a first vendor server.
In this embodiment, the device a receives the current device state and the control instruction set sent by the device B, and uploads the current device state and the control instruction set to the first vendor server, so that the APP may obtain the current device state and the control instruction set from the first vendor server and upload them to the second vendor server, so that the second vendor server may forward them to the device B to implement control over the device B.
Fig. 3 is a flowchart of an alternative device control method based on the matter protocol according to an embodiment of the present invention, as shown in fig. 3, a bluetooth auxiliary distribution network device a supporting the matter protocol exists in the home environment and has established a connection with the cloud; after the device establishes connection with the cloud, bluetooth is switched to a scanning state to monitor whether Bluetooth broadcasting supporting a matter protocol exists in the current environment; then, newly adding a device B supporting the matter protocol to be connected with a device A by means of Bluetooth; the equipment B transmits the information such as the secret key, mac and the like to the equipment A; the equipment A transmits the information to a server for storage and transmits the information to the APP; finally, when APP is controlled, the equipment B is set to be on line at a server of an equipment B manufacturer, so that the control of the equipment B can be realized, the characteristics of interconnection and intercommunication of equipment of different manufacturers are supported by using a matter protocol, communication among the equipment of different manufacturers is carried out by using a Bluetooth connection mode, pre-distribution network is carried out after the equipment is powered on, further, distribution network time is reduced for a user, and the noninductive distribution network of the user is realized.
According to the technical scheme provided by the embodiment of the invention, the user network distribution step is optimized, and the user operation is reduced; and the network distribution time of the user is shortened by the aid of the matter protocol, and equipment interconnection between multiple manufacturers is realized. When the user family has the equipment supporting the data protocol, other equipment supporting the data protocol is added later, the noninductive distribution network of the user can be realized, the user operation experience is increased, and the network distribution time of the user is reduced.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
According to an embodiment of the present invention, there is further provided a device control apparatus based on a matter protocol for implementing the device control method based on a matter protocol, and fig. 4 is a schematic diagram of the device control apparatus based on a matter protocol according to an embodiment of the present invention, as shown in fig. 4, where the apparatus includes: a switching unit 41, a determining unit 43, an acquiring unit 45 and a processing unit 47. The device control apparatus based on the matter protocol will be described below.
The switching unit 41 is configured to switch to a scanning state to monitor whether a bluetooth broadcast supporting a matter protocol exists in the current environment after the communication connection with the cloud is established.
A determining unit 43, configured to determine that a target device supporting the matter protocol exists in the current environment when there is a new bluetooth broadcast supporting the matter protocol in the current environment.
An obtaining unit 45, configured to obtain device related information of the target device, where the device related information includes at least: the key generated by the target device itself, the mac address of the target device.
The processing unit 47 is configured to transmit the device related information to the cloud end, so as to transmit the device related information to a target application through the cloud end, where the target application is an application bound by the bluetooth auxiliary distribution network device, and when receiving the trigger operation, the target application searches for a control instruction of the target device matched with the trigger operation from a first manufacturer server of the bluetooth auxiliary distribution network device, and sends the control instruction to a second manufacturer server of the target device, so that the second manufacturer server forwards the control instruction to the target device, thereby completing control of the target device.
Here, the switching unit 41, the determining unit 43, the acquiring unit 45, and the processing unit 47 correspond to steps S202 to S208 in the above-described embodiments, and the four units are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the above-described embodiments.
As can be seen from the above, in the solution described in the above embodiment of the present invention, after establishing a communication connection with a cloud terminal, the switching unit may switch to a scanning state to monitor whether a bluetooth broadcast supporting a matter protocol exists in the current environment; determining that a target device supporting the matter protocol exists in the current environment when the newly added Bluetooth broadcast supporting the matter protocol exists in the current environment by utilizing a determining unit; acquiring device-related information of the target device by using an acquisition unit, wherein the device-related information at least comprises: a key generated by the target equipment and a mac address of the target equipment; the method comprises the steps that equipment related information is transmitted to a cloud end through a processing unit, the equipment related information is transmitted to a target application through the cloud end, the target application is an application bound by Bluetooth auxiliary distribution network equipment, when the target application receives a triggering operation, a control instruction of the target equipment matched with the triggering operation is searched from a first manufacturer server of the Bluetooth auxiliary distribution network equipment, the control instruction is transmitted to a second manufacturer server of the target equipment, the control instruction is transmitted to the target equipment through the second manufacturer server, control of the target equipment is completed, the purpose that when a user family has equipment supporting a matter protocol, other equipment supporting the matter protocol is added later, the purpose of completing a non-inductive distribution network is assisted through the equipment supporting the matter protocol is achieved, the user distribution time is shortened, and user operation experience is improved.
Therefore, through the technical scheme provided by the embodiment of the invention, the technical problem that the equipment involved in the intelligent home in the related technology is participated by a plurality of manufacturers, and different APP operation groups adopted by equipment of different manufacturers lack unified standards and protocols, so that the control of all the equipment in the intelligent home is difficult is solved.
Optionally, the switching unit includes: the first sending module is used for sending a connection request to the cloud, wherein the connection request is used for requesting to establish communication connection with the cloud; the determining module is used for determining to establish communication connection with the cloud when receiving a registration success message fed back by the cloud based on the connection request.
Optionally, the acquiring unit includes: the first acquisition module is used for acquiring the distribution network state of the target equipment; the second sending module is used for sending request information to the target equipment when the distribution network state indicates that the target equipment is not distributed with the network; and the second acquisition module is used for acquiring the device related information fed back by the target device based on the request information.
Optionally, the device control apparatus based on the matter protocol further includes: the sending sub-module is used for sending a query request to the cloud end so as to query whether the registration information of the target equipment exists in the cloud end or not based on the query request; the first determining submodule is used for determining that the target equipment is not distributed with the network when the query result indicates that the registration information of the target equipment does not exist in the cloud; and the second determining submodule is used for determining that the target equipment is distributed when the query result indicates that the registration information of the target equipment exists in the cloud.
Optionally, the acquiring unit includes: the third sending module is used for sending a pairing request to the target equipment through the Bluetooth module; the system comprises a setting module, a pairing request module and a pairing module, wherein the setting module is used for setting up a Bluetooth communication relation with target equipment when receiving a pairing success message fed back by the target equipment based on the pairing request, and the target equipment sends equipment related information through the Bluetooth module; and the third acquisition module is used for acquiring the equipment related information sent by the target equipment.
Optionally, the device control apparatus based on the matter protocol further includes: and a fourth sending module, configured to send routing information corresponding to the router to the target device after establishing the bluetooth communication relationship with the target device, where the routing information at least includes: the router is used for data transmission of the Bluetooth auxiliary distribution network equipment and the target equipment.
Optionally, the device control apparatus based on the matter protocol further includes: the switching unit is further used for switching to a scanning state after the routing information corresponding to the router is sent to the target equipment, sending a switching instruction to the target equipment so that the target equipment is also switched to the scanning state, monitoring the current environment, and determining that new equipment supporting the matter protocol exists in the current environment according to the monitoring result.
Optionally, the device control apparatus based on the matter protocol further includes: the receiving unit is used for receiving the current equipment state and the control instruction set sent by the target equipment, wherein the current equipment state is information obtained by encrypting the state information of the target equipment, and the target equipment sends the current equipment state and the control instruction set according to the received routing information; and the uploading unit is used for uploading the current equipment state and the control instruction set to the first manufacturer server after receiving the current equipment state and the control instruction set.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program performs the device control method based on the matter protocol of any one of the above.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be located in any one of a group of computer terminals in a computer network, or in any one of a group of communication devices.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: after the communication connection with the cloud is established, switching to a scanning state to monitor whether Bluetooth broadcasting supporting a matter protocol exists in the current environment; when a newly added Bluetooth broadcast supporting the matter protocol exists in the current environment, determining that a target device supporting the matter protocol exists in the current environment; acquiring device-related information of a target device, wherein the device-related information at least comprises: a key generated by the target equipment and a mac address of the target equipment; transmitting the equipment related information to the cloud end so as to transmit the equipment related information to a target application through the cloud end, wherein the target application is an application bound by the Bluetooth auxiliary distribution network equipment, when the target application receives a triggering operation, the target application searches a first manufacturer server of the Bluetooth auxiliary distribution network equipment for obtaining a control instruction of the target equipment matched with the triggering operation, and transmits the control instruction to a second manufacturer server of the target equipment so as to forward the control instruction to the target equipment through the second manufacturer server, so that the control of the target equipment is completed.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: sending a connection request to the cloud, wherein the connection request is used for requesting to establish communication connection with the cloud; and when receiving a registration success message fed back by the cloud based on the connection request, determining to establish communication connection with the cloud.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: acquiring a distribution network state of target equipment; when the distribution network state indicates that the target equipment is not distributed with the network, request information is sent to the target equipment; and acquiring device-related information fed back by the target device based on the request information.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: sending a query request to the cloud end to query whether the cloud end has registration information of the target device or not based on the query request; when the query result indicates that the registration information of the target equipment does not exist in the cloud, determining that the target equipment is not connected with the network; and when the query result indicates that the registration information of the target equipment exists in the cloud, determining that the target equipment is matched with the network.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: sending a pairing request to target equipment through a Bluetooth module; when a pairing success message fed back by the target equipment based on the pairing request is received, establishing a Bluetooth communication relation with the target equipment, wherein the target equipment sends equipment related information through a Bluetooth module; and acquiring the device-related information sent by the target device.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: after establishing the Bluetooth communication relationship with the target device, transmitting routing information corresponding to the router to the target device, wherein the routing information at least comprises: the router is used for data transmission of the Bluetooth auxiliary distribution network equipment and the target equipment.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: after the route information corresponding to the router is sent to the target equipment, switching to a scanning state, and sending a switching instruction to the target equipment, so that the target equipment is also switched to the scanning state, monitoring the current environment, and determining that new equipment supporting the matter protocol exists in the current environment according to the monitoring result.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: receiving a current equipment state and a control instruction set sent by target equipment, wherein the current equipment state is information obtained by encrypting self state information by the target equipment, and the target equipment sends the current equipment state and the control instruction set according to the received routing information; after receiving the current device state and the control instruction set, uploading the current device state and the control instruction set to a first vendor server. According to another aspect of the embodiments of the present invention, there is also provided a processor for executing a program, wherein the program executes any one of the above methods for controlling a device based on a matter protocol.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A device control method based on a matter protocol, comprising:
after the communication connection with the cloud is established, switching to a scanning state to monitor whether Bluetooth broadcasting supporting a matter protocol exists in the current environment;
determining that a target device supporting the matter protocol exists in the current environment when the newly added Bluetooth broadcast supporting the matter protocol exists in the current environment;
acquiring device-related information of the target device, wherein the device-related information at least comprises: the key generated by the target equipment and the mac address of the target equipment;
transmitting the equipment related information to the cloud end so as to transmit the equipment related information to a target application through the cloud end, wherein the target application is an application bound by Bluetooth auxiliary network equipment, when receiving a triggering operation, the target application searches for a control instruction of the target equipment matched with the triggering operation from a first manufacturer server of the Bluetooth auxiliary network equipment, and transmits the control instruction to a second manufacturer server of the target equipment so as to forward the control instruction to the target equipment through the second manufacturer server, so that the control of the target equipment is completed.
2. The device control method based on the matter protocol according to claim 1, wherein establishing a communication connection with a cloud connection includes:
sending a connection request to the cloud, wherein the connection request is used for requesting to establish communication connection with the cloud;
and when receiving a registration success message fed back by the cloud based on the connection request, determining to establish communication connection with the cloud.
3. The device control method based on the matter protocol according to claim 1, wherein acquiring device-related information of the target device includes:
acquiring a distribution network state of the target equipment;
when the distribution network state indicates that the target equipment is not distributed with a network, request information is sent to the target equipment;
and acquiring the device-related information fed back by the target device based on the request information.
4. The device control method based on the matter protocol according to claim 3, wherein acquiring the distribution network state of the target device includes:
sending a query request to the cloud end to query whether registration information of the target device exists in the cloud end or not based on the query request;
when the query result indicates that the registration information of the target equipment does not exist in the cloud, determining that the target equipment is not connected with a network;
And when the query result indicates that the registration information of the target equipment exists in the cloud, determining that the target equipment is matched with a network.
5. The device control method based on the matter protocol according to claim 1, wherein acquiring device-related information of the target device includes:
sending a pairing request to the target equipment through a Bluetooth module;
when receiving a pairing success message fed back by the target equipment based on the pairing request, establishing a Bluetooth communication relation with the target equipment, wherein the target equipment sends the equipment related information through a Bluetooth module;
and acquiring the equipment related information sent by the target equipment.
6. The device control method based on the matter protocol according to claim 5, further comprising, after establishing a bluetooth communication relationship with the target device:
and sending route information corresponding to the router to the target equipment, wherein the route information at least comprises: the device information of the router and the login password of the router are used for data transmission of the Bluetooth auxiliary distribution network device and the target device.
7. The device control method based on the matter protocol according to claim 6, further comprising, after transmitting route information corresponding to a router to the target device:
and switching to the scanning state, sending a switching instruction to the target equipment so that the target equipment is also switched to the scanning state, monitoring the current environment, and determining that new equipment supporting the matter protocol exists in the current environment according to a monitoring result.
8. The device control method based on the matter protocol according to claim 6, characterized by further comprising:
receiving a current equipment state and a control instruction set sent by the target equipment, wherein the current equipment state is information obtained by encrypting self state information by the target equipment, and the target equipment sends the current equipment state and the control instruction set according to the received routing information;
and uploading the current equipment state and the control instruction set to the first manufacturer server after receiving the current equipment state and the control instruction set.
9. A device control apparatus based on a matter protocol, comprising:
The switching unit is used for switching to a scanning state to monitor whether Bluetooth broadcasting supporting a matter protocol exists in the current environment after the communication connection with the cloud is established;
a determining unit, configured to determine that a target device supporting the data protocol exists in the current environment when the newly added bluetooth broadcast supporting the data protocol exists in the current environment;
an obtaining unit, configured to obtain device related information of the target device, where the device related information at least includes: the key generated by the target equipment and the mac address of the target equipment;
the processing unit is used for transmitting the equipment related information to the cloud end so as to transmit the equipment related information to a target application through the cloud end, wherein the target application is an application bound by the Bluetooth auxiliary network distribution equipment, when the target application receives a triggering operation, a control instruction of the target equipment matched with the triggering operation is searched from a first manufacturer server of the Bluetooth auxiliary network distribution equipment, and the control instruction is transmitted to a second manufacturer server of the target equipment so as to forward the control instruction to the target equipment through the second manufacturer server, so that the control of the target equipment is completed.
10. A processor for executing a program, wherein the program executes the device control method based on the matter protocol according to any one of claims 1 to 8 when executed.
CN202311781400.6A 2023-12-21 2023-12-21 Device control method and device based on matter protocol Pending CN117768516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311781400.6A CN117768516A (en) 2023-12-21 2023-12-21 Device control method and device based on matter protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311781400.6A CN117768516A (en) 2023-12-21 2023-12-21 Device control method and device based on matter protocol

Publications (1)

Publication Number Publication Date
CN117768516A true CN117768516A (en) 2024-03-26

Family

ID=90311951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311781400.6A Pending CN117768516A (en) 2023-12-21 2023-12-21 Device control method and device based on matter protocol

Country Status (1)

Country Link
CN (1) CN117768516A (en)

Similar Documents

Publication Publication Date Title
CN110692280B (en) Network access method, device and system
CN109996314B (en) Method, device and system for accessing network to be configured to network hotspot device
CN110650070B (en) Household appliance network configuration method and WiFi module
CN109495358B (en) Network distribution method and network distribution system for household appliances
CN110636483A (en) Network distribution method and system
US9781579B2 (en) Method and device for realizing terminal WIFI talkback
CN112737902B (en) Network configuration method and device, storage medium and electronic equipment
KR101680715B1 (en) Apparatus and method of registring personal network
CN109413653B (en) Network distribution method and network distribution system for household appliances
CN110602682A (en) Network management system and method based on Bluetooth BLE and mesh mixing
CN112469055A (en) Equipment network distribution method, related equipment and storage medium
US8312151B2 (en) Communication systems and methods for dynamic and secure simplification of equipment networking
US20090305674A1 (en) Device management in visited network
CN112187531A (en) Module upgrading method and system, storage medium and electronic device
CN108541077B (en) WPS-based rapid network distribution method and system for intelligent hardware equipment
US11140597B2 (en) Method and apparatus for processing link establishment failure, and computer storage medium
CN113596792B (en) Binding method and device of electronic equipment, storage medium and electronic device
CN113596089B (en) Distribution network binding method and device of equipment, storage medium and electronic device
US10070289B1 (en) Client association for provisioning devices in a communication network
KR20170007425A (en) Near field discovery method, user equipment, and storage medium
WO2022105028A1 (en) Network configuration method and apparatus for internet of things device
JP6327021B2 (en) Access point, information distribution method, and access point control program
CN117768516A (en) Device control method and device based on matter protocol
CN114125883B (en) Network access method and device of intelligent equipment, electronic equipment and storage medium
CN113472763A (en) Control instruction sending method and device, storage medium and electronic device

Legal Events

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