WO2023125269A1 - 物联网设备控制方法、装置及系统 - Google Patents

物联网设备控制方法、装置及系统 Download PDF

Info

Publication number
WO2023125269A1
WO2023125269A1 PCT/CN2022/141324 CN2022141324W WO2023125269A1 WO 2023125269 A1 WO2023125269 A1 WO 2023125269A1 CN 2022141324 W CN2022141324 W CN 2022141324W WO 2023125269 A1 WO2023125269 A1 WO 2023125269A1
Authority
WO
WIPO (PCT)
Prior art keywords
internet
control
interface
things
proxy server
Prior art date
Application number
PCT/CN2022/141324
Other languages
English (en)
French (fr)
Inventor
柳春阳
Original Assignee
锐迪科创微电子(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202111616602.6A external-priority patent/CN114301940B/zh
Application filed by 锐迪科创微电子(北京)有限公司 filed Critical 锐迪科创微电子(北京)有限公司
Publication of WO2023125269A1 publication Critical patent/WO2023125269A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services

Definitions

  • the present application relates to the technical field of the Internet of Things, and in particular to a method, device and system for controlling an Internet of Things device.
  • the Internet of Things is a network that combines various information sensing devices and networks. It is an extension and expansion of the Internet, and it can realize the interconnection and intercommunication between people, machines and things at different times and places.
  • embedded devices are widely used in daily life, such as routers, home smart sensors and so on. Due to the limited storage resources and computing power of these embedded devices, how to connect these embedded devices to the IoT platform for unified control and management is an urgent problem to be solved.
  • Embodiments of the present application provide a method, device, and system for controlling Internet of Things devices, so as to realize unified control and management of embedded Internet of Things devices.
  • the embodiment of the present application provides a method for controlling an Internet of Things device, which is applied to a message queue telemetry transmission MQTT protocol proxy server, and the method includes:
  • a control interface for controlling the Internet of Things device is generated, and the Internet of Things device is an embedded Internet of Things device;
  • the generating a control interface for controlling the IoT device according to the IoT device connected to the MQTT protocol proxy server includes:
  • the control interface is generated according to the device type of the IoT device.
  • the generating the control interface according to the device type of the Internet of Things device includes:
  • the control interface is generated according to the device icon and the operation set of the Internet of Things device, the control interface includes the device icon of the Internet of Things device, and the device icon is associated with at least one control operation in the corresponding operation set.
  • the MQTT protocol proxy server includes a preset graphic library, and the preset graphic library includes a plurality of preset graphics; according to the device type of the Internet of Things device, the determined Device icons for IoT devices described above, including:
  • any IoT device determine a target graphic corresponding to the IoT device in the plurality of preset graphics, and determine the target graphic as The device icon for the IoT device.
  • the sending the interface file of the control interface to the terminal device includes:
  • the method also includes:
  • the embodiment of the present application provides a method for controlling an Internet of Things device, which is applied to a terminal device, and the method includes:
  • control interface is an interface for controlling an IoT device connected to the MQTT protocol proxy server, and the IoT device is an embedded IoT device.
  • the displaying the corresponding control interface according to the interface file includes:
  • the method also includes:
  • the sending the operation instruction for the IoT device to the MQTT protocol proxy server includes:
  • the sub-control interface includes at least one control area, and each control area corresponds to the IoT device.
  • the operation instruction is sent to the MQTT protocol proxy server.
  • the embodiment of the present application provides an apparatus for controlling an Internet of Things device, including:
  • a processing module configured to generate a control interface for controlling the IoT device according to the IoT device connected to the MQTT protocol proxy server, the IoT device being an embedded IoT device;
  • the transceiver module is configured to send the interface file of the control interface to the terminal device, and the interface file is used to display the control interface on the terminal device.
  • the processing module is specifically configured to:
  • the control interface is generated according to the device type of the IoT device.
  • the processing module is specifically configured to:
  • the control interface is generated according to the device icon and the operation set of the Internet of Things device, the control interface includes the device icon of the Internet of Things device, and the device icon is associated with at least one control operation in the corresponding operation set.
  • the MQTT protocol proxy server includes a preset graphics library, and the preset graphics library includes a plurality of preset graphics; the processing module is specifically used for:
  • any IoT device determine a target graphic corresponding to the IoT device in the plurality of preset graphics, and determine the target graphic as The device icon for the IoT device.
  • the transceiver module is specifically used for:
  • the transceiver module is specifically used for:
  • the embodiment of the present application provides an apparatus for controlling an Internet of Things device, including:
  • the receiving module is used to receive the interface file from the MQTT protocol proxy server;
  • a processing module configured to display a corresponding control interface according to the interface file
  • the control interface is an interface for controlling the IoT device connected to the MQTT protocol proxy server
  • the IoT device is an embedded IoT device Internet-connected devices.
  • the processing module is specifically configured to:
  • the processing module is also used for:
  • the processing module is also used for:
  • the sub-control interface includes at least one control area, and each control area corresponds to the IoT device.
  • the operation instruction is sent to the MQTT protocol proxy server.
  • an IoT device control device including:
  • a processor configured to execute the program stored in the memory, and when the program is executed, the processor is configured to execute the IoT device control method described in any one of the first aspect or the second aspect.
  • the embodiment of the present application provides a control system for an Internet of Things device, including an MQTT protocol proxy server, an Internet of Things device, and a terminal device, wherein:
  • the Internet of Things device is connected to the MQTT protocol proxy server, and the Internet of Things device is an embedded Internet of Things device;
  • the MQTT protocol proxy server is used to generate a control interface for controlling the Internet of Things device according to the Internet of Things device, and send an interface file of the control interface to the terminal device;
  • the terminal device is configured to display the control interface according to the interface file.
  • the embodiment of the present application provides a computer-readable storage medium, including instructions, which, when run on a computer, cause the computer to execute the IoT device control method described in any one of the first aspect or the second aspect .
  • an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, implements the IoT device control method described in any one of the first aspect or the second aspect.
  • the MQTT protocol proxy server In the IoT device control method, device and system provided in the embodiments of the present application, first, the MQTT protocol proxy server generates a control interface for controlling the IoT device according to the IoT device connected to it, and then sends the interface file of the control interface to the terminal device , the terminal device can display the control interface through the interface file, so that the user can control the IoT device through the control interface.
  • the solution of this application implements the communication between the MQTT protocol proxy server and the Internet of Things devices based on the MQTT protocol, and provides control objects through the control interface.
  • the platform for networking devices can realize the unified management and interface management of IoT devices.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a method for controlling an Internet of Things device provided in an embodiment of the present application
  • FIG. 3 is a schematic diagram of the implementation of the MQTT protocol provided by the embodiment of the present application.
  • FIG. 4 is a schematic flow diagram of generating a control interface provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a preset graphics library provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a control interface provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of MQTT protocol communication interaction provided by the embodiment of the present application.
  • FIG. 8 is a schematic diagram of a smart home security system based on the MQTT protocol provided by the embodiment of the present application.
  • FIG. 9 is a schematic flowchart of a method for controlling an Internet of Things device provided in an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an apparatus for controlling an Internet of Things device provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of an IoT device control device provided in an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an IoT device control system provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a hardware structure of an IoT device control device provided by an embodiment of the present invention.
  • MQTT Message Queuing Telemetry Transport, message queue telemetry transmission, is a message protocol based on the publish/subscribe paradigm under the International Organization for Standardization (ISO) standard, working on the Transmission Control Protocol (Transmission Control Protocol, TCP)/Internet interconnection
  • IP Internet Protocol
  • the MQTT protocol is lightweight, simple, open, and easy to implement, and its applicability is very wide. In many constrained environments, such as machine-to-machine communication and the Internet of Things, communication sensors via satellite links, occasional dial-up medical equipment, It is widely used in smart home and some miniaturized devices.
  • Internet of Things refers to the real-time collection of sound, light, heat, electricity, location, etc. through various information sensing devices or technologies (such as information sensors, radio frequency identification technology, laser scanners, etc.) The required information is then accessed through the network to realize the extensive connection between things and things and between things and people, and realize various intelligent perception, identification and management.
  • the Internet of Things is an information carrier based on the Internet, telecommunication networks, etc., and is an interconnected network.
  • Embedded device Composed of hardware and software, it is a period that can operate independently.
  • the software of embedded devices includes the software operating environment and its operating system, and the hardware includes signal processors, memory, etc.
  • Embedded devices lack large-capacity storage capabilities.
  • an embodiment of the present application provides a control solution for an Internet of Things device, so as to realize unified control and management of the Internet of Things device.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application. As shown in FIG. 1 , it includes an MQTT protocol proxy server 11 , an Internet of Things device 12 and a terminal device 13 .
  • the IoT device 12 is connected to the MQTT protocol proxy server 11, the number of the IoT device 12 can be one or more, and the MQTT protocol proxy server 11 can be a cloud system platform.
  • the MQTT protocol proxy server 11 can generate a corresponding control interface according to the connected IoT device 12, and the control interface can be stored on the side of the MQTT protocol proxy server 11, or can be displayed on various devices with display functions, such as the terminal shown in Figure 1
  • the terminal device 13 may be a mobile phone, a computer, a PC, a television, and other devices, or may be a display screen, a monitor, and the like.
  • the user can control the IoT device 12 through the control interface.
  • the user can operate the control interface so that the terminal device 13 can send a corresponding instruction to the MQTT protocol proxy server 11, and the MQTT protocol proxy server 11 can then control the Internet of Things device 12 through the instruction, for example, it can control the startup of the Internet of Things device 12, shutdown etc.
  • the IoT device 12 and the MQTT protocol proxy server 11 can interact through the MQTT protocol.
  • the IoT device 12 needs to send data to the MQTT protocol proxy server 11
  • the IoT device 12 uploads the encapsulated data to the MQTT protocol proxy server through the MQTT protocol.
  • the MQTT protocol proxy server 11 can also update the control interface according to the data uploaded by the IoT device 12.
  • FIG. 1 The application scenario of the present application is introduced in FIG. 1 , and the solution of the present application will be described in detail below in conjunction with FIG. 2 .
  • Fig. 2 is a schematic flow diagram of the IoT device control method provided by the embodiment of the present application. The method is applied to an MQTT protocol proxy server. As shown in Fig. 2, the method may include:
  • the MQTT protocol proxy server is a server that communicates based on the MQTT protocol.
  • Fig. 3 is a schematic diagram of the implementation of the MQTT protocol provided by the embodiment of the present application. As shown in Fig. 3, the implementation of the MQTT protocol requires communication between the client and the server.
  • the MQTT protocol There are three identities in the MQTT protocol, namely the publisher (Publish), the agent ( Broker) and a subscriber (Subscribe), wherein both the publisher and the subscriber of the message are clients, the message broker is a server, the message publisher can be a subscriber at the same time, and the number of subscribers can be one or more.
  • the identity of the MQTT protocol proxy server is the agent, and the IoT device can be a device using the MQTT protocol.
  • the IoT device can establish a connection with the MQTT protocol proxy server, or disconnect from the MQTT protocol proxy server. Publish messages, subscribe to messages, unsubscribe from messages, and more.
  • the MQTT protocol proxy server can accept the network connection of the Internet of Things, the application information published by the client, and can also handle the subscription and unsubscription requests from the client, etc.
  • the MQTT protocol proxy server, the IoT device and the terminal device can all be connected to the same network through WIFI, wherein the IoT device is an embedded IoT device.
  • each IoT device can establish an MQTT connection with the MQTT protocol proxy server.
  • the MQTT protocol proxy server can generate a control interface according to the connected IoT devices, and the control interface is used to control these IoT devices.
  • the control interface includes device icons of each IoT device.
  • the terminal device may be a mobile phone, a computer, a tablet, and the like, or may be a TV, a monitor, and the like.
  • the control interface can be stored on the side of the MQTT protocol proxy server, and can also be displayed on the side of the terminal device.
  • the MQTT protocol proxy server can send the interface file of the control interface to the terminal device, and the terminal device displays the control interface by parsing the interface file.
  • the user can control the IoT device by manipulating the control interface displayed on the terminal device.
  • the MQTT protocol proxy server In the IoT device control method provided in the embodiment of the present application, first, the MQTT protocol proxy server generates a control interface for controlling the IoT device according to the IoT device connected to it, and then sends the interface file of the control interface to the terminal device, and the terminal device can The control interface is displayed through the interface file, so that the user can control the IoT device through the control interface.
  • the solution of this application implements the communication between the MQTT protocol proxy server and the Internet of Things devices based on the MQTT protocol, and provides control objects through the control interface.
  • the platform for networking devices can realize the unified management and interface management of IoT devices.
  • the MQTT protocol proxy server can realize the unified management of IoT devices.
  • the MQTT protocol proxy server is mainly composed of WIFI IoT module and MQTT module.
  • the WIFI IoT module is an IoT hardware module based on WIFI, which supports WIFI, Bluetooth (BT), 4G, 5G, MQTT, Near Field Communication (NFC), etc.
  • the WIFI IoT module is based on one or more Micro Controller Units (MCUs) and supports one or more Real-time operating systems (RTOS).
  • MCUs Micro Controller Units
  • RTOS Real-time operating systems
  • the MQTT module has the MQTT software library, supports MQTT to transmit data, and supports the abstract protocol for transmitting the control and events of the Graphical User Interface (GUI) and other structures.
  • the MQTT module is a graphics library for GUI software.
  • the graphics library supports MQTT abstract GUI protocol transmission, supports GUI functions, supports abstraction into a B+ tree structure data structure, supports collocation similar to btrfs file system, and has the function of using snapshot backup technology. Support for icons with standards to represent a class of IoT devices.
  • the graphics library can also support cross-platform interface operations. These operations can be realized through keyboard, mouse, touch screen, etc.
  • the interface operations can include interface refresh, device icon movement, etc., and can also realize the control interface displayed on multiple terminal devices. data synchronization.
  • MQTT supports the transmission abstract GUI protocol, including image engine, input abstraction, graphic abstraction, message management, etc.
  • the image engine can include graphic abstraction layer operations, such as opening the IoT device, device resolution and display mode, closing the object Networked devices, etc.
  • input abstraction refers to the way of input control instructions, such as including keyboard, keypad, mouse, touch screen, etc.
  • graphics abstraction for example, includes drawing curves, outputting text, filling rectangles, image support, etc.
  • message management such as Including event-driven.
  • MQTT supports the transmission of abstract GUI protocol, which refers to the abstraction of the common parts of the GUI into a structure, and includes them according to the file in the B+ tree mode.
  • the B+ tree mode supports matching with a file system similar to btrfs.
  • the file system has the use of snapshot backup technology.
  • MQTT protocol for transmission. Specifically, through abstraction, the common parts of the GUI are formed into a structure, which is stored in a file in the form of a B+ tree, and then the file is transmitted through the MQTT protocol proxy server based on the MQTT protocol, and various terminal devices parse the file (ie interface file) to display the control interface.
  • the visualization of the control interface can be realized, so that when the control interface is displayed on multiple terminal devices at the same time, the control interfaces displayed on the multiple terminal devices are the same and synchronized.
  • embedded IoT devices lack storage resources and computing power, they rarely support GUI systems, and it is difficult to integrate a large GUI software library and maintain it with power consumption. Therefore, current embedded IoT devices lack interfaces. Easy to manage. Even though some embedded IoT devices have some interface operations, these interface operations are usually for specific IoT devices, and cannot be operated uniformly to achieve commonality between devices.
  • MQTT is used as a key component for the interconnection of the Internet of Things operating system, and on the other hand, the data encapsulated by the interfaces of various Internet of Things devices can be passed through MQTT and WIFI uploads to the network.
  • the solution of this application uses the MQTT protocol to achieve interconnection. This lightweight protocol can reduce the investment of embedded Internet of Things devices, and can also improve data transmission efficiency. The realization of interconnection more simple.
  • Fig. 4 is a schematic flow diagram of generating a control interface provided by the embodiment of the present application, as shown in Fig. 4, including:
  • IoT devices There may be one or more IoT devices connected to the MQTT protocol proxy server, and different IoT devices may have different device types.
  • IoT devices as home devices as an example, these home devices can include washing machines, water heaters, refrigerators, curtains, air conditioners, humidifiers, temperature and humidity sensors, exhausters, smoke alarms, etc. These sensors belong to different types IoT devices.
  • the MQTT protocol proxy server Before the MQTT protocol proxy server generates the control interface, it first needs to obtain the device type of the IoT device.
  • the MQTT protocol proxy server After the MQTT protocol proxy server obtains the device type of the IoT device, it generates a control interface based on the device type.
  • the control interface includes the device icon of the IoT device.
  • the device icon is the entrance to control the IoT device.
  • the device icon can be associated with the corresponding operation set At least one of the control operations.
  • the operation set can include general control operations and proprietary control operations.
  • General control operations are control operations that can be performed by most IoT devices, such as power-on operations, shutdown operations, etc., and proprietary control operations are specific to certain device types. Control operations that can only be performed by IoT devices, such as increasing humidity and decreasing humidity for humidifiers, exhausting air for exhausters, and so on.
  • the device icon of the IoT device may be determined according to the device type of the IoT device.
  • a preset graphics library is stored in the MQTT protocol proxy server, that is, the graphics library of the GUI software of the MQTT module in the embodiment of FIG. Select the target graphic in the preset graphic as the device icon of the IoT device.
  • FIG. 5 is a schematic diagram of a preset graphics library provided by an embodiment of the present application. As shown in FIG. 5 , multiple preset graphics are illustrated. According to different device types, different preset graphics are set in the preset graphic library 50, and different preset graphics are associated with different device types. For example, in Fig. 5, 3 areas are set, including 3 preset graphics in area 51, the preset graphics in area 51 are associated graphics of routers, the preset graphics in area 52 are associated graphics of air conditioners, and area 53 The preset graphic in is the associated graphic of home equipment, etc.
  • the MQTT protocol proxy server can obtain the correspondence between multiple preset graphics and device types, and after obtaining the device type of the IoT device, according to the device type and the preset A corresponding relationship between graphics and device types is established, a target graphic corresponding to the IoT device is determined among multiple preset graphics, and the target graphic is determined as a device icon of the IoT device. For example, if the IoT device is a router, the MQTT protocol proxy server may determine a preset graphic corresponding to the router among multiple preset graphics.
  • this preset graphic is the target graphic corresponding to the router, and the preset graphic can be used as the device icon of the router. If there are multiple preset graphics corresponding to the router, a target graphic can be selected from the multiple preset graphics and used as the device icon of the router.
  • the device icon on the control interface is associated with at least one control operation in the operation set.
  • an operation set of the IoT device may be determined according to the device type, and different device types correspond to different operation sets.
  • a router its operation set may include startup operation and shutdown operation
  • an air conditioner its operation set may include startup operation, shutdown operation, and temperature adjustment operation
  • a humidifier its operation set may include It includes power-on operation, power-off operation and humidity adjustment operation.
  • the operation set may include the operation of moving curtains and so on.
  • the corresponding operation set can be determined, and a control interface is generated according to the device icon and the operation set of the IoT device.
  • the control interface includes the device icon of the IoT device, and the device icon association At least one control operation in the corresponding operation set.
  • FIG. 6 is a schematic diagram of a control interface provided by an embodiment of the present application.
  • the control interface 60 includes device icons of various IoT devices, and different IoT devices have different device icons.
  • the control interface 60 can be displayed on each terminal device.
  • the MQTT protocol proxy server can generate the interface file of the control interface according to the interface data of the control interface, and then send the interface file to the terminal device based on the MQTT protocol.
  • the terminal device parses the interface file according to the MQTT protocol to obtain the interface data of the control interface, and then displays the control interface according to the interface data of the control interface.
  • the device icons on the control interface can be displayed in grids, each grid contains a device icon, and a device icon represents a type of IoT device.
  • the temperature and humidity sensor corresponds to a device icon
  • the air conditioner corresponds to another device icon. After clicking on the device icon, the device classification of the corresponding device type can be displayed.
  • a plurality of device icons together constitute a control interface, which is a summary of one or more IoT devices.
  • the control interface can be displayed on the subscriber, publisher, and agent. Subscribers, such as mobile phones, tablets, etc., can be controlled by the subscriber and refreshed synchronously with other terminals. Agents, such as cloud servers and local PCs, can also be controlled.
  • the synchronous update of the interface, the publishing end, for example, includes TV, etc., can control the IoT device and refresh it synchronously with other ends.
  • the terminal device may be various devices with a display function, and the control interface may be displayed on multiple terminal devices at the same time.
  • the control interface 60 can be displayed on a mobile phone 61 , a computer 62 , an electronic watch 63 , and so on.
  • the control interface displayed on each terminal device is the same, and is synchronized through the MQTT protocol proxy server.
  • the control interface can be displayed on the subscriber, agent and publisher at the same time. Taking the mobile phone as an example, click the device icon of the temperature and humidity sensor on the mobile phone interface to enter the temperature and humidity sensor selection interface. At this time, the control interface displayed on other terminals can be Refresh synchronously. Select the temperature and humidity sensor in the bedroom on the mobile phone interface, and you can control the IoT device by sending operation instructions to the MQTT protocol proxy server, and so on.
  • FIG. 7 is a schematic diagram of the MQTT protocol communication interaction provided by the embodiment of the present application.
  • the IoT device control solution based on the MQTT protocol provided by the embodiment of the present application can be applied to different fields, for example, it can include transportation logistics, Medical field, industrial energy, smart home, etc.
  • the user can control the IoT device through the control interface on the terminal device.
  • the terminal device can send an operation instruction for the IoT device to the MQTT protocol proxy server.
  • the operation instruction includes the identification of the target control operation, and the operation instruction is used for Instruct IoT devices to perform targeted control actions.
  • the MQTT protocol proxy server After the MQTT protocol proxy server receives an operation instruction for the Internet of Things device from the terminal device, it can send a control instruction to the Internet of Things device according to the operation instruction, and the control instruction instructs the Internet of Things device to perform a target control operation.
  • the manner in which the terminal device sends the operation instruction to the MQTT protocol proxy server may be realized by touch operation of the device icon on the control interface.
  • the user wants to control a certain Internet of Things device, he can click the target device icon of the Internet of Things device on the control interface of the terminal device, and the terminal device responds to the touch operation on the target device icon of the Internet of Things device, A sub-control interface of the IoT device is displayed, and the sub-control interface includes at least one control area, and each control area corresponds to a control operation of the IoT device.
  • the IoT device as an air conditioner as an example
  • the user can click the device icon of the air conditioner on the control interface, and the terminal device will display the sub-control interface of the air conditioner.
  • the sub-control interface includes the control area corresponding to power on, the control area corresponding to power off, and the temperature adjustment control area, etc.
  • the terminal device sends an operation command to the MQTT protocol proxy server in response to the touch operation on the target control area (ie, the control area corresponding to the power-on operation) on the sub-control interface .
  • the MQTT protocol proxy server can send a start-up control instruction to the air conditioner according to the operation instruction.
  • the IoT device After receiving the start-up control instruction, the IoT device performs a start-up operation according to the start-up control instruction.
  • FIG 8 is a schematic diagram of a smart home security system based on the MQTT protocol provided by the embodiment of the present application.
  • the smart home system includes multiple smart home devices, such as cameras, smoke alarms, infrared detectors, etc., these Smart home devices are connected to the network through the smart home host, and the message filtering layer (that is, the MQTT protocol proxy server) can communicate with the smart home host through WIFI.
  • the message filtering layer that is, the MQTT protocol proxy server
  • the connection between servers, and the terminal device can subscribe to the message of the MQTT protocol proxy server, so as to display the control interface generated by the MQTT protocol proxy server on the terminal device.
  • the MQTT protocol proxy server When the MQTT protocol proxy server communicates with the smart home host through WIFI, the MQTT protocol proxy server first captures the PCAP (packet capture) traffic packet, then filters the MQTT protocol data packet, and reads the Topic bit of the MQTT protocol (used in MQTT) Subscription relationship maintenance), so as to identify smart home devices and establish connections. After the connection is established, the user can control the smart home device through the control interface on the terminal device.
  • PCAP packet capture
  • the MQTT protocol proxy server In the IoT device control method provided in the embodiment of the present application, first, the MQTT protocol proxy server generates a control interface for controlling the IoT device according to the IoT device connected to it, and then sends the interface file of the control interface to the terminal device, and the terminal device can The control interface is displayed through the interface file, so that the user can control the IoT device through the control interface.
  • the solution of this application implements the communication between the MQTT protocol proxy server and the Internet of Things devices based on the MQTT protocol, and provides control objects through the control interface.
  • the platform for networking devices can realize the unified management and interface management of IoT devices.
  • FIG. 9 is a schematic flowchart of a method for controlling an IoT device provided in an embodiment of the present application. The method is applied to a terminal device. As shown in FIG. 9 , the method may include:
  • control interface is an interface for controlling the IoT device connected to the MQTT protocol proxy server, and the IoT device is an embedded IoT device.
  • the displaying the corresponding control interface according to the interface file includes:
  • the method also includes:
  • the sending the operation instruction for the IoT device to the MQTT protocol proxy server includes:
  • the sub-control interface includes at least one control area, and each control area corresponds to the IoT device.
  • the operation instruction is sent to the MQTT protocol proxy server.
  • the method in the embodiment of FIG. 9 is a method embodiment on the terminal device side corresponding to the method on the MQTT protocol proxy server side shown in the embodiment in FIG.
  • FIG. 10 is a schematic structural diagram of an IoT device control device provided in an embodiment of the present application. As shown in FIG. 10 , the IoT device control device 100 includes:
  • the processing module 101 is configured to generate a control interface for controlling the IoT device according to the IoT device connected to the MQTT protocol proxy server, and the IoT device is an embedded IoT device;
  • the transceiver module 102 is configured to send an interface file of the control interface to the terminal device, and the interface file is used to display the control interface on the terminal device.
  • the processing module 101 is specifically configured to:
  • the control interface is generated according to the device type of the IoT device.
  • the processing module 101 is specifically configured to:
  • the control interface is generated according to the device icon and the operation set of the Internet of Things device, the control interface includes the device icon of the Internet of Things device, and the device icon is associated with at least one control operation in the corresponding operation set.
  • the MQTT protocol proxy server includes a preset graphics library, and the preset graphics library includes a plurality of preset graphics; the processing module 101 is specifically used for:
  • any IoT device determine a target graphic corresponding to the IoT device in the plurality of preset graphics, and determine the target graphic as The device icon for the IoT device.
  • the transceiver module 102 is specifically configured to:
  • the transceiver module 102 is specifically configured to:
  • the device provided in this embodiment can be used to implement the technical solutions of the above method embodiments, and its implementation principle and technical effect are similar, so this embodiment will not repeat them here.
  • FIG. 11 is a schematic structural diagram of an IoT device control device provided in an embodiment of the present application. As shown in FIG. 11 , the IoT device control device 110 includes:
  • Receiving module 111 for receiving interface file from MQTT protocol proxy server
  • the processing module 112 is configured to display a corresponding control interface according to the interface file, the control interface is an interface for controlling the IoT device connected to the MQTT protocol proxy server, and the IoT device is an embedded IoT devices.
  • processing module 112 is specifically configured to:
  • processing module 112 is also configured to:
  • processing module 112 is also configured to:
  • the sub-control interface includes at least one control area, and each control area corresponds to the IoT device.
  • the operation instruction is sent to the MQTT protocol proxy server.
  • the device provided in this embodiment can be used to implement the technical solutions of the above method embodiments, and its implementation principle and technical effect are similar, so this embodiment will not repeat them here.
  • FIG. 12 is a schematic structural diagram of an IoT device control system provided in the embodiment of the present application. As shown in FIG. 12 , it includes an MQTT protocol proxy server 121, an IoT device 122, and a terminal device 123, wherein:
  • the Internet of Things device 122 is connected with the MQTT protocol proxy server 121, and the Internet of Things device 122 is an embedded Internet of Things device;
  • the MQTT protocol proxy server 121 is used to generate a control interface for controlling the Internet of Things device 122 according to the Internet of Things device 122, and send an interface file of the control interface to the terminal device 123;
  • the terminal device 123 is configured to display the control interface according to the interface file.
  • the Internet of Things device control system provided in the embodiment of the present application can realize the control of the Internet of Things device through the interaction between the MQTT protocol proxy server 121, the Internet of Things device 122 and the terminal device 123.
  • the specific implementation method please refer to the above method embodiment. I won't repeat them here.
  • the embodiment of the present application may further provide a computer program product, which may be executed by a processor, and when the computer program product is executed, any one of the above-mentioned methods for controlling an Internet of Things device may be implemented.
  • FIG. 13 is a schematic diagram of the hardware structure of the IoT device control device provided by the embodiment of the present invention.
  • the IoT device control device in this embodiment includes: a processor 131 and a memory 132;
  • Memory 132 for storing computer-executable instructions
  • the processor 131 is configured to execute the computer-executable instructions stored in the memory, so as to implement the various steps performed by the IoT device control method in the above-mentioned embodiments. For details, refer to the related descriptions in the foregoing method embodiments.
  • the memory 132 can be independent or integrated with the processor 131 .
  • the IoT device control device When the memory 132 is set independently, the IoT device control device further includes a bus 133 for connecting the memory 132 and the processor 131 .
  • the embodiment of the present invention also provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the above-mentioned Internet of Things device control device executed by the Internet of Things Networked device control method.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules is only a logical function division. In actual implementation, there may be other division methods, for example, multiple modules can be combined or integrated. to another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical, mechanical or other forms.
  • the above-mentioned integrated modules implemented in the form of software function modules can be stored in a computer-readable storage medium.
  • the above-mentioned software function modules are stored in a storage medium, and include several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) or a processor (processor) execute the methods described in various embodiments of the present invention. partial steps.
  • processor can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC) wait.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the steps of the method disclosed in conjunction with the invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
  • the storage may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage, and may also be a U disk, a mobile hard disk, a read-only memory, a magnetic disk, or an optical disk.
  • NVM non-volatile storage
  • the bus can be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, etc.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the buses in the drawings of the present invention are not limited to only one bus or one type of bus.
  • the above-mentioned storage medium can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable In addition to programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM programmable read-only memory
  • ROM read-only memory
  • magnetic memory magnetic memory
  • flash memory magnetic disk or optical disk.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.
  • the aforementioned program can be stored in a computer-readable storage medium.
  • the program executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
  • the term “include” and its variants may mean non-limiting inclusion; the term “or” and its variants may mean “and/or”.
  • the terms “first”, “second”, etc. in this application are used to distinguish similar objects, and not necessarily used to describe a specific order or sequence.
  • “plurality” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character “/” generally indicates that the contextual objects are an "or” relationship.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请实施例提供一种物联网设备控制方法、装置及系统,该方法应用于MQTT协议代理服务器,该方法包括:根据与所述MQTT协议代理服务器连接的物联网设备,生成用于控制所述物联网设备的控制界面,所述物联网设备为嵌入式物联网设备;向终端设备发送所述控制界面的界面文件,所述界面文件用于在所述终端设备上显示所述控制界面。针对嵌入式设备缺乏存储能力和运算能力导致无法进行统一的控制和管理的问题,本申请的方案,基于MQTT协议实现MQTT协议代理服务器和物联网设备之间的通信,并通过控制界面提供控制物联网设备的平台,能够实现物联网设备的统一管理和界面化管理。

