Instruction issuing method based on lightweight message transmission protocol

By adopting the instruction issuance method based on the lightweight message transmission protocol in the Internet of Things system, using geographic location and time filtering instruction templates, the reliability caused by the issuance of instruction in the Internet of Things system is solved by relying on user manual input or preset scripts. Low problems achieve higher automation and reliability.

CN119520565APending Publication Date: 2025-02-25GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411628821.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In IoT systems, the issuance of instructions often depends on user manual input or preset scripts, resulting in low reliability.

Method used

Using the instruction issuance method based on the lightweight message transmission protocol, the command acquisition request of the target smart device is obtained, the geographical location information and instruction sending time of the device are obtained, and the matching template is filtered from the pre-stored instruction template and sent to the user. The terminal makes the selection and finally sends the control instructions corresponding to the target instruction template to the smart device.

Benefits of technology

It improves the automation and reliability of the Internet of Things system, reduces human errors, and improves the accuracy and efficiency of directive issuance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520565A_ABST
    Figure CN119520565A_ABST
Patent Text Reader

Abstract

The invention discloses an instruction issuing method based on a lightweight message transmission protocol. The method comprises the following steps: when an instruction acquisition request of target intelligent equipment is received, acquiring current geographical location information of the target intelligent equipment and sending time of the instruction acquisition request according to the instruction acquisition request; screening out a to-be-selected instruction template matched with the instruction acquisition request from a predetermined storage medium according to the geographical location information and the sending time; sending the instruction template to be selected to a user terminal of the target intelligent equipment; obtaining feedback information of the user terminal on the to-be-selected instruction template; determining a target instruction template selected from the instruction templates to be selected by the user terminal according to the feedback information; and sending a control instruction corresponding to the target instruction template to the target intelligent device. The technical problem that in an Internet of Things system in the related technology, instruction issuing often depends on manual input or script presetting of a user, and the reliability is low is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things, and in particular to a method for issuing instructions based on a lightweight message transmission protocol. Background Art

[0002] With the rapid development of Internet of Things technology, communication and data interaction between devices are becoming more and more important. As a lightweight message transmission protocol, MQTT has been widely used in the field of Internet of Things due to its high efficiency and low overhead.

[0003] However, in existing IoT systems, the issuance of instructions often relies on manual user input or preset scripts, which is not only inefficient but also prone to errors.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiment of the present invention provides a method for issuing instructions based on a lightweight message transmission protocol, so as to at least solve the technical problem in the related art that the issuance of instructions in the Internet of Things system often depends on manual input by the user or preset scripts, and has low reliability.

[0006] According to one aspect of an embodiment of the present invention, a method for issuing instructions based on a lightweight message transmission protocol is provided, comprising: upon receiving an instruction acquisition request from a target smart device, obtaining the current geographical location information of the target smart device and the sending time of the instruction acquisition request according to the instruction acquisition request; filtering out a candidate instruction template that matches the instruction acquisition request from a predetermined storage medium according to the geographical location information and the sending time, wherein the predetermined storage medium stores a plurality of pre-set instruction templates; sending the candidate instruction template to a user terminal of the target smart device; obtaining feedback information of the user terminal on the candidate instruction template; determining a target instruction template selected by the user terminal from the candidate instruction templates according to the feedback information; and sending a control instruction corresponding to the target instruction template to the target smart device.

[0007] Optionally, obtaining the current geographic location information of the target smart device and the sending time of the instruction acquisition request according to the instruction acquisition request includes: parsing the instruction acquisition request to obtain the current geographic location information of the target smart device and the sending time of the instruction acquisition request.

[0008] Optionally, before selecting a candidate instruction template that matches the instruction acquisition request from a predetermined storage medium according to the geographic location information and the sending time, the instruction issuing method based on the lightweight message transmission protocol also includes: receiving device data reported by multiple smart devices including the target smart device, wherein the device data includes: the device status of the smart device, the sensing data read by the sensor of the smart device, and the geographic location of the smart device when reporting the data; analyzing and processing the device data to obtain invalid data in the device data; deleting the invalid data from the device data to obtain valid data in the device data; and storing the valid data to the predetermined storage medium.

[0009] Optionally, the device data is analyzed and processed to obtain invalid data in the device data, including: obtaining a geographic location in the device data; determining an application scenario of the smart device based on the geographic location; and analyzing the device data based on the application scenario to obtain the invalid data in the device data that does not conform to the application scenario.

[0010] Optionally, before analyzing and processing the device data to obtain invalid data in the device data, the instruction issuing method based on the lightweight message transmission protocol also includes: preprocessing the device data; wherein the preprocessing of the device data includes at least one of the following: deduplicating operation instructions of the same type reported by the same smart device at the same time in the device data; formatting the device data to obtain the device data that meets the storage requirements of the predetermined storage medium; cleaning invalid instructions in the device data, wherein the invalid instructions are instructions in the device data that do not need to be analyzed and stored.

[0011] Optionally, after storing the valid data in the predetermined storage medium, the instruction issuing method based on the lightweight message transmission protocol also includes: generating the multiple instruction templates according to the valid data; adding template identifiers to the multiple instruction templates to obtain the multiple instruction templates containing the template identifiers, wherein each of the multiple instruction templates corresponds to a set of predefined instruction sets.

[0012] Optionally, determining the target instruction template selected by the user terminal from the candidate instruction templates according to the feedback information includes: parsing the feedback information to obtain the target template identifier selected by the user terminal; and obtaining the target instruction template according to the target template identifier.

