Message processing method, device, terminal and medium for Internet of Things devices

By obtaining the pending information of IoT devices, determining the device information and forwarding queue, and using predetermined algorithms to calculate query values, it solves the problems of difficulty in managing IoT devices and device type restrictions, and achieves efficient message processing and timing management.

CN111880955BActive Publication Date: 2024-08-27BEIJING LITONG ZHILIAN TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202010772828.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-04
Publication Date
2024-08-27
Estimated Expiration
2040-08-04

AI Technical Summary

Technical Problem

There are many applications and types of IoT devices, which makes management difficult. In the existing technology, the same application can only use equipment provided by designated manufacturers, which limits management efficiency.

Method used

By obtaining the pending information of the target device, determining its device information, determining multiple forwarding queues based on the device information, and using a predetermined algorithm and device information to calculate the query value, the target forwarding queue and processing partition are determined to process the pending messages.

Benefits of technology

It realizes message processing and timing management of different devices, lifts device type restrictions, improves the management efficiency of applications and devices, and can process messages from multiple devices at the same time and ensure sequential processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111880955B
    Figure CN111880955B
Patent Text Reader

Abstract

The present application discloses a message processing method, device, terminal and medium for IoT devices. The method includes: obtaining the pending information sent by the target device; determining the device information of the target device; determining the application to which the target device belongs based on the device information of the target device; determining multiple forwarding queues for the application; determining the target forwarding queue for the target device and the partition in the target forwarding queue for processing the pending information; processing the pending message according to the target forwarding queue and the partition. The present application can not only associate different devices with the applications to which the different devices belong, and achieve the purpose of managing multiple applications and multiple devices served by each of the multiple applications at the same time, but also remove the limitation in the prior art that the same application can only use the devices provided by a specified manufacturer, and can not only process the pending messages of different devices at the same time, but also process them sequentially according to the multiple pending messages of the same device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of terminal devices, and in particular to a method, device, terminal and medium for processing messages of an Internet of Things device. Background Art

[0002] As IoT devices are widely used, there are more and more IoT device manufacturers. Therefore, there are more and more applications supporting IoT devices, and an application can generally only be provided by a designated IoT device manufacturer. Therefore, there are many problems related to IoT devices, such as the large number of applications, the variety of IoT device types, and the difficulty of management. Summary of the invention

[0003] In order to solve at least one of the above technical problems, the present application provides a message processing method, device, terminal and medium for an Internet of Things device.

[0004] According to a first aspect of the present application, a method for processing messages of an Internet of Things device is provided, the method comprising:

[0005] Get the pending information sent by the target device;

[0006] Determine device information of the target device based on the information to be processed;

[0007] Based on the device information of the target device, determine multiple forwarding queues for the target device;

[0008] Determine the query value based on a predetermined algorithm and device information;

[0009] Determine a target forwarding queue for a target device and a partition in the target forwarding queue for processing information to be processed according to the query value and queue related information respectively corresponding to the plurality of forwarding queues;

[0010] Process pending messages according to the target forwarding queue and partition.

[0011] According to a second aspect of the present application, a message processing device for an Internet of Things device is provided, the device comprising:

[0012] A message acquisition module is used to obtain the pending information sent by the target device;

[0013] A device information determination module, used to determine the device information of the target device according to the information to be processed;

[0014] An application determination module, used to determine the application to which the target device belongs based on the device information of the target device;

[0015] A forwarding queue determination module, used to determine multiple forwarding queues for an application;

[0016] A query value determination module, used to determine a query value based on a predetermined algorithm and device information;

[0017] The queue and partition determination module is used to determine the target forwarding queue for the target device and the partition in the target forwarding queue for processing the information to be processed according to the query value and the queue related information corresponding to the multiple forwarding queues.

[0018] The message processing module is used to process the pending messages according to the target forwarding queue and partition.

[0019] According to a third aspect of the present application, a terminal is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a method for message processing of an Internet of Things device.