Description

物联网设备控制方法、装置及系统
本申请要求于2021年12月27日提交国家知识产权局、申请号为202111616602.6、申请名称为“物联网设备控制方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及物联网技术领域,尤其涉及一种物联网设备控制方法、装置及系统。
背景技术
物联网是一种将各种信息传感设备与网络结合起来的网络,是互联网基础上的延伸和扩展,能够实现不同时间和地点上的人、机、物之间的互联互通。
目前,嵌入式设备广泛应用到日常生活中,例如路由器、家居智能传感器等等。由于这些嵌入式设备的存储资源和运算能力有限,如何将这些嵌入式设备接入物联网平台进行统一的控制和管理,是目前亟需解决的问题。
发明内容
本申请实施例提供一种物联网设备控制方法、装置及系统,以实现嵌入式物联网设备统一的控制和管理。
第一方面,本申请实施例提供一种物联网设备控制方法,应用于消息队列遥测传输MQTT协议代理服务器,所述方法包括:
根据与所述MQTT协议代理服务器连接的物联网设备,生成用于控制所述物联网设备的控制界面,所述物联网设备为嵌入式物联网设备;
向终端设备发送所述控制界面的界面文件,所述界面文件用于在所述终端设备上显示所述控制界面。
在一种可能的实施方式中,所述根据与所述MQTT协议代理服务器连接的物联网设备,生成用于控制所述物联网设备的控制界面,包括:
获取所述物联网设备的设备类型;
根据所述物联网设备的设备类型,生成所述控制界面。
在一种可能的实施方式中,所述根据所述物联网设备的设备类型,生成所 述控制界面,包括:
根据所述物联网设备的设备类型,确定所述物联网设备的设备图标;
根据所述物联网设备的设备类型,确定所述物联网设备的操作集合,所述操作集合中包括至少一个控制操作;
根据所述物联网设备的设备图标和操作集合,生成所述控制界面,所述控制界面上包括所述物联网设备的设备图标,所述设备图标关联对应的操作集合中的至少一个控制操作。
在一种可能的实施方式中,所述MQTT协议代理服务器中包括预设图形库,所述预设图形库中包括多个预设图形;所述根据所述物联网设备的设备类型,确定所述物联网设备的设备图标,包括:
获取所述多个预设图形与设备类型的对应关系;
针对任意一个物联网设备,根据所述对应关系和所述物联网设备的设备类型,在所述多个预设图形中确定所述物联网设备对应的目标图形,并将所述目标图形确定为所述物联网设备的设备图标。
在一种可能的实施方式中,所述向终端设备发送所述控制界面的界面文件,包括:
根据所述控制界面的界面数据生成所述界面文件;
基于MQTT协议向所述终端设备发送所述界面文件。
在一种可能的实施方式中,所述方法还包括:
从所述终端设备接收针对于所述物联网设备的操作指令,所述操作指令中包括目标控制操作的标识;
根据所述操作指令,向所述物联网设备发送控制指令,所述控制指令用于指示所述物联网设备执行所述目标控制操作。
第二方面,本申请实施例提供一种物联网设备控制方法,应用于终端设备,所述方法包括:
从MQTT协议代理服务器接收界面文件;
根据所述界面文件显示对应的控制界面,所述控制界面为用于控制与所述MQTT协议代理服务器连接的物联网设备的界面,所述物联网设备为嵌入式物联网设备。
在一种可能的实施方式中,所述根据所述界面文件显示对应的控制界面,包括:
对所述界面文件进行MQTT协议解析处理,得到对应的界面数据;
根据所述界面数据,显示所述控制界面。
在一种可能的实施方式中,所述方法还包括:
向所述MQTT协议代理服务器发送针对于所述物联网设备的操作指令,所述操作指令中包括目标控制操作的标识,所述操作指令用于指示所述物联网设备执行所述目标控制操作。
在一种可能的实施方式中,所述向所述MQTT协议代理服务器发送针对于所述物联网设备的操作指令,包括:
响应于针对所述物联网设备的目标设备图标的触控操作,显示所述物联网设备的子控制界面,所述子控制界面上包括至少一个控制区域,每个控制区域对应于所述物联网设备的一个控制操作;
响应于针对所述子控制界面上的目标控制区域的触控操作,向所述MQTT协议代理服务器发送所述操作指令。
第三方面,本申请实施例提供一种物联网设备控制装置,包括:
处理模块,用于根据与所述MQTT协议代理服务器连接的物联网设备,生成用于控制所述物联网设备的控制界面,所述物联网设备为嵌入式物联网设备;
收发模块,用于向终端设备发送所述控制界面的界面文件,所述界面文件用于在所述终端设备上显示所述控制界面。
在一种可能的实施方式中,所述处理模块具体用于:
获取所述物联网设备的设备类型;
根据所述物联网设备的设备类型,生成所述控制界面。
在一种可能的实施方式中,所述处理模块具体用于:
根据所述物联网设备的设备类型,确定所述物联网设备的设备图标;
根据所述物联网设备的设备类型,确定所述物联网设备的操作集合,所述操作集合中包括至少一个控制操作;
根据所述物联网设备的设备图标和操作集合,生成所述控制界面,所述控制界面上包括所述物联网设备的设备图标,所述设备图标关联对应的操作集合中的至少一个控制操作。
在一种可能的实施方式中,所述MQTT协议代理服务器中包括预设图形库,所述预设图形库中包括多个预设图形;所述处理模块具体用于:
获取所述多个预设图形与设备类型的对应关系;
针对任意一个物联网设备,根据所述对应关系和所述物联网设备的设备类型,在所述多个预设图形中确定所述物联网设备对应的目标图形,并将所述目 标图形确定为所述物联网设备的设备图标。
在一种可能的实施方式中,所述收发模块具体用于:
根据所述控制界面的界面数据生成所述界面文件;
基于MQTT协议向所述终端设备发送所述界面文件。
在一种可能的实施方式中,所述收发模块具体用于:
从所述终端设备接收针对于所述物联网设备的操作指令,所述操作指令中包括目标控制操作的标识;
根据所述操作指令,向所述物联网设备发送控制指令,所述控制指令用于指示所述物联网设备执行所述目标控制操作。
第四方面,本申请实施例提供一种物联网设备控制装置,包括:
接收模块,用于从MQTT协议代理服务器接收界面文件;
处理模块,用于根据所述界面文件显示对应的控制界面,所述控制界面为用于控制与所述MQTT协议代理服务器连接的所述物联网设备的界面,所述物联网设备为嵌入式物联网设备。
在一种可能的实施方式中,所述处理模块具体用于:
对所述界面文件进行MQTT协议解析处理,得到对应的界面数据;
根据所述界面数据,显示所述控制界面。
在一种可能的实施方式中,所述处理模块还用于:
向所述MQTT协议代理服务器发送针对于所述物联网设备的操作指令,所述操作指令中包括目标控制操作的标识,所述操作指令用于指示所述物联网设备执行所述目标控制操作。
在一种可能的实施方式中,所述处理模块还用于:
响应于针对所述物联网设备的目标设备图标的触控操作,显示所述物联网设备的子控制界面,所述子控制界面上包括至少一个控制区域,每个控制区域对应于所述物联网设备的一个控制操作;
响应于针对所述子控制界面上的目标控制区域的触控操作,向所述MQTT协议代理服务器发送所述操作指令。
第五方面,本申请实施例提供一种物联网设备控制设备,包括:
存储器,用于存储程序;
处理器,用于执行所述存储器存储的所述程序,当所述程序被执行时,所述处理器用于执行如第一方面或第二方面中任一所述的物联网设备控制方法。
第六方面,本申请实施例提供一种物联网设备控制系统,包括MQTT协议代 理服务器、物联网设备和终端设备,其中:
所述物联网设备与所述MQTT协议代理服务器连接,所述物联网设备为嵌入式物联网设备;
所述MQTT协议代理服务器用于根据所述物联网设备,生成用于控制所述物联网设备的控制界面,并向所述终端设备发送所述控制界面的界面文件;
所述终端设备用于根据所述界面文件显示所述控制界面。
第七方面,本申请实施例提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如第一方面或第二方面中任一所述的物联网设备控制方法。
第八方面,本申请实施例提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如第一方面或第二方面中任一所述的物联网设备控制方法。
本申请实施例提供的物联网设备控制方法、装置及系统,首先MQTT协议代理服务器根据与其连接的物联网设备,生成用于控制物联网设备的控制界面,然后向终端设备发送控制界面的界面文件,终端设备可以通过界面文件显示控制界面,从而使得用户可以通过控制界面来控制物联网设备。针对嵌入式设备缺乏存储能力和运算能力导致无法进行统一的控制和管理的问题,本申请的方案,基于MQTT协议实现MQTT协议代理服务器和物联网设备之间的通信,并通过控制界面提供控制物联网设备的平台,能够实现物联网设备的统一管理和界面化管理。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种应用场景示意图;
图2为本申请实施例提供的物联网设备控制方法的流程示意图;
图3为本申请实施例提供的MQTT协议实现方式示意图;
图4为本申请实施例提供的生成控制界面的流程示意图;
图5为本申请实施例提供的预设图形库的示意图;
图6为本申请实施例提供的一种控制界面示意图;
图7为本申请实施例提供的MQTT协议通信交互示意图;
图8为本申请实施例提供的基于MQTT协议的智能家居安防系统示意图;
图9为本申请实施例提供的物联网设备控制方法的流程示意图;
图10为本申请实施例提供的物联网设备控制装置的结构示意图;
图11为本申请实施例提供的物联网设备控制装置的结构示意图;
图12为本申请实施例提供的物联网设备控制系统的结构示意图;
图13为本发明实施例提供的物联网设备控制设备的硬件结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
首先对本申请涉及的基本概念进行介绍。
MQTT:Message Queuing Telemetry Transport,消息队列遥测传输,是国际标准化组织(International Organization for Standardization,ISO)标准下基于发布/订阅范式的消息协议,工作在传输控制协议(Transmission Control Protocol,TCP)/因特网互联协议(Internet Protocol,IP)协议族上,是为硬件性能低下的远程设备以及网络状况糟糕的情况下设计的发布/订阅型消息协议。MQTT协议是轻量、简单、开放和易于实现的,其适用范围非常广泛,在很多受限的环境中,例如机器与机器通信和物联网,通过卫星链路通信传感器、偶尔拨号的医疗设备、智能家居以及一些小型化设备中广泛使用。
物联网(Internet of Things,IoT):是指通过各种信息传感设备或技术(例如信息传感器、射频识别技术、激光扫描器等等)实时采集声、光、热、电、位置等各种需要的信息,然后通过网络接入,实现物与物、物与人的广泛连接,实现各种智能化感知、识别和管理。物联网是一个基于互联网、电信网等的信息承载体,是一个互联互通的网络。
嵌入式设备:由硬件和软件组成,是能够独立进行运作的期间。嵌入式设备的软件包括软件运行环境及其操作系统,硬件包括信号处理器、存储器等。嵌入式设备缺乏大容量的存储功能。
对于嵌入式物联网设备而言,由于其存储资源和运算能力有限,因此对于 嵌入式设备缺乏相应的管理界面,且不同的嵌入式物联网设备的类型不同,很难做到统一的管理。基于此,本申请实施例提供一种物联网设备控制方案,实现物联网设备的统一的控制和管理。下面将结合附图进行介绍。
图1为本申请实施例提供的一种应用场景示意图,如图1所示,包括MQTT协议代理服务器11、物联网设备12和终端设备13。
物联网设备12与MQTT协议代理服务器11连接,物联网设备12的数量可以为一个或多个,MQTT协议代理服务器11可以是一个云系统平台。MQTT协议代理服务器11可以根据连接的物联网设备12生成相应的控制界面,控制界面可以保存在MQTT协议代理服务器11侧,也可以显示在各种具备显示功能的设备,例如图1中示例的终端设备13上,终端设备13可以是手机、电脑、PC、电视等设备,也可以是显示屏、显示器等等。
通过在终端设备13上显示控制界面,用户可以通过控制界面来控制物联网设备12。具体的,用户可以通过操作控制界面,使得终端设备13可以向MQTT协议代理服务器11发送相应的指令,MQTT协议代理服务器11进而通过指令控制物联网设备12,例如可以控制物联网设备12的开机、关机等。物联网设备12和MQTT协议代理服务器11可以通过MQTT协议进行交互,当物联网设备12需要向MQTT协议代理服务器11发送数据时,物联网设备12将封装的数据通过MQTT协议上传至MQTT协议代理服务器11,MQTT协议代理服务器11也可以根据物联网设备12上传的数据更新控制界面。
在图1中对本申请的应用场景进行了介绍,下面将结合图2对本申请的方案进行详细介绍。
图2为本申请实施例提供的物联网设备控制方法的流程示意图,该方法应用于MQTT协议代理服务器,如图2所示,该方法可以包括:
S21,根据与MQTT协议代理服务器连接的物联网设备,生成用于控制物联网设备的控制界面,物联网设备为嵌入式物联网设备。
MQTT协议代理服务器为基于MQTT协议进行通信的服务器。图3为本申请实施例提供的MQTT协议实现方式示意图,如图3所示,MQTT协议实现需要客户端和服务器通信,在MQTT协议中有三种身份,分别是发布方(Publish)、代理方(Broker)和订阅方(Subscribe),其中,消息的发布方和订阅方都是客户端,消息代理方是服务器,消息发布方可以同时是订阅方,订阅方的数量可以是一个或多个。
MQTT协议代理服务器的身份即为代理方,而物联网设备可以为使用MQTT 协议的设备,物联网设备可以建立与MQTT协议代理服务器的连接,也可以断开与MQTT协议代理服务器的连接,还可以发布消息、订阅消息、退订消息等等。MQTT协议代理服务器可以接受物联网的网络连接、客户端发布的应用信息,还可以处理来自客户端的订阅和退订请求等等。
本申请实施例中,MQTT协议代理服务器、物联网设备和终端设备均可以通过WIFI连接到同一网络,其中,物联网设备为嵌入式物联网设备。在通过WIFI连接到同一网络后,各个物联网设备可以与MQTT协议代理服务器建立MQTT连接。然后,MQTT协议代理服务器可以根据连接的物联网设备,生成控制界面,控制界面用于控制这些物联网设备,可选的,控制界面上包括各个物联网设备的设备图标。
S22,向终端设备发送控制界面的界面文件,界面文件用于在终端设备上显示控制界面。
终端设备可以为手机、电脑、平板等设备,也可以为电视、显示器等设备。在生成控制界面后,控制界面可以存储在MQTT协议代理服务器侧,也可以显示在终端设备侧。具体的,MQTT协议代理服务器可以将控制界面的界面文件发送给终端设备,终端设备通过解析界面文件,从而显示控制界面。用户可以通过操控终端设备上显示的控制界面,来控制物联网设备。
本申请实施例提供的物联网设备控制方法,首先MQTT协议代理服务器根据与其连接的物联网设备,生成用于控制物联网设备的控制界面,然后向终端设备发送控制界面的界面文件,终端设备可以通过界面文件显示控制界面,从而使得用户可以通过控制界面来控制物联网设备。针对嵌入式设备缺乏存储能力和运算能力导致无法进行统一的控制和管理的问题,本申请的方案,基于MQTT协议实现MQTT协议代理服务器和物联网设备之间的通信,并通过控制界面提供控制物联网设备的平台,能够实现物联网设备的统一管理和界面化管理。
下面将对本申请的方案进行详细介绍。
MQTT协议代理服务器能够实现物联网设备的统一管理,MQTT协议代理服务器主要由WIFI物联网模组、MQTT模块几个模块构成。
WIFI物联网模组是基于WIFI的一个IoT的物联网硬件模组,支持包括WIFI、蓝牙(Bluetooth,BT)、4G、5G、MQTT、近场通信(Near Field Communication,NFC)等。WIFI物联网模组基于一个或多个微控制单元(Micro Controller Unit,MCU)上,支持一种或多种实时操作系统(Real-time operating system,RTOS)。
MQTT模块具备MQTT软件库,支持MQTT传输数据,支持传输图形用户界 面(Graphical User Interface,GUI)的控制与事件等结构体的抽象协议。MQTT模块是一种GUI软件的图形库,该图形库支持MQTT抽象GUI协议传输,支持GUI功能,支持抽象成为B+树结构的数据结构,支持搭配类似btrfs文件系统,具备使用快照备份技术的功能,支持具备标准的图标表示一类物联网设备。该图形库还能够支持跨平台的界面操作,这些操作可以通过键盘、鼠标、触摸屏等实现,界面操作可以包括界面刷新、设备图标移动等等,还能够实现多个终端设备上显示的控制界面的数据同步。
MQTT支持传输抽象GUI协议,例如包括图像引擎、输入抽象、图形抽象、消息管理等等,其中,图像引擎例如可以包括图形抽象层操作,如打开物联网设备、设备分辨率及显示模式、关闭物联网设备等等;输入抽象指的是输入控制指令的方式,例如包括键盘、小键盘、鼠标、触摸屏等等;图形抽象例如包括绘制曲线、输出文本、填充矩形、图像支持等等;消息管理例如包括事件驱动。MQTT支持传输抽象GUI协议是指将GUI的常见部分进行抽象化为结构体,并且以B+树方式按照文件进行包括,B+树方式支持搭配类似btrfs文件系统,该文件系统具备使用快照备份技术,以MQTT协议进行传输。具体的,通过抽象化使得GUI的常见部分组成结构体,该结构体以B+树方式存入文件,然后通过MQTT协议代理服务器基于MQTT协议传输该文件,各个不同的终端设备通过解析该文件(即界面文件)显示控制界面。通过这种文件系统支持,能够实现控制界面的影像化,使得控制界面同时在多个终端设备上显示时,多个终端设备上显示的控制界面是相同的且同步的。
由于嵌入式物联网设备缺乏存储资源和运算能力,很少能支持GUI系统,集成一个较大的GUI软件库并且用耗电维持是难以实现的,因此目前的嵌入式物联网设备缺乏界面,不方便管理。即使部分嵌入式物联网设备存在部分界面操作,但是这些界面操作通常是针对特殊的物联网设备的,无法进行统一操作,实现设备间的通用。本申请实施例的方案,通过在MQTT协议代理服务器中集成GUI软件库,使得MQTT作为物联网操作系统互联互通的关键组件,另一方面使得各种物联网设备的接口封装的数据可以通过MQTT以及WIFI上传至网络。针对物联网平台无法互联互通的问题,本申请的方案采用MQTT协议实现互联互通,这一轻量级的协议能够减小嵌入式物联网设备的投入,也能够提高数据传输效率,互联互通的实现更加简单。
图4为本申请实施例提供的生成控制界面的流程示意图,如图4所示,包括:
S41,获取物联网设备的设备类型。
与MQTT协议代理服务器连接的物联网设备的数量可能为一个或多个,且不同的物联网设备的设备类型可能不同。以物联网设备为家居设备为例,这些家居设备例如可以包括洗衣机、热水器、冰箱、窗帘、空调、加湿器、温湿度传感器、排风器、烟雾报警器等等,这些传感器均属于不同类型的物联网设备。MQTT协议代理服务器在生成控制界面之前,首先要获取物联网设备的设备类型。
S42,根据物联网设备的设备类型,生成控制界面。
MQTT协议代理服务器在获取物联网设备的设备类型后,基于设备类型生成控制界面,控制界面上包括物联网设备的设备图标,设备图标为控制物联网设备的入口,设备图标可以关联对应的操作集合中的至少一个控制操作。操作集合可以包括通用控制操作和专有控制操作,通用控制操作是针对大多数物联网设备均可以执行的控制操作,例如包括开机操作、关机操作等等,专有控制操作是针对某些设备类型的物联网设备才能执行的控制操作,例如针对加湿器的增加湿度操作和减小湿度操作,针对排风器的排风操作等等。
本申请实施例中,可以根据物联网设备的设备类型确定物联网设备的设备图标。具体的,在MQTT协议代理服务器中存储有预设图形库,即图3实施例中的MQTT模块的GUI软件的图形库,在预设图形库中包括多个预设图形,可以在这多个预设图形中选择目标图形作为物联网设备的设备图标。
图5为本申请实施例提供的预设图形库的示意图,如图5所示,示例了多个预设图形。根据不同的设备类型,在预设图形库50中设置了不同的预设图形,不同的预设图形关联不同的设备类型。例如在图5中,设置了3个区域,区域51中包括3个预设图形,区域51中的预设图形为路由器的关联图形,区域52中的预设图形为空调的关联图形,区域53中的预设图形为家居设备的关联图形,等等。
由于预设图形和设备类型之间有一定的对应关系,因此MQTT协议代理服务器可以获取多个预设图形与设备类型的对应关系,并在获取物联网设备的设备类型后,根据设备类型以及预设图形和设备类型的对应关系,在多个预设图形中确定物联网设备对应的目标图形,并将目标图形确定为物联网设备的设备图标。例如,若物联网设备为路由器,则MQTT协议代理服务器可以确定多个预设图形中路由器对应的预设图形。若路由器对应的预设图形只有一个,则这一个预设图形即为路由器对应的目标图形,将该预设图形作为路由器的设备图标即可。若路由器对应的预设图形有多个,则可以在这多个预设图形中选择一个目标图形并作为路由器的设备图标。
由于控制界面是用于控制物联网设备的,因此控制界面上的设备图标关联 操作集合中的至少一个控制操作。具体的,在获取物联网设备的设备类型后,可以根据设备类型,确定物联网设备的操作集合,不同的设备类型对应的操作集合不同。例如针对路由器而言,其操作集合中可以包括开机操作和关机操作,针对空调而言,其操作集合中可以包括开机操作、关机操作和调温操作,针对加湿器而言,其操作集合中可以包括开机操作、关机操作和调整湿度操作,针对窗帘而言,其操作集合中可以包括移动窗帘的操作等等。
因此,在获取物联网设备的设备类型后,就可以确定相应的操作集合,并根据物联网设备的设备图标和操作集合,生成控制界面,控制界面上包括物联网设备的设备图标,设备图标关联对应的操作集合中的至少一个控制操作。
图6为本申请实施例提供的一种控制界面示意图,如图6所示,控制界面60上包括各个物联网设备的设备图标,不同的物联网设备的设备图标不同。控制界面60可以显示在各个终端设备上。具体的,MQTT协议代理服务器可以根据控制界面的界面数据生成控制界面的界面文件,然后基于MQTT协议向终端设备发送界面文件。终端设备在接收到MQTT协议代理服务器发送的界面文件后,根据MQTT协议解析该界面文件,得到控制界面的界面数据,然后根据控制界面的界面数据显示该控制界面。
控制界面上的设备图标可以以宫格的方式显示,每个宫格内存在一个设备图标,一个设备图标表示一个类型的物联网设备。例如,温湿度传感器对应一个设备图标,空调对应另一个设备图标,点击进入设备图标后,可以显示相应的设备类型的设备分类。多个设备图标共同构成控制界面,该控制界面为一个或多个物联网设备的汇总。
控制界面可以在订阅端、发布端和代理端显示,订阅端例如手机、平板等等,订阅端可以控制并且同其他端同步刷新,代理端例如包括云端服务器、本地的PC端,也可以进行控制界面的同步更新,发布端例如包括电视等等,可以进行物联网设备的控制并且同其他端同步刷新。以终端设备为例,终端设备可以是各种具备显示功能的设备,且该控制界面可以同时显示在多个终端设备上。例如在图6中,控制界面60可以显示在手机61上,可以显示在电脑62上,可以显示在电子手表63上,等等。各个终端设备上显示的控制界面是相同的,通过MQTT协议代理服务器同步。
控制界面可以同时在订阅端、代理端和发布端进行显示,以手机为例,在手机界面上点击温湿度传感器的设备图标,进入温湿度传感器选择界面,此时在其他端显示的控制界面可以同步刷新。在手机的界面上选择卧室温湿度传感 器,可以通过向MQTT协议代理服务器发送操作指令进行物联网设备的控制,等等。
图7为本申请实施例提供的MQTT协议通信交互示意图,如图7所示,本申请实施例提供的基于MQTT协议的物联网设备控制方案,可以应用于不同的领域,例如可以包括运输物流、医学领域、工业能源、智能家居等等。
用户可以通过终端设备上的控制界面来控制物联网设备,具体的,终端设备可以向MQTT协议代理服务器发送针对于物联网设备的操作指令,操作指令包括目标控制操作的标识,该操作指令用于指示物联网设备执行目标控制操作。MQTT协议代理服务器在从终端设备接收针对该物联网设备的操作指令后,可以根据该操作指令向物联网设备发送控制指令,该控制指令指示物联网设备执行目标控制操作。终端设备向MQTT协议代理服务器发送操作指令的方式,可以是通过控制界面上的设备图标的触控操作实现。
具体的,当用户想要控制某个物联网设备时,可以点击终端设备的控制界面上该物联网设备的目标设备图标,终端设备响应于针对该物联网设备的目标设备图标的触控操作,显示物联网设备的子控制界面,子控制界面上包括至少一个控制区域,每个控制区域对应于物联网设备的一个控制操作。以物联网设备为空调为例,用户可以在控制界面上点击该空调的设备图标,终端设备显示该空调子控制界面,子控制界面上包括开机对应的控制区域、关机对应的控制区域、调节温度的控制区域等等。若用户想要开机,则可以操作开机对应的控制区域,终端设备响应于针对子控制界面上的目标控制区域(即开机操作对应的控制区域)的触控操作,向MQTT协议代理服务器发送操作指令。MQTT协议代理服务器在接收到该操作指令后,可以根据该操作指令向空调发送开机控制指令,物联网设备在接收到开机控制指令后,根据开机控制指令执行开机操作。
图8为本申请实施例提供的基于MQTT协议的智能家居安防系统示意图,如图8所示,智能家居系统中包括多个智能家居设备,例如摄像头、烟雾报警器、红外探测器等等,这些智能家居设备通过智能家居主机接入网络,消息过滤层(即MQTT协议代理服务器)与智能家居主机之间可以通过WIFI通信,当智能家居设备连接网络之后,通过智能家居主机,建立与MQTT协议代理服务器之间的连接,而终端设备可以订阅MQTT协议代理服务器的消息,从而将MQTT协议代理服务器生成的控制界面显示在终端设备上。在MQTT协议代理服务器与智能家居主机通过WIFI通信时,MQTT协议代理服务器首先抓取PCAP(packet capture)流量包,然后过滤MQTT协议数据包,并读取MQTT协议的Topic位(用于MQTT 中的订阅关系的维系),从而识别智能家居设备,建立连接。在建立连接之后,通过终端设备上的控制界面,用户可以实现对智能家居设备的控制。
本申请实施例提供的物联网设备控制方法,首先MQTT协议代理服务器根据与其连接的物联网设备,生成用于控制物联网设备的控制界面,然后向终端设备发送控制界面的界面文件,终端设备可以通过界面文件显示控制界面,从而使得用户可以通过控制界面来控制物联网设备。针对嵌入式设备缺乏存储能力和运算能力导致无法进行统一的控制和管理的问题,本申请的方案,基于MQTT协议实现MQTT协议代理服务器和物联网设备之间的通信,并通过控制界面提供控制物联网设备的平台,能够实现物联网设备的统一管理和界面化管理。
图9为本申请实施例提供的物联网设备控制方法的流程示意图,该方法应用于终端设备,如图9所示,该方法可以包括:
S91,从MQTT协议代理服务器接收界面文件;
S92,根据界面文件显示对应的控制界面,控制界面为用于控制与MQTT协议代理服务器连接的物联网设备的界面,物联网设备为嵌入式物联网设备。
在一种可能的实施方式中,所述根据所述界面文件显示对应的控制界面,包括:
对所述界面文件进行MQTT协议解析处理,得到对应的界面数据;
根据所述界面数据,显示所述控制界面。
在一种可能的实施方式中,所述方法还包括:
向所述MQTT协议代理服务器发送针对于所述物联网设备的操作指令,所述操作指令中包括目标控制操作的标识,所述操作指令用于指示所述物联网设备执行所述目标控制操作。
在一种可能的实施方式中,所述向所述MQTT协议代理服务器发送针对于所述物联网设备的操作指令,包括:
响应于针对所述物联网设备的目标设备图标的触控操作,显示所述物联网设备的子控制界面,所述子控制界面上包括至少一个控制区域,每个控制区域对应于所述物联网设备的一个控制操作;
响应于针对所述子控制界面上的目标控制区域的触控操作,向所述MQTT协议代理服务器发送所述操作指令。
图9实施例的方法为图2实施例所示的MQTT协议代理服务器侧的方法对应的终端设备侧的方法实施例,具体的实现方式在上述实施例中已介绍,此处不再赘述。
图10为本申请实施例提供的物联网设备控制装置的结构示意图,如图10所示,该物联网设备控制装置100包括:
处理模块101,用于根据与所述MQTT协议代理服务器连接的物联网设备,生成用于控制所述物联网设备的控制界面,所述物联网设备为嵌入式物联网设备;
收发模块102,用于向终端设备发送所述控制界面的界面文件,所述界面文件用于在所述终端设备上显示所述控制界面。
在一种可能的实施方式中,所述处理模块101具体用于:
获取所述物联网设备的设备类型;
根据所述物联网设备的设备类型,生成所述控制界面。
在一种可能的实施方式中,所述处理模块101具体用于:
根据所述物联网设备的设备类型,确定所述物联网设备的设备图标;
根据所述物联网设备的设备类型,确定所述物联网设备的操作集合,所述操作集合中包括至少一个控制操作;
根据所述物联网设备的设备图标和操作集合,生成所述控制界面,所述控制界面上包括所述物联网设备的设备图标,所述设备图标关联对应的操作集合中的至少一个控制操作。
在一种可能的实施方式中,所述MQTT协议代理服务器中包括预设图形库,所述预设图形库中包括多个预设图形;所述处理模块101具体用于:
获取所述多个预设图形与设备类型的对应关系;
针对任意一个物联网设备,根据所述对应关系和所述物联网设备的设备类型,在所述多个预设图形中确定所述物联网设备对应的目标图形,并将所述目标图形确定为所述物联网设备的设备图标。
在一种可能的实施方式中,所述收发模块102具体用于:
根据所述控制界面的界面数据生成所述界面文件;
基于MQTT协议向所述终端设备发送所述界面文件。
在一种可能的实施方式中,所述收发模块102具体用于:
从所述终端设备接收针对于所述物联网设备的操作指令,所述操作指令中包括目标控制操作的标识;
根据所述操作指令,向所述物联网设备发送控制指令,所述控制指令用于指示所述物联网设备执行所述目标控制操作。
本实施例提供的装置,可用于执行上述方法实施例的技术方案,其实现原 理和技术效果类似,本实施例此处不再赘述。
图11为本申请实施例提供的物联网设备控制装置的结构示意图,如图11所示,该物联网设备控制装置110包括:
接收模块111,用于从MQTT协议代理服务器接收界面文件;
处理模块112,用于根据所述界面文件显示对应的控制界面,所述控制界面为用于控制与所述MQTT协议代理服务器连接的所述物联网设备的界面,所述物联网设备为嵌入式物联网设备。
在一种可能的实施方式中,所述处理模块112具体用于:
对所述界面文件进行MQTT协议解析处理,得到对应的界面数据;
根据所述界面数据,显示所述控制界面。
在一种可能的实施方式中,所述处理模块112还用于:
向所述MQTT协议代理服务器发送针对于所述物联网设备的操作指令,所述操作指令中包括目标控制操作的标识,所述操作指令用于指示所述物联网设备执行所述目标控制操作。
在一种可能的实施方式中,所述处理模块112还用于:
响应于针对所述物联网设备的目标设备图标的触控操作,显示所述物联网设备的子控制界面,所述子控制界面上包括至少一个控制区域,每个控制区域对应于所述物联网设备的一个控制操作;
响应于针对所述子控制界面上的目标控制区域的触控操作,向所述MQTT协议代理服务器发送所述操作指令。
本实施例提供的装置,可用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,本实施例此处不再赘述。
图12为本申请实施例提供的物联网设备控制系统的结构示意图,如图12所示,包括MQTT协议代理服务器121、物联网设备122和终端设备123,其中:
所述物联网设备122与所述MQTT协议代理服务器121连接,所述物联网设备122为嵌入式物联网设备;
所述MQTT协议代理服务器121用于根据所述物联网设备122,生成用于控制所述物联网设备122的控制界面,并向所述终端设备123发送所述控制界面的界面文件;
所述终端设备123用于根据所述界面文件显示所述控制界面。
本申请实施例提供的物联网设备控制系统,可以通过MQTT协议代理服务器121、物联网设备122和终端设备123之间的交互实现对物联网设备的控制,具体 实现方式可以参见上述方法实施例,此处不再赘述。
本申请实施例还可提供一种计算机程序产品,该计算机程序产品可以由处理器执行,在计算机程序产品被执行时,可实现上述任一所示的物联网设备控制方法。
图13为本发明实施例提供的物联网设备控制设备的硬件结构示意图,如图13所示,本实施例的物联网设备控制设备包括:处理器131以及存储器132;其中
存储器132,用于存储计算机执行指令;
处理器131,用于执行存储器存储的计算机执行指令,以实现上述实施例中物联网设备控制方法所执行的各个步骤。具体可以参见前述方法实施例中的相关描述。
可选地,存储器132既可以是独立的,也可以跟处理器131集成在一起。
当存储器132独立设置时,该物联网设备控制设备还包括总线133,用于连接所述存储器132和处理器131。
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上物联网设备控制设备所执行的物联网设备控制方法。
在本发明所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。
应理解,上述处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的 方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器,还可以为U盘、移动硬盘、只读存储器、磁盘或光盘等。
总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本发明附图中的总线并不限定仅有一根总线或一种类型的总线。
上述存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。存储介质可以是通用或专用计算机能够存取的任何可用介质。
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。
在本申请中,术语“包括”及其变形可以指非限制性的包括;术语“或”及其变形可以指“和/或”。本申请中术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。本申请中,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。

