Equipment message processing method, system and equipment of Internet of Things platform, and medium

By implementing highly abstract and modular design device message processing methods on the Internet of Things platform, the problem of low message processing efficiency of IoT devices is solved, simplified integration process and efficient development efficiency are achieved, and the flexibility of the system is enhanced. Scalability provides powerful technical support for IoT applications.

CN119011356APending Publication Date: 2024-11-22INSPUR FINANCIAL INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410990161.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing technology is difficult to efficiently integrate IoT device message processing, resulting in massive device access and data processing becoming an industry challenge.

Method used

Provide a device message processing method for the Internet of Things platform. Through the combination of initialization, customization, message processing and message sending modules, it realizes highly abstract and modular design, simplifies device message integration and processing flow, and enhances system flexibility and scalability. .

Benefits of technology

It significantly improves software development efficiency, reduces human resource investment, enhances the rapid deployment and iteration capabilities of IoT applications, and makes up for the gaps in existing technologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011356A_ABST
    Figure CN119011356A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment message processing method, system and equipment of an Internet of Things platform and a medium. The method comprises the following steps: defining a theme generation rule, and configuring an equipment message structure and a message processing method; during task self-definition, processing definition of asynchronous tasks is carried out according to needs; monitoring the message processing, stripping the message in response to the arrival of the message, and matching a message processor according to a message entity to process the message; message sending is monitored, a message needing to be sent is preprocessed, and then sending control of the message to equipment is carried out; through high abstraction and modular design, the equipment message integration and processing flow of the Internet of Things platform is remarkably simplified, the software development efficiency is greatly improved, and the investment of human resources is reduced. In addition, according to the method, the flexibility and expansibility of the system are enhanced, and powerful technical support is provided for rapid deployment and iteration of the application of the Internet of Things.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a device message processing method, system, device and medium for an Internet of Things platform. Background Art

[0002] With the rapid development of IoT technology, massive device access and data processing have become a major challenge facing the industry; therefore, the market urgently needs a solution that can efficiently integrate IoT device message processing. Summary of the invention

[0003] The object of the present invention is to provide a device message processing method, system, device and medium for an Internet of Things platform, thereby solving all or one of the above-mentioned problems existing in the prior art.

[0004] In order to solve the above technical problems, the specific technical solutions of the present invention are as follows: In one aspect, the present invention provides a device message processing method for an Internet of Things platform, comprising the following steps: initialization: Define topic generation rules, configure device message structure and message processing methods; Customization: When customizing tasks, define asynchronous task processing as needed; Message processing: Supervise message processing, respond to message arrival, strip the message, and process the message according to the message entity matching message processor; Message sending: Monitor the message sending, pre-process the messages that need to be sent, and then control the sending of messages to the device.

[0005] As an improved solution, the definition of topic generation rules further includes: Developers customize theme generation rules, and the theme management module generates and parses themes based on these rules.

[0006] As an improved solution, the configuration of the device message structure further includes: Developers implement various device message structures based on message templates.

[0007] As an improved solution, the configuration of the message processing method further includes: Developers implement specific processing methods for various types of messages based on message processor templates.

[0008] As an improved solution, when the task is customized, the processing definition of the asynchronous task is performed as needed, further including: In response to needs, developers customize the asynchronous tasks to be performed during message processing, hand them over to the asynchronous task management module, and bind them to the message processor, which will be automatically triggered when needed during message processing.

[0009] As an improved solution, the supervision of message processing and stripping of messages in response to message arrival further includes: In response to the program starting, the message processor is included in the message processor management module for supervision; when a message arrives at the session management module, the topic manager parses the topic to extract key information, and the message preprocessor strips the fixed message header and parses out the key information.

[0010] As an improved solution, the message processor is matched according to the message entity to process the message, and then the message is sent to the device. The method further includes: The key information and the message entity are handed over to the information processor management module; the information processor management module selects the corresponding message processor according to the key information, and executes the operation method together with the message entity to complete the processing of the message; in response to the Internet of Things platform sending information to the device, the message entity is sent to the session management module; the session management module adds a message header to the message entity through the message preprocessing module; the session management module obtains the target topic of the message through the topic management module; the session management module sends the message to the device.

