An information pushing method, system, device, equipment and storage medium

By setting granular information subscription permissions for user information and using pre-bound numbers to query device information within the target device or space range, the problem of low efficiency of MQTT message server pushing information is solved, and more efficient information push and administrator permission configuration are achieved.

CN117768541BActive Publication Date: 2025-10-10GUANGDONG PHNIX ECO ENERGY SOLUTION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311816748.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2025-10-10
Estimated Expiration
2043-12-26

AI Technical Summary

Technical Problem

In the prior art, the MQTT message server is inefficient in pushing information, especially when there are many objects, and each object needs to be traversed in turn to determine whether the user has the information subscription permission.

Method used

By pre-setting the information subscription permissions of a granular range for each user information, including each device or all devices within the space range, and using the pre-bound number for query, the target device or device information push within the space range can be directly determined, reducing the number of traversals.

Benefits of technology

It improves the efficiency of information push, reduces the complexity of administrators configuring information subscription permissions, and improves the speed and efficiency of information push.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117768541B_ABST
    Figure CN117768541B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose an information pushing method, system, device, equipment and storage medium. In the embodiments of the present application, the granularity range of information subscription permission corresponding to each user information includes all devices in each device or a space range. When the information subscription permission corresponding to the user information is a space range, only the target device previously bound to the space range needs to be determined, and the target device information corresponding to the target device is pushed to the user terminal corresponding to the user information, without traversing each object to determine whether the user has the information subscription permission, thereby improving the information pushing efficiency and solving the technical problem of low information pushing efficiency of the MQTT message server in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular to an information push method, system, device, equipment, and storage medium. Background Art

[0002] MQTT (Message Queuing Telemetry Transport) is an Internet of Things transmission protocol developed by IBM. It uses a lightweight subscription / publishing model for message transmission. MQTT has been specially optimized for low-bandwidth, low-computing, and unstable network environments. It is suitable for message push targeting embedded smart terminals and mobile terminals, and can effectively save terminal power consumption and traffic. However, in the prior art, when using an MQTT message server for message push, users are generally required to set message information subscription permissions for each object. Therefore, when the MQTT message server pushes messages, it needs to query the message information subscription permissions of each object. When there are many objects, the MQTT message server needs to traverse each object in turn to determine whether the user has information subscription permissions, which seriously reduces the efficiency of information push.

[0003] In summary, the MQTT message server in the prior art has a technical problem of low information push efficiency when pushing information. Summary of the Invention

[0004] The embodiments of the present invention provide an information push method, system, device, equipment and storage medium, which solve the technical problem of low information push efficiency when the MQTT message server pushes information in the prior art.

[0005] In a first aspect, an embodiment of the present invention provides an information push method, comprising:

[0006] Receive the device information of each device pushed by the message parsing service in real time and save the device information;

[0007] In response to a connection request from a user terminal, connecting to the user terminal and acquiring user information of the user terminal;

[0008] In response to an information acquisition request from the user terminal, querying a database for information subscription rights corresponding to the user information; the information subscription rights are pre-stored in the database and updated in real time, and the information subscription rights for each user information include device information corresponding to devices in at least one granularity range, the granularity range including each device or all devices within a spatial range, all devices within the spatial range being pre-bound to a number corresponding to the spatial range, the spatial range being pre-divided, and each spatial range corresponding to a number;

[0009] When the granularity of the information subscription rights of the user information is per device, determining target devices for which the user terminal has information subscription rights according to the information subscription rights, determining target device information according to device information corresponding to the target device, and pushing the target device information to the user terminal;

[0010] When the granularity range of the information subscription rights of the user information is all devices belonging to a spatial range, the target spatial range in which the user terminal has the information subscription rights is determined according to the information subscription rights, the target device within the target spatial range is determined, the target device information is determined according to the device information corresponding to the target device, and the target device information is pushed to the user terminal.

[0011] In a second aspect, an embodiment of the present invention provides an information push system, including:

[0012] A front-end module, configured to provide an operation interface, and to set information subscription permissions in response to permission setting operations performed on the operation interface, and to synchronize the information subscription permissions to a database;

[0013] The message server is used to receive the device information of each device pushed by the message parsing service in real time and save the device information; respond to the connection request of the user terminal, connect to the user terminal and obtain the user information of the user terminal; respond to the information acquisition request of the user terminal, query the information subscription rights corresponding to the user information in the database; the information subscription rights are pre-stored in the database and updated in real time, and the information subscription rights of each user information include device information corresponding to devices of at least one granularity range, and the granularity range includes each device or all devices within a spatial range, and all devices under the spatial range are pre-bound to the number corresponding to the spatial range, and the spatial range is pre-bound. First, the information is divided, and each spatial range corresponds to a number; when the granularity range of the information subscription rights of the user information is each device, the target devices for which the user terminal has the information subscription rights are determined according to the information subscription rights, the target device information is determined according to the device information corresponding to the target device, and the target device information is pushed to the user terminal; when the granularity range of the information subscription rights of the user information is all devices belonging to a spatial range, the target spatial range for which the user terminal has the information subscription rights is determined according to the information subscription rights, the target devices within the target spatial range are determined, the target device information is determined according to the device information corresponding to the target device, and the target device information is pushed to the user terminal;

[0014] A message parsing module includes a message parsing service, which is used to communicate with the device, receive and parse messages sent by the device, obtain device information, and push the device information to the message server;

[0015] A user terminal is configured to send a connection request to the message server; after being connected to the message server, send an information acquisition request to the message server; and receive and visualize the target device information sent by the message server;

[0016] A database is used to store the information subscription rights.

[0017] In a third aspect, an embodiment of the present invention provides an information push device, including:

[0018] An information receiving module is used to receive the device information of each device pushed by the message parsing service in real time and save the device information;

[0019] a connection response module, configured to connect to the user terminal and obtain user information of the user terminal in response to a connection request from the user terminal;

[0020] A permission query module is configured to query a database for information subscription permissions corresponding to the user information in response to an information acquisition request from the user terminal; the information subscription permissions are pre-stored in the database and updated in real time, and the information subscription permissions for each user information include device information corresponding to devices in at least one granularity range, the granularity range including each device or all devices within a spatial range, all devices within the spatial range being pre-bound to a number corresponding to the spatial range, the spatial range being pre-divided, and each spatial range corresponding to a number;

[0021] a first information push module configured to, when the granularity of the information subscription rights of the user information is per device, determine, based on the information subscription rights, target devices for which the user terminal has information subscription rights, determine target device information based on device information corresponding to the target devices, and push the target device information to the user terminal;

[0022] The second information push module is used to determine the target spatial range in which the user terminal has information subscription rights according to the information subscription rights when the granularity range of the information subscription rights of the user information is all devices belonging to a spatial range, determine the target device within the target spatial range, determine the target device information according to the device information corresponding to the target device, and push the target device information to the user terminal.

[0023] In a fourth aspect, an embodiment of the present invention provides an information push device, the information push device including a processor and a memory;

[0024] The memory is used to store a computer program and transmit the computer program to the processor;