[0013] Optionally, sending the control instruction corresponding to the target instruction template to the target smart device includes: parsing the control instruction corresponding to the target instruction template according to the target template identifier of the target instruction template; and sending the control instruction to the target smart device.

[0014] According to another aspect of an embodiment of the present invention, there is also provided an instruction issuing device based on a lightweight message transmission protocol, comprising: a first acquisition module, for, upon receiving an instruction acquisition request from a target smart device, obtaining, according to the instruction acquisition request, the current geographical location information of the target smart device and the sending time of the instruction acquisition request; a screening module, for screening out a candidate instruction template matching the instruction acquisition request from a predetermined storage medium according to the geographical location information and the sending time, wherein the predetermined storage medium stores a plurality of pre-set instruction templates; a first sending module, for sending the candidate instruction template to a user terminal of the target smart device; a second acquisition module, for obtaining feedback information of the user terminal on the candidate instruction template; a determination module, for determining, according to the feedback information, a target instruction template selected by the user terminal from the candidate instruction templates; and a second sending module, for sending the control instruction corresponding to the target instruction template to the target smart device.

[0015] Optionally, the first acquisition module includes: a first parsing unit, configured to parse the instruction acquisition request to obtain the geographical location information of the target smart device and the sending time of the instruction acquisition request.

[0016] Optionally, the instruction issuing device based on the lightweight message transmission protocol also includes: a receiving module, which is used to receive device data reported by multiple smart devices including the target smart device before filtering out a selected instruction template that matches the instruction acquisition request from a predetermined storage medium according to the geographic location information and the sending time, wherein the device data includes: the device status of the smart device, the sensing data read by the sensor of the smart device, and the geographic location of the smart device when reporting the data; an analysis module, which is used to analyze and process the device data to obtain invalid data in the device data; a deletion module, which is used to delete the invalid data from the device data to obtain valid data in the device data; and a storage module, which is used to store the valid data to the predetermined storage medium.

[0017] Optionally, the analysis module includes: a first acquisition unit, used to acquire a geographic location in the device data; a determination unit, used to determine an application scenario of the smart device based on the geographic location; and an analysis unit, used to analyze the device data based on the application scenario to obtain the invalid data in the device data that does not conform to the application scenario.

[0018] Optionally, the instruction issuing device based on the lightweight message transmission protocol also includes: a preprocessing module, used to preprocess the device data before analyzing and processing the device data to obtain invalid data in the device data; wherein, preprocessing the device data includes at least one of the following: a deduplication unit, used to deduplicate the same type of operation instructions reported by the same smart device at the same time in the device data; a formatting unit, used to format the device data to obtain the device data that meets the storage requirements of the predetermined storage medium; a cleaning unit, used to clean invalid instructions in the device data, wherein the invalid instructions are instructions in the device data that do not need to be analyzed and stored.

[0019] Optionally, the instruction issuing device based on the lightweight message transmission protocol also includes: a generation module, used to generate the multiple instruction templates according to the valid data after storing the valid data in the predetermined storage medium; an adding module, used to add template identifiers to the multiple instruction templates to obtain the multiple instruction templates containing the template identifiers, wherein each of the multiple instruction templates corresponds to a set of predefined instruction sets.

[0020] Optionally, the determination module includes: a second parsing unit, used to parse the feedback information to obtain a target template identifier selected by the user terminal; and a second acquisition unit, used to obtain the target instruction template according to the target template identifier.

[0021] Optionally, the second sending module includes: a third parsing unit, used to parse out the control instruction corresponding to the target instruction template according to the target template identifier of the target instruction template; and a sending unit, used to send the control instruction to the target smart device.

[0022] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the above-mentioned instruction issuing methods based on the lightweight message transmission protocol.

[0023] According to another aspect of an embodiment of the present invention, a processor is further provided, the processor being used to run a program, wherein when the program is running, any one of the above-mentioned instruction issuing methods based on the lightweight message transmission protocol is executed.

[0024] According to another aspect of an embodiment of the present invention, a computer program product is provided, including computer instructions, which, when executed by a processor, execute any one of the above-mentioned instruction issuing methods based on the lightweight message transmission protocol.

[0025] In an embodiment of the present invention, when a command acquisition request is received from a target smart device, the current geographical location information of the target smart device and the sending time of the command acquisition request are obtained according to the command acquisition request; a candidate instruction template matching the instruction acquisition request is screened out from a predetermined storage medium according to the geographical location information and the sending time, wherein the predetermined storage medium stores a plurality of pre-set instruction templates; the candidate instruction template is sent to a user terminal of the target smart device; feedback information of the user terminal on the candidate instruction template is obtained; a target instruction template selected by the user terminal from the candidate instruction template is determined according to the feedback information; and a control instruction corresponding to the target instruction template is sent to the target smart device. Through the technical solution provided by the present invention, the MQTT proxy server is used as the core of message transmission, and the collaborative work of the data processing center and the instruction recommendation engine is combined. By integrating the MQTT agent, data processing and big data analysis technology, the common operation modes and needs of users are automatically identified, and valuable information is mined. The purpose of providing personalized instruction recommendations is based on user needs and device status, thereby achieving the technical effect of intelligently recommending popular instructions and issuing reasonable instruction template IDs, improving the automation and reliability of the Internet of Things system, and further solving the technical problem in the Internet of Things system in the related technology that the issuance of instructions often relies on manual input by users or preset scripts, and has low reliability. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0027] Figure 1 It is a hardware structure block diagram of a mobile terminal of an instruction issuing method based on a lightweight message transmission protocol according to an embodiment of the present invention;

