Control method of Internet of Things equipment, server, storage medium and electronic equipment

By receiving control requests from user terminals and obtaining the current status and permission information of the Internet of Things device, and sending control instructions to the target Internet of Things device, solving the single point of failure and data security risks of the centralized control mode in the smart home system, realizing the Decentralized device control and higher system stability and user experience.

CN119496809AActive Publication Date: 2025-02-21GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411626611.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-02-21
Estimated Expiration
2044-11-14

AI Technical Summary

Technical Problem

Most of the smart home systems on the market currently adopt a centralized control mode, which has problems such as single point of failure and data security risks, and lacks efficient and accurate solutions.

Method used

Provide a control method for an IoT device, by receiving the control request of the user terminal, obtaining the current device status of the target IoT device and the user permission information of the user terminal, and sending control instructions to the target IoT device based on this information to realize the Centralized equipment control.

Benefits of technology

This method improves the stability of the smart home system, avoids system paralysis caused by single point of failure, protects user privacy and device security, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496809A_ABST
    Figure CN119496809A_ABST
Patent Text Reader

Abstract

The invention provides a control method of Internet of Things equipment, a server, a storage medium and electronic equipment, and the method comprises the steps: receiving a control request which is sent by a user terminal and aims at target Internet of Things equipment; acquiring a current equipment state of the target Internet of Things equipment, and acquiring user permission information of the user terminal; and sending a control instruction to the target Internet of Things equipment according to the current equipment state and the user permission information. The technical problem that a system is unstable due to the fact that a centralized control mode is adopted in related technologies is solved, meanwhile, instruction issuing is carried out through the current equipment state and the user permission information, user privacy and equipment safety are protected, and user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a control method for an Internet of Things device, a server, a storage medium, and an electronic device. Background Art

[0002] In the related technologies, with the rapid development of Internet of Things technology, smart home has become an important part of modern life. However, most of the smart home systems on the market currently adopt a centralized control mode, which has problems such as single point failure and data security risks.

[0003] With respect to the above-mentioned problems existing in the related technologies, no efficient and accurate solutions have been found yet. Summary of the invention

[0004] The present invention provides a control method for an Internet of Things device, a server, a storage medium, and an electronic device to solve technical problems in related technologies.

[0005] According to one embodiment of the present invention, a control method for an Internet of Things device is provided, comprising: receiving a control request for a target Internet of Things device sent by a user terminal; obtaining a current device state of the target Internet of Things device, and obtaining user authority information of the user terminal; and sending a control instruction to the target Internet of Things device according to the current device state and the user authority information.

[0006] Optionally, sending a control instruction to the target IoT device according to the current device state and the user authority information includes: determining an authority scope of the user terminal according to the user authority information; parsing a request instruction of the control request; determining whether the authority scope includes authority to issue the request instruction; if the authority scope includes authority to issue the request instruction, sending a control instruction to the target IoT device based on the current device state.

[0007] Optionally, sending a control instruction to the target IoT device based on the current device state includes: determining a basic state set that the target IoT device supports the request instruction; judging whether the basic state set includes the current device state; if the basic state set includes the current device state, sending the request instruction to the target IoT device, wherein the control instruction includes the request instruction.

[0008] Optionally, after determining whether the basic state set includes the current device state, the method further includes: if the basic state set does not include the current device state, searching the basic state set for a target state that best matches the request instruction; sending a state switching instruction to the target IoT device, wherein the state switching instruction is used to switch the target IoT device from the current device state to the target state; after the target IoT device switches to the target state, sending the request instruction to the target IoT device, wherein the control instruction includes the state switching instruction and the request instruction.

[0009] Optionally, after determining whether the authority scope includes the authority to issue the request instruction, the method further includes: if the authority scope does not include the authority to issue the request instruction, searching within the authority scope for a recommended instruction set with the same control type as the authority to issue; returning the recommended instruction set to the user terminal; receiving a target recommended instruction selected by the user terminal from the recommended instruction set; and sending the target recommended instruction to the target IoT device.

[0010] Optionally, obtaining user authority information of the user terminal includes: reading a user account logged in by the user terminal, obtaining a type of software installed by the user terminal, and reading network information of the user terminal; and determining the user authority information of the user terminal based on the user account, the software type, and the network information.