[0011] On the other hand, the present invention also provides a device message processing system for an Internet of Things platform, comprising: Initialization module, used to: define topic generation rules, configure device message structure and message processing method; The custom module is used to: define asynchronous task processing as needed during task customization; The message processing module is used to supervise the message processing, strip the message in response to the arrival of the message, and process the message according to the message entity matching message processor; The message sending module is used to monitor the message sending, pre-process the messages to be sent, and then control the sending of messages to the device.

[0012] On the other hand, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the device message processing method of the Internet of Things platform are implemented.

[0013] On the other hand, the present invention further provides a computer device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: The memory is used to store computer programs; The processor is used to execute the steps of the device message processing method of the Internet of Things platform by running the program stored in the memory.

[0014] The beneficial effects of the technical solution of the present invention are: 1. The device message processing method of the Internet of Things platform described in the present invention can significantly simplify the device message integration and processing process of the Internet of Things platform through highly abstract and modular design, greatly improve the efficiency of software development, and reduce the investment of human resources. In addition, the method also enhances the flexibility and scalability of the system, provides strong technical support for the rapid deployment and iteration of Internet of Things applications, makes up for the gaps in existing technologies, and has high application value.

[0015] 2. The device message processing system of the Internet of Things platform described in the present invention can realize the device message processing method of the Internet of Things platform described in the present invention through the mutual cooperation of system modules.

[0016] 3. The computer-readable storage medium described in the present invention can realize the cooperation of the guiding system module, thereby realizing the device message processing method of the Internet of Things platform described in the present invention, and the computer-readable storage medium described in the present invention also effectively improves the operability of the device message processing method of the Internet of Things platform.

[0017] 4. The computer device described in the present invention can store and execute the computer-readable storage medium, thereby realizing the device message processing method of the Internet of Things platform described in the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 It is a flowchart of the device message processing method of the Internet of Things platform described in Embodiment 1 of the present invention; Figure 2 It is a detailed flowchart of the device message processing method of the Internet of Things platform described in Example 1 of the present invention; Figure 3 This is a schematic diagram of the architecture of the device message processing system of the Internet of Things platform described in Example 2 of the present invention; Figure 4 is a schematic diagram of the structure of the computer device described in Example 4 of the present invention; The symbols in the accompanying drawings are explained as follows: 1501, processor; 1502, communication interface; 1503, memory; 1504, communication bus. DETAILED DESCRIPTION

[0020] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.

[0021] In the description of the present invention, it should be noted that the embodiments described in the present invention are only part of the embodiments of the present invention, rather than all of the embodiments; based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present invention.

[0022] The terms "first", "second", etc. in the specification and claims of this article 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 this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment. Example 1

[0023] This embodiment provides a device message processing method for an Internet of Things platform, such as Figure 1 and Figure 2 As shown, the following steps are included: The core function of this method is to build an efficient and scalable management framework to achieve highly automated and standardized message processing on the IoT platform. This method does not require developers to pay attention to the underlying transmission details of the message, but only needs to focus on the message content and processing logic, which greatly improves R&D efficiency and system stability. The specific steps are as follows: S100, initialization: In this step, the developer customizes the topic generation rules, and the topic management module implements topic generation and parsing according to the rules; the developer implements the message structure of various devices according to the message template; the developer implements the specific processing method of various messages according to the message processor template; S200, Custom: In this step, if necessary, the developer customizes the asynchronous tasks to be executed during message processing, and hands them over to the asynchronous task management module, which is bound to the message processor and automatically triggered when needed during message processing; S300, message processing: In this step, the message processor is included in the message processor management module for supervision when the program starts; when a message arrives at the session management module, the topic manager parses the topic to extract the key information, and the message preprocessor strips the fixed message header, parses the key information, and hands it over to the information processor management module together with the message entity; the information processor management module selects the corresponding message processor according to the key information, and executes the operation method together with the message entity to complete the processing of the message; S400, message sending: In this step, if the IoT platform sends information to the device, it sends the message entity to the session management module; the session management module adds a message header to the message entity through the message preprocessing module; the session management module obtains the target topic of the message through the topic management module; and the session management module sends the message to the device.