[0028] Figure 2 is a flow chart of a method for issuing instructions based on a lightweight message transmission protocol according to an embodiment of the present invention;

[0029] Figure 3is a flowchart of an optional instruction issuing method based on a lightweight message transmission protocol according to an embodiment of the present invention;

[0030] Figure 4 It is a schematic diagram of an instruction issuing device based on a lightweight message transmission protocol according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] As introduced in the background technology, in the related art IoT system, the issuance of instructions often relies on manual input by users or preset scripts, which has low reliability. In view of the above defects, in the embodiments of the present invention, a method and device for issuing instructions based on a lightweight message transmission protocol, a computer-readable storage medium, a processor, and a computer program product are provided.

[0034] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0035] The method embodiments provided in the embodiments of the present invention can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of an instruction issuing method based on a lightweight message transmission protocol according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0036] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the instruction issuing method based on the lightweight message transmission protocol in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific network example may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0037] According to an embodiment of the present invention, a method embodiment of an instruction issuing method based on a lightweight message transmission protocol is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0038] Figure 2 is a flow chart of a method for issuing instructions based on a lightweight message transmission protocol according to an embodiment of the present invention, such as Figure 2 As shown, the method comprises the following steps:

[0039] Step S202: upon receiving a command acquisition request from a target smart device, obtaining the current geographical location information of the target smart device and the sending time of the command acquisition request according to the command acquisition request.

[0040] In this embodiment, by obtaining the geographic location information of the target smart device, the location of the device can be accurately determined, helping users to monitor the location information of the device in real time. According to the sending time of the instruction acquisition request, timely issuance of instructions can be ensured to avoid problems caused by delays and improve the accuracy of instruction issuance. By obtaining the device's geographic location information and the instruction sending time, the status and situation of the device can be better understood, improving the convenience and accuracy of user operation of the device. By obtaining the device's geographic location information, abnormal behavior or location changes of the device can be discovered in a timely manner, thereby improving the monitoring and safety of the device.

[0041] Figure 3 is a flowchart of an optional instruction issuing method based on a lightweight message transmission protocol according to an embodiment of the present invention, such as Figure 3 As shown, data collection is performed and the IoT device reports data to the MQTT proxy server through the MQTT (Message Queuing TelemetryTransport) protocol.

[0042] Optionally, the above data may include but is not limited to: device status, sensor readings, geographic location, etc.

[0043] It should be noted that the above-mentioned smart devices can be various devices connected to the MQTT agent, such as smart home devices, industrial Internet of Things devices, and smart manufacturing equipment. These devices can receive instructions and send data through the MQTT agent, thereby realizing the interaction between instruction issuance and the data analysis and recommendation system and improving the speed of instruction issuance.

[0044] In addition, it should be noted that the above-mentioned MQTT agent is a middleware server for forwarding MQTT messages. It acts as a message transfer station, sending messages from one device or application to another. MQTT agent is usually used for communication between IoT devices and provides rich functions and configuration options to help users better manage and monitor their MQTT communications to achieve real-time data transmission and remote control functions. It can help manage and monitor large-scale device networks and provide security and reliability guarantees.

[0045] Optionally, the MQTT proxy software may include but is not limited to: Mosqu itto, EMQ X, and HiveMQ.

[0046] Step S204, selecting a candidate instruction template that matches the instruction acquisition request from a predetermined storage medium according to the geographical location information and the sending time, wherein the predetermined storage medium stores a plurality of preset instruction templates.

[0047] It should be noted that the above-mentioned predetermined storage medium can be a database or a cache system. By using the cache system, frequently accessed data can be stored in the memory, thereby speeding up data access and improving the efficiency of instruction issuance. Common cache systems include Redis and Memcached.

[0048] In this embodiment, the candidate instruction templates that match the instruction acquisition request are screened out based on the geographic location information and the sending time, which can ensure that the instructions sent to the device match the current state and location of the device, effectively reduce the probability of misjudgment of instructions, and improve the accuracy and real-time performance of instruction issuance. By pre-setting multiple instruction templates and screening them according to specific circumstances, it can ensure that the instructions sent to the device are in line with the current state and environment of the device, effectively avoiding device failure or functional abnormality caused by erroneous instructions.

[0049] Step S206: sending the instruction template to be selected to the user terminal of the target smart device.

[0050] In this embodiment, since the lightweight message transmission protocol has efficient data transmission capabilities, it is possible to implement rapid instruction issuance, ensuring that the instructions can reach the user terminal of the target smart device in a timely manner. The lightweight message transmission protocol usually has high stability and reliability, and can ensure the integrity and accuracy of the instructions. There will be no loss or error in the instruction issuance process. By sending the selected instruction template to the user terminal, the instruction content can be flexibly customized and personalized to meet the needs and preferences of different users. The lightweight message transmission protocol usually has a smaller data packet size, which can effectively save network traffic and improve data transmission efficiency.

[0051] Step S208: obtaining feedback information of the user terminal on the instruction template to be selected.

[0052] In this embodiment, optimizing the instruction template according to user feedback information can reduce misunderstandings and erroneous executions, and improve the accuracy and efficiency of instruction issuance. By understanding user feedback on the instruction template, the system can make timely adjustments and improvements to enhance user satisfaction and experience. By continuously collecting and analyzing user feedback information, the system can optimize the design of the instruction template and adjust the issuance strategy, improve the intelligence level of the system, and better adapt to user needs and habits.

[0053] Step S210: determining a target instruction template selected by the user terminal from among the instruction templates to be selected according to the feedback information.