[0011] Optionally, before receiving a control request for a target IoT device sent by a user terminal, the method further includes: receiving a registration request for the target IoT device; responding to the registration request, assigning a device identifier to the target IoT device, loading a device control model for the target IoT device, and configuring device permission information for the target IoT device, wherein the device permission information includes a permission scope for all authorized objects that are allowed to control the target IoT device.

[0012] According to another embodiment of the present invention, a server is provided, comprising: a first receiving module, used to receive a control request for a target Internet of Things device sent by a user terminal; an acquisition module, used to obtain a current device status of the target Internet of Things device, and obtain user authority information of the user terminal; and a sending module, used to send a control instruction to the target Internet of Things device according to the current device status and the user authority information.

[0013] Optionally, the sending module includes: a determination unit, used to determine the authority scope of the user terminal according to the user authority information; a parsing unit, used to parse the request instruction of the control request; a judgment unit, used to judge whether the authority scope includes the authority to issue the request instruction; a first sending unit, used to send a control instruction to the target IoT device based on the current device state if the authority scope includes the authority to issue the request instruction.

[0014] Optionally, the first sending unit includes: a determination subunit, used to determine the basic state set that the target IoT device supports the request instruction; a judgment subunit, used to judge whether the basic state set includes the current device state; a first sending subunit, used to send the request instruction to the target IoT device if the basic state set includes the current device state, wherein the control instruction includes the request instruction.

[0015] Optionally, the first sending unit also includes: a searching subunit, for searching the basic state set for a target state that best matches the request instruction after the judging subunit judges whether the basic state set includes the current device state, if the basic state set does not include the current device state; a second sending subunit, for sending a state switching instruction to the target IoT device, wherein the state switching instruction is used to switch the target IoT device from the current device state to the target state; and a third sending subunit, for sending the request instruction to the target IoT device after the target IoT device switches to the target state, wherein the control instruction includes the state switching instruction and the request instruction.

[0016] Optionally, the sending module also includes: a search unit, used to search for a recommended instruction set with the same control type as the issuing authority within the authority scope after the judgment unit determines whether the authority scope includes the issuing authority of the request instruction, if the authority scope does not include the issuing authority of the request instruction; a return unit, used to return the recommended instruction set to the user terminal; a receiving unit, used to receive a target recommended instruction selected by the user terminal from the recommended instruction set; and a second sending unit, used to send the target recommended instruction to the target Internet of Things device.

[0017] Optionally, the acquisition module includes: a reading unit, used to read the user account logged in by the user terminal, obtain the type of software installed by the user terminal, and read the network information of the user terminal; a determination unit, used to determine the user authority information of the user terminal based on the user account, the software type, and the network information.

[0018] Optionally, the device also includes: a second receiving module, used to receive a registration request for the target Internet of Things device before the receiving module receives a control request for the target Internet of Things device sent by a user terminal; a configuration module, used to respond to the registration request, assign a device identifier to the target Internet of Things device, load the device control model of the target Internet of Things device, and configure device permission information of the target Internet of Things device, wherein the device permission information includes the permission scope of all authorized objects allowed to control the target Internet of Things device.

[0019] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above steps are executed when the program is run.

[0020] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the program stored in the memory.

[0021] According to yet another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned device embodiments when running.

[0022] Through the embodiments of the present invention, a control request for a target IoT device sent by a user terminal is received; the current device state of the target IoT device is obtained, and the user authority information of the user terminal is obtained; and a control instruction is sent to the target IoT device according to the current device state and the user authority information, thereby realizing a decentralized device control solution. Any authorized object can remotely control the IoT device, thereby improving the stability of the smart home system, avoiding single point failures that cause the entire system to crash, and solving the technical problem of system instability caused by the use of a centralized control mode in related technologies. At the same time, instructions are issued according to the current device state and user authority information, thereby protecting user privacy and device security and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0024] Figure 1 is a hardware structure block diagram of a server according to an embodiment of the present invention;

[0025] Figure 2is a flow chart of a control method of an Internet of Things device according to an embodiment of the present invention;

[0026] Figure 3 is a schematic diagram of the architecture of an embodiment of the present invention;

[0027] Figure 4 is an implementation flow chart of an embodiment of the present invention;

[0028] Figure 5 It is a structural block diagram of a server according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the present application, the technical solutions 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 the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0030] 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 sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, 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.

[0031] Example 1

[0032] The method embodiment provided in the first embodiment of the present application can be executed in a server, a controller or a similar device management device. Taking running on a server as an example, Figure 1 FIG. 1 is a hardware structure diagram of a server according to an embodiment of the present invention. Figure 1 As shown, the server may include one or more ( Figure 1Only 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. Optionally, the server 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 above server. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0033] The memory 104 can be used to store server programs, for example, software programs and modules of application software, such as a server program corresponding to a control method of an Internet of Things device in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the server program stored in the memory 104, that is, to implement the above method. 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 may be connected to the server 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 combinations thereof.

[0034] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server. 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 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0035] In this embodiment, a control method for an Internet of Things device is provided. Figure 2 is a flow chart of a control method of an Internet of Things device according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0036] Step S202, receiving a control request for a target IoT device sent by a user terminal;

[0037] The target IoT device of this embodiment is any device that can be remotely controlled through the cloud, such as smart home appliances, such as air conditioners, refrigerators, washing machines, televisions, cameras, etc.

[0038] Step S204, obtaining the current device status of the target IoT device, and obtaining user authority information of the user terminal;

[0039] The current device status of this embodiment includes the on / off status, the working mode, etc. The user authority information of the user terminal of this embodiment is used to characterize the operation scope of the user terminal to control the target IoT device, such as allowing the execution of type 1 operation on the target IoT device, and not allowing the execution of type 2 operation on the target IoT device.

[0040] Step S206: Send a control instruction to the target IoT device according to the current device state and the user authority information.

[0041] Optionally, the control instruction may be an instruction corresponding to the above control request, or may be other instructions that do not correspond.

[0042] In one example, a historical control request for the target IoT device is obtained, where the historical control request is a control request of a preset duration before the current time, and it is determined whether the operation types of the control request and the historical control request are the same. If not, a control instruction is sent to the target IoT device according to the current device state and the user authority information. If they are the same, the historical authority range of the authorization object that triggers the historical control request is obtained, and it is determined whether the historical authority range is greater than the authority range of the user terminal. If the historical authority range is greater than the authority range of the user terminal, it is prohibited to send a control instruction to the target IoT device according to the current device state and the user authority information. If the historical authority range is less than the authority range of the user terminal, it is allowed to send a control instruction to the target IoT device according to the current device state and the user authority information. For example, if both user 1 and user 2 want to adjust the air conditioner temperature, and user 1 has more authority than user 2, then within a period of time after user 1 adjusts the air conditioner temperature, user 2 with lower authority is not allowed to adjust the user's temperature.

[0043] Through the above steps, a control request for a target IoT device sent by a user terminal is received; the current device status of the target IoT device is obtained, and the user authority information of the user terminal is obtained; a control instruction is sent to the target IoT device according to the current device status and the user authority information, thereby realizing a decentralized device control solution. Any authorized object can remotely control the IoT device, thereby improving the stability of the smart home system, avoiding single point failures that cause the entire system to crash, and solving the technical problem of system instability caused by the use of a centralized control mode in related technologies. At the same time, instructions are issued through the current device status and user authority information, thereby protecting user privacy and device security and improving user experience.

[0044] Figure 3 It is a schematic diagram of the architecture of an embodiment of the present invention, including: Cloud server: responsible for storing the control logic, user authority and other information of smart home appliances, and providing a remote control interface. Smart home appliances: built-in communication module and control module, and perform data transmission and control command execution with the cloud server. User terminal: such as mobile phone APP, web page, tablet or applet, etc., used for users to remotely send control requests and receive device status information. If the user issues a control instruction on the APP, the app calls the server's interface to transmit the instruction. After receiving the device instruction, the server checks the user information of the appropriate APP in the library and whether the destination device exists and whether it is normal; after verification, the server sends the instruction to the home appliance for execution. The device has a built-in communication and control module, and then directly accepts the instruction, and returns the execution result of the instruction to the server, and then the server returns the result to the app, and the app notifies the user.

[0045] In one implementation of the present embodiment, sending a control instruction to the target IoT device according to the current device state and the user authority information includes: determining the authority scope of the user terminal according to the user authority information; parsing the request instruction of the control request; determining whether the authority scope includes the authority to issue the request instruction; if the authority scope includes the authority to issue the request instruction, sending a control instruction to the target IoT device based on the current device state.

[0046] In one example, the authority scope of the user terminal includes allowing 1 to 5 types of operations to control devices A and B, allowing 2 types of operations to control device C, various types of operations such as temperature control, mode control, switch control, reservation control, device cancellation, etc. The request instruction of the control request is used to indicate specific operation instructions, such as lowering the temperature, switching the mode, etc. If the user terminal is device A and the request instruction is a type 1 operation, the authority scope includes the authority to issue the request instruction, and can respond to the control request of the user terminal and send a control instruction to the target IoT device.

[0047] Based on this implementation, only when the authority range of the user terminal includes the authority to issue the request instruction, sending a control instruction to the target IoT device based on the current device status can ensure the security of the device and prevent unfamiliar devices from arbitrarily controlling the target IoT device.

[0048] In one example, sending a control instruction to the target IoT device based on the current device state includes: determining a basic state set that the target IoT device supports the request instruction; determining whether the basic state set includes the current device state; if the basic state set includes the current device state, sending the request instruction to the target IoT device, wherein the control instruction includes the request instruction.

[0049] In this example, the basic state set includes multiple basic states. The target IoT device can respond to the request instruction normally only when the current device state is in the basic state. For example, it can respond to the power-on instruction only when it is in the standby state, respond to the mode selection instruction when it is in the power-on state, and respond to the anti-direct blowing instruction when it is in the cooling mode. If the current device state of the target IoT device is not in the basic state set, the target IoT device cannot directly respond to the request instruction, and the request instruction is an invalid instruction at this time.

[0050] By adopting the solution of this example, when the basic state set supported by the target IoT device for the request instruction includes the current device state, the request instruction is sent to the target IoT device, thereby ensuring the validity of the control request and improving the control efficiency of the device.

[0051] In another example, after determining whether the basic state set includes the current device state, it also includes: if the basic state set does not include the current device state, searching the basic state set for a target state that best matches the request instruction; sending a state switching instruction to the target IoT device, wherein the state switching instruction is used to switch the target IoT device from the current device state to the target state; after the target IoT device switches to the target state, sending the request instruction to the target IoT device, wherein the control instruction includes the state switching instruction and the request instruction.

[0052] Optionally, if there is only one basic state in the basic state set that supports the request instruction, then the basic state is determined as the target state that best matches the request instruction. If the basic state set contains multiple optional basic states, the best matching target state can be determined based on environmental parameters, big data model predictions, etc.

[0053] For example, to control the target IoT device, the device must be powered on; if the device is powered off at this time, a power-on command must be issued first, and then a request command for the control request must be issued. In some implementation scenarios, the target IoT device is an air conditioner, which has an anti-direct blowing function, but this function can only take effect in cooling mode. At that time, the device mode of the current device state is ventilation. At this time, the user sends a control request to turn on the anti-direct blowing function, and the server will first issue a state switching command to turn on the cooling mode, and then issue a command to turn on the anti-direct blowing. That is, if the current device state does not support the current command, the device state is changed first to ensure that the command is executed effectively.

[0054] By adopting the solution of this example, even if the basic state set supported by the target IoT device for the request instruction does not include the current device state, the device can indirectly respond to the control request by controlling the device state, thereby avoiding multiple operations by the user and improving the control efficiency of the device.

[0055] In another implementation of the present embodiment, after determining whether the authority scope includes the authority to issue the request instruction, it also includes: if the authority scope does not include the authority to issue the request instruction, searching within the authority scope for a recommended instruction set with the same control type as the authority to issue; returning the recommended instruction set to the user terminal; receiving a target recommended instruction selected by the user terminal from the recommended instruction set; and sending the target recommended instruction to the target IoT device.