[0025] The processor is used to execute an information push method as described in the first aspect according to instructions in the computer program.

[0026] In a fifth aspect, an embodiment of the present invention provides a storage medium storing computer-executable instructions, which, when executed by a computer processor, are used to execute an information push method as described in the first aspect.

[0027] As described above, the embodiments of the present invention provide an information push method, system, apparatus, device and storage medium. In the embodiments of the present invention, the granularity range of the information subscription rights corresponding to each user information includes each device or all devices within a spatial range. When the information subscription rights corresponding to the user information are a spatial range, it is only necessary to determine the target device that is pre-bound to the spatial range, and push the target device information corresponding to the target device to the user terminal corresponding to the user information. There is no need to traverse each object in turn to determine whether the user has the information subscription rights, which improves the information push efficiency and solves the technical problem of low information push efficiency when the MQTT message server in the prior art pushes information. In addition, in the embodiments of the present invention, when the administrator sets the information subscription rights corresponding to the user information, he only needs to bind the number corresponding to the spatial range to the user information. There is no need to bind the devices within the spatial range to the user information one by one, which also improves the efficiency of the administrator in configuring the information subscription rights. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A flowchart of an information push method provided by an embodiment of the present invention.

[0029] Figure 2 A schematic diagram of a process for determining whether to push target device information to a user terminal is provided in an embodiment of the present invention.

[0030] Figure 3 A schematic diagram of a process for pushing new target device information and permission modification information to a user terminal provided by an embodiment of the present invention.

[0031] Figure 4 A schematic diagram of an interface for displaying permission modification information on a user terminal provided by an embodiment of the present invention.

[0032] Figure 5A schematic structural diagram of an information push system provided by an embodiment of the present invention.

[0033] Figure 6 A schematic diagram of the structure of another information push system provided by an embodiment of the present invention.

[0034] Figure 7 A schematic structural diagram of another information push device provided by an embodiment of the present invention.

[0035] Figure 8 A schematic structural diagram of another information push device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The following description and accompanying drawings sufficiently illustrate specific embodiments of the present application to enable those skilled in the art to practice them. The examples represent only possible variations. Unless expressly required, individual components and functions are optional, and the order of operations may vary. Portions and features of some embodiments may be included in or replace portions and features of other embodiments. The scope of the embodiments of the present application includes the entire scope of the claims, as well as all available equivalents of the claims. Herein, each embodiment may be referred to individually or collectively by the term "invention," which is merely for convenience and is not intended to automatically limit the scope of the application to any single invention or inventive concept if more than one invention is in fact disclosed. Herein, relational terms such as first and second, etc., are used solely to distinguish one entity or operation from another, and do not require or imply any actual relationship or order between these entities or operations. Furthermore, the terms "comprise," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, or apparatus comprising a set of elements includes not only those elements, but also other elements not explicitly listed. The various embodiments herein are described in a progressive manner, with each embodiment focusing on the differences from the other embodiments. Reference can be made to the common and similar parts between the various embodiments. For structures, products, etc. disclosed in the embodiments, the description is relatively simple because they correspond to the parts disclosed in the embodiments. For relevant parts, refer to the method description.

[0037] like Figure 1 As shown, Figure 1The present invention provides a flowchart of an information push method according to an embodiment of the present invention. The information push method according to an embodiment of the present invention can be executed by an information push device, which can be implemented by software and / or hardware. The information push device can be composed of two or more physical entities or a single physical entity. For example, the information push device can be a server or a host computer. In this embodiment, the information push device is described as a message server, and the message server is an MQTT message server. The information push method provided by the embodiment of the present invention includes the following steps:

[0038] Step 101: Receive the device information of each device pushed by the message parsing service in real time and save the device information.

[0039] In this embodiment, the MQTT message server pre-establishes a communication connection with the message parsing service, which then receives, in real time, the device information for each device pushed by the message parsing service. The message parsing service pre-establishes a communication connection with each device, receives and parses messages pushed by each device in real time, and obtains device information corresponding to each device. For example, this device information may include hardware information and the device's current status. After obtaining the device information, the message parsing service pushes the device information to the MQTT message server in real time. MQTT stores the device information for each device, either locally on the MQTT message server or in a database.

[0040] Step 102: In response to a connection request from the user terminal, connect to the user terminal and obtain user information of the user terminal.

[0041] In this embodiment, when a user needs to obtain device information, they can log in to their account through the application on the user terminal and control the user terminal to send a connection request to the MQTT message server through the application. The connection request is used to request a connection with the MQTT message server. After receiving the connection request, the MQTT message server responds to the connection request and establishes a communication connection with the user terminal that initiated the connection request. The MQTT message server then obtains the corresponding user information from the user terminal, that is, relevant information about the user currently using the user terminal. For example, the user information may be the user's account information.

[0042] Step 103: In response to the information acquisition request of the user terminal, query the database for information subscription rights corresponding to the user information; the information subscription rights are pre-stored in the database and updated in real time, and the information subscription rights of each user information include device information corresponding to devices in at least one granularity range, and the granularity range includes each device or all devices within a spatial range. All devices under the spatial range are pre-bound to the number corresponding to the spatial range, and the spatial range is pre-divided, and each spatial range corresponds to a number.

[0043] After the MQTT message server is connected to the user terminal, the user terminal can initiate an information acquisition request to the MQTT message server, where the information acquisition request is used to request the device information stored by the MQTT message server. After receiving the information acquisition request, the MQTT message server responds to the information acquisition request. First, the MQTT message server queries the database for the information subscription permissions corresponding to the user information on the user terminal. In this embodiment, the information subscription permissions corresponding to each user information are pre-set by the administrator and stored in the database, and the information subscription permissions are updated in real time based on the administrator's modifications.

[0044] It should be noted that, in this embodiment, the information subscription rights corresponding to the user information include device information corresponding to devices in at least one granularity range. The granularity range is used to characterize the number of devices to which the device information that can be obtained by the user terminal corresponding to the user information belongs. In this embodiment, the granularity range includes each device or all devices within a spatial range, wherein the spatial range can be divided in advance. For example, the administrator can divide a room or a house into a spatial range in advance, etc. The specific division method can be set according to actual needs, and this embodiment does not specifically limit it. After dividing a spatial range, the administrator needs to set a unique number for the spatial range, and bind all devices within the spatial range to the number corresponding to the spatial range. For example, when the spatial range is a residence, the device numbers of the television, air conditioner, water heater, washing machine, refrigerator and other equipment in the residence can be bound to the number of the spatial range, so that all devices within the spatial range can be found later according to the number of the spatial range.

[0045] When the granularity of the information subscription rights corresponding to user information is per device, the administrator can pre-set the information subscription rights for the user corresponding to the user information for each device, such as information subscription rights for air conditioner device information or television device information, and grant the corresponding information subscription rights to the user. When the granularity of the information subscription rights corresponding to user information is spatial, the administrator can pre-set the spatial scope for which the user corresponding to the user information has information subscription rights, such as information subscription rights for a residence or a classroom, and bind the user information to the spatial scope number, thereby granting the user information subscription rights for the device information corresponding to all devices within the spatial scope.

[0046] Step 104: When the granularity of the information subscription rights of the user information is per device, the target device for which the user terminal has information subscription rights is determined based on the information subscription rights, the target device information is determined based on the device information corresponding to the target device, and the target device information is pushed to the user terminal.

[0047] After the MQTT message server determines the information subscription rights corresponding to the user information, when the granularity of the information subscription rights of the user information is each device, the MQTT message server determines the target devices for which the user terminal has information subscription rights based on the information subscription rights, obtains the device information corresponding to the target device, and determines the target device information to be pushed based on the device information corresponding to the target device, and then pushes the target device information to the user terminal, which then visualizes the target device information, so that the user can view the target device information through the user terminal.

[0048] Step 105. When the granularity range of the information subscription rights of the user information is all devices belonging to a spatial range, determine the target spatial range in which the user terminal has the information subscription rights according to the information subscription rights, determine the target device within the target spatial range, determine the target device information according to the device information corresponding to the target device, and push the target device information to the user terminal.

[0049] When the MQTT message server determines that the granularity of the user's information subscription rights is a spatial range, the MQTT message server can determine the target spatial range for which the user terminal has information subscription rights based on the user's information subscription rights, and determine the bound target devices based on the target spatial range number, that is, all devices within the target spatial range. The MQTT message server then obtains the device information corresponding to the target device, determines the target device information to be pushed based on the device information corresponding to the target device, and further pushes the target device information to the user terminal for display.

[0050] The embodiment of the present application provides a kind of information push method, and the granularity range of information subscription right corresponding to each user information in the embodiment of the present application includes each device or all devices belonging to a space range.When the information subscription right corresponding to user information is a space range, only need to determine the target device that is bound in advance with the space range, and the target device information corresponding to target device is pushed to the user terminal corresponding to user information, it is not necessary to traverse each object in turn to determine whether the user has information subscription right, improve the efficiency of information push, solve the technical problem that the information push efficiency of MQTT message server is low in prior art when pushing information.In addition, in the embodiment of the present application, administrator only needs to bind the number corresponding to space range with user information when setting information subscription right corresponding to user information, without binding device in space range with user information one by one, also improve the efficiency of administrator to configure information subscription right.

[0051] On the basis of the above embodiment, the device information of each device pushed by the message parsing service in real time is received in step 101, including:

[0052] Step 1011, receive the login information sent by the message parsing service, verify according to the login information, and obtain the information push right corresponding to the login information after verification, the information push right is stored in local and is bound with the login information of different message parsing services.

[0053] In the embodiment, the message parsing service will send login information to the MQTT message server before pushing information to the MQTT message server, and the login information is used to log in to the MQTT message server, for example, the login information includes the login account and login password of the message parsing service.The MQTT message server verifies the login information after receiving the login information, and determines whether the login information is correct.In one embodiment, the login information of all message parsing services can be saved in the MySQL warehouse, and the MQTT message server matches the received login information with the login information in the MySQL warehouse after receiving the login information, and if it can be matched, the verification is passed, otherwise it cannot be verified.

[0054] If the verification is passed, the MQTT message server obtains the corresponding information push right according to the login information, and the information push right is the right to push different messages to the MQTT message server, and the information push right in the embodiment can be set by the administrator in advance and stored in the MQTT message server, and the login information of different message parsing services is bound with different information push rights.

[0055] Step 1012: Determine the first device information that the message parsing service can push based on the information push permission.

[0056] After obtaining the information push permission, the MQTT message server can determine the first device information that the message parsing service can push based on the push permission.

[0057] Step 1013: Receive the first device information pushed by the message parsing service.

[0058] After determining the first device information that can be pushed by the message parsing service, the MQTT message server only receives the first device information pushed by the message parsing service, and can ignore or reject other device information pushed by the message parsing service.

[0059] As described above, in the embodiment of the present invention, the information push device can only receive the first device information pushed by the message parsing service according to the preset information push authority, thereby avoiding receiving too much invalid information and occupying too many resources, thereby improving resource utilization.

[0060] Based on the above embodiment, the user information further includes a role type.

[0061] In this embodiment, the user information also includes a role type, where the role type is used to characterize the identity of the user corresponding to the user information. For example, the role type can be an administrator, visitor, or operation and maintenance personnel, etc. The role type is applied for when the user registers or can be assigned by the administrator.

[0062] In step 104 and step 105, the target device information is determined based on the device information corresponding to the target device, and the target device information is pushed to the user terminal, including:

[0063] Step 1051: Determine the role type based on the user information, and determine the permission level based on the role type.

[0064] In one embodiment, after obtaining the device information of the target device, the MQTT message server will not directly push the device message of the target device to the corresponding user terminal, but will further determine the role type corresponding to the user information based on the user information of the user terminal. After determining the role type, it is also necessary to further determine the permission level corresponding to the role type, where different role types correspond to different permission levels. For example, the administrator corresponds to the highest level of permission, corresponding to the first permission level; the operation and maintenance personnel have the second highest permission level, corresponding to the second permission level; the visitor has the lowest permission level, corresponding to the third permission level. In this embodiment, the permission level limits the content of the device information of each target device that can be obtained by different role types.

[0065] Step 1052, according to the permission level, target sub-device information of which the user terminal has information subscription permission is determined from the device information corresponding to the target device. The device information of one device includes multiple sub-device information.

[0066] After determining the permission level corresponding to the user information, the MQTT message server can determine the target sub-device information of which the user terminal corresponding to the user information has information subscription permission from the device information corresponding to the target device according to the permission level. In the embodiment, the device information of one device includes multiple sub-device information, for example, the sub-device information of the target device includes hardware information, state information, network connection information and device identification information. For the administrator, the administrator can obtain all the sub-device information of the target device, that is, the target sub-device information includes all the sub-device information. For the operation and maintenance personnel, the operation and maintenance personnel can obtain the sub-device information of the target device as the hardware information, the state information and the network connection information, that is, the target sub-device information includes the hardware information, the state information and the network connection information. For the visitor, the visitor can only obtain the sub-device information of the target device as the state information, that is, the target sub-device information only includes the state information.

[0067] Step 1053, the target sub-information is taken as the target device information and is pushed to the user terminal.

[0068] After determining the target sub-device information of which the user terminal has information subscription permission, the target sub-information is taken as the target device information and is pushed to the corresponding user terminal for display.

[0069] In the above embodiment, when the information pushing device pushes the device information to the user terminal, the role type corresponding to the user terminal is determined according to the user information, the corresponding permission level is determined according to the role type, and the target sub-information pushed to the user terminal is determined according to the permission level. In the embodiment, by configuring the role type corresponding to different user information, the device sub-information that can be obtained by different user information can be flexibly configured, the flexibility of configuring the user permission is further improved, and the information security is improved to avoid information leakage.

[0070] On the basis of the above embodiment, before the target sub-information is taken as the target device information and is pushed to the user terminal, the following steps are further included:

[0071] Step 1054, it is determined whether the permission level is within a preset permission level range, and the preset permission level range includes at least one permission level.

