CN111131277B - Data pushing method and system - Google Patents

Data pushing method and system Download PDF

Info

Publication number
CN111131277B
CN111131277B CN201911380766.6A CN201911380766A CN111131277B CN 111131277 B CN111131277 B CN 111131277B CN 201911380766 A CN201911380766 A CN 201911380766A CN 111131277 B CN111131277 B CN 111131277B
Authority
CN
China
Prior art keywords
data
user datagram
protocol
request
datagram protocol
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.)
Active
Application number
CN201911380766.6A
Other languages
Chinese (zh)
Other versions
CN111131277A (en
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.)
Shenzhen Super Box Intelligent Technology Co ltd
Original Assignee
Shenzhen Super Box Intelligent Technology Co ltd
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 Shenzhen Super Box Intelligent Technology Co ltd filed Critical Shenzhen Super Box Intelligent Technology Co ltd
Priority to CN201911380766.6A priority Critical patent/CN111131277B/en
Publication of CN111131277A publication Critical patent/CN111131277A/en
Application granted granted Critical
Publication of CN111131277B publication Critical patent/CN111131277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The invention relates to a data pushing method and a data pushing system. The method comprises the following steps: acquiring a user datagram protocol heartbeat of an online terminal; when data needs to be pushed, determining a user datagram protocol command; sending the user datagram protocol command to the online terminal according to the unique identification code of the online terminal; acquiring a request response protocol request of the online terminal; the request response protocol request comprises the number of the data and an instruction for downloading the data; determining a request response protocol response according to the request response protocol request; and pushing the request response protocol response to the online terminal. The data pushing method and the data pushing system provided by the invention solve the problems of low data pushing safety and untimely pushing in the prior art.

Description

