Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of handheld device to judge the method for positional information automatically.
The present invention solves above-mentioned technical problem by such technical scheme:
The invention provides a kind of handheld device automatic positioning method, this method comprises the steps: to provide central processing unit; Memory module is provided; Timing module is provided; Locating module is provided; Define the very first time section and second time period at least, and be stored in the memory module; Timing module and locating module offer central processing unit with current time information and positional information; Central processing unit judges whether the current time is in the very first time section or the second time period scope, and corresponding position information is saved to memory module; The identical positional information that is positioned at very first time section of repeatedly preserving is saved to memory module and is defined as first place, the identical positional information that was positioned at for second time period of repeatedly preserving is saved to memory module and is defined as second place.
As a kind of improvement, this step also comprise provide a light sensor in order to monitoring handheld device current environment brightness and offer central processing unit.
As a kind of improvement, this step also comprises provides a range sensor in order to the distance between other objects in monitoring handheld device and the current environment and offer central processing unit.
As a kind of improvement, this step also comprises provides an action sensor in order to monitor the current motion state of handheld device and to offer central processing unit.
As a kind of improvement, this step also comprises provides a sound transducer in order to monitor the noisy degree of handheld device current environment and to offer central processing unit.
As a kind of improvement, the state of the various transducers of central processor comprehensive is accurately judged current situation.
As a kind of improvement, if be different from the primary importance or the second place continuously, then redefine new position is the primary importance or the second place to central processing unit from very first time section that locating module receives or the position in second time period.
Compared with prior art, the present invention has the following advantages: utilize method of the present invention, can accurately judge the handheld device current location information, can make handheld device in different environment, provide different services, and dynamically adjust function, the service that is provided according to residing environment of active user or the residing environment of handheld device for the user.
Embodiment
Describe the specific embodiment of the present invention in detail below in conjunction with accompanying drawing.
In general, positional information can accurately be divided into shelter, job site, outdoor etc.And the office space can be divided into quiet office, noisy market or sales field, the salesman that makes rounds to each other's home etc.The precise position information of handheld device can also comprise on the table or in bag or in the pocket.
Had 24 hours in one day, handheld device can follow the user to arrive a plurality of places in one day time.In general the user should be to be on duty in the operating time, and the quitting time can be at shelter.If neither neither be in the job site at shelter, that in general the time on working day should be on business trips, the time on day off should be to play outside.
Therefore, first step in the handheld device automatic positioning method of the present invention is that operating time and quitting time are set earlier, 08:30~18:00 as Mon-Fri every day is defined as the operating time, the 18:00 of Mon-Fri every day to next day 08:30 and Sunday Saturday be the time of having a rest.In fact, the above-mentioned time can be customized for the other times section, may not be operating time or time of having a rest, can set up on their own according to user's needs, as long as distinguish to some extent, therefore, the very first time section and second time period etc. can be summarized in, also the multiple time period can be defined according to actual needs.
Please join Fig. 1, be the system block diagram of handheld device involved in the present invention, this electronic equipment 10 comprises that central processing unit 11, timing module 12, locating module 13, light sensor 14, range sensor 15, action sensor 16, sound transducer 17 and other realize the transducer 18 of various functions.Except above-mentioned, reality also needs a memory module.
Wherein, central processing unit 11 is responsible for collecting the reporting information of above-mentioned each module and transducer, and need to determine the function of execution according to these reporting informations; Timing module 12 is mainly in order to provide the current time; Locating module 13 mainly in order to determine the current longitude and latitude of handheld device, can be the GPS module; Light sensor 14 is mainly in order to confirm the brightness of handheld device current environment; Distance relation in range sensor 15 main definite handheld devices and the current environment between the object; Whether the current motion of action sensor 16 main monitoring equipments; Sound transducer 17 is mainly in order to monitor the sound size of handheld device current environment; Other transducers 18 are mainly other DATA REASONING of realization and offer help.Memory module can make the part of central processing unit in order to record position information or self-defined time period etc., also can be independent element.
Central processing unit makes a decision according to the difference of the temporal information that timing module 12 reports, if timing module 12 reports the current time of central processing unit 11 in the operating time of definition, 11 of central processing units will call the executive program in the operating time, if in the time of having a rest of definition, then call the executive program in the time of having a rest.In addition, central processing unit 11 obtains current position information from locating module 13, record also stores, monitoring and storage through length, if this position is constant substantially, that just can determine that this place is exactly office space or shelter, because the workplace can be thought in the constant position in the operating time, and shelter can be thought in the constant position in the time of having a rest.Please join Fig. 2, it is the flow chart of judging shelter and office space, promptly, timing module provides the current time to central processing unit, and central processing unit judges that it still is the time of having a rest scope that the current time is positioned at the operating time scope, obtains positional information from locating module again, and note down and store, after repeatedly judging, can think that the same position in the operating time is the workplace, and the same position in the time of having a rest is a shelter.
Determine after shelter and the office, if the positional information that locating module obtains is not these two places, promptly, the positional information that central processing unit obtains from locating module is neither the shelter of confirming, the workplace that neither confirm, then can judge handheld device current be outdoor, if the operating time can think to handle official business outside, if the time of having a rest then can be thought to play outside.Fig. 3 is the on business trips or ground flow chart of playing of judgement in the handheld device automatic positioning method of the present invention, locating module reports current location to give central processing unit, central processing unit is determined current location neither shelter neither the office space, then obtain the current time from timing module, if the operating time then think to handle official business outside or go on business, if the time of having a rest is then thought to play outside.In fact, obtaining positional information earlier still is that temporal information is inessential, importantly comprehensive judgement between the two.
If the continuous several times operating time in same inoperative place or the time of having a rest in same non-shelter place, then may be to change jobs or move, system will upgrade new workplace or new shelter place again.If the place of operating time often changes, think that then the user is the on-fixed job site, may be salesman, courier etc.Central processing unit can determine that from the noise of sound transducer acquisition current environment operational environment is quiet office or noisy environment, and we are referred to as the sales field environment to noisy environment.
If outdoor, central processing unit obtains the motion conditions of handheld device from action sensor, can determine that current is in moving or in inactive state.
According to above description, this method can be more accurate the current location of judging be shelter, workplace or outdoor, it is office, sales field or on-fixed job site that the workplace can further accurately be judged again, outdoor can accurately judge again go on business in or play outside.In fact, shelter still be the workplace only be distance, can self-defined as required a plurality of places, as first place, second place etc.
This method can also obtain the residing environment of current handheld device by range sensor, such as be on the table spacious environment or in bag or in the pocket.Determine that by light sensor current environment is the dark surrounds or the environment of light.Central processing unit open range sensor obtain around the handheld device apart from situation, if detect less than object, then explanation is under the environment of spaciousness, can think on the table; If detected object, then illustrating around the handheld device has object, may pressed by thing or in bag, be referred to as in the bag.
Central processing unit is opened the light sensor unit and is obtained handheld device light conditions on every side, if illumination is fine, then explanation is under brighter circumstances, if illumination is very dark even complete deceiving, then can think at dark room or in very airtight bag, open range sensor this moment and determine object on every side, if do not detect object, then explanation is at dark room, is in the reasonable bag of seal if object is arranged then illustrate.
Through above step, can be so that central processing unit be judged the handheld device current location automatically, and call executive program, such as, in the operating time, monitoring handheld device is in more quiet workplace, will reduce ringing volume automatically, and in more noisy workplace, then promote volume etc.Certainly, other help promoting the situation of the program of user experience to also have other to utilize data calls that these positional informations and transducer obtain, do not exemplify one by one.In a word, accurately judge current situation, so that the user to be provided intelligence and intimate applied environment more by the state of the various transducers of central processor comprehensive or the data that provide.
The above only is a better embodiment of the present invention; protection scope of the present invention is not exceeded with above-mentioned execution mode; as long as the equivalence that those of ordinary skills do according to disclosed content is modified or changed, all should include in the protection range of putting down in writing in claims.