[0072] In one embodiment, after determining the target sub-information, before using the target sub-information as target device information and pushing it to the user terminal, it is also necessary to determine whether the permission level corresponding to the user information is within the preset permission level range. The preset permission level range includes at least one permission level. Exemplarily, in one embodiment, the preset permission level range can be set to include a third permission level, that is, if the role type corresponding to the user information is a visitor, then the permission level of the user information is within the preset permission level range.

[0073] Step 1055: If yes, send a verification message to the target user terminal corresponding to the target user information, where the target user information is user information corresponding to the role type with the target authority level.

[0074] If the permission level is within the preset permission level range, the MQTT message server also needs to send a verification message to the target user terminal corresponding to the target user information, where the target user information is the user information corresponding to the role type with the permission level of the target permission level. For example, in this embodiment, the target permission level can be set to the first permission level, that is, the verification message is sent to the target user terminal whose user information is administrator. In addition, in this embodiment, the verification message is used to inquire whether it is allowed to push the target device information to the user terminal corresponding to the permission level within the preset permission level range.

[0075] Step 1056: Determine whether to push the target device information to the user terminal based on the verification pass message fed back by the monitored target user terminal. The verification pass message is generated when the target user terminal determines to push the target device information to the user terminal.

[0076] After the MQTT message server sends a verification message to the target user terminal, the target user terminal will respond to the verification message, for example, the target user terminal will display a confirmation box locally, and the confirmation box allows the administrator to confirm whether to allow the target device information to be pushed to the user terminal. If the administrator confirms, the target user terminal determines to push the target device information to the user terminal and feedbacks a verification pass message to the MQTT message server. The MQTT message server can then determine whether to push the target device information to the user terminal based on the verification pass message it monitors. In one embodiment, the MQTT message server can determine whether to push the target device information to the user terminal based on the number of verification pass messages it monitors within a preset time period.

[0077] On the basis of the above embodiment, determining whether to push the target device information to the user terminal according to the verification pass message fed back by the monitored target user terminal includes:

[0078] Step 10561: When the number of target user terminals that monitor the feedback verification pass message within the first preset time period exceeds a preset ratio, determine to push the target device information to the user terminal.

[0079] In one embodiment, after sending a verification message to a target user terminal, if the number of target user terminals that have monitored feedback verification pass messages within a first preset time period exceeds a preset ratio among all target user terminals, it is determined that the target device information is pushed to the user terminal. The first preset time period can be set according to actual needs, for example, it can be set to 3 minutes or 5 minutes, etc., which is not specifically limited in this embodiment. The preset ratio can also be set according to actual needs, for example, the preset ratio can be set to 50%. If the number of target user terminals that have monitored feedback verification pass messages within the first preset time period exceeds 50% (not rounded to an integer) of the number of all target user terminals, it is determined that the target device information is pushed to the user terminal.

[0080] Step 10562: When the number of target user terminals that receive feedback verification pass messages within the first preset time period is less than a preset ratio and greater than zero, if device information has been pushed to the user terminal corresponding to the user information in the past, determine to push the target device information to the user terminal.

[0081] When the number of target user terminals that have monitored feedback verification pass messages within the first preset time period is less than a preset ratio and greater than zero, it can be determined whether device information has been pushed to the user terminal corresponding to the user information in the past, thereby determining whether the user information has been trusted in the past. If device information has been pushed to the user terminal corresponding to the user information in the past, it means that the user information is a trusted user, and it can be determined that the target device information will be pushed to the user terminal. In other cases, it can be determined not to push the target device information to the user terminal. In one embodiment, the process of determining whether to push the target device information to the user terminal is as follows: Figure 2 shown.

[0082] Based on the above embodiment, the following further aspects are included:

[0083] Receive the permission modification instruction sent by the target user terminal.

[0084] A first spatial range corresponding to target user information of a target user terminal is determined, and the granularity range of information subscription authority is determined to be within the first spatial range, and the first user information whose authority level is less than the target authority level.

[0085] Determine the first target user information pointed to by the permission modification instruction.

[0086] The information subscription authority corresponding to the first target user information is modified in the database.

[0087] In one embodiment, for the target user corresponding to the target user information with the target permission level, the target user terminal can also be used to send a permission modification instruction to the MQTT message server to modify the granularity of the information subscription permission to the information subscription permission of the user information with a lower permission level within the same spatial range. Specifically, after the target user modifies the information subscription permission of the user information with a lower permission level on the target user terminal, the target user terminal sends a permission modification instruction to the MQTT message server. When the MQTT message server receives the permission modification instruction sent by the target user terminal, the MQTT message server determines the first spatial range that has the information subscription permission for the target user information of the target user terminal. After determining the first spatial range, it further determines that the granularity of the information subscription permission is within the first spatial range, and the first user information with a permission level less than the target permission level.

[0088] After determining the first user information, the first target user information pointed to by the permission modification instruction is further determined in the first user information, and then the information subscription permission corresponding to the first target user information can be modified in the database according to the permission modification instruction. It can be understood that in this embodiment, the granularity range of the information subscription permission is that users with the target permission level within the same spatial range can only modify the information subscription permission of user information with a lower permission level within the spatial range, and cannot modify the information subscription permission of user information in other spatial ranges. In addition, when the granularity range of the information subscription permission corresponding to the target user information is each device, the target user terminal cannot modify the subscription permission of other user information, and the MQTT message server can reject the permission modification instruction.

[0089] Based on the above embodiment, the database updates the information subscription rights in real time according to the addition or deletion of the information subscription rights. The method further includes:

[0090] 106. When it is detected that the information subscription authority is modified, new target device information that the user terminal can subscribe to is re-determined based on the modified information subscription authority, and permission modification information is generated at the same time.

[0091] 107. Push the new target device information and permission modification information to the user terminal.

[0092] In another embodiment, after the MQTT message server pushes the target device information to the user terminal, the MQTT message server will monitor the changes in the information subscription permissions in the database in real time. If the administrator modifies the information subscription permissions of the user information corresponding to the user terminal in the database, such as adding or deleting the information subscription permissions, the database will update the information subscription permissions in real time, and the MQTT message server can detect the changes in the information subscription permissions in the database. At this time, the MQTT message server will re-determine the new target device information that the user terminal can subscribe to based on the modified information subscription permissions, and generate permission modification information at the same time, and push the new target device information and permission modification information to the user terminal for display, where the permission modification information is used to prompt the user using the user terminal that the information subscription permissions have been modified. The specific process is as follows: Figure 3 As shown, the user terminal displays the interface diagram of the permission modification information as shown in Figure 4 shown.

[0093] As described above, before pushing target device information to a user terminal, the embodiment of the present invention will send a verification message to the target user terminal if the user terminal's authority level is within the preset authority level range. If the number of target user terminals that receive feedback verification pass messages exceeds a preset ratio within a first preset time period, or if device information has been pushed to the user terminal corresponding to the user information in the past, the target device information will be pushed to the user terminal. The embodiment of the present invention determines the target device information to be pushed to the user terminal only after querying the user terminal corresponding to the role type of the target authority level, thereby further improving information security and preventing device information from being obtained by untrusted users.

