A kind of recording method of message registration and system
Technical field
The present invention relates to communication technique field, particularly a kind of recording method of message registration and system.
Background technology
In the present case, due to mobile phone mechanism problem, message registration can only preserve after end of conversation.And work as and sent a telegram here
In journey or in communication process, cannot be carried out normal talking situations such as mobile phone power-off or crashes, then cannot be to carrying out
Call carry out record preserve, make user have lost part call-information.
Content of the invention
The main purpose of the embodiment of the present invention is to provide a kind of recording method of message registration and system.
The purpose of the embodiment of the present invention is achieved by following technical proposals:
A kind of recording method of message registration, including:
When communicating terminal starts, whether preserve call-information in detection message registration extra buffer, described call
Record extra buffer is in the read only memory ROM of described communicating terminal;
If detecting in this message registration extra buffer and preserving call-information, this call-information is added to call
In record;
After described call-information is added to message registration, the call that will be preserved in described message registration extra buffer
Information deletion.
Described this call-information is added in message registration, including:
Detect whether the call-information being preserved in described message registration extra buffer is complete;
If described call-information is complete, this call-information is added in message registration;
If described call-information is imperfect, it is added to after this call-information with default identifier or presupposed information, will add
Call-information afterwards is added in message registration.
During the described startup in communicating terminal, before whether preserving call-information in detection message registration extra buffer,
Also include:
Detection acts on the call trigger on communicating terminal;
If call trigger is detected, obtain the call-information of this call;
Acquired call-information is saved in message registration extra buffer.
Methods described, also includes:
The talking state that detection acts on described call changes signal;
If talking state is detected to change signal, judge whether this call terminates;
If this call does not terminate, obtain the call-information after talking state changes;
It is logical that call-information renewal after acquired talking state is changed is preserved in message registration extra buffer
Words information.
Methods described, also includes:
The talking state that detection acts on described call changes signal;
If talking state is detected to change signal, judge whether this call terminates;
If this end of conversation, obtain this call-information;
This call-information after described end of conversation acquired is added in message registration;
After after described end of conversation, this acquired call-information is added to message registration, will be interim for described message registration
The call-information being preserved in relief area is deleted.
A kind of record system of message registration, including:Interim call-information detector unit, message registration writing unit and face
When call-information delete unit;
Described interim call-information detector unit, for when communicating terminal starts, detecting message registration extra buffer
In whether preserve call-information, described message registration extra buffer is in the read only memory ROM of described communicating terminal;
Described message registration writing unit, for preserving call-information detecting in this message registration extra buffer
When, this call-information is added in message registration;
Described interim call-information deletes unit, for, after described call-information is added to message registration, described leading to
The call-information being preserved in words record extra buffer is deleted.
Described message registration writing unit, including:Interim call-information integrity detection unit, interim call-information supplement
Unit and interim call-information writing unit;
Described interim call-information integrity detection unit, is preserved for detecting in described message registration extra buffer
Call-information whether complete;
Described interim call-information supplementary units, for when described call-information is imperfect, with default identifier or default
Information is added in this call-information;
Described interim call-information writing unit, supplements for by complete call-information or by described interim call-information
The complete call-information of unit supplement is added in message registration.
Also include:Trigger detector unit, call-information acquiring unit and interim call-information storage unit;
Described trigger detector unit, acts on the call trigger on communicating terminal for detection;
Described call-information acquiring unit, for when call trigger is detected, obtaining the call-information of this call;
Described interim call-information storage unit, buffers for acquired call-information is saved in message registration temporarily
Area.
Also include:Talking state changes detector unit, end of conversation judging unit;
Described talking state changes detector unit, and the talking state acting on described call for detection changes signal;
Described end of conversation judging unit, for when talking state change signal is detected, judging whether this call ties
Bundle;
Described call-information acquiring unit, is additionally operable at the end of talking state change signal is detected and conversing not,
Obtain the call-information after talking state changes;
Described interim call-information storage unit, the call-information after being additionally operable to change acquired talking state updates
The call-information being preserved in message registration extra buffer.
Also include:Talking state changes detector unit, end of conversation judging unit, message registration writing unit and leads to temporarily
Words information deletion unit;
Described talking state changes detector unit, and the talking state acting on described call for detection changes signal;
Described end of conversation judging unit, for when talking state change signal is detected, judging whether this call ties
Bundle;
Described call-information acquiring unit, is additionally operable to, in this end of conversation, obtain this call-information;
Described message registration writing unit, for being added to call by this call-information after described end of conversation acquired
In record;
Described interim call-information deletes unit, is added to for this call-information after described end of conversation acquired
After message registration, the call-information being preserved in described message registration extra buffer is deleted.
By the embodiment of the present invention, the recording method of this message registration and system, to not terminating during call is carried out
Call carries out real-time call-information preservation.And after the unexpected power-off of mobile phone or crashing, in handset starting, this is not terminated to lead to
The call-information of words returns in message registration.Be ensure that by said method and system the improper end of user call logical
Words information is preserved, it is to avoid the loss of user's communication information.
Brief description
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, not
Constitute limitation of the invention.In the accompanying drawings:
Fig. 1 is recording method embodiment one flow chart of message registration;
Fig. 2 is recording method embodiment two flow chart of message registration;
Fig. 3 is recording method embodiment three flow chart of message registration;
Fig. 4 is the recording method example IV flow chart of message registration;
Fig. 5 is record system embodiment five structural representation of message registration;
Fig. 6 is record system embodiment six structural representation of message registration;
Fig. 7 is record system embodiment seven structural representation of message registration;
Fig. 8 is record system embodiment eight structural representation of message registration.
Specific embodiment
For making the object, technical solutions and advantages of the present invention become more apparent, with reference to embodiment and accompanying drawing, right
The present invention is described in further details.Here, the exemplary embodiment of the present invention and its illustrate for explaining the present invention, but simultaneously
Not as a limitation of the invention.
The message registration Forming Mechanism of mobile phone is usually after user's communication terminates at present, the call-information just terminating this
It is inserted in original call record list, without recording to this call in real time during carrying out in call.This
It is primarily due to, after have recorded passing message registration in a large number in call record list, its data volume is more huge, if logical
In call record list, real-time status renewal is carried out it would be desirable to system carries out mass data reading to this call during words
Operation, causes the waste of system resource.Therefore, current mobile phone only can carry out message registration to it after end of conversation.And when next
In electric process or in communication process, mobile phone occur power-off or crash situations such as cannot be carried out normal talking, then cannot be to
The call carrying out carries out record and preserves, and makes user have lost part call-information.Based on the problems referred to above, the invention provides a kind of
The recording method of message registration and system.
Embodiment one
Fig. 1 is recording method embodiment one flow chart of message registration.The recording method of this message registration, in mobile phone
The method carrying out in communication process, message registration being recorded.As illustrated, the recording method of this message registration, including:
S1, detection acts on the call trigger on communicating terminal;
This call trigger can be incoming call signal it is also possible to be place calls signal.
S2, if call trigger is detected, obtains the call-information of this call;
This call-information includes the various call-informations related to message registration, and such as call type is (incoming call call, de-electrifying logical
Words or missed call), other side's call-information (as other side's name, number etc.), the air time (call occur time), call when
Long (time span of call), talking state (calling, connect, access failure or hang up) etc..
S3, acquired call-information is saved in message registration extra buffer.
This message registration extra buffer is dedicated for interim storage call-information set by the embodiment of the present invention
Relief area.This message registration extra buffer can be in the ROM (Read-Only Memory, read only memory) of terminal.
At present, the ROM in smart mobile phone configuration refers to EEProm (the writeable read only memory of electrically erasable).So, after terminal power-off
The call-information that still can be preserved before reading power-off from the message registration extra buffer of this ROM.
The recording method of above-mentioned message registration, is not after user's communication terminates, the call-information insertion just terminating this
To in original call record list, but (when i.e. call occurs) starts this is conversed after call trigger is detected
Information record is pre-setting the relief area dedicated for interim storage call-information.So, neither need due to this
The real time record of call-information and read the mass data in original call record list, again can be ongoing logical by this in real time
Words information is saved in message registration extra buffer.As previously described, because this message registration extra buffer is located at the ROM of terminal
In (Read-Only Memory, read only memory).So, still can delay from the message registration of this ROM after terminal power-off temporarily
Rush the call-information being preserved before reading power-off in area, realize the purpose of message registration before preservation power-off.
Embodiment two
Fig. 2 is recording method embodiment two flow chart of message registration.As shown in Fig. 2 the recording method of this message registration,
On the basis of previous embodiment one, also include:
S4, the talking state that detection acts on described call changes signal;
This talking state changes signal and refers to identify the signal that this talking state changes.If call is by call state
It is changed into on-state, call is changed into hanging up state from call state, call is changed into hanging up state etc. from on-state.
S5, if talking state is detected to change signal, judges whether this call terminates;
The end of call can have a variety of end modes, such as passes through to hang up end call, call state by on-state
Call terminates call etc. due to being not turned on or hang up.
S6, if this call does not terminate, obtains the call-information after talking state changes;
S7, the call-information renewal after acquired talking state is changed is preserved in message registration extra buffer
Call-information.
The method being provided by above-described embodiment, can be in real time according to talking state during this call is carried out
Change this call-information being preserved in message registration extra buffer is accordingly updated.
Meanwhile, as shown in Fig. 2 the recording method of this message registration, on the basis of previous embodiment one, also include:
S4, the talking state that detection acts on described call changes signal;
This talking state changes signal and refers to identify the signal that this talking state changes.If call is by call state
It is changed into on-state, call is changed into hanging up state from call state, call is changed into hanging up state etc. from on-state.
S5, if talking state is detected to change signal, judges whether this call terminates;
The end of call can have a variety of end modes, such as passes through to hang up end call, call state by on-state
Call terminates call etc. due to being not turned on or hang up.
S8, if this end of conversation, obtains this call-information;
Acquired call-information is different from the call-information acquired in step S2 in previous embodiment one herein, is that this leads to
Talk about the call-information after terminating, the i.e. complete call-information of this call.
S9, this call-information after described end of conversation acquired is added in message registration;
Herein, acquired call-information after end of conversation is added in message registration, that is, completes existing call note
The recording process of record.Therefore, detailed process here does not repeat.
S10, after after described end of conversation, this acquired call-information is added to message registration, by described message registration
The call-information being preserved in extra buffer is deleted.
This is conversed after call normal termination by the method that above-described embodiment is provided according to existing call record method
Information is added in message registration, the call-information being stored in message registration extra buffer before is deleted simultaneously.
Embodiment three
Fig. 3 is recording method embodiment three flow chart of message registration.The recording method of this message registration, in mobile phone
Method during startup, message registration being recovered according to the call-information being stored in message registration extra buffer.As illustrated, should
The recording method of message registration, including:
Whether R1, when communicating terminal starts, preserve call-information in detection message registration extra buffer;
This message registration extra buffer is dedicated for interim storage call-information set by the embodiment of the present invention
Relief area.This message registration extra buffer can be in the ROM (Read-Only Memory, read only memory) of terminal.
At present, the ROM in smart mobile phone configuration refers to EEProm (the writeable read only memory of electrically erasable).So, after terminal power-off
The call-information that still can be preserved before reading power-off from the message registration extra buffer of this ROM.When communicating terminal starts,
The message registration extra buffer of access preset fixing address all can be removed according to the method that the present embodiment is provided, to detect upper
Unclosed call-information whether is had to be saved in this relief area during secondary shutdown.
This call-information includes the various call-informations related to message registration, and such as call type is (incoming call call, de-electrifying logical
Words or missed call), other side's call-information (as other side's name, number etc.), the air time (call occur time), call when
Long (time span of call), talking state (calling, connect, access failure or hang up) etc..
R2, if detect in this message registration extra buffer preserving call-information, this call-information is added to
In message registration;
If in this buffer detection to preserving call-information, illustrate to have unclosed call when shutting down last time.
It would therefore be desirable to according to the call-information being preserved in this relief area recover this do not terminate converse message registration.
R3, after described call-information is added to message registration, by preserved in described message registration extra buffer
Call-information is deleted.
The recording method of above-mentioned message registration, we can pass through when communicating terminal starts to detect log relief area
In whether preserve log, judge last time shutdown when whether have unclosed call.And, can be according to institute in this relief area
The call-information preserving recovers the message registration that this does not terminate to converse.
Example IV
Because the call-information that this relief area is preserved is the call-information during call is carried out, therefore this call letter
Breath is possible and imperfect.For this problem, as shown in figure 4, in described step R2, described this call-information is added to logical
In words record, including:
R21, detects whether the call-information being preserved in described message registration extra buffer is complete;
R22, if described call-information is complete, this call-information is added in message registration;
R23, if described call-information is imperfect, is added to after this call-information with default identifier or presupposed information, will
Call-information after interpolation is added in message registration.
For example, user's communicating terminal power-off in answering communication process, is now preserved in message registration extra buffer
Although call-information in can include the information such as call type, other side's call-information, air time, do not have the duration of call
Information.For this problem, described step R23 will fill up this call-information with default identifier or presupposed information (as 1 second)
Imperfect item.Finally, the call-information after filling up completely is added in message registration, so that message registration form is complete.
As above, we are by the recording method of above-mentioned message registration, carry out to not terminating call during call is carried out
Call-information preserves in real time.And after the unexpected power-off of mobile phone or crashing, in handset starting by the note of above-mentioned message registration
Recording method, this call-information not terminating to converse is returned in message registration.Ensure that user is improper by said method
The call-information of call terminating preserved, it is to avoid the loss of user's communication information.
Embodiment five
Fig. 5 is record system embodiment five structural representation of message registration.The record system of this message registration, be for
Carry out the system in communication process, message registration being recorded in mobile phone.As illustrated, the record system of this message registration, bag
Include:Trigger detector unit 1, call-information acquiring unit 2 and interim call-information storage unit 3.
Described trigger detector unit 1, acts on the call trigger on communicating terminal for detection;
This call trigger can be incoming call signal it is also possible to be place calls signal.
Described call-information acquiring unit 2, for when call trigger is detected, obtaining the call letter of this call
Breath;
This call-information includes the various call-informations related to message registration, and such as call type is (incoming call call, de-electrifying logical
Words or missed call), other side's call-information (as other side's name, number etc.), the air time (call occur time), call when
Long (time span of call), talking state (calling, connect, access failure or hang up) etc..
Described interim call-information storage unit 3, buffers for acquired call-information is saved in message registration temporarily
Area.
This message registration extra buffer is dedicated for interim storage call-information set by the embodiment of the present invention
Relief area.This message registration extra buffer can be in the ROM (Read-Only Memory, read only memory) of terminal.
At present, the ROM in smart mobile phone configuration refers to EEProm (the writeable read only memory of electrically erasable).So, after terminal power-off
The call-information that still can be preserved before reading power-off from the message registration extra buffer of this ROM.
The record system of above-mentioned message registration, is not after user's communication terminates, the call-information insertion just terminating this
To in original call record list, but (when i.e. call occurs) starts this is conversed after call trigger is detected
Information record is pre-setting the relief area dedicated for interim storage call-information.So, neither need due to this
The real time record of call-information and read the mass data in original call record list, again can be ongoing logical by this in real time
Words information is saved in message registration extra buffer.As previously described, because this message registration extra buffer is located at the ROM of terminal
In (Read-Only Memory, read only memory).So, still can delay from the message registration of this ROM after terminal power-off temporarily
Rush the call-information being preserved before reading power-off in area, realize the purpose of message registration before preservation power-off.
Embodiment six
Fig. 6 is record system embodiment six structural representation of message registration.As shown in fig. 6, the record of this message registration
System, on the basis of previous embodiment five, also includes:Talking state changes detector unit 4, end of conversation judging unit 5.
Described talking state changes detector unit 4, and the talking state acting on described call for detection changes signal;
This talking state changes signal and refers to identify the signal that this talking state changes.If call is by call state
It is changed into on-state, call is changed into hanging up state from call state, call is changed into hanging up state etc. from on-state.
Described end of conversation judging unit 5, for when talking state change signal is detected, judging whether this call ties
Bundle;
The end of call can have a variety of end modes, such as passes through to hang up end call, call state by on-state
Call terminates call etc. due to being not turned on or hang up.
Described call-information acquiring unit 2, is additionally operable at the end of talking state change signal is detected and conversing not,
Obtain the call-information after talking state changes;
Described interim call-information storage unit 3, the call-information after being additionally operable to change acquired talking state updates
The call-information being preserved in message registration extra buffer.
The system being provided by above-described embodiment, can be in real time according to talking state during this call is carried out
Change this call-information being preserved in message registration extra buffer is accordingly updated.
Meanwhile, as shown in fig. 6, the record system of this message registration, on the basis of previous embodiment five, also include:Logical
Speech phase changes detector unit 4, end of conversation judging unit 5, message registration writing unit 6 and interim call-information and deletes unit
7.
Described talking state changes detector unit 4, and the talking state acting on described call for detection changes signal;
This talking state changes signal and refers to identify the signal that this talking state changes.If call is by call state
It is changed into on-state, call is changed into hanging up state from call state, call is changed into hanging up state etc. from on-state.
Described end of conversation judging unit 5, for when talking state change signal is detected, judging whether this call ties
Bundle;
The end of call can have a variety of end modes, such as passes through to hang up end call, call state by on-state
Call terminates call etc. due to being not turned on or hang up.
Described call-information acquiring unit 2, is additionally operable to, in this end of conversation, obtain this call-information;
Call-information acquired in call-information acquiring unit 2 in acquired call-information and previous embodiment five herein
Difference, is the call-information after this end of conversation, i.e. the complete call-information of this call.
Described message registration writing unit 6 is logical for being added to this call-information after described end of conversation acquired
In words record;
Herein, acquired call-information after end of conversation is added in message registration, that is, completes existing call note
The recording process of record.Therefore, detailed process here does not repeat.
Described interim call-information deletes unit 7, adds for this call-information after described end of conversation acquired
To after message registration, the call-information being preserved in described message registration extra buffer is deleted.
The system that above-described embodiment is provided, by message registration writing unit 6 according to existing after call normal termination
This call-information is added in message registration call record method, deletes unit 7 to existing before by interim call-information simultaneously
The call-information that message registration extra buffer is stored is deleted.
Embodiment seven
Fig. 7 is record system embodiment seven structural representation of message registration.The record system of this message registration, be for
Recover the system of message registration in handset starting according to the call-information being stored in message registration extra buffer.As schemed
Show, the record system of this message registration, including:Interim call-information detector unit 8, message registration writing unit 6 and lead to temporarily
Words information deletion unit 7.
Described interim call-information detector unit 8, for when communicating terminal starts, detecting message registration extra buffer
In whether preserve call-information;
This message registration extra buffer is dedicated for interim storage call-information set by the embodiment of the present invention
Relief area.This message registration extra buffer can be in the ROM (Read-Only Memory, read only memory) of terminal.
At present, the ROM in smart mobile phone configuration refers to EEProm (the writeable read only memory of electrically erasable).So, after terminal power-off
The call-information that still can be preserved before reading power-off from the message registration extra buffer of this ROM.When communicating terminal starts,
The message registration extra buffer of access preset fixing address all can be removed according to the method that the present embodiment is provided, to detect upper
Unclosed call-information whether is had to be saved in this relief area during secondary shutdown.
This call-information includes the various call-informations related to message registration, and such as call type is (incoming call call, de-electrifying logical
Words or missed call), other side's call-information (as other side's name, number etc.), the air time (call occur time), call when
Long (time span of call), talking state (calling, connect, access failure or hang up) etc..
Described message registration writing unit 6, for detect preserving in this message registration extra buffer call letter
During breath, this call-information is added in message registration;
If in this buffer detection to preserving call-information, illustrate to have unclosed call when shutting down last time.
It would therefore be desirable to according to the call-information being preserved in this relief area recover this do not terminate converse message registration.
Described interim call-information deletes unit 7, for, after described call-information is added to message registration, described leading to
The call-information being preserved in words record extra buffer is deleted.
The record system of above-mentioned message registration, we can pass through when communicating terminal starts to detect log relief area
In whether preserve log, judge last time shutdown when whether have unclosed call.And, can be according to institute in this relief area
The call-information preserving recovers the message registration that this does not terminate to converse.
Embodiment eight
Because the call-information that this relief area is preserved is the call-information during call is carried out, therefore this call letter
Breath is possible and imperfect.For this problem, as shown in figure 8, in described message registration writing unit 6, including:Interim call
Information integrity detector unit 61, interim call-information supplementary units 62 and interim call-information writing unit 63.
Described interim call-information integrity detection unit 61, is protected for detecting in described message registration extra buffer
Whether the call-information deposited is complete;
Described interim call-information supplementary units 62, for when described call-information is imperfect, with default identifier or pre-
If information is added in this call-information;
Described interim call-information writing unit 63, mends for by complete call-information or by described interim call-information
Fill the complete call-information of unit 62 supplement to be added in message registration.
For example, user's communicating terminal power-off in answering communication process, is now preserved in message registration extra buffer
Although call-information in can include the information such as call type, other side's call-information, air time, do not have the duration of call
Information.For this problem, described interim call-information supplementary units 62 will be come with default identifier or presupposed information (as 1 second)
Fill up the imperfect item of this call-information.Finally, by interim call-information supplementary units 62 by fill up complete after call-information
It is added in message registration, so that message registration form is complete.
In sum, the invention provides a kind of recording method of message registration and system, right during call is carried out
Do not terminate call and carry out real-time call-information preservation.And after the unexpected power-off of mobile phone or crashing, in handset starting, by this not
The call-information terminating call returns in message registration.The logical of the improper end of user be ensure that by said method and system
The call-information of words is preserved, it is to avoid the loss of user's communication information.Persons skilled in the art are in this design philosophy
Under done any not creative transformation, be regarded as within protection scope of the present invention.