CN105515871B - The method and device of record log - Google Patents

The method and device of record log Download PDF

Info

Publication number
CN105515871B
CN105515871B CN201510977887.4A CN201510977887A CN105515871B CN 105515871 B CN105515871 B CN 105515871B CN 201510977887 A CN201510977887 A CN 201510977887A CN 105515871 B CN105515871 B CN 105515871B
Authority
CN
China
Prior art keywords
user
data
event
log
status data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510977887.4A
Other languages
Chinese (zh)
Other versions
CN105515871A (en
Inventor
陈志军
侯文迪
李明浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510977887.4A priority Critical patent/CN105515871B/en
Publication of CN105515871A publication Critical patent/CN105515871A/en
Application granted granted Critical
Publication of CN105515871B publication Critical patent/CN105515871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present disclosure provides the method and device of record log, wherein method includes: the status data for obtaining the first mobile terminal affiliated user, the status data includes following one or more data: the position data of first user, first user behavioral data, character data, wherein the personage related personage when being record log;Outgoing event is extracted from the status data according to preset rules;By the logout into log.In the embodiments of the present disclosure, the status data of the available user of the mobile terminals such as mobile phone, status data may include the behavior of user, the position of user and related person etc., be then based on these status datas, mobile phone can extract outgoing event according to preset rules, and be recorded in log.Without human intervention, the logout that the mobile terminals such as mobile phone can automatically be encountered user is in log by user in daily work life in this way, to improve the efficiency of record log.

Description

The method and device of record log
Technical field
This disclosure relates to the method and device of field of communication technology more particularly to record log.
Background technique
Many users have the habit of recording diaries, log.Such as when user goes out or go out after going home, it can be standby Forget to record what whom where the same day has done at what time in record, such as have a dinner party with colleague and friend go window-shopping, It goes to the zoo together with household, take on the telephone with certain so-and-so, consequently facilitating the scene on the same day can be remembered later, or be used for it Its purposes etc..
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides the method and device of record log, to improve user Efficiency when record log.
According to the first aspect of the embodiments of the present disclosure, a kind of method of record log is provided, the method is for mobile whole End, which comprises
Obtain the status data of the first mobile terminal affiliated user, the status data includes following one or more Item data: the position data of first user, first user behavioral data, character data, wherein the personage is Related personage when record log;
Outgoing event is extracted from the status data according to preset rules;
By the logout into log.
Optionally, described to obtain the shifting when the status data includes the behavioral data and the character data The status data of first user belonging to dynamic terminal, comprising:
The communications records of the mobile terminal are obtained, the communications records include message registration and/or short message record;
First user is obtained in the communication object of preset time according to the communications records;
The communication behavior of first user is recorded as the behavioral data, the communication object is recorded as the people Object data.
Optionally, described to obtain described mobile terminal affiliated the when the status data includes the character data The status data of one user, comprising:
The user identifier of association user that is in contact with first user is obtained using as the character data, wherein institute Stating association user is user associated with the user.
Optionally, the user identifier for obtaining the association user being in contact with first user, comprising:
Obtain the position of the association user and the position of first user;
If the distance between the position of the association user and the position of first user are less than pre-determined distance, remember Record the user identifier of the association user;
Alternatively,
The user identifier of the other users occurred in specified region is obtained, wherein the specified region is to use with described first Centered on the position at family, pre-determined distance be radius region;
Judge whether there is the association user in the other users, if there is the association user, then records the pass It is combined the user identifier at family.
Optionally, the user identifier for obtaining the association user being in contact with first user, comprising:
Obtain the user identifier that the user of bluetooth connection is established with first user.
It is optionally, described to extract outgoing event from the status data according to preset rules, comprising:
The time that the generating state of every item data contained by the status data changes is obtained, wherein the generating state changes The variable quantity for referring to every item data has been more than the data preset threshold;
Obtain the subset of the status data corresponding to the time that the generating state changes;
The subset of the status data is converted into the sentence using natural language description;
The sentence using natural language description is recorded as the event.
Optionally, after by the logout into log, the method also includes:
The activity trajectory of first user is generated according to the log, wherein the activity trajectory includes at least two things Part node, each event node correspond to an event in the log;
It receives first user and instruction is checked to the event node;
Check that instruction shows event corresponding to the event node to first user according to described;
And/or
By the logout into log after, the method also includes:
It counts and shows according to pre-set categories according to event of the log to first user.
Optionally, the status data is recorded by described mobile terminal itself, alternatively, by with the mobile terminal binding Wearable device record.
According to the second aspect of an embodiment of the present disclosure, a kind of device of record log is provided, described device is for mobile whole End, described device include:
State data acquisition module, for obtaining the status data of the first mobile terminal affiliated user, the shape State data include following one or more data: the position data of first user, the behavioral data of first user, people Object data, wherein the personage related personage when being record log;
Event generation module, for being mentioned from the status data that the state data acquisition module obtains according to preset rules Taking-up event;
Logger module is used for the extracted logout of event generation module into log.
Optionally, when the status data includes the behavioral data and the character data, the status data is obtained Modulus block includes:
Communications records acquisition submodule, for obtaining the communications records of the mobile terminal, the communications records include logical Words record and/or short message record;
Communication object acquisition submodule, for obtaining first user in the logical of preset time according to the communications records Believe object;
Data record submodule will be described for the communication behavior of first user to be recorded as the behavioral data Communication object is recorded as the character data.
Optionally, when the status data includes the character data, the state data acquisition module includes:
Contactee's acquisition submodule, for obtaining the user identifier for the association user being in contact with first user to make For the character data, wherein the association user is user associated with the user.
Optionally, contactee's acquisition submodule includes:
Position acquisition submodule, for obtaining the position of the association user and the position of first user;
First contactee's record sub module, for when between the position of the association user and the position of first user Distance be less than pre-determined distance when, record the user identifier of the association user;
Alternatively,
User identifier acquisition submodule, for obtaining the user identifier of the other users occurred in specified region, wherein institute State specified region be centered on the position of first user, pre-determined distance for radius region;
Second contactee's record sub module, for judging whether there is the association user in the other users, when The user identifier of the association user is then recorded when stating association user.
Optionally, contactee's acquisition submodule includes:
Third contactee's record sub module, the user for obtaining the user for establishing bluetooth connection with first user mark Know.
Optionally, the event generation module includes:
State change time acquisition submodule, the generating state for obtaining every item data contained by the status data change Time, wherein the generating state change refer to that the variable quantity of every item data has been more than the data preset threshold;
Event generates submodule, for obtaining the son of the status data corresponding to the time that the generating state changes Collection, be converted to the sentence using natural language description for the subset of the status data, by described using natural language description Sentence is recorded as the event.
Optionally, described device further include:
Module is checked in track, for generating the activity trajectory of first user according to the log, wherein the activity Track includes at least two event nodes, and each event node correspond to an event in the log, reception described the One user checks instruction to the event node, checks that instruction shows the event node to first user according to described Corresponding event;
And/or
Statistical module, for counting and showing according to pre-set categories according to event of the log to first user Show.
Optionally, the status data that the state data acquisition module obtains is recorded by described mobile terminal itself, alternatively, By being recorded with the wearable device of the mobile terminal binding.
According to the third aspect of an embodiment of the present disclosure, a kind of device of record log is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the status data of the first mobile terminal affiliated user, the status data includes following one or more Item data: the position data of first user, first user behavioral data, character data, wherein the personage is Related personage when record log;
Outgoing event is extracted from the status data according to preset rules;
By the logout into log.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the embodiments of the present disclosure, the status data of the available user of the mobile terminals such as mobile phone, status data can wrap The behavior of user, the position of user and related person etc. are included, these status datas are then based on, mobile phone can be according to default rule Outgoing event is then extracted, and is recorded in log.Without human intervention, mobile phone etc. is mobile eventually by user in daily work life in this way Hold the logout that can be automatically encountered user in log, to improve the efficiency of record log.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of the method for record log shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the method for record log shown according to an exemplary embodiment;
Fig. 3 is the schematic diagram that item data generating state shown according to an exemplary embodiment changes;
Fig. 4 is a kind of flow chart of the method for record log shown according to an exemplary embodiment;
Fig. 5 is the schematic diagram of a scenario for the people that acquisition user shown according to an exemplary embodiment is contacted;
Fig. 6 is a kind of flow chart of the method for record log shown according to an exemplary embodiment;
Fig. 7 is the schematic diagram of a scenario for the people that acquisition user shown according to an exemplary embodiment is contacted;
Fig. 8 is the schematic diagram of a scenario for the people that acquisition user shown according to an exemplary embodiment is contacted;
Fig. 9 is a kind of flow chart of the method for record log shown according to an exemplary embodiment;
Figure 10 is a kind of flow chart of the method for record log shown according to an exemplary embodiment;
Figure 11 is the interface schematic diagram shown according to an exemplary embodiment for checking activity trajectory;
Figure 12 is a kind of block diagram of the device of record log shown according to an exemplary embodiment;
Figure 13 is a kind of block diagram of the device of record log shown according to an exemplary embodiment;
Figure 14 is a kind of block diagram of the device of record log shown according to an exemplary embodiment;
Figure 15 is a kind of block diagram of the device of record log shown according to an exemplary embodiment;
Figure 16 is a kind of block diagram of the device of record log shown according to an exemplary embodiment;
Figure 17 is a kind of block diagram of the device of record log shown according to an exemplary embodiment;
Figure 18 is a kind of block diagram of the device of record log shown according to an exemplary embodiment;
Figure 19 is a kind of block diagram of the device of record log shown according to an exemplary embodiment;
Figure 20 is a kind of block diagram of the device of record log shown according to an exemplary embodiment;
Figure 21 is a kind of block diagram of device for record log shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Terminal device herein can be mobile phone, tablet computer, E-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player and knee Mo(u)ld top half portable computer etc..
Fig. 1 is a kind of flow chart of the method for record log shown according to an exemplary embodiment.This method can be used for The mobile terminals such as mobile phone, tablet computer.
In step s101, the status data of the first mobile terminal affiliated user, the state data packets are obtained Include following one or more data: the position data of first user, first user behavioral data, character data, Related personage when wherein the personage is record log.
The state of user may be that a more open concept can define the situation of user in the present embodiment Are as follows: it may include place (position data) where user, thing (behavioral data), the related person done.Certainly it is easy reason Solution, the above three elements are not indispensable, such as user goes to museum alone, and no relatives and friends accompany, at this time Just there is no related person, in another example user calls someone, it at this time can be without position data, etc..
For one day, behavioral data may include in this day the various actions of user and the behavior occurred when Between.In the present embodiment, the behavior of user can more broad sense, not only may include this or that user is done, such as On foot, it runs, drive, have a meal, also may include the behavior physiologically such as heartbeat.
Position data then may include locating different location and corresponding time, such as user 7 in this day of user: 00~7:30 is in, 7:30~8:00 on the road of working, 8:00~12:00 in company, 12:00~12:30 in park, etc. Deng.
Related personage when record log, or personage referred to as related to user, can be divided into two classes, and one kind is logical Object is talked about, one kind is the people that user is contacted.In one day, the people that user is contacted is had very much, such as courier, dining room clothes Business person, passerby etc., and the people that user is contacted in the present embodiment is primarily referred to as relevant with user and is contacted People, this is because thing made by user and these people just has the meaning of record log.Such as association user can be user's Spouse, children, colleague, friend etc..These user settings can be the association user of oneself by user in advance.
The status data of the first user how is obtained for mobile terminal, the present embodiment is simultaneously not limited.Such as it can be with The status data that user is recorded by elements such as the various sensors carried on the mobile terminal of user, can also be by user The wearable devices such as Intelligent bracelet record the status data of user and be transferred to the mobile terminal of user.In other words, exist In the present embodiment or the disclosure other some embodiments, the status data is recorded by described mobile terminal itself, alternatively, by with The wearable device of the mobile terminal binding records.
In step s 102, outgoing event is extracted from the status data according to preset rules.
The event corresponds to the change of the state of first user.Still for one day, under being stored in this day The status data of user might have very much, and significant is usually that those are related to the data of the change of User Status, is changed Sentence is talked about, and when certain change of the generation of User Status, usually presets and certain event currently is occurring, therefore can recorde Into log.
In step s 103, by the logout into log.
In this way, without human intervention, the mobile terminals such as mobile phone can be automatically by user institute by user in daily work life The logout encountered is in log, to improve the efficiency of record log.
It is shown in Figure 2, in the present embodiment or the disclosure other some embodiments, it is described according to preset rules from described Outgoing event is extracted in status data, may include:
In step s 201, the time that the generating state of every item data contained by the status data changes is obtained, wherein institute It states generating state change and refers to that the variable quantity of every item data has been more than the data preset threshold.This variable quantity has been more than phase It answers the state of threshold value to change alternatively referred to as to be mutated.
In step S202, the subset of the status data corresponding to the time that the generating state changes is obtained.
In step S203, the subset of the status data is converted into the sentence using natural language description.
In step S204, the sentence using natural language description is recorded as the event.
For example, user's in the morning wakes up, heartbeat data is more big changes before and after revival, it is believed that produces one Event, being converted to natural language is " XX moment user revival ";Or can also according to the action data that bracelet detects come Judge whether user revives, because the movement for the user that bracelet detects is almost nil during user's sleep, and user revives Bracelet can detect that user largely acts afterwards.
For another example user driving arrival company goes to work, position becomes stablizing constant from constantly changing, and speed is by higher Speed becomes close to zero, and such state change is also larger, therefore it is also assumed that be to produce an event, be converted to nature Language is " XX moment user reaches working place ".
As example reference can be made to shown in Fig. 3.In Fig. 3, horizontal axis is time T, and each longitudinal axis is respectively behavioral data, position Data and the people contacted, in Fig. 3, there is mutation, Ye Jibian in (or certain period) t, the behavioral data of user at a certain moment Change amount has been more than certain threshold value of pre-set behavioral data, it may be considered that some event has occurred in moment t, can then be incited somebody to action The corresponding part status data subset of moment t (part for being included referring to dotted line frame in figure) namely the corresponding behavior of moment t Data, position data and the people contacted record, as the description to event.It can recorde lower following number as example According to:
" the time: 7:08;Position: in family;Behavior: revival;Personage: nothing "
Being converted to natural language may is that
" 7:08 revives at home "
For how being converted to sentence the present embodiment using natural language description and be not limited, such as can be preset The rule base etc. of some common expressions libraries and sentence collocation.
It is furthermore pointed out that corresponding threshold value of particular content for each data and institute etc. detailed problem The present embodiment is simultaneously not limited, and those skilled in the art can be designed according to different scenes, different demands situation, can be with Spirit and scope of these designs used here all without departing from the disclosure.
In the present embodiment or the disclosure other some embodiments, when the status data includes the character data, The status data for obtaining the first mobile terminal affiliated user may include:
The user identifier of association user that is in contact with first user is obtained using as the character data, wherein institute Stating association user is user associated with the user.
After getting the people being in contact with user (association users such as relatives and friends), can in conjunction at that time behavior and Place and some sentences collocation rule base, generate the natural language description sentence of event, such as " when XX days XX~XX when with it is good It is friendly that so-and-so has strolled Xi Dan Market ", etc..
For specifically how to get the people's the present embodiment being in contact with user and be not limited.Name three examples It is illustrated.
For example, see shown in Fig. 4, in the present embodiment or the disclosure other some embodiments, the acquisition and described first The user identifier for the association user that user is in contact may include:
In step S401, the position of the association user and the position of first user are obtained.
In step S402, if the position of the association user and the distance between the position of first user are less than Pre-determined distance then records the user identifier of the association user.
As example reference can be made to shown in Fig. 5, user 501 can request that user's is each to the server 503 in cloud in Fig. 5 The position of good friend (i.e. with the user of shade in figure), if finding the position of one of good friend 502 and the user according to position Very close (i.e. small Mr. Yu's pre-determined distance value, such as 3 meters), it may be considered that good friend 502 is in contact with the user.
In another example shown in Figure 6, in the present embodiment or the disclosure other some embodiments, the acquisition and described the The user identifier for the association user that one user is in contact may include:
In step s 601, the user identifier for obtaining the other users occurred in specified region, wherein the specified region For centered on the position of first user, pre-determined distance for radius region.
In step S602, judge whether there is the association user in the other users, if there is the association user, Then record the user identifier of the association user.
As example reference can be made to shown in Fig. 7, user 701 can request to inform user to the server 703 in cloud in Fig. 7 Whom nearby has (i.e. using the user-center, certain pre-determined distance as the region of radius), then judge in these people whether There is the good friend of user, if one of people is the good friend 702 of user, it may be considered that good friend 702 is in contact with the user.
For another example the acquisition connects with first user in the present embodiment or the disclosure other some embodiments The user identifier of the association user of touching may include:
Obtain the user identifier that the user of bluetooth connection is established with first user.
As example reference can be made to shown in Fig. 8, oneself mobile phone and the mobile phone of each good friend all can be carried out one in advance by user 801 Lower Bluetooth pairing, in this way after certain moment when the mobile phone of certain good friend 802 on the mobile phone automatic matching of user 801, due to bluetooth The distance of connection is limited, and could establish connection when only close enough, so at this time it is considered that good friend 802 and user's phase It contacts.
It is shown in Figure 9, in the present embodiment or the disclosure other some embodiments, when the status data includes described When behavioral data and the character data, the status data for obtaining the first mobile terminal affiliated user be can wrap It includes:
In step S901, obtain the communications records of the mobile terminal, the communications records include message registration and/or Short message record.
In step S902, first user is obtained in the communication object of preset time according to the communications records.
Such as preset time can be the daily working time etc..
In step S903, the communication behavior of first user is recorded as the behavioral data, by the communication pair As being recorded as the character data.
Natural language is converted to, such as can be " X gives XXX and makes a call when X days X " this event.
In addition, shown in Figure 10, in the present embodiment or the disclosure other some embodiments, the logout is arrived After in log, the method can also include:
In step S1001, the activity trajectory of first user is generated according to the log, wherein the activity trajectory Including at least two event nodes, each event node corresponds to an event in the log.
In step S1002, receives first user and instruction is checked to the event node.
In the step s 1003, check that instruction is shown corresponding to the event node to first user according to described Event.
As example reference can be made to shown in Figure 11, Figure 11 is the schematic diagram of the activity trajectory of user Wang Xiaoming, user Wang Xiaoming One of node is clicked it is seen that the corresponding event of the node, such as " the time: 19:30;Place: Jianguo Hotel;Row Are as follows: it has a meal;Personage: Liu Yingying ".
In addition, in the present embodiment or the disclosure other some embodiments, by the logout into log after, institute The method of stating can also include:
It counts and shows according to pre-set categories according to event of the log to first user.
For one day, such user can see the statistical conditions of oneself all kinds of event in one day, such as see How many people have walked road how far, etc..
In the present embodiment, the status data of the available user of the mobile terminals such as mobile phone, status data may include using The behavior at family, the position of user and related person etc., are then based on these status datas, and mobile phone can be mentioned according to preset rules Taking-up event, and be recorded in log.Without human intervention, the mobile terminals such as mobile phone are user in daily work life in this way The logout that user can be encountered automatically is in log, to improve the efficiency of record log.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Figure 12 is a kind of block diagram of the device of record log shown according to an exemplary embodiment.Described device can be used for The mobile terminals such as mobile phone, tablet computer.
The apparatus may include:
State data acquisition module 1201, for obtaining the status data of the first mobile terminal affiliated user, institute Stating status data includes following one or more data: the position data of first user, first user behavior number According to, character data, wherein the personage related personage when being record log.
" state of user " may be that a more open concept can determine the situation of user in the present embodiment Justice are as follows: may include place (position data) where user, thing (behavioral data), the related person done.Certainly it is easy Understanding, the above three elements are not indispensable, such as user goes to museum alone, and no relatives and friends accompany, this When just without related person, at this time can be without position data, etc. in another example user calls someone.
For one day, behavioral data may include in this day the various actions of user and the behavior occurred when Between.In the present embodiment, the behavior of user can more broad sense, not only may include this or that user is done, such as On foot, it runs, drive, have a meal, also may include the behavior physiologically such as heartbeat.
Position data then may include locating different location and corresponding time, such as user 7 in this day of user: 00~7:30 is in, 7:30~8:00 on the road of working, 8:00~12:00 in company, 12:00~12:30 in park, etc. Deng.
Related personage when record log, or personage referred to as related to user, can be divided into two classes, and one kind is logical Object is talked about, one kind is the people that user is contacted.In one day, the people that user is contacted is had very much, such as courier, dining room clothes Business person, passerby etc., and the people that user is contacted in the present embodiment is primarily referred to as relevant with user and is contacted People, this is because thing made by user and these people just has the meaning of record log.Such as association user can be user's Spouse, children, colleague, friend etc..These user settings can be the association user of oneself by user in advance.
The status data of the first user how is obtained for mobile terminal, the present embodiment is simultaneously not limited.Such as it can be with The status data that user is recorded by elements such as the various sensors carried on the mobile terminal of user, can also be by user The wearable devices such as Intelligent bracelet record the status data of user and be transferred to the mobile terminal of user.In other words, exist In the present embodiment or the disclosure other some embodiments, the status data is recorded by described mobile terminal itself, alternatively, by with The wearable device of the mobile terminal binding records.
Event generation module 1202, the state for being obtained according to preset rules from the state data acquisition module 1201 Outgoing event is extracted in data.
The event corresponds to the change of the state of first user.Still for one day, under being stored in this day The status data of user might have very much, and significant is usually that those are related to the data of the change of User Status, is changed Sentence is talked about, and when certain change of the generation of User Status, usually presets and certain event currently is occurring, therefore can recorde Into log.
Logger module 1203 is used for the extracted logout of the event generation module 1202 into log.
In this way, without human intervention, the mobile terminals such as mobile phone can be automatically by user institute by user in daily work life The logout encountered is in log, to improve the efficiency of record log.
It is shown in Figure 13, in the present embodiment or the disclosure other some embodiments, when the status data includes institute When stating behavioral data and the character data, the state data acquisition module 1201 may include:
Communications records acquisition submodule 1301, for obtaining the communications records of the mobile terminal, the communications records packet Include message registration and/or short message record.
Communication object acquisition submodule 1302, for obtaining first user in preset time according to the communications records Communication object.
Data record submodule 1303 will for the communication behavior of first user to be recorded as the behavioral data The communication object is recorded as the character data.
Natural language is converted to, such as can be " X gives XXX and makes a call when X days X " this event.
It is shown in Figure 14, in the present embodiment or the disclosure other some embodiments, when the status data includes institute When stating character data, the state data acquisition module 1201 may include:
Contactee's acquisition submodule 1401, for obtaining the user identifier for the association user being in contact with first user Using as the character data, wherein the association user is user associated with the user.
After getting the people being in contact with user (association users such as relatives and friends), can in conjunction at that time behavior and Place and some sentences collocation rule base, generate the natural language description sentence of event, such as " when XX days XX~XX when with it is good It is friendly that so-and-so has strolled Xi Dan Market ", etc..
For specifically how to get the people's the present embodiment being in contact with user and be not limited.Name three examples It is illustrated.
For example, see shown in Figure 15, in the present embodiment or the disclosure other some embodiments, the contactee obtains son Module 1401 may include:
Position acquisition submodule 1501, for obtaining the position of the association user and the position of first user;
First contactee's record sub module 1502, for when the position of the association user and the position of first user The distance between be less than pre-determined distance when, record the user identifier of the association user.
As example reference can be made to shown in Fig. 5, user 501 can request that user's is each to the server 503 in cloud in Fig. 5 The position of good friend (i.e. with the user of shade in figure), if finding the position of one of good friend 502 and the user according to position Very close (i.e. small Mr. Yu's pre-determined distance value, such as 3 meters), it may be considered that good friend 502 is in contact with the user.
In another example shown in Figure 15, in the present embodiment or the disclosure other some embodiments, the contactee is obtained Submodule 1401 may include:
User identifier acquisition submodule 1601, for obtaining the user identifier of the other users occurred in specified region, Described in specify region be centered on the position of first user, pre-determined distance for radius region;
Second contactee's record sub module 1602, for judging whether there is the association user in the other users, when There is the user identifier that the association user is then recorded when the association user.
As example reference can be made to shown in Fig. 7, user 701 can request to inform user to the server 703 in cloud in Fig. 7 Whom nearby has (i.e. using the user-center, certain pre-determined distance as the region of radius), then judge in these people whether There is the good friend of user, if one of people is the good friend 702 of user, it may be considered that good friend 702 is in contact with the user.
Again for example, see shown in Figure 17, in the present embodiment or the disclosure other some embodiments, the contactee is obtained Submodule 1401 may include:
Third contactee record sub module 1701, for obtaining the use for establishing the user of bluetooth connection with first user Family mark.
As example reference can be made to shown in Fig. 8, oneself mobile phone and the mobile phone of each good friend all can be carried out one in advance by user 801 Lower Bluetooth pairing, in this way after certain moment when the mobile phone of certain good friend 802 on the mobile phone automatic matching of user 801, due to bluetooth The distance of connection is limited, and could establish connection when only close enough, so at this time it is considered that good friend 802 and user's phase It contacts.
It is shown in Figure 18, in the present embodiment or the disclosure other some embodiments, the event generation module 1202 May include:
State change time acquisition submodule 1801, for obtaining the generating state of every item data contained by the status data The time of change, wherein generating state change refers to that the variable quantity of every item data has been more than the data preset threshold;
Event generates submodule 1802, for obtaining the status data corresponding to the time that the generating state changes Subset, the subset of the status data is converted into the sentence using natural language description, is retouched described using natural language The sentence stated is recorded as the event.
In addition, shown in Figure 19, in the present embodiment or the disclosure other some embodiments, described device can also be wrapped It includes:
Module 1204 is checked in track, for generating the activity trajectory of first user according to the log, wherein described Activity trajectory includes at least two event nodes, and each event node corresponds to an event in the log, receives institute It states the first user and instruction is checked to the event node, check that instruction shows the event to first user according to described Event corresponding to node.
As example reference can be made to shown in Figure 11, Figure 11 is the schematic diagram of the activity trajectory of user Wang Xiaoming, user Wang Xiaoming One of node is clicked it is seen that the corresponding event of the node, such as " the time: 19:30;Place: Jianguo Hotel;Row Are as follows: it has a meal;Personage: Liu Yingying ".
In addition, shown in Figure 20, in the present embodiment or the disclosure other some embodiments, described device can also be wrapped It includes:
Statistical module 1205, for being counted according to event of the log to first user according to pre-set categories And it shows.
For one day, such user can see the statistical conditions of oneself all kinds of event in one day, such as see How many people have walked road how far, etc..
In the present embodiment, the status data of the available user of the mobile terminals such as mobile phone, status data may include using The behavior at family, the position of user and related person etc., are then based on these status datas, and mobile phone can be mentioned according to preset rules Taking-up event, and be recorded in log.Without human intervention, the mobile terminals such as mobile phone are user in daily work life in this way The logout that user can be encountered automatically is in log, to improve the efficiency of record log.
The disclosure also discloses a kind of device of record log, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the status data of the first mobile terminal affiliated user, the status data includes following one or more Item data: the position data of first user, first user behavioral data, character data, wherein the personage is Related personage when record log;
Outgoing event is extracted from the status data according to preset rules;
By the logout into log.
The disclosure also discloses a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium by When the processor of mobile terminal device executes, so that a kind of method that mobile terminal is able to carry out record log, the method packet It includes:
Obtain the status data of the first mobile terminal affiliated user, the status data includes following one or more Item data: the position data of first user, first user behavioral data, character data, wherein the personage is Related personage when record log;
Outgoing event is extracted from the status data according to preset rules;
By the logout into log.
Figure 21 is a kind of block diagram of device for record log shown according to an exemplary embodiment.The device is schemed Shown in device 2100, which for example can be mobile phone, computer, digital broadcast terminal, and information receiving and transmitting is set It is standby, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Figure 21, device 2100 may include following one or more components: processing component 2102, memory 2104, Power supply module 2106, multimedia component 2108, audio component 2110, the interface 2112 of input/output (I/O), sensor module 2114 and communication component 2116.
The integrated operation of the usual control device 2100 of processing component 2102, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 2102 may include one or more processors 2120 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 2102 may include one or more moulds Block, convenient for the interaction between processing component 2102 and other assemblies.For example, processing component 2102 may include multi-media module, To facilitate the interaction between multimedia component 2108 and processing component 2102.
Memory 2104 is configured as storing various types of data to support the operation in equipment 2100.These data Example includes the instruction of any application or method for operating on device 2100, contact data, telephone book data, Message, picture, video etc..Memory 2104 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 2106 provides electric power for the various assemblies of device 2100.Power supply module 2106 may include power management System, one or more power supplys and other with for device 2100 generate, manage, and distribute the associated component of electric power.
Multimedia component 2108 includes the screen of one output interface of offer between described device 2100 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 2108 includes a front camera and/or rear camera.When device 2100 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 2110 is configured as output and/or input audio signal.For example, audio component 2110 includes a wheat Gram wind (MIC), when device 2100 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 2104 or via communication Component 2116 is sent.In some embodiments, audio component 2110 further includes a loudspeaker, is used for output audio signal.
I/O interface 2112 provides interface, above-mentioned peripheral interface module between processing component 2102 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 2114 includes one or more sensors, and the state for providing various aspects for device 2100 is commented Estimate.For example, sensor module 2114 can detecte the state that opens/closes of equipment 2100, the relative positioning of component, such as institute The display and keypad that component is device 2100 are stated, sensor module 2114 can be with detection device 2100 or device 2,100 1 The position change of a component, the existence or non-existence that user contacts with device 2100,2100 orientation of device or acceleration/deceleration and dress Set 2100 temperature change.Sensor module 2114 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 2114 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 2116 is configured to facilitate the communication of wired or wireless way between device 2100 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 2100,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 2116 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 2116 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 2100 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method of terminal side.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by appended Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (11)

1. a kind of method of record log, which is characterized in that the method is used for mobile terminal, which comprises
The status data of the first mobile terminal affiliated user is obtained, the status data includes following one or more numbers According to the position data of: first user, behavioral data, the character data of first user, wherein the personage is record Related personage when log;
Outgoing event is extracted from the status data according to preset rules;
By the logout into log;
When the status data includes the character data, the state for obtaining the first mobile terminal affiliated user Data, comprising:
The user identifier of association user that is in contact with first user is obtained using as the character data, wherein the pass Being combined family is user associated with the user;
When the status data includes the behavioral data and the character data, the acquisition is described mobile terminal affiliated The status data of first user, comprising:
The communications records of the mobile terminal are obtained, the communications records include message registration and/or short message record;
First user is obtained in the communication object of preset time according to the communications records;
The communication behavior of first user is recorded as the behavioral data, the communication object is recorded as personage's number According to;
The user identifier for obtaining the association user being in contact with first user, comprising:
Obtain the position of the association user and the position of first user;
If the distance between the position of the association user and the position of first user are less than pre-determined distance, institute is recorded State the user identifier of association user;
Alternatively,
The user identifier of the other users occurred in specified region is obtained, wherein the specified region is with first user's Centered on position, pre-determined distance be radius region;
Judge whether there is the association user in the other users, if there is the association user, then records the association and use The user identifier at family.
2. the method according to claim 1, wherein the acquisition is associated with use with what first user was in contact The user identifier at family, comprising:
Obtain the user identifier that the user of bluetooth connection is established with first user.
3. the method according to claim 1, wherein described extract from the status data according to preset rules Outgoing event, comprising:
The time that the generating state of every item data contained by the status data changes is obtained, wherein generating state change refers to The variable quantity of every item data has been more than the data preset threshold;
Obtain the subset of the status data corresponding to the time that the generating state changes;
The subset of the status data is converted into the sentence using natural language description;
The sentence using natural language description is recorded as the event.
4. the method according to claim 1, wherein by the logout into log after, the method Further include:
The activity trajectory of first user is generated according to the log, wherein the activity trajectory includes at least two event sections Point, each event node correspond to an event in the log;
It receives first user and instruction is checked to the event node;
Check that instruction shows event corresponding to the event node to first user according to described;
And/or
By the logout into log after, the method also includes:
It counts and shows according to pre-set categories according to event of the log to first user.
5. the method according to claim 1, wherein the status data is recorded by described mobile terminal itself, Alternatively, by being recorded with the wearable device of the mobile terminal binding.
6. a kind of device of record log, which is characterized in that described device is used for mobile terminal, and described device includes:
State data acquisition module, for obtaining the status data of the first mobile terminal affiliated user, the status number According to including following one or more data: the position data of first user, the behavioral data of first user, personage's number According to wherein the personage related personage when being record log;
Event generation module, for being extracted from the status data that the state data acquisition module obtains according to preset rules Event;
Logger module is used for the extracted logout of event generation module into log;
When the status data includes the character data, the state data acquisition module includes:
Contactee's acquisition submodule, for obtaining the user identifier of the association user being in contact with first user using as institute Character data is stated, wherein the association user is user associated with the user;
When the status data includes the behavioral data and the character data, the state data acquisition module includes:
Communications records acquisition submodule, for obtaining the communications records of the mobile terminal, the communications records include call note Record and/or short message record;
Communication object acquisition submodule, for obtaining first user in the communication pair of preset time according to the communications records As;
Data record submodule, for the communication behavior of first user to be recorded as the behavioral data, by the communication Object record is the character data;
Contactee's acquisition submodule includes:
Position acquisition submodule, for obtaining the position of the association user and the position of first user;
First contactee's record sub module, for when the association user position and first user position between away from When from being less than pre-determined distance, the user identifier of the association user is recorded;
Alternatively,
User identifier acquisition submodule, for obtaining the user identifier of the other users occurred in specified region, wherein the finger Determine region be centered on the position of first user, pre-determined distance for radius region;
Second contactee's record sub module, for judging whether there is the association user in the other users, when there is the pass The user identifier of the association user is then recorded when being combined family.
7. device according to claim 6, which is characterized in that contactee's acquisition submodule includes:
Third contactee's record sub module, for obtaining the user identifier for establishing the user of bluetooth connection with first user.
8. device according to claim 6, which is characterized in that the event generation module includes:
State change time acquisition submodule, for obtain every item data contained by the status data generating state change when Between, wherein generating state change refers to that the variable quantity of every item data has been more than the data preset threshold;
Event generates submodule, for obtaining the subset of the status data corresponding to the time that the generating state changes, The subset of the status data is converted into the sentence using natural language description, by the sentence using natural language description It is recorded as the event.
9. device according to claim 6, which is characterized in that described device further include:
Module is checked in track, for generating the activity trajectory of first user according to the log, wherein the activity trajectory Including at least two event nodes, each event node corresponds to an event in the log, receives described first and uses Instruction is checked to the event node in family, checks that instruction shows that the event node institute is right to first user according to described The event answered;
And/or
Statistical module, for counting and showing according to pre-set categories according to event of the log to first user.
10. device according to claim 6, which is characterized in that the status data that the state data acquisition module obtains It is recorded by described mobile terminal itself, alternatively, by being recorded with the wearable device of the mobile terminal binding.
11. a kind of device of record log characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The status data of the first mobile terminal affiliated user is obtained, the status data includes following one or more data: The position data of first user, first user behavioral data, character data, wherein the personage is record log When related personage;
Outgoing event is extracted from the status data according to preset rules;
By the logout into log;
When the status data includes the character data, the state for obtaining the first mobile terminal affiliated user Data, comprising:
The user identifier of association user that is in contact with first user is obtained using as the character data, wherein the pass Being combined family is user associated with the user;
When the status data includes the behavioral data and the character data, the acquisition is described mobile terminal affiliated The status data of first user, comprising:
The communications records of the mobile terminal are obtained, the communications records include message registration and/or short message record;
First user is obtained in the communication object of preset time according to the communications records;
The communication behavior of first user is recorded as the behavioral data, the communication object is recorded as personage's number According to;
The user identifier for obtaining the association user being in contact with first user, comprising:
Obtain the position of the association user and the position of first user;
If the distance between the position of the association user and the position of first user are less than pre-determined distance, institute is recorded State the user identifier of association user;
Alternatively,
The user identifier of the other users occurred in specified region is obtained, wherein the specified region is with first user's Centered on position, pre-determined distance be radius region;
Judge whether there is the association user in the other users, if there is the association user, then records the association and use The user identifier at family.
CN201510977887.4A 2015-12-23 2015-12-23 The method and device of record log Active CN105515871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510977887.4A CN105515871B (en) 2015-12-23 2015-12-23 The method and device of record log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510977887.4A CN105515871B (en) 2015-12-23 2015-12-23 The method and device of record log

Publications (2)

Publication Number Publication Date
CN105515871A CN105515871A (en) 2016-04-20
CN105515871B true CN105515871B (en) 2019-03-19

Family

ID=55723530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510977887.4A Active CN105515871B (en) 2015-12-23 2015-12-23 The method and device of record log

Country Status (1)

Country Link
CN (1) CN105515871B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789195A (en) * 2016-12-02 2017-05-31 华为技术有限公司 A kind of event-handling method and Network Management Equipment, server
CN107992606A (en) * 2017-12-14 2018-05-04 互动派科技股份有限公司 A kind of storage format of user behavior data
CN110532048B (en) * 2019-07-05 2022-11-15 武楚荷 Event recording method and device and storage device
CN110471993B (en) * 2019-07-05 2022-06-17 武楚荷 Event correlation method and device and storage device
CN111338910B (en) * 2020-05-19 2021-02-26 腾讯科技(深圳)有限公司 Log data processing method, log data display method, log data processing device, log data display device, log data processing equipment and log data storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102217286A (en) * 2008-07-30 2011-10-12 帕姆公司 Diary synchronization for smart phone applications
CN104380322A (en) * 2012-04-05 2015-02-25 诺基亚公司 User event content, associated apparatus and methods

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9595015B2 (en) * 2012-04-05 2017-03-14 Nokia Technologies Oy Electronic journal link comprising time-stamped user event image content

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102217286A (en) * 2008-07-30 2011-10-12 帕姆公司 Diary synchronization for smart phone applications
CN104380322A (en) * 2012-04-05 2015-02-25 诺基亚公司 User event content, associated apparatus and methods

Also Published As

Publication number Publication date
CN105515871A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN104063655B (en) A kind of method and apparatus handling child mode
CN105515871B (en) The method and device of record log
CN103944963B (en) Method of data synchronization, device, equipment and system
RU2619083C2 (en) Method and device for message on request to call
CN107769881B (en) Information synchronization method, apparatus and system, storage medium
CN106453528B (en) The method and device of PUSH message
CN104539812B (en) Recommendation information acquisition methods, terminal and server
CN105898032A (en) Adjusting method and apparatus for warning tone
CN107222391A (en) Group's based reminding method, device and equipment
CN109246184A (en) A kind of temporal information acquisition methods, device and readable storage medium storing program for executing
CN105208176B (en) Contact person record processing method and processing device
CN105912450A (en) Method and device for displaying state information of application
CN110475134A (en) A kind of comment content display method, device, electronic equipment and storage medium
CN109039877A (en) A kind of method, apparatus, electronic equipment and storage medium showing unread message quantity
CN104811904B (en) Contact person's setting method and device
CN106453774B (en) Contact information methods of exhibiting and device
CN106375178A (en) Message display method and device based on instant messaging
CN105430469B (en) Playback method, device, terminal and the server of audio, video data
WO2017016145A1 (en) State notification method and apparatus
CN105843894A (en) Information recommending method and device
CN105701245B (en) Picture recommendation method and device
CN106572003A (en) User information recommendation method and device
CN109639561A (en) Sharing method, device, electronic equipment and storage medium based on information feedback
CN110113622A (en) Exchange method, device, electronic equipment and storage medium in live streaming
CN105892659A (en) Method and device for managing alarm clock

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