Claims (16)

  1. 一种物联网设备控制方法,其特征在于,应用于消息队列遥测传输MQTT协议代理服务器,所述方法包括:
    根据与所述MQTT协议代理服务器连接的物联网设备,生成用于控制所述物联网设备的控制界面,所述物联网设备为嵌入式物联网设备;
    向终端设备发送所述控制界面的界面文件,所述界面文件用于在所述终端设备上显示所述控制界面。
  2. 根据权利要求1所述的物联网设备控制方法,其特征在于,所述根据与所述MQTT协议代理服务器连接的物联网设备,生成用于控制所述物联网设备的控制界面,包括:
    获取所述物联网设备的设备类型;
    根据所述物联网设备的设备类型,生成所述控制界面。
  3. 根据权利要求2所述的物联网设备控制方法,其特征在于,所述根据所述物联网设备的设备类型,生成所述控制界面,包括:
    根据所述物联网设备的设备类型,确定所述物联网设备的设备图标;
    根据所述物联网设备的设备类型,确定所述物联网设备的操作集合,所述操作集合中包括至少一个控制操作;
    根据所述物联网设备的设备图标和操作集合,生成所述控制界面,所述控制界面上包括所述物联网设备的设备图标,所述设备图标关联对应的操作集合中的至少一个控制操作。
  4. 根据权利要求3所述的物联网设备控制方法,其特征在于,所述MQTT协议代理服务器中包括预设图形库,所述预设图形库中包括多个预设图形;所述根据所述物联网设备的设备类型,确定所述物联网设备的设备图标,包括:
    获取所述多个预设图形与设备类型的对应关系;
    针对任意一个物联网设备,根据所述对应关系和所述物联网设备的设备类型,在所述多个预设图形中确定所述物联网设备对应的目标图形,并将所述目标图形确定为所述物联网设备的设备图标。
  5. 根据权利要求1-4任一项所述的物联网设备控制方法,其特征在于,所述向终端设备发送所述控制界面的界面文件,包括:
    根据所述控制界面的界面数据生成所述界面文件;
    基于MQTT协议向所述终端设备发送所述界面文件。
  6. 根据权利要求1-4任一项所述的物联网设备控制方法,其特征在于,所述方法还包括:
    从所述终端设备接收针对于所述物联网设备的操作指令,所述操作指令中包括目标控制操作的标识;
    根据所述操作指令,向所述物联网设备发送控制指令,所述控制指令用于指示所述物联网设备执行所述目标控制操作。
  7. 一种物联网设备控制方法,其特征在于,应用于终端设备,所述方法包括:
    从MQTT协议代理服务器接收界面文件;
    根据所述界面文件显示对应的控制界面,所述控制界面为用于控制与所述MQTT协议代理服务器连接的物联网设备的界面,所述物联网设备为嵌入式物联网设备。
  8. 根据权利要求7所述的物联网设备控制方法,其特征在于,所述根据所述界面文件显示对应的控制界面,包括:
    对所述界面文件进行MQTT协议解析处理,得到对应的界面数据;
    根据所述界面数据,显示所述控制界面。
  9. 根据权利要求7或8所述的物联网设备控制方法,其特征在于,所述方法还包括:
    向所述MQTT协议代理服务器发送针对于所述物联网设备的操作指令,所述操作指令中包括目标控制操作的标识,所述操作指令用于指示所述物联网设备执行所述目标控制操作。
  10. 根据权利要求9所述的物联网设备控制方法,其特征在于,所述向所述MQTT协议代理服务器发送针对于所述物联网设备的操作指令,包括:
    响应于针对所述物联网设备的目标设备图标的触控操作,显示所述物联网设备的子控制界面,所述子控制界面上包括至少一个控制区域,每个控制区域对应于所述物联网设备的一个控制操作;
    响应于针对所述子控制界面上的目标控制区域的触控操作,向所述MQTT协议代理服务器发送所述操作指令。
  11. 一种物联网设备控制装置,其特征在于,包括:
    处理模块,用于根据与MQTT协议代理服务器连接的物联网设备,生成用于控制所述物联网设备的控制界面,所述物联网设备为嵌入式物联网设备;
    收发模块,用于向终端设备发送所述控制界面的界面文件,所述界面文件 用于在所述终端设备上显示所述控制界面。
  12. 一种物联网设备控制装置,其特征在于,包括:
    接收模块,用于从MQTT协议代理服务器接收界面文件;
    处理模块,用于根据所述界面文件显示对应的控制界面,所述控制界面为用于控制与所述MQTT协议代理服务器连接的所述物联网设备的界面,所述物联网设备为嵌入式物联网设备。
  13. 一种物联网设备控制设备,其特征在于,包括:
    存储器,用于存储程序;
    处理器,用于执行所述存储器存储的所述程序,当所述程序被执行时,所述处理器用于执行如权利要求1-10中任一所述的物联网设备控制方法。
  14. 一种物联网设备控制系统,其特征在于,包括MQTT协议代理服务器、物联网设备和终端设备,其中:
    所述物联网设备与所述MQTT协议代理服务器连接,所述物联网设备为嵌入式物联网设备;
    所述MQTT协议代理服务器用于根据所述物联网设备,生成用于控制所述物联网设备的控制界面,并向所述终端设备发送所述控制界面的界面文件;
    所述终端设备用于根据所述界面文件显示所述控制界面。
  15. 一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1-10中任一所述的物联网设备控制方法。
  16. 一种计算机程序产品,包括计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-10中任一所述的物联网设备控制方法。