[0054] In this embodiment, determining the target instruction template selected by the user terminal based on the feedback information helps to ensure the accuracy and effectiveness of the instruction, thereby improving the success rate and execution effect of instruction issuance, reducing the time and cost of communication transmission, and also reducing the occurrence of human errors, improving the reliability and stability of the system. By selecting the target instruction template based on the feedback information, the instruction issuance process can be completed more efficiently, improving user experience and system performance.

[0055] Step S212: Send the control instruction corresponding to the target instruction template to the target smart device.

[0056] In this embodiment, through standardized instruction templates, the accuracy and consistency of control instructions can be ensured, errors caused by human factors can be avoided, batch sending of instructions can be realized, and the efficiency of instruction issuance is improved, especially when the same instructions need to be sent to multiple devices. It is more convenient. Through the standardization and lightweight characteristics of the message transmission protocol, communication overhead can be reduced, the performance and response speed of the system can be improved, the complexity and maintenance cost of the system can be reduced, and the instruction issuance process can be simpler and more reliable. It can achieve fast and efficient sending of control instructions to the target smart device, avoiding tedious manual operations and delays.

[0057] As can be seen from the above, in an embodiment of the present invention, when a command acquisition request from a target smart device is received, the geographical location information of the current location of the target smart device and the sending time of the command acquisition request are obtained according to the command acquisition request; a candidate instruction template matching the instruction acquisition request is screened out from a predetermined storage medium according to the geographical location information and the sending time, wherein a plurality of pre-set instruction templates are stored in the predetermined storage medium; the candidate instruction template is sent to a user terminal of the target smart device; feedback information of the user terminal on the candidate instruction template is obtained; the target instruction template selected by the user terminal from the candidate instruction template is determined according to the feedback information; and the control instruction corresponding to the target instruction template is sent to the target smart device, thereby achieving the use of an MQTT proxy server as the core of message transmission, and combining the collaborative work of a data processing center and an instruction recommendation engine, by integrating MQTT proxy, data processing and big data analysis technology, automatically identifying common user operation modes and needs, mining valuable information, and providing personalized instruction recommendations according to user needs and device status, thereby achieving the technical effect of intelligently recommending popular instructions and reasonably issuing instruction template IDs, and improving the automation and reliability of the Internet of Things system.

[0058] The technical solution provided by the embodiment of the present invention solves the technical problem in the related art that the issuance of instructions in the Internet of Things system often relies on manual input by the user or preset scripts, and has low reliability.

[0059] According to the above embodiment of the present invention, the current geographical location information of the target smart device and the sending time of the instruction acquisition request are obtained according to the instruction acquisition request, including: parsing the instruction acquisition request to obtain the current geographical location information of the target smart device and the sending time of the instruction acquisition request.

[0060] In this embodiment, parsing the instruction acquisition request can help determine the current geographic location information of the target smart device and the sending time of the instruction, which can ensure the accuracy and timeliness of the instruction, thereby improving the accuracy and efficiency of instruction issuance. By obtaining the geographic location information of the target smart device, it can ensure that the instruction is only sent to the correct device to avoid misoperation or impact on the wrong device. At the same time, obtaining the sending time of the instruction can help record the time point when the instruction is issued, which is convenient for subsequent tracking and analysis.

[0061] According to the above-mentioned embodiment of the present invention, before selecting a candidate instruction template that matches the instruction acquisition request from a predetermined storage medium according to the geographic location information and the sending time, the instruction issuing method based on the lightweight message transmission protocol also includes: receiving device data reported by multiple smart devices including the target smart device, wherein the device data includes: the device status of the smart device, the sensing data read by the sensor of the smart device, and the geographic location of the smart device when reporting the data; analyzing and processing the device data to obtain invalid data in the device data; deleting the invalid data from the device data to obtain valid data in the device data; and storing the valid data in a predetermined storage medium.

[0062] In this embodiment, the received device data can be analyzed for validity, valid data can be screened out and stored in a predetermined storage medium, and invalid data can be deleted, thereby ensuring that only valid device data is stored and further processed, improving the quality and reliability of the data, and better understanding the operating status and environmental conditions of the smart device, timely discovering and solving problems, and improving the stability and reliability of the device. At the same time, it can also reduce the storage space occupied and the burden of data processing, thereby improving the efficiency and performance of the system.

[0063] like Figure 3 As shown, the data processing center processes the collected data, mainly including geographic location, reporting time, reporting instruction type and reporting instructions, and stores them in a database (i.e., a predetermined storage medium), and performs data analysis. The instruction recommendation engine regularly extracts data from the database, performs big data analysis, i.e., statistical analysis, and then re-identifies reasonable scenarios through geographic location search based on the actual situation at the time, eliminates unreasonable operation data, and identifies common instruction patterns and user needs.

[0064] It should be noted that the above-mentioned instruction recommendation engine is a computing service, which mainly obtains common instructions of different instruction types for different devices through analysis of big data, classifies the sets of common instructions by devices and instruction types, obtains different instruction sets, and then pushes instruction sets to different devices. After the device gets the instruction set, it can issue common instructions according to the ID number of the instruction set.

[0065] According to the above embodiment of the present invention, the device data is analyzed and processed to obtain invalid data in the device data, including: obtaining the geographical location in the device data; determining the application scenario of the smart device according to the geographical location; and analyzing the device data according to the application scenario to obtain invalid data in the device data that does not conform to the application scenario.

[0066] In this embodiment, by obtaining the geographic location in the device data, it can help determine the specific application scenario of the smart device, so as to issue instructions to control the device more accurately. Through the geographic location information, the device can be customized according to different geographical environments and needs to improve the intelligence and automation of the device. In the process of issuing instructions, the device data is analyzed according to the application scenario, and invalid data that does not meet the application scenario can be identified, thereby reducing the misoperation of the device and the sending of invalid instructions, and improving the accuracy and efficiency of the instruction issuance. By screening out invalid data, the operating status of the device can be optimized, and energy consumption and resource waste can be reduced.

[0067] It should be noted that the above analysis is a statistical analysis of instructions, for example, the frequency of instruction issuance of the same instruction type for the same device, etc., and the frequency of block analysis within the statistical analysis time, for example, the number of instructions issued per hour, and the time instruction issuance trend is obtained by calculation every hour.

[0068] Specifically, by judging the geographical location and time, different geographical environments are judged to eliminate improper and unconventional instructions. For example, the temperature in Guangdong is 30 degrees now, and the air conditioner needs to be turned on. At that time, the temperature in the mountains with high altitudes may be around 20 degrees, and the heating needs to be turned on. At this time, special equipment will recommend a special set of common instructions; unreasonable operation data (i.e., invalid data) is eliminated. For example, the temperature in Guangdong city is 30 degrees now, and the air conditioner needs to be turned on. The user mistakenly turns on the heating. The main purpose is to eliminate some unreasonable operation instructions.

[0069] According to the above-mentioned embodiment of the present invention, before analyzing and processing the device data to obtain invalid data in the device data, the instruction issuing method based on the lightweight message transmission protocol also includes: preprocessing the device data; wherein the preprocessing of the device data includes at least one of the following: deduplicating the same type of operation instructions reported by the same smart device at the same time in the device data; formatting the device data to obtain device data that meets the storage requirements of a predetermined storage medium; cleaning invalid instructions in the device data, wherein the invalid instructions are instructions in the device data that do not need to be analyzed and stored.

[0070] In this embodiment, deduplication processing can reduce the storage and transmission of duplicate data, save storage space and network bandwidth, and improve data processing efficiency. Formatting processing can organize device data according to a predetermined storage format to ensure the reliability and consistency of data in the storage medium. Cleaning invalid instructions can remove instructions that do not need to be analyzed and stored, reduce data processing noise, and improve the effectiveness and accuracy of data analysis. Preprocessing can reduce the impact of invalid data on the system, reduce the risk of system crashes and errors, and improve the stability and reliability of the system.

[0071] That is, deduplicate the same type of instructions reported at the same time, format the data into its own storage format, such as time format, and clean the instructions that do not need to be analyzed and stored.

[0072] According to the above embodiment of the present invention, after storing the valid data in a predetermined storage medium, the instruction issuing method based on the lightweight message transmission protocol also includes: generating multiple instruction templates according to the valid data; adding template identifiers to the multiple instruction templates to obtain multiple instruction templates containing the template identifiers, wherein each of the multiple instruction templates corresponds to a set of predefined instruction sets.

[0073] In this embodiment, generating multiple instruction templates and adding template identifiers to them can facilitate the management and identification of different types of instructions. By adding a unique identifier to each instruction template, it can ensure that the corresponding predefined instruction set can be accurately selected and used when issuing instructions, thereby improving the accuracy and efficiency of instruction issuance. By using multiple instruction templates containing template identifiers, appropriate instruction templates can be selected according to specific needs and issued to the corresponding device or system to achieve control and management of the device or system, which can reduce errors and confusion in the instruction issuance process and improve the reliability and stability of instruction issuance. At the same time, it can also simplify the instruction issuance process and improve the convenience and efficiency of operation.

[0074] like Figure 3As shown, the system can automatically collect data reported by the device, generate a template ID for issuing public instructions through big data analysis, and provide users with ID codes for quickly issuing instructions. The template is generated as follows: based on the analysis results, the instruction recommendation engine generates a template ID for issuing public instructions (i.e., multiple instruction templates), that is, by pushing instruction sets, instruction sets, and instruction template sets to different devices, the general set structure {id:instruction}, each template id corresponds to a set of predefined instruction sets, where the predefined instruction set means that the device can issue common instructions through the id number of the instruction set after obtaining the instruction set. The device generally compares the template content with the actual instruction to be issued before issuing it. If the comparison is successful, only the id number needs to be sent. The general set structure {id:instruction} only needs to issue the id.

[0075] It should be noted that the ID code of the above instruction is usually a unique identifier used to identify the uniqueness of the instruction in the system. It can be a number, string or other form of identifier to distinguish different instructions. An automatically generated unique ID, such as UUID (Unified Unique Identifier) ​​can be used as the ID code of the instruction. This ensures that each instruction has a unique identifier to avoid conflicts and duplications.

[0076] It should be noted that the above-mentioned popular instructions are to recommend common instruction sets for different device types (through statistical analysis of big data analysis, the instruction issuance trends of different devices in different instruction time periods are obtained, thereby providing commonly used instruction sets within a cycle (for example, 24 hours)). When the device obtains the instruction set, it can issue common instructions through the id number of the instruction set. The general set structure is {id: instruction}, and it only needs to issue the id.

[0077] According to the above embodiment of the present invention, determining the target instruction template selected by the user terminal from the candidate instruction templates according to the feedback information includes: parsing the feedback information to obtain the target template identifier selected by the user terminal; and obtaining the target instruction template according to the target template identifier.

[0078] In this embodiment, parsing the feedback information can help the system identify the target template identifier selected by the user terminal, thereby obtaining the target instruction template based on the identifier. The system can understand the user's needs and instructions more accurately, and send corresponding instructions to the user terminal, thereby improving the system's response speed and execution efficiency.

[0079] The specific template recommendation steps are as follows: the instruction templates that can be recommended to users are filtered out based on geographic location and time. The push scope is to all users in the area where the geographic location is located. The generated template ID is pushed to the user terminal. The user can quickly select the template ID (i.e., the target template identifier) ​​according to needs and issue the corresponding instructions (i.e., the target instruction template).

[0080] According to the above embodiment of the present invention, sending the control instruction corresponding to the target instruction template to the target smart device includes: parsing the control instruction corresponding to the target instruction template according to the target template identifier of the target instruction template; and sending the control instruction to the target smart device.

[0081] In this embodiment, the target template identifier of the parsed target instruction template can help identify the control instructions that need to be sent. By automatically parsing the target instruction template and sending the corresponding control instructions, the time and cost of manual operation can be reduced and the operational efficiency can be improved. By sending the control instructions to the target smart device, remote control and management of the device can be achieved, thereby improving the intelligence and automation level of the device.

[0082] like Figure 3 As shown, the instruction is issued, that is, the user terminal sends the selected template ID to the MQTT proxy server, and the MQTT proxy server parses and matches the specific instruction (that is, the control instruction) according to the template ID, and forwards it to the target IoT device (that is, the target smart device).

[0083] The technical solution provided by the above-mentioned embodiment of the present invention solves the technical problems of low efficiency of command issuance and poor user experience in the Internet of Things environment, as well as the problem that a large amount of data reported by devices cannot be fully utilized and cannot support more intelligent command generation and recommendation. It also has the following beneficial effects: 1) Improve the efficiency of command issuance. By providing predefined command template IDs, users can quickly select and issue commands, reducing manual input and errors; 2) Optimize resource utilization, conduct in-depth analysis of a large amount of data reported by devices, and mine valuable information to provide support for subsequent decision-making and optimization; 3) Enhance user experience. The intelligent template recommendation mechanism can provide personalized command recommendations based on user needs and device status, thereby improving user experience.

[0084] From the above, it can be seen that in the embodiment of the present invention, by integrating MQTT agent, data processing and big data analysis technology, a system that can intelligently recommend popular instructions and reasonable instruction issuance template IDs is innovatively constructed. The system not only simplifies the complex process of users issuing instructions, but also realizes personalized recommendation of instructions through data analysis, which significantly improves the operating efficiency and user experience in the Internet of Things environment. It not only solves the cumbersome operation problems in traditional Internet of Things applications, but also opens up a new path for the intelligent and personalized development of Internet of Things technology.

[0085] That is, the above-mentioned technical scheme provided by the embodiment of the present invention comprehensively considers various factors, and realizes the real-time collection and intelligent analysis of the data reported by the Internet of Things devices by introducing the MQTT proxy server as the core of message transmission and combining the collaborative work of the data processing center and the instruction recommendation engine. The system can automatically identify the common operation modes and needs of users, generate a template ID for issuing public instructions, and recommend it to users, thereby greatly simplifying the process of issuing instructions and improving operational efficiency. At the same time, the instruction recommendation mechanism based on big data analysis technology ensures the accuracy and personalization of the recommended templates, further improves the user experience, brings a more convenient and intelligent operation method to the Internet of Things application, and promotes the further development of the Internet of Things technology.

[0086] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

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

[0088] According to an embodiment of the present invention, there is also provided an instruction issuing device based on a lightweight message transmission protocol for implementing the above-mentioned instruction issuing method based on a lightweight message transmission protocol. Figure 4is a schematic diagram of an instruction issuing device based on a lightweight message transmission protocol according to an embodiment of the present invention, such as Figure 4 As shown, the device includes: a first acquisition module 401, a screening module 403, a first sending module 405, a second acquisition module 407, a determination module 409 and a second sending module 411. The instruction issuing device based on the lightweight message transmission protocol is described below.

[0089] The first acquisition module 401 is used to acquire the current geographical location information of the target smart device and the sending time of the instruction acquisition request according to the instruction acquisition request when receiving the instruction acquisition request of the target smart device;

[0090] A screening module 403 is used to screen out a candidate instruction template that matches the instruction acquisition request from a predetermined storage medium according to the geographical location information and the sending time, wherein the predetermined storage medium stores a plurality of pre-set instruction templates;

[0091] A first sending module 405 is used to send the instruction template to be selected to the user terminal of the target smart device;

[0092] The second acquisition module 407 is used to obtain feedback information of the user terminal on the instruction template to be selected;

[0093] A determination module 409 is used to determine a target instruction template selected by the user terminal from the candidate instruction templates according to the feedback information;

[0094] The second sending module 411 is used to send the control instruction corresponding to the target instruction template to the target smart device.

[0095] It should be noted here that the above-mentioned first acquisition module 401, screening module 403, first sending module 405, second acquisition module 407, determination module 409 and second sending module 411 correspond to steps S202 to S212 in the above-mentioned embodiments, and the six modules and the corresponding steps implement the same instances and application scenarios, but are not limited to the contents disclosed in the above-mentioned embodiments.

[0096] As can be seen from the above, in the scheme recorded in the above-mentioned embodiment of the present invention, first, when receiving the instruction acquisition request of the target smart device, the first acquisition module can be used to obtain the current geographical location information of the target smart device and the sending time of the instruction acquisition request according to the instruction acquisition request; then, the screening module can be used to screen out the candidate instruction template matching the instruction acquisition request from the predetermined storage medium according to the geographical location information and the sending time, wherein the predetermined storage medium stores a plurality of pre-set instruction templates; then, the first sending module can be used to send the candidate instruction template to the user terminal of the target smart device; the second acquisition module can also be used to obtain the feedback information of the user terminal on the candidate instruction template; and the confirmation module can be used to obtain the feedback information of the user terminal on the candidate instruction template. The determination module determines the target instruction template selected by the user terminal from the candidate instruction templates according to the feedback information; finally, the second sending module can be used to send the control instruction corresponding to the target instruction template to the target intelligent device, thereby achieving the use of MQTT proxy server as the core of message transmission, and combining the collaborative work of the data processing center and the instruction recommendation engine. By integrating MQTT agent, data processing and big data analysis technology, it automatically identifies the user's common operation modes and needs, mines valuable information, and provides personalized instruction recommendations according to user needs and device status, thereby achieving the technical effect of intelligently recommending popular instructions and reasonably issuing template IDs, and improving the automation and reliability of the Internet of Things system.

[0097] The technical solution provided by the embodiment of the present invention solves the technical problem in the related art that the issuance of instructions in the Internet of Things system often relies on manual input by the user or preset scripts, and has low reliability.

[0098] In an optional embodiment, the first acquisition module includes: a first parsing unit, configured to parse the instruction acquisition request to obtain the current geographical location information of the target smart device and the sending time of the instruction acquisition request.

[0099] In an optional embodiment, the instruction issuing device based on the lightweight message transmission protocol also includes: a receiving module, which is used to receive device data reported by multiple smart devices including the target smart device before filtering out a candidate instruction template that matches the instruction acquisition request from a predetermined storage medium according to the geographic location information and the sending time, wherein the device data includes: the device status of the smart device, the sensing data read by the sensor of the smart device, and the geographic location of the smart device when reporting the data; an analysis module, which is used to analyze and process the device data to obtain invalid data in the device data; a deletion module, which is used to delete the invalid data from the device data to obtain valid data in the device data; and a storage module, which is used to store valid data to a predetermined storage medium.

[0100] In an optional embodiment, the analysis module includes: a first acquisition unit, used to acquire the geographic location in the device data; a determination unit, used to determine the application scenario of the smart device based on the geographic location; and an analysis unit, used to analyze the device data based on the application scenario to obtain invalid data in the device data that does not conform to the application scenario.

[0101] In an optional embodiment, the instruction issuing device based on the lightweight message transmission protocol also includes: a preprocessing module, which is used to preprocess the device data before analyzing and processing the device data to obtain invalid data in the device data; wherein the preprocessing of the device data includes at least one of the following: a deduplication unit, which is used to deduplicate the same type of operation instructions reported by the same smart device at the same time in the device data; a formatting unit, which is used to format the device data to obtain device data that meets the storage requirements of a predetermined storage medium; a cleaning unit, which is used to clean invalid instructions in the device data, wherein invalid instructions are instructions in the device data that do not need to be analyzed and stored.

[0102] In an optional embodiment, the instruction issuing device based on the lightweight message transmission protocol also includes: a generation module, which is used to generate multiple instruction templates according to the valid data after storing the valid data in a predetermined storage medium; an adding module, which is used to add template identifiers to the multiple instruction templates to obtain multiple instruction templates containing the template identifiers, wherein each of the multiple instruction templates corresponds to a set of predefined instruction sets.

[0103] In an optional embodiment, the determination module includes: a second parsing unit, used to parse the feedback information to obtain the target template identifier selected by the user terminal; and a second acquisition unit, used to obtain the target instruction template according to the target template identifier.

[0104] In an optional embodiment, the second sending module includes: a third parsing unit, used to parse out the control instruction corresponding to the target instruction template according to the target template identifier of the target instruction template; and a sending unit, used to send the control instruction to the target smart device.

[0105] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein when the program is running, any one of the above-mentioned instruction issuing methods based on the lightweight message transmission protocol is executed.

[0106] According to another aspect of an embodiment of the present invention, a computer program product is provided, including computer instructions. When the computer instructions are executed by a processor, any one of the above-mentioned instruction issuing methods based on the lightweight message transmission protocol is executed.

[0107] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein the program executes any one of the above-mentioned instruction issuing methods based on the lightweight message transmission protocol.

[0108] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the communication devices in a communication device group.

[0109] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: upon receiving an instruction acquisition request from a target smart device, obtaining the current geographic location information of the target smart device and the sending time of the instruction acquisition request according to the instruction acquisition request; filtering out a candidate instruction template that matches the instruction acquisition request from a predetermined storage medium according to the geographic location information and the sending time, wherein the predetermined storage medium stores a plurality of pre-set instruction templates; sending the candidate instruction template to a user terminal of the target smart device; obtaining feedback information from the user terminal on the candidate instruction template; determining a target instruction template selected by the user terminal from the candidate instruction templates according to the feedback information; and sending the control instruction corresponding to the target instruction template to the target smart device.

[0110] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: parsing the instruction acquisition request to obtain the current geographical location information of the target smart device and the sending time of the instruction acquisition request.

[0111] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: receiving device data reported by multiple smart devices including a target smart device, wherein the device data includes: the device status of the smart device, the sensing data read by the sensor of the smart device, and the geographical location of the smart device when reporting the data; analyzing and processing the device data to obtain invalid data in the device data; deleting the invalid data from the device data to obtain valid data in the device data; and storing the valid data to a predetermined storage medium.

[0112] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: obtaining a geographic location in device data; determining an application scenario of the smart device based on the geographic location; and analyzing the device data based on the application scenario to obtain invalid data in the device data that does not conform to the application scenario.

[0113] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: preprocessing the device data; wherein the preprocessing of the device data includes at least one of the following: deduplicating the same type of operation instructions reported by the same smart device at the same time in the device data; formatting the device data to obtain device data that meets the storage requirements of a predetermined storage medium; cleaning invalid instructions in the device data, wherein invalid instructions are instructions in the device data that do not need to be analyzed and stored.

[0114] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: generating multiple instruction templates based on valid data; adding template identifiers to the multiple instruction templates to obtain multiple instruction templates containing the template identifiers, wherein each of the multiple instruction templates corresponds to a set of predefined instruction sets.

[0115] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: parsing the feedback information to obtain a target template identifier selected by the user terminal; and obtaining a target instruction template according to the target template identifier.

[0116] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: parsing a control instruction corresponding to the target instruction template according to a target template identifier of the target instruction template; and sending the control instruction to the target smart device.

[0117] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0118] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

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

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

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

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

[0123] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for issuing instructions based on a lightweight message transmission protocol, characterized in that: Applicable to lightweight message transfer protocol proxy server, including: When receiving a command acquisition request from a target smart device, acquiring the current geographical location information of the target smart device and the sending time of the command acquisition request according to the command acquisition request; Filtering a candidate instruction template that matches the instruction acquisition request from a predetermined storage medium according to the geographic location information and the sending time, wherein the predetermined storage medium stores a plurality of pre-set instruction templates; Sending the selected instruction template to a user terminal of the target smart device; Acquiring feedback information of the user terminal on the instruction template to be selected; Determining a target instruction template selected by the user terminal from the candidate instruction templates according to the feedback information; The control instruction corresponding to the target instruction template is sent to the target smart device.

2. The method for issuing instructions based on the lightweight message transmission protocol according to claim 1, characterized in that: Before selecting a candidate instruction template matching the instruction acquisition request from a predetermined storage medium according to the geographic location information and the sending time, the method further includes: Receiving device data reported by a plurality of smart devices including the target smart device, wherein the device data includes: device status of the smart device, sensing data read by a sensor of the smart device, and a geographical location of the smart device when reporting the data; Analyzing and processing the device data to obtain invalid data in the device data; Deleting the invalid data from the device data to obtain valid data in the device data; The valid data is stored in the predetermined storage medium.

3. The method for issuing instructions based on the lightweight message transmission protocol according to claim 2, characterized in that: Analyzing and processing the device data to obtain invalid data in the device data includes: Obtaining the geographic location in the device data; Determining an application scenario of the smart device according to the geographical location; The device data is analyzed according to the application scenario to obtain the invalid data in the device data that does not conform to the application scenario.

4. The method for issuing instructions based on the lightweight message transmission protocol according to claim 2, characterized in that: Before analyzing and processing the device data to obtain invalid data in the device data, the method further includes: preprocessing the device data; The preprocessing of the device data includes at least one of the following: Deduplication processing is performed on the same type of operation instructions reported by the same smart device at the same time in the device data; Formatting the device data to obtain the device data that meets the storage requirements of the predetermined storage medium; Invalid instructions in the device data are cleaned, wherein the invalid instructions are instructions in the device data that do not need to be analyzed and stored.

5. The method for issuing instructions based on the lightweight message transmission protocol according to claim 2, characterized in that: After storing the valid data in the predetermined storage medium, the method further includes: generating the plurality of instruction templates according to the valid data; Adding template identifiers to the multiple instruction templates to obtain the multiple instruction templates containing the template identifiers, wherein each of the multiple instruction templates corresponds to a set of predefined instruction sets.

6. The method for issuing instructions based on the lightweight message transmission protocol according to claim 1, characterized in that: Sending the control instruction corresponding to the target instruction template to the target smart device includes: Parsing the control instruction corresponding to the target instruction template according to the target template identifier of the target instruction template; The control instruction is sent to the target smart device.

7. A device for issuing instructions based on a lightweight message transmission protocol, characterized in that: Applicable to lightweight message transfer protocol proxy server, including: A first acquisition module, configured to, upon receiving a command acquisition request from a target smart device, acquire, according to the command acquisition request, the current geographical location information of the target smart device and the sending time of the command acquisition request; A screening module, configured to screen out a candidate instruction template that matches the instruction acquisition request from a predetermined storage medium according to the geographic location information and the sending time, wherein the predetermined storage medium stores a plurality of pre-set instruction templates; A first sending module, used for sending the instruction template to be selected to a user terminal of the target smart device; A second acquisition module, used to acquire feedback information of the user terminal on the instruction template to be selected; A determination module, configured to determine a target instruction template selected by the user terminal from the candidate instruction templates according to the feedback information; The second sending module is used to send the control instruction corresponding to the target instruction template to the target smart device.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the instruction issuing method based on the lightweight message transmission protocol as described in any one of claims 1 to 6.

9. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the instruction issuing method based on the lightweight message transmission protocol described in any one of claims 1 to 6.

10. A computer program product comprising computer instructions, characterized in that: When the computer instruction is executed by the processor, the instruction issuing method based on the lightweight message transmission protocol described in any one of claims 1 to 6 is executed.

Citation Information

Patent Citations

  • Internet of Things equipment access method and device

    CN114531460A

  • Equipment control method and device, computer equipment and storage medium

    CN116360316A

  • Internet of things device discovery and configuration

    US10944638B1

  • Method, intelligent device, and system for controlling terminal device

    US20170346654A1

  • Information processing device, management program and management method

    US20220247876A1