[0024] Among them, the functional modules involved in the above steps are explained as follows: Session management module: mainly responsible for maintaining and managing the status of IoT sessions and realizing message delivery; this module includes session creation, maintenance, and destruction functions, as well as session status monitoring and exception handling mechanisms; Theme management module: mainly used to manage the generation rules of custom themes under the constraints of the framework, and used for the parsing and generation of themes; Message preprocessing module: mainly used to ensure the uniformity and effectiveness of the message format, including message decoding, verification, format conversion and other operations, so as to facilitate subsequent module processing; Message processor management module: mainly responsible for managing and scheduling different types of message processors to achieve classified processing and flexible expansion of messages, and select appropriate processors for message processing according to message types; Message processor template: mainly used to provide a set of standardized interfaces and behavior specifications for quickly generating specific message processors; developers can define new message processors based on message templates to simplify the development process; Message template: mainly used to define the format and structure of messages to ensure the standardization of messages; provide message creation, parsing and verification functions to simplify the complexity of message processing; Asynchronous task management module: mainly responsible for managing the execution of asynchronous tasks, such as sending messages and calling external interfaces, etc. It improves the system's response speed and concurrent processing capabilities, and ensures efficient message processing; Asynchronous task template: mainly used to provide a set of standardized interfaces and behavior specifications for quickly generating specific asynchronous task processing methods; developers can define new asynchronous tasks based on templates to simplify the development process.

[0025] It should be noted that the above examples are only for explaining the present invention and cannot limit the protection scope of the present invention. Example 2

[0026] This embodiment is based on the same inventive concept as the device message processing method of an Internet of Things platform described in Embodiment 1, and provides a device message processing system of an Internet of Things platform, such as Figure 3 As shown, including: The initialization module is used to: help developers customize the topic generation rules, call the topic management module to realize the generation and analysis of topics according to these rules; help developers realize the message structure of various devices according to the message template; help developers realize the specific processing methods of various messages according to the message processor template; The custom module is used to help developers customize the asynchronous tasks to be executed during message processing when necessary, hand them over to the asynchronous task management module, and bind them to the message processor, which will be automatically triggered when needed during message processing; The message processing module is used to: bring the message processor into the message processor management module for supervision when the program starts; when a message arrives at the session management module, call the topic manager to parse the topic and extract the key information, and call the message preprocessor to strip the fixed message header, parse out the key information, and hand it over to the information processor management module together with the message entity; call the information processor management module to select the corresponding message processor according to the key information, and execute the operation method together with the message entity to complete the processing of the message; The message sending module is used to: send the message entity session management module when the Internet of Things platform sends information to the device; call the session management module to add a message header to the message entity through the message preprocessing module; call the session management module to obtain the target topic of the message through the topic management module; call the session management module to send the message to the device. Example 3

[0027] This embodiment provides a computer-readable storage medium, including: The storage medium is used to store computer software instructions used to implement the device message processing method of the Internet of Things platform described in the above-mentioned embodiment 1, which includes a program for executing the above-mentioned program set for the device message processing method of the Internet of Things platform; specifically, the executable program can be built into the device message processing system of the Internet of Things platform described in embodiment 2, so that the device message processing system of the Internet of Things platform can implement the device message processing method of the Internet of Things platform described in embodiment 1 by executing the built-in executable program.

[0028] In addition, the computer-readable storage medium of this embodiment may adopt any combination of one or more computer-readable storage media, wherein the computer-readable storage medium includes electrical, optical, electromagnetic, infrared or semiconductor systems, devices or components, or any combination thereof. Example 4

[0029] This embodiment provides an electronic device, such as Figure 4 As shown, the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 communicate with each other via the communication bus 1504 .

[0030] Memory 1503, used for storing computer programs; The processor 1501 is used to implement the steps of the device message processing method of the Internet of Things platform described in the above-mentioned embodiment 1 when executing the computer program stored in the memory 1503.

