CN106027332B - Heartbeat message processing unit and method - Google Patents

Heartbeat message processing unit and method Download PDF

Info

Publication number
CN106027332B
CN106027332B CN201610490004.1A CN201610490004A CN106027332B CN 106027332 B CN106027332 B CN 106027332B CN 201610490004 A CN201610490004 A CN 201610490004A CN 106027332 B CN106027332 B CN 106027332B
Authority
CN
China
Prior art keywords
heartbeat
message
application
response message
application identities
Prior art date
Application number
CN201610490004.1A
Other languages
Chinese (zh)
Other versions
CN106027332A (en
Inventor
张建
Original Assignee
努比亚技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Priority to CN201610490004.1A priority Critical patent/CN106027332B/en
Publication of CN106027332A publication Critical patent/CN106027332A/en
Application granted granted Critical
Publication of CN106027332B publication Critical patent/CN106027332B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing packet switching networks
    • H04L43/10Arrangements for monitoring or testing packet switching networks using active monitoring, e.g. heartbeat protocols, polling, ping, trace-route

Abstract

The invention discloses a kind of heartbeat message processing units, baseband processing chip applied to mobile terminal, it include: heartbeat packet filtering module, for receiving the heartbeat message of network side transmission when baseband processing chip, and application processor in a dormant state when, the application identities of the application run before the application processor suspend mode that heartbeat message carries are extracted, and obtain the associated information of the application identities of storage, the information of acquisition includes heartbeat response message construction rule;Return information module is forged, for heartbeat response message corresponding to the heartbeat response message construction received heartbeat message of rule construct based on acquisition, and indicates that heartbeat packet filtering module abandons received heartbeat message;Return information module is forged to be also used to the heartbeat response message of construction being back to network side.The invention also discloses a kind of heartbeat message processing methods.The present invention can reduce the energy consumption of mobile terminal.

Description

Heartbeat message processing unit and method

Technical field

The present invention relates to field of communication technology more particularly to a kind of heartbeat message processing units and method.

Background technique

With the rapid development of wireless access wide band technology and mobile terminal technology, people are highly desirable can be whenever and wherever possible Or even easily it can come into being and rapidly send out from internet acquisition information and service, mobile Internet in moving process Exhibition.In order to meet the needs of users, more and more application all has the ability of access mobile Internet on mobile terminal, so as to Service is provided in real time for user.For mobile Internet as mature Ethernet, the data that send and receive in network are bases In C/S (user/server) framework and Socket (socket) is used to be realized.

Currently, most of business is all based on TCP (Transmission Control Protocol, transmission in network Control protocol) realize.Due to the complexity of network environment, the data packet of network transmission may often lose.Therefore, work as user When end actively closes TCP connection (client Socket sends message to server), the Socket of server end possibly can not be received To the request of closing.Due to the resource of server be it is limited and valuable, should not be an invalid connection and retain for a long time and be It unites resource, then needs to introduce a kind of mechanism and server is allowed to may determine that a TCP connection enters invalid state.

In order to judge the validity of TCP connection, the mechanism for being called heartbeat is realized in TCP.If client is arranged Heartbeat, that TCP will send the heartbeat packet of setting number within the regular hour to server end.So-called heartbeat packet is exactly Client regularly sends a fix information and shows that oneself is also online to server-side, and server-side replys a fixed letter after receiving Breath.If server-side does not receive client-side information in a few minutes, then it is assumed that client disconnects, and is released to the money of client reservation Source.Equally, if server is provided with heartbeat, heartbeat packet just is sent from server timing to client, client is responsible for reply Information shows that oneself is still survived.

In the ethernet device for having stabilized power supply to power, TCP heartbeat mechanism can be very good work.However, in electricity On limited mobile terminal, TCP heartbeat mechanism will accelerate the consumption of mobile terminal electricity, bring negative user experience.It is logical Normal, mobile terminal includes application processor and baseband processing chip, wherein operating system, user interface and user's application fortune On application processor, the communication functions such as voice call, short message, online operate on baseband processing chip row.Just think, user's It may be installed simultaneously on mobile terminal and run multiple applications for needing to network, these all may using corresponding server end Heartbeat packet is sent to client.When the mobile terminal of user enters suspend mode, standby (application processor and baseband processing chip are located In dormant state) after, if baseband processing chip receives the heartbeat packet of server end, it will notice application processor.Then it answers It can be waken up by baseband processing chip with processor, restart to run, heartbeat packet is responded.However, application processor is every The secondary time from waking up to suspend mode again is longer, and the electric current for generating and consuming is higher, causes the energy consumption of mobile terminal higher.

Summary of the invention

It is a primary object of the present invention to propose a kind of heartbeat message processing unit and method, it is intended to reduce mobile terminal Energy consumption.

To achieve the above object, the present invention provides a kind of heartbeat message processing unit, at the base band of mobile terminal Chip is managed, which includes:

Heartbeat packet filtering module for receiving the heartbeat message of network side transmission when the baseband processing chip, and is answered When with processor in a dormant state, the application of the application run before the application processor suspend mode that the heartbeat message carries is extracted Mark, and the associated information of the application identities of storage is obtained, the information includes heartbeat response message construction rule;

Return information module is forged, for heartbeat report described in the heartbeat response message construction rule construct based on acquisition The corresponding heartbeat response message of text, and indicate that the heartbeat packet filtering module abandons the heartbeat message;

The return information module of forging is also used to the heartbeat response message of construction being back to the network side.

Optionally, the heartbeat packet filtering module is also used to pass the heartbeat message when obtaining information failure Application processor is transported to, and receives the heartbeat response message that heartbeat message described in the application processor response is returned;It is described Heartbeat packet filtering module is also used to the heartbeat response message that the application processor returns being sent to the network side;

Wherein, the application processor is adjusted when receiving the heartbeat message of the heartbeat packet filtering module transmission The heartbeat message described in the corresponding application response of the application identities generates heartbeat response message.

Optionally, the heartbeat packet filtering module is also used to the heartbeat response message returned based on the application processor, It generates and is associated with the heartbeat response message construction rule for storing the application identities.

Optionally, the heartbeat packet filtering module is also used to identify whether the application identities of extraction are default application mark Know;The heartbeat packet filtering module is also used to obtain the application of storage when the application identities are default application identities Identify associated information;The heartbeat packet filtering module is also used to abandon when the application identities are not default application identities The heartbeat message.

Optionally, the default application identities include run before the application processor suspend mode there is network access authority Application application identities.

In addition, to achieve the above object, the present invention also proposes a kind of heartbeat message processing method, the heartbeat message processing side Method includes:

Receive network side transmission heartbeat message, and application processor in a dormant state when, baseband processing chip The application identities of the application run before the application processor suspend mode that the heartbeat message carries are extracted, and obtains the described of storage and answers With associated information is identified, the information includes heartbeat response message construction rule;

Heartbeat message pair described in heartbeat response message construction rule construct of the baseband processing chip based on acquisition The heartbeat response message answered, and abandon the heartbeat message;

The heartbeat response message of construction is back to the network side by the baseband processing chip.

Optionally, after the step of application identities associated information for obtaining storage, further includes:

When obtaining information failure, the heartbeat message is transmitted to application processor by the baseband processing chip, And receive the heartbeat response message that heartbeat message described in the application processor response is returned;

The heartbeat response message that the application processor returns is sent to the network side by the baseband processing chip;

Wherein, the application processor is called when receiving the heartbeat message of the baseband processing chip transmission Heartbeat message described in the corresponding application response of the application identities, generates heartbeat response message.

Optionally, the step for receiving the heartbeat response message that heartbeat message described in the application processor response is returned After rapid, further includes:

The heartbeat response message that the baseband processing chip is returned based on the application processor generates and is associated with storage institute State the heartbeat response message construction rule of application identities.

Optionally, before the step of application identities associated information for obtaining storage, further includes:

Whether the application identities that the baseband processing chip identification is extracted are default application identities;

When the application identities are default application identities, it is transferred to and executes the application identities association for obtaining storage Information the step of;

When the application identities are not default application identities, the baseband processing chip abandons the heartbeat message.

Optionally, the default application identities include run before the application processor suspend mode there is network access authority Application application identities.

The present invention utilizes the heartbeat message processing unit for being implemented in the baseband processing chip of mobile terminal, so that Base-Band Processing Chip receive the heartbeat message from network side and application processor in a dormant state when, wake up be in suspend mode shape The application processor of state, but utilize the heartbeat message processing construction rule prestored, the heart of the corresponding received heartbeat message of construction Response message is jumped, and is back to network side and carries out response, realizes that agent application processor completes the response of heartbeat message.Compared to The prior art, the present invention are not necessarily to wake up the response that application processor carries out heartbeat message, avoid unnecessary electric quantity consumption, reach Energy-saving purpose is arrived.

Detailed description of the invention

The hardware structural diagram of Fig. 1 each one mobile terminal of embodiment to realize the present invention;

Fig. 2 is the functional block diagram of heartbeat message processing unit first embodiment of the present invention;

Fig. 3 is the example of storage heartbeat response message construction rule in heartbeat message processing unit first embodiment of the present invention Figure;

Fig. 4 is the flow diagram of heartbeat message processing method first embodiment of the present invention.

The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.

Specific embodiment

It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.

Referring to Fig. 1, one hardware structural diagram of the mobile terminal of each embodiment to realize the present invention.The present invention is implemented The mobile terminal of example includes: Subscriber Identity Module 101, baseband processing chip 102, application processor 103, antenna 104, memory 105, transceiver 106.Wherein, baseband processing chip 102 includes: signal processor 107 and modem processor 108.

Subscriber Identity Module 101 is placed in card slot (not shown).Subscriber Identity Module 101 has unique identification number (ICCID), the data (for example, MNC, mobile network number) of related network and in Subscriber Identity Module 101 are stored with, according to identifier The data of code or related network can determine the type of Subscriber Identity Module.Subscriber Identity Module type determine after, could correctly obtain with Its corresponding network parameter file is to carry out searching net and network registry etc..

For storing data, specific above-mentioned network parameter file can be stored in memory 105 memory 105.Storage Device 105 can be any usable storage medium that general or special-purpose can access, for example, may include RAM, ROM, EEPROM, magnetic disk storage or other magnetic storage apparatus.

Signal processor 107 includes hardware appropriate, logical device, circuit and/or coding, for completing protocol stack physics The Base-Band Processing function of layer, including digital joint-detection, modulating/demodulating, interleaving/deinterleaving, channel coding/decoding, pulse are whole Shape etc..In one embodiment, protocol stack includes the various agreements with the network formats of network interaction, for example, LTE/WCDMA/ The protocol code provided in the communication standards such as GSM/TDSCDMA/1X/CDMA/EVDO.The agreement of these standards is user equipment It interacts with carrier network (for example, making a phone call by data traffic online, by VOLTE or being beaten by CS circuit domain Phone etc.) must be complied with.

Modem processor 108 is used for the part of the physical layer in processing protocol stack software or more, and for bearing Wireless communication function is blamed, A/D conversion, the D/A conversion, the encoding and decoding of audio digital signals, channel coding/decoding of voice signal are completed With the timing control of modem portion etc..

Application processor 103 for run open operating system, drive software (such as screen driving, SD card driving etc. Deng), it is responsible for the control of whole system.

Transceiver 106 is mainly used for completing the functions such as up-conversion, down coversion, filtering and the amplification of signal.

Antenna 104 is mainly used for transmitting/receiving signal.

Referring to Fig. 2, in the first embodiment of heartbeat message processing unit of the present invention, the heartbeat message processing unit packet It includes:

Heartbeat packet filtering module 10 for receiving the heartbeat message of network side transmission when baseband processing chip, and is applied Processor in a dormant state when, extract the application of the application run before the application processor suspend mode that received heartbeat message carries Mark, and the associated information of the application identities of storage is obtained, the information of acquisition includes heartbeat response message construction rule;

Return information module 20 is forged, constructs the received heartbeat report of rule construct for the heartbeat response message based on acquisition The corresponding heartbeat response message of text, and indicate that heartbeat packet filtering module 10 abandons received heartbeat message;

Return information module 20 is forged to be also used to the heartbeat response message of construction being back to network side.

It should be noted that the heartbeat message processing unit that the present embodiment proposes constructs the Base-Band Processing core in mobile terminal Piece completes the response of heartbeat message for agent application processor.To avoid application processor from frequently being waken up by heartbeat message, Achieve the purpose that energy-saving.

It will be appreciated by persons skilled in the art that mobile terminal is in the process of running, if into dormant state, application Processor and baseband processing chip will enter dormant state.In embodiments of the present invention, mobile terminal in a dormant state When, if receiving the heartbeat message from network side, baseband processing chip will be waken up, at this point, baseband processing chip is not The application processor of wake-up in a dormant state, but the heartbeat packet filter module by constructing heartbeat message processing unit on it Block 10 parses received heartbeat message, extracts application identities entrained by the heartbeat message.Wherein, application identities are used It, can be using the uid information conduct of the application of operation by taking Android system as an example in the application of uniquely characterization application processor operation Aforementioned applications mark.

After the application identities of the application run before extracting application processor suspend mode entrained by heartbeat message, heartbeat Packet filtering module 10 obtains the construction rule of heartbeat response message associated by the application identities extracted, i.e., in normal work, Rule is constructed for constructing the heartbeat response message of heartbeat response message using when the heartbeat message for responding its server.Wherein, The construction rule of heartbeat response message associated by different application identities is different.

Specifically, in the present embodiment, heartbeat message processing unit further includes registration/cancellation module (Fig. 2 is not shown), letter It ceases storage module (Fig. 2 is not shown, and can specifically be taken on by the memory 105 in Fig. 1).Wherein, information storage module is for storing up The heartbeat response message construction rule of association different application mark is deposited, referring to Fig. 3, information storage module can be stored up in the form of chained list The heartbeat response message construction rule of association different application mark is deposited, as shown in figure 3, heartbeat response message construction rule is at least wrapped The address (Internet Protocol) IP and the port numbers of server are included, can also include special field information etc..Below to move For dynamic terminal operating Android system, the formation of heartbeat response message construction rule is illustrated.

1, after application processor starting operation application, whether there is network access authority to judge that this is answered according to the application of operation With whether possibility is networked, wherein when judging that the application may need to network, application processor marks the application of the application Know, i.e. the uid information of the application is sent to registration/cancellation module.

2, after registration/cancellation module receives the uid information that application processor transmits, which is added to information and is deposited It stores up in module.As shown in figure 3, entire information storage module storing data in the form of chained list.When first, believe using only uid Breath is added into information storage module.

3, after baseband processing chip receives any message of network side transmission, received message is transferred into heartbeat packet mistake Module 10 is filtered to handle.Wherein, since heartbeat message does not contain actual data generally, and it only contains protocol header, heartbeat packet mistake Filter module 10 can go out possible heartbeat message in received message according to the length filtration of message.

4, for the heartbeat message being obtained by filtration, heartbeat packet filtering module 10 extracts the corresponding uid letter of the heartbeat message Breath, and information storage module is searched for, herein, uid information is only contained in information storage module.Heartbeat packet filtering module 10 is by the heart It jumps message and is submitted to application processor.

5, after application processor receives the heartbeat message that heartbeat packet filtering module 10 transmits, the heartbeat message is called to take Application corresponding to the uid information of band carries out response, obtain the heartbeat response message for corresponding to aforementioned heartbeat message, and will obtain Heartbeat response message is transmitted to heartbeat packet filtering module 10.

6, when heartbeat packet filtering module 10 receives the heartbeat response message of application processor transmission, by the heartbeat response report Server ip address and port numbers in text, it is understood that there may be special field information, be saved in aforementioned uid in information storage module In the correspondence row of information, the heartbeat response message construction rule for being associated with the uid information is formed.

In embodiments of the present invention, heartbeat packet filtering module 10 is extracting application mark entrained by received heartbeat message After knowledge, the information for being associated with the application identities stored in information storage module is searched for, specific search is associated with the application identities Heartbeat response message in information constructs rule, and the heartbeat response message searched is then constructed regular transmission and is replied to forging Information module 20.

Return information module 20 is forged in the heartbeat response message construction rule for receiving the transmission of heartbeat packet filtering module 10 Later, using server ip address therein and port numbers and/or special field information, heartbeat response message is constructed, and refer to Show that heartbeat packet filtering module 10 abandons received heartbeat message (not waking up in dormant application processor), and is based on The heartbeat response message is back to the corresponding server of network side by the server ip address in heartbeat response message, that is, is realized The response of baseband processing chip agent application processor completion heartbeat message.

Heartbeat message processing unit proposed by the present invention, is implemented in the baseband processing chip of mobile terminal, comes receiving The heartbeat message and application processor of automatic network side in a dormant state when, do not wake up in a dormant state application processing Device, but the heartbeat message processing construction rule prestored is utilized, the heartbeat response message of the corresponding received heartbeat message of construction, and It is back to network side and carries out response, realize that agent application processor completes the response of heartbeat message.Compared to the prior art, this hair The bright response that heartbeat message is carried out without waking up application processor, avoids unnecessary electric quantity consumption, has reached energy-saving Purpose.

Further, it is based on first embodiment, proposes the second embodiment of heartbeat message processing unit of the present invention, this implementation The difference of example and first embodiment is that in the present embodiment, heartbeat packet filtering module 10 is also used to obtaining aforementioned applications mark When knowing the failure of associated information, received heartbeat message is transmitted to application processor, and receive the application processor response heart Jump the heartbeat response message that message is returned;Heartbeat packet filtering module 10 is also used to the heartbeat response report for returning to application processor Text is sent to network side;

Wherein, application processor calls the heartbeat report when receiving the heartbeat message of the transmission of heartbeat packet filtering module 10 Corresponding application response heartbeat message of application identities that text carries generates heartbeat response message.

It should be noted that the difference only for the present embodiment and first embodiment is illustrated below, other be can refer to First embodiment, details are not described herein again.

In the present embodiment, association application identities that heartbeat packet filtering module 10 stores in search information storage module When the heartbeat response message of (receiving application identities entrained by heartbeat message) constructs rule, if not searching aforementioned applications Associated heartbeat message construction rule is identified, recognizing current is to receive the heartbeat that aforementioned applications identify corresponding application for the first time Message needs to wake up at this time application processor and carries out response.

Specifically, the heartbeat message is submitted to application processor by heartbeat packet filtering module 10.Application processor receives Heartbeat packet filtering module 10 transmit heartbeat message after, call the heartbeat message carry application identities corresponding to application into Row response obtains the heartbeat response message for corresponding to aforementioned heartbeat message, and obtained heartbeat response message is transmitted to heartbeat packet Filtering module 10.

When heartbeat packet filtering module 10 receives the heartbeat response message of application processor transmission, it is based on heartbeat response message In server ip address the heartbeat response message is back to the corresponding server of network side.

Meanwhile the heartbeat response message that heartbeat packet filtering module 10 is also returned based on application processor, it generates and is associated with storage Deposit the heartbeat response message construction rule of aforementioned applications mark.

Specifically, heartbeat packet filtering module 10 is by the server ip address and port numbers in the heartbeat response message, it may Existing special field information is saved in the correspondence row that aforementioned applications identify in information storage module, is formed and is associated with the application The heartbeat response message of mark constructs rule.

Further, aforementioned first or second embodiments are based on, propose that the third of heartbeat message processing unit of the present invention is real Example is applied, the difference of the present embodiment and previous embodiment is, in the present embodiment, heartbeat packet filtering module 10 is also used to identify and mention Whether the application identities taken are default application identities;Heartbeat packet filtering module 10 is also used in the application identities be default application mark When knowledge, the associated information of the application identities of storage is obtained;Heartbeat packet filtering module 10 is also used in the application identities not be pre- If when application identities, abandoning received heartbeat message.

It should be noted that being illustrated below only for above-mentioned difference, other can respectively refer to foregoing embodiments, this Place repeats no more.

In the present embodiment, heartbeat packet filtering module 10 searches for the behaviour that information storage module obtains heartbeat message response rule Need to spend certain process resource, and in practical applications, the application of possible application processor operation actually under Line, but corresponding server still will continue to that heartbeat message occurs, until it confirms that aforementioned applications are offline.In consideration of it, this The heartbeat message processing unit of embodiment only carries out response to the heartbeat message of received part.

Specifically, heartbeat packet filtering module 10 is after extracting application identities entrained by received heartbeat message, it is first First identify whether the application identities are default application identities;If recognizing the application identities is when presetting application identities, to obtain The associated heartbeat response message construction rule of the application identities of storage, to carry out the response of heartbeat message, before specifically can refer to The associated description of embodiment is stated, details are not described herein again;If recognizing the application identities not is heartbeat packet when presetting application identities Filtering module 10 directly abandons received aforementioned heartbeat message, without response.

Wherein, default application identities include answering for the application with network access authority run before application processor suspend mode With mark.

The present invention further provides a kind of heartbeat message processing methods to correspond to aforementioned heartbeat in conjunction with referring to Fig. 2 and Fig. 4 The first embodiment of message process device, in the first embodiment of heartbeat message processing method of the present invention, at the heartbeat message Reason method includes:

Step S10, receive network side transmission heartbeat message, and application processor in a dormant state when, base band Processing chip extracts the application identities of the application run before application processor suspend mode entrained by received heartbeat message, and obtains and deposit The associated information of the application identities of storage, the information of acquisition include heartbeat message construction rule;

Step S20, baseband processing chip construct the received heartbeat message of rule construct based on the heartbeat response message of acquisition Corresponding heartbeat response message, and abandon received heartbeat message;

The heartbeat response message of construction is back to network side by step S30, 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 the heart of baseband processing chip It jumps message process device to execute, completes the response of heartbeat message, by heartbeat message processing unit agent application processor to keep away Exempt from application processor and frequently waken up by heartbeat message, is achieved the purpose that energy-saving.Below with the replacement of heartbeat message processing unit Baseband processing chip is illustrated for executing subject.

It will be appreciated by persons skilled in the art that mobile terminal is in the process of running, if into dormant state, application Processor and baseband processing chip will enter dormant state.In embodiments of the present invention, mobile terminal in a dormant state When, if receiving the heartbeat message from network side, baseband processing chip will be waken up, at this point, baseband processing chip is not The application processor of wake-up in a dormant state, but the heartbeat packet filter module by constructing heartbeat message processing unit on it Block 10 parses received heartbeat message, extracts application identities entrained by the heartbeat message.Wherein, application identities are used It, can be using the uid information conduct of the application of operation by taking Android system as an example in the application of uniquely characterization application processor operation Aforementioned applications mark.

After the application identities of the application run before extracting application processor suspend mode entrained by heartbeat message, heartbeat Packet filtering module 10 obtains the construction rule of heartbeat response message associated by the application identities extracted, i.e., in normal work, Rule is constructed for constructing the heartbeat response message of heartbeat response message using when the heartbeat message for responding its server.Wherein, The construction rule of heartbeat response message associated by different application identities is different.

Specifically, in the present embodiment, heartbeat message processing unit further includes registration/cancellation module (Fig. 2 is not shown), letter It ceases storage module (Fig. 2 is not shown, and can specifically be taken on by the memory 105 in Fig. 1).Wherein, information storage module is for storing up The heartbeat response message construction rule of association different application mark is deposited, referring to Fig. 3, information storage module can be stored up in the form of chained list The heartbeat response message construction rule of association different application mark is deposited, as shown in figure 3, heartbeat response message construction rule is at least wrapped The address (Internet Protocol) IP and the port numbers of server are included, can also include special field information etc..Below to move For dynamic terminal operating Android system, the formation of heartbeat response message construction rule is illustrated.

1, after application processor starting operation application, whether there is network access authority to judge that this is answered according to the application of operation With whether possibility is networked, wherein when judging that the application may need to network, application processor marks the application of the application Know, i.e. the uid information of the application is sent to registration/cancellation module.

2, after registration/cancellation module receives the uid information that application processor transmits, which is added to information and is deposited It stores up in module.As shown in figure 3, entire information storage module storing data in the form of chained list.When first, believe using only uid Breath is added into information storage module.

3, after baseband processing chip receives any message of network side transmission, received message is transferred into heartbeat packet mistake Module 10 is filtered to handle.Wherein, since heartbeat message does not contain actual data generally, and it only contains protocol header, heartbeat packet mistake Filter module 10 can go out possible heartbeat message in received message according to the length filtration of message.

4, for the heartbeat message being obtained by filtration, heartbeat packet filtering module 10 extracts the corresponding uid letter of the heartbeat message Breath, and information storage module is searched for, herein, uid information is only contained in information storage module.Heartbeat packet filtering module 10 is by the heart It jumps message and is submitted to application processor.

5, after application processor receives the heartbeat message that heartbeat packet filtering module 10 transmits, the heartbeat message is called to take Application corresponding to the uid information of band carries out response, obtain the heartbeat response message for corresponding to aforementioned heartbeat message, and will obtain Heartbeat response message is transmitted to heartbeat packet filtering module 10.

6, when heartbeat packet filtering module 10 receives the heartbeat response message of application processor transmission, by the heartbeat response report Server ip address and port numbers in text, it is understood that there may be special field information, be saved in aforementioned uid in information storage module In the correspondence row of information, the heartbeat response message construction rule for being associated with the uid information is formed.

In embodiments of the present invention, heartbeat packet filtering module 10 is extracting application mark entrained by received heartbeat message After knowledge, the information for being associated with the application identities stored in information storage module is searched for, specific search is associated with the application identities Heartbeat response message in information constructs rule, and the heartbeat response message searched is then constructed regular transmission and is replied to forging Information module 20.

Return information module 20 is forged in the heartbeat response message construction rule for receiving the transmission of heartbeat packet filtering module 10 Later, using server ip address therein and port numbers and/or special field information, heartbeat response message is constructed, and refer to Show that heartbeat packet filtering module 10 abandons received heartbeat message (not waking up in dormant application processor), and is based on The heartbeat response message is back to the corresponding server of network side by the server ip address in heartbeat response message, that is, is realized The response of baseband processing chip agent application processor completion heartbeat message.

Heartbeat message processing method proposed by the present invention utilizes the heartbeat report for the baseband processing chip for being implemented in mobile terminal Literary processing unit, so that baseband processing chip is receiving the heartbeat message from network side and application processor is in suspend mode shape When state, application processor in a dormant state is not waken up, but utilizes the heartbeat message processing construction rule prestored, construction The heartbeat response message of corresponding received heartbeat message, and be back to network side and carry out response, realize that agent application processor is complete At the response of heartbeat message.Compared to the prior art, the present invention is not necessarily to wake up the response that application processor carries out heartbeat message, keeps away Unnecessary electric quantity consumption is exempted from, has achieved the purpose that energy-saving.

Further, it is based on first embodiment, the second embodiment of heartbeat message processing method of the present invention is proposed, corresponds to The second embodiment of aforementioned heartbeat message processing unit, in the present embodiment, after step S10, further includes:

When obtaining the associated information failure of aforementioned applications mark, received heartbeat message is transmitted to by baseband processing chip Application processor, and receive the heartbeat response message that the application processor response heartbeat message is returned;

The heartbeat response message that application processor returns is back to network side by baseband processing chip;

Wherein, application processor calls heartbeat message to carry when receiving the heartbeat message of baseband processing chip transmission The corresponding application response heartbeat message of application identities, generate heartbeat response message.

It should be noted that the difference of the present embodiment and first embodiment is, embodiment adds obtain heartbeat to answer Processing operation when message construction rule failure is answered, the difference only for the present embodiment and first embodiment is illustrated below, Other can refer to first embodiment, and details are not described herein again.

In the present embodiment, association application identities that heartbeat packet filtering module 10 stores in search information storage module When the heartbeat response message of (receiving application identities entrained by heartbeat message) constructs rule, if not searching aforementioned applications Associated heartbeat message construction rule is identified, recognizing current is to receive the heartbeat that aforementioned applications identify corresponding application for the first time Message needs to wake up at this time application processor and carries out response.

Specifically, the heartbeat message is submitted to application processor by heartbeat packet filtering module 10.Application processor receives Heartbeat packet filtering module 10 transmit heartbeat message after, call the heartbeat message carry application identities corresponding to application into Row response obtains the heartbeat response message for corresponding to aforementioned heartbeat message, and obtained heartbeat response message is transmitted to heartbeat packet Filtering module 10.

When heartbeat packet filtering module 10 receives the heartbeat response message of application processor transmission, it is based on heartbeat response message In server ip address the heartbeat response message is back to the corresponding server of network side.

Meanwhile the heartbeat response message that heartbeat packet filtering module 10 is also returned based on application processor, it generates and is associated with storage Deposit the heartbeat response message construction rule of aforementioned applications mark.

Specifically, heartbeat packet filtering module 10 is by the server ip address and port numbers in the heartbeat response message, it may Existing special field information is saved in the correspondence row that aforementioned applications identify in information storage module, is formed and is associated with the application The heartbeat response message of mark constructs rule.

Further, aforementioned first or second embodiments are based on, propose that the third of heartbeat message processing method of the present invention is real Example is applied, corresponding to the 3rd embodiment of aforementioned heartbeat message processing unit, in the present embodiment, acquisition described in step S10 is deposited Before the associated heartbeat response message construction rule of the application identities of storage, further includes:

Whether the application identities that baseband processing chip identification is extracted are default application identities;

When the application identities are default application identities, it is associated to be transferred to the execution application identities for obtaining storage Heartbeat response message construction rule;

When the application identities are not default application identities, baseband processing chip abandons received heartbeat message.

It should be noted that the difference of the present embodiment and previous embodiment is, the present embodiment is only to the heartbeat report of part Text carries out response, is illustrated below only for the difference, other can respectively refer to foregoing embodiments, and details are not described herein again.

In the present embodiment, heartbeat packet filtering module 10 searches for the behaviour that information storage module obtains heartbeat message response rule Need to spend certain process resource, and in practical applications, the application of possible application processor operation actually under Line, but corresponding server still will continue to that heartbeat message occurs, until it confirms that aforementioned applications are offline.In consideration of it, this The heartbeat message processing unit of embodiment only carries out response to the heartbeat message of received part.

Specifically, heartbeat packet filtering module 10 is after extracting application identities entrained by received heartbeat message, it is first First identify whether the application identities are default application identities;If recognizing the application identities is when presetting application identities, to obtain The associated heartbeat response message construction rule of the application identities of storage, to carry out the response of heartbeat message, before specifically can refer to The associated description of embodiment is stated, details are not described herein again;If recognizing the application identities not is heartbeat packet when presetting application identities Filtering module 10 directly abandons received aforementioned heartbeat message, without response.

Wherein, default application identities include answering for the application with network access authority run before application processor suspend mode With mark.

It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include the other elements being 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 being somebody's turn to do There is also other identical elements in the process, method of element, article or device.

The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.

Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.

For illustrative purposes, the description of front has used specific term, to provide a thorough understanding of the present invention.So And it will be apparent to those skilled in the art that not needing concrete details to practice the present invention.The present invention The foregoing description of specific embodiment be to present for purposes of illustration and description.They are not intended in detail or send out this It is bright to be limited to disclosed precise forms.In view of religious doctrine above, many modifications and variations are possible.In order to best explain this The principle and its practical application of invention and these embodiments have shown and described, to enable others skilled in the art Best using the present invention and with the various embodiments for being suitable for the expected specific various modifications used.It is intended to model of the invention It encloses by following claims and its equivalent and limits.

Claims (8)

1. a kind of heartbeat message processing unit, the baseband processing chip applied to mobile terminal, which is characterized in that the heartbeat report Literary processing unit includes:
Heartbeat packet filtering module, for receiving the heartbeat message of network side transmission when the baseband processing chip, and at application When managing device in a dormant state, the application mark of the application run before the application processor suspend mode that the heartbeat message carries is extracted Know, and obtain the associated information of the application identities of storage, the information includes heartbeat response message construction rule;
Return information module is forged, for heartbeat message pair described in the heartbeat response message construction rule construct based on acquisition The heartbeat response message answered, and indicate that the heartbeat packet filtering module abandons the heartbeat message;
The return information module of forging is also used to the heartbeat response message of construction being back to the network side;
The heartbeat packet filtering module is also used to that the heartbeat message is transmitted to using processing when obtaining information failure Device, and the heartbeat response message that heartbeat message described in the application processor response is returned is received, by the application processor The heartbeat response message of return is sent to the network side;Wherein, the application processor is receiving the heartbeat packet filtering When the heartbeat message of module transfer, heartbeat message described in the corresponding application response of the application identities is called, generates heartbeat Response message.
2. heartbeat message processing unit according to claim 1, which is characterized in that the heartbeat packet filtering module is also used to base In the heartbeat response message that the application processor returns, generates and be associated with the heartbeat response message structure for storing the application identities Make rule.
3. -2 described in any item heartbeat message processing units according to claim 1, which is characterized in that the heartbeat packet filter module Block is also used to identify whether the application identities of extraction are default application identities;The heartbeat packet filtering module is also used in institute Stating application identities is when presetting application identities, to obtain the associated information of the application identities of storage;The heartbeat packet filter module Block is also used to abandon the heartbeat message when the application identities are not default application identities.
4. heartbeat message processing unit according to claim 3, which is characterized in that the default application identities include described The application identities of the application with network access authority run before application processor suspend mode.
5. a kind of heartbeat message processing method is applied to mobile terminal, which is characterized in that the heartbeat message processing method packet It includes:
Receive network side transmission heartbeat message, and application processor in a dormant state when, baseband processing chip extract The application identities of the application run before the application processor suspend mode that the heartbeat message carries, and obtain the application mark of storage Know associated information, the information includes heartbeat response message construction rule;
When obtaining information failure, the heartbeat message is transmitted to application processor by the baseband processing chip, and is connect Receive the heartbeat response message that heartbeat message described in the application processor response is returned;
The heartbeat response message that the application processor returns is sent to the network side by the baseband processing chip;
Wherein, the application processor is when receiving the heartbeat message of the baseband processing chip transmission, described in calling Heartbeat message described in the corresponding application response of application identities generates heartbeat response message;
Heartbeat message described in heartbeat response message construction rule construct of the baseband processing chip based on acquisition is corresponding Heartbeat response message, and abandon the heartbeat message;
The heartbeat response message of construction is back to the network side by the baseband processing chip.
6. heartbeat message processing method according to claim 5, which is characterized in that described to receive the application processor response After the step of heartbeat response message that the heartbeat message is returned, further includes:
The heartbeat response message that the baseband processing chip is returned based on the application processor is generated and is associated with described in storage and answers Rule is constructed with the heartbeat response message of mark.
7. according to the described in any item heartbeat message processing methods of claim 5-6, which is characterized in that the institute for obtaining storage Before the step of stating application identities associated information, further includes:
Whether the application identities that the baseband processing chip identification is extracted are default application identities;
When the application identities are default application identities, it is transferred to and executes the associated letter of the application identities for obtaining storage The step of breath;
When the application identities are not default application identities, the baseband processing chip abandons the heartbeat message.
8. heartbeat message processing method according to claim 7, which is characterized in that the default application identities include described The application identities of the application with network access authority run before application processor suspend mode.
CN201610490004.1A 2016-06-28 2016-06-28 Heartbeat message processing unit and method CN106027332B (en)

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 CN106027332A (en) 2016-10-12
CN106027332B true CN106027332B (en) 2019-08-16

Family

ID=57084628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610490004.1A CN106027332B (en) 2016-06-28 2016-06-28 Heartbeat message processing unit and method

Country Status (1)

Country Link
CN (1) CN106027332B (en)

Citations (3)

* Cited by examiner, † Cited by third party
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9787424B2 (en) * 2014-08-06 2017-10-10 Google Inc. Systems and methods for detecting wireless communication jamming in a network

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
CN104284326A (en) * 2014-10-31 2015-01-14 北京元心科技有限公司 Mobile terminal power saving method, system, application processor and wireless module

Also Published As

Publication number Publication date
CN106027332A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
Zheng et al. Challenges of massive access in highly dense LTE-advanced networks with machine-to-machine communications
TWI596924B (en) Context-aware peer-to-peer communication
CN106233697B (en) Method and its equipment of the processing for the RLC PDU of D2D communication system received
CN105580327B (en) For transmitting the method and device thereof of notification message in M2M system
Laya et al. Is the random access channel of LTE and LTE-A suitable for M2M communications? A survey of alternatives
CN104247556B (en) Communication system
JP5827359B2 (en) Method and apparatus for machine-to-machine communication registration
JP2014131306A (en) Diagnostic monitoring by wireless device
CN104322132B (en) Method, user equipment and the base station of control request uplink authorization resource
CN104813641B (en) The method and apparatus that " keep-alive " message frequency for the application to being run on movement station is held consultation
CN102067479B (en) Method for transmitting MAC PDU
EP2730108B1 (en) Machine to machine (m2m) application server, xdms server, and methods for m2m applications group management
KR20150003294A (en) Method to identify and differentiate background traffic
CN1839638B (en) Method and apparatus for facilitating data transmissions
CN100397918C (en) Methods and apparatus for delivering a message to two or more associated wireless communication devices
ES2763165T3 (en) Semi-persistent planning alignment and discontinuous reception
RU2654539C2 (en) System and method for always on connections in wireless communications system
CN103548385B (en) The equipment room wireless wide area network switching of foundation-free facility auxiliary
CN101237692B (en) Apparatus, and associated method, for providing an instance identifier to a network database node of a mobile network
ES2274251T3 (en) Procedure and appliance to add a new member to an active group call in a group communications network.
CN104039026B (en) The apparatus and method of connection are rebuild in mobile communication system environment
CN105592439A (en) Terminal and communication method
US8811979B2 (en) Method for providing private information to mobile user and associated wireless communication network and mobile station
CN107925950A (en) The method, apparatus and computer program product that service discovery for wireless communication is acted on behalf of
CN102724324B (en) Message pushes integrating apparatus and message pushes integration 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