CN114172944A - Message pushing method and system based on Internet of things access platform - Google Patents

Message pushing method and system based on Internet of things access platform Download PDF

Info

Publication number
CN114172944A
CN114172944A CN202111300639.8A CN202111300639A CN114172944A CN 114172944 A CN114172944 A CN 114172944A CN 202111300639 A CN202111300639 A CN 202111300639A CN 114172944 A CN114172944 A CN 114172944A
Authority
CN
China
Prior art keywords
internet
user equipment
access platform
things
state information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111300639.8A
Other languages
Chinese (zh)
Inventor
刘阳
赵国庆
董志勇
龚勇浩
许芳函
戴晓栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN202111300639.8A priority Critical patent/CN114172944A/en
Publication of CN114172944A publication Critical patent/CN114172944A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The invention discloses a message pushing method and system based on an access platform of the Internet of things, and belongs to the technical field of data processing. The method comprises the following steps: establishing network connection between user equipment and an access platform of the Internet of things; intercepting state information of the user equipment through a preset mechanism of a component in the Internet of things access platform; generating a push message according to the state information, and storing the push message to a cache and a database of an access platform of the Internet of things; when the user equipment needs to inquire the state information, the push message stored in a cache or a database in an access platform of the Internet of things is directly called, and the push message is displayed on a display interface of the user equipment. The invention optimizes the efficiency of the user equipment for acquiring the state information, shortens the request response time, reduces the occupation of excessive resources of the query state under a large amount of equipment, and solves the requirements of real-time state acquisition and pushing after mass equipment is accessed into a platform in the continuously developed Internet of things industry.

Description