Data pushing method and system
Technical Field
The present invention relates to the field of data communication, and in particular, to a data pushing method and system.
Background
With the development of internet technology, especially the popularization of existing network communication, a wide range of mobile or fixed devices have completed interconnection. However, the interconnection and intercommunication of devices also bring about a lot of security problems and also have a problem of untimely message transmission. Taking the existing intelligent letter bag box based on the internet of things technology as an example, the arrival notice of related parcels and letters is ensured to be sent to a mobile phone of a user in time, or a box in a certain place is opened in time and remotely, and the information pushing and sending method and the system all involve data pushing. In the prior art, generally, an HTTP protocol is used for pushing data to realize the pushing of terminal data by a server, but the state of the terminal cannot be accurately obtained in the pushing process, so that the data cannot be pushed to the terminal in time. Moreover, in the interconnection and intercommunication between a plurality of terminals and a server, the interference of the push data can be caused, and the insecurity of the push data can be caused. Therefore, the prior art cannot ensure the safety of pushing data and the timeliness of pushing data.
Disclosure of Invention
The invention aims to provide a data pushing method and a data pushing system, and solves the problems of low data pushing safety and untimely pushing in the prior art.
In order to achieve the purpose, the invention provides the following scheme:
a method of data push, comprising:
acquiring a user datagram protocol heartbeat of an online terminal; the user datagram protocol heartbeat comprises a unique identification code of the online terminal;
when data needs to be pushed, determining a user datagram protocol command; the user datagram protocol command comprises the number of the data;
sending the user datagram protocol command to the online terminal according to the unique identification code of the online terminal;
acquiring a request response protocol request of the online terminal; the request response protocol request comprises the number of the data and an instruction for downloading the data;
determining a request response protocol response according to the request response protocol request;
and pushing the request response protocol response to the online terminal.
Optionally, the interval for acquiring the user datagram protocol heartbeat is 30 s.
Optionally, when there is data to be pushed, determining a user datagram protocol command specifically includes:
numbering the data;
and determining the user datagram protocol command according to the number.
Optionally, the determining a request response protocol response according to the request response protocol request specifically includes:
analyzing the request response protocol request and determining the number;
determining data corresponding to the number according to the number;
and determining the user datagram protocol response according to the data corresponding to the serial number.
A data push system, comprising:
the system comprises a user datagram protocol heartbeat acquisition module, a user datagram protocol heartbeat acquisition module and a user datagram protocol heartbeat acquisition module, wherein the user datagram protocol heartbeat acquisition module is used for acquiring the user datagram protocol heartbeat of an online terminal; the user datagram protocol heartbeat comprises a unique identification code of the online terminal;
the device comprises a user datagram protocol command determining module, a processing module and a processing module, wherein the user datagram protocol command determining module is used for determining a user datagram protocol command when data needs to be pushed; the user datagram protocol command comprises the number of the data;
the user datagram protocol command sending module is used for sending the user datagram protocol command to the online terminal according to the unique identification code of the online terminal;
a request response protocol request acquisition module for acquiring the request response protocol request of the online terminal; the request response protocol request comprises the number of the data and an instruction for downloading the data;
a request response protocol response determining module for determining a request response protocol response according to the request response protocol request;
and the request response protocol response pushing module is used for pushing the request response protocol response to the online terminal.
Optionally, the interval for acquiring the user datagram protocol heartbeat is 30 s.
Optionally, the user datagram protocol command determining module specifically includes:
the data numbering unit is used for numbering the data;
and the user datagram protocol command determining unit is used for determining the user datagram protocol command according to the serial number.
Optionally, the request response protocol response determining module specifically includes:
a number determining unit, configured to analyze the request response protocol request and determine the number;
the data determining unit corresponding to the number is used for determining the data corresponding to the number according to the number;
and the request response protocol response determining unit is used for determining the user datagram protocol response according to the data corresponding to the serial number.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the data push method and the system combine the user datagram protocol and the request response protocol to realize data push, namely, the user datagram protocol is utilized to determine the terminal equipment as an online terminal, and communication is established and an instruction is sent; and then, the request response protocol is utilized to execute the specific instruction, and the terminal acquires the required data, thereby realizing the pushing of the data. The problems that the state of the terminal cannot be accurately acquired, data cannot be timely pushed to the terminal and data pushing between terminals is unsafe are solved, and the safety and timeliness of data pushing are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a data pushing method according to the present invention;
fig. 2 is a schematic structural diagram of a data pushing system provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide a data pushing method and a data pushing system, and solves the problems of low data pushing safety and untimely pushing in the prior art.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Fig. 1 is a schematic flow chart of a data pushing method provided by the present invention, and as shown in fig. 1, the data pushing method provided by the present invention includes:
s101, acquiring a user datagram protocol heartbeat of an online terminal; the user datagram protocol heartbeat includes the unique identification code of the online terminal.
The interval for acquiring the user datagram protocol heartbeat is 30 s.
And the online terminal sends a user datagram protocol heartbeat every 30s, and after the server acquires the user datagram protocol heartbeat, the server stores the unique identifier of the online terminal in the user datagram protocol heartbeat.
When the server 90s does not receive the user datagram protocol heartbeat of the online terminal, the state of the online terminal is updated to be offline, and when data is pushed, the server cannot push the data to the offline terminal.
S102, when data is to be pushed, determining a user datagram protocol command; the user datagram protocol command includes a number of the data. The data is encrypted using JSON format instructions and BASE 64. The data pushed by the server comprises characters, pictures and sound pushed to the terminal (mobile phone), and further message webpage information. The data realizes internet of things communication and other network communication scenes.
S102 specifically comprises the following steps:
and numbering the data. The number is a unique identification number of the data.
And determining the user datagram protocol command according to the serial number.
S103, sending the user datagram protocol command to the online terminal according to the unique identification code of the online terminal.
S104, acquiring a request response protocol request of the online terminal; the request response protocol request includes a number of the data and an instruction to download the data.
And S105, determining a request response protocol response according to the request response protocol request.
S105 specifically comprises the following steps:
analyzing the request response protocol request and determining the number;
determining data corresponding to the number according to the number;
and determining the user datagram protocol response according to the data corresponding to the serial number.
S106, pushing the request response protocol response to the online terminal.
Fig. 2 is a schematic structural diagram of a data pushing system provided by the present invention, and as shown in fig. 2, the data pushing system provided by the present invention includes: the system comprises a user datagram protocol heartbeat acquisition module 201, a user datagram protocol command determination module 202, a user datagram protocol command sending module 203, a request response protocol request acquisition module 204, a request response protocol response determination module 205 and a request response protocol response pushing module 206.
The user datagram protocol heartbeat obtaining module 201 is used for obtaining a user datagram protocol heartbeat of an online terminal; the user datagram protocol heartbeat includes the unique identification code of the online terminal.
The user datagram protocol command determining module 202 is configured to determine a user datagram protocol command when there is data to be pushed; the user datagram protocol command includes a number of the data.
The user datagram protocol command sending module 203 is configured to send the user datagram protocol command to the online terminal according to the unique identification code of the online terminal.
The request response protocol request obtaining module 204 is configured to obtain a request response protocol request of the online terminal; the request response protocol request includes a number of the data and an instruction to download the data.
The request response protocol reply determination module 205 is configured to determine a request response protocol reply according to the request response protocol request.
The request response protocol response pushing module 206 is configured to push the request response protocol response to the online terminal.
The interval for acquiring the user datagram protocol heartbeat is 30 s.
The user datagram protocol command determining module 202 specifically includes: a data numbering unit and a user datagram protocol command determining unit.
The data numbering unit is used for numbering the data.
And the user datagram protocol command determining unit is used for determining the user datagram protocol command according to the serial number.
The request response protocol response determining module 205 specifically includes: the device comprises a number determining unit, a data determining unit corresponding to the number and a request response protocol response determining unit.
A number determining unit, configured to analyze the request response protocol request and determine the number;
the data determining unit corresponding to the number is used for determining the data corresponding to the number according to the number;
and the request response protocol response determining unit is used for determining the request response protocol response according to the data corresponding to the number.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (7)