PCT/CN2022/141324 2021-12-27 2022-12-23 物联网设备控制方法、装置及系统 WO2023125269A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111616602.6 2021-12-27
CN202111616602.6A CN114301940B (zh) 2021-12-27 物联网设备控制方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2023125269A1 true WO2023125269A1 (zh) 2023-07-06

Family

ID=80968826

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141324 WO2023125269A1 (zh) 2021-12-27 2022-12-23 物联网设备控制方法、装置及系统

Country Status (1)

Country Link
WO (1) WO2023125269A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627397A (zh) * 2023-07-24 2023-08-22 腾讯科技(深圳)有限公司 一种程序开发方法及相关装置
CN117097766A (zh) * 2023-10-18 2023-11-21 厦门海辰储能科技股份有限公司 一种储能系统的数据监控方法和数据监控装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170242557A1 (en) * 2016-02-18 2017-08-24 Tekoia Ltd. Architecture for remote control of iot (internet of things) devices
US20170364046A1 (en) * 2016-06-21 2017-12-21 Abl Ip Holding Llc Integrated lighting and building management control gateway
CN109491263A (zh) * 2018-12-13 2019-03-19 深圳绿米联创科技有限公司 智能家居设备控制方法、装置、系统及存储介质
CN111245661A (zh) * 2020-03-04 2020-06-05 山西博华科技有限公司 基于mqtt的物联网大数据采集处理系统
CN112653728A (zh) * 2020-12-07 2021-04-13 同济大学 一种基于边云协同的温室环境控制物联网系统
CN114301940A (zh) * 2021-12-27 2022-04-08 锐迪科创微电子(北京)有限公司 物联网设备控制方法、装置及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170242557A1 (en) * 2016-02-18 2017-08-24 Tekoia Ltd. Architecture for remote control of iot (internet of things) devices
US20170364046A1 (en) * 2016-06-21 2017-12-21 Abl Ip Holding Llc Integrated lighting and building management control gateway
CN109491263A (zh) * 2018-12-13 2019-03-19 深圳绿米联创科技有限公司 智能家居设备控制方法、装置、系统及存储介质
CN111245661A (zh) * 2020-03-04 2020-06-05 山西博华科技有限公司 基于mqtt的物联网大数据采集处理系统
CN112653728A (zh) * 2020-12-07 2021-04-13 同济大学 一种基于边云协同的温室环境控制物联网系统
CN114301940A (zh) * 2021-12-27 2022-04-08 锐迪科创微电子(北京)有限公司 物联网设备控制方法、装置及系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627397A (zh) * 2023-07-24 2023-08-22 腾讯科技(深圳)有限公司 一种程序开发方法及相关装置
CN116627397B (zh) * 2023-07-24 2024-01-30 腾讯科技(深圳)有限公司 一种程序开发方法及相关装置
CN117097766A (zh) * 2023-10-18 2023-11-21 厦门海辰储能科技股份有限公司 一种储能系统的数据监控方法和数据监控装置

Also Published As

Publication number Publication date
CN114301940A (zh) 2022-04-08

Similar Documents

Publication Publication Date Title
WO2023125269A1 (zh) 物联网设备控制方法、装置及系统
Al-Qaseemi et al. IoT architecture challenges and issues: Lack of standardization
US8443071B2 (en) Data server system and method
JP4531794B2 (ja) インターネットを通じてUPnPホームネットワークに接続されたデバイスを制御する方法及びそのためのシステム及び装置
WO2020168568A1 (zh) 数据处理方法、装置、电子设备及可读存储介质
CN106101072A (zh) 用于在网络上传送视频数据的系统和方法
KR20030068377A (ko) 네트워크 장치와 네트워크 장치 제어 방법
WO2022247519A1 (zh) 一种物模型设备管理方法、装置、设备、系统及存储介质
Kim et al. Home appliance control framework based on smart TV set-top box
CN103019180A (zh) 电子设备间互联与控制的方法和系统
CN106572382A (zh) 多屏互动方法及系统、可扩展通讯和表示协议系统
CN116827769A (zh) 一种基于mqtt协议的自动配置的物联网系统
CN111352602A (zh) 一种led屏幕的控制方法、装置、设备以及存储介质
CN114301940B (zh) 物联网设备控制方法、装置及系统
CN114217997B (zh) 提高kvm显示数据实时性的方法、系统、设备和存储介质
JP2016103271A (ja) ネットワークシステムおよび制御装置
CN102857506B (zh) 基于社交网络的混合语言交互处理系统及其方法
CN101794543A (zh) 一种自适应互动视讯终端
TWI795619B (zh) 內建伺服模組的閘道裝置與通信系統
JP2007181110A (ja) 集合住宅用監視制御システム
CN213581775U (zh) 一种智能家居系统
CN114885193A (zh) 显示设备、终端设备及投屏方法
Mitra et al. Comparative study of iot protocols
TWI638270B (zh) Highly scalable Internet of Things cloud service system
JP5721184B2 (ja) 電子機器制御システム及び電子機器制御方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22914523

Country of ref document: EP

Kind code of ref document: A1