Message pushing method and system based on Internet of things access platform
Technical Field
The invention relates to the technical field of data processing, in particular to a message pushing method and system based on an access platform of the Internet of things.
Background
The existing internet of things platform access equipment cannot directly acquire the running state, and needs to acquire the back-end service by calling an http interface which is open to the outside of the platform. Firstly, basic authentication is carried out, id and password are input, and after the authentication is passed, the current state of the equipment is obtained by calling a platform interface. However, after a large number of devices access the internet of things platform, if the running states of the devices are to be periodically acquired, a large number of requests call the same interface at the same time, which not only causes request response delay, but also causes misunderstanding for users because the returned state results may not be consistent with the actual results. Meanwhile, a large amount of server resources are consumed, so that normal service resources are used and even preemption fails, which is the biggest defect and problem of the existing method.
Disclosure of Invention
In order to solve the above problems, the invention provides a message pushing method based on an access platform of the internet of things, which comprises the following steps:
connecting user equipment for receiving messages to an Internet of things access platform, and establishing network connection between the user equipment and the Internet of things access platform after the Internet of things access platform successfully verifies the user equipment;
after the network connection is successful, transmitting the state information of the user equipment to the Internet of things access platform in real time, and intercepting the state information of the user equipment through a preset mechanism of a component in the Internet of things access platform;
generating a push message according to the state information, and storing the push message to a cache and a database of an access platform of the Internet of things;
when the user equipment needs to inquire the state information, the push message stored in a cache or a database in an access platform of the Internet of things is directly called, and the push message is displayed on a display interface of the user equipment.
Optionally, the preset mechanism is a hook mechanism.
Optionally, after receiving the push message, the user equipment disconnects the network connection between the user equipment and the internet of things access platform.
Optionally, the method further comprises: the method for pushing the subscription message of the user equipment through the access platform of the internet of things specifically comprises the following steps:
the method comprises the steps that a subscription theme sent by user equipment is received through an Internet of things access platform, after a background of the Internet of things access platform monitors the subscription theme of the user equipment, state information of the user equipment is published into the subscription theme, and after the background of the Internet of things access platform monitors the state information of the user equipment, the state information of the user equipment is taken out and returned to the user equipment.
The invention also provides a message pushing system based on the Internet of things access platform, which comprises the following components:
the network connection unit is used for connecting the user equipment to receive the message to the Internet of things access platform, and establishing network connection between the user equipment and the Internet of things access platform after the Internet of things access platform successfully verifies the user equipment;
the data transmission unit transmits the state information of the user equipment to the Internet of things access platform in real time after the network connection is successful, and intercepts the state information of the user equipment through a preset mechanism of a component in the Internet of things access platform;
the data storage unit generates a push message according to the state information and stores the push message to a cache and a database of an access platform of the Internet of things;
and the information pushing unit is used for directly calling the pushing information stored in the cache or the database in the access platform of the Internet of things when the user equipment needs to inquire the state information, and displaying the pushing information on the display interface of the user equipment.
Optionally, the preset mechanism is a hook mechanism.
Optionally, after receiving the push message, the user equipment disconnects the network connection between the user equipment and the internet of things access platform.
Optionally, the information pushing unit is further configured to: the method for pushing the subscription message of the user equipment through the access platform of the internet of things specifically comprises the following steps:
the method comprises the steps that a subscription theme sent by user equipment is received through an Internet of things access platform, after a background of the Internet of things access platform monitors the subscription theme of the user equipment, state information of the user equipment is published into the subscription theme, and after the background of the Internet of things access platform monitors the state information of the user equipment, the state information of the user equipment is taken out and returned to the user equipment.
The invention optimizes the efficiency of the user equipment for acquiring the state information, shortens the request response time, reduces the occupation of excessive resources of the query state under a large amount of equipment, and solves the requirements of real-time state acquisition and pushing after mass equipment is accessed into a platform in the continuously developed Internet of things industry.
Drawings
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a block diagram of the system of the present invention.
Detailed Description
The exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, however, the present invention may be embodied in many different forms and is not limited to the embodiments described herein, which are provided for complete and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, the same units/elements are denoted by the same reference numerals.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
The invention provides a message pushing method based on an access platform of the internet of things, which comprises the following steps of:
connecting user equipment for receiving messages to an Internet of things access platform, and establishing network connection between the user equipment and the Internet of things access platform after the Internet of things access platform successfully verifies the user equipment;
after the network connection is successful, transmitting the state information of the user equipment to the Internet of things access platform in real time, and intercepting the state information of the user equipment through a preset mechanism of a component in the Internet of things access platform;
generating a push message according to the state information, and storing the push message to a cache and a database of an access platform of the Internet of things;
when the user equipment needs to inquire the state information, the push message stored in a cache or a database in an access platform of the Internet of things is directly called, and the push message is displayed on a display interface of the user equipment.
Wherein the preset mechanism is a hook mechanism.
And after receiving the push message, the user equipment disconnects the network connection between the user equipment and the access platform of the Internet of things.
The invention can also push the subscription message of the user equipment through the access platform of the internet of things, and specifically comprises the following steps:
the method comprises the steps that a subscription theme sent by user equipment is received through an Internet of things access platform, after a background of the Internet of things access platform monitors the subscription theme of the user equipment, state information of the user equipment is published into the subscription theme, and after the background of the Internet of things access platform monitors the state information of the user equipment, the state information of the user equipment is taken out and returned to the user equipment.
The invention is further illustrated by the following examples:
the embodiment of the invention divides the message pushing into the pushing of the device state message and the pushing of the subscription message;
pushing the device state message: when the equipment is equal to the Internet of things access platform, connection/disconnection operation is performed, the module intercepts messages in the module in real time, and then the messages are processed and stored in a cache and a database. The user side display interface can call the state information stored in the cache and the database at any time, so that the user can obtain the latest device dynamic state in time.
The process is as follows:
step 1, a user starts to connect an access platform of the Internet of things by using equipment.
And 2, after the verification is passed, the equipment and the platform start to establish connection.
And 3, successfully establishing the connection, and transmitting the relevant information to the Internet of things platform by the equipment.
And 4, intercepting module data by the component through a hook mechanism to obtain equipment related information.
And 5, starting internal processing of the information data by the component to generate a required data structure.
And 6, storing/changing the cache and the database to ensure that the real-time stored data is consistent with the equipment state.
And 7, displaying the page by the user side, directly acquiring required data from the cache/database when required, and checking the real-time state of the equipment.
And 8, ending the use of the equipment and disconnecting the connection.
And 9, similarly, acquiring the latest state information of the equipment by the component through a hook mechanism, processing and storing the latest state information into a cache/database, and waiting for the display page of the user side to be inquired at any time.
And the equipment theme subscription message pushing is to subscribe related themes in order to call background services and complete required operations after the equipment is successfully connected. After the topic is subscribed successfully, when the device triggers a certain operation, the relevant information is sent to the topic. The back-end service receives the operation information by monitoring the theme, processes the operation information in the program, and returns the result to the user equipment, so that the user finishes the whole operation process.
The process is as follows:
step 1, the equipment is successfully accessed to the Internet of things platform to subscribe the theme.
And 2, the background service monitors the message theme.
And 3, executing operation at the front end by the user.
And step 4, the device publishes the message to the subscribed topic.
And 5, the background service monitors the message, takes out the message and enters a program to execute.
And 6, completing the execution and returning the result to the equipment.
According to the invention, the self-research and development component is used for actively acquiring the real-time information and subscription data accessed to the platform equipment of the Internet of things, processing and pushing the data to the cache, the database, the back-end service and the like, and the front end of the user can directly acquire the current equipment access state and the basic information in real time by inquiring the cache and directly acquire the data under the subscription theme for processing.
The invention further provides an internet of things access platform-based message pushing system 200, as shown in fig. 2, including:
the network connection unit 201 is configured to connect a user equipment to receive a message to an internet of things access platform, and establish a network connection between the user equipment and the internet of things access platform after the internet of things access platform successfully verifies the user equipment;
the data transmission unit 202 is configured to transmit the state information of the user equipment to the internet of things access platform in real time after the network connection is successful, and intercept the state information of the user equipment through a preset mechanism of a component in the internet of things access platform;
the data storage unit 203 generates a push message according to the state information, and stores the push message to a cache and a database of an access platform of the internet of things;
the information pushing unit 204 is configured to, when the user equipment needs to query the state information, directly call a push message stored in a cache or a database in the internet of things access platform, and display the push message on a display interface of the user equipment.
Wherein the preset mechanism is a hook mechanism.
And after receiving the push message, the user equipment disconnects the network connection between the user equipment and the access platform of the Internet of things.
Wherein, the information pushing unit 204 is further configured to: the method for pushing the subscription message of the user equipment through the access platform of the internet of things specifically comprises the following steps:
the method comprises the steps that a subscription theme sent by user equipment is received through an Internet of things access platform, after a background of the Internet of things access platform monitors the subscription theme of the user equipment, state information of the user equipment is published into the subscription theme, and after the background of the Internet of things access platform monitors the state information of the user equipment, the state information of the user equipment is taken out and returned to the user equipment.
The invention optimizes the efficiency of the user equipment for acquiring the state information, shortens the request response time, reduces the occupation of excessive resources of the query state under a large amount of equipment, and solves the requirements of real-time state acquisition and pushing after mass equipment is accessed into a platform in the continuously developed Internet of things industry.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The scheme in the embodiment of the application can be implemented by adopting various computer languages, such as object-oriented programming language Java and transliterated scripting language JavaScript.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (8)