[0094] The embodiment of the present invention also provides an information push system, such as Figure 5 As shown, Figure 5 This is a schematic diagram of the structure of an information push system provided by an embodiment of the present invention. The information push system provided by an embodiment of the present invention includes:

[0095] The front-end module 201 is used to provide an operation interface, and to set information subscription permissions in response to permission setting operations performed on the operation interface, and synchronize the information subscription permissions to the database 205 .

[0096] In this embodiment, the information push system includes a front-end module 201. The front-end module 201 is used to provide an operation interface for interaction with an administrator. The administrator can perform permission setting operations on the operation interface by interacting with the operation interface. The permission setting operation is used to set information subscription permissions corresponding to different user information. After detecting the permission setting operation performed on the operation interface, the front-end module 201 can respond to the permission setting operation, set the corresponding information subscription permissions, and synchronize the set information subscription permissions to the database 205.

[0097] The message server 202 is used to receive the device information of each device pushed by the message parsing service in real time and save the device information; respond to the connection request of the user terminal 204, connect to the user terminal 204 and obtain the user information of the user terminal 204; respond to the information acquisition request of the user terminal 204, query the information subscription rights corresponding to the user information in the database 205; the information subscription rights are pre-stored in the database 205 and updated in real time, and the information subscription rights of each user information include the device information corresponding to the device of at least one granularity range, and the granularity range includes each device or all devices within a spatial range. All devices within the spatial range are pre-bound to the number corresponding to the spatial range. The spatial range is divided in advance, and each spatial range corresponds to a number; when the granularity range of the information subscription permission of the user information is each device, the target device for which the user terminal 204 has the information subscription permission is determined according to the information subscription permission, the target device information is determined according to the device information corresponding to the target device, and the target device information is pushed to the user terminal 204; when the granularity range of the information subscription permission of the user information is all devices under a spatial range, the target spatial range for which the user terminal 204 has the information subscription permission is determined according to the information subscription permission, the target device within the target spatial range is determined, the target device information is determined according to the device information corresponding to the target device, and the target device information is pushed to the user terminal 204.

[0098] The message parsing module 203 includes a message parsing service, which is used to communicate with the device, receive and parse messages sent by the device, obtain device information, and push the device information to the message server 202.

[0099] In this embodiment, the message parsing module 203 includes a message parsing service, which is used to communicate with the device to receive messages uploaded by the device and parse the messages using the corresponding protocol to obtain device messages and push the device messages to the message server 202.

[0100] The user terminal 204 is used to send a connection request to the message server 202; after being connected to the message server 202, send an information acquisition request to the message server 202; and receive and visualize the target device information sent by the message server 202.

[0101] The information push system also includes a user terminal 204, which is a terminal used by each user. For example, the user terminal 204 can be a portable device such as a mobile phone, tablet computer, smartwatch, or laptop computer. In this embodiment, a user can send a connection request to the message server 202 via the user terminal 204 to request a connection with the message server 202. Once the user terminal 204 is connected to the message server 202, the user terminal 204 will further send an information acquisition request to the message server 202 to request target device information. After receiving the target device information from the message server 202, the user terminal 204 can locally visualize the target device for the user to view.

[0102] Database 205 is used to store information subscription rights.

[0103] In this embodiment, the database 205 is used to store the information subscription permissions set by the administrator.

[0104] Based on the above embodiment, the message server 202 is also used to receive login information sent by the message parsing service, perform verification based on the login information, and obtain information push permissions corresponding to the login information after the verification is passed. The information push permissions are pre-stored locally and bound to the login information of different message parsing services; determine the first device information that the message parsing service can push based on the information push permissions; and receive the first device information pushed by the message parsing service.

[0105] Based on the above embodiment, the user information also includes role type;

[0106] The message server 202 is specifically used to determine the role type based on user information and determine the authority level based on the role type; based on the authority level, determine the target sub-device information for which the user terminal 204 has information subscription authority in the device information corresponding to the target device, and the device information of a device includes multiple sub-device information; and push the target sub-information as the target device information to the user terminal 204.

[0107] Based on the above embodiment, the message server 202 is specifically configured to, before sending the target sub-information as target device information to the user terminal 204, further:

[0108] Determine whether the authority level is within the preset authority level range, which includes at least one authority level; if so, send a verification message to the target user terminal 204 corresponding to the target user information, where the target user information is the user information corresponding to the role type with the target authority level; based on the verification pass message fed back by the monitored target user terminal 204, determine whether to push the target device information to the user terminal 204, and the verification pass message is generated by the target user terminal 204 when it determines to push the target device information to the user terminal 204.

[0109] Based on the above embodiment, the message server 202 is specifically used to determine to push the target device information to the user terminal 204 when the number of target user terminals 204 that have listened to the feedback verification pass message within the first preset time period exceeds a preset ratio; when the number of target user terminals 204 that have listened to the feedback verification pass message within the first preset time period is less than the preset ratio and greater than zero, if device information has been pushed to the user terminal 204 corresponding to the user information in history, it is determined to push the target device information to the user terminal 204.

[0110] Based on the above embodiment, the message server 202 is also used to receive the permission modification instruction sent by the target user terminal; determine the first spatial range corresponding to the target user information of the target user terminal, determine the granularity range of the information subscription permission is within the first spatial range, and the permission level is less than the target permission level of the first user information; determine the first target user information pointed to by the permission modification instruction; modify the information subscription permission corresponding to the first target user information in the database.

[0111] Based on the above embodiment, the database is specifically used to update the information subscription rights in real time according to the addition or deletion of information subscription rights;

[0112] The message server 202 is also used to, when detecting that the information subscription authority has been modified, re-determine the new target device information that the user terminal can subscribe to based on the modified information subscription authority, and generate authority modification information at the same time; and push the new target device information and authority modification information to the user terminal.

[0113] Based on the above embodiment, the following further aspects are included:

[0114] The monitoring module 206 is used to monitor the running status, information subscription status and performance parameters of the message server 202.

[0115] In one embodiment, if Figure 6As shown, the information push system also includes a monitoring module 206, which is used to monitor the operating status, information subscription details, and performance parameters of the message server 202. The operating status includes the current operation of the message server 202, such as the operating mode and operating parameters of the message server 202. The information details include the current subscription status of each user terminal 204 to device messages. The performance parameters include various parameters related to the performance of the current message server 202. The monitoring module 206 monitors the message server 202 in real time and promptly issues an alarm and notifies the administrator when an anomaly occurs in the message server 202. In one embodiment, the monitoring module can be selected from the EMQX console.

[0116] Based on the above embodiment, the following further aspects are included:

[0117] The terminal service module 207 is used to respond to the login request of the user terminal 204, connect with the user terminal 204 and send a first token to the user terminal 204; and to receive the second token sent by the user terminal 204, and when the first token matches the second token, send a target token to the user terminal 204.

[0118] The user terminal 204 is also used to initiate a login request to the terminal service module 207, and after the terminal service module 207 is connected, it is used to receive the first token sent by the terminal service module 207 and feedback the first token to the terminal service module 207, and is used to receive the target token sent by the terminal service module 207 and send a connection request to the message server 202, where the connection request carries the target token.