[0056] In this implementation, the scope of authority of the user terminal includes 1 to 5 types of operations that allow control of devices A and B, 2 types of operations that allow control of device C, various types of operations such as temperature control, mode control, switch control, reservation control, device deregistration, etc. The request instruction of the control request is used to indicate specific operation instructions, such as temperature reduction, mode switching, etc. If the user terminal is device C and the request instruction is a type 1 operation, the scope of authority does not include the authority to issue the request instruction, and a recommended instruction set belonging to type 2 operations can be returned to the user terminal. The user selects one from them and notifies the server, and the server issues it to device C. In an implementation scenario, device C is an air conditioner, type 1 operation is a shutdown instruction, and type 2 operation is a temperature adjustment instruction. The recommended instruction set includes a temperature increase instruction and a temperature decrease instruction (but no shutdown instruction and other types of operation instructions except the temperature adjustment instruction). The user can adjust the air conditioner to the state he wants most according to his actual needs within his authority.

[0057] Based on this implementation, when the authority scope of the user terminal does not include the authority to issue the requested instruction, by returning a recommended instruction set within its authority scope to the user terminal, the air conditioner can be set to the state most desired by the user as much as possible within the authority of the user terminal according to his or her actual needs, thereby improving the user experience.

[0058] Optionally, obtaining user authority information of the user terminal includes: reading a user account logged in by the user terminal, obtaining a type of software installed on the user terminal, and reading network information of the user terminal; and determining the user authority information of the user terminal based on the user account, the software type, and the network information.

[0059] Optionally, the software types include the operating system of the LAN control terminal (such as Xiaomi speakers, Baidu speakers, etc.), application programs (APPs), mini-programs, and public accounts. The network information of the user terminal is used to indicate whether the user terminal is connected to the same LAN as the target IoT device.

[0060] By adopting the solution of this embodiment, the user authority information of the user terminal is configured using information of multiple dimensions such as the user account of the user terminal, the software type, and the network information, thereby achieving fine configuration of user authorities and improving the security of the device and user experience through authority classification.

[0061] In this embodiment, before receiving the control request for the target IoT device sent by the user terminal, it also includes: receiving a registration request for the target IoT device; responding to the registration request, assigning a device identifier to the target IoT device, loading the device control model of the target IoT device, and configuring the device permission information of the target IoT device, wherein the device permission information includes the permission scope of all authorized objects allowed to control the target IoT device.

[0062] Optionally, the device control model is used to implement the decoding and protocol conversion of the relevant interactive instructions of the target IoT device, and also includes the control logic of the device. For example, the control logic of the air conditioner includes power on / off, temperature adjustment, mode adjustment, wind speed adjustment, and air outlet mode adjustment. Authorization objects include authorized terminals, authorized accounts, authorized software, and other objects. The device permission information includes the permission scope of the authorized terminal, authorized account, and authorized software. For example, a mobile phone APP logs in with a user name, password, or verification code to ensure that the user is a legitimate network user. Secondly, after the user identity verification is passed, the cloud will check whether the user has the permission to perform specific operations, which can be done by querying the role of the user account or the user's access control list. The device identification includes the device name, model, icon, and other information of the target IoT device.

[0063] By adopting the solution of this embodiment, the target IoT device is registered in the cloud in advance, and the device is configured and permissions are allocated to it, thereby achieving decentralized control over the IoT device, and any participant can submit a control request.

[0064] Figure 4 This is an implementation flow chart of an embodiment of the present invention. The present invention proposes a remote decentralized control system and method for household appliances based on cloud control. Through decentralized control mode and advanced security measures, the problems existing in the current smart home system are solved, and the stability, security and user experience of the system are improved. When a new device joins the system, it needs to be registered through the cloud and obtain a unique device identifier. The user terminal can discover and connect to registered devices through the cloud, and the cloud server is responsible for user authority management to ensure that only authorized users can control the device. It provides functions such as user registration, login, and authority allocation.

[0065] Each smart home appliance has independent communication and control capabilities and does not rely on a central controller. Devices exchange information and work together through cloud servers to achieve decentralized control. Users send control requests to the cloud through terminals, and the cloud sends control instructions to designated devices based on device status and user permissions. By defining a set of standard communication protocols and rules, data transmission between devices and between devices and the cloud is ensured to be secure and reliable. Encryption technology is used to protect the transmission process of user data and control instructions. Different encryption technologies are selected for different scenarios. For example, for applications that require high-speed data transmission, symmetric encryption algorithms such as AES can be used; for scenarios that require higher security, asymmetric encryption algorithms such as RSA can be used. For resource limitations of IoT devices (such as limited computing power and storage space), lightweight encryption algorithms are used. These algorithms have lower computational complexity and memory usage, and can meet the efficiency requirements of IoT devices while ensuring security. Authentication is performed between user terminals and home appliances to prevent illegal access.