1. A message pushing method based on an access platform of the Internet of things comprises the following steps:
connecting user equipment for receiving messages to an Internet of things access platform, and establishing network connection between the user equipment and the Internet of things access platform after the Internet of things access platform successfully verifies the user equipment;
after the network connection is successful, transmitting the state information of the user equipment to the Internet of things access platform in real time, and intercepting the state information of the user equipment through a preset mechanism of a component in the Internet of things access platform;
generating a push message according to the state information, and storing the push message to a cache and a database of an access platform of the Internet of things;
when the user equipment needs to inquire the state information, the push message stored in a cache or a database in an access platform of the Internet of things is directly called, and the push message is displayed on a display interface of the user equipment.
2. The method of claim 1, the preset mechanism being a hook mechanism.
3. The method of claim 1, wherein the network connection between the ue and the access platform of the internet of things is disconnected after the ue receives the push message.
4. The method of claim 1, further comprising: the method for pushing the subscription message of the user equipment through the access platform of the internet of things specifically comprises the following steps:
the method comprises the steps that a subscription theme sent by user equipment is received through an Internet of things access platform, after a background of the Internet of things access platform monitors the subscription theme of the user equipment, state information of the user equipment is published into the subscription theme, and after the background of the Internet of things access platform monitors the state information of the user equipment, the state information of the user equipment is taken out and returned to the user equipment.
5. A message pushing system based on an access platform of the Internet of things comprises:
the network connection unit is used for connecting the user equipment to receive the message to the Internet of things access platform, and establishing network connection between the user equipment and the Internet of things access platform after the Internet of things access platform successfully verifies the user equipment;
the data transmission unit transmits the state information of the user equipment to the Internet of things access platform in real time after the network connection is successful, and intercepts the state information of the user equipment through a preset mechanism of a component in the Internet of things access platform;
the data storage unit generates a push message according to the state information and stores the push message to a cache and a database of an access platform of the Internet of things;
and the information pushing unit is used for directly calling the pushing information stored in the cache or the database in the access platform of the Internet of things when the user equipment needs to inquire the state information, and displaying the pushing information on the display interface of the user equipment.
6. The system of claim 5, the preset mechanism being a hook mechanism.
7. The system of claim 5, wherein the network connection between the UE and the IOT access platform is disconnected after the UE receives the push message.
8. The system of claim 5, the information push unit further to: the method for pushing the subscription message of the user equipment through the access platform of the internet of things specifically comprises the following steps:
the method comprises the steps that a subscription theme sent by user equipment is received through an Internet of things access platform, after a background of the Internet of things access platform monitors the subscription theme of the user equipment, state information of the user equipment is published into the subscription theme, and after the background of the Internet of things access platform monitors the state information of the user equipment, the state information of the user equipment is taken out and returned to the user equipment.
CN202111300639.8A 2021-11-04 2021-11-04 Message pushing method and system based on Internet of things access platform Pending CN114172944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111300639.8A CN114172944A (en) 2021-11-04 2021-11-04 Message pushing method and system based on Internet of things access platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111300639.8A CN114172944A (en) 2021-11-04 2021-11-04 Message pushing method and system based on Internet of things access platform