[0020] According to a fourth aspect of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions for executing the above-mentioned message processing method for an Internet of Things device.

[0021] In the embodiment of the present application, by acquiring the information to be processed sent by the target device, the device information of the target device is determined according to the information to be processed, thereby determining multiple forwarding queues for the target device. This method of determining multiple forwarding queues according to the device information of the target device can not only associate different devices with the applications to which different devices belong, so as to achieve the purpose of managing multiple applications and multiple devices served by multiple applications at the same time, but also remove the limitation in the prior art that the same application can only use the devices provided by a specified manufacturer, thereby improving the management efficiency of applications and devices; at the same time, by setting multiple forwarding queues for the same application, not only can the messages of multiple devices belonging to the same application be processed at the same time, but also the timing of message processing is achieved; based on a predetermined algorithm and device information, a query value is determined, so as to determine the target forwarding queue for the target device and the partition in the target forwarding queue for processing the information to be processed according to the query value and the queue related information corresponding to the multiple forwarding queues, so as to process the message to be processed according to the target forwarding queue and the partition, and the query value provides a basis for finding the target forwarding queue and the partition in the multiple forwarding queues to complete the processing of the message to be processed, so as to achieve the purpose of processing the messages to be processed of different devices at the same time and sequentially processing the multiple messages to be processed of the same device. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in describing the embodiments of the present application.

[0023] Figure 1 A flowchart of a method for processing messages for an Internet of Things device provided by an embodiment of the present application;

[0024] Figure 2 A schematic diagram of a flow chart of determining a query value in a message processing method for an Internet of Things device provided by an embodiment of the present application; and

[0025] Figure 3 A flowchart of a message processing device for an Internet of Things device provided by one embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0027] It should be noted that although the functional modules are divided in the device schematic and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart.

[0028] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0029] According to an embodiment of the present application, a message processing method for an IoT device is provided, such as Figure 1 As shown, the method includes: step S101 to step S107.

[0030] Step S101: Obtain a message to be processed sent by a target device.

[0031] Specifically, the gateway may obtain the to-be-processed message sent by the target device according to a preset time period.

[0032] Specifically, the target devices may include speakers, payment announcement speakers, electronic locks, smart medicine boxes and other IoT devices.

[0033] Step S102: Determine the device information of the target device according to the message to be processed.

[0034] Specifically, the device information is used to uniquely identify the target device, and generally includes the device type, the device serial number, the version number of the device firmware, the MAC address, etc.

[0035] Step S103: Determine the application to which the target device belongs based on the device information of the target device.

[0036] Specifically, the gateway may locally store the applications to which the plurality of device information respectively belongs, so as to query the device information of the target device locally, thereby determining the application to which the target device belongs.

[0037] Specifically, the gateway may send the device information of the target device to a preset server, so that the server queries based on the device information of the target device and sends the query result to the gateway, thereby enabling the gateway to determine the application to which the target device belongs based on the query result sent by the server.

[0038] Specifically, the multiple devices corresponding to the multiple applications can be devices generated by the application developer or devices produced by other manufacturers, that is, by configuring the multiple devices corresponding to the multiple applications on the server, the applications providing services for different devices are determined.

[0039] For example, assuming that XX application provides services to the electronic lock (such as unlocking service, verification service for the electronic lock, etc.), then by configuring the correspondence between multiple devices corresponding to multiple applications in the server, it can be queried in the correspondence that the application providing services to the electronic lock is XX application.

[0040] Step S104: Determine multiple forwarding queues for the application.

[0041] Specifically, the gateway generally stores multiple forwarding queues corresponding to multiple applications locally. More specifically, the multiple forwarding queues corresponding to the application to which the target device belongs can be queried through the pre-stored correspondence between the application identifier and the forwarding queue.

[0042] Specifically, the forwarding queue may be characterized by queue number, queue address, queue name, number of partitions of the queue, and other queue related information.

