CN108769202A - A kind of information push method and its server and terminal device - Google Patents
A kind of information push method and its server and terminal device Download PDFInfo
- Publication number
- CN108769202A CN108769202A CN201810539269.5A CN201810539269A CN108769202A CN 108769202 A CN108769202 A CN 108769202A CN 201810539269 A CN201810539269 A CN 201810539269A CN 108769202 A CN108769202 A CN 108769202A
- Authority
- CN
- China
- Prior art keywords
- interface channel
- long
- terminal device
- message
- long interface
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/12—Setup of transport tunnels
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of push of message and method of reseptance and corresponding devices, to solve the problems, such as that user can not receive the message that message push mode pushes in the state that terminal device is in no network connection in the prior art.The method includes:If receiving the terminal device of PUSH message in no network connection state, the short message for carrying long link information is sent to the terminal device;Receive the long interface channel request to create for carrying long link information;In response to the long interface channel request to create, long interface channel is created between the terminal device;By the long interface channel to the terminal device PUSH message.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of information push method and its server and terminal to set
It is standby.
Background technology
Currently, with the continuous quickening of social informatization step, message has been obtained in such a way that message pushes (push)
As people obtain message a kind of important channel, such as user can subscribe to it is interested subscribe to number, come obtain it is corresponding most
New information.
Under normal conditions, terminal device and net that often will be based on user for user's PUSH message in such a way that message pushes
Network carries out under conditions of establishing connection, it means that when the terminal device of user is under no network connection state, then
The latest news that this mode is pushed can not be received, and if the message that pushes when being some important urgent message, user
The message can not then be timely received.
Therefore, in above-mentioned scene, user can not receive message in the state that terminal device is in no network connection
The problem of message that push mode pushes, is still urgently to be resolved hurrily.
Invention content
A kind of message push of offer of the embodiment of the present invention and method of reseptance and its server and terminal device, it is existing to solve
User can not receive the message that message push mode pushes in the state that terminal device is in no network connection in technology
Problem.
In order to solve the above-mentioned technical problem, the invention is realized in this way:In a first aspect, an embodiment of the present invention provides one
Kind information push method, the method are applied to server, including:
If receiving the terminal device of PUSH message in no network connection state, is sent to the terminal device and carry length
The short message of link information;
Receive the long interface channel request to create for carrying long link information;
In response to the long interface channel request to create, long interface channel is created between the terminal device;
By the long interface channel to the terminal device PUSH message.
Second aspect, an embodiment of the present invention provides a kind of message receival method, the method is applied to terminal device, packet
It includes:
The short message from server is received, long link information is carried in the short message;
The long interface channel request to create for carrying long link information is sent, it is logical to create long connection between the server
Road;
The message of the server push is received by the long interface channel.
The third aspect, an embodiment of the present invention provides a kind of servers, including:
Short message sending unit, if for receiving the terminal device of PUSH message in no network connection state, to described
Terminal device sends the short message for carrying long link information;
Request reception unit, for receiving the long interface channel request to create for carrying long link information;
Request-response unit, in response to the long interface channel request to create, being created between the terminal device
Long interface channel;
Message push unit, for passing through the long interface channel to the terminal device PUSH message.
Fourth aspect, an embodiment of the present invention provides a kind of terminal devices, including:
Short message receiving unit carries long link information for receiving the short message from server in the short message;
Request transmitting unit, for sending the long interface channel request to create for carrying long link information, with the service
Long interface channel is created between device;
Message reception units, the message for receiving the server push by the long interface channel.
5th aspect, the embodiment of the present invention also provide a kind of server, including:It memory, processor and is stored in described
It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor
Now as described in relation to the first aspect method the step of.
6th aspect, the embodiment of the present invention also provide a kind of readable storage medium storing program for executing, on the computer readable storage medium
The step of being stored with computer program, method as described in relation to the first aspect realized when the computer program is executed by processor.
7th aspect, the embodiment of the present invention also provide a kind of terminal device, including:Memory, processor and it is stored in institute
The computer program that can be run on memory and on the processor is stated, when the computer program is executed by the processor
It realizes such as the step of second aspect the method.
Eighth aspect, the embodiment of the present invention also provide a kind of readable storage medium storing program for executing, on the computer readable storage medium
It is stored with computer program, is realized such as the step of second aspect the method when the computer program is executed by processor.
In the embodiment of the present invention, the terminal device for receiving PUSH message is being determined in no network connection state, to terminal
Equipment sends the short message for carrying long link information, then receives the long interface channel request to create for carrying long link information, and ring
Long interface channel should be created between terminal device in the long interface channel request to create, determining that terminal device is in this way
Suspension etc., can be by sending the short message comprising long link information come so that server without network connection state to terminal device
Long interface channel is created between terminal device, then is solved existing to terminal device PUSH message by the long interface channel
The problem of terminal device can not receive the message of push in the state of no network connection in technology.
In the embodiment of the present invention, it can be received from the short of server when terminal device is in no network connection state
Then letter sends the long interface channel request to create for carrying long link information to server, to create long connect between server
Connect road, then receive the message of server push by the long interface channel, solve in the prior art terminal device in no net
The problem of can not receiving the message of push when the state of network connection.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of specific implementation flow diagram of information push method provided in an embodiment of the present invention;
Fig. 2 is a kind of specific implementation flow diagram of message receival method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of server provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another server provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another terminal device provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
The technical solution provided below in conjunction with attached drawing, each embodiment that the present invention will be described in detail.
The message that push can not be received in the state of no network connection to solve terminal device in the prior art is asked
Topic, the present invention provide a kind of information push method, and the executive agent of this method, can be, but not limited to server etc. can be configured
To execute at least one of this method user terminal provided in an embodiment of the present invention.
For ease of description, hereafter executive agent in this way is to be able to carry out for the server of this method, to the party
The embodiment of method is introduced.It is appreciated that it is a kind of illustrative explanation that the executive agent of this method, which is server, and
It should not be construed as the restriction to this method.
Specifically, information push method provided by the invention includes:First, if the terminal device for receiving PUSH message is in
Without network connection state, then the short message for carrying long link information is sent to terminal device;Then, it receives and carries long link information
Long interface channel request to create, then in response to the long interface channel request to create, long interface channel is created between terminal device;
Finally, by long interface channel to terminal device PUSH message.
In the embodiment of the present invention, the terminal device for receiving PUSH message is being determined in no network connection state, to terminal
Equipment sends the short message for carrying long link information, then receives the long interface channel request to create for carrying long link information, and ring
Long interface channel should be created between terminal device in the long interface channel request to create, determining that terminal device is in this way
Suspension etc., can be by sending the short message comprising long link information come so that server without network connection state to terminal device
Long interface channel is created between terminal device, then is solved existing to terminal device PUSH message by the long interface channel
The problem of terminal device can not receive the message of push in the state of no network connection in technology.
With reference to the specific implementation flow diagram of information push method shown in FIG. 1, to the implementation process of this method
It describes in detail, including:
Step 101, if the terminal device for receiving PUSH message is taken in no network connection state to terminal device transmission
The short message of belt length link information;
As described in the background art, in the prior art, when terminal device is in no network connection state, tend not to and
When receive the message of server push, and if the message that pushes when being some important and urgent message, such as it is earthquake, sudden and violent
The message early warning such as rain, mud-rock flow greatly reduces casualties since the timely acquisition of this kind of message can play prevention effect
And property loss, therefore, it is necessary to can not when proposing a solution to cope with terminal device in no network connection state
The problem of receiving the message of server push.
The embodiment of the present invention is in order to solve this problem, however, it is determined that terminal device is in no network connection state, then to end
End equipment sends short message, carries long link information in transmitted short message, which can be used for terminal device and net
Long interface channel is set up between network.And determine whether terminal device in no network connection state specifically can then determine terminal
Whether long connection is established between equipment and server, however, it is determined that is established long connection between terminal device and server and is then determined
Terminal device is in network connection state, and if it is determined that then determining the end without establishing long connection between terminal device and server
End equipment is in no network connection state.
Step 102, the long interface channel request to create for carrying long link information is received;
It should be noted that the long interface channel in the embodiment of the present invention can be TCP/IP long interface channels.It is then above-mentioned
The IP address of server is can specifically include in long link information, so that terminal device being capable of IP based on the server
Location is set up with network connect first, then connection request is sent to the IP address, to set up and terminal device and server
Between long interface channel.
Step 103, in response to long interface channel request to create, long interface channel is established between terminal device;
Long interface channel duration is also carried in said short message, then in response to the long interface channel request to create, with
Long interface channel is created between terminal device, it specifically, then can be in response to long interface channel request to create, with terminal device
Between create time duration be long interface channel duration long interface channel.
In addition, in order to avoid terminal device expends additional data traffic and electricity, server is sent to terminal device
Can also include long connection duration in short message, to ensure that terminal device can after the message for receiving server push
Long interface channel is disconnected, had on the one hand both ensured that terminal device can receive the message of server push, and had on the other hand also avoided
Terminal device will produce additional data traffic and electricity.And if the wound of the long interface channel between terminal device and server
When building duration more than or equal to the long interface channel duration, and there is new PUSH message in server side, then can be again
The short message for carrying long link information is sent to the terminal device so that can be re-established between the terminal device and server
Play long interface channel.
For example long interface channel duration is 1h, is continued more than the long interface channel in the establishment duration of long interface channel
When duration, length connection will disconnect automatically, and if at this point, new wait for PUSH message, server occurs in server side is
Ensure that the message to be pushed can be pushed to terminal device in time, long company can also be carried to terminal device transmission again
The short message of information is connect, so that terminal device can be based on the long link information, is sent to server and carries the long link information
Long connection request to create, to start against long interface channel between server.
Step 104, by long interface channel to terminal device PUSH message.
It should be understood that server when determining that terminal device is in network connection state, then can be pushed away by long interface channel
Send message.
In the embodiment of the present invention, determining that terminal device should to terminal device transmission short message in no network connection state
The network connection information for including in short message, which can be used in terminal device and network, to be established and connects, and is determining that terminal device is in this way
Suspension etc., can be by sending the short message comprising network connection information come so that terminal without network connection state to terminal device
Equipment and network, which are established, to be connected, then to terminal device PUSH message, solve in the prior art terminal device in no network connection
State when the problem of can not receiving the message of push.
More than, server end is connected comprising long determining that terminal device is sent in no network connection state to terminal device
It connects the process of the short message of information and is described in detail to the step of terminal device PUSH message, correspond to the above,
The processing done after the short message for receiving server transmission to terminal device is described in detail below.
Referring to Fig. 2, being a kind of implementation process diagram of message receival method provided in an embodiment of the present invention, this method
Applied to terminal equipment side, including following key steps:
Step 201, the short message from server is received, long link information is carried in the short message;
First, whether server side determines terminal device in no network connection state, such as can be by determining the end
Whether some client corresponding to the server in end equipment determines whether the terminal device connects in no network online
State is connect, long connection whether is established between the server and the terminal device it is possible to further determine;Then, if service
Device side determines that some client in the terminal device corresponding to the server is in off-line state then and can determine that the terminal is set
It is standby to be in no network connection state, at this point, server can send the short message of a long link information of carrying to the terminal device,
For establishing long interface channel between terminal device and server.
Step 202, the long interface channel request to create for carrying long link information is sent, to create long connect between server
Connect road;
When in determining the short message that receives comprising long link information, then can be based on the long link information and server it
Between create long interface channel, which may include then specifically the IP address of the server, and terminal device can be based on
The IP address is established with network connect first, then sends long interface channel request to create to the IP address, with server it
Between set up long interface channel.
Step 203, the message of server push is received by long interface channel.
After setting up the long interface channel between terminal device and server, it can be connect by the long interface channel
Receive the message of server push.Further include long interface channel duration in said short message, is then received and taken by long interface channel
The message that device pushes of being engaged in specifically then can pass through long interface channel in long interface channel duration and receive server
The message of push.Further include long interface channel duration in said short message, had on the one hand both ensured that terminal device can receive
On the other hand the message of server push also avoids terminal device and will produce additional data traffic and electricity.
In the embodiment of the present invention, it can be received from the short of server when terminal device is in no network connection state
Then letter sends the long interface channel request to create for carrying long link information to server, to create long connect between server
Connect road, then receive the message of server push by the long interface channel, solve in the prior art terminal device in no net
The problem of can not receiving the message of push when the state of network connection.
The embodiment of the present invention also provides a kind of server 300, as shown in figure 3, being connect including short message sending unit 301, request
Unit 302, request-response unit 303 and message push unit 304 are received, wherein:
Short message sending unit 301, if for receiving the terminal device of PUSH message in no network connection state, to institute
It states terminal device and sends the short message for carrying long link information;
Request reception unit 302, for receiving the long interface channel request to create for carrying long link information;
Request-response unit 303, in response to the long interface channel request to create, being created between the terminal device
Build long interface channel;
Message push unit 304, for passing through the long interface channel to the terminal device PUSH message.
In the embodiment of the present invention, short message sending unit 301 is determining the terminal device for receiving PUSH message in no network
Connection status sends the short message for carrying long link information to terminal device, and then request reception unit 302, which receives, carries long connection
The long interface channel request to create of information, request-response unit 303 is in response to the long interface channel request to create, with terminal device
Between create long interface channel, determining that terminal device is in suspension etc. without network connection state in this way, can be by end
End equipment sends the short message comprising long link information to create long interface channel between server and terminal device, then passes through
Message push unit 304 in the long interface channel to terminal device PUSH message, solve in the prior art terminal device in nothing
The problem of message of push can not be received when the state of network connection.
In one embodiment, long interface channel duration is also carried in the short message, then the request response is single
Member 303, is used for:
In response to the long interface channel request to create, it is described to create time duration between the terminal device
The long interface channel of long interface channel duration.
In one embodiment, the server further includes:
Channel switching units are used for after the creation time of the long interface channel is more than the long interface channel duration,
Disconnect the long interface channel.
Server 300 provided in an embodiment of the present invention can realize that server is realized each in the embodiment of the method for Fig. 1
Process, to avoid repeating, which is not described herein again.
Referring to Fig. 4, for the structural schematic diagram of terminal device 400 provided in an embodiment of the present invention, as shown in figure 4, including
Short message receiving unit 401, request transmitting unit 402 and message reception units 403, wherein:
Short message receiving unit 401 carries long link information for receiving the short message from server in the short message;
Request transmitting unit 402, for sending the long interface channel request to create for carrying long link information, with the clothes
Long interface channel is created between business device;
Message reception units 403, the message for receiving the server push by the long interface channel.
In the embodiment of the present invention, short message receiving unit 401 can be received when terminal device is in no network connection state
Short message from server, request transmitting unit 402 send the long interface channel request to create for carrying long link information, with institute
It states and creates long interface channel between server, message reception units 403 pass through the long interface channel and receive server push again
Message solves the problems, such as that terminal device can not receive the message of push in the state of no network connection in the prior art.
In one embodiment, further include long interface channel duration in the short message, then the message sink list
Member 403, is used for, including:
The message of the server push is received by the long interface channel in the long interface channel duration.
Terminal device 400 provided in an embodiment of the present invention can realize that terminal device in the embodiment of the method for Fig. 2 is realized
Each process, to avoid repeating, which is not described herein again.
Referring to Fig. 5, Fig. 5 is the structure chart of server 500 provided in an embodiment of the present invention, above method reality can be realized
The details of information push method in example is applied, and reaches identical effect.As shown in figure 5, message pusher 500 includes:Processing
Device 501, transceiver 502, memory 503, user interface 504 and bus interface, wherein:
In embodiments of the present invention, message pusher 500 further includes:It is stored on memory 503 and can be in processor
The computer program run on 501 realizes following steps when computer program is by processor 501, execution:
If receiving the terminal device of PUSH message in no network connection state, is sent to the terminal device and carry length
The short message of link information;
Receive the long interface channel request to create for carrying long link information;
In response to the long interface channel request to create, long interface channel is created between the terminal device;
By the long interface channel to the terminal device PUSH message.
In Figure 5, bus architecture may include the bus and bridge of any number of interconnection, specifically be represented by processor 501
One or more processors and the various circuits of memory that represent of memory 503 link together.Bus architecture can be with
Various other circuits of such as peripheral equipment, voltage-stablizer and management circuit or the like are linked together, these are all these
Well known to field, therefore, it will not be further described herein.Bus interface provides interface.Transceiver 502 can be
Multiple element includes transmitter and receiver, provides the unit for being communicated over a transmission medium with various other devices.Needle
To different user equipmenies, user interface 504, which can also be, external the interface for needing equipment is inscribed, and the equipment of connection includes
But be not limited to keypad, display, loud speaker, microphone, control stick etc..
Processor 501 is responsible for bus architecture and common processing, and memory 503 can store processor 501 and hold
Used data when row operation.
Optionally, following steps be can also be achieved when computer program is executed by processor 503:
Also carry long interface channel duration in the short message, it is described in response to the long interface channel request to create,
Long interface channel is created between the terminal device, including:
In response to the long interface channel request to create, it is described to create time duration between the terminal device
The long interface channel of long interface channel duration.
Optionally, after the creation time of the long interface channel is more than the long interface channel duration, the length is disconnected
Interface channel.
In the embodiment of the present invention, the terminal device for receiving PUSH message is being determined in no network connection state, to terminal
Equipment sends the short message for carrying long link information, then receives the long interface channel request to create for carrying long link information, and ring
Long interface channel should be created between terminal device in the long interface channel request to create, determining that terminal device is in this way
Suspension etc., can be by sending the short message comprising long link information come so that server without network connection state to terminal device
Long interface channel is created between terminal device, then is solved existing to terminal device PUSH message by the long interface channel
The problem of terminal device can not receive the message of push in the state of no network connection in technology.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned information push method embodiment, and energy when being executed by processor
Reach identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only
Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic disc or CD etc..
A kind of hardware architecture diagram of Fig. 6 terminal devices 600 of each embodiment to realize the present invention,
The terminal device 600 includes but not limited to:It is radio frequency unit 601, network module 602, audio output unit 603, defeated
Enter unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, processor
The components such as 610 and power supply 611.It will be understood by those skilled in the art that terminal device structure shown in Fig. 6 is not constituted
Restriction to terminal device, terminal device may include than illustrating more or fewer components, either combine certain components or
Different component arrangements.In embodiments of the present invention, terminal device include but not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 610 carry long link information for receiving the short message from server in the short message;It sends
The long interface channel request to create for carrying long link information, to create long interface channel between the server;By described
Long interface channel receives the message of the server push.
In the embodiment of the present invention, it can be received from the short of server when terminal device is in no network connection state
Then letter sends the long interface channel request to create for carrying long link information to server, to create long connect between server
Connect road, then receive the message of server push by the long interface channel, solve in the prior art terminal device in no net
The problem of can not receiving the message of push when the state of network connection.
It should be understood that the embodiment of the present invention in, radio frequency unit 601 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 610 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 601 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 601 can also by radio communication system and network and other set
Standby communication.
Terminal device has provided wireless broadband internet to the user by network module 602 and has accessed, and such as user is helped to receive
Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 603 can receive radio frequency unit 601 or network module 602 or in memory 609
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 603 can also provide and end
The relevant audio output of specific function that end equipment 600 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 603 includes loud speaker, buzzer and receiver etc..
Input unit 604 is for receiving audio or video signal.Input unit 604 may include graphics processor
(Graphics Processing Unit, GPU) 6041 and microphone 6042, graphics processor 6041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 606.Through graphics processor 6041, treated that picture frame can be deposited
Storage is sent in memory 609 (or other storage mediums) or via radio frequency unit 601 or network module 602.Mike
Wind 6042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output of mobile communication base station can be sent to via radio frequency unit 601 by being converted in the case of telephone calling model.
Terminal device 600 further includes at least one sensor 605, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 6061, and proximity sensor can close when terminal device 600 is moved in one's ear
Display panel 6061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify terminal device posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 605 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 606 is for showing information input by user or being supplied to the information of user.Display unit 606 can wrap
Display panel 6061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 6061.
User input unit 607 can be used for receiving the number or character information of input, and generate the use with terminal device
Family is arranged and the related key signals input of function control.Specifically, user input unit 607 include touch panel 6071 and
Other input equipments 6072.Touch panel 6071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 6071 or in touch panel 6071
Neighbouring operation).Touch panel 6071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 610, receiving area
It manages the order that device 610 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch panel 6071.In addition to touch panel 6071, user input unit 607 can also include other input equipments
6072.Specifically, other input equipments 6072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 6071 can be covered on display panel 6061, when touch panel 6071 is detected at it
On or near touch operation after, send processor 610 to determine the type of touch event, be followed by subsequent processing device 610 according to touch
The type for touching event provides corresponding visual output on display panel 6061.Although in figure 6, touch panel 6071 and display
Panel 6061 is to realize the function that outputs and inputs of terminal device as two independent components, but in some embodiments
In, can be integrated by touch panel 6071 and display panel 6061 and realize the function that outputs and inputs of terminal device, it is specific this
Place does not limit.
Interface unit 608 is the interface that external device (ED) is connect with terminal device 600.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 608 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in terminal device 600 or can be used in 600 He of terminal device
Transmission data between external device (ED).
Memory 609 can be used for storing software program and various data.Memory 609 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 609 may include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 610 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection
A part by running or execute the software program and/or module that are stored in memory 609, and calls and is stored in storage
Data in device 609 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place
Reason device 610 may include one or more processing units;Preferably, processor 610 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 610.
Terminal device 600 can also include the power supply 611 (such as battery) powered to all parts, it is preferred that power supply 611
Can be logically contiguous by power-supply management system and processor 610, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, terminal device 600 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of terminal device, including processor 610, and memory 609 is stored in
On memory 609 and the computer program that can be run on the processor 610, the computer program are executed by processor 610
Each process of the above-mentioned message receival method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here
It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned message receival method embodiment, and energy when being executed by processor
Reach identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only
Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within the protection of the present invention.
Claims (10)
1. a kind of information push method is applied to server, which is characterized in that the method includes:
If receiving the terminal device of PUSH message in no network connection state, is sent to the terminal device and carry long connection
The short message of information;
Receive the long interface channel request to create for carrying long link information;
In response to the long interface channel request to create, long interface channel is created between the terminal device;
By the long interface channel to the terminal device PUSH message.
2. the method as described in claim 1, which is characterized in that also carry long interface channel duration, institute in the short message
It states in response to the long interface channel request to create, long interface channel is created between the terminal device, including:
In response to the long interface channel request to create, it is that the length connects that time duration is created between the terminal device
Connect the long interface channel of road duration.
3. method as claimed in claim 2, which is characterized in that further include:
After the creation time of the long interface channel is more than the long interface channel duration, the long interface channel is disconnected.
4. a kind of message receival method is applied to terminal device, which is characterized in that the method includes:
The short message from server is received, long link information is carried in the short message;
The long interface channel request to create for carrying the long link information is sent, it is logical to create long connection between the server
Road;
The message of the server push is received by the long interface channel.
5. method as claimed in claim 4, which is characterized in that further include long interface channel duration in the short message, then
The message of the server push is received by the long interface channel, including:
The message of the server push is received by the long interface channel in the long interface channel duration.
6. a kind of server, which is characterized in that including:
Short message sending unit, if for receiving the terminal device of PUSH message in no network connection state, to the terminal
Equipment sends the short message for carrying long link information;
Request reception unit, for receiving the long interface channel request to create for carrying long link information;
Request-response unit, in response to the long interface channel request to create, long connect to be created between the terminal device
Connect road;
Message push unit, for passing through the long interface channel to the terminal device PUSH message.
7. the server described in claim 6, which is characterized in that also carry long interface channel duration in the short message, then
The request-response unit, is used for:
In response to the long interface channel request to create, it is that the length connects that time duration is created between the terminal device
Connect the long interface channel of road duration.
8. server as claimed in claim 7, which is characterized in that the server further includes:
Channel switching units, for after the creation time of the long interface channel is more than the long interface channel duration, disconnecting
The long interface channel.
9. a kind of terminal device, which is characterized in that including:
Short message receiving unit carries long link information for receiving the short message from server in the short message;
Request transmitting unit, for sending the long interface channel request to create for carrying the long link information, with the service
Long interface channel is created between device;
Message reception units, the message for receiving the server push by the long interface channel.
10. terminal device as claimed in claim 9, which is characterized in that when further including that long interface channel continues in the short message
Long, then the message reception units, are used for, including:
The message of the server push is received by the long interface channel in the long interface channel duration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810539269.5A CN108769202A (en) | 2018-05-30 | 2018-05-30 | A kind of information push method and its server and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810539269.5A CN108769202A (en) | 2018-05-30 | 2018-05-30 | A kind of information push method and its server and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108769202A true CN108769202A (en) | 2018-11-06 |
Family
ID=64004144
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810539269.5A Pending CN108769202A (en) | 2018-05-30 | 2018-05-30 | A kind of information push method and its server and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108769202A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109445979A (en) * | 2018-11-14 | 2019-03-08 | 广东小天才科技有限公司 | Abnormal log reporting method and system for wearable device |
CN109558261A (en) * | 2018-11-20 | 2019-04-02 | 广东小天才科技有限公司 | Method and system for acquiring abnormal log of wearable device |
CN113301515A (en) * | 2020-06-01 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Method, device, system, equipment and storage medium for processing short message channel connection |
CN114157624A (en) * | 2021-11-25 | 2022-03-08 | 上海浦东发展银行股份有限公司 | Link connection method, device, equipment and storage medium for instant messaging |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101291348A (en) * | 2008-06-12 | 2008-10-22 | 巴别塔(北京)科技有限公司 | Prompt method for wireless channel awaking |
CN102761864A (en) * | 2011-04-29 | 2012-10-31 | 中国移动通信集团公司 | Data transmission method, system and device |
CN102769603A (en) * | 2011-05-03 | 2012-11-07 | 中国移动通信集团公司 | Method, system and apparatus for data transmission |
CN103874035A (en) * | 2012-12-13 | 2014-06-18 | 中国移动通信集团公司 | Mobile terminal message pushing method and equipment |
US20160050134A1 (en) * | 2014-08-12 | 2016-02-18 | China United Network Communications Group Company Limited | Method for setting heartbeat timer, terminal and server |
-
2018
- 2018-05-30 CN CN201810539269.5A patent/CN108769202A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101291348A (en) * | 2008-06-12 | 2008-10-22 | 巴别塔(北京)科技有限公司 | Prompt method for wireless channel awaking |
CN102761864A (en) * | 2011-04-29 | 2012-10-31 | 中国移动通信集团公司 | Data transmission method, system and device |
CN102769603A (en) * | 2011-05-03 | 2012-11-07 | 中国移动通信集团公司 | Method, system and apparatus for data transmission |
CN103874035A (en) * | 2012-12-13 | 2014-06-18 | 中国移动通信集团公司 | Mobile terminal message pushing method and equipment |
US20160050134A1 (en) * | 2014-08-12 | 2016-02-18 | China United Network Communications Group Company Limited | Method for setting heartbeat timer, terminal and server |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109445979A (en) * | 2018-11-14 | 2019-03-08 | 广东小天才科技有限公司 | Abnormal log reporting method and system for wearable device |
CN109445979B (en) * | 2018-11-14 | 2022-05-03 | 广东小天才科技有限公司 | Abnormal log reporting method and system for wearable device |
CN109558261A (en) * | 2018-11-20 | 2019-04-02 | 广东小天才科技有限公司 | Method and system for acquiring abnormal log of wearable device |
CN109558261B (en) * | 2018-11-20 | 2022-05-03 | 广东小天才科技有限公司 | Method and system for acquiring abnormal log of wearable device |
CN113301515A (en) * | 2020-06-01 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Method, device, system, equipment and storage medium for processing short message channel connection |
CN114157624A (en) * | 2021-11-25 | 2022-03-08 | 上海浦东发展银行股份有限公司 | Link connection method, device, equipment and storage medium for instant messaging |
CN114157624B (en) * | 2021-11-25 | 2023-10-24 | 上海浦东发展银行股份有限公司 | Link connection method, device and equipment for instant messaging and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108924817A (en) | A kind of SIM card state switching method and mobile terminal | |
CN107770760B (en) | A kind of method and mobile terminal of the type identifying bluetooth equipment | |
CN108446085A (en) | A kind of throwing screen display methods and mobile terminal | |
CN108255378A (en) | A kind of display control method and mobile terminal | |
CN108803963A (en) | A kind of screenshotss method and mobile terminal | |
CN109284078A (en) | A kind of control method and mobile terminal of double-sided screen | |
CN108769202A (en) | A kind of information push method and its server and terminal device | |
CN110109593A (en) | A kind of screenshotss method and terminal device | |
CN110062104A (en) | Application program launching method, device and mobile terminal | |
CN107613024A (en) | A kind of method of data synchronization and mobile terminal | |
CN108762869A (en) | A kind of information processing method and mobile terminal | |
CN109831359A (en) | A kind of detection method and its terminal device of data network connection state | |
CN108494639A (en) | Network access method and mobile terminal | |
CN109144703A (en) | A kind of processing method and its terminal device of multitask | |
CN108282759A (en) | A kind of method for processing business and mobile communication terminal | |
CN108551525A (en) | A kind of state of motion track determines method and mobile terminal | |
CN109101151A (en) | A kind of information display processing method and terminal device | |
CN108009031A (en) | The control method and mobile terminal of a kind of application program | |
CN109639738A (en) | The method and terminal device of voice data transmission | |
CN107979385B (en) | A kind of radio-frequency front-end data processing method and mobile terminal | |
CN109802945A (en) | A kind of data transmission method and terminal device | |
CN109743454A (en) | A kind of call handling method and mobile terminal | |
CN109831582A (en) | Non- response events processing method and terminal | |
CN109672845A (en) | A kind of method, apparatus and mobile terminal of video calling | |
CN109445589A (en) | A kind of multimedia file broadcasting control method and terminal device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181106 |