Publications (1)

Publication Number Publication Date
CN114172944A true CN114172944A (en) 2022-03-11

Family

ID=80478026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111300639.8A Pending CN114172944A (en) 2021-11-04 2021-11-04 Message pushing method and system based on Internet of things access platform

Country Status (1)

Country Link
CN (1) CN114172944A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282470A1 (en) * 2013-03-13 2014-09-18 Arynga Inc. Remote transfer of electronic images to a vehicle
US20170063566A1 (en) * 2011-10-04 2017-03-02 Electro Industries/Gauge Tech Internet of things (iot) intelligent electronic devices, systems and methods
CN109525593A (en) * 2018-12-20 2019-03-26 中科曙光国际信息产业有限公司 A kind of pair of hadoop big data platform concentrates security management and control system and method
US20200412708A1 (en) * 2019-06-28 2020-12-31 Slack Technologies, Inc. Link protocol agents for inter-application communications
CN112559219A (en) * 2020-12-22 2021-03-26 广州技象科技有限公司 Internet of things offline message management method, device, equipment and storage medium
CN113014622A (en) * 2021-02-02 2021-06-22 深圳市显控科技股份有限公司 Method and system for accessing Internet of things platform, Internet of things equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170063566A1 (en) * 2011-10-04 2017-03-02 Electro Industries/Gauge Tech Internet of things (iot) intelligent electronic devices, systems and methods
US20140282470A1 (en) * 2013-03-13 2014-09-18 Arynga Inc. Remote transfer of electronic images to a vehicle
CN109525593A (en) * 2018-12-20 2019-03-26 中科曙光国际信息产业有限公司 A kind of pair of hadoop big data platform concentrates security management and control system and method
US20200412708A1 (en) * 2019-06-28 2020-12-31 Slack Technologies, Inc. Link protocol agents for inter-application communications
CN112559219A (en) * 2020-12-22 2021-03-26 广州技象科技有限公司 Internet of things offline message management method, device, equipment and storage medium
CN113014622A (en) * 2021-02-02 2021-06-22 深圳市显控科技股份有限公司 Method and system for accessing Internet of things platform, Internet of things equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘峰 等: "基于消息中间件及 MongoDB 的物联网应用 服务平台", 《计算机系统应用》, pages 1 - 3 *

Similar Documents

Publication Publication Date Title
CN109376088B (en) Automatic test system and automatic test method
CN110968331B (en) Method and device for running application program
CN110377440B (en) Information processing method and device
CN109218041B (en) Request processing method and device for server system
CN111008032A (en) Page data updating method and device
CN105635124A (en) Flow control method and device
CN109194706B (en) Network resource dial testing method and terminal
CN113342503B (en) Real-time progress feedback method, device, equipment and storage medium
CN111698281B (en) Resource downloading method and device, electronic equipment and storage medium
CN109471713B (en) Method and device for inquiring information
CN109327530B (en) Information processing method, device, electronic equipment and storage medium
CN114172944A (en) Message pushing method and system based on Internet of things access platform
CN114610446B (en) Method, device and system for automatically injecting probe
CN113691618B (en) Message notification method, device, message center and storage medium
CN111338928A (en) Chrome-based browser testing method and device
CN110545296A (en) Log data acquisition method, device and equipment
CN113434384B (en) Pressure testing method and device
CN110941805B (en) Identity authentication method and device
EP2477380A1 (en) Apparatus and method for providing and executing content
CN110769053B (en) Data pushing method, system and storage medium
CN110417919B (en) Traffic hijacking method and device
CN106453573A (en) Method and system for processing CGI request in HTTP server
CN112714181A (en) Data transmission method and device
CN112579447A (en) Browser testing method and device
CN104978199A (en) Plug-in application method and device used for multiple browsers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination