CN105515871A - Method and device for recording log - Google Patents

Method and device for recording log Download PDF

Info

Publication number
CN105515871A
CN105515871A CN201510977887.4A CN201510977887A CN105515871A CN 105515871 A CN105515871 A CN 105515871A CN 201510977887 A CN201510977887 A CN 201510977887A CN 105515871 A CN105515871 A CN 105515871A
Authority
CN
China
Prior art keywords
user
data
event
status data
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510977887.4A
Other languages
Chinese (zh)
Other versions
CN105515871B (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.)
Beijing Xiaomi Technology Co Ltd
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

Abstract

Embodiments of the invention provide a method and a device for recording a log. The method comprises the following steps: obtaining state data of a first user belonging to a mobile terminal, wherein the state data comprise one or more of the following data: position data of the first user, behavior data of the first user and character data, and the character is a character involved when recording the log; extracting an event from the state data according to a preset rule; and recording the event in the log. In the embodiments disclosed by the invention, a mobile phone and other mobile terminals can obtain the state data of the user, the state data can include the behavior of the user, the position of the user and related characters and the like, and then the mobile phone can extract the event according to the preset rule based on these state data and records the even in the log. In this way, the user does not need to carry out manual operation in daily lives, and the mobile phone and other mobile terminals can automatically record the event of the user in the log, so the log recording efficiency is improved.

Description

The method of log and device
Technical field
The disclosure relates to communication technical field, particularly relates to method and the device of log.
Background technology
A lot of user has the custom of recording diaries, daily record.Such as when user goes out or after going out to go home, the same day can be recorded when where what whom has done with in memorandum, as having a dinner party with colleague, going window-shopping with friend, go to the zoo together with household, with certain, so-and-so takes on the telephone, thus the scene on the same day can be remembered after being convenient to, or for other purposes etc.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides method and the device of log, to improve efficiency during user record daily record.
According to the first aspect of disclosure embodiment, provide a kind of method of log, described method is used for mobile terminal, and described method comprises:
Obtain the status data of described mobile terminal affiliated first user, described status data comprises following one or more data: the position data of described first user, the behavioral data of described first user, character data, personage involved when wherein said personage is log;
From described status data, event is extracted according to preset rules;
By described logout in daily record.
Optionally, when described status data comprises described behavioral data and described character data, the status data of the described mobile terminal affiliated first user of described acquisition, comprising:
Obtain the communications records of described mobile terminal, described communications records comprise message registration and/or short message record;
The communication object of described first user at Preset Time is obtained according to described communications records;
The communication behavior of described first user is recorded as described behavioral data, described communication object is recorded as described character data.
Optionally, when described status data comprises described character data, the status data of the described mobile terminal affiliated first user of described acquisition, comprising:
Obtain the user ID of associated user that contacts with described first user using as described character data, wherein said associated user is the user be associated with described user.
Optionally, the user ID of the associated user that described acquisition contacts with described first user, comprising:
Obtain the position of described associated user and the position of described first user;
If the distance between the position of the position of described associated user and described first user is less than predeterminable range, then record the user ID of described associated user;
Or,
Obtain in appointed area the user ID of other users occurred, wherein said appointed area be centered by the position of described first user, the predeterminable range region that is radius;
Judge whether there is described associated user in other users described, if there is described associated user, then record the user ID of described associated user.
Optionally, the user ID of the associated user that described acquisition contacts with described first user, comprising:
Obtain the user ID setting up the user that bluetooth is connected with described first user.
Optionally, describedly from described status data, extract event according to preset rules, comprising:
The time that the generation state obtaining the contained every item number certificate of described status data changes, wherein said generation state change refers to that the variable quantity of described every item number certificate has exceeded this data predetermined threshold value;
Obtain the subset of the described status data corresponding to time that described generation state changes;
The subset of described status data is converted to the statement using natural language description;
The statement of described use natural language description is recorded as a described event.
Optionally, after in described logout to daily record, described method also comprises:
Generate the event trace of described first user according to described daily record, wherein said event trace comprises at least two event node, an event in the corresponding described daily record of each described event node;
Receive described first user and instruction is checked to described event node;
Check that instruction shows the event corresponding to described event node to described first user according to described;
And/or,
After in described logout to daily record, described method also comprises:
According to described daily record the event of described first user added up according to pre-set categories and show.
Optionally, described status data by the record of described mobile terminal own, or, by the wearable device record with described mobile terminal binding.
According to the second aspect of disclosure embodiment, provide a kind of device of log, described device is used for mobile terminal, and described device comprises:
State data acquisition module, for obtaining the status data of described mobile terminal affiliated first user, described status data comprises following one or more data: the position data of described first user, the behavioral data of described first user, character data, personage involved when wherein said personage is log;
Event generation module, for extracting event according to preset rules from the status data that described state data acquisition module obtains;
Logger module, for the logout that extracted by described event generation module in daily record.
Optionally, when described status data comprises described behavioral data and described character data, described state data acquisition module comprises:
Communications records obtain submodule, and for obtaining the communications records of described mobile terminal, described communications records comprise message registration and/or short message record;
Communication object obtains submodule, for obtaining the communication object of described first user at Preset Time according to described communications records;
Data record submodule, for the communication behavior of described first user is recorded as described behavioral data, is recorded as described character data by described communication object.
Optionally, when described status data comprises described character data, described state data acquisition module comprises:
Contactee obtains submodule, and for the user ID that obtains the associated user contacted with described first user using as described character data, wherein said associated user is the user be associated with described user.
Optionally, described contactee obtains submodule and comprises:
Position acquisition submodule, for the position of the position and described first user that obtain described associated user;
First contactee's record sub module, when being less than predeterminable range for the distance between the position and the position of described first user of described associated user, records the user ID of described associated user;
Or,
User ID obtains submodule, for obtaining the user ID of other users occurred in appointed area, wherein said appointed area be centered by the position of described first user, the predeterminable range region that is radius;
Second contactee's record sub module, for judging whether there is described associated user in other users described, then records the user ID of described associated user when there being described associated user.
Optionally, described contactee obtains submodule and comprises:
3rd contactee's record sub module, for obtaining the user ID setting up the user that bluetooth is connected with described first user.
Optionally, described event generation module comprises:
The state variation time obtains submodule, the time that the generation state for obtaining every item number certificate contained by described status data changes, and wherein said generation state change refers to that the variable quantity of described every item number certificate has exceeded this data predetermined threshold value;
Event generates submodule, for obtaining the subset of described status data corresponding to time that described generation state changes, the subset of described status data is converted to the statement using natural language description, the statement of described use natural language description is recorded as a described event.
Optionally, described device also comprises:
Track checks module, for generating the event trace of described first user according to described daily record, wherein said event trace comprises at least two event node, an event in the corresponding described daily record of each described event node, receive described first user and instruction is checked to described event node, check that instruction shows the event corresponding to described event node to described first user according to described;
And/or,
Statistical module, for add up according to pre-set categories the event of described first user according to described daily record and show.
Optionally, the status data that described state data acquisition module obtains by the record of described mobile terminal own, or, by the wearable device record with described mobile terminal binding.
According to the third aspect of disclosure embodiment, a kind of device of log is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the status data of described mobile terminal affiliated first user, described status data comprises following one or more data: the position data of described first user, the behavioral data of described first user, character data, personage involved when wherein said personage is log;
From described status data, event is extracted according to preset rules;
By described logout in daily record.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
In the disclosed embodiments, the mobile terminals such as mobile phone can obtain the status data of user, and status data can comprise the behavior of user, the position of user and related person etc., then based on these status datas, mobile phone can extract event according to preset rules, and is recorded in daily record.In routine work life, user is without the need to manual operation like this, and the logout that user can run into by the mobile terminals such as mobile phone automatically in daily record, thus improves the efficiency of log.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.
Fig. 1 is the flow chart of the method for a kind of log according to an exemplary embodiment;
Fig. 2 is the flow chart of the method for a kind of log according to an exemplary embodiment;
Fig. 3 is the schematic diagram that the item number according to an exemplary embodiment changes according to generation state;
Fig. 4 is the flow chart of the method for a kind of log according to an exemplary embodiment;
Fig. 5 is the scene schematic diagram of the people that the acquisition user according to an exemplary embodiment contacts;
Fig. 6 is the flow chart of the method for a kind of log according to an exemplary embodiment;
Fig. 7 is the scene schematic diagram of the people that the acquisition user according to an exemplary embodiment contacts;
Fig. 8 is the scene schematic diagram of the people that the acquisition user according to an exemplary embodiment contacts;
Fig. 9 is the flow chart of the method for a kind of log according to an exemplary embodiment;
Figure 10 is the flow chart of the method for a kind of log according to an exemplary embodiment;
Figure 11 is the interface schematic diagram checking event trace according to an exemplary embodiment;
Figure 12 is the block diagram of the device of a kind of log according to an exemplary embodiment;
Figure 13 is the block diagram of the device of a kind of log according to an exemplary embodiment;
Figure 14 is the block diagram of the device of a kind of log according to an exemplary embodiment;
Figure 15 is the block diagram of the device of a kind of log according to an exemplary embodiment;
Figure 16 is the block diagram of the device of a kind of log according to an exemplary embodiment;
Figure 17 is the block diagram of the device of a kind of log according to an exemplary embodiment;
Figure 18 is the block diagram of the device of a kind of log according to an exemplary embodiment;
Figure 19 is the block diagram of the device of a kind of log according to an exemplary embodiment;
Figure 20 is the block diagram of the device of a kind of log according to an exemplary embodiment;
Figure 21 is the block diagram of a kind of device for log according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Terminal equipment herein can be mobile phone, panel computer, E-book reader, MP3 (MovingPictureExpertsGroupAudioLayerIII, dynamic image expert compression standard audio frequency aspect 3) player, MP4 (MovingPictureExpertsGroupAudioLayerIV, dynamic image expert compression standard audio frequency aspect 4) player and pocket computer on knee etc.
Fig. 1 is the flow chart of the method for a kind of log according to an exemplary embodiment.The method can be used for the mobile terminal such as mobile phone, panel computer.
In step S101, obtain the status data of described mobile terminal affiliated first user, described status data comprises following one or more data: the position data of described first user, the behavioral data of described first user, character data, personage involved when wherein said personage is log.
The state of user may be a comparatively open concept, in the present embodiment, the situation of user can be defined as: can comprise the place (position data) at user place, thing (behavioral data), the related person done.Certainly it is easily understood that above three elements are not indispensable, such as user goes to museum alone, and accompany without relatives and friends, now just do not have related person, such as user calls someone again, now can not have position data, etc.
For one day, behavioral data can comprise the time that the various actions of user in this day and the behavior occur.In the present embodiment, the behavior of user can comparatively broad sense, and it not only can comprise this or that user does, such as, walk, run, drive, have a meal, and also can comprise the physiological behaviors such as heartbeat.
Position data then can to comprise in this day of user residing diverse location and the time of correspondence, and such as user 7:00 ~ 7:30 is in, on the road that 7:30 ~ 8:00 is on duty, 8:00 ~ 12:00 in company, 12:00 ~ 12:30 in park, etc.
Personage involved during log, or be called and user-dependent personage, can be divided into two classes, a class is conversation object, and a class is the people that user contacts.In one day, the people that user contacts has a lot, such as courier, table steward, passerby etc., and the people that in the present embodiment, user contacts mainly refers to relevant with user and there occurs the people contacted, this is because the thing that user and these people do just has the meaning of log.Such as associated user can be the spouse, children, colleague, friend etc. of user.These users can be set to oneself associated user by user in advance.
How mobile terminal is obtained to the status data of first user, the present embodiment does not limit.Such as can by the various sensor elements that the mobile terminal of user carries to record the status data of user, also can record the status data of user by wearable devices such as the Intelligent bracelet of user and be transferred to the mobile terminal of user.In other words, in the present embodiment or the disclosure some other embodiments, described status data by the record of described mobile terminal own, or, by the wearable device record with described mobile terminal binding.
In step s 102, from described status data, event is extracted according to preset rules.
The change of the state of the corresponding described first user of described event.Still for one day, the status data of the user under storing in this day may have a lot, and significant normally those relate to the data of the change of User Status, in other words, when certain change of generation of User Status, usually preset and current certain event is occurring, therefore can be recorded in daily record.
In step s 103, by described logout in daily record.
Like this, in routine work life, user is without the need to manual operation, and the logout that user can run into by the mobile terminals such as mobile phone automatically in daily record, thus improves the efficiency of log.
Shown in Figure 2, in the present embodiment or the disclosure some other embodiments, describedly from described status data, extract event according to preset rules, can comprise:
In step s 201, the time that the generation state obtaining the contained every item number certificate of described status data changes, wherein said generation state change refers to that the variable quantity of described every item number certificate has exceeded this data predetermined threshold value.The state change that this variable quantity has exceeded respective threshold also can be described as sudden change.
In step S202, obtain the subset of the described status data corresponding to time that described generation state changes.
In step S203, the subset of described status data is converted to the statement using natural language description.
In step S204, the statement of described use natural language description is recorded as a described event.
Such as, user wakes up morning, and its heartbeat data is more big changes before and after reviving, and can think and create an event, being converted to natural language is " XX moment user revives "; Or the action data that also can detect according to bracelet judges whether user revives, because between user's sleep period, the action of the user that bracelet detects is almost nil, and user revive after bracelet the action that user is a large amount of just can be detected.
Again such as, user drive arrival company working, its position from constantly become stablize constant, its speed becomes close to zero from fair speed, such state variation is also larger, therefore also can think to create an event, being converted to natural language is " XX moment user arrives working place ".
Exemplarily can be shown in Figure 3.In figure 3, transverse axis is time T, each longitudinal axis is respectively behavioral data, position data and the people contacted, in Fig. 3, at certain moment (or certain time period) t, there is sudden change in the behavioral data of user, also namely variable quantity has exceeded certain threshold value of the behavioral data pre-set, then can think that moment t there occurs certain event, so can by part status data subset (part see dotted line frame in figure comprises) corresponding for moment t, also the behavioral data that namely moment t is corresponding, position data and the people contacted record, as the description to event.Exemplarily can record following data:
" the time: 7:08; Position: in family; Behavior: revive; Personage: nothing "
Being converted to natural language can be:
" 7:08 revives at home "
Statement the present embodiment of natural language description is used not limit for how to be converted to, such as can the rule base etc. of more preset common expressions storehouses and statement collocation.
In addition it is to be noted; for each data particular content and corresponding respectively threshold value etc. detailed problem the present embodiment do not limit; those skilled in the art can design according to different scene, different conditions of demand, and these designs that can use herein all do not deviate from spirit of the present disclosure and protection range.
In the present embodiment or the disclosure some other embodiments, when described status data comprises described character data, the status data of the described mobile terminal affiliated first user of described acquisition, can comprise:
Obtain the user ID of associated user that contacts with described first user using as described character data, wherein said associated user is the user be associated with described user.
After getting the people's (relatives and friends wait associated user) contacted with user, just can in conjunction with the rule base of behavior at that time and place and the collocation of some statements, the natural language description statement of generation event, as " during XX day XX ~ XX time and good friend so-and-so strolled Xi Dan Market ", etc.
For specifically how getting the people's the present embodiment contacted with user do not limit.Be described for three examples below.
For example, see shown in Fig. 4, in the present embodiment or the disclosure some other embodiments, the user ID of the associated user that described acquisition contacts with described first user, can comprise:
In step S401, obtain the position of described associated user and the position of described first user.
In step S402, if the distance between the position of the position of described associated user and described first user is less than predeterminable range, then record the user ID of described associated user.
Exemplarily can be shown in Figure 5, user 501 can ask the position of each good friend (user namely with shade in figure) of user to the server 503 in high in the clouds in Figure 5, if find that the position of one of them good friend 502 and this user is very close to (being namely less than certain predeterminable range value according to position, as 3 meters), then can think that good friend 502 has contacted with this user.
Again for example, see shown in Fig. 6, in the present embodiment or the disclosure some other embodiments, the user ID of the associated user that described acquisition contacts with described first user, can comprise:
In step s 601, obtain in appointed area the user ID of other users occurred, wherein said appointed area be centered by the position of described first user, the predeterminable range region that is radius.
In step S602, judge whether there is described associated user in other users described, if there is described associated user, then record the user ID of described associated user.
Exemplarily can be shown in Figure 7, to server 703 request in high in the clouds, user 701 can inform near user, whom (namely with the region that this user-center, certain predeterminable range are radius) have in the figure 7, then the good friend whether having user in these people is judged, if one of them people is the good friend 702 of user, then can think that good friend 702 has contacted with this user.
Again such as, in the present embodiment or the disclosure some other embodiments, the user ID of the associated user that described acquisition contacts with described first user, can comprise:
Obtain the user ID setting up the user that bluetooth is connected with described first user.
Exemplarily can be shown in Figure 8, the mobile phone of oneself mobile phone and each good friend all can be carried out Bluetooth pairing by user 801 in advance, like this during the mobile phone of certain moment certain good friend 802 on the mobile phone automatic matching of user 801, the distance connected due to bluetooth is limited, just can connect, so now can think that good friend 802 has contacted with this user when only having enough near.
Shown in Figure 9, in the present embodiment or the disclosure some other embodiments, when described status data comprises described behavioral data and described character data, the status data of the described mobile terminal affiliated first user of described acquisition, can comprise:
In step S901, obtain the communications records of described mobile terminal, described communications records comprise message registration and/or short message record.
In step S902, obtain the communication object of described first user at Preset Time according to described communications records.
Such as Preset Time can be the operating time etc. of every day.
In step S903, the communication behavior of described first user is recorded as described behavioral data, described communication object is recorded as described character data.
Being converted to natural language, such as, just can be " during X day X X give XXX made a call " this event.
In addition, shown in Figure 10, in the present embodiment or the disclosure some other embodiments, after in described logout to daily record, described method can also comprise:
In step S1001, generate the event trace of described first user according to described daily record, wherein said event trace comprises at least two event node, an event in the corresponding described daily record of each described event node.
In step S1002, receive described first user and instruction is checked to described event node.
In the step s 1003, check that instruction shows the event corresponding to described event node to described first user according to described.
Exemplarily can be shown in Figure 11, Figure 11 is the schematic diagram of the event trace of user's Wang Xiaoming, and user's Wang Xiaoming clicks one of them node just can see the event that this node is corresponding, the such as " time: 19:30; Place: Jianguo Hotel; Behavior: have a meal; Personage: Liu Yingying ".
In addition, in the present embodiment or the disclosure some other embodiments, after in described logout to daily record, described method can also comprise:
According to described daily record the event of described first user added up according to pre-set categories and show.
For one day, such user just can see the statistical conditions of oneself all kinds of event in one day, such as, seen how many people, walked road how far, etc.
In the present embodiment, the mobile terminals such as mobile phone can obtain the status data of user, and status data can comprise the behavior of user, the position of user and related person etc., then based on these status datas, mobile phone can extract event according to preset rules, and is recorded in daily record.In routine work life, user is without the need to manual operation like this, and the logout that user can run into by the mobile terminals such as mobile phone automatically in daily record, thus improves the efficiency of log.
Following is disclosure device embodiment, may be used for performing disclosure embodiment of the method.For the details do not disclosed in disclosure device embodiment, please refer to disclosure embodiment of the method.
Figure 12 is the block diagram of the device of a kind of log according to an exemplary embodiment.Described device can be used for the mobile terminal such as mobile phone, panel computer.
Described device can comprise:
State data acquisition module 1201, for obtaining the status data of described mobile terminal affiliated first user, described status data comprises following one or more data: the position data of described first user, the behavioral data of described first user, character data, personage involved when wherein said personage is log.
" state of user " may be a comparatively open concept, in the present embodiment, the situation of user can be defined as: can comprise the place (position data) at user place, thing (behavioral data), the related person done.Certainly it is easily understood that above three elements are not indispensable, such as user goes to museum alone, and accompany without relatives and friends, now just do not have related person, such as user calls someone again, now can not have position data, etc.
For one day, behavioral data can comprise the time that the various actions of user in this day and the behavior occur.In the present embodiment, the behavior of user can comparatively broad sense, and it not only can comprise this or that user does, such as, walk, run, drive, have a meal, and also can comprise the physiological behaviors such as heartbeat.
Position data then can to comprise in this day of user residing diverse location and the time of correspondence, and such as user 7:00 ~ 7:30 is in, on the road that 7:30 ~ 8:00 is on duty, 8:00 ~ 12:00 in company, 12:00 ~ 12:30 in park, etc.
Personage involved during log, or be called and user-dependent personage, can be divided into two classes, a class is conversation object, and a class is the people that user contacts.In one day, the people that user contacts has a lot, such as courier, table steward, passerby etc., and the people that in the present embodiment, user contacts mainly refers to relevant with user and there occurs the people contacted, this is because the thing that user and these people do just has the meaning of log.Such as associated user can be the spouse, children, colleague, friend etc. of user.These users can be set to oneself associated user by user in advance.
How mobile terminal is obtained to the status data of first user, the present embodiment does not limit.Such as can by the various sensor elements that the mobile terminal of user carries to record the status data of user, also can record the status data of user by wearable devices such as the Intelligent bracelet of user and be transferred to the mobile terminal of user.In other words, in the present embodiment or the disclosure some other embodiments, described status data by the record of described mobile terminal own, or, by the wearable device record with described mobile terminal binding.
Event generation module 1202, for extracting event according to preset rules from the status data that described state data acquisition module 1201 obtains.
The change of the state of the corresponding described first user of described event.Still for one day, the status data of the user under storing in this day may have a lot, and significant normally those relate to the data of the change of User Status, in other words, when certain change of generation of User Status, usually preset and current certain event is occurring, therefore can be recorded in daily record.
Logger module 1203, for the logout that extracted by described event generation module 1202 in daily record.
Like this, in routine work life, user is without the need to manual operation, and the logout that user can run into by the mobile terminals such as mobile phone automatically in daily record, thus improves the efficiency of log.
Shown in Figure 13, in the present embodiment or the disclosure some other embodiments, when described status data comprises described behavioral data and described character data, described state data acquisition module 1201 can comprise:
Communications records obtain submodule 1301, and for obtaining the communications records of described mobile terminal, described communications records comprise message registration and/or short message record.
Communication object obtains submodule 1302, for obtaining the communication object of described first user at Preset Time according to described communications records.
Data record submodule 1303, for the communication behavior of described first user is recorded as described behavioral data, is recorded as described character data by described communication object.
Being converted to natural language, such as, just can be " during X day X X give XXX made a call " this event.
Shown in Figure 14, in the present embodiment or the disclosure some other embodiments, when described status data comprises described character data, described state data acquisition module 1201 can comprise:
Contactee obtains submodule 1401, and for the user ID that obtains the associated user contacted with described first user using as described character data, wherein said associated user is the user be associated with described user.
After getting the people's (relatives and friends wait associated user) contacted with user, just can in conjunction with the rule base of behavior at that time and place and the collocation of some statements, the natural language description statement of generation event, as " during XX day XX ~ XX time and good friend so-and-so strolled Xi Dan Market ", etc.
For specifically how getting the people's the present embodiment contacted with user do not limit.Be described for three examples below.
For example, see shown in Figure 15, in the present embodiment or the disclosure some other embodiments, described contactee obtains submodule 1401 and can comprise:
Position acquisition submodule 1501, for the position of the position and described first user that obtain described associated user;
First contactee's record sub module 1502, when being less than predeterminable range for the distance between the position and the position of described first user of described associated user, records the user ID of described associated user.
Exemplarily can be shown in Figure 5, user 501 can ask the position of each good friend (user namely with shade in figure) of user to the server 503 in high in the clouds in Figure 5, if find that the position of one of them good friend 502 and this user is very close to (being namely less than certain predeterminable range value according to position, as 3 meters), then can think that good friend 502 has contacted with this user.
Again for example, see shown in Figure 15, in the present embodiment or the disclosure some other embodiments, described contactee obtains submodule 1401 and can comprise:
User ID obtains submodule 1601, for obtaining the user ID of other users occurred in appointed area, wherein said appointed area be centered by the position of described first user, the predeterminable range region that is radius;
Second contactee's record sub module 1602, for judging whether there is described associated user in other users described, then records the user ID of described associated user when there being described associated user.
Exemplarily can be shown in Figure 7, to server 703 request in high in the clouds, user 701 can inform near user, whom (namely with the region that this user-center, certain predeterminable range are radius) have in the figure 7, then the good friend whether having user in these people is judged, if one of them people is the good friend 702 of user, then can think that good friend 702 has contacted with this user.
Again for example, see shown in Figure 17, in the present embodiment or the disclosure some other embodiments, described contactee obtains submodule 1401 and can comprise:
3rd contactee's record sub module 1701, for obtaining the user ID setting up the user that bluetooth is connected with described first user.
Exemplarily can be shown in Figure 8, the mobile phone of oneself mobile phone and each good friend all can be carried out Bluetooth pairing by user 801 in advance, like this during the mobile phone of certain moment certain good friend 802 on the mobile phone automatic matching of user 801, the distance connected due to bluetooth is limited, just can connect, so now can think that good friend 802 has contacted with this user when only having enough near.
Shown in Figure 18, in the present embodiment or the disclosure some other embodiments, described event generation module 1202 can comprise:
The state variation time obtains submodule 1801, the time that the generation state for obtaining every item number certificate contained by described status data changes, and wherein said generation state change refers to that the variable quantity of described every item number certificate has exceeded this data predetermined threshold value;
Event generates submodule 1802, for obtaining the subset of described status data corresponding to time that described generation state changes, the subset of described status data is converted to the statement using natural language description, the statement of described use natural language description is recorded as a described event.
In addition, shown in Figure 19, in the present embodiment or the disclosure some other embodiments, described device can also comprise:
Track checks module 1204, for generating the event trace of described first user according to described daily record, wherein said event trace comprises at least two event node, an event in the corresponding described daily record of each described event node, receive described first user and instruction is checked to described event node, check that instruction shows the event corresponding to described event node to described first user according to described.
Exemplarily can be shown in Figure 11, Figure 11 is the schematic diagram of the event trace of user's Wang Xiaoming, and user's Wang Xiaoming clicks one of them node just can see the event that this node is corresponding, the such as " time: 19:30; Place: Jianguo Hotel; Behavior: have a meal; Personage: Liu Yingying ".
In addition, shown in Figure 20, in the present embodiment or the disclosure some other embodiments, described device can also comprise:
Statistical module 1205, for add up according to pre-set categories the event of described first user according to described daily record and show.
For one day, such user just can see the statistical conditions of oneself all kinds of event in one day, such as, seen how many people, walked road how far, etc.
In the present embodiment, the mobile terminals such as mobile phone can obtain the status data of user, and status data can comprise the behavior of user, the position of user and related person etc., then based on these status datas, mobile phone can extract event according to preset rules, and is recorded in daily record.In routine work life, user is without the need to manual operation like this, and the logout that user can run into by the mobile terminals such as mobile phone automatically in daily record, thus improves the efficiency of log.
The disclosure also discloses a kind of device of log, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the status data of described mobile terminal affiliated first user, described status data comprises following one or more data: the position data of described first user, the behavioral data of described first user, character data, personage involved when wherein said personage is log;
From described status data, event is extracted according to preset rules;
By described logout in daily record.
The disclosure also discloses a kind of non-transitory computer-readable recording medium, and when the instruction in described storage medium is performed by the processor of mobile terminal device, make mobile terminal can perform a kind of method of log, described method comprises:
Obtain the status data of described mobile terminal affiliated first user, described status data comprises following one or more data: the position data of described first user, the behavioral data of described first user, character data, personage involved when wherein said personage is log;
From described status data, event is extracted according to preset rules;
By described logout in daily record.
Figure 21 is the block diagram of a kind of device for log according to an exemplary embodiment.This device and the device shown in figure 2100, this device 2100 can be such as mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 21, device 2100 can comprise following one or more assembly: processing components 2102, memory 2104, power supply module 2106, multimedia groupware 2108, audio-frequency assembly 2110, the interface 2112 of I/O (I/O), sensor cluster 2114, and communications component 2116.
The integrated operation of the usual control device 2100 of processing components 2102, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 2102 can comprise one or more processor 2120 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 2102 can comprise one or more module, and what be convenient between processing components 2102 and other assemblies is mutual.Such as, processing components 2102 can comprise multi-media module, mutual with what facilitate between multimedia groupware 2108 and processing components 2102.
Memory 2104 is configured to store various types of data to be supported in the operation of equipment 2100.The example of these data comprises for any application program of operation on device 2100 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 2104 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 2106 is device 2100 provide electric power.Power supply module 2106 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 2100 and be associated.
Multimedia groupware 2108 is included in the screen providing an output interface between described device 2100 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 2108 comprises a front-facing camera and/or post-positioned pick-up head.When device 2100 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 2110 is configured to export and/or input audio signal.Such as, audio-frequency assembly 2110 comprises a microphone (MIC), and when device 2100 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 2104 further or be sent via communications component 2116.In certain embodiments, audio-frequency assembly 2110 also comprises a loud speaker, for output audio signal.
I/O interface 2112 is for providing interface between processing components 2102 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 2114 comprises one or more transducer, for providing the state estimation of various aspects for device 2100.Such as, sensor cluster 2114 can detect the opening/closing state of equipment 2100, the relative positioning of assembly, such as described assembly is display and the keypad of device 2100, the position of all right checkout gear 2100 of sensor cluster 2114 or device 2100 assemblies changes, the presence or absence that user contacts with device 2100, the variations in temperature of device 2100 orientation or acceleration/deceleration and device 2100.Sensor cluster 2114 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 2114 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 2114 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 2116 is configured to the communication being convenient to wired or wireless mode between device 2100 and other equipment.Device 2100 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 2116 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 2116 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 2100 can be realized, for performing the said method of end side by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by appended claim.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (17)

1. a method for log, is characterized in that, described method is used for mobile terminal, and described method comprises:
Obtain the status data of described mobile terminal affiliated first user, described status data comprises following one or more data: the position data of described first user, the behavioral data of described first user, character data, personage involved when wherein said personage is log;
From described status data, event is extracted according to preset rules;
By described logout in daily record.
2. method according to claim 1, is characterized in that, when described status data comprises described behavioral data and described character data, the status data of the described mobile terminal affiliated first user of described acquisition, comprising:
Obtain the communications records of described mobile terminal, described communications records comprise message registration and/or short message record;
The communication object of described first user at Preset Time is obtained according to described communications records;
The communication behavior of described first user is recorded as described behavioral data, described communication object is recorded as described character data.
3. method according to claim 1, is characterized in that, when described status data comprises described character data, the status data of the described mobile terminal affiliated first user of described acquisition, comprising:
Obtain the user ID of associated user that contacts with described first user using as described character data, wherein said associated user is the user be associated with described user.
4. method according to claim 3, is characterized in that, the user ID of the associated user that described acquisition contacts with described first user, comprising:
Obtain the position of described associated user and the position of described first user;
If the distance between the position of the position of described associated user and described first user is less than predeterminable range, then record the user ID of described associated user;
Or,
Obtain in appointed area the user ID of other users occurred, wherein said appointed area be centered by the position of described first user, the predeterminable range region that is radius;
Judge whether there is described associated user in other users described, if there is described associated user, then record the user ID of described associated user.
5. method according to claim 3, is characterized in that, the user ID of the associated user that described acquisition contacts with described first user, comprising:
Obtain the user ID setting up the user that bluetooth is connected with described first user.
6. method according to claim 1, is characterized in that, describedly from described status data, extracts event according to preset rules, comprising:
The time that the generation state obtaining the contained every item number certificate of described status data changes, wherein said generation state change refers to that the variable quantity of described every item number certificate has exceeded this data predetermined threshold value;
Obtain the subset of the described status data corresponding to time that described generation state changes;
The subset of described status data is converted to the statement using natural language description;
The statement of described use natural language description is recorded as a described event.
7. method according to claim 1, is characterized in that, after in described logout to daily record, described method also comprises:
Generate the event trace of described first user according to described daily record, wherein said event trace comprises at least two event node, an event in the corresponding described daily record of each described event node;
Receive described first user and instruction is checked to described event node;
Check that instruction shows the event corresponding to described event node to described first user according to described;
And/or,
After in described logout to daily record, described method also comprises:
According to described daily record the event of described first user added up according to pre-set categories and show.
8. method according to claim 1, is characterized in that, described status data by the record of described mobile terminal own, or, by the wearable device record with described mobile terminal binding.
9. a device for log, is characterized in that, described device is used for mobile terminal, and described device comprises:
State data acquisition module, for obtaining the status data of described mobile terminal affiliated first user, described status data comprises following one or more data: the position data of described first user, the behavioral data of described first user, character data, personage involved when wherein said personage is log;
Event generation module, for extracting event according to preset rules from the status data that described state data acquisition module obtains;
Logger module, for the logout that extracted by described event generation module in daily record.
10. device according to claim 9, is characterized in that, when described status data comprises described behavioral data and described character data, described state data acquisition module comprises:
Communications records obtain submodule, and for obtaining the communications records of described mobile terminal, described communications records comprise message registration and/or short message record;
Communication object obtains submodule, for obtaining the communication object of described first user at Preset Time according to described communications records;
Data record submodule, for the communication behavior of described first user is recorded as described behavioral data, is recorded as described character data by described communication object.
11. devices according to claim 9, is characterized in that, when described status data comprises described character data, described state data acquisition module comprises:
Contactee obtains submodule, and for the user ID that obtains the associated user contacted with described first user using as described character data, wherein said associated user is the user be associated with described user.
12. devices according to claim 11, is characterized in that, described contactee obtains submodule and comprises:
Position acquisition submodule, for the position of the position and described first user that obtain described associated user;
First contactee's record sub module, when being less than predeterminable range for the distance between the position and the position of described first user of described associated user, records the user ID of described associated user;
Or,
User ID obtains submodule, for obtaining the user ID of other users occurred in appointed area, wherein said appointed area be centered by the position of described first user, the predeterminable range region that is radius;
Second contactee's record sub module, for judging whether there is described associated user in other users described, then records the user ID of described associated user when there being described associated user.
13. devices according to claim 11, is characterized in that, described contactee obtains submodule and comprises:
3rd contactee's record sub module, for obtaining the user ID setting up the user that bluetooth is connected with described first user.
14. devices according to claim 9, is characterized in that, described event generation module comprises:
The state variation time obtains submodule, the time that the generation state for obtaining every item number certificate contained by described status data changes, and wherein said generation state change refers to that the variable quantity of described every item number certificate has exceeded this data predetermined threshold value;
Event generates submodule, for obtaining the subset of described status data corresponding to time that described generation state changes, the subset of described status data is converted to the statement using natural language description, the statement of described use natural language description is recorded as a described event.
15. devices according to claim 9, is characterized in that, described device also comprises:
Track checks module, for generating the event trace of described first user according to described daily record, wherein said event trace comprises at least two event node, an event in the corresponding described daily record of each described event node, receive described first user and instruction is checked to described event node, check that instruction shows the event corresponding to described event node to described first user according to described;
And/or,
Statistical module, for add up according to pre-set categories the event of described first user according to described daily record and show.
16. devices according to claim 9, is characterized in that, the status data that described state data acquisition module obtains by the record of described mobile terminal own, or, by the wearable device record with described mobile terminal binding.
The device of 17. 1 kinds of logs, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the status data of described mobile terminal affiliated first user, described status data comprises following one or more data: the position data of described first user, the behavioral data of described first user, character data, personage involved when wherein said personage is log;
From described status data, event is extracted according to preset rules;
By described logout in daily record.
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 true CN105515871A (en) 2016-04-20
CN105515871B 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)

Cited By (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
CN110471993A (en) * 2019-07-05 2019-11-19 武楚荷 A kind of correlating method of event, device and storage device
CN110532048A (en) * 2019-07-05 2019-12-03 武楚荷 A kind of recording method of event, device and storage device
CN111338910A (en) * 2020-05-19 2020-06-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 (3)

* 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
US20130268828A1 (en) * 2012-04-05 2013-10-10 Nokia Corporation User event content, associated apparatus and methods
CN104380322A (en) * 2012-04-05 2015-02-25 诺基亚公司 User event content, associated apparatus and methods

Patent Citations (3)

* 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
US20130268828A1 (en) * 2012-04-05 2013-10-10 Nokia Corporation User event content, associated apparatus and methods
CN104380322A (en) * 2012-04-05 2015-02-25 诺基亚公司 User event content, associated apparatus and methods

Cited By (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
CN110471993A (en) * 2019-07-05 2019-11-19 武楚荷 A kind of correlating method of event, device and storage device
CN110532048A (en) * 2019-07-05 2019-12-03 武楚荷 A kind of recording method of event, device and storage device
CN111338910A (en) * 2020-05-19 2020-06-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

Also Published As

Publication number Publication date
CN105515871B (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN105515871A (en) Method and device for recording log
CN104836897A (en) Method and device for controlling terminal communication through wearable device
CN104951479A (en) Video content detecting method and device
CN105096144A (en) Social relation analysis method and social relation analysis device
CN104717293A (en) Method and device for showing information resources on conversation interface
CN104539812B (en) Recommendation information acquisition methods, terminal and server
CN103973900B (en) The method of transmission information and device
CN106060257A (en) Method and device for viewing relevant information of contact
CN105228084A (en) Wearable intelligent equipment Inspection data processing method and wearable intelligent equipment
CN105214197A (en) Based reminding method and device
CN104394137A (en) Voice call reminding method and device
CN105450866A (en) Communication method and device
CN103888601A (en) Method, device and terminal for information warning
CN106453528A (en) Method and device for pushing message
CN104636164A (en) Generating method and device for starting page
CN105323152A (en) Message processing method, device and equipment
CN106331073A (en) Method and apparatus for sharing intelligent device
CN105677023A (en) Information presenting method and device
CN105488829A (en) Method and device for generating head portrait
CN106130873A (en) Information processing method and device
CN105847124A (en) Method, device, server and terminal used for giving like to social network information
CN105577523A (en) Message sending methods and apparatuses
CN105260439A (en) Data release method and apparatus and terminal
CN105491518A (en) Method and device for social reminding based on wearable devices
CN104836721A (en) Group session message reminding method and group session message reminding device

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