[0043] For example, assuming that the number of forwarding queues for an application is 3, then queue-related information of each of the three forwarding queues may be as shown in Table 1.

[0044] Table 1

[0045]

[0046]

[0047] Step S105: Determine the query value based on a predetermined algorithm and device information.

[0048] Step S106: determining a target forwarding queue for the target device and a partition in the target forwarding queue for processing the information to be processed according to the query value and queue related information corresponding to the plurality of forwarding queues.

[0049] Specifically, the total number of partitions of the multiple forwarding queues is traversed with the query value until the number of partitions equal to the query value is traversed, and the forwarding queue to which the number of partitions equal to the query value belongs is determined, and the forwarding queue is used as the target forwarding queue.

[0050] For example, assuming the query value is 44, the 44th partition is in the forwarding queue numbered 2, so the forwarding queue with the queue name topic2 is used as the target forwarding queue; at the same time, the 44th partition is the 20th partition in the forwarding queue numbered 2, so the partition with the partition number 20 in the forwarding queue with the queue name topic2 is used as the partition in the target forwarding queue for processing the pending information.

[0051] Step S107: Process the message to be processed according to the target forwarding queue and partition.

[0052] Specifically, the gateway processes the pending message according to the target forwarding queue and partition, for example, forwarding the pending message to the application to which the target device belongs.

[0053] The embodiment of the present application obtains the pending message sent by the target device to determine the device information of the target device based on the pending message, and then determines the application to which the target device belongs based on the device information, thereby determining multiple forwarding queues for the application. This method of determining multiple forwarding queues by the application to which the target device belongs can not only associate different devices with the applications to which different devices belong, thereby achieving the purpose of managing multiple applications and multiple devices served by multiple applications at the same time, but also removes the limitation in the prior art that the same application can only use devices provided by a specified manufacturer, thereby improving the management efficiency of applications and devices. At the same time, by setting multiple forwarding queues for the same application, not only can the same It processes the messages of multiple devices belonging to the same application at the same time, and also plays a role in the timing of message processing; based on a predetermined algorithm and device information, a query value is determined, so as to determine the target forwarding queue for the target device and the partition in the target forwarding queue for processing the pending information according to the query value and the queue-related information corresponding to the multiple forwarding queues, so as to process the pending message according to the target forwarding queue and the partition, and the query value provides a basis for finding the target forwarding queue and the partition in the multiple forwarding queues to complete the processing of the pending message, so as to achieve the purpose of quickly processing the pending messages of different devices and ensuring the sequential processing of multiple pending messages of the same device.

[0054] Furthermore, the device information includes at least:

[0055] Device type information, device serial number.

[0056] In some embodiments, Figure 2As shown, step S105 further includes:

[0057] Step S1051: Generate a character sequence according to the device type information and the device serial number;

[0058] Step S1052: Determine a first random number corresponding to the character sequence based on a preset hash function;

[0059] Step S1053: Determine the total number of partitions corresponding to the multiple forwarding queues;

[0060] Step S1054: Generate a second random number between 0 and the total number of partitions according to the first random number and the total number of partitions, and use the second random number as the query value.

[0061] Specifically, the device type information and the device serial number may be directly combined into a character sequence. For example, assuming that the device type information is ABCD and the device serial number is 1234, the character sequence may be ABCD-1234.

[0062] Specifically, the hash function can generate the first random number according to a preset bit value. For example, a 64-bit integer random number (ie, the first random number) is obtained by calculating through the hash function.

[0063] In some embodiments, step S106 further includes:

[0064] Based on the queue related information respectively corresponding to the multiple forwarding queues, determine the queue numbers respectively corresponding to the multiple forwarding queues and the number of partitions respectively corresponding to the multiple forwarding queues;

[0065] Determine the partition order of the multiple forwarding queues according to the queue numbers corresponding to the multiple forwarding queues respectively;

[0066] Determine the forwarding queue to which the partition corresponding to the query value belongs according to the partition order and the number of partitions corresponding to the multiple forwarding queues;

[0067] The forwarding queue to which the partition corresponding to the query value belongs is used as the target forwarding queue, and the partition corresponding to the query value is used as the partition in the target forwarding queue for processing the information to be processed.

[0068] Specifically, the hash function is calculated based on the first random number and the total number of partitions to obtain the second random number. For example, assuming that multiple forwarding queues are as shown in Table 1, the total number of partitions is 96, and therefore, the calculated second random number is a random number between 0 and 95. If the calculated second random number is 44, it can be known from querying Table 1 that the forwarding queue corresponding to the second random number 44 is numbered 2, and the queue partition number is 20.

[0069] In some embodiments, step S104 further includes:

[0070] Determine the application corresponding to the device information based on the pre-stored plurality of device information corresponding to the plurality of applications;

[0071] Identify multiple forwarding queues for the application.

[0072] Specifically, to-be-processed messages of different devices are processed through different forwarding queues.

[0073] The embodiment of the present application provides a message forwarding mechanism for to-be-processed messages of multiple devices by configuring respective forwarding queues of multiple devices corresponding to different applications through different application configurations.

[0074] In some embodiments, step S107 further includes:

[0075] Store the pending messages in the partition of the target forwarding queue;

[0076] Send pending messages to applications based on the partitions of the target forwarding queue.

[0077] In some embodiments, before step S101, the method further includes:

[0078] Obtain the device information and authentication signature to be verified sent by the target device;

[0079] Send the device information and the authentication signature to be verified to the preset server for verification;

[0080] Get the verification result sent by the server;

[0081] If the verification result is a prompt message indicating that the target device has passed the verification, the device information is registered.

[0082] Specifically, the gateway may register the device information locally in the gateway, or send it to a preset device registration platform to register it with the device registration platform.

[0083] Another embodiment of the present application provides a message processing device for an Internet of Things device, such as Figure 3 As shown, the apparatus includes: a message acquisition module 301, a device information determination module 302, an application determination module 303, a forwarding queue determination module 304, a query value determination module 305, a queue and partition determination module 306 and a message processing module 307.

[0084] The message acquisition module 301 is used to acquire a message to be processed for a target device;

[0085] The device information determination module 302 is used to determine the device information of the target device according to the information to be processed;

[0086] An application determination module 303, configured to determine a plurality of forwarding queues for a target device based on device information of the target device;

[0087] A forwarding queue determination module 304, configured to determine a plurality of forwarding queues for an application;

[0088] A query value determination module 305, for determining a query value based on a predetermined algorithm and device information;

[0089] A queue and partition determination module 306, configured to determine a target forwarding queue for a target device and a partition in the target forwarding queue for processing information to be processed according to the query value and queue related information corresponding to each of the plurality of forwarding queues;

[0090] The pending message processing module 307 is used to process the pending message according to the target forwarding queue and partition.

[0091] The embodiment of the present application obtains the pending message sent by the target device to determine the device information of the target device based on the pending message, and then determines the application to which the target device belongs based on the device information, thereby determining multiple forwarding queues for the application. This method of determining multiple forwarding queues by the application to which the target device belongs can not only associate different devices with the applications to which different devices belong, thereby achieving the purpose of managing multiple applications and multiple devices served by multiple applications at the same time, but also removes the limitation in the prior art that the same application can only use devices provided by a specified manufacturer, thereby improving the management efficiency of applications and devices. At the same time, by setting multiple forwarding queues for the same application, not only can the same It processes the messages of multiple devices belonging to the same application at the same time, and also plays a role in the timing of message processing; based on a predetermined algorithm and device information, a query value is determined, so as to determine the target forwarding queue for the target device and the partition in the target forwarding queue for processing the pending information according to the query value and the queue-related information corresponding to the multiple forwarding queues, so as to process the pending message according to the target forwarding queue and the partition, and the query value provides a basis for finding the target forwarding queue and the partition in the multiple forwarding queues to complete the processing of the pending message, so as to achieve the purpose of quickly processing the pending messages of different devices and ensuring the sequential processing of multiple pending messages of the same device.