1. A data pushing method, comprising:
acquiring a user datagram protocol heartbeat of an online terminal; the user datagram protocol heartbeat comprises a unique identification code of the online terminal;
when data needs to be pushed, determining a user datagram protocol command; the user datagram protocol command comprises the number of the data; the method specifically comprises the following steps: numbering the data; determining the user datagram protocol command according to the serial number;
sending the user datagram protocol command to the online terminal according to the unique identification code of the online terminal;
acquiring a request response protocol request of the online terminal; the request response protocol request comprises the number of the data and an instruction for downloading the data;
determining a request response protocol response according to the request response protocol request;
and pushing the request response protocol response to the online terminal.
2. A data pushing method as claimed in claim 1, wherein the interval for acquiring the user datagram protocol heartbeat is 30 s.
3. The method according to claim 1, wherein the determining a request response protocol reply according to the request response protocol request specifically includes:
analyzing the request response protocol request and determining the number;
determining data corresponding to the number according to the number;
and determining the user datagram protocol response according to the data corresponding to the serial number.
4. A data push system, comprising:
the system comprises a user datagram protocol heartbeat acquisition module, a user datagram protocol heartbeat acquisition module and a user datagram protocol heartbeat acquisition module, wherein the user datagram protocol heartbeat acquisition module is used for acquiring the user datagram protocol heartbeat of an online terminal; the user datagram protocol heartbeat comprises a unique identification code of the online terminal;
the user datagram protocol command determining module is used for determining a user datagram protocol command when data needs to be pushed; the user datagram protocol command comprises the number of the data; the method specifically comprises the following steps: numbering the data; determining the user datagram protocol command according to the serial number;
the user datagram protocol command sending module is used for sending the user datagram protocol command to the online terminal according to the unique identification code of the online terminal;
a request response protocol request acquisition module for acquiring the request response protocol request of the online terminal; the request response protocol request comprises the number of the data and an instruction for downloading the data;
a request response protocol response determining module, configured to determine a request response protocol response according to the request response protocol request;
and the request response protocol response pushing module is used for pushing the request response protocol response to the online terminal.
5. A data push system according to claim 4, wherein said interval for acquiring said user datagram protocol heartbeat is 30 s.
6. The data push system of claim 4, wherein the user datagram protocol command determination module specifically comprises:
a data numbering unit for numbering the data;
and the user datagram protocol command determining unit is used for determining the user datagram protocol command according to the number.
7. The data push system according to claim 4, wherein the request response protocol reply determining module specifically includes:
a number determining unit, configured to analyze the request response protocol request and determine the number;
the data determining unit corresponding to the number is used for determining the data corresponding to the number according to the number;
and the request response protocol response determining unit is used for determining the user datagram protocol response according to the data corresponding to the serial number.
CN201911380766.6A 2019-12-27 2019-12-27 Data pushing method and system Active CN111131277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911380766.6A CN111131277B (en) 2019-12-27 2019-12-27 Data pushing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911380766.6A CN111131277B (en) 2019-12-27 2019-12-27 Data pushing method and system

Publications (2)

Publication Number Publication Date
CN111131277A CN111131277A (en) 2020-05-08
CN111131277B true CN111131277B (en) 2022-07-05

Family

ID=70504527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911380766.6A Active CN111131277B (en) 2019-12-27 2019-12-27 Data pushing method and system

Country Status (1)

Country Link
CN (1) CN111131277B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458367A (en) * 2013-09-25 2013-12-18 江苏智联天地科技有限公司 Message safety pushing method and device based on optimization wireless protocol
KR20140032542A (en) * 2012-08-30 2014-03-17 삼성전자주식회사 A method and apparatus for determining heartbeat period of push service in wireless network
CN104717283A (en) * 2015-02-13 2015-06-17 腾讯科技(深圳)有限公司 File downloading control method, terminal and logic processing server
CN108881354A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of pushed information storage method, device, server and computer storage medium
CN108881361A (en) * 2017-12-26 2018-11-23 北京视联动力国际信息技术有限公司 A kind of data push method and device based on view networking

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323205A (en) * 2014-05-30 2016-02-10 中兴通讯股份有限公司 Message pushing processing method, message pushing processing device, pushing server and application server
CN104581220B (en) * 2014-12-24 2020-05-08 深圳市同洲电子股份有限公司 Data pushing method, data pushing system and data pushing interaction system
CN107645477A (en) * 2016-07-22 2018-01-30 中兴通讯股份有限公司 IPTV multi-screen interaction methods, terminal and IPTV multi-screen gateways

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140032542A (en) * 2012-08-30 2014-03-17 삼성전자주식회사 A method and apparatus for determining heartbeat period of push service in wireless network
CN103458367A (en) * 2013-09-25 2013-12-18 江苏智联天地科技有限公司 Message safety pushing method and device based on optimization wireless protocol
CN104717283A (en) * 2015-02-13 2015-06-17 腾讯科技(深圳)有限公司 File downloading control method, terminal and logic processing server
CN108881354A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of pushed information storage method, device, server and computer storage medium
CN108881361A (en) * 2017-12-26 2018-11-23 北京视联动力国际信息技术有限公司 A kind of data push method and device based on view networking

Also Published As

Publication number Publication date
CN111131277A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN108965484B (en) Internet of things data transmission method, system and terminal
CN108712485B (en) Resource subscription method and device for Internet of things equipment
CN104092644A (en) Interaction method, device, client and server
CN112615753B (en) Link abnormity tracking method, first node, second node and link
CN110990228A (en) Data interface monitoring method and device
CN103873918A (en) Picture processing method, device and terminal
CN110430292B (en) Method and device for inviting login of network platform, electronic equipment and readable medium
CN104243271A (en) Method and system for realizing off-line message pushing through XMPP
CN108696899A (en) Sip message transmits and method of reseptance and transmission and reception device
CN110222280A (en) Data processing method and device for sharing
CN115412602A (en) Data parsing and transferring method, device, equipment and medium for digital twin
CN105577603A (en) Method and device for broadcasting multimedia messages
CN107423446B (en) New media automation trusted deployment system and method based on cloud storage
CN102387516B (en) PS operation analog system and test method for NodeB test
CN104767672A (en) Account relation establishing method and device
CN111131277B (en) Data pushing method and system
CN104426895A (en) Information processing method and terminal equipment
CN104580552A (en) Implementing method of resolution redirection of error domain name server in home gateway
CN105516933A (en) Message processing method, message processing device, mobile terminal and server
CN105491223B (en) Information processing method, related equipment and system
CN109587197A (en) It is associated with the methods, devices and systems of reported data
CN108173957B (en) Rapid configuration joint debugging platform for Http interface
CN108924773B (en) Message processing method and device
CN112887362B (en) Equipment access method, equipment access device and server
CN102164178B (en) Content acquiring method and client

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
GR01 Patent grant
GR01 Patent grant