[0066] The solution of this embodiment proposes a decentralized smart home system based on cloud control and a control method thereof, which solves the problem of single point failure causing the entire system to be paralyzed, reduces the risk of data being tampered with or abused in a centralized structure, and can also improve the stability of the smart home system and avoid single point failure causing the entire system to be paralyzed. The security of the smart home system is enhanced, user privacy and device security are protected, and the user experience is improved, allowing users to remotely control home appliances more conveniently.

[0067] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0068] Example 2

[0069] In the present embodiment, a server is also provided, and the device is used to implement the above-mentioned embodiment and preferred implementation mode, and the description has been made no further. As used below, the term "module" can implement the combination of software and hardware of the reservation function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or the combination of software and hardware, can also be conceived.

[0070] Figure 5 is a structural block diagram of a server according to an embodiment of the present invention, such as Figure 5 As shown, including:

[0071] A first receiving module 50 is used to receive a control request for a target IoT device sent by a user terminal;

[0072] An acquisition module 52 is used to acquire the current device status of the target IoT device and to acquire user authority information of the user terminal;

[0073] The sending module 56 is used to send a control instruction to the target IoT device according to the current device state and the user authority information.

[0074] Optionally, the sending module includes: a determination unit, used to determine the authority scope of the user terminal according to the user authority information; a parsing unit, used to parse the request instruction of the control request; a judgment unit, used to judge whether the authority scope includes the authority to issue the request instruction; a first sending unit, used to send a control instruction to the target IoT device based on the current device state if the authority scope includes the authority to issue the request instruction.

[0075] Optionally, the first sending unit includes: a determination subunit, used to determine the basic state set that the target IoT device supports the request instruction; a judgment subunit, used to judge whether the basic state set includes the current device state; a first sending subunit, used to send the request instruction to the target IoT device if the basic state set includes the current device state, wherein the control instruction includes the request instruction.

[0076] Optionally, the first sending unit also includes: a searching subunit, for searching the basic state set for a target state that best matches the request instruction after the judging subunit judges whether the basic state set includes the current device state, if the basic state set does not include the current device state; a second sending subunit, for sending a state switching instruction to the target IoT device, wherein the state switching instruction is used to switch the target IoT device from the current device state to the target state; and a third sending subunit, for sending the request instruction to the target IoT device after the target IoT device switches to the target state, wherein the control instruction includes the state switching instruction and the request instruction.

[0077] Optionally, the sending module also includes: a search unit, used to search for a recommended instruction set with the same control type as the issuing authority within the authority scope after the judgment unit determines whether the authority scope includes the issuing authority of the request instruction, if the authority scope does not include the issuing authority of the request instruction; a return unit, used to return the recommended instruction set to the user terminal; a receiving unit, used to receive a target recommended instruction selected by the user terminal from the recommended instruction set; and a second sending unit, used to send the target recommended instruction to the target Internet of Things device.

[0078] Optionally, the acquisition module includes: a reading unit, used to read the user account logged in by the user terminal, obtain the type of software installed by the user terminal, and read the network information of the user terminal; a determination unit, used to determine the user authority information of the user terminal based on the user account, the software type, and the network information.

[0079] Optionally, the device also includes: a second receiving module, used to receive a registration request for the target Internet of Things device before the receiving module receives a control request for the target Internet of Things device sent by a user terminal; a configuration module, used to respond to the registration request, assign a device identifier to the target Internet of Things device, load the device control model of the target Internet of Things device, and configure device permission information of the target Internet of Things device, wherein the device permission information includes the permission scope of all authorized objects allowed to control the target Internet of Things device.

[0080] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0081] Example 3

[0082] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0083] Optionally, in this embodiment, the above storage medium may be configured to store a computer program for executing:

[0084] S1, receiving a control request for a target IoT device sent by a user terminal;

