CN106027332A - Heartbeat message processing device and method - Google Patents
Heartbeat message processing device and method Download PDFInfo
- Publication number
- CN106027332A CN106027332A CN201610490004.1A CN201610490004A CN106027332A CN 106027332 A CN106027332 A CN 106027332A CN 201610490004 A CN201610490004 A CN 201610490004A CN 106027332 A CN106027332 A CN 106027332A
- Authority
- CN
- China
- Prior art keywords
- heartbeat
- application
- message
- heart beating
- heartbeat message
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
Landscapes
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a heartbeat message processing device. The device is applied to a baseband processing chip of a mobile terminal. The device comprises a heartbeat packet filtering module which is used for extracting an application identifier of an application operated before an application processor sleeps and obtaining stored information associated with the application identifier when the baseband processing chip receives a heartbeat message sent by a network side and the application processor is in a sleep state, wherein the application identifier is carried in the heartbeat message, and the obtained information comprises a heartbeat response message establishment rule; and a reply information forging module which is used for establishing a heartbeat response message corresponding to the received heartbeat message based on the obtained heartbeat response message establishment rule and instructing the heartbeat packet filtering module to discard the received heartbeat message. The reply information forging module is also used for returning the established heartbeat response message to the network side. The invention also discloses a heartbeat message processing method. According to the device, the energy consumption of the mobile terminal can be reduced.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of heartbeat message processing means and method.
Background technology
Along with developing rapidly of wireless access wide band technology and mobile terminal technology, people are highly desirable can
Information and service, mobile interchange can be obtained whenever and wherever possible or even in moving process easily from the Internet
Net arises at the historic moment and fast development.In order to meet the demand of user, mobile terminal is more and more applied
All there is the ability accessing mobile Internet, in order to provide the user service in real time.Mobile Internet with
Ripe Ethernet is the same, and reception and transmission data in network are that framework is also based on C/S (user/server)
Socket (socket) is used to carry out realizing.
At present, in network most business be all based on TCP (Transmission Control Protocol,
Transmission control protocol) realize.Due to the complexity of network environment, the packet of network transmission often may be used
Can lose.Therefore, when user side is actively closed when TCP connects, (client Socket sends to server
Message), the Socket of server end possibly cannot receive the request of closedown.Owing to the resource of server is
Finite sum preciousness, should not be an invalid connection and retain system resource for a long time, then need to introduce
A kind of mechanism allows server may determine that, and a TCP connection enters disarmed state.
In order to judge the effectiveness that TCP connects, TCP achieves the mechanism being called heart beating.If
Client is provided with heart beating, and that TCP will send set point number to server end within the regular hour
Heartbeat packet.So-called heartbeat packet is exactly that client timing one fix information of transmission shows oneself to service end
Also online, service end replys a fix information after receiving.If not receiving visitor in service end a few minutes
Family client information, then it is assumed that client disconnects, is released to the resource that client retains.Equally, if serviced
Device is provided with heart beating, is just sent heartbeat packet by server timing to client, and client is responsible for return information
Show oneself still to survive.
In the ethernet device having stabilized power source to power, TCP heartbeat mechanism can well work.So
And, on the mobile terminal that electricity is limited, TCP heartbeat mechanism will accelerate the consumption of mobile terminal electricity,
Bring negative Consumer's Experience.Common, mobile terminal includes application processor and baseband processing chip,
Wherein, operating system, user interface and user's application operate on application processor, voice call, short
The communication functions such as letter, online operate on baseband processing chip.Just think, may on the mobile terminal of user
Installing simultaneously and run multiple application needing networking, server end corresponding to these application all may be to
Client sends heartbeat packet.When the mobile terminal entrance dormancy of user is standby (at application processor and base band
Reason chip is in resting state) after, if baseband processing chip receives the heartbeat packet of server end, will
It is notified that application processor.Then application processor can be waken up up by baseband processing chip, restarts to run,
Heartbeat packet is responded.But, application processor is every time longer from the time waken up up to dormancy again,
And the electric current produced and consume is higher, and the energy consumption causing mobile terminal is higher.
Summary of the invention
Present invention is primarily targeted at a kind of heartbeat message processing means of proposition and method, it is intended to reduce and move
The energy consumption of dynamic terminal.
For achieving the above object, the present invention provides a kind of heartbeat message processing means, is applied to mobile terminal
Baseband processing chip, this heartbeat message processing means includes:
Heartbeat packet filtering module, for receiving, when described baseband processing chip, the heart beating report that network side sends
Literary composition, and application processor in a dormant state time, extract the application processor that described heartbeat message carries and stop
The application identities of the application run before sleeping, and obtain the information of the described application identities association of storage, described
Information includes heart beating response message structure rule;
Forge return information module, for constructing rule construct institute based on the described heart beating response message obtained
State the heart beating response message that heartbeat message is corresponding, and indicate described heartbeat packet filtering module to abandon described heart beating
Message;
Described forgery return information module is additionally operable to the described heart beating response message of structure is back to described net
Network side.
Alternatively, described heartbeat packet filtering module is additionally operable to when obtaining described information failure, by the described heart
Jump message transmissions to application processor, and receive heartbeat message described in described application processor response and returned
Heart beating response message;Described heartbeat packet filtering module is additionally operable to the heart beating returned by described application processor
Response message sends to described network side;
Wherein, described application processor is receiving the described heart beating report of described heartbeat packet filtering module transmission
Wen Shi, calls heartbeat message described in the application response that described application identities is corresponding, generates heart beating response message.
Alternatively, the heart beating that described heartbeat packet filtering module is additionally operable to based on described application processor returns is answered
Answer message, generate and associate the heart beating response message structure rule storing described application identities.
Alternatively, described heartbeat packet filtering module is additionally operable to whether the described application identities of identification extraction is pre-
If application identities;Described heartbeat packet filtering module is additionally operable to when described application identities is for presetting application identities,
Obtain the information of the described application identities association of storage;Described heartbeat packet filtering module is additionally operable to answer described
During by mark not for presetting application identities, abandon described heartbeat message.
Alternatively, that runs before described default application identities includes described application processor dormancy has network
The application identities of the application of access rights.
Additionally, for achieving the above object, the present invention also proposes a kind of heartbeat message processing method, this heart beating
Message processing method includes:
Receiving network side send heartbeat message, and application processor in a dormant state time, base band
Process the application identities of the application run before chip extracts the application processor dormancy that described heartbeat message carries,
And the information that the described application identities obtaining storage associates, described information includes heart beating response message structure rule
Then;
Described baseband processing chip is based on heart beating described in the described heart beating response message structure rule construct obtained
The heart beating response message that message is corresponding, and abandon described heartbeat message;
The described heart beating response message of structure is back to described network side by described baseband processing chip.
Alternatively, after the step of the information of the described described application identities association obtaining storage, also include:
When obtaining described information failure, described baseband processing chip is by described heartbeat message transmission extremely application
Processor, and receive the heart beating response message that heartbeat message described in described application processor response is returned;
The heart beating response message that described application processor is returned by described baseband processing chip sends to described net
Network side;
Wherein, described application processor is receiving the described heartbeat message of described baseband processing chip transmission
Time, call heartbeat message described in the application response that described application identities is corresponding, generate heart beating response message.
Alternatively, the heart beating response that heartbeat message described in the response of described reception described application processor is returned
After the step of message, also include:
The heart beating response message that described baseband processing chip returns based on described application processor, generates and closes
The heart beating response message structure rule of described application identities is deposited in Federal Reserve.
Alternatively, before the step of the information of the described described application identities association obtaining storage, also include:
Whether the described application identities of described baseband processing chip identification extraction is to preset application identities;
When described application identities is for presetting application identities, proceed to perform the described described application obtaining storage
The step of the information of mark association;
When described application identities is not for presetting application identities, described baseband processing chip abandons described heart beating
Message.
Alternatively, that runs before described default application identities includes described application processor dormancy has network
The application identities of the application of access rights.
The present invention utilizes the heartbeat message processing means of the baseband processing chip being implemented in mobile terminal so that
Baseband processing chip receive from the heartbeat message of network side and application processor in a dormant state time,
Do not wake up application processor in a dormant state up, but utilize the heartbeat message prestored to process structure rule
Then, the heart beating response message of heartbeat message that structure correspondence receives, and be back to network side and carry out response,
Realize agent application processor and complete the response of heartbeat message.Compared to prior art, the present invention is without calling out
Awake application processor carries out the response of heartbeat message, it is to avoid unnecessary electric quantity consumption, has reached energy-conservation
The purpose of consumption reduction.
Accompanying drawing explanation
Fig. 1 is the hardware architecture diagram realizing each one mobile terminal of embodiment of the present invention;
Fig. 2 is the high-level schematic functional block diagram of heartbeat message processing means first embodiment of the present invention;
Fig. 3 is to store heart beating response message structure rule in heartbeat message processing means first embodiment of the present invention
Exemplary plot then;
Fig. 4 is the schematic flow sheet of heartbeat message processing method first embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, do referring to the drawings further
Explanation.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limit
Determine the present invention.
See Fig. 1, for realizing one hardware architecture diagram of mobile terminal of each embodiment of the present invention.This
The mobile terminal of inventive embodiments includes: Subscriber Identity Module 101, baseband processing chip 102, application process
Device 103, antenna 104, memorizer 105, transceiver 106.Wherein, baseband processing chip 102 includes: letter
Number processor 107 and modem processor 108.
Subscriber Identity Module 101 is placed in draw-in groove (not shown).Subscriber Identity Module 101 has unique knowledge
Alias code (ICCID), and in Subscriber Identity Module 101 storage have related network data (such as, MNC,
Mobile network number), the type of Subscriber Identity Module is can determine that according to the data of identification number or related network.
After Subscriber Identity Module type determines, could correctly obtain network parameter file corresponding thereto to search
Net and network registry etc..
Memorizer 105 is used for storing data, and concrete above-mentioned network parameter file can be stored in memorizer 105
In.Memorizer 105 can be general or any usable storage medium that can access of special-purpose, citing and
Speech, it can include RAM, ROM, EEPROM, disk memory or other magnetic storage apparatus.
Signal processor 107 includes suitable hardware, logical device, circuit and/or coding, has been used for association
View stack physical layer Base-Band Processing function, including numeral joint-detection, modulating/demodulating, interleaving/deinterleaving,
Chnnel coding/decoding, shaping pulse etc..In one embodiment, protocol stack includes various and network interaction
The agreement of network formats, such as, LTE/WCDMA/GSM/TDSCDMA/1X/CDMA/EVDO
Deng the protocol code provided in communication standard.The agreement of these standards is subscriber equipment and carrier network
Interact and (such as, surfed the Net by data traffic, made a phone call by VOLTE or by CS circuit domain
Make a phone call) be must be complied with.
The part more than modem processor 108 physical layer in processing protocol stack software, and
For being responsible for wireless communication function, complete the A/D conversion of voice signal, D/A conversion, audio digital signals
The sequencing contro etc. of encoding and decoding, channel coding/decoding and modem portion.
Application processor 103 be used for running open operating system, drive software (such as, screen drive,
SD card driving etc.), it is responsible for the control of whole system.
Transceiver 106 has been mainly used in the up-conversion of signal, down coversion, filter and the function such as amplification.
Antenna 104 is mainly used in transmitting/receiving signal.
With reference to Fig. 2, in the first embodiment of heartbeat message processing means of the present invention, this heartbeat message processes
Device includes:
Heartbeat packet filtering module 10, for receiving, when baseband processing chip, the heartbeat message that network side sends,
And application processor in a dormant state time, extract the application processor dormancy carried of heartbeat message received
The application identities of the application of front operation, and obtain the information of this application identities association of storage, the letter of acquisition
Breath includes heart beating response message structure rule;
Forge return information module 20, for receiving based on the heart beating response message structure rule construct obtained
Heart beating response message corresponding to heartbeat message, and indicate heartbeat packet filtering module 10 to abandon the heart beating of reception
Message;
Forge return information module 20 to be additionally operable to the heart beating response message of structure is back to network side.
It should be noted that the heartbeat message processing means that the present embodiment proposes builds the base at mobile terminal
Tape handling chip, completes the response of heartbeat message for agent application processor.Thus avoid application to process
Device is frequently waken up up by heartbeat message, reaches energy-saving and cost-reducing purpose.
It will be appreciated by persons skilled in the art that mobile terminal in running, if enter dormancy shape
State, its application processor and baseband processing chip all will enter resting state.In embodiments of the present invention,
Mobile terminal in a dormant state time, if receiving the heartbeat message from network side, its Base-Band Processing
Chip will be waken up, and now, baseband processing chip does not wake up application processor in a dormant state up,
But by the heartbeat packet filtering module 10 of the heartbeat message processing means built the thereon heart beating report to receiving
Literary composition resolves, and extracts the application identities entrained by this heartbeat message.Wherein, application identities is for only
One characterizes the application that application processor runs, and as a example by Android system, can use the uid of the application of operation
Information identifies as aforementioned applications.
Before extracting the application processor dormancy entrained by heartbeat message run application application identities it
After, heartbeat packet filtering module 10 obtains the structure rule of the heart beating response message associated by application identities extracted
Then, i.e. when normally working, application is used for constructing heart beating response report when responding the heartbeat message of its server
The heart beating response message structure rule of literary composition.Wherein, the heart beating response message associated by different application identities
Structure rule is different.
Concrete, in the present embodiment, heartbeat message processing means also includes registration/cancellation module (Fig. 2
Not shown), information stores module (Fig. 2 is not shown, and it specifically can be taken on) by the memorizer 105 in Fig. 1.
Wherein, information stores module and constructs rule for the heart beating response message storing association different application mark,
With reference to Fig. 3, information stores module can store the heart beating response report of association different application mark with the form of chained list
Literary composition structure rule, as it is shown on figure 3, heart beating response message structure rule at least includes the IP (Internet of server
Protocol) address and port numbers, it is also possible to include special field information etc..Below with running of mobile terminal
As a example by Android system, the formation to heart beating response message structure rule illustrates.
1, after the application of application processor startup optimization, whether the application according to running has network access authority
Judge whether this application may network, wherein, when judging that this application may need networking, answer use
The uid information of the application identities of this application, i.e. this application is sent to registration/cancellation module by reason device.
2, after registration/cancellation module receives the uid information of application processor transmission, this uid information is joined
In information storage module.As it is shown on figure 3, whole information storage module stores data with the form of chained list.Just
Time secondary, application only uid information is added in information storage module.
3, after baseband processing chip receives arbitrary message that network side sends, the message of reception is transferred to
Heartbeat packet filtering module 10 processes.Wherein, the data of reality, and its are not typically contained due to heartbeat message
Containing only protocol header, heartbeat packet filtering module 10 can go out in the message received according to the length filtration of message
Possible heartbeat message.
4, for the heartbeat message being filtrated to get, it is corresponding that heartbeat packet filtering module 10 extracts this heartbeat message
Uid information, and search for information storage module, herein, information storage module contain only uid information.The heart
Jump packet filtering module 10 and this heartbeat message is submitted to application processor.
5, after application processor receives the heartbeat message of heartbeat packet filtering module 10 transmission, this heart is called
The application corresponding to uid information that jumping message carries carries out response, obtains the heart beating of corresponding aforementioned heartbeat message
Response message, and the heart beating response message obtained is transmitted to heartbeat packet filtering module 10.
6, when heartbeat packet filtering module 10 receives the heart beating response message that application processor transmits, by this heart
Jump the server ip address in response message and port numbers, it is understood that there may be special field information, be saved in letter
In breath memory module in the corresponding row of aforementioned uid information, form the heart beating response message structure associating this uid information
Make rule.
In embodiments of the present invention, heartbeat packet filtering module 10 is extracting entrained by the heartbeat message of reception
Application identities after, search information stores the information associating this application identities stored in module, specifically
Search associates the heart beating response message structure rule in the information of this application identities, the heart that then will search
Jump response message structure regular transmission to forging return information module 20.
Forge return information module 20 at the heart beating response message structure receiving heartbeat packet filtering module 10 transmission
After making rule, utilize server ip address therein and port numbers and/or special field information, construct
Heart beating response message, and the heartbeat message indicating heartbeat packet filtering module 10 to abandon reception (the most do not wakes up up and is in
Dormant application processor), and should by this heart beating based on the server ip address in heart beating response message
Answer message and be back to the corresponding server of network side, i.e. achieve baseband processing chip agent application processor
Complete the response of heartbeat message.
The heartbeat message processing means that the present invention proposes, is implemented in the baseband processing chip of mobile terminal,
Receive from the heartbeat message of network side and application processor in a dormant state time, do not wake up up and be in
The application processor of resting state, but utilize the heartbeat message prestored to process structure rule, structure correspondence
The heart beating response message of heartbeat message received, and be back to network side and carry out response, it is achieved agent application
Processor completes the response of heartbeat message.Compared to prior art, the present invention is without waking up application processor up
Carry out the response of heartbeat message, it is to avoid unnecessary electric quantity consumption, reach energy-saving and cost-reducing purpose.
Further, based on first embodiment, the second enforcement of heartbeat message processing means of the present invention is proposed
Example, the present embodiment is with the difference of first embodiment, in the present embodiment, heartbeat packet filtering module 10
It is additionally operable to when obtaining the information failure that aforementioned applications identifies association, the heartbeat message received is transmitted to answering
With processor, and receive the heart beating response message that this heartbeat message of application processor response is returned;Heart beating
The heart beating response message that packet filtering module 10 is additionally operable to return application processor sends to network side;
Wherein, application processor, when receiving the heartbeat message of heartbeat packet filtering module 10 transmission, calls
This heartbeat message of application response that application identities that this heartbeat message carries is corresponding, generates heart beating response message.
It should be noted that the following difference only for the present embodiment with first embodiment illustrates, its
He can refer to first embodiment, and here is omitted.
In the present embodiment, the association that heartbeat packet filtering module 10 stores in search information storage module should
The heart beating response message structure rule of application identities (i.e. receiving the application identities entrained by heartbeat message)
Time, if not searching the heartbeat message structure rule of aforementioned applications mark association, recognize current for first
Receive the heartbeat message of application corresponding to aforementioned applications mark, now need to wake up application processor up and carry out
Response.
Concrete, this heartbeat message is submitted to application processor by heartbeat packet filtering module 10.Application processes
After device receives the heartbeat message of heartbeat packet filtering module 10 transmission, that calls that this heartbeat message carries should
Carry out response with the application corresponding to mark, obtain the heart beating response message of corresponding aforementioned heartbeat message, and
The heart beating response message obtained is transmitted to heartbeat packet filtering module 10.
When heartbeat packet filtering module 10 receives the heart beating response message of application processor transmission, based on heart beating
This heart beating response message is back to the corresponding server of network side by the server ip address in response message.
Meanwhile, heartbeat packet filtering module 10 is additionally based upon the heart beating response message that application processor returns, and generates
And associate the heart beating response message structure rule storing aforementioned applications mark.
Concrete, heartbeat packet filtering module 10 by the server ip address in this heart beating response message and port numbers,
Special field information that may be present, is saved in information storage module in the corresponding row of aforementioned applications mark,
Form the heart beating response message structure rule associating this application identities.
Further, based on aforementioned first or second embodiments, heartbeat message processing means of the present invention is proposed
The 3rd embodiment, the present embodiment is with the difference of previous embodiment, in the present embodiment, heartbeat packet
Filtering module 10 is additionally operable to whether the application identities of identification extraction is to preset application identities;Heartbeat packet filters mould
Block 10 is additionally operable to when this application identities is for presetting application identities, obtains this application identities association of storage
Information;Heartbeat packet filtering module 10 is additionally operable to, when this application identities is not for presetting application identities, abandon and connect
The heartbeat message received.
Illustrate it should be noted that following only for above-mentioned difference, other can respectively refer to aforementioned respectively
Embodiment, here is omitted.
In the present embodiment, heartbeat packet filtering module 10 is searched for information and is stored module acquisition heartbeat message response
The operation of rule needs to spend certain process resource, and in actual applications, possible application processor is transported
The application of row has been rolled off the production line, but the server of correspondence still may proceed to heartbeat message, until
It confirms that aforementioned applications has rolled off the production line.In consideration of it, the heartbeat message processing means of the present embodiment is only to reception
The heartbeat message of part carry out response.
Concrete, heartbeat packet filtering module 10 is extracting the application identities entrained by the heartbeat message of reception
Afterwards, first identify whether this application identities is to preset application identities;If it is pre-for recognizing this application identities
If during application identities, then obtain the heart beating response message structure rule of this application identities association of storage, with
Carrying out the response of heartbeat message, specifically can refer to the associated description of previous embodiment, here is omitted;
If recognize this application identities not for presetting application identities, then heartbeat packet filtering module 10 directly abandons and connects
The aforementioned heartbeat message received, does not carry out response.
Wherein, that runs before default application identities includes application processor dormancy has network access authority
The application identities of application.
The present invention further provides a kind of heartbeat message processing method, in conjunction with reference to Fig. 2 and Fig. 4, correspond to
The first embodiment of aforementioned heartbeat message processing means, in the first reality of heartbeat message processing method of the present invention
Executing in example, this heartbeat message processing method includes:
Step S10, is receiving the heartbeat message that network side sends, and application processor is in a dormant state
Time, the application that baseband processing chip runs before extracting application processor dormancy entrained by the heartbeat message received
Application identities, and obtain storage this application identities association information, the information of acquisition includes heart beating report
Literary composition structure rule;
Step S20, the heart that baseband processing chip receives based on the heart beating response message structure rule construct obtained
Jump the heart beating response message corresponding to message, and abandon the heartbeat message of reception;
Step S30, the heart beating response message of structure is back to network side by baseband processing chip.
It should be noted that the heartbeat message processing method of the proposition of the present embodiment is by being implemented in Base-Band Processing
The heartbeat message processing means of chip performs, and is completed by heartbeat message processing means agent application processor
The response of heartbeat message, to avoid application processor frequently to be waken up up by heartbeat message, reaches energy-saving and cost-reducing
Purpose.Baseband processing chip is replaced to illustrate for executive agent with heartbeat message processing means below.
It will be appreciated by persons skilled in the art that mobile terminal in running, if enter dormancy shape
State, its application processor and baseband processing chip all will enter resting state.In embodiments of the present invention,
Mobile terminal in a dormant state time, if receiving the heartbeat message from network side, its Base-Band Processing
Chip will be waken up, and now, baseband processing chip does not wake up application processor in a dormant state up,
But by the heartbeat packet filtering module 10 of the heartbeat message processing means built the thereon heart beating report to receiving
Literary composition resolves, and extracts the application identities entrained by this heartbeat message.Wherein, application identities is for only
One characterizes the application that application processor runs, and as a example by Android system, can use the uid of the application of operation
Information identifies as aforementioned applications.
Before extracting the application processor dormancy entrained by heartbeat message run application application identities it
After, heartbeat packet filtering module 10 obtains the structure rule of the heart beating response message associated by application identities extracted
Then, i.e. when normally working, application is used for constructing heart beating response report when responding the heartbeat message of its server
The heart beating response message structure rule of literary composition.Wherein, the heart beating response message associated by different application identities
Structure rule is different.
Concrete, in the present embodiment, heartbeat message processing means also includes registration/cancellation module (Fig. 2
Not shown), information stores module, and (Fig. 2 is not shown, and it specifically can be carried on a shoulder pole by the memorizer 105 in Fig. 1
When).Wherein, information stores module for storing the heart beating response message structure of association different application mark
Rule, with reference to Fig. 3, information stores module can store the heart beating of association different application mark with the form of chained list
Response message structure rule, as it is shown on figure 3, heart beating response message structure rule at least includes server
IP (Internet Protocol) address and port numbers, it is also possible to include special field information etc..Below to move
As a example by dynamic terminal operating Android system, the formation to heart beating response message structure rule illustrates.
1, after the application of application processor startup optimization, whether the application according to running has network access authority
Judge whether this application may network, wherein, when judging that this application may need networking, answer use
The uid information of the application identities of this application, i.e. this application is sent to registration/cancellation module by reason device.
2, after registration/cancellation module receives the uid information of application processor transmission, this uid information is added
In information storage module.As it is shown on figure 3, whole information storage module stores data with the form of chained list.
Time first, application only uid information is added in information storage module.
3, after baseband processing chip receives arbitrary message that network side sends, the message of reception is transferred to
Heartbeat packet filtering module 10 processes.Wherein, the data of reality, and its are not typically contained due to heartbeat message
Containing only protocol header, heartbeat packet filtering module 10 can go out in the message received according to the length filtration of message
Possible heartbeat message.
4, for the heartbeat message being filtrated to get, heartbeat packet filtering module 10 extracts this heartbeat message pair
The uid information answered, and search for information storage module, herein, information storage module contains only uid information.
This heartbeat message is submitted to application processor by heartbeat packet filtering module 10.
5, after application processor receives the heartbeat message of heartbeat packet filtering module 10 transmission, this is called
The application corresponding to uid information that heartbeat message carries carries out response, obtains the heart of corresponding aforementioned heartbeat message
Jump response message, and the heart beating response message obtained is transmitted to heartbeat packet filtering module 10.
6, when heartbeat packet filtering module 10 receives the heart beating response message that application processor transmits, should
Server ip address in heart beating response message and port numbers, it is understood that there may be special field information, preserve
In information storage module in the corresponding row of aforementioned uid information, form the heart beating response associating this uid information
Message structure rule.
In embodiments of the present invention, heartbeat packet filtering module 10 is extracting entrained by the heartbeat message of reception
Application identities after, search information stores the information associating this application identities stored in module, specifically
Search associates the heart beating response message structure rule in the information of this application identities, the heart that then will search
Jump response message structure regular transmission to forging return information module 20.
Forge return information module 20 at the heart beating response message receiving heartbeat packet filtering module 10 transmission
After structure rule, utilize server ip address therein and port numbers and/or special field information, structure
Go out heart beating response message, and the heartbeat message indicating heartbeat packet filtering module 10 to abandon reception (does not the most wake up place up
In dormant application processor), and based on the server ip address in heart beating response message by this heart beating
Response message is back to the corresponding server of network side, i.e. achieves baseband processing chip agent application and processes
Device completes the response of heartbeat message.
The heartbeat message processing method that the present invention proposes, utilizes the baseband processing chip being implemented in mobile terminal
Heartbeat message processing means so that baseband processing chip receive from network side heartbeat message and
Application processor in a dormant state time, do not wake up application processor in a dormant state up, but sharp
Structure rule is processed with the heartbeat message prestored, the heart beating response message of the corresponding heartbeat message received of structure,
And be back to network side and carry out response, it is achieved agent application processor completes the response of heartbeat message.Compare
In prior art, the present invention carries out the response of heartbeat message without waking up application processor up, it is to avoid need not
The electric quantity consumption wanted, has reached energy-saving and cost-reducing purpose.
Further, based on first embodiment, the second enforcement of heartbeat message processing method of the present invention is proposed
Example, corresponding to the second embodiment of aforementioned heartbeat message processing means, in the present embodiment, step S10
Afterwards, also include:
When obtaining the information failure of aforementioned applications mark association, the heart beating report that baseband processing chip will receive
Literary composition transmission is to application processor, and receives the heart beating response that this heartbeat message of application processor response is returned
Message;
The heart beating response message that application processor is returned by baseband processing chip is back to network side;
Wherein, application processor, when receiving the heartbeat message of baseband processing chip transmission, calls heart beating
This heartbeat message of application response that application identities that message carries is corresponding, generates heart beating response message.
It should be noted that the difference of the present embodiment and first embodiment is, embodiment adds and obtain
Process when jumping response message structure rule failure of coring operates, real only for the present embodiment and first below
The difference executing example illustrates, and other can refer to first embodiment, and here is omitted.
In the present embodiment, the association that heartbeat packet filtering module 10 stores in search information storage module should
The heart beating response message structure rule of application identities (i.e. receiving the application identities entrained by heartbeat message)
Time, if not searching the heartbeat message structure rule of aforementioned applications mark association, recognize current for first
Receive the heartbeat message of application corresponding to aforementioned applications mark, now need to wake up application processor up and carry out
Response.
Concrete, this heartbeat message is submitted to application processor by heartbeat packet filtering module 10.Application processes
After device receives the heartbeat message of heartbeat packet filtering module 10 transmission, that calls that this heartbeat message carries should
Carry out response with the application corresponding to mark, obtain the heart beating response message of corresponding aforementioned heartbeat message, and
The heart beating response message obtained is transmitted to heartbeat packet filtering module 10.
When heartbeat packet filtering module 10 receives the heart beating response message of application processor transmission, based on heart beating
This heart beating response message is back to the corresponding server of network side by the server ip address in response message.
Meanwhile, heartbeat packet filtering module 10 is additionally based upon the heart beating response message that application processor returns, and generates
And associate the heart beating response message structure rule storing aforementioned applications mark.
Concrete, heartbeat packet filtering module 10 is by the server ip address in this heart beating response message and port
Number, it is understood that there may be special field information, be saved in the correspondence of the mark of aforementioned applications in information storage module
In row, form the heart beating response message structure rule associating this application identities.
Further, based on aforementioned first or second embodiments, heartbeat message processing method of the present invention is proposed
The 3rd embodiment, corresponding to the 3rd embodiment of aforementioned heartbeat message processing means, in the present embodiment,
Before the heart beating response message structure rule of the described application identities association obtaining storage described in step S10,
Also include:
Whether the application identities of baseband processing chip identification extraction is to preset application identities;
When this application identities is for presetting application identities, proceed to perform the described described application mark obtaining storage
Know the heart beating response message structure rule of association;
When this application identities is not for presetting application identities, baseband processing chip abandons the heartbeat message of reception.
It should be noted that the difference of the present embodiment and previous embodiment is, the present embodiment is only to part
Heartbeat message carry out response, illustrate only for this difference below, other can respectively refer to aforementioned respectively
Embodiment, here is omitted.
In the present embodiment, heartbeat packet filtering module 10 is searched for information and is stored module acquisition heartbeat message response
The operation of rule needs to spend certain process resource, and in actual applications, possible application processor is transported
The application of row has been rolled off the production line, but the server of correspondence still may proceed to heartbeat message, until
It confirms that aforementioned applications has rolled off the production line.In consideration of it, the heartbeat message processing means of the present embodiment is only to reception
The heartbeat message of part carry out response.
Concrete, heartbeat packet filtering module 10 is extracting the application identities entrained by the heartbeat message of reception
Afterwards, first identify whether this application identities is to preset application identities;If it is pre-for recognizing this application identities
If during application identities, then obtain the heart beating response message structure rule of this application identities association of storage, with
Carrying out the response of heartbeat message, specifically can refer to the associated description of previous embodiment, here is omitted;
If recognize this application identities not for presetting application identities, then heartbeat packet filtering module 10 directly abandons and connects
The aforementioned heartbeat message received, does not carry out response.
Wherein, that runs before default application identities includes application processor dormancy has network access authority
The application identities of application.
It should be noted that in this article, term " includes ", " comprising " or its other variant any are intended to
Contain comprising of nonexcludability, so that include the process of a series of key element, method, article or dress
Put and not only include those key elements, but also include other key element being not expressly set out, or also include
The key element intrinsic for this process, method, article or device.In the case of there is no more restriction,
The key element limited by statement " including ... ", it is not excluded that including the process of this key element, method, thing
Product or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-mentioned
Embodiment method can add the mode of required general hardware platform by software and realize, naturally it is also possible to logical
Cross hardware, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the present invention's
The part that prior art is contributed by technical scheme the most in other words can be with the form body of software product
Revealing to come, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, light
Dish) in, including some instructions with so that a station terminal equipment (can be mobile phone, computer, service
Device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
For illustrative purposes, description above employs specific term, to provide saturating to the present invention
Thorough understanding.It will be apparent, however, to one skilled in the art, that in order to put into practice the present invention also
Need not concrete details.The described above of the specific embodiment of the present invention is the mesh in order to illustrate and illustrate
And present.They are not intended to detailed or limit the invention to disclosed precise forms.In view of upper
The religious doctrine in face, many modifications and variations are possible.In order to explain the principle and in fact of the present invention best
Border is applied and is illustrate and described these embodiments, so that others skilled in the art can be best
Utilize the present invention and having to be suitable to the various embodiments of various amendments of intended specific use.It is intended to this
The scope of invention is limited by following claims and its equivalent.
Claims (10)
1. a heartbeat message processing means, is applied to the baseband processing chip of mobile terminal, and its feature exists
In, described heartbeat message processing means includes:
Heartbeat packet filtering module, for receiving, when described baseband processing chip, the heart beating report that network side sends
Literary composition, and application processor in a dormant state time, extract the application processor that described heartbeat message carries and stop
The application identities of the application run before sleeping, and obtain the information of the described application identities association of storage, described
Information includes heart beating response message structure rule;
Forge return information module, for constructing rule construct institute based on the described heart beating response message obtained
State the heart beating response message that heartbeat message is corresponding, and indicate described heartbeat packet filtering module to abandon described heart beating
Message;
Described forgery return information module is additionally operable to the described heart beating response message of structure is back to described net
Network side.
Heartbeat message processing means the most according to claim 1, it is characterised in that described heartbeat packet
Filtering module is additionally operable to, when obtaining described information failure, transmit described heartbeat message to application processor,
And receive the heart beating response message that heartbeat message described in described application processor response is returned;Described heart beating
The heart beating response message that packet filtering module is additionally operable to return described application processor sends to described network side;
Wherein, described application processor is receiving the described heart beating report of described heartbeat packet filtering module transmission
Wen Shi, calls heartbeat message described in the application response that described application identities is corresponding, generates heart beating response message.
Heartbeat message processing means the most according to claim 2, it is characterised in that described heartbeat packet mistake
Filter module is additionally operable to the heart beating response message returned based on described application processor, generates and associate storage institute
State the heart beating response message structure rule of application identities.
4. according to the heartbeat message processing means described in any one of claim 1-3, it is characterised in that institute
Whether state heartbeat packet filtering module and be additionally operable to the described application identities of identification extraction is to preset application identities;Institute
State heartbeat packet filtering module to be additionally operable to, when described application identities is for presetting application identities, obtain the institute of storage
State the information of application identities association;It is not pre-that described heartbeat packet filtering module is additionally operable in described application identities
If during application identities, abandon described heartbeat message.
Heartbeat message processing means the most according to claim 4, it is characterised in that described presetting should
The application mark of the application with network access authority run before including described application processor dormancy by mark
Know.
6. a heartbeat message processing method, is applied to mobile terminal, it is characterised in that described heart beating report
Literary composition processing method includes:
Receiving network side send heartbeat message, and application processor in a dormant state time, base band
Process the application identities of the application run before chip extracts the application processor dormancy that described heartbeat message carries,
And the information that the described application identities obtaining storage associates, described information includes heart beating response message structure rule
Then;
Described baseband processing chip is based on heart beating described in the described heart beating response message structure rule construct obtained
The heart beating response message that message is corresponding, and abandon described heartbeat message;
The described heart beating response message of structure is back to described network side by described baseband processing chip.
Heartbeat message processing method the most according to claim 6, it is characterised in that described acquisition is deposited
After the step of the information of the described application identities association of storage, also include:
When obtaining described information failure, described baseband processing chip is by described heartbeat message transmission extremely application
Processor, and receive the heart beating response message that heartbeat message described in described application processor response is returned;
The heart beating response message that described application processor is returned by described baseband processing chip sends to described net
Network side;
Wherein, described application processor is receiving the described heartbeat message of described baseband processing chip transmission
Time, call heartbeat message described in the application response that described application identities is corresponding, generate heart beating response message.
Heartbeat message processing method the most according to claim 7, it is characterised in that described in described reception
After the step of the heart beating response message that heartbeat message described in application processor response is returned, also include:
The heart beating response message that described baseband processing chip returns based on described application processor, generates and closes
The heart beating response message structure rule of described application identities is deposited in Federal Reserve.
9. according to the heartbeat message processing method described in any one of claim 6-8, it is characterised in that institute
Before the step of the information stating the described application identities association obtaining storage, also include:
Whether the described application identities of described baseband processing chip identification extraction is to preset application identities;
When described application identities is for presetting application identities, proceed to perform the described described application obtaining storage
The step of the information of mark association;
When described application identities is not for presetting application identities, described baseband processing chip abandons described heart beating
Message.
Heartbeat message processing method the most according to claim 9, it is characterised in that described default
The application of the application with network access authority that application identities is run before including described application processor dormancy
Mark.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610490004.1A CN106027332B (en) | 2016-06-28 | 2016-06-28 | Heartbeat message processing unit and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610490004.1A CN106027332B (en) | 2016-06-28 | 2016-06-28 | Heartbeat message processing unit and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106027332A true CN106027332A (en) | 2016-10-12 |
CN106027332B CN106027332B (en) | 2019-08-16 |
Family
ID=57084628
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610490004.1A Active CN106027332B (en) | 2016-06-28 | 2016-06-28 | Heartbeat message processing unit and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106027332B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110225084A (en) * | 2019-05-06 | 2019-09-10 | 北京口袋时尚科技有限公司 | A kind of method and device keeping TCP long connection |
CN110475324A (en) * | 2018-05-09 | 2019-11-19 | 硅谷实验室公司 | Low-power heartbeat for low-power mode |
CN111898045A (en) * | 2020-07-20 | 2020-11-06 | 搜索亚洲科技(深圳)有限公司 | Intelligent search method and device for network resources |
CN113280680A (en) * | 2021-06-24 | 2021-08-20 | 北京盈想东方科技股份有限公司 | Novel networking mode of precision target drone system |
CN113765948A (en) * | 2020-06-02 | 2021-12-07 | 华为技术有限公司 | Long connection device and network system |
CN114258044A (en) * | 2020-09-25 | 2022-03-29 | 华为技术有限公司 | Standby method, system and terminal equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102036349A (en) * | 2009-09-29 | 2011-04-27 | 联想(北京)有限公司 | Method for maintaining connection of terminal and network server, terminal and network server |
CN104284326A (en) * | 2014-10-31 | 2015-01-14 | 北京元心科技有限公司 | Mobile terminal power saving method, system, application processor and wireless module |
CN104754704A (en) * | 2013-12-26 | 2015-07-01 | 华为终端有限公司 | Method for controlling terminal to hibernate and terminal |
US20160043827A1 (en) * | 2014-08-06 | 2016-02-11 | Google Inc. | Systems and methods for detecting wireless communication jamming in a network |
-
2016
- 2016-06-28 CN CN201610490004.1A patent/CN106027332B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102036349A (en) * | 2009-09-29 | 2011-04-27 | 联想(北京)有限公司 | Method for maintaining connection of terminal and network server, terminal and network server |
CN104754704A (en) * | 2013-12-26 | 2015-07-01 | 华为终端有限公司 | Method for controlling terminal to hibernate and terminal |
US20160043827A1 (en) * | 2014-08-06 | 2016-02-11 | Google Inc. | Systems and methods for detecting wireless communication jamming in a network |
CN104284326A (en) * | 2014-10-31 | 2015-01-14 | 北京元心科技有限公司 | Mobile terminal power saving method, system, application processor and wireless module |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110475324A (en) * | 2018-05-09 | 2019-11-19 | 硅谷实验室公司 | Low-power heartbeat for low-power mode |
CN110225084A (en) * | 2019-05-06 | 2019-09-10 | 北京口袋时尚科技有限公司 | A kind of method and device keeping TCP long connection |
CN113765948A (en) * | 2020-06-02 | 2021-12-07 | 华为技术有限公司 | Long connection device and network system |
CN113765948B (en) * | 2020-06-02 | 2022-12-27 | 华为技术有限公司 | Long connection device and network system |
CN111898045A (en) * | 2020-07-20 | 2020-11-06 | 搜索亚洲科技(深圳)有限公司 | Intelligent search method and device for network resources |
CN111898045B (en) * | 2020-07-20 | 2021-07-16 | 搜索亚洲科技(深圳)有限公司 | Intelligent search method and device for network resources |
CN114258044A (en) * | 2020-09-25 | 2022-03-29 | 华为技术有限公司 | Standby method, system and terminal equipment |
CN113280680A (en) * | 2021-06-24 | 2021-08-20 | 北京盈想东方科技股份有限公司 | Novel networking mode of precision target drone system |
Also Published As
Publication number | Publication date |
---|---|
CN106027332B (en) | 2019-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106027332A (en) | Heartbeat message processing device and method | |
KR102424043B1 (en) | Communication apparatus and methods for transmitting a wake up signal comprising synchronization signaling | |
EP3255942B1 (en) | Paging method and device | |
CN109792712B (en) | Paging method, network equipment and terminal equipment | |
US20120178449A1 (en) | Apparatuses and methods for handling mobility management (mm) back-offs | |
CN109314950B (en) | Paging method and device | |
KR102306682B1 (en) | Message transmission method and device | |
CN107509240B (en) | Subscriber Identity Module control method, mobile terminal and computer readable storage medium | |
CN102833699B (en) | Method, system and the mobile communication terminal of simulation bilateral function | |
CN108419290A (en) | Page monitoring method, apparatus, terminal, base station, system and storage medium | |
CN108141700A (en) | The method and apparatus positioned to Idle state user equipment | |
CN105992320A (en) | Discontinuous reception method, wireless access network node and terminal | |
CN113225696B (en) | Paging processing method, device, equipment and storage medium | |
CN103533618A (en) | Terminal control method, terminal control device and terminal control system | |
JP7380005B2 (en) | Wireless terminals, core network nodes, and methods thereof | |
CN116420386A (en) | Wake-up signal for discontinuous reception operation | |
CN108293235A (en) | Random access detection enhancing between user equipment and network during state mismatch | |
CN116567604A (en) | Disaster roaming control method, device, terminal and network side equipment | |
CN116235574A (en) | Wake-up signal reception for paging operations | |
CN116235559A (en) | Transmitting wake-up signals for paging operations | |
CN116326066A (en) | Tracking reference signal enhancement for new air interface | |
CN115804173A (en) | Cross-slot paging configuration and transmission | |
CN113709718B (en) | Single terminal identification method and device | |
CN109788495A (en) | Narrowband internet-of-things terminal, base station, paging success rate method for improving and system | |
CN106900046B (en) | Data transmission system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |