The method of reporting information and device
Technical field
The present invention relates to field of data transmission, more specifically, relate to method and the device of reporting information.
Background technology
The development in current intelligent terminal field is very fast, being wherein developed in order to study hotspot of operating system software.
The error reporting mechanism of operating system is link important in operating system software development process, and by this mechanism, developer can know the mistake of operating system, and then improves in follow-up software development with in alternating.
The old process of operating system mistake is reported to comprise the steps: at present
Step 1: the mistake of collecting operating system;
Step 2: the prompting exporting the system journal whether catching this mistake corresponding to user;
Step 3: after user confirms seizure, capture system daily record also uploads to desired location.
Although perform the mistake that above-mentioned steps can report a lot of operating system, some mistake of operating system but can not be reported by which, such as: 1) user interface of terminal is locked without response; 2) operating system collapse also autoboot; 3) submodule in terminal is restarted or self-recoverage.
When above-mentioned 1) and 2), cannot export to user the prompting whether catching the system journal of this mistake, therefore system journal cannot upload to desired location.When above-mentioned 3), inherently can not export to user the prompting whether catching the system journal of this mistake, only can reload submodule, therefore system journal also cannot upload to desired location.
In order to overcome the problems referred to above, there is a solution at present, the mistake of operating system is collected according to predetermined way, then generation error report, automatically error reporting is sent to desired location finally by modes such as notes, without the need to pointing out user in this solution, also without the need to the confirmation of user, automatically error reporting can be sent, but terminal all by this way automatically on give the correct time, assigned address will receive the error reporting of a lot of instruction same error, such developer error reporting increasing number to be processed, and then reduce the efficiency of process mistake, increase the weight of the operation burden of developer.
Summary of the invention
The embodiment of the present invention proposes a kind of method and device of reporting information, automatically can report set information and can control the quantity of institute's reporting information, alleviating operation burden.
The embodiment of the present invention provides a kind of method of reporting information, and the method comprises:
Obtain the information in instruction geographical position;
Information according to described instruction geographical position determines current geographical position;
If the current geographical position having entered setting, start to catch information to be reported, and be sent to desired location after capturing information to be reported;
If the current geographical position having left setting, stop catching information to be reported.
The method that the embodiment of the present invention provides, just service can be reported by opening information after entering the geographical position of setting, could start to catch information to be reported and be sent to assigned address after capturing information to be reported, like this can not only reporting information automatically, also limit the quantity of reporting information, alleviate operation burden.
Preferably, the described information obtaining instruction geographical position is: the access state obtaining WLAN (wireless local area network);
Based on this, as the optional execution mode of one, determine that current geographical position is according to the information in described instruction geographical position:
According to the access state of WLAN (wireless local area network), if the current WLAN (wireless local area network) having accessed the geographical position being positioned at setting, determine the current geographical position having entered setting, if the current WLAN (wireless local area network) having left the geographical position being positioned at setting, determine the current geographical position having left setting.
Preferably, the described information obtaining instruction geographical position is: obtain global position system GPS indication information;
Based on this, as the optional execution mode of another kind, determine that current geographical position is according to the information in described instruction geographical position: resolve described GPS indication information, determine current geographical position.
Preferably, as the optional execution mode of one, described in capture information to be reported after be sent to desired location and comprise:
Generate the mail comprising information to be reported based on simple mail agreement SMTP, described mail is to the source email address that should have object email address and setting;
Described mail is sent to second server belonging to described object email address by the first server belonging to the addresses of items of mail of described source.
In this embodiment, terminal and second server, all without the need to doing any change, realize simple.
Preferably, as the optional execution mode of another kind, described in capture information to be reported after be sent to desired location and be:
Generate the mail comprising information to be reported based on SMTP, described mail is to the source email address that should have object email address and setting;
Described mail is sent to second server belonging to described object email address by setting port.
In this embodiment, terminal and second server all need to do specific setting, but are a simplified forwarding step.
Further, described mail is sent to terminal corresponding to described object email address by described second server;
Or described mail is stored to by described second server and checks the page.
Here, described mail directly can send to specific object email address, or can also be stored to by Classification Management and unified check the page, conveniently checks.
Further, the defining method of described object email address comprises:
For the information to be reported captured adds tag names, described tag names be described capture operation for object event;
According to the tag names of setting and the corresponding relation of object email address, determine the object email address that described tag names is corresponding.
Here determine object email address according to tag names, realize more flexible.
Further, described transmission is performed by WLAN (wireless local area network).This send mode can not take the bandwidth paid of user.
The embodiment of the present invention provides a kind of device of reporting information, and this device comprises:
Determination module, for obtaining the information in instruction geographical position, the information according to described instruction geographical position determines current geographical position;
Reporting module, for current entered the geographical position of setting time, start to catch information to be reported, and be sent to desired location after capturing information to be reported, current left the geographical position of setting time, stop catch information to be reported.
Preferably, described determination module comprises:
Obtain submodule, for obtaining the access state of WLAN (wireless local area network);
Determine submodule, for the access state according to WLAN (wireless local area network), if the current WLAN (wireless local area network) having accessed the geographical position being positioned at setting, determine the current geographical position having entered setting, if the current WLAN (wireless local area network) having left the geographical position being positioned at setting, determine the current geographical position having left setting.
Preferably, described determination module comprises:
Obtain submodule, for obtaining global position system GPS indication information;
Determining submodule, for resolving described GPS indication information, determining current geographical position.
Preferably, described reporting module comprises:
Catch submodule, for current entered the geographical position of setting time, start to catch information to be reported, current left the geographical position of setting time, stop catch information to be reported;
Generate submodule, for generating the mail comprising information to be reported based on simple mail agreement SMTP, described mail is to the source email address that should have object email address and setting;
Send submodule, for described mail is sent to second server belonging to described object email address by the first server belonging to the addresses of items of mail of described source.
Preferably, described reporting module comprises:
Catch submodule, for current entered the geographical position of setting time, start to catch information to be reported, current left the geographical position of setting time, stop catch information to be reported;
Generate submodule, for generating the mail comprising information to be reported based on SMTP, described mail is to the source email address that should have object email address and setting;
Send submodule, for described mail is sent to second server belonging to described object email address by setting port.
Further, described mail is sent to terminal corresponding to described object email address by described second server;
Or described mail is stored to by described second server and checks the page.
Further, described seizure submodule also for, be that the information to be reported captured adds tag names, described tag names be described capture operation for object event; According to the tag names of setting and the corresponding relation of object email address, determine the object addresses of items of mail that described tag names is corresponding.
Further, described transmission submodule performs described transmission by WLAN (wireless local area network).
The further feature of the embodiment of the present invention and advantage will be set forth in the following description, and, partly become apparent from specification, or understand by implementing the embodiment of the present invention.The object of the embodiment of the present invention and other advantages realize by structure specifically noted in write specification, claims and accompanying drawing and obtain.
Below by drawings and Examples, the technical scheme of the embodiment of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide the further understanding to the embodiment of the present invention, and forms a part for specification, does not form the restriction to the embodiment of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the method for the reporting information that the preferred embodiment of the present invention one proposes;
Fig. 2 is the flow chart of the method for the reporting information that the preferred embodiment of the present invention two proposes;
Fig. 3 is the schematic diagram that in the preferred embodiment shown in Fig. 2, WLAN (wireless local area network) covers;
Fig. 4 is the flow chart of the method for the reporting information that the preferred embodiment of the present invention three proposes;
Fig. 5 is the structural representation of the device of the reporting information that the preferred embodiment of the present invention four proposes;
Fig. 6 is the structural representation of the device of the reporting information that the preferred embodiment of the present invention five proposes;
Fig. 7 is the structural representation of the device of the reporting information that the preferred embodiment of the present invention six proposes.
Embodiment
Below in conjunction with accompanying drawing, preferred embodiment is described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the embodiment of the present invention, is not intended to limit the present invention embodiment.
Embodiment one
Fig. 1 is the flow chart of the method for the reporting information that the preferred embodiment of the present invention one provides, and the method comprises:
Step 11: the information obtaining instruction geographical position.
Step 12: the information according to described instruction geographical position determines current geographical position.
Step 13: if the current geographical position having entered setting, start to catch information to be reported, and be sent to desired location after capturing information to be reported; If the current geographical position having left setting, stop catching information to be reported.
Visible, the method that this preferred embodiment provides, just service can be reported by opening information after entering the geographical position of setting, could start to catch information to be reported and be sent to assigned address after capturing information to be reported, like this can not only reporting information automatically, also limit the quantity of reporting information, alleviate operation burden.
Embodiment two
The flow chart of the method for the reporting information that Fig. 2 provides for the preferred embodiment of the present invention two.In this preferred embodiment two, information to be reported is the error message of operating system.
Shown in Fig. 2, flow process comprises:
Step 21: the access state obtaining WLAN (wireless local area network).
Wireless local network connecting point (AP) is extensively present in different places, such as family, unit, the shopping site etc. that often goes, and therefore fixing wireless local network connecting point and geographical position have incidence relation.Dispose specific wireless local network connecting point in the geographical position of setting, after terminal accesses this specific wireless local network connecting point, namely the current geographical position having entered setting is described.
Step 22: determine current geographical position according to the access state of WLAN (wireless local area network).
In this step, terminal inner is previously stored with the relevant information of the WLAN (wireless local area network) in the geographical position being positioned at setting, such as access point identity etc., terminal also can obtain the relevant information of WLAN (wireless local area network) when accessing certain WLAN (wireless local area network), compared by the relevant information of the WLAN (wireless local area network) by the access relevant information with the WLAN (wireless local area network) prestored, can determine that whether the WLAN (wireless local area network) that accessed is the WLAN (wireless local area network) in the geographical position being positioned at setting.If the current WLAN (wireless local area network) having accessed the geographical position being positioned at setting, determine the current geographical position having entered setting, if the current WLAN (wireless local area network) having left the geographical position being positioned at setting, determine the current geographical position having left setting.
As shown in Figure 3, the wireless local network connecting point in the geographical position of setting has the overlay area indicated by solid oval, after terminal enters this region and accesses this WLAN (wireless local area network), this access state just can indicate the current geographical position having entered setting, with SP marking terminal in Fig. 3.
Step 23: if the current geographical position having entered setting, starts the error message of capture operation system, and be sent to desired location after the error message capturing operating system; If the current geographical position having left setting, stop the error message of capture operation system.
In this step, by implanting Trigger message in system code, the error message of automatic capturing operating system can be realized.The form of Trigger message is action+object event, wherein action refers to the particular type of seizure, can be capture system kernel information, catch attribute information etc., object event refer to action for event, can restart for submodule, system crash and user interface locked etc.
Further, after the error message capturing operating system, can also add tag names to the error message captured, tag names can be the object event in above-mentioned Trigger message.Such as, when restarting seizure error message for Wireless Fidelity (WIFI) submodule, tag names " WIFI submodule " is added to the error message captured.
This step, when the error message of transmit operation system, first generates the mail comprising the error message of operating system based on simple mail agreement (SMTP), the source email address of this mail presets for user, and object email address can be more than one.Make the size of sent content unrestricted based on SMTP, and user is without the need to paying.
As one of optional execution mode, the process of above-mentioned transmission mail specifically comprises: will comprise the mail sending of the error message of operating system to the first server belonging to the email address of source, this email relaying is given the second server belonging to setting object email address by first server, second server by this mail sending to terminal corresponding to object email address.According to this send mode, terminal and second server, all without the need to doing any change, realize simple.
As one of optional execution mode, the process of above-mentioned transmission mail specifically comprises: setting port mail being directly sent to the second server belonging to object email address, and second server is by this mail sending terminal that extremely setting object email address is corresponding.In this manner, terminal and second server all need to do specific setting, but are a simplified forwarding step.
Above-mentioned purpose email address can preset, can also dynamically determine, such as, when adding tag names to the error message of the operating system captured, first need determine the object email address corresponding with tag names, suppose that tag names is " WIFI submodule ", object email address is exactly the email address of WIFI system developer, and the corresponding relation of various tag names and object email address can be made an appointment.
When object email address is one, second server can also after the mail receiving the error message comprising operating system, not directly by this mail sending to terminal corresponding to object email address, and carry out Classification Management on backstage by sort program, and sorted error message is stored to checks the page, this checks the link that page correspondence one is fixing, opens the error message that this link just can browse all operations system of checking in the page.When object email address is more than one, second server will comprise the mail sending terminal that extremely multiple object email address is corresponding of the error message of operating system, can improve the reliability that error message reports like this.
Owing to being that the access state of WLAN (wireless local area network) judges whether to enter the geographical position of setting in this preferred embodiment two, therefore which kind of execution mode above-mentioned no matter is adopted, the error message of operating system can be sent by the WLAN (wireless local area network) accessed, and can not take any bandwidth paid of user like this.
In this preferred embodiment two, by automatically reporting the error message of operating system to assigned address, making developer know the mistake that operating system occurs, and then improving for these mistakes.
Embodiment three
The flow chart of the method for the reporting information that Fig. 4 provides for the preferred embodiment of the present invention three.In this preferred embodiment three, information to be reported is the usage data of certain hardware module in terminal, terminal such as, " returns " hardware module that key, " function menu " key and " search " key all belong to terminal.Usage data can be the access times of hardware module.
Flow process shown in Fig. 4 comprises:
Step 41: obtain global positioning system (GPS) indication information.
Step 42: determine current geographical position by resolving GPS indication information.
Step 43: if the current geographical position having entered setting, start the usage data of the hardware module catching terminal, and desired location is sent to after the usage data of hardware module capturing terminal; If the current geographical position having left setting, stop the usage data of the hardware module catching terminal.
In this step, by implanting Trigger message in system code, the usage data of the hardware module of automatic capturing terminal can be realized.The form of Trigger message is action+object event, wherein action refers to the particular type of seizure, can for catching access times information, using order information etc., object event refer to action institute for event, can be " function menu " key, " returning " key and " search " key etc.
Further, after the error message capturing operating system, can also add tag names to the error message captured, tag names can be the object event in above-mentioned Trigger message.Such as, when catching access times for " search " key, add tag names " button " to the error message captured.
In this step, desired location refers to email address, hereinafter referred to as object email address, when the usage data of the hardware module of transmitting terminal, first generate the mail comprising usage data based on SMTP, the source email address of this mail presets for user, and object email address can be more than one.Make the size of sent content unrestricted based on SMTP, and user is without the need to paying.
As one of optional execution mode, the process of above-mentioned transmission mail specifically comprises: will comprise the mail sending of usage data to the first server belonging to the email address of source, this email relaying is given the second server belonging to setting object email address by first server, second server by this mail sending to terminal corresponding to object email address.According to this send mode, terminal and second server, all without the need to doing any change, realize simple.
As one of optional execution mode, the process of above-mentioned transmission mail specifically comprises: setting port mail being directly sent to the second server belonging to object email address, and second server is by this mail sending terminal that extremely setting object email address is corresponding.In this manner, terminal and second server all need to do specific setting, but are a simplified forwarding step.
Above-mentioned purpose email address can preset, can also dynamically determine, such as, when adding tag names to the error message of the operating system captured, first need determine the object email address corresponding with tag names, such as, when tag names is " button ", object email address is exactly the email address of terminal appearance developer, and the corresponding relation of various tag names and object email address can be made an appointment.
When object email address is one, second server can also after receiving the mail comprising usage data, not directly by this mail sending to terminal corresponding to object email address, and carry out Classification Management on backstage by sort program, and sorted error message is stored to checks the page, this checks the link that page correspondence one is fixing, opens this link and just can browse all usage datas checked in the page.When object email address is more than one, second server will comprise the mail sending terminal that extremely multiple object email address is corresponding of usage data, can improve the reliability that error message reports like this.
Current geographic position is determined not by the WLAN (wireless local area network) of access in this preferred embodiment three, but terminal still likely accessing WLAN, therefore which kind of execution mode above-mentioned no matter is adopted, the usage data of the hardware module of terminal still can be sent by the WLAN (wireless local area network) accessed, and sends any bandwidth paid that can not take user like this.But also can be sent by other bandwidth paid, such as note, 3G etc.
In this preferred embodiment three, by the usage data of the hardware module of automatic reporting terminal to assigned address, make developer know the service condition of hardware module in terminal, and then hardware module is improved.Such as: by the information automatically reported, developer is known " search ", and key access times are considerably less, then " search " key can be removed from terminal when new product development.
Except the hardware module of terminal mentioned in this preferred embodiment three, can also the usage data of the software module of reporting terminal automatically.
Embodiment four
Fig. 5 is the structural representation of the device of the reporting information that the preferred embodiment of the present invention four proposes, and this device comprises: determination module 51 and reporting module 52.
Determination module 51, for obtaining the information in instruction geographical position, the information according to described instruction geographical position determines current geographical position.
Reporting module 52, for current entered the geographical position of setting time, start to catch information to be reported, and be sent to desired location after capturing information to be reported, current left the geographical position of setting time, stop catch information to be reported.
Visible, the device that this preferred embodiment provides, just service can be reported by opening information after entering the geographical position of setting, could start to catch information to be reported and be sent to assigned address after capturing information to be reported, like this can not only reporting information automatically, also limit the quantity of reporting information, alleviate operation burden.
Embodiment five
Fig. 6 is the structural representation of the device of the reporting information that the preferred embodiment of the present invention five provides, and this device is positioned at end side.
Fig. 6 shown device comprises: determination module 61 and reporting module 62.
Determination module 61 comprises: obtain submodule 611 and determine submodule 612.
Obtain submodule 611, for obtaining the access state of WLAN (wireless local area network).
Determine submodule 612, for the access state according to WLAN (wireless local area network), if the current WLAN (wireless local area network) having accessed the geographical position being positioned at setting, determine the current geographical position having entered setting, if the current WLAN (wireless local area network) having left the geographical position being positioned at setting, determine the current geographical position having left setting.
Reporting module 62 comprises: generate submodule 621, send submodule 622 and catch submodule 623.
Catch submodule 623, for current entered the geographical position of setting time, start to catch information to be reported, current left the geographical position of setting time, stop catch information to be reported.
Generate submodule 621, for generating the mail comprising information to be reported based on SMTP, described mail is to the source email address that should have object email address and setting.
Send submodule 622, for described mail is sent to second server belonging to described object email address by the first server belonging to the addresses of items of mail of described source.Send submodule 622 as interchangeable execution mode described mail can also be used for be sent to second server belonging to described object email address by setting port.
As the optional execution mode of one, described mail is sent to terminal corresponding to described object email address by described second server; Or described mail is stored to by described second server and checks the page.
As the optional execution mode of one, catch submodule 623 also for, be that the information to be reported captured adds tag names, described tag names be described capture operation for object event; According to the tag names of setting and the corresponding relation of object email address, determine the object addresses of items of mail that described tag names is corresponding.
Owing to being that the access state of WLAN (wireless local area network) judges whether to enter the geographical position of setting in this preferred embodiment five, therefore send submodule 622 and can perform described transmit operation by the WLAN (wireless local area network) accessed, any bandwidth paid of user can not be taken like this.
Embodiment six
Fig. 7 is the structural representation of the device of the reporting information that the preferred embodiment of the present invention six provides, and this device is positioned at end side.
Device shown in Fig. 7 comprises: determination module 71 and reporting module 72.
Determination module 71 comprises: obtain submodule 711 and determine submodule 712.
Obtain submodule 711, for obtaining GPS indication information.
Determining submodule 712, for resolving described GPS indication information, determining current geographical position.
Reporting module 72 comprises: generate submodule 721, send submodule 722 and catch submodule 723.
Catch submodule 723, for current entered the geographical position of setting time, start to catch information to be reported, current left the geographical position of setting time, stop catch information to be reported.
Generate submodule 721, for generating the mail comprising information to be reported based on SMTP, described mail is to the source email address that should have object email address and setting.
Send submodule 722, for described mail is sent to second server belonging to object email address by the first server belonging to the addresses of items of mail of described source.Send submodule 722 as interchangeable execution mode described mail can also be used for be sent to second server belonging to described object email address by setting port.
As the optional execution mode of one, described mail is sent to terminal corresponding to described object email address by described second server; Or described mail is stored to by described second server and checks the page.
As the optional execution mode of one, catch submodule 723 also for, be that the information to be reported captured adds tag names, described tag names be described capture operation for object event; According to the tag names of setting and the corresponding relation of object email address, determine the object addresses of items of mail that described tag names is corresponding.
Current geographic position is determined not by the WLAN (wireless local area network) of access in this preferred embodiment six, but terminal still likely accessing WLAN, therefore send submodule 722 and still can perform described transmit operation by the WLAN (wireless local area network) accessed, send any bandwidth paid that can not take user like this.But also can be sent by other bandwidth paid, such as note, 3G etc.
Those skilled in the art should understand, the embodiment of the present invention can be provided as method, system or computer program.Therefore, the embodiment of the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the embodiment of the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code.
The embodiment of the present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the embodiment of the present invention and not depart from the spirit and scope of the embodiment of the present invention.Like this, if these amendments of the embodiment of the present invention and modification belong within the scope of claim and equivalent technologies thereof, then the embodiment of the present invention is also intended to comprise these change and modification.