[0085] S2, obtaining the current device status of the target IoT device and obtaining user authority information of the user terminal;

[0086] S3: Send a control instruction to the target IoT device according to the current device status and the user authority information.

[0087] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0088] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0089] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0090] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0091] S1, receiving a control request for a target IoT device sent by a user terminal;

[0092] S2, obtaining the current device status of the target IoT device and obtaining user authority information of the user terminal;

[0093] S3: Send a control instruction to the target IoT device according to the current device status and the user authority information.

[0094] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0095] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0096] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0097] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0098] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0099] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0100] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a controller or a network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc., various media that can store program codes.

[0101] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A control method for an Internet of Things device, characterized in that: include: Receiving a control request for a target IoT device sent by a user terminal; Obtaining the current device status of the target IoT device and obtaining user authority information of the user terminal; Send a control instruction to the target IoT device according to the current device status and the user authority information.

2. The method according to claim 1, characterized in that Sending a control instruction to the target IoT device according to the current device state and the user authority information includes: Determining the authority scope of the user terminal according to the user authority information; parsing a request instruction of the control request; Determining whether the authority range includes authority to issue the request instruction; If the authority range includes the authority to issue the request instruction, a control instruction is sent to the target IoT device based on the current device state.

3. The method according to claim 2, characterized in that Sending a control instruction to the target IoT device based on the current device state includes: Determine that the target IoT device supports a basic state set of the request instruction; Determining whether the basic state set includes the current device state; If the basic state set includes the current device state, the request instruction is sent to the target IoT device, wherein the control instruction includes the request instruction.

4. The method according to claim 3, characterized in that After determining whether the basic state set includes the current device state, the method further includes: If the basic state set does not include the current device state, searching the basic state set for a target state that best matches the request instruction; Sending a state switching instruction to the target IoT device, wherein the state switching instruction is used to switch the target IoT device from the current device state to the target state; After the target IoT device switches to the target state, the request instruction is sent to the target IoT device, wherein the control instruction includes the state switching instruction and the request instruction.

5. The method according to claim 2, characterized in that: After determining whether the authority range includes the authority to issue the request instruction, the method further includes: If the authority range does not include the issuing authority of the request instruction, searching within the authority range for a recommended instruction set with the same control type as the issuing authority; Returning a recommended instruction set to the user terminal; receiving a target recommended instruction selected by the user terminal from the recommended instruction set; Send the target recommendation instruction to the target Internet of Things device.

6. The method according to claim 1, characterized in that Acquiring user authority information of the user terminal includes: Read the user account logged in by the user terminal, obtain the type of software installed by the user terminal, and read the network information of the user terminal; The user authority information of the user terminal is determined according to the user account, the software type, and the network information.

7. The method according to claim 1, characterized in that Before receiving the control request for the target IoT device sent by the user terminal, the method further includes: Receiving a registration request of the target IoT device; In response to the registration request, a device identifier is assigned to the target IoT device, a device control model of the target IoT device is loaded, and device permission information of the target IoT device is configured, wherein the device permission information includes a permission scope of all authorized objects that are allowed to control the target IoT device.

8. A server, characterized in that: include: A first receiving module, configured to receive a control request for a target IoT device sent by a user terminal; An acquisition module, used to acquire the current device status of the target IoT device and to acquire user authority information of the user terminal; A sending module is used to send a control instruction to the target Internet of Things device according to the current device state and the user authority information.

9. A storage medium, characterized in that: A computer program is stored in the storage medium, wherein the computer program is configured to execute the steps of the control method of the Internet of Things device in any one of claims 1 to 7 when running.

10. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein: The processor, the communication interface, and the memory communicate with each other via a communication bus; wherein: Memory, used to store computer programs; A processor, configured to execute the steps of the control method of the Internet of Things device according to any one of claims 1 to 7 by running a program stored in a memory.

Citation Information

Patent Citations

  • Smart home control system and method based on blockchain

    CN110687821A

  • Equipment control method and device and electronic equipment

    CN113865034A

  • Internet of Things equipment control method and device, server and storage medium

    CN116668494A

  • Equipment control method based on authority control, storage medium and electronic equipment

    CN118377234A

  • Method and device for controlling urban Internet of Things equipment based on big data

    CN118488082A