Summary of the invention
The invention provides a kind of automatically can adjust sampling precision method and navigation device and end device, to solve the above problems.
The present invention discloses the method for the sampling precision of a kind of adjustment one guider, and described sampling precision represents the number of samples of described guider in a unit distance.Described method comprises the preset mode judging described guider, obtain the resolution parameter of screen, and adjust described sampling precision according to described resolution parameter and described preset mode, make described sampling precision can corresponding raising or reduction along with the change of described resolution parameter.Claim of the present invention discloses described guider further and has multiple preset mode, and described method comprises further selects wherein a kind of preset mode from described multiple preset mode.
The present invention also discloses described guider and described screen electrical connecting terminals device, and described end device changes described resolution parameter according to the application program performed.Adjusting described sampling precision according to described resolution parameter and described preset mode and comprise the described resolution parameter and threshold value that compare and obtain further described in described method, adjust described sampling precision according to comparative result, and drive described guider to carry out coordinate sensing with the described sampling precision after adjustment.
The present invention also open according to described comparative result adjust described sampling precision comprise described resolution parameter be greater than described threshold value time, improve the described sampling precision of described guider.The present invention further open according to described comparative result adjust described sampling precision comprise described resolution parameter be less than described threshold value time, reduce the described sampling precision of described guider.The present invention discloses described preset mode further and has multiple threshold value, and described sampling precision is segmentation adjustment according to the comparative result of the described resolution parameter obtained and described multiple threshold value.
The present invention also discloses adjusting described sampling precision according to described resolution parameter and described preset mode and comprise further and obtain reference value described in described method, calculate described sampling precision according to described reference value and the described resolution parameter obtained, and utilize described sampling precision to drive described guider to carry out coordinate sensing.Wherein said reference value is the ratio of described resolution parameter and described sampling precision, claim of the present invention discloses described guider when not having the described sampling precision calculated further, selects immediate default sampling precision to drive described guider.
The present invention also discloses described method and comprises the use record storing described preset mode further.The present invention discloses described method further and also comprises the use record obtaining described preset mode from external electronic, and according to the described described preset mode using the described guider of record setting.
The present invention also discloses a kind of guider of adjustable sampling precision, and it comprises detecting unit, transmission unit and control module.Described detecting unit obtains the coordinate of described guider in optics sensing mode.Described sampling precision represents the number of samples of described detecting unit in a unit distance.Described transmission unit exports described coordinate with wired and/or wireless mode.Described control module is electrically connected described detecting unit and described transmission unit.Described control module obtains the resolution parameter of screen by end device, and adjusts described sampling precision according to described resolution parameter and preset mode, to make corresponding raising or the reduction along with the change of described resolution parameter of described sampling precision.
The present invention also discloses a kind of end device of sampling precision of adjustable guider, and described sampling precision represents the number of samples of described guider in a unit distance.Described end device comprises memory module and CPU (central processing unit).Described memory module is used for storing executive routine.Described executive routine can adjust described sampling precision according to the preset mode of the resolution parameter of screen and described guider.Described CPU (central processing unit) is electrically connected described memory module.Described CPU (central processing unit) obtains described resolution parameter, and adjusts described guider by described executive routine, to make corresponding raising or the reduction along with the change of described resolution parameter of described sampling precision.
The method of the sampling precision of adjustment guider of the present invention and navigation device and end device, self adaptive sampling precision Regulation mechanism can be effectively utilized to change the sensitivity of guider, improve the comfort level that user uses guider, and then improve operation ease and the market competitiveness of computer system.
Embodiment
Refer to Fig. 1, Fig. 1 is the schematic diagram of the computer system 10 of the embodiment of the present invention.Computer system 10 comprises guider 12, screen 14 and end device 16.Guider 12 and screen 14 electrical connecting terminals device 16.In general, guider 12 is for having the optical mouse of adjustable sampling precision function, and end device 16 is main frame.Wherein, sampling precision represents the number of samples of guider 12 in a unit distance (Counts Per Inch, CPI).End device 16 is used for executive utility, and can according to the resolution parameter of the characteristic changing screen 14 of application program, and now the sampling precision of guider 12 further can the corresponding adjustment along with the change of resolution parameter, to meet the operating habit of user.
For example, in a preferred embodiment of the invention, when end device 16 performs games, the resolution parameter of screen 14 is raised to represent exquisite display frame, the sampling precision of guider 12 can adjust automatically, promotes game feel by heightening its sensitivity; When end device 16 performs document program, the resolution parameter of screen 14 is lowered to maintain comfortable display frame, and the sampling precision of guider 12 also can adjust automatically, and the click that its desensitization is provided convenience controls feel.Or the sampling precision of the resolution Relative Navigation device 12 of setting screen 14 is definite value, no matter guider 12 is arranged in pairs or groups, the screen 14 of which kind of size all can maintain identical operating handle.Specifically, computer system 10 is optionally responsible for by guider 12 or end device 16 mechanism performing automatic adjustment sampling precision of the present invention, describes in detail please respectively with reference to following different embodiments.
Refer to Fig. 2, Fig. 2 is the functional block diagram of the guider 12 of first embodiment of the invention.Guider 12 comprises detecting unit 18, transmission unit 20, switch 22, storage element 24 and control module 26.Control module 26 is electrically connected detecting unit 18, transmission unit 20, switch 22 and storage element 24.Detecting unit 18 samples in optics sensing mode when guider 12 moves, and obtains the coordinate of guider 12 when different mobile phase.Transmission unit 20 can be communication sequence bus module, near-field communication module, bluetooth communication, infrared rays communication module or network communication module, according to its performance characteristics, the coordinate that transmission unit 20 can be selected in a wired fashion, wireless mode or wired and wireless mode export detecting unit 18 gained.
Guider 12 has multiple preset mode, allows user can the Regulation mechanism of unrestricted choice sampling precision, and such as guider 12 can have the first preset mode, the second preset mode and the 3rd preset mode.When guider 12 is switched to the first preset mode, sampling precision is fixed value, and namely the sensitivity of guider 12 can not adjust along with the change of resolution parameter.When guider 12 is switched to the second preset mode, sampling precision can adjust along with the resolution parameter change caused by the application program of end device 16, improves or reduce the sensitivity of guider 12 according to environment for use (application program that end device 16 performs).When guider 12 is switched to the 3rd preset mode, sampling precision relative resolution parameter has default certain ratio, therefore sampling precision along with the corresponding adjustment of the service condition of screen 14, can be convenient to user and maintain its usual operating handle.Therefore, guider 12 comprises the switch 22 that can be hardware, software or firmware form, and user according to the actual requirements, can switch the using forestland (preset mode) of guider 12 by switch 22.
Storage element 24 can be the built-in memory element of guider 12, is used for storing the use record of aforementioned preset mode.After user selects the preset mode of guider 12, this can use record to there is storage element 24 by control module 26, reads after restarting next time for guider 12.In addition, guider 12 can utilize transmission unit 20 that the use record that there is storage element 24 is transferred to external electronic further, such as Portable mobile phone, cloud server or there is the mouse of identical function, to carry out the pattern setting of other guider 12.Or, storage element 24 can be the memory element being arranged on external electronic further, guider 12 utilizes transmission unit 20 to obtain the use record of preset mode from external electronic, to use the using forestland (preset mode) of record setting navigation device 12 according to this.
When guider 12 switches to the second preset mode or the 3rd preset mode, control module 26 utilizes transmission unit 20 to connect to end device 16 to obtain the resolution parameter of screen 14, the then preset mode of interpretation guider 12.Wherein, preset mode sets by switch 22 or obtains the use record from external electronic by transmission unit 20.Then, control module 26 carries out judging or calculate to learn the sampling precision for adjustment according to selected preset mode and the resolution parameter obtained, and adjust detecting unit 18, make the sampling precision of guider 12 can along with the resolution parameter of the application program of end device 16 or screen 14 and corresponding raising or reduction.The method flow of the sampling precision of the adjustment guider 12 of the first embodiment is as follows.
Refer to Fig. 3, Fig. 3 is the method flow diagram of the sampling precision of the adjustment guider 12 of first embodiment of the invention.Method shown in Fig. 3 is suitable for the guider 12 shown in Fig. 1 and Fig. 2 and relative computer system 10.First, perform step 300 and 302, start sampling precision Regulation mechanism, control module 26 connects to the resolution parameter that end device 16 obtains screen 14.User can select a kind of preset mode according to the switching of switch 22 arbitrarily from multiple preset mode, therefore then performs step 304, is judged the preset mode of guider 12 by control module 26.Three kinds of preset modes that the present invention mentions, the second preset mode of the application program can be the first preset mode that sampling precision is fixed value respectively, performing according to end device 16 and adjustment sampling precision and automatically adjust the 3rd preset mode of sampling precision according to the fixed ratio of resolution parameter relative sample precision.But the kind of preset mode of the present invention can be not limited to above-mentioned three aspects, looks closely actual demand and determines.When guider 12 switches to the first preset mode, perform step 306, control module 26 does not change the sampling precision of detecting unit 18; Under this state, the sensitivity of guider 12 can not adjust along with the Parameters variation of other assembly of computer system 10.
When guider 12 switches to the second preset mode, perform step 308, control module 26 compares the resolution parameter R1 and threshold value T that obtain, judges the image quality demand of computer system 10 and the sampling sensitivity of guider 12 according to comparative result.Detecting unit 18 has the first sampling precision and the second sampling precision, and the first sampling precision is higher than the second sampling precision.Refer to Fig. 4, Fig. 4 is the time dependent schematic diagram of resolution parameter R1 of the screen 14 of first embodiment of the invention.In the first running time t1, screen 14 may be closed condition or end device 16 just in switch application program, control module 26 reads the resolution parameter R1 less than screen 14, detecting unit 18 can be maintained executory sampling precision.In the second running time t2, resolution parameter R1 is greater than threshold value T, the application program of expression performed by end device 16 need coordinate the display demand of high image quality, such as games or movie program, the sampling precision of guider 12 needs corresponding raising to produce sensitive operating handle, therefore perform step 310, control module 26 drives detecting unit 18 to carry out coordinate sensing with the first sampling precision.In the 3rd running time t3, resolution parameter R1 is less than threshold value T, the application program that GC group connector device 16 performs only needs the display demand of general image quality, such as document program or network browser program, the sampling precision of guider 12 can corresponding reduction so that the click of operation pages option controls, therefore perform step 312, control module 26 drives detecting unit 18 to carry out coordinate sensing with the second sampling precision.
Furthermore, the second preset mode can have multiple threshold value further, such as the first door T1 and the second door T2, and the first door T1 is greater than the second door T2; Detecting unit 18 can have the first sampling precision, the second sampling precision and the 3rd sampling precision, and the second sampling precision is between the first sampling precision and the 3rd sampling precision.Refer to Fig. 5, Fig. 5 is the schematic diagram of resolution parameter another aspect time dependent of the screen 14 of first embodiment of the invention.In the first running time t1, control module 26 reads the resolution parameter R1 less than screen 14, and detecting unit 18 maintains executory sampling precision.In the second running time t2, resolution parameter R1 is lower than the second door T2, and control module 26 drives detecting unit 18 to carry out coordinate sensing with the 3rd sampling precision; In the 3rd running time t3, resolution parameter R1 is higher than the first door T1, and control module 26 drives detecting unit 18 to carry out coordinate sensing with the first sampling precision; In the 4th running time t4, resolution parameter R1 is between the first door T1 and the second door T2, and control module 26 drives detecting unit 18 to carry out coordinate sensing with the second sampling precision.In other words, the sampling precision of guider 12 of the present invention can adjust by multisection type respectively along with the quantity of threshold value.
When guider 12 switches to the 3rd preset mode, perform step 314, control module 26 can obtain reference value from storage element 24, and wherein reference value is the ratio of resolution parameter R1 and sampling precision.Then, perform step 316, control module 26 calculates the sampling precision for adjusting according to reference value and the resolution parameter R1 that obtains.Finally, perform step 318, control module 26 drives detecting unit 18 to carry out coordinate sensing with the sampling precision calculating gained.If detecting unit 18 has multiple selection operating sampling precision, but do not comprise the sampling precision of aforementioned calculating gained in option, then control module 26 can select the immediate sampling precision of numerical value to drive detecting unit 18.For example, detecting unit 18 has the predetermined sampling precision of 2200CPI, 1600CPI and 1200CPI tri-kinds, if reference value is set to 0.85, when resolution parameter R1 is 1920x1080pixels, according to ratio calculation (1920/2200=0.87), control module 26 can 2200CPI sampling precision drive detecting unit 18; When resolution parameter R1 is 1024x768pixels, according to ratio calculation (1024/1200=0.85), control module 26 can 1200CPI sampling precision drive detecting unit 18.So, no matter how the resolution parameter of screen 14 adjusts, and guider 12 can provide user identical operating handle.
Refer to Fig. 6, Fig. 6 is the functional block diagram of the end device 16 of second embodiment of the invention.End device 16 comprises memory module 28, signal delivery module 30 and CPU (central processing unit) 32.Memory module 28 is used for storing specific executive routine, this executive routine (usually being existed by software form) has the function of the multiple preset mode switching guider 12, and can according to the resolution parameter of the preset mode of guider 12 and screen 14, the sampling precision of adjustment guider 12.CPU (central processing unit) 32 is electrically connected memory module 28 and signal delivery module 30, is used for executive utility (such as games or document program), is presented at by execution result on screen 14.In a second embodiment, CPU (central processing unit) 32 also can according to the resolution parameter of performed application program or user's setting changing screen 14.After obtaining resolution parameter, namely CPU (central processing unit) 32 produces steering order by executive routine, steering order is transferred to guider 12 via signal delivery module 30 and adjusts accordingly, and makes the sampling precision of guider 12 improve with the change of resolution parameter or to reduce.
Refer to Fig. 7, Fig. 7 is the method flow diagram of the sampling precision of the adjustment guider 12 of second embodiment of the invention.Method shown in Fig. 7 is suitable for the end device 16 shown in Fig. 1 and Fig. 6 and relative computer system 10.The guider 12 of the second embodiment can have the first preset mode, the second preset mode and the 3rd preset mode, the content of each preset mode as in the first embodiment, no longer repeat specification.First, perform step 700 and 702, CPU (central processing unit) 32 starts executive routine, to judge the preset mode of guider 12.When guider 12 is the first preset mode, perform step 704, CPU (central processing unit) 32 does not adjust the sampling precision of guider 12.When judging that guider 12 is the second preset mode, perform step 706, CPU (central processing unit) 32 obtains the resolution parameter of screen 14.Because resolution parameter can change along with the application program performed by CPU (central processing unit) 32 or user's setting, therefore then performs step 708, the resolution parameter that CPU (central processing unit) 32 is more real-time and threshold value, according to comparative result adjustment guider 12.
Specifically, screen 14 can be switched to first resolution parameter or second resolution parameter according to different application programs by CPU (central processing unit) 32, and first resolution parameter (such as: be applied in games) is greater than second resolution parameter (such as: be applied in document program).When CPU (central processing unit) 32 is with first resolution driving parameter screen 14, and when first resolution parameter is greater than threshold value, perform step 710, improve the sampling precision (the first sampling precision as in the first embodiment) of guider 12 to make CPU (central processing unit) 32 by signal delivery module 30.When screen 14 is switched to second resolution parameter by CPU (central processing unit) 32, and when second resolution parameter is less than threshold value, perform step 712, CPU (central processing unit) 32 can reduce the sampling precision of guider 12 by signal delivery module 30, such as, make guider 12 carry out coordinate sensing with aforesaid second sampling precision.
When CPU (central processing unit) 32 judges that guider 12 is the 3rd preset mode, perform step 714, CPU (central processing unit) 32 reads reference value from memory module 28.The reference value of the second embodiment is the ratio of resolution parameter and sampling precision.Then step 716 and 718 is performed, CPU (central processing unit) 32 calculates the sampling precision for adjustment according to reference value and the resolution parameter obtained, utilize signal delivery module 30 that computed information is transferred to guider 12, drive guider 12 to carry out coordinate sensing with the sampling precision after adjustment.Therefore, computer system 10 of the present invention can utilize the executive routine of end device 16 internal memory to adjust the preset mode of guider 12, calculates applicable sampling precision, and drive guider 12 to carry out coordinate sensing with this sampling precision according to preset mode.It is worth mentioning that, second embodiment has the self adaptive application function identical with the first embodiment, such as when guider 12 does not have the parameter calculating gained sampling precision, select the immediate sampling precision of numerical value as driving parameter, other identical self adaptive application function no longer repeat specification.
In addition, the use record of preset mode can also be stored in memory module 28 by CPU (central processing unit) 32, and executive routine can utilize the guider using other electrical connecting terminals device 16 of record modification.Or, the use record of preset mode can be stored in the built-in memory element (storage element 24 of such as the first embodiment) of guider 12 by CPU (central processing unit) 32, can carry out the automatic adjustment of sampling precision when making guider 12 be electrically connected other end device according to the use record stored.Or the use record of preset mode can be stored in the memory element of cloud server by CPU (central processing unit) 32, no matter be that end device 16 or guider 12 all can connect to cloud server and obtain relative recording, to start self adaptive sampling precision Regulation mechanism.
Comprehensive, the method for adjustment guider sampling precision of the present invention provides a kind of self adaptive sampling precision Regulation mechanism, and this sampling precision Regulation mechanism is optionally responsible for computing and execution by guider or end device.The guider with sampling precision Regulation mechanism can be arranged in pairs or groups arbitrarily the screen of various style/model and end device, and the parameter being detected screen and end device by guider adjusts sampling precision automatically, can improve carrying and operation ease of guider.The end device with sampling precision Regulation mechanism can be used to adjust the guider that other does not have automatic regulating function, is carried out computing to drive changing sampling precision with the guider of its collocation by end device.
The method of adjustment sampling precision of the present invention provides the switching of multiple preset mode to select, and selectes applicable preset mode by user according to self-demand.When user selects the application program performed according to end device to adjust sampling precision, self adaptive sampling precision Regulation mechanism of the present invention can be classified for the operating environment of end device, improve respectively at game mode or document pattern or reduce the sensitivity of guider, reaching optimal comfort feel.When user selects will maintain identical operating handle in various operating environment (such as game mode or document pattern), self adaptive sampling precision Regulation mechanism of the present invention is then according to the sensitivity of the corresponding adjustment guider of resolution parameter of screen, the application program no matter whether screen performs along with end device changes resolution parameter, and guider all can maintain identical sensitivity.
Compare prior art, the method of adjustment guider sampling precision of the present invention and navigation device and end device, self adaptive sampling precision Regulation mechanism can be effectively utilized to change the sensitivity of guider, improve the comfort level that user uses guider, and then improve operation ease and the market competitiveness of computer system.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.