[0092] Furthermore, the device information includes at least:

[0093] Device type information, device serial number.

[0094] Furthermore, the query value determination module includes:

[0095] The character determination submodule is used to generate a character sequence according to the device type information and the device serial number;

[0096] A first random number determination submodule, used to determine a first random number corresponding to a character sequence based on a preset hash function;

[0097] A total number of partitions determining module, used to determine the total number of partitions corresponding to multiple forwarding queues;

[0098] The second random number determination submodule is used to generate a second random number between 0 and the total number of partitions according to the first random number and the total number of partitions, and use the second random number as a query value.

[0099] Furthermore, the queue and partition determination module includes:

[0100] A queue number and total number of partitions determination submodule, used to determine queue numbers corresponding to the multiple forwarding queues and the number of partitions corresponding to the multiple forwarding queues based on queue related information corresponding to the multiple forwarding queues;

[0101] A partition order query submodule is used to determine the partition order of multiple forwarding queues according to the queue numbers corresponding to the multiple forwarding queues;

[0102] A forwarding queue determination submodule, used to determine the forwarding queue to which the partition corresponding to the query value belongs according to the partition order and the number of partitions corresponding to the multiple forwarding queues;

[0103] The forwarding queue partition determination submodule is used to use the forwarding queue to which the partition corresponding to the query value belongs as the target forwarding queue, and use the partition corresponding to the query value as the partition in the target forwarding queue for processing the information to be processed.

[0104] Furthermore, the queue and partition determination module includes:

[0105] An application determination submodule, used to determine the application corresponding to the device information based on a plurality of pre-stored device information corresponding to a plurality of applications;

[0106] The queue determination submodule is used to determine an application and multiple forwarding queues.

[0107] Furthermore, the message processing module to be processed includes:

[0108] A message storage submodule, used to store the to-be-processed messages in a partition of a target forwarding queue;

[0109] The message processing submodule is used to send the pending messages to the application according to the partition of the target forwarding queue.

[0110] Furthermore, before the step of obtaining the to-be-processed message sent by the target device, the message obtaining module further includes:

[0111] The device information acquisition submodule is used to obtain the device information and the authentication signature to be verified sent by the target device;

[0112] The device verification submodule is used to send the device information and the authentication signature to be verified to a preset server so that the server can verify it;

[0113] The verification result receiving submodule is used to receive the verification result sent by the server;

[0114] The device registration submodule is used to register the device information if the verification result is a prompt message indicating that the target device has passed the verification.

[0115] The message processing device for the Internet of Things device of this embodiment can execute the message processing method for the Internet of Things device provided in the embodiment of the present application. The implementation principle is similar and will not be repeated here.

[0116] Another embodiment of the present application provides a terminal, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned message processing method for an IoT device when executing the computer program.

[0117] Specifically, the processor may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0118] Specifically, the processor is connected to the memory via a bus, and the bus may include a path for transmitting information. The bus may be a PCI bus or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.

[0119] The memory can be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.

[0120] Optionally, the memory is used to store the code of the computer program for executing the solution of the present application, and the execution is controlled by the processor. The processor is used to execute the application program code stored in the memory to implement Figure 3 The illustrated embodiment provides actions of a message processing device for an Internet of Things device.

[0121] Another embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for executing the above-mentioned Figure 1 The message processing method for the IoT device is shown.

[0122] The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0123] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0124] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. A message processing method for an Internet of Things device, characterized in that: include: Get the pending information sent by the target device; Determining device information of the target device according to the information to be processed; Determining the application to which the target device belongs based on the device information of the target device; determining a plurality of forwarding queues for the application; Based on a predetermined algorithm and the device information, a query value is determined, the device information at least includes: device type information, device serial number, the step of determining the query value based on the predetermined algorithm and the device information includes: generating a character sequence according to the device type information and the device serial number; determining a first random number corresponding to the character sequence based on a preset hash function; determining the total number of partitions corresponding to the plurality of forwarding queues; generating a second random number between 0 and the total number of partitions according to the first random number and the total number of partitions, and using the second random number as the query value; Determine, according to the query value and queue related information respectively corresponding to the plurality of forwarding queues, a target forwarding queue for the target device and a partition in the target forwarding queue for processing the information to be processed; The to-be-processed information is processed according to the target forwarding queue and the partition.

2. The method according to claim 1, characterized in that The step of determining a target forwarding queue for the target device and a partition in the target forwarding queue for processing the information to be processed according to the query value and queue related information respectively corresponding to the plurality of forwarding queues comprises: Based on the queue related information respectively corresponding to the multiple forwarding queues, determine the queue numbers respectively corresponding to the multiple forwarding queues and the number of partitions respectively corresponding to the multiple forwarding queues; Determining a partition order of the plurality of forwarding queues according to queue numbers respectively corresponding to the plurality of forwarding queues; Determine the forwarding queue to which the partition corresponding to the query value belongs according to the partition order and the number of partitions corresponding to the plurality of forwarding queues; The forwarding queue to which the partition corresponding to the query value belongs is used as the target forwarding queue, and the partition corresponding to the query value is used as the partition in the target forwarding queue that processes the information to be processed.

3. The method according to claim 1, characterized in that The step of determining a plurality of forwarding queues for the application comprises: Determine the application corresponding to the device information based on the pre-stored plurality of device information corresponding to the plurality of applications; The application is determined, and a plurality of forwarding queues are determined.

4. The method according to claim 1, characterized in that: The step of processing the to-be-processed message according to the target forwarding queue and the partition comprises: storing the to-be-processed message in the partition of the target forwarding queue; The to-be-processed message is sent to the application according to the partition of the target forwarding queue.

5. The method according to claim 1, characterized in that Before the step of obtaining the to-be-processed message sent by the target device, the method further includes: Obtaining the device information and the authentication signature to be verified sent by the target device; Sending the device information and the authentication signature to be verified to a preset server so that the server can perform verification; Receiving a verification result sent by the server; If the verification result is prompt information that the target device has passed the verification, the device information is registered.

6. A message processing device for an Internet of Things device, characterized in that: include: A message acquisition module is used to obtain the pending information sent by the target device; A device information determination module, used to determine the device information of the target device according to the information to be processed; An application determination module, used to determine the application to which the target device belongs based on the device information of the target device; a forwarding queue determination module, used to determine a plurality of forwarding queues for the application; A query value determination module, used to determine the query value based on a predetermined algorithm and the device information; the device information at least includes device type information and device serial number, and the query value determination module includes: a character determination submodule, used to generate a character sequence according to the device type information and the device serial number; a first random number determination submodule, used to determine a first random number corresponding to the character sequence based on a preset hash function; a partition total number determination module, used to determine the partition total number corresponding to a plurality of forwarding queues; a second random number determination submodule, used to generate a second random number between 0 and the partition total number according to the first random number and the partition total number, and use the second random number as the query value; A queue and partition determination module, configured to determine a target forwarding queue for the target device and a partition in the target forwarding queue for processing the information to be processed according to the query value and queue related information respectively corresponding to the plurality of forwarding queues; The message processing module is used to process the to-be-processed information according to the target forwarding queue and the partition.

7. A terminal, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 5.

8. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Log storage method and device

    CN106055630A

  • Data synchronization method, device and system

    CN109739929A

  • Message processing method and device

    CN110851288A

  • Method for calling FPGA equipment by multi-service request process and related device

    CN110955535A

  • Information processing method and system and electronic equipment

    CN110968433A