Internet of Things Control Method, Device, Equipment and Readable Storage Medium
By using a unique signal code for interaction and authorization mechanism in smart desk lamps, the data synchronization and OTA upgrade problems between the smart desk lamps and the screen are solved, the battery usage frequency is reduced, and the functions of independent interaction with the cloud and local data synchronization are realized.
Patent Information
- Application Number
- CN202210814848.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-12
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-07-12
AI Technical Summary
When existing smart desk lamps are combined with the screen, it is difficult to achieve independent interaction with the cloud and local data synchronization, and the performance resources of the dock lamps are limited, resulting in high battery usage frequency and unable to effectively upgrade OTA.
By using a unique signal code between the terminal and the controlled device to interact, the control commands entered by the user are obtained and sent to the corresponding device according to the communication key, the authorization mechanism between the screen and the base is realized, and data synchronization and OTA upgrade are supported. .
It realizes independent interaction between the dock lamp and screen with the cloud, reduces the frequency of the use of the battery and circuit of the sweeping machine, supports local data synchronization and OTA upgrades, and improves the flexibility and reliability of the system.
Smart Images

Figure CN115348300B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular to an Internet of Things control method, device, equipment and a readable storage medium. Background Art
[0002] Smart desk lamps have gradually entered thousands of households. As an IoT device, smart desk lamps can generate various applications through lighting and multimedia modules through the network. At this stage, smart desk lamps are gradually combined with screens, and users can use the devices in more scenarios through the process of interacting with the screen. Summary of the invention
[0003] The purpose of the present invention is to provide an Internet of Things control method, device, equipment and readable storage medium to improve the above problems. In order to achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0004] In a first aspect, the present application provides an Internet of Things control method, comprising:
[0005] The terminal displays an interactive page of the controlled device, the interactive page including interface interactive elements for controlling the controlled device, the controlled device corresponding to a unique communication number;
[0006] Acquire a first command, where the first command includes a control command for controlling the controlled device obtained through interface interaction and input by a user, where the control command is a communication key corresponding to the controlling device;
[0007] The first command is sent to the controlled device corresponding to the communication key according to the communication key.
[0008] In a second aspect, the present application also provides an Internet of Things control device, including:
[0009] Control module: used for the terminal to display the interactive page of the controlled device, the interactive page includes interface interactive elements for controlling the controlled device, and the controlled device corresponds to a unique communication number;
[0010] An acquisition module: used to acquire a first command, wherein the first command includes a control command for controlling the controlled device obtained through interface interaction and input by a user, wherein the control command is a communication key corresponding to the controlling device;
[0011] A first sending module is configured to send the first command to the controlled device corresponding to the communication key according to the communication key.
[0012] In a third aspect, the present application also provides an Internet of Things control device, including:
[0013] Memory for storing computer programs;
[0014] A processor is used to implement the steps of the Internet of Things control method when executing the computer program.
[0015] In a fourth aspect, the present application also provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned Internet of Things-based control method are implemented.
[0016] The beneficial effects of the present invention are as follows: the present invention relates to a control method for the Internet of Things, the base lamp and the screen respectively include communication modules that can independently communicate with the cloud and synchronize data locally. After the screen and the base are mutually trusted through a certain authorization mechanism, they can perform at least charging, mutual access and synchronization of specific local data of both parties, mutual control, and at the same time, the base supports OTA upgrades, reducing the frequency of use of the battery and circuit of the scanner, and at the same time, due to the limited performance resources of the base lamp.
[0017] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by practicing the embodiments of the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 This is a schematic flow chart of the Internet of Things control method described in an embodiment of the present invention;
[0020] Figure 2 This is a schematic diagram of the structure of the Internet of Things control device described in an embodiment of the present invention;
[0021] Figure 3 Schematic diagram of the structure of the Internet of Things control device described in an embodiment of the present invention.
[0022] In the figure: 701, control module; 702, acquisition module; 7021, first receiving unit; 7022, first judgment unit; 7023, calculation unit; 7024, second receiving unit; 7025, comparison unit; 7026, acquisition unit; 7027, second judgment unit; 703, first sending module; 7031, access unit; 7032, first determination unit; 7033, second determination unit; 7034, generation unit; 704, second sending module; 705, update module; 800, Internet of Things control device; 801, processor; 802, memory; 803, multimedia component; 804, I / O interface; 805, communication component. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0024] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0025] Embodiment 1:
[0026] This embodiment provides an Internet of Things control method, which can be explained by taking an all-in-one scanner terminal with network connection, camera function, communication interface, and a base lamp with lighting function as an example.
[0027] See also Figure 1 , the figure shows that the method includes step S100, step S200 and step S300.
[0028] S100: The terminal displays an interactive page of a controlled device, where the interactive page includes interface interactive elements for controlling the controlled device, and the controlled device corresponds to a unique communication number.
[0029] It can be understood that this step also includes:
[0030] Based on a preset interaction rule, sending first logic information, the first logic information including control logic based on a basic operation unit, the control device supporting the basic operation unit;
[0031] The controlled device locates the target control logic that needs to be updated according to the first logic information transmission information, and updates the target control logic through the control logic, wherein the first logic information transmission information is sent in the form of a logic transfer data frame, and the logic transfer data frame includes: target address, source address, logic module identifier, basic operation unit, sensor device status value and operation value.
[0032] For example, the sensor device encapsulates the control logic update message into data frames 01, 02, 01, 01, 05, 00, 01 according to the preset mapping rules. The specific meaning of the data frame is shown in Table 1, where the frame code 01 indicates that the data frame is a control logic update data frame, the target address 02 indicates the control device, the source address 01 indicates the sensor device, the logic module identifier 01 indicates the light control logic module, the basic operation unit 05 indicates the AND operation, the sensor device state value 00 indicates that the sensor device is turned off, and the operation value 01 indicates that the control logic turns on the light device.
[0033] In this embodiment, the terminals mentioned in the embodiments of the present invention include but are not limited to various desktop computers, laptop computers, personal digital assistants, tablet computers, and smart phones. The controlled device corresponds to a unique communication number, and the controlled device and the communication number are in a one-to-one relationship. Therefore, a controlled device can be uniquely identified by a unique communication number.
[0034] A unique communication number can be pre-written into the chip of the controlled device, wherein the communication number includes but is not limited to various unique mobile communication numbers, instant messaging numbers and network application accounts, or a unique communication number generated by a preset combination of these numbers and a preset random string.
[0035] The interactive page includes interface interactive elements for controlling the controlled device, such as buttons, menu items, etc. Since the controlled device corresponds to a unique communication number, the interactive page of the controlled device also corresponds to the communication number.
[0036] Specifically, different controlled devices have different interactive pages, so for different controlled devices, the control commands input by the user received by the terminal through the interface interaction elements are also different. Since the control command carries the communication number corresponding to the controlled device, the terminal can send the control command to the controlled device.
[0037] In this embodiment, a split desk lamp can be used for illustration. The scanning and shooting all-in-one machine has a screen, a camera, a speaker, a wireless communication module, a storage unit and a core processor; in an independent use state, the scanning and shooting all-in-one machine transmits data in a local area network (such as WiFi, Bluetooth and other networks) or a cellular network through wireless communication; and based on the network connection, it can log in through an account and synchronize cloud application data, such as word learning records, etc. In terms of the connection method with the base, the all-in-one machine can be connected to the base desk lamp through wired communication, such as USB, SPI, USART, IIC and other methods; the all-in-one machine can also interact with the base desk lamp through WiFi, BLE, NFC and other forms. In terms of application interaction, the all-in-one machine stores the necessary information such as device identity information and secret keys required for authentication and authorization; if the all-in-one machine has the right to access the lights, cameras and other multimedia modules of the base desk lamp, the all-in-one machine can remotely initiate applications such as video viewing, dialogue or lighting adjustment through the existing network connection.
[0038] The base lamp has a camera, a speaker, a wireless communication module, a storage unit, a lighting module and a core processor, and has the following features: In independent use: the base lamp can transmit data through WiFi, BLE, cellular networks, etc. The base lamp can be remotely accessed and interacted with by authorized terminals, including smartphones, tablets or all-in-one cameras running account permission APPs. The interactive access content includes video, voice, lighting status and its multimedia applications. The base lamp can directly control the lighting, audio input and output, camera and other modules and their related applications through buttons, including but not limited to dimming, waking up the voice assistant, literacy cards, reading specific picture books and other functions. The base lamp can initiate multimedia network communication instructions including but not limited to calls to the all-in-one machine through buttons.
[0039] S200. Obtain a first command, where the first command includes a control command for controlling the controlled device obtained through interface interaction and input by a user, where the control command is a communication key corresponding to the controlling device.
[0040] It can be understood that this step includes:
[0041] Receiving a first key and first identification information of the terminal sent by the terminal;
[0042] Determining whether the terminal is a valid terminal according to the first identification information and preset update platform identification information;
[0043] When it is determined that the terminal is a valid terminal, decrypting the first key to obtain a first random number;
[0044] Calculate and generate a second random number according to the first random number, and encrypt the first random number and the second random number according to a first preset algorithm to obtain a second key;
[0045] sending the second key to the terminal, and receiving a third key obtained by the terminal according to the second key;
[0046] Decrypting the third key, comparing it with the first random number and the second random number, obtaining a first authentication result, and sending it to the terminal;
[0047] When the first authentication result is authentication passed, communicating with the terminal; obtaining first information, where the first information is the signal strength of the network connected by the controlled device and the terminal to establish a communication connection;
[0048] According to whether the first information meets a preset condition, it is determined whether to receive the data update instruction sent by the terminal. If the preset condition is met, a response instruction for responding to the data update instruction is sent to the terminal.
[0049] If the terminal directly establishes a connection with the controlled device, the terminal can send the control command directly to the controlled device; if the terminal and the controlled device are both connected to the network, the terminal can first send the control command to the server. Since the control command carries the communication number corresponding to the controlled device, the server can find the address of the controlled device based on the communication number, and then send the control command to the controlled device.
[0050] Compared with the prior art, the terminal can control the controlled device through a unique communication number, which is very simple to implement and does not require the installation of special hardware devices, thus saving costs.
[0051] It should be noted that in this embodiment, when the all-in-one machine communicates with the base lamp by wired or wireless means, the processor of the base lamp matches the permissions with the all-in-one machine through a secret key or the like. If the all-in-one machine has no authority over the base lamp, the network seeks authorization from the cloud and matches the authorized level. If authorization is obtained, the identity information of the all-in-one machine is recorded and the all-in-one machine holding the identity is authorized to perform specific operations. If authorization cannot be obtained, only basic operations such as charging can be performed. If the all-in-one machine has the right to interact with the base of the lamp in the same local area network, the all-in-one machine establishes a continuous connection with the lamp and continuously reports the connection status until the connection is disconnected. During the connection, the all-in-one machine can interact with the lamp through local synchronization including word books, learning records, machine learning model parameters and other data and update based on the business model or federated learning model. The identity information and firmware version of the all-in-one machine can be transmitted to the OTA service backend through the base and the firmware package can be upgraded to reduce the frequency of use of the battery circuit in the all-in-one machine. When the battery power of the all-in-one machine reaches the threshold and is automatically installed and upgraded within the time period allowed by the user.
[0052] S300: Send the first command to the controlled device corresponding to the communication key according to the communication key.
[0053] It can be understood that this step includes:
[0054] Upon receiving an identity authentication result indicating that the terminal successfully authenticates the IoT device, and judging based on the access control policy that the terminal is allowed to access the IoT device, determining that the client has successfully logged in;
[0055] Determine a first user role corresponding to the user identifier in the access request according to the access control policy, and determine the operation authority of the first user role;
[0056] Determine the operation authority of the client according to the special operation authority corresponding to the user identifier in the access request and the operation authority of the first user role; and generate and return to the terminal an interactive page corresponding to the operation authority of the terminal.
[0057] It should be noted that the control device locates the target control logic that needs to be updated as the light control logic based on the logic transmission message, and then updates the light control logic from the original "the control device turns on the light device in the system when it receives a sound signal" to "the controller turns on the light device in the system when it receives a sound signal and the sensor is turned off" through the control logic.
[0058] In the above embodiment, the sensing device sends a logic transfer message to the control device based on a predetermined communication interaction rule; the control device locates the target control logic that needs to be updated according to the logic transfer message and updates the target control logic, thereby realizing the automatic update of the control logic in the Internet of Things. At the same time, the internal logic modularization of the Internet of Things system equipment helps to quickly locate the target logic module inside the system, so that the equipment in the Internet of Things system can perform self-learning and self-improvement.
[0059] Preferably, before the all-in-one machine or user terminal calls the application, the base lamp calculates the available bandwidth (BW c ), and the total bandwidth occupied by existing applications If the bandwidth required by the application (BW A ) meets BW A +BW O >BW c , then a bandwidth BW is recommended N The network makes BW N >BW c , if BW A +BW O > the maximum available bandwidth, it is recommended that the integrated machine or terminal that initiates the request should operate later or terminate some operations. Similarly, when the computing resources or cache resources are higher than the existing resources, it is recommended that the integrated machine or terminal that initiates the request should operate later or terminate some operations.
[0060] When the base lamp and the all-in-one machine are connected through the cloud, specific applications, such as calls and other applications with low latency requirements, can exclusively occupy the connection and lock the backend service status of the base lamp during the connection phase; specific applications, such as parental monitoring functions, do not need to exclusively occupy the link, but establish a connection between the base lamp and the cloud service and cache data, and N authorized terminals or all-in-one machines can access the cached files.
[0061] Embodiment 2:
[0062] like Figure 2 As shown, this embodiment provides an Internet of Things control device, see Figure 2 The device comprises an Internet of Things control device, comprising:
[0063] Control module 701: used for the terminal to display an interactive page of a controlled device, wherein the interactive page includes interface interactive elements for controlling the controlled device, and the controlled device corresponds to a unique communication number;
[0064] The acquisition module 702 is used to acquire a first command, wherein the first command includes a control command for controlling the controlled device obtained through interface interaction and input by a user, and the control command is a communication key corresponding to the controlling device;
[0065] The first sending module 703 is configured to send the first command to the controlled device corresponding to the communication key according to the communication key.
[0066] Preferably, the control module 701 also includes:
[0067] The second sending module 704 is configured to send first logic information based on a preset interaction rule, where the first logic information includes a control logic based on a basic operation unit, and the control device supports the basic operation unit;
[0068] Update module 705: used for the controlled device to locate the target control logic that needs to be updated according to the first logic information transmission information, and update the target control logic through the control logic, wherein the first logic information transmission information is sent in the form of a logic transmission data frame, and the logic transmission data frame includes: target address, source address, logic module identifier, basic operation unit, sensor device status value and operation value.
[0069] Preferably, the acquisition module 702 includes:
[0070] The first receiving unit 7021 is configured to receive a first key and first identification information of the terminal sent by the terminal;
[0071] The first judging unit 7022 is configured to judge whether the terminal is a valid terminal according to the first identification information and the preset update platform identification information; when it is determined that the terminal is a valid terminal, decrypt the first key to obtain a first random number;
[0072] The calculation unit 7023 is used to calculate and generate a second random number according to the first random number, and encrypt the first random number and the second random number according to a first preset algorithm to obtain a second key;
[0073] The second receiving unit 7024 is used to send the second key to the terminal, and receive a third key obtained by the terminal according to the second key;
[0074] The comparison unit 7025 is used to decrypt the third key, compare it with the first random number and the second random number, obtain a first authentication result, and send it to the terminal;
[0075] The acquisition unit 7026 is configured to, when the first authentication result is authentication passed, communicate with the terminal; acquire first information, where the first information is the signal strength of the network connected by the controlled device to establish the communication connection with the terminal;
[0076] The second judgment unit 7027 is used to judge whether to receive the data update instruction sent by the terminal according to whether the first information meets the preset conditions, and if the preset conditions are met, send a response instruction for responding to the data update instruction to the terminal.
[0077] Preferably, the first sending module 703 includes:
[0078] The access unit 7031 is configured to determine that the client login is successful when receiving an identity authentication result indicating that the terminal successfully authenticates the IoT device and judging based on the access control policy that the terminal is allowed to access the IoT device;
[0079] The first determining unit 7032 is used to determine the first user role corresponding to the user identifier in the access request according to the access control policy, and determine the operation authority of the first user role;
[0080] The second determining unit 7033 is used to determine the operation authority of the client according to the special operation authority corresponding to the user identifier in the access request and the operation authority of the first user role;
[0081] The generating unit 7034 is used to generate and return to the terminal an interactive page corresponding to the operation authority of the terminal.
[0082] It should be noted that, regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0083] Embodiment 3:
[0084] Corresponding to the above method embodiment, this embodiment also provides an Internet of Things control device, and the Internet of Things control device described below and the Internet of Things control method described above can refer to each other.
[0085] Figure 3 FIG. 8 is a block diagram of an Internet of Things control device 800 according to an exemplary embodiment. Figure 3 As shown, the Internet of Things control device 800 may include: a processor 801 and a memory 802. The Internet of Things control device 800 may also include one or more of a multimedia component 803, an I / O interface 804, and a communication component 805.
[0086] The processor 801 is used to control the overall operation of the IoT control device 800 to complete all or part of the steps in the IoT control method described above. The memory 802 is used to store various types of data to support the operation of the IoT control device 800. These data may include, for example, instructions for any application or method used to operate on the IoT control device 800, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a disk or an optical disk. The multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone, which is used to receive external audio signals. The received audio signal may be further stored in the memory 802 or sent through the communication component 805. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the Internet of Things control device 800 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 805 may include: Wi-Fi module, Bluetooth module, NFC module.
[0087] In an exemplary embodiment, the Internet of Things control device 800 can be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, referred to as ASIC), digital signal processors (Digital Signal Processor, referred to as DSP), digital signal processing devices (Digital Signal Processing Device, referred to as DSPD), programmable logic devices (Programmable Logic Device, referred to as PLD), field programmable gate arrays (Field Programmable Gate Array, referred to as FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned Internet of Things control method.
[0088] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned Internet of Things control method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 802 including program instructions, and the above-mentioned program instructions can be executed by the processor 801 of the Internet of Things control device 800 to complete the above-mentioned Internet of Things control method.
[0089] Embodiment 4:
[0090] Corresponding to the above method embodiment, a readable storage medium is also provided in this embodiment. The readable storage medium described below and the Internet of Things control method described above can refer to each other.
[0091] A readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the Internet of Things control method of the above method embodiment are implemented.
[0092] The readable storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other readable storage medium that can store program codes.
[0093] In summary, the patent of the present invention relates to a control method of the Internet of Things. The base lamp and the screen respectively include communication modules that can independently communicate with the cloud and synchronize data locally. After the screen and the base are mutually trusted through a certain authorization mechanism, they can perform at least charging, mutual access and synchronization of specific local data of both parties, mutual control, and the base supports OTA upgrades, reducing the frequency of use of the scanner battery and its circuits. At the same time, the performance resources of the base lamp are limited.
[0094] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0095] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for controlling the Internet of Things, It is characterized in that include: The terminal displays an interactive page of the controlled device, the interactive page including interface interactive elements for controlling the controlled device, the controlled device corresponding to a unique communication number; Acquire a first command, where the first command includes a control command for controlling the controlled device obtained through interface interaction and input by a user, where the control command is a communication key corresponding to the control device; sending the first command to the controlled device corresponding to the communication key according to the communication key; The first command is obtained, which includes: Receiving a first key and first identification information of the terminal sent by the terminal; Determining whether the terminal is a valid terminal according to the first identification information and the preset update platform identification information; when it is determined that the terminal is a valid terminal, decrypting the first key to obtain a first random number; Calculate and generate a second random number according to the first random number, and encrypt the first random number and the second random number according to a first preset algorithm to obtain a second key; sending the second key to the terminal, and receiving a third key obtained by the terminal according to the second key; Decrypting the third key, comparing it with the first random number and the second random number, obtaining a first authentication result, and sending it to the terminal; When the first authentication result is authentication passed, communicating with the terminal; obtaining first information, where the first information is the signal strength of the network connected by the controlled device and the terminal to establish a communication connection; According to whether the first information meets a preset condition, it is determined whether to receive the data update instruction sent by the terminal. If the preset condition is met, a response instruction for responding to the data update instruction is sent to the terminal.
2. The Internet of Things control method according to claim 1, It is characterized in that The terminal displays an interactive page of the controlled device, and previously includes: Based on a preset interaction rule, sending first logic information, the first logic information including control logic based on a basic operation unit, the control device supporting the basic operation unit; The controlled device locates the target control logic that needs to be updated according to the first logic information transmission information, and updates the target control logic through the control logic, wherein the first logic information transmission information is sent in the form of a logic transfer data frame, and the logic transfer data frame includes: target address, source address, logic module identifier, basic operation unit, sensor device status value and operation value.
3. The Internet of Things control method according to claim 1, It is characterized in that The sending the first command to the controlled device corresponding to the communication key according to the communication key includes: Upon receiving an identity authentication result indicating that the terminal successfully authenticates the IoT device, and determining based on the access control policy that the terminal is allowed to access the IoT device, determining that the client login is successful; Determine a first user role corresponding to the user identifier in the access request according to the access control policy, and determine the operation authority of the first user role; Determining the operation authority of the client according to the special operation authority corresponding to the user identifier in the access request and the operation authority of the first user role; An interactive page corresponding to the operation authority of the terminal is generated and returned to the terminal.
4. An Internet of Things control device, It is characterized in that include: Control module: used for the terminal to display the interactive page of the controlled device, the interactive page includes interface interactive elements for controlling the controlled device, and the controlled device corresponds to a unique communication number; An acquisition module: used to acquire a first command, wherein the first command includes a control command for controlling the controlled device obtained through interface interaction and input by a user, wherein the control command is a communication key corresponding to the control device; A first sending module: used for sending the first command to the controlled device corresponding to the communication key according to the communication key; The acquisition module includes: A first receiving unit: configured to receive a first key and first identification information of the terminal sent by the terminal; A first judging unit: configured to judge whether the terminal is a valid terminal according to the first identification information and the preset update platform identification information; when it is determined that the terminal is a valid terminal, decrypt the first key to obtain a first random number; A calculation unit: configured to calculate and generate a second random number according to the first random number, and encrypt the first random number and the second random number according to a first preset algorithm to obtain a second key; A second receiving unit: configured to send the second key to the terminal, and receive a third key obtained by the terminal according to the second key; A comparison unit is used to decrypt the third key, compare it with the first random number and the second random number, obtain a first authentication result, and send it to the terminal; An acquisition unit: configured to, when the first authentication result is authentication passed, communicate with the terminal; acquire first information, wherein the first information is a signal strength of a network connected to the terminal by which the controlled device establishes a communication connection; The second judgment unit is used to judge whether to receive the data update instruction sent by the terminal according to whether the first information meets the preset conditions, and if the preset conditions are met, send a response instruction for responding to the data update instruction to the terminal.
5. The Internet of Things control device according to claim 4, It is characterized in that The control module also includes: A second sending module: configured to send first logic information based on a preset interaction rule, wherein the first logic information includes a control logic based on a basic operation unit, and the control device supports the basic operation unit; Update module: used for the controlled device to locate the target control logic that needs to be updated according to the first logic information transmission information, and update the target control logic through the control logic, wherein the first logic information transmission information is sent in the form of a logic transfer data frame, and the logic transfer data frame includes: target address, source address, logic module identifier, basic operation unit, sensor device status value and operation value.
6. The Internet of Things control device according to claim 4, It is characterized in that The first sending module includes: Access unit: for determining that the client login is successful when receiving an identity authentication result indicating that the terminal successfully authenticates the IoT device and judging that the terminal is allowed to access the IoT device based on an access control policy; A first determining unit: used to determine a first user role corresponding to a user identifier in an access request according to the access control policy, and determine an operation permission of the first user role; A second determining unit: configured to determine the operation authority of the client according to the special operation authority corresponding to the user identifier in the access request and the operation authority of the first user role; Generating unit: used for generating and returning to the terminal an interactive page corresponding to the operation authority of the terminal.
7. An Internet of Things control device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of the Internet of Things control method as claimed in any one of claims 1 to 3 when executing the computer program.
8. A readable storage medium, Features: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the Internet of Things control method according to any one of claims 1 to 3 are implemented.