[0031] As an embodiment of the present invention, the communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0032] As an implementation mode of the present invention, the communication interface is used for communication between the above-mentioned terminal and other devices.

[0033] As an embodiment of the present invention, the memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0034] As an embodiment of the present invention, the above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0035] Different from the prior art, the device message processing method, system, device and medium of the IoT platform of the present application can significantly simplify the device message integration and processing process of the IoT platform through highly abstract and modular design, greatly improve the efficiency of software development, and reduce the investment of human resources. In addition, the method also enhances the flexibility and scalability of the system, provides strong technical support for the rapid deployment and iteration of IoT applications, makes up for the gaps in the prior art, and has high application value.

[0036] It should be understood that in the various embodiments of this document, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this document.

[0037] It should also be understood that in the embodiments of this article, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0038] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this article.

[0039] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0040] In the several embodiments provided herein, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or can be electrical, mechanical or other forms of connection.

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

[0042] In addition, each functional unit in each embodiment of this 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 integrated unit may be implemented in the form of hardware or in the form of software functional unit.

[0043] 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 this article is essentially 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 to enable 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 this article. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0044] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A device message processing method for an Internet of Things platform, characterized in that: The following steps are involved: initialization: Define topic generation rules, configure device message structure and message processing methods; Customization: When customizing tasks, define asynchronous task processing as needed; Message processing: Supervise message processing, respond to message arrival, strip the message, and process the message according to the message entity matching message processor; Message sending: Monitor the message sending, pre-process the messages that need to be sent, and then control the sending of messages to the device.

2. The device message processing method of the Internet of Things platform according to claim 1 is characterized in that: The defining of topic generation rules further comprises: Developers customize theme generation rules, and the theme management module generates and parses themes based on these rules.

3. The device message processing method of the Internet of Things platform according to claim 2 is characterized in that: The configuration of the device message structure further includes: Developers implement various device message structures based on message templates.

4. The device message processing method of the Internet of Things platform according to claim 3 is characterized in that: The configuration of the message processing method further includes: Developers implement specific processing methods for various types of messages based on message processor templates.

5. The device message processing method of the Internet of Things platform according to claim 1 is characterized in that: When the task is customized, the asynchronous task processing definition is performed as needed, further including: In response to needs, developers customize the asynchronous tasks to be performed during message processing, hand them over to the asynchronous task management module, and bind them to the message processor, which will be automatically triggered when needed during message processing.

6. The device message processing method of the Internet of Things platform according to claim 1, characterized in that: The monitoring of message processing and stripping of messages in response to message arrival further includes: In response to the program starting, the message processor is included in the message processor management module for supervision; when a message arrives at the session management module, the topic manager parses the topic to extract key information, and the message preprocessor strips the fixed message header and parses out the key information.

7. The device message processing method of the Internet of Things platform according to claim 6 is characterized in that: The method of matching a message processor with a message entity to process the message and then controlling the sending of the message to the device further includes: The key information and the message entity are handed over to the information processor management module; the information processor management module selects the corresponding message processor according to the key information, and executes the operation method together with the message entity to complete the processing of the message; in response to the Internet of Things platform sending information to the device, the message entity is sent to the session management module; the session management module adds a message header to the message entity through the message preprocessing module; the session management module obtains the target topic of the message through the topic management module; the session management module sends the message to the device.

8. A device message processing system for an Internet of Things platform, characterized in that: include: Initialization module, used to: define topic generation rules, configure device message structure and message processing method; The custom module is used to: define asynchronous task processing as needed during task customization; The message processing module is used to supervise the message processing, strip the message in response to the arrival of the message, and process the message according to the message entity matching message processor; The message sending module is used to monitor the message sending, pre-process the messages to be sent, and then control the sending of messages to the device.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the device message processing method of the Internet of Things platform described in any one of claims 1 to 7 are implemented.

10. A computer device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; wherein: The memory is used to store computer programs; The processor is used to execute the steps of the device message processing method of the Internet of Things platform described in any one of claims 1 to 7 by running the program stored in the memory.