[0119] The message server 202 is also used to connect with the user terminal 204 after authenticating the target token.

[0120] In this embodiment, Figure 6As shown, the information push system also includes a terminal service module 207. When the user terminal 204 needs to connect to the message server 202, the user terminal 204 needs to obtain a target token from the terminal service module 207 to prove the legitimacy of its identity. Specifically, the user terminal 204 first needs to initiate a login request to the terminal service module 207. The login request is used to request to log in to the terminal service module 207. After receiving the login request, the terminal service module 207 connects with the user terminal 204 and sends a first token to the user terminal 204. After receiving the first token, the user terminal 204 resends the first token to the terminal service module 207. The terminal service module 207 then receives the second token sent by the user terminal 204 and compares the first token with the second token. When the first token matches the second token, the identity authentication of the user terminal 204 is passed, and the terminal service module 207 then sends the target token to the user terminal 204. For example, the target token can be a JWTTOKEN.

[0121] After obtaining the target token, the user terminal carries the target token in the connection request and sends the target token to the message server. The message server receives the connection request and parses the target token in the connection request. It then authenticates the target token. If the authentication is successful, it connects to the user terminal. If the authentication fails, it does not connect to the user terminal. The terminal service module of the embodiment of the present invention can verify the identity of the user terminal by sending a first token to the user terminal, receiving a second token fed back by the user terminal, and matching the first token with the second token, thereby preventing untrusted user terminals from connecting to the message server and further improving the security of information.

[0122] In another embodiment, the information push system may be set up in a dual-node cluster manner to ensure the performance, accuracy, and timeliness of the MQTT message server and improve the stability of information transmission.

[0123] The embodiment of the present invention also provides an information push device, such as Figure 7 As shown, Figure 7 This is a schematic diagram of the structure of an information push device provided in an embodiment of the present invention. An information push device in an embodiment of the present invention includes:

[0124] The information receiving module 301 is used to receive the device information of each device pushed by the message parsing service in real time and save the device information.

[0125] The connection response module 302 is configured to respond to a connection request from a user terminal, connect to the user terminal, and obtain user information of the user terminal.

[0126] The permission query module 303 is used to query the information subscription permission corresponding to the user information in the database in response to the information acquisition request of the user terminal; the information subscription permission is pre-stored in the database and updated in real time, and the information subscription permission of each user information includes device information corresponding to devices of at least one granularity range, and the granularity range includes each device or all devices within a spatial range. All devices under the spatial range are pre-bound to the number corresponding to the spatial range, the spatial range is pre-divided, and each spatial range corresponds to a number.

[0127] The first information push module 304 is configured to, when the granularity of the user information subscription permission is per device, determine the target devices for which the user terminal has information subscription permission based on the information subscription permission, determine target device information based on device information corresponding to the target device, and push the target device information to the user terminal;

[0128] The second information push module 305 is used to determine the target spatial range in which the user terminal has information subscription rights according to the information subscription rights when the granularity range of the information subscription rights of the user information is all devices belonging to a spatial range, determine the target device within the target spatial range, determine the target device information according to the device information corresponding to the target device, and push the target device information to the user terminal.

[0129] Based on the above embodiment, the information receiving module 301 includes:

[0130] The login information verification submodule is used to receive the login information sent by the message parsing service, verify it based on the login information, and obtain the information push permission corresponding to the login information after the verification is passed. The information push permission is pre-stored locally and bound to the login information of different message parsing services.

[0131] The first device information determination submodule is used to determine the first device information that can be pushed by the message parsing service according to the information push authority.

[0132] The first device information receiving submodule is configured to receive the first device information pushed by the message parsing service.

[0133] Based on the above embodiment, the user information also includes the role type, and the first information push module 304 and the second information push module 305 both include:

[0134] The permission level determination submodule is used to determine the role type based on user information and determine the permission level based on the role type.

[0135] The target sub-device information determination submodule is used to determine the target sub-device information for which the user terminal has information subscription authority from the device information corresponding to the target device according to the authority level. The device information of a device includes multiple sub-device information.

[0136] The device information push submodule is used to push the target sub-information as the target device information to the user terminal.

[0137] Based on the above embodiment, the following further aspects are included:

[0138] The permission level determination module is used to determine whether the permission level is within a preset permission level range before the target sub-information is used as the target device information and pushed to the user terminal. The preset permission level range includes at least one permission level.

[0139] The verification message sending module is used to send a verification message to the target user terminal corresponding to the target user information if the authority level is within the preset authority level range. The target user information is user information corresponding to the role type with the target authority level.

[0140] The message monitoring module is used to determine whether to push the target device information to the user terminal based on the verification pass message fed back by the monitored target user terminal. The verification pass message is generated when the target user terminal determines to push the target device information to the user terminal.

[0141] Based on the above embodiment, the message monitoring module includes:

[0142] The first determining submodule is configured to determine to push target device information to the user terminal when the number of target user terminals that monitor feedback verification pass messages within a first preset time period exceeds a preset ratio.

[0143] The first determination submodule is used to determine to push the target device information to the user terminal if the number of target user terminals that monitor the feedback verification pass message within the first preset time period is less than a preset ratio and greater than zero, if device information has been pushed to the user terminal corresponding to the user information in the past.

[0144] Based on the above embodiment, the following further aspects are included:

[0145] A modification instruction receiving module is used to receive the permission modification instruction sent by the target user terminal;

[0146] A first user information determination module is configured to determine a first spatial range corresponding to target user information of a target user terminal, and determine first user information whose granularity range of information subscription authority is within the first spatial range and whose authority level is less than a target authority level;

[0147] A first target information determination module, configured to determine first target user information pointed to by the permission modification instruction;

[0148] The authority modification module is used to modify the information subscription authority corresponding to the first target user information in the database.

[0149] Based on the above embodiment, the database updates the information subscription rights in real time according to the addition or deletion of the information subscription rights, further comprising:

[0150] A modification detection module is used to, when detecting that the information subscription authority has been modified, re-determine the new target device information that the user terminal can subscribe to based on the modified information subscription authority, and generate authority modification information;

[0151] The modification information push module is used to push new target device information and permission modification information to the user terminal.

[0152] The information push apparatus provided in the embodiment of the present invention is included in the information push device and can be used to execute the information push method provided in the above embodiment, and has corresponding functions and beneficial effects.

[0153] It is worth noting that in the embodiment of the above-mentioned information push device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0154] This embodiment also provides an information push device, such as Figure 8 As shown, the information push device 40 includes a processor 400 and a memory 401;

[0155] The memory 401 is used to store the computer program 402 and transmit the computer program 402 to the processor 400;

[0156] The processor 400 is configured to execute the steps in the above-mentioned embodiment of the information pushing method according to the instructions in the computer program 402 .

[0157] For example, computer program 402 may be divided into one or more modules / units, one or more of which are stored in memory 401 and executed by processor 400 to implement the present application. One or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of computer program 402 in information push device 40.

