Matter protocol-based device control method, control device and program product
The Matter protocol enables device linkage in smart homes, and uses health and environmental data to regulate the indoor environment, solving the problem of insufficient device linkage and improving user experience and health level.
Patent Information
- Application Number
- CN202411272805.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-12-17
AI Technical Summary
Smart home devices lack linkage mechanisms and cannot automatically adjust the home environment according to the environment and user health status, resulting in the failure to effectively improve user experience and health levels.
Using the Matter protocol, through the communication connection between the terminal and the LAN, the central device obtains user health data, and obtains environmental data with the sub-device, generates environmental adjustment instructions, and sends them to the sub-device to adjust their working status through the Matter protocol to realize linkage between devices. and environmental regulation.
It realizes rapid linkage between smart home devices, adjusts indoor environmental conditions in real time, improves users' life experience and health level, and solves the problem of equipment lacking linkage mechanism.
Smart Images

Figure CN119148585A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home, and more specifically, to a device control method based on the Matter protocol, a device control device based on the Matter protocol, and a computer program product. Background Art
[0002] With the development of smart home technology, environmental monitoring equipment and health monitoring equipment have been widely used. Environmental monitoring equipment can monitor the environmental data of the home and the surrounding environment in real time, and health monitoring equipment such as smart bracelets can record the user's health data. However, most of the current environmental monitoring equipment and health monitoring equipment operate independently, lacking an effective linkage mechanism, and cannot automatically adjust the home environment according to the surrounding environment and the user's health status, thereby improving the user's life experience and health level.
[0003] Therefore, there is an urgent need for a method to solve the problem of lack of linkage mechanism of devices in the field of smart home in the prior art. Summary of the invention
[0004] The main purpose of this application is to provide a device control method based on the Matter protocol, a device control device based on the Matter protocol and a computer program product, so as to at least solve the problem of lack of linkage mechanism of devices in the smart home field in the prior art.
[0005] According to one aspect of the present application, a device control method based on the Matter protocol is provided, which is applied to a terminal, wherein the terminal is communicatively connected to a local area network, the local area network includes a central device and sub-devices, and the central device and the sub-devices communicate through the Matter protocol. The method includes: after the terminal and the local area network complete network deployment, controlling the central device to obtain the current health data of a target user, and controlling the sub-device to obtain the current environmental data corresponding to the indoor environment where the target user is located; controlling the central device to receive the current environmental data, and generating an environmental adjustment instruction based on the current health data and the current environmental data, wherein the environmental adjustment instruction is used to adjust the environmental conditions of the indoor environment; controlling the central device to send the environmental adjustment instruction to the sub-device through the Matter protocol, and adjusting the working state of the sub-device according to the environmental adjustment instruction.
[0006] Optionally, the sub-devices include Matter devices that support the Matter protocol and non-Matter devices that do not support the Matter protocol, and the terminal and the local area network complete network deployment, including: after performing an initialization operation, connecting the Matter device and the non-Matter device; sending a networking request to the hub device and the sub-device, wherein the networking request is used to request to establish a connection with the hub device and the sub-device; determining whether a first response message sent by the hub device and the sub-device is received, and if the first response message is received, determining that the terminal and the local area network complete network deployment, wherein the first response message is used to characterize that the hub device or the sub-device responds to the networking request.
[0007] Optionally, the execution of the initialization operation is completed, including: sending unique identification information to the central device and the sub-device, the unique identification information is used to uniquely identify the terminal; determining whether a second response information sent by the central device and the sub-device is received, and if the second response information is received, determining that the execution of the initialization operation is completed, the second response information is used to represent a response to the unique identification information.
[0008] Optionally, the sub-device also includes a bridging device that connects the Matter device and the non-Matter device, including: controlling the non-Matter device to be mapped as a bridging device, wherein the bridging device is used to convert and relay data between different communication protocols; connecting the Matter device and the mirrored bridging device.
[0009] Optionally, the sub-device includes at least a monitoring device, which controls the central device to obtain the current health data of the target user, and controls the sub-device to obtain the current environmental data corresponding to the indoor environment where the target user is located, including: determining whether the target user exists in the indoor environment at the current moment; when the target user exists in the indoor environment, obtaining the position of the target user to obtain the target position; controlling the monitoring device to obtain the biological data of the target user at the target position or the living habit data of the target user to obtain the current health data; controlling the monitoring device to obtain at least one of the current temperature of the indoor environment, the current humidity of the indoor environment, the current light intensity of the indoor environment, the current air quality of the indoor environment and the current noise level of the indoor environment to obtain the current environmental data.
[0010] Optionally, determining whether the target user exists in the indoor environment at the current moment includes: obtaining historical voiceprint data and target voiceprint data, wherein the historical voiceprint data is the voiceprint data of the user in the indoor environment obtained before the current moment, and the target voiceprint data is the voiceprint data of the user in the indoor environment obtained at the current moment; inputting the target voiceprint data into a user prediction model to obtain the target user, wherein the user prediction model is trained by machine learning using multiple groups of historical data, each group of the multiple groups of historical data includes: the historical voiceprint data and the user corresponding to the historical voiceprint data, and the target user is the user corresponding to the target voiceprint data.
[0011] Optionally, an environmental adjustment instruction is generated based on the current health data and the current environmental data, including: determining whether the change rate of the current health data in a unit time is greater than a change rate threshold; if the change rate of the current health data in a unit time is greater than the change rate threshold, determining the size relationship between a target parameter and a corresponding target parameter threshold, the target parameter being one of the current temperature, the current humidity, the current light intensity, the current air quality, and the current noise level, the target parameter and the target parameter threshold corresponding one to one, and the living habit data including the target parameter threshold; if the target parameter is greater than or equal to the corresponding target parameter threshold, determining that an environmental condition that reduces the environmental condition corresponding to the target parameter is the environmental adjustment instruction; if the target parameter is less than the corresponding target parameter threshold, determining that an environmental condition that increases the environmental condition corresponding to the target parameter is the environmental adjustment instruction, wherein the living habit data of the target user includes the target parameter threshold.
[0012] Optionally, the sub-device further includes an execution device, and adjusting the working state of the sub-device according to the environment adjustment instruction includes: controlling the working state of the execution device to point to the target user.
[0013] According to another aspect of the present application, there is provided a device control device based on the Matter protocol, which is applied to a terminal, wherein the terminal is communicatively connected to a local area network, the local area network includes a central device and a sub-device, and the central device communicates with the sub-device through the Matter protocol, and the device includes: a first control unit, which is used to control the central device to obtain the current health data of a target user and control the sub-device to obtain the current environmental data corresponding to the indoor environment where the target user is located after the terminal and the local area network complete network deployment; a second control unit, which is used to control the central device to receive the current environmental data, and generate an environmental adjustment instruction based on the current health data and the current environmental data, wherein the environmental adjustment instruction is used to adjust the environmental conditions of the indoor environment; a third control unit, which is used to control the central device to send the environmental adjustment instruction to the sub-device through the Matter protocol, and adjust the working state of the sub-device according to the environmental adjustment instruction.
[0014] According to another aspect of the present application, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any one of the methods described are implemented.
[0015] Applying the technical solution of the present application, a device control method based on the Matter protocol is provided, which is applied to a terminal, and the terminal is communicatively connected to a local area network. The local area network includes a central device and sub-devices, and the central device and the sub-devices communicate through the Matter protocol. First, after the terminal and the local area network complete network deployment, the central device is controlled to obtain the current health data of the target user, and the sub-device is controlled to obtain the current environmental data corresponding to the indoor environment where the target user is located; then, the central device is controlled to receive the current environmental data, and generate an environmental adjustment instruction based on the current health data and the current environmental data, wherein the environmental adjustment instruction is used to adjust the environmental conditions of the indoor environment; finally, the central device is controlled to send the environmental adjustment instruction to the sub-device through the Matter protocol, and adjust the working state of the sub-device according to the environmental adjustment instruction. In this solution, the central device and sub-devices in the local area network communicate through the Matter protocol, and based on the superiority of the interconnection and interoperability of the matter protocol, the linkage between the central device and the sub-devices is realized; further, the user health data is obtained through the central device, and the environmental devices are obtained through the sub-devices, and then the sub-devices are mobilized and operated in real time according to the health data and environmental data, to achieve rapid linkage between devices, adjust the environmental conditions of the indoor environment, and establish a comfortable indoor environment, thereby solving the technical problem of the lack of linkage mechanism for devices in the smart home field in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0017] Figure 1 A hardware structure block diagram of a mobile terminal for executing a device control method based on the Matter protocol provided in an embodiment of the present application is shown;
[0018] Figure 2 A schematic diagram of a process flow of a device control method based on the Matter protocol provided according to an embodiment of the present application is shown;
[0019] Figure 3 A structural block diagram of a Matter ecosystem provided according to an embodiment of the present application is shown;
[0020] Figure 4 A schematic diagram of a process flow of a Matter networking process for executing a device control method based on the Matter protocol provided in an embodiment of the present application is shown;
[0021] Figure 5 A specific flow chart of a device control method based on the Matter protocol provided according to an embodiment of the present application is shown;
[0022] Figure 6 A structural block diagram of a device control apparatus based on the Matter protocol provided according to an embodiment of the present application is shown.
[0023] The above drawings include the following reference numerals:
[0024] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0029] Smart home: Smart home refers to a lifestyle that connects home appliances and systems through modern technology to achieve intelligent control and management. Smart home systems include home automation, remote control, voice control, home security, energy management, environmental monitoring, and home entertainment. Home automation refers to the automatic control of home appliances through automation technology, such as automatic switching of lights and automatic temperature adjustment; remote control means that users can remotely control home appliances through mobile devices such as mobile phones and tablets to achieve home management anytime and anywhere; voice control means that through the connection with intelligent voice assistants, users can control home appliances with voice commands; home security means that the smart home system can monitor the safety status of the home in real time, such as fire, gas leakage, etc., and remind users in time and take corresponding measures; energy management means that the smart home system can monitor and manage home energy consumption to help users achieve energy saving and consumption reduction; environmental monitoring means that the smart home system can monitor the home environment in real time, such as air quality, temperature, humidity, etc., to provide users with a comfortable living environment; home entertainment means that the smart home system can integrate home entertainment equipment, such as audio, TV, projection, etc., to achieve one-click control. In short, smart home aims to improve the convenience, comfort and safety of home life through scientific and technological means.
[0030] Matter Protocol: Matter Protocol, also known as Project Connected Home over IP (CHIP), is a project that aims to provide a unified communication standard for smart home devices. The project aims to solve the problems of poor interoperability and inconsistent user experience between smart home devices. The main goals of the Matter Protocol include: Matter Protocol allows smart home devices of different brands and manufacturers to work seamlessly in the same network, breaking down the barriers between different ecosystems; Matter Protocol adopts industry-recognized security standards such as TLS and DTLS to ensure secure and reliable communication between devices; Matter Protocol simplifies the device setup and connection process and improves the user experience; Matter Protocol supports low-power devices, which helps reduce the energy consumption of smart home devices; Matter Protocol supports various types of smart home devices, such as lighting, switches, sensors, etc., and has good scalability to adapt to the development of future technologies. The launch of the Matter Protocol can promote the development of the smart home market and provide users with a more convenient, secure and unified smart home experience.
[0031] As introduced in the background technology, the devices in the smart home field in the prior art lack a linkage mechanism. To solve the above problem, the embodiments of the present application provide a device control method based on the Matter protocol, a device control device based on the Matter protocol, and a computer program product.
[0032] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0033] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a device control method based on the Matter protocol according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0034] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the device control method based on the Matter protocol in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific network example 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, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0035] In this embodiment, a device control method based on the Matter protocol running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0036] Figure 2 : is a flowchart of a device control method based on the Matter protocol according to an embodiment of the present application. Figure 2 As shown, the method is applied to a terminal, the terminal is connected to a local area network, the local area network includes a hub device and a sub-device, the hub device and the sub-device communicate through the Matter protocol, and the method includes the following steps:
[0037] Step S201, after the terminal and the local area network complete network deployment, control the central device to obtain the current health data of the target user, and control the sub-device to obtain the current environment data corresponding to the indoor environment where the target user is located;
[0038] Specifically, the structural diagram of the Matter ecosystem is as follows: Figure 3As shown, the APP terminal is the above-mentioned terminal, the local area network includes a central device and sub-devices, the smart bracelet can be the above-mentioned central device, the monitoring device and the execution device can be the above-mentioned sub-devices, the APP terminal and the smart bracelet are remotely transmitted through the Internet, and the smart bracelet and the execution device communicate through the Matter protocol. The detection device can be a temperature and humidity sensor or a smart home monitoring device, and the above-mentioned execution device can be air conditioners, humidifiers, door and window ventilation systems, air purifiers and other equipment.
[0039] Step S202, controlling the central device to receive the current environment data, and generating an environment adjustment instruction according to the current health data and the current environment data, wherein the environment adjustment instruction is used to adjust the environmental conditions of the indoor environment;
[0040] Specifically, the above health data include the user's sleep quality, heart rate and pulse, weight and body fat, blood pressure and blood sugar, and activity level. The sleep quality can be monitored by a smart mattress or sleep monitoring device, which can monitor the user's sleep time, deep sleep time, light sleep time and other data; a smart watch or health monitoring device can monitor the user's heart rate and pulse data in real time; a smart scale can measure the user's weight and body fat ratio; a smart blood pressure meter and a blood glucose meter can monitor the user's blood pressure and blood sugar level; a smart bracelet or watch can record the user's exercise data, such as the number of steps, calories consumed, etc. Environmental data include temperature, humidity, air quality, light and noise in the indoor environment, among which a smart thermostat can monitor the indoor temperature to ensure comfort; a smart hygrometer can detect indoor humidity to prevent discomfort caused by dampness or dryness; an air quality monitor can detect the concentration of indoor pollutants such as PM2.5, formaldehyde, and carbon dioxide; a smart lighting system can monitor the indoor light intensity and automatically adjust the light brightness; a smart noise monitor can detect the indoor noise level to help maintain a quiet living environment. In actual applications, environmental adjustment instructions may be generated based only on current health data; or environmental adjustment instructions may be generated based only on current environmental data.
[0041] Step S203, controlling the central device to send the environmental adjustment instruction to the sub-device via the Matter protocol, and adjusting the working state of the sub-device according to the environmental adjustment instruction.
[0042] Specifically, according to the above-mentioned environment adjustment instructions, the working state of the sub-device can be adjusted manually or automatically. For example: according to the indoor temperature and humidity, the smart thermostat automatically adjusts the air conditioning or heating equipment to maintain a constant temperature and humidity indoors; according to the air quality data, the smart air purifier automatically turns on or off to purify the indoor air; according to the light intensity, the smart lighting system automatically adjusts the light brightness to protect the user's eyesight; according to the noise level, the smart audio system automatically adjusts the volume to maintain a comfortable living environment; according to the user's health data, the smart home system can automatically remind the user to rest, exercise or adjust their living habits.
[0043] Through this embodiment, a device control method based on the Matter protocol is provided, which is applied to a terminal, and the terminal is communicatively connected to a local area network. The local area network includes a central device and sub-devices, and the central device and the sub-devices communicate through the Matter protocol. First, after the terminal and the local area network complete network deployment, the central device is controlled to obtain the current health data of the target user, and the sub-device is controlled to obtain the current environmental data corresponding to the indoor environment where the target user is located; then, the central device is controlled to receive the current environmental data, and generate an environmental adjustment instruction based on the current health data and the current environmental data, wherein the environmental adjustment instruction is used to adjust the environmental conditions of the indoor environment; finally, the central device is controlled to send the environmental adjustment instruction to the sub-device through the Matter protocol, and adjust the working state of the sub-device according to the environmental adjustment instruction. In this solution, the central device and sub-devices in the local area network communicate through the Matter protocol, and based on the superiority of the interconnection and interoperability of the matter protocol, the linkage between the central device and the sub-devices is realized; further, the user health data is obtained through the central device, and the environmental devices are obtained through the sub-devices, and then the sub-devices are mobilized and operated in real time according to the health data and environmental data, to achieve rapid linkage between devices, adjust the environmental conditions of the indoor environment, and establish a comfortable indoor environment, thereby solving the technical problem of the lack of linkage mechanism for devices in the smart home field in the prior art.
[0044] In the specific implementation process, the above-mentioned sub-devices include Matter devices that support the above-mentioned Matter protocol and non-Matter devices that do not support the above-mentioned Matter protocol. The above-mentioned step S201 can be implemented through the following steps: Step S2011, after performing the initialization operation, connect the above-mentioned Matter device and the above-mentioned non-Matter device; Step S2012, send a networking request to the above-mentioned central device and the above-mentioned sub-device, wherein the above-mentioned networking request is used to request to establish a connection with the above-mentioned central device and the above-mentioned sub-device; Step S2013, determine whether the first response information sent by the above-mentioned central device and the above-mentioned sub-device is received, and in the case of receiving the above-mentioned first response information, determine that the above-mentioned terminal and the above-mentioned local area network have completed the network deployment, wherein the above-mentioned first response information is used to characterize that the above-mentioned central device or the above-mentioned sub-device responds to the above-mentioned networking request. This method can further quickly complete the network deployment of the terminal and the local area network.
[0045] Specifically, network deployment of terminals and local area networks involves the process of providing network connections for various devices (such as computers, home appliances, servers, etc.) in various environments. This process includes planning, designing, implementing and maintaining terminal devices and local area networks to ensure that they can communicate efficiently and securely. First, it is necessary to understand the network scale, the expected number of users, device types and application scenarios. Based on the demand analysis, network planning is carried out, including selecting a suitable network architecture (such as star, ring or mesh structure), determining the network topology, planning network address allocation (such as IP address allocation) and selecting suitable network devices (such as routers, switches, wireless access points, etc.). Configure network settings for terminal devices, including assigning IP addresses, subnet masks, default gateways and DNS servers, etc. This can be done through manual configuration or using automated tools (such as network management software). After the network deployment is completed, network testing and verification are carried out to ensure that the communication between network devices and terminal devices is normal. This may include testing network speed, connection stability, and data transmission; deploying appropriate security policies for the LAN, including setting up firewalls, configuring access control lists, implementing encrypted communications, and regularly updating security patches; implementing network monitoring and management tools to monitor network performance in real time, detect and resolve network failures, optimize network resources, and maintain network security. The control terminal issues a networking request, so that the sub-device responds to the above networking request and establishes a connection. The networking process uses a secure session establishment mechanism based on a shared password or certificate to complete security authentication.
[0046] In order to further improve the effectiveness of executing the initialization operation, the above-mentioned step S2011 of the present application can be implemented through the following steps: step S20111, sending unique identification information to the above-mentioned central device and the above-mentioned sub-device, and the above-mentioned unique identification information is used to uniquely identify the above-mentioned terminal; step S20112, determining whether the second response information sent by the above-mentioned central device and the above-mentioned sub-device is received, and when the above-mentioned second response information is received, determining that the execution of the above-mentioned initialization operation is completed, and the above-mentioned second response information is used to represent the response to the above-mentioned unique identification information.
[0047] Specifically, the device performs initialization operations, including basic settings and startup of the device. The device generates a unique device identification code for subsequent communication and identification.
[0048] The above sub-device also includes a bridge device, and the above step S201 can also be implemented in other ways, for example: step S20113, controlling the above non-Matter device to be mapped as a bridge device, wherein the above bridge device is used to convert and relay data between different communication protocols; step S20114, connecting the above Matter device and the mirrored bridge device. This method can further quickly realize the communication connection between the Matter device and the non-Matter device.
[0049] Specifically, bridge devices can provide a way to bring non-Matter devices into the Matter ecosystem. Furthermore, non-Matter devices will be mapped as bridge devices and presented in the Matter ecosystem. After that, Matter nodes in the same Matter ecosystem can interact with standard Matter devices and mirrored bridge devices at the same time.
[0050] The schematic diagram of Matter networking process is as follows Figure 4As shown, a Matter device is used as a multi-device ecological control terminal for interaction. In this system, an APP with multi-device management function is used as the control terminal, hereinafter referred to as the control terminal; the device performs initialization operations, including basic settings and startup of the device, and the device will generate a unique device identification code for subsequent communication and identification; in this system, multiple smart devices, such as smart bracelets, temperature and humidity sensors, smart home monitoring, air conditioners, humidifiers, air purifiers, and door and window ventilation systems, are used as sub-devices to monitor the home environment and personnel health and execute system instructions. Sub-devices are divided into Matter devices and non-Matter devices. If it is a non-Matter device, it can be added to the Matter network through a bridge device. The bridge device converts and relays data between different protocols, thereby allowing non-Matter protocol devices to communicate with the Matter ecosystem; the control terminal issues a networking request, so that the sub-device responds to the above networking request and establishes a connection; receives the response information fed back by each sub-device, and determines whether the sub-device has successfully passed the security authentication and established a connection based on the response information. If so, the control terminal integrates the paired sub-device information and displays the current device number, device status and other information through the interface; if not, it will repeat the joining request three times. The sub-devices that establish the connection above will be added to the Matter ecosystem and matched with the control node; after the Matter ecosystem is established, the above-mentioned matched nodes and sub-devices will be connected at the user level. It should be noted that in the Matter ecosystem, the smart bracelet has the function of a system judgment center, which can receive the status of other sub-devices in real time, and can also determine whether the current indoor environment should be adjusted according to environmental changes, user's physical condition and other data, and mobilize and control other sub-devices. All processes will synchronize real-time information to the control terminal through the Internet or Matter network, and feedback and update device status and data.
[0051] In some embodiments, the sub-device at least includes a monitoring device, and step S201 can be implemented by the following steps: step S2014, determining whether the target user exists in the indoor environment at the current moment; step S2015, obtaining the location of the target user in the indoor environment to obtain the target location; step S2016, controlling the monitoring device to obtain the biological data of the target user at the target location or the living habit data of the target user to obtain the current health data; step S2017, controlling the monitoring device to obtain at least one of the current temperature of the indoor environment, the current humidity of the indoor environment, the current light intensity of the indoor environment, the current air quality of the indoor environment, and the current noise level of the indoor environment to obtain the current environment data. This method can further quickly obtain the current health data and current environment data.
[0052] Specifically, after completing the above matching function, the monitoring system can enter low-power mode. In daily use scenarios, it is no longer necessary to turn on image monitoring all the time. Only by obtaining sound information, it can determine the composition and location of the current family members, reduce the power consumption of the equipment, and reduce the information processing process. In special cases, the two can also work together: when the light in the home is weak and the monitoring image is not enough to obtain accurate information, the use of voiceprint and sound source recognition can assist in obtaining family information; when the family members are more complicated, such as too many members and unrecognized voiceprints, etc., the monitoring image acquisition can be turned on to assist in the identification of the current family information and update the database information in real time.
[0053] In another embodiment, step S2014 can be implemented by the following steps: step S20141, obtaining historical voiceprint data and target voiceprint data, wherein the historical voiceprint data is the voiceprint data of the user in the indoor environment obtained before the current moment, and the target voiceprint data is the voiceprint data of the user in the indoor environment obtained at the current moment; step S20142, inputting the target voiceprint data into the user prediction model to obtain the target user, wherein the user prediction model is trained by machine learning using multiple groups of historical data, and each group of the multiple groups of historical data includes: the historical voiceprint data and the user corresponding to the historical voiceprint data, and the target user is the user corresponding to the target voiceprint data. This method can improve the accuracy of target user identification.
[0054] Specifically, after the network is successfully established, each device enters the working state. In the first working state, the intelligent monitoring does not have the matching information of the family members' identities and voiceprints. Here, the intelligent monitoring is set to have the sound capture function. The intelligent monitoring will try to collect the image information of the family members. At this time, the microphone array locates the sound source of the sound target corresponding to the sound data according to the time difference of the received sound arrival, so as to obtain the position of the sound target, assist the intelligent monitoring to adjust the shooting angle, and better complete the acquisition of family members' picture information. Through the comparison of a large amount of image and sound data, the matching of family members and their corresponding voiceprints is completed, and the ability to determine the personnel information based on the voiceprint is achieved, and the training of the above-mentioned user prediction model is completed.
[0055] Step S202 can be implemented by the following steps: Step S2021, determine whether the change rate of the above-mentioned current health data within a unit time is greater than the change rate threshold; Step S2022, if the change rate of the above-mentioned current health data within a unit time is greater than the change rate threshold, determine the size relationship between the target parameter and the corresponding target parameter threshold, the above-mentioned target parameter is one of the above-mentioned current temperature, the above-mentioned current humidity, the above-mentioned current light intensity, the above-mentioned current air quality and the above-mentioned current noise level, the above-mentioned target parameter corresponds to the above-mentioned target parameter threshold one by one, and the above-mentioned living habit data includes the above-mentioned target parameter threshold; Step S2023, if the above-mentioned target parameter is greater than or equal to the corresponding above-mentioned target parameter threshold, determine that the environmental condition that reduces the above-mentioned environmental condition corresponding to the above-mentioned target parameter is the above-mentioned environmental adjustment instruction; Step S2024, if the above-mentioned target parameter is less than the corresponding above-mentioned target parameter threshold, determine that the environmental condition that increases the above-mentioned environmental condition corresponding to the above-mentioned target parameter is the above-mentioned environmental adjustment instruction, wherein the above-mentioned target user's living habit data includes the above-mentioned target parameter threshold. This method can further quickly generate the above-mentioned environmental adjustment instruction.
[0056] Specifically, take the comfortable sleep mode as an example: at 11 o'clock in the evening, the user is ready to go to sleep. The smart health monitoring bracelet, that is, the central device, detects that the user's body temperature and heart rate are gradually decreasing, indicating that the user is about to fall asleep. At the same time, the environmental monitoring device, that is, the sub-device, detects that the temperature in the bedroom is 23°C, the humidity is 40%, and the light brightness is high. Based on these data, the central device automatically switches to the comfortable sleep mode; adjusts the air conditioning temperature to 26°C, a suitable sleeping temperature; turns on the humidifier and adjusts the humidity to 50% to create a comfortable sleeping environment; reduces the light brightness to 10%, and adjusts the light color temperature to warm colors to help users relax; turns off the TV or other interference sources to ensure a quiet environment.
[0057] The sub-device further includes an execution device, and the step S203 can be implemented by the following steps: Step S2031, controlling the working state of the execution device to point to the target user. This method can further improve the accuracy of adjusting the working state of the sub-device.
[0058] Specifically, for example, if a user has just finished a certain intensity of physical exercise and has a high body temperature, based on the above comprehensive information, the air outlet of the air conditioner is adjusted to point to the user and the air conditioner temperature is lowered to the optimal temperature. If the environment is detected to be too dry, the humidifier is automatically turned on; if the external environment quality is poor, the doors and windows are automatically closed and the air purifier is turned on.
[0059] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the device control method based on the Matter protocol of the present application will be described in detail below in combination with specific embodiments.
[0060] This embodiment relates to a specific device control method based on the Matter protocol, the terminal is a mobile phone APP, the central device is a smart bracelet, and the sub-devices include a monitoring device and an execution device, such as Figure 5 As shown, the following steps are included:
[0061] Step S1: The smart bracelet collects user health data, and the monitoring device collects family and surrounding environment data (temperature, humidity, air quality, family members, etc.);
[0062] Step S2: The smart bracelet analyzes and processes the health data and environmental data, and generates environmental adjustment instructions according to the environmental adjustment plan;
[0063] Step S3: The execution device receives the environment adjustment instruction and executes the corresponding adjustment task;
[0064] Step S4: The smart bracelet receives the execution feedback from the execution device and synchronizes the data to the mobile phone APP;
[0065] Step S5: The mobile phone APP conducts a comprehensive analysis of the data, generates and updates customized environmental adjustment plans to meet the needs of different users, and generates a health report for users to query.
[0066] The embodiment of the present application also provides a device control device based on the Matter protocol. It should be noted that the device control device based on the Matter protocol in the embodiment of the present application can be used to execute the device control method based on the Matter protocol provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0067] The following is an introduction to the device control device based on the Matter protocol provided in an embodiment of the present application.
[0068] Figure 6 Schematic diagram of a device control device based on the Matter protocol according to an embodiment of the present application. Figure 6 As shown, the device is applied to a terminal, the terminal is connected to a local area network, the local area network includes a hub device and a sub-device, the hub device communicates with the sub-device via a Matter protocol, and the device includes:
[0069] The first control unit 10 is used to control the central device to obtain the current health data of the target user and control the sub-device to obtain the current environment data corresponding to the indoor environment where the target user is located after the terminal and the local area network complete network deployment;
[0070] Specifically, the structural diagram of the Matter ecosystem is as follows: Figure 3 As shown, the APP terminal is the above-mentioned terminal, the local area network includes a central device and sub-devices, the smart bracelet can be the above-mentioned central device, the monitoring device and the execution device can be the above-mentioned sub-devices, the APP terminal and the smart bracelet are remotely transmitted through the Internet, and the smart bracelet and the execution device communicate through the Matter protocol. The detection device can be a temperature and humidity sensor or a smart home monitoring device, and the above-mentioned execution device can be air conditioners, humidifiers, door and window ventilation systems, air purifiers and other equipment.
[0071] The second control unit 20 is used to control the central device to receive the current environment data, and generate an environment adjustment instruction according to the current health data and the current environment data, wherein the environment adjustment instruction is used to adjust the environmental conditions of the indoor environment;
[0072] Specifically, the above health data include the user's sleep quality, heart rate and pulse, weight and body fat, blood pressure and blood sugar, and activity level. The sleep quality can be monitored by a smart mattress or sleep monitoring device, which can monitor the user's sleep time, deep sleep time, light sleep time and other data; a smart watch or health monitoring device can monitor the user's heart rate and pulse data in real time; a smart scale can measure the user's weight and body fat ratio; a smart blood pressure meter and a blood glucose meter can monitor the user's blood pressure and blood sugar level; a smart bracelet or watch can record the user's exercise data, such as the number of steps, calories consumed, etc. Environmental data include temperature, humidity, air quality, light and noise in the indoor environment, among which a smart thermostat can monitor the indoor temperature to ensure comfort; a smart hygrometer can detect indoor humidity to prevent discomfort caused by dampness or dryness; an air quality monitor can detect the concentration of indoor pollutants such as PM2.5, formaldehyde, and carbon dioxide; a smart lighting system can monitor the indoor light intensity and automatically adjust the light brightness; a smart noise monitor can detect the indoor noise level to help maintain a quiet living environment. In actual applications, environmental adjustment instructions may be generated based only on current health data; or environmental adjustment instructions may be generated based only on current environmental data.
[0073] The third control unit 30 is used to control the central device to send the environmental adjustment instruction to the sub-device through the Matter protocol, and adjust the working state of the sub-device according to the environmental adjustment instruction.
[0074] Specifically, according to the above-mentioned environment adjustment instructions, the working state of the sub-device can be adjusted manually or automatically. For example: according to the indoor temperature and humidity, the smart thermostat automatically adjusts the air conditioning or heating equipment to maintain a constant temperature and humidity indoors; according to the air quality data, the smart air purifier automatically turns on or off to purify the indoor air; according to the light intensity, the smart lighting system automatically adjusts the light brightness to protect the user's eyesight; according to the noise level, the smart audio system automatically adjusts the volume to maintain a comfortable living environment; according to the user's health data, the smart home system can automatically remind the user to rest, exercise or adjust their living habits.
[0075] Through this embodiment, a device control device based on the Matter protocol is provided, which is applied to a terminal. The terminal is communicatively connected to a local area network. The local area network includes a central device and sub-devices. The central device and the sub-devices communicate through the Matter protocol. After the terminal and the local area network complete network deployment, the first control unit controls the central device to obtain the current health data of the target user, and controls the sub-device to obtain the current environmental data corresponding to the indoor environment where the target user is located; the second control unit controls the central device to receive the current environmental data, and generates an environmental adjustment instruction based on the current health data and the current environmental data, wherein the environmental adjustment instruction is used to adjust the environmental conditions of the indoor environment; the third control unit controls the central device to send the environmental adjustment instruction to the sub-device through the Matter protocol, and adjusts the working state of the sub-device according to the environmental adjustment instruction. In this solution, the central device and sub-devices in the local area network communicate through the Matter protocol, and based on the superiority of the interconnection and interoperability of the matter protocol, the linkage between the central device and the sub-devices is realized; further, the user health data is obtained through the central device, and the environmental devices are obtained through the sub-devices, and then the sub-devices are mobilized and operated in real time according to the health data and environmental data, to achieve rapid linkage between devices, adjust the environmental conditions of the indoor environment, and establish a comfortable indoor environment, thereby solving the technical problem of the lack of linkage mechanism for devices in the smart home field in the prior art.
[0076] In the specific implementation process, the above-mentioned sub-devices include Matter devices that support the above-mentioned Matter protocol and non-Matter devices that do not support the above-mentioned Matter protocol. The above-mentioned first control unit includes a first connection module, a sending module and a first determination module, wherein the first connection module is used to connect the above-mentioned Matter device and the above-mentioned non-Matter device after performing the initialization operation; the sending module is used to send a networking request to the above-mentioned central device and the above-mentioned sub-device, wherein the above-mentioned networking request is used to request to establish a connection with the above-mentioned central device and the above-mentioned sub-device; the first determination module is used to determine whether the first response information sent by the above-mentioned central device and the above-mentioned sub-device is received, and in the case of receiving the above-mentioned first response information, it is determined that the above-mentioned terminal and the above-mentioned local area network have completed the network deployment, wherein the above-mentioned first response information is used to characterize that the above-mentioned central device or the above-mentioned sub-device responds to the above-mentioned networking request. The device can further quickly complete the network deployment of the terminal and the local area network.
[0077] Specifically, network deployment of terminals and local area networks involves the process of providing network connections for various devices (such as computers, home appliances, servers, etc.) in various environments. This process includes planning, designing, implementing and maintaining terminal devices and local area networks to ensure that they can communicate efficiently and securely. First, it is necessary to understand the network scale, the expected number of users, device types and application scenarios. Based on the demand analysis, network planning is carried out, including selecting a suitable network architecture (such as star, ring or mesh structure), determining the network topology, planning network address allocation (such as IP address allocation) and selecting suitable network devices (such as routers, switches, wireless access points, etc.). Configure network settings for terminal devices, including assigning IP addresses, subnet masks, default gateways and DNS servers, etc. This can be done through manual configuration or using automated tools (such as network management software). After the network deployment is completed, network testing and verification are carried out to ensure that the communication between network devices and terminal devices is normal. This may include testing network speed, connection stability, and data transmission; deploying appropriate security policies for the LAN, including setting up firewalls, configuring access control lists, implementing encrypted communications, and regularly updating security patches; implementing network monitoring and management tools to monitor network performance in real time, detect and resolve network failures, optimize network resources, and maintain network security. The control terminal issues a networking request, so that the sub-device responds to the above networking request and establishes a connection. The networking process uses a secure session establishment mechanism based on a shared password or certificate to complete security authentication.
[0078] In order to further improve the effectiveness of executing the initialization operation, the above-mentioned connection module of the present application includes a sending sub-module and a determining sub-module, wherein the sending sub-module is used to send unique identification information to the above-mentioned central device and the above-mentioned sub-device, and the above-mentioned unique identification information is used to uniquely identify the above-mentioned terminal; the determining sub-module is used to determine whether the second response information sent by the above-mentioned central device and the above-mentioned sub-device is received, and when the above-mentioned second response information is received, it is determined that the execution of the above-mentioned initialization operation is completed, and the above-mentioned second response information is used to represent the response to the above-mentioned unique identification information.
[0079] Specifically, the device performs initialization operations, including basic settings and startup of the device. The device generates a unique device identification code for subsequent communication and identification.
[0080] The sub-device further includes a bridge device, and the first control unit includes a first control module and a second connection module, wherein the first control module is used to control the non-Matter device to be mapped as a bridge device, wherein the bridge device is used to convert and relay data between different communication protocols; and the second connection module is used to connect the Matter device and the mirrored bridge device. The device can further quickly realize the communication connection between the Matter device and the non-Matter device.
[0081] Specifically, bridge devices can provide a way to bring non-Matter devices into the Matter ecosystem. Furthermore, non-Matter devices will be mapped as bridge devices and presented in the Matter ecosystem. After that, Matter nodes in the same Matter ecosystem can interact with standard Matter devices and mirrored bridge devices at the same time.
[0082] The schematic diagram of Matter networking process is as follows Figure 4As shown, a Matter device is used as a multi-device ecological control terminal for interaction. In this system, an APP with multi-device management function is used as the control terminal, hereinafter referred to as the control terminal; the device performs initialization operations, including basic settings and startup of the device, and the device will generate a unique device identification code for subsequent communication and identification; in this system, multiple smart devices, such as smart bracelets, temperature and humidity sensors, smart home monitoring, air conditioners, humidifiers, air purifiers, and door and window ventilation systems, are used as sub-devices to monitor the home environment and personnel health and execute system instructions. Sub-devices are divided into Matter devices and non-Matter devices. If it is a non-Matter device, it can be added to the Matter network through a bridge device. The bridge device converts and relays data between different protocols, thereby allowing non-Matter protocol devices to communicate with the Matter ecosystem; the control terminal issues a networking request, so that the sub-device responds to the above networking request and establishes a connection; receives the response information fed back by each sub-device, and determines whether the sub-device has successfully passed the security authentication and established a connection based on the response information. If so, the control terminal integrates the paired sub-device information and displays the current device number, device status and other information through the interface; if not, it will repeat the joining request three times. The sub-devices that establish the connection above will be added to the Matter ecosystem and matched with the control node; after the Matter ecosystem is established, the above-mentioned matched nodes and sub-devices will be connected at the user level. It should be noted that in the Matter ecosystem, the smart bracelet has the function of a system judgment center, which can receive the status of other sub-devices in real time, and can also determine whether the current indoor environment should be adjusted according to environmental changes, user's physical condition and other data, and mobilize and control other sub-devices. All processes will synchronize real-time information to the control terminal through the Internet or Matter network, and feedback and update device status and data.
[0083] In some embodiments, the sub-device at least includes a monitoring device, and the first control unit includes a second determination module, an acquisition module, a second control module, and a third control module, wherein the second determination module is used to determine whether the target user exists in the indoor environment at the current moment; the acquisition module is used to obtain the location of the target user in the indoor environment to obtain the target location; the second control module is used to control the monitoring device to obtain the biological data of the target user located at the target location or the living habit data of the target user to obtain the current health data; the third control module is used to control the monitoring device to obtain at least one of the current temperature of the indoor environment, the current humidity of the indoor environment, the current light intensity of the indoor environment, the current air quality of the indoor environment, and the current noise level of the indoor environment to obtain the current environment data. The device can further quickly obtain the current health data and the current environment data.
[0084] Specifically, after completing the above matching function, the monitoring system can enter low-power mode. In daily use scenarios, it is no longer necessary to turn on image monitoring all the time. Only by obtaining sound information, it can determine the composition and location of the current family members, reduce the power consumption of the equipment, and reduce the information processing process. In special cases, the two can also work together: when the light in the home is weak and the monitoring image is not enough to obtain accurate information, the use of voiceprint and sound source recognition can assist in obtaining family information; when the family members are more complicated, such as too many members and unrecognized voiceprints, etc., the monitoring image acquisition can be turned on to assist in the identification of the current family information and update the database information in real time.
[0085] In another embodiment, the second determination module includes an acquisition submodule and an input submodule, wherein the acquisition submodule is used to acquire historical voiceprint data and target voiceprint data, wherein the historical voiceprint data is the voiceprint data of the user in the indoor environment acquired before the current moment, and the target voiceprint data is the voiceprint data of the user in the indoor environment acquired at the current moment; the input submodule is used to input the target voiceprint data into the user prediction model to obtain the target user, wherein the user prediction model is trained by machine learning using multiple groups of historical data, and each group of the multiple groups of historical data includes: the historical voiceprint data and the user corresponding to the historical voiceprint data, and the target user is the user corresponding to the target voiceprint data. The device can improve the accuracy of target user identification.
[0086] Specifically, after the network is successfully established, each device enters the working state. In the first working state, the intelligent monitoring does not have the matching information of the family members' identities and voiceprints. Here, the intelligent monitoring is set to have the sound capture function. The intelligent monitoring will try to collect the image information of the family members. At this time, the microphone array locates the sound source of the sound target corresponding to the sound data according to the time difference of the received sound arrival, so as to obtain the position of the sound target, assist the intelligent monitoring to adjust the shooting angle, and better complete the acquisition of family members' picture information. Through the comparison of a large amount of image and sound data, the matching of family members and their corresponding voiceprints is completed, and the ability to determine the personnel information based on the voiceprint is achieved, and the training of the above-mentioned user prediction model is completed.
[0087] The second control unit includes a third determination module, a fourth determination module, a fifth determination module and a sixth determination module, wherein the third determination module is used to determine whether the change rate of the above-mentioned current health data within a unit time is greater than the change rate threshold; the fourth determination module is used to determine the magnitude relationship between the target parameter and the corresponding target parameter threshold when the change rate of the above-mentioned current health data within a unit time is greater than the change rate threshold, the above-mentioned target parameter is one of the above-mentioned current temperature, the above-mentioned current humidity, the above-mentioned current light intensity, the above-mentioned current air quality and the above-mentioned current noise level, the above-mentioned target parameter corresponds to the above-mentioned target parameter threshold one by one, and the above-mentioned living habit data includes the above-mentioned target parameter threshold; the fifth determination module is used to determine that the environmental condition that reduces the above-mentioned environmental condition corresponding to the above-mentioned target parameter is the above-mentioned environmental adjustment instruction when the above-mentioned target parameter is greater than or equal to the corresponding above-mentioned target parameter threshold; the sixth determination module is used to determine that the environmental condition that increases the above-mentioned environmental condition corresponding to the above-mentioned target parameter is the above-mentioned environmental adjustment instruction when the above-mentioned target parameter is less than the corresponding above-mentioned target parameter threshold, wherein the above-mentioned target user's living habit data includes the above-mentioned target parameter threshold. The device can further quickly generate the above-mentioned environmental adjustment instruction.
[0088] Specifically, take the comfortable sleep mode as an example: at 11 o'clock in the evening, the user is ready to go to sleep. The smart health monitoring bracelet, that is, the central device, detects that the user's body temperature and heart rate are gradually decreasing, indicating that the user is about to fall asleep. At the same time, the environmental monitoring device, that is, the sub-device, detects that the temperature in the bedroom is 23°C, the humidity is 40%, and the light brightness is high. Based on these data, the central device automatically switches to the comfortable sleep mode; adjusts the air conditioning temperature to 26°C, a suitable sleeping temperature; turns on the humidifier and adjusts the humidity to 50% to create a comfortable sleeping environment; reduces the light brightness to 10%, and adjusts the light color temperature to warm colors to help users relax; turns off the TV or other interference sources to ensure a quiet environment.
[0089] The sub-device further includes an execution device, and the third control unit includes a fourth control module, which is used to control the working state of the execution device to be directed to the target user. This method can further improve the accuracy of adjusting the working state of the sub-device.
[0090] Specifically, for example, if a user has just finished a certain intensity of physical exercise and has a high body temperature, based on the above comprehensive information, the air outlet of the air conditioner is adjusted to point to the user and the air conditioner temperature is lowered to the optimal temperature. If the environment is detected to be too dry, the humidifier is automatically turned on; if the external environment quality is poor, the doors and windows are automatically closed and the air purifier is turned on.
[0091] The device control apparatus based on the MATTER protocol includes a processor and a memory. The first control unit, the second control unit, and the third control unit are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.
[0092] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set to control the device based on the Matter protocol by adjusting the kernel parameters.
[0093] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0094] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the device control method based on the MATTER protocol.
[0095] Specifically, the device control method based on the MATTER protocol includes:
[0096] Step S201, after the terminal and the local area network complete network deployment, control the central device to obtain the current health data of the target user, and control the sub-device to obtain the current environment data corresponding to the indoor environment where the target user is located;
[0097] Step S202, controlling the central device to receive the current environment data, and generating an environment adjustment instruction according to the current health data and the current environment data, wherein the environment adjustment instruction is used to adjust the environmental conditions of the indoor environment;
[0098] Step S203, controlling the central device to send the environmental adjustment instruction to the sub-device via the Matter protocol, and adjusting the working state of the sub-device according to the environmental adjustment instruction.
[0099] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the device control method based on the MATTER protocol is executed when the program is running.
[0100] Specifically, the device control method based on the MATTER protocol includes:
[0101] Step S201, after the terminal and the local area network complete network deployment, control the central device to obtain the current health data of the target user, and control the sub-device to obtain the current environment data corresponding to the indoor environment where the target user is located;
[0102] Step S202, controlling the central device to receive the current environment data, and generating an environment adjustment instruction according to the current health data and the current environment data, wherein the environment adjustment instruction is used to adjust the environmental conditions of the indoor environment;
[0103] Step S203, controlling the central device to send the environmental adjustment instruction to the sub-device via the Matter protocol, and adjusting the working state of the sub-device according to the environmental adjustment instruction.
[0104] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0105] Step S201, after the terminal and the local area network complete network deployment, control the central device to obtain the current health data of the target user, and control the sub-device to obtain the current environment data corresponding to the indoor environment where the target user is located;
[0106] Step S202, controlling the central device to receive the current environment data, and generating an environment adjustment instruction according to the current health data and the current environment data, wherein the environment adjustment instruction is used to adjust the environmental conditions of the indoor environment;
[0107] Step S203, controlling the central device to send the environmental adjustment instruction to the sub-device via the Matter protocol, and adjusting the working state of the sub-device according to the environmental adjustment instruction.
[0108] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0109] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0110] Step S201, after the terminal and the local area network complete network deployment, control the central device to obtain the current health data of the target user, and control the sub-device to obtain the current environment data corresponding to the indoor environment where the target user is located;
[0111] Step S202, controlling the central device to receive the current environment data, and generating an environment adjustment instruction according to the current health data and the current environment data, wherein the environment adjustment instruction is used to adjust the environmental conditions of the indoor environment;
[0112] Step S203, controlling the central device to send the environmental adjustment instruction to the sub-device via the Matter protocol, and adjusting the working state of the sub-device according to the environmental adjustment instruction.
[0113] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0114] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0115] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0116] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0118] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0119] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0120] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0121] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0122] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0123] 1) The device control method based on the Matter protocol of the present application is applied to a terminal, and the terminal is communicatively connected to a local area network. The local area network includes a central device and sub-devices, and the central device and the sub-devices communicate through the Matter protocol. First, after the terminal and the local area network complete the network deployment, the central device is controlled to obtain the current health data of the target user, and the sub-device is controlled to obtain the current environmental data corresponding to the indoor environment where the target user is located; then, the central device is controlled to receive the current environmental data, and generate an environmental adjustment instruction based on the current health data and the current environmental data, wherein the environmental adjustment instruction is used to adjust the environmental conditions of the indoor environment; finally, the central device is controlled to send the environmental adjustment instruction to the sub-device through the Matter protocol, and adjust the working state of the sub-device according to the environmental adjustment instruction. In this solution, the central device and sub-devices in the local area network communicate through the Matter protocol, and based on the superiority of the interconnection and interoperability of the matter protocol, the linkage between the central device and the sub-devices is realized; further, the user health data is obtained through the central device, and the environmental devices are obtained through the sub-devices, and then the sub-devices are mobilized and operated in real time according to the health data and environmental data, to achieve rapid linkage between devices, adjust the environmental conditions of the indoor environment, and establish a comfortable indoor environment, thereby solving the technical problem of the lack of linkage mechanism for devices in the smart home field in the prior art.
[0124] 2) The device control device based on the Matter protocol of the present application is applied to a terminal, and the terminal is communicatively connected to a local area network. The local area network includes a central device and sub-devices. The central device and the sub-devices communicate through the Matter protocol. After the terminal and the local area network complete the network deployment, the first control unit controls the central device to obtain the current health data of the target user, and controls the sub-device to obtain the current environmental data corresponding to the indoor environment where the target user is located; the second control unit controls the central device to receive the current environmental data, and generates an environmental adjustment instruction based on the current health data and the current environmental data, wherein the environmental adjustment instruction is used to adjust the environmental conditions of the indoor environment; the third control unit controls the central device to send the environmental adjustment instruction to the sub-device through the Matter protocol, and adjusts the working state of the sub-device according to the environmental adjustment instruction. In this solution, the central device and sub-devices in the local area network communicate through the Matter protocol, and based on the superiority of the interconnection and interoperability of the matter protocol, the linkage between the central device and the sub-devices is realized; further, the user health data is obtained through the central device, and the environmental devices are obtained through the sub-devices, and then the sub-devices are mobilized and operated in real time according to the health data and environmental data, to achieve rapid linkage between devices, adjust the environmental conditions of the indoor environment, and establish a comfortable indoor environment, thereby solving the technical problem of the lack of linkage mechanism for devices in the smart home field in the prior art.
[0125] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A device control method based on the Matter protocol, characterized in that: Applied to a terminal, the terminal is connected to a local area network, the local area network includes a hub device and a sub-device, the hub device communicates with the sub-device via a Matter protocol, and the method includes: After the terminal and the local area network complete network deployment, control the central device to obtain the current health data of the target user, and control the sub-device to obtain the current environment data corresponding to the indoor environment where the target user is located; Controlling the central device to receive the current environment data, and generating an environment adjustment instruction according to the current health data and the current environment data, wherein the environment adjustment instruction is used to adjust the environmental conditions of the indoor environment; The central device is controlled to send the environmental adjustment instruction to the sub-device through the Matter protocol, and the working state of the sub-device is adjusted according to the environmental adjustment instruction.
2. The method according to claim 1, characterized in that The sub-devices include Matter devices that support the Matter protocol and non-Matter devices that do not support the Matter protocol, and the terminal and the local area network complete network deployment, including: After performing the initialization operation, connecting the Matter device and the non-Matter device; Sending a networking request to the hub device and the sub-device, wherein the networking request is used to request to establish a connection with the hub device and the sub-device; Determine whether the first response information sent by the central device and the sub-device is received. When the first response information is received, determine that the terminal and the local area network have completed network deployment, wherein the first response information is used to characterize that the central device or the sub-device responds to the networking request.
3. The method according to claim 2, characterized in that Perform initialization operations, including: Sending unique identification information to the central device and the sub-device, wherein the unique identification information is used to uniquely identify the terminal; Determine whether second response information sent by the central device and the sub-device is received, and if the second response information is received, determine that the initialization operation is completed, and the second response information is used to represent the response to the unique identification information.
4. The method according to claim 2, characterized in that: The sub-device also includes a bridge device, connecting the Matter device and the non-Matter device, including: Controlling the non-Matter device to be mapped as a bridge device, wherein the bridge device is used to convert and relay data between different communication protocols; Connect the Matter device and the mirrored bridge device.
5. The method according to claim 1, characterized in that The sub-device at least includes a monitoring device, controls the central device to obtain the current health data of the target user, and controls the sub-device to obtain the current environment data corresponding to the indoor environment where the target user is located, including: Determine whether the target user exists in the indoor environment at the current moment; When the target user exists in the indoor environment, acquiring the position of the target user to obtain a target position; Controlling the monitoring device to acquire biological data of the target user located at the target location or life habit data of the target user to obtain the current health data; The monitoring device is controlled to obtain at least one of the current temperature of the indoor environment, the current humidity of the indoor environment, the current light intensity of the indoor environment, the current air quality of the indoor environment and the current noise level of the indoor environment to obtain the current environment data.
6. The method according to claim 5, characterized in that Determining whether the target user exists in the indoor environment at the current moment includes: Acquire historical voiceprint data and target voiceprint data, wherein the historical voiceprint data is the voiceprint data of the user in the indoor environment acquired before the current moment, and the target voiceprint data is the voiceprint data of the user in the indoor environment acquired at the current moment; The target voiceprint data is input into a user prediction model to obtain the target user, wherein the user prediction model is trained by machine learning using multiple sets of historical data, each set of the multiple sets of historical data includes: the historical voiceprint data and the user corresponding to the historical voiceprint data, and the target user is the user corresponding to the target voiceprint data.
7. The method according to claim 5, characterized in that Generating an environment adjustment instruction according to the current health data and the current environment data includes: Determine whether the change rate of the current health data within a unit time is greater than a change rate threshold; In the case where the change rate of the current health data in a unit time is greater than the change rate threshold, determining the magnitude relationship between the target parameter and the corresponding target parameter threshold, the target parameter being one of the current temperature, the current humidity, the current light intensity, the current air quality, and the current noise level, the target parameter and the target parameter threshold corresponding one to one, and the living habit data including the target parameter threshold; In a case where the target parameter is greater than or equal to the corresponding target parameter threshold, determining an environmental condition that reduces the environmental condition corresponding to the target parameter as the environmental adjustment instruction; When the target parameter is less than the corresponding target parameter threshold, determining an environmental condition that increases the environmental condition corresponding to the target parameter is the environmental adjustment instruction, wherein the life habit data of the target user includes the target parameter threshold.
8. The method according to claim 1, characterized in that The sub-device further includes an execution device, which adjusts the working state of the sub-device according to the environment adjustment instruction, including: The working state of the execution device is controlled to be directed to the target user.
9. A device control device based on the Matter protocol, characterized in that: Applied to a terminal, the terminal is connected to a local area network, the local area network includes a hub device and a sub-device, the hub device communicates with the sub-device via a Matter protocol, and the device includes: A first control unit is used to control the central device to obtain the current health data of the target user and control the sub-device to obtain the current environment data corresponding to the indoor environment where the target user is located after the terminal and the local area network complete network deployment; a second control unit, configured to control the central device to receive the current environment data, and generate an environment adjustment instruction according to the current health data and the current environment data, wherein the environment adjustment instruction is used to adjust the environment conditions of the indoor environment; The third control unit is used to control the central device to send the environmental adjustment instruction to the sub-device through the Matter protocol, and adjust the working state of the sub-device according to the environmental adjustment instruction.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