[0158] The information push device 40 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The information push device 40 may include, but is not limited to, a processor 400 and a memory 401. Those skilled in the art will appreciate that Figure 8 It is merely an example of the information push device 40 and does not constitute a limitation on the information push device 40. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the information push device 40 may also include input and output devices, network access devices, buses, etc.

[0159] The processor 400 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0160] The memory 401 can be an internal storage unit of the information push device 40, such as a hard disk or memory of the information push device 40. The memory 401 can also be an external storage device of the information push device 40, such as a plug-in hard disk equipped on the information push device 40, a smart memory card (SMC), a secure digital (SD) card, a flash memory card, etc. Furthermore, the memory 401 can also include both the internal storage unit of the information push device 40 and an external storage device. The memory 401 is used to store computer programs and other programs and data required by the information push device 40. The memory 401 can also be used to temporarily store data that has been output or is about to be output.

[0161] Those skilled in the art will 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.

[0162] In the several embodiments provided in this application, 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 merely schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as 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 an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0163] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0164] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0165] 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, 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. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present invention. The aforementioned storage medium includes various media that can store computer programs, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0166] An embodiment of the present invention further provides a storage medium containing computer-executable instructions. When the computer-executable instructions are executed by a computer processor, the computer-executable instructions are used to perform an information push method. The method includes the following steps:

[0167] Receive the device information of each device pushed by the message parsing service in real time and save the device information;

[0168] In response to a connection request of the user terminal, the user terminal is connected and user information of the user terminal is acquired;

[0169] In response to an information acquisition request of the user terminal, information subscription rights corresponding to the user information are queried in the database; the information subscription rights are pre-stored in the database and are updated in real time, and the information subscription rights of each user information include device information corresponding to at least one granularity range of devices, the granularity range includes each device or all devices belonging to a space range, all devices belonging to the space range are pre-bound to a number corresponding to the space range, the space range is pre-divided, and each space range corresponds to a number;

[0170] When the granularity range of the information subscription rights of the user information is each device, the target device to which the user terminal has the information subscription rights is determined according to the information subscription rights, the target device information is determined according to the device information corresponding to the target device, and the target device information is pushed to the user terminal;

[0171] When the granularity range of the information subscription rights of the user information is all devices belonging to a space range, the target space range to which the user terminal has the information subscription rights is determined according to the information subscription rights, the target device in the target space range is determined, the target device information is determined according to the device information corresponding to the target device, and the target device information is pushed to the user terminal.

[0172] It should be noted that the above only describes the preferred embodiments of the present application and the technical principles applied. Those skilled in the art will understand that the embodiments of the present application are not limited to the specific embodiments described herein, and those skilled in the art can make various obvious changes, re-adjustments and substitutions without departing from the scope of the embodiments of the present application. Therefore, although the embodiments of the present application have been described in detail above, the embodiments of the present application are not limited to the above embodiments, and can include more other equivalent embodiments without departing from the concept of the embodiments of the present application, and the scope of the embodiments of the present application is determined by the scope of the appended claims.

Claims

1. An information push method, characterized in that: include: Receive the device information of each device pushed by the message parsing service in real time and save the device information; In response to a connection request from a user terminal, connecting to the user terminal and acquiring user information of the user terminal; In response to an information acquisition request from the user terminal, querying a database for information subscription rights corresponding to the user information; The information subscription rights are pre-stored in the database and updated in real time. The information subscription rights of each user information include device information corresponding to devices in at least one granularity range. The granularity range includes each device or all devices within a spatial range. All devices within the spatial range are pre-bound to the number corresponding to the spatial range. The spatial range is pre-divided, and each spatial range corresponds to a number. When the granularity of the information subscription rights of the user information is per device, determining target devices for which the user terminal has information subscription rights according to the information subscription rights, determining target device information according to device information corresponding to the target device, and pushing the target device information to the user terminal; When the granularity range of the information subscription permission of the user information is all devices belonging to a spatial range, determining a target spatial range for which the user terminal has information subscription permission based on the information subscription permission, determining a target device within the target spatial range, determining target device information based on device information corresponding to the target device, and pushing the target device information to the user terminal; Wherein, the user information also includes role type; The determining target device information according to device information corresponding to the target device, and pushing the target device information to the user terminal includes: Determine the role type according to the user information, and determine the authority level according to the role type; Determining, in the device information corresponding to the target device according to the permission level, target sub-device information for which the user terminal has information subscription permission, where the device information of one device includes information of multiple sub-devices; Pushing the target sub-device information as target device information to the user terminal; Before the target sub-device information is used as the target device information and pushed to the user terminal, the method further includes: determining whether the permission level is within a preset permission level range, the preset permission level range including at least one permission level; If so, sending a verification message to a target user terminal corresponding to the target user information, wherein the target user information is user information corresponding to a role type having an authority level of the target authority level; Determine whether to push the target device information to the user terminal based on the verification pass message fed back by the target user terminal monitored, and the verification pass message is generated when the target user terminal determines to push the target device information to the user terminal.

2. The information push method according to claim 1, wherein: The device information of each device pushed by the real-time reception message parsing service includes: Receive login information sent by the message parsing service, perform verification based on the login information, and obtain information push permissions corresponding to the login information after the verification is passed. The information push permissions are pre-stored locally and bound to the login information of different message parsing services; Determining, according to the information push permission, the first device information that the message parsing service can push; Receive the first device information pushed by the message parsing service.

3. The information push method according to claim 1, characterized in that: The determining whether to push the target device information to the user terminal according to the monitored verification pass message fed back by the target user terminal includes: When the number of target user terminals monitoring feedback of the verification pass message exceeds a preset ratio within a first preset time period, determining to push the target device information to the user terminals; When the number of target user terminals that feedback the verification pass message within the first preset time period is less than the preset ratio and greater than zero, if device information has been pushed to the user terminal corresponding to the user information in the past, it is determined to push the target device information to the user terminal.

4. The information push method according to claim 1, wherein: Also includes: Receiving a permission modification instruction sent by the target user terminal; Determining a first spatial range corresponding to target user information of the target user terminal, and determining first user information whose granularity range of the information subscription permission is within the first spatial range and whose permission level is less than the target permission level; Determining first target user information pointed to by the permission modification instruction; The information subscription authority corresponding to the first target user information is modified in the database.

5. The information push method according to claim 1, wherein: The database updates the information subscription rights in real time according to the addition or deletion of the information subscription rights, and the method further includes: When it is detected that the information subscription authority has been modified, re-determining new target device information that the user terminal can subscribe to based on the modified information subscription authority, and generating authority modification information; The new target device information and the permission modification information are pushed to the user terminal.

6. An information push system, used to execute the information push method according to any one of claims 1 to 5, characterized in that: include: A front-end module, configured to provide an operation interface, and to set information subscription permissions in response to permission setting operations performed on the operation interface, and to synchronize the information subscription permissions to a database; The message server is configured to receive the device information of each device pushed by the message parsing service in real time and store the device information; in response to a connection request from a user terminal, connect to the user terminal and obtain the user information of the user terminal; In response to an information acquisition request from the user terminal, querying a database for information subscription rights corresponding to the user information; The information subscription rights are pre-stored in the database and updated in real time. The information subscription rights of each user information include device information corresponding to devices in at least one granularity range, the granularity range includes each device or all devices within a spatial range, all devices within the spatial range are pre-bound to the number corresponding to the spatial range, the spatial range is pre-divided, and each spatial range corresponds to a number; when the granularity range of the information subscription rights of the user information is each device, the target device for which the user terminal has the information subscription right is determined according to the information subscription rights, the target device information is determined according to the device information corresponding to the target device, and the target device information is pushed to the user terminal; When the granularity range of the information subscription permission of the user information is all devices belonging to a spatial range, determining a target spatial range for which the user terminal has information subscription permission based on the information subscription permission, determining a target device within the target spatial range, determining target device information based on device information corresponding to the target device, and pushing the target device information to the user terminal; A message parsing module includes a message parsing service, which is used to communicate with the device, receive and parse messages sent by the device, obtain device information, and push the device information to the message server; A user terminal is used to send a connection request to the message server; After connecting to the message server, send an information acquisition request to the message server; and for receiving and visualizing target device information sent by the message server; A database is used to store the information subscription rights.

7. An information push system according to claim 6, characterized in that: The message server is further configured to receive login information sent by the message parsing service, perform verification based on the login information, and obtain information push permissions corresponding to the login information after the verification is passed. The information push permissions are pre-stored locally and bound to the login information of different message parsing services; Determine the first device information that can be pushed by the message parsing service according to the information push permission; and receive the first device information pushed by the message parsing service.

8. An information push system according to claim 6, characterized in that: The user information also includes role type; The message server is specifically used to determine the role type based on the user information, and determine the authority level based on the role type; based on the authority level, determine the target sub-device information of the user terminal that has information subscription authority in the device information corresponding to the target device, where the device information of one device includes multiple sub-device information; and use the target sub-device information as the target device information and push it to the user terminal.

9. An information push system according to claim 8, characterized in that: The message server is specifically configured to, before sending the target sub-device information as target device information to the user terminal, further: determining whether the permission level is within a preset permission level range, the preset permission level range including at least one permission level; and if so, sending a verification message to a target user terminal corresponding to target user information, the target user information being user information corresponding to a role type having a target permission level; Determine whether to push the target device information to the user terminal based on the verification pass message fed back by the target user terminal monitored, and the verification pass message is generated when the target user terminal determines to push the target device information to the user terminal.

10. An information push system according to claim 9, characterized in that: The message server is specifically used to determine that the target device information is pushed to the user terminal when the number of target user terminals that are monitored to feedback the verification pass message within a first preset time period exceeds a preset ratio; when the number of target user terminals that are monitored to feedback the verification pass message within the first preset time period is less than a preset ratio and greater than zero, if device information has been pushed to the user terminal corresponding to the user information in the past, it is determined that the target device information is pushed to the user terminal.

11. The information push system according to claim 9, characterized in that: The message server is further configured to receive a permission modification instruction sent by the target user terminal; determine a first spatial range corresponding to the target user information of the target user terminal, and determine that the granularity range of the information subscription permission is within the first spatial range and the first user information has a permission level less than the target permission level; Determine first target user information pointed to by the permission modification instruction; and modify the information subscription permission corresponding to the first target user information in the database.

12. The information push system according to claim 6, characterized in that: The database is specifically used to update the information subscription rights in real time according to the addition or deletion of the information subscription rights; The message server is further configured to, when detecting that the information subscription authority has been modified, re-determine new target device information that the user terminal can subscribe to based on the modified information subscription authority, and generate authority modification information; The new target device information and the permission modification information are pushed to the user terminal.

13. The information push system according to claim 6, characterized in that: Also includes: The monitoring module is used to monitor the running status, information subscription details and performance parameters of the message server.

14. The information push system according to claim 6, characterized in that: Also includes: a terminal service module, configured to connect to the user terminal and send a first token to the user terminal in response to a login request from the user terminal; and for receiving a second token sent by the user terminal, and sending a target token to the user terminal when the first token matches the second token; The user terminal is further configured to initiate the login request to the terminal service module, and after the terminal service module is connected, receive a first token sent by the terminal service module and feed the first token back to the terminal service module, and receive a target token sent by the terminal service module and send the connection request to the message server, wherein the connection request carries the target token; The message server is further configured to connect to the user terminal after authenticating the target token.

15. An information push device, characterized in that: include: An information receiving module is used to receive the device information of each device pushed by the message parsing service in real time and save the device information; a connection response module, configured to connect to the user terminal and obtain user information of the user terminal in response to a connection request from the user terminal; a rights query module, configured to query a database for information subscription rights corresponding to the user information in response to an information acquisition request from the user terminal; The information subscription rights are pre-stored in the database and updated in real time. The information subscription rights of each user information include device information corresponding to devices in at least one granularity range. The granularity range includes each device or all devices within a spatial range. All devices within the spatial range are pre-bound to the number corresponding to the spatial range. The spatial range is pre-divided, and each spatial range corresponds to a number. a first information push module configured to, when the granularity of the information subscription rights of the user information is per device, determine, based on the information subscription rights, target devices for which the user terminal has information subscription rights, determine target device information based on device information corresponding to the target devices, and push the target device information to the user terminal; a second information push module configured to, when the granularity range of the information subscription rights of the user information is all devices belonging to a spatial range, determine, based on the information subscription rights, a target spatial range for which the user terminal has information subscription rights, determine target devices within the target spatial range, determine target device information based on device information corresponding to the target devices, and push the target device information to the user terminal; The user information also includes a role type, and the first information push module and the second information push module both include: An authority level determination submodule, configured to determine the role type according to the user information, and determine the authority level according to the role type; a target sub-device information determination submodule, configured to determine, from the device information corresponding to the target device according to the permission level, target sub-device information for which the user terminal has information subscription permission, wherein the device information of one device includes information of multiple sub-devices; A device information push submodule, configured to push the target sub-device information as target device information to the user terminal; Among them, also include: an authority level determination module, configured to determine whether the authority level is within a preset authority level range before the target sub-device information is used as target device information and pushed to the user terminal, wherein the preset authority level range includes at least one authority level; A verification message sending module, configured to send a verification message to a target user terminal corresponding to target user information if the permission level is within a preset permission level range, wherein the target user information is user information corresponding to a role type having a target permission level; The message monitoring module is used to determine whether to push the target device information to the user terminal based on the verification pass message fed back by the target user terminal monitored. The verification pass message is generated when the target user terminal determines to push the target device information to the user terminal.

16. An information push device, characterized in that: The information push device includes a processor and a memory; The memory is used to store a computer program and transmit the computer program to the processor; The processor is configured to execute an information pushing method according to any one of claims 1 to 5 according to instructions in the computer program.

17. A storage medium storing computer executable instructions, characterized in that: When executed by a computer processor, the computer executable instructions are used to execute an information pushing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Message pushing method and device

    CN106296248A

  • In-vehicle information pushing method, device, equipment and system

    CN111935224A