Self-regulating method of a kind of mouse DPI and DPI regulate mouse automaticallyTechnical field
The present invention relates to mouse, the mouse of particularly a kind of method of in use sensitivity of mouse being controlled automatically and this method of use.
Background technology
Optical mouse mainly is made of tetrameric core component, is respectively light emitting diode (LED), lens subassembly, light engine (Optical Engine) and control chip.
The LED lamp is arranged on the bottom of optical mouse, light is with 30 degree angle directive desktops, irradiate the coarse shade that the surface produced, and then the refraction by the plane sees through other lens and feeds back to and enter on the sensor on the light engine, form by three main subsystems on the light engine:
The IAS system, i.e. imaging system (Image Acquisition System), this be the photoelectricity engine the core, also be the main system of decision photoelectricity engine performance, above-mentioned reflected light enters into the IAS system exactly and handles.
Dsp system, i.e. signal processing system (Digital Signal Processor).Here the image that the IAS system is generated removes and makes an uproar and comparative analysis, draws displacement data, and dsp system is the main arithmetic unit in the photoelectricity engine.The efficiency of algorithm of DSP has determined the data-handling capacity of photoelectricity engine, and the scan-data that the IAS engine can provide is many more, just needs high efficiency DSP ability.
SPI system, i.e. interface system (Serial Peripheral Interface).This is the most traditional system on the photoelectricity engine, and its effect is exactly the push button signalling of the displacement signal of dsp system generation and key system to be encoded be transferred to computer then.
When mouse moves, the pattern that imaging sensor is recorded continuously (DSP) is handled the front and back comparative analysis of every pictures by " digital signal processor ", then with direction and the displacement of judging that mouse moves, thereby draw mouse x, the mobile numerical value of y direction.Pass to the miniature control module (Micro Controller Unit) of mouse again by SPI.The processor of mouse is passed to host computer after these numerical value are handled.
DPI (dot per inch) is a key character parameter of mouse, and it is exactly to reach the effect that changes mouse sensitivity by the sample frequency that changes sensor that DPI switches, to allow mouse adapt to different needs of work.For example when playing games, need mouse to possess very high sensitivity, and in the picture operation, need lower sensitivity.
The sampling precision of mouse sensor on per inch length, 400DPI for example, mouse whenever move 1 inch coordinate that can feed back 400 differences, and promptly Ding Wei minor increment is 1/400 inch (about 0.0635 millimeter), be reflected on the display, mouse moves 400 points.800DPI, mouse whenever move 1 inch coordinate that can feed back 800 differences, are reflected on the display, and mouse moves 800 points.Under the identical situation of exploration on display resolution ratio, for example 1024X 768, and this moment, the anchor point of display screen also was identical, and DPI is high more, and mouse is just sensitive more.
Most on the market conventional mouse all is by a special DPI switching push button now, selects different sensitivity by the client according to the needs of oneself, to adapt to the demand of oneself working.But in the software application environment of reality, never be single non-be slow state soon, even the reaction that also can need mouse to make sometimes in same software environment to be exceedingly fast needs mouse to make accurate location with slower speed sometimes.Therefore, such mouse all can not satisfy user's needs.
Summary of the invention
In order to overcome in the prior art, to such an extent as to DPI can not change the defective of the needs that can not satisfy the user at any time in the mouse use by customer requirements, the invention provides a kind of mouse sensitivity method of control automatically, and design mouse with the automatic control function of mouse sensitivity.
The present invention in order to realize the technical scheme that its technical purpose adopts is: the self-regulating method of a kind of mouse DPI, this method is preserved the displacement coordinate quantitative value of mouse imaging system acquisition in the unit interval and the corresponding relation of mouse DPI value in the storer of mouse, the microprocessor of mouse may further comprise the steps by the DPI that how much changes mouse automatically of mouse imaging system acquisition displacement coordinate quantity in the real-time detected unit interval:
A, mouse imaging system obtain the microprocessor that the number of coordinates value of mouse displacement in the unit interval is sent to mouse in real time;
B, mouse microprocessor call described corresponding relation by the number of coordinates value of mouse displacement in the described unit interval, obtain corresponding mouse DPI value.
C, mouse processor change to the described corresponding mouse DPI value that obtains with mouse DPI value.
Further, in the above-mentioned self-regulating method of a kind of mouse DPI, described corresponding relation is the artificial one-to-one relationship with the DPI value of mouse and the displacement coordinate quantitative value setting that the mouse imaging system obtains in the unit interval.
Further, in the above-mentioned self-regulating method of a kind of mouse DPI, described corresponding relation is that the artificial displacement coordinate quantitative value with the DPI value of mouse and mouse imaging system acquisition in the unit interval is set a kind of funtcional relationship.
Another object of the present invention provides the self-regulating mouse of a kind of DPI, comprise the mouse imaging system, storer and the control chip that are arranged in the on, the coordinate array that described mouse imaging system output mouse moves, enter control chip, also comprise the DPI automatic adjustment unit, the coordinate array that the mouse that described DPI automatic adjustment unit reception is transmitted by the mouse imaging system moves, output mouse DPI data and mouse moving coordinate data enter into control chip.
Further, in the above-mentioned mouse, described DPI automatic adjustment unit comprises that a microprocessor and the corresponding D PI that is stored in the storer regulate software automatically, described DPI regulates software automatically and is moved by microprocessor, comprise the displacement coordinate quantitative value of mouse imaging system acquisition in the unit interval and the mapping table of mouse DPI value, the data bus of microprocessor links to each other with the data line of described mouse imaging system, control chip respectively.
Further, in the above-mentioned mouse, the opening of described sensor be arranged on the on lower length forward 2/3rds, the center of width.
Mouse of the present invention is according to the speed of user's wrist rolling mouse, with the software environment of determining that the user is using, and selects the sensitivity that adapts, to adapt to the different needs of client.
Below in conjunction with the drawings and specific embodiments the present invention is done comparatively detailed description.
Description of drawings
Accompanyingdrawing 1 is the inventive method process flow diagram.
Accompanyingdrawing 2 is a mouse internal logic connection diagram of the present invention.
Accompanying drawing 3 is in the embodiment of the invention, and displacement in the mouse and X coordinate concern synoptic diagram.
Accompanying drawing 4 is in the embodiment of the invention, and displacement in the mouse and Y coordinate concern synoptic diagram
Embodiment
Embodiment 1, as shown in Figure 2: the self-regulating mouse of a kind of DPI, comprise the mouse imaging system, storer and the control chip that are arranged in the on, the coordinate array that described mouse imaging system output mouse moves, enter control chip, also comprise the DPI automatic adjustment unit, the coordinate array that the mouse that described DPI automatic adjustment unit reception is transmitted by the mouse imaging system moves, output mouse DPI data and mouse moving coordinate data enter into control chip.In the present embodiment, the DPI automatic adjustment unit comprises that a microprocessor and the corresponding D PI that is stored in the storer regulate software automatically, described DPI regulates software automatically and is moved by microprocessor, comprise the displacement coordinate quantitative value of mouse imaging system acquisition in the unit interval and the mapping table of mouse DPI value, the data bus of microprocessor links to each other with the data line of described mouse imaging system, control chip respectively.
In the present embodiment, the mouse imaging system is a kind of functional module, the hardware of finishing this function is light emitting diode, lens subassembly, imaging sensor and the control chip in the mouse, worked and respectively be: optical mouse is by the LED lamp of bottom, light is with 30 degree angle directive desktops, irradiate the coarse shade that the surface produced, and then feed back on the imaging sensor through other lens by the refraction on plane.When mouse moves, the pattern that imaging sensor is recorded continuously (DSP) is handled the front and back comparative analysis of every pictures by " digital signal processor " in the control chip, then with direction and the displacement of judging that mouse moves, thereby draw mouse x, the mobile numerical value of y direction.Pass to the microprocessor of mouse again by interface circuit.Microprocessor receives these x, and the mobile numerical value of y direction calls and is stored in the program that DPI regulates software automatically in the storer, obtains the DPI value of mouse the best at that time.The main process of obtaining DPI is: the calculating of how much doubly taking advantage of of being followed the displacement coordinate quantity that obtains according to the unit interval by microprocessor.For example: the displacement coordinate quantity that obtains in the unit interval is 4, and the DPI that carries out X2 so calculates, if the displacement coordinate quantity that obtains in the unit interval is 2, carries out the calculating of X0.5DPI so.The processor of mouse is passed to host computer after these numerical value are handled.
In the present embodiment, DPI regulates software automatically and finishes the self-regulating method of mouse DPI.This method is preserved the displacement coordinate quantitative value of mouse imaging system acquisition in the unit interval and the corresponding relation of mouse DPI value in the storer of mouse, in the present embodiment: corresponding relation is the artificial one-to-one relationship with the DPI value of mouse and the displacement coordinate quantitative value setting that the mouse imaging system obtains in the unit interval, can set up a form, the displacement coordinate quantitative value that mouse imaging system in all possible DPI value of mouse and all possible unit interval obtains is corresponding one by one.Such as, according to experiment, staff is when using mouse, and the highest translational speed is about 30 inches/s.The maximum translational speed of the mouse engine on the market has reached 37 inches/s now, and then up to 40 inches/s, peak acceleration has reached 10g to the engine that has.Therefore, 40 inches/s of maximum translational speed according to mouse on the present market, corresponding what number of coordinates of per second, maximum DPI number this moment is set, i.e. Ci Shi sensitivity is arranged to the highest, then, set up the translational speed relation corresponding with DPI, this corresponding relation can be linear, also can be non-linear, determines as the case may be.The factor that can also add acceleration, expression needs bigger DPI if acceleration is big.
In addition, corresponding relation neither be unalterable, also the displacement coordinate quantitative value of the DPI value of mouse and mouse imaging system acquisition in the unit interval can be set a kind of funtcional relationship, concerns such as parabolic function.The microprocessor of mouse obtains the DPI that how much changes mouse automatically of displacement coordinate quantity by mouse imaging system in the real-time detected unit interval.
May further comprise the steps: as shown in Figure 1
A, mouse imaging system obtain the microprocessor that the number of coordinates value of mouse displacement in the unit interval is sent to mouse in real time;
B, mouse microprocessor call described corresponding relation by the number of coordinates value of mouse displacement in the described unit interval, obtain corresponding mouse DPI value.
C, mouse processor change to the described corresponding mouse DPI value that obtains with mouse DPI value.
In the present embodiment, a special microprocessor (MCU) is set between mouse sensor and the mouse control chip, is used for moving the DPI that is stored in the storer and regulates software automatically.This MCU reads the interior coordinate array that obtains of unit interval that the mouse imaging system is passed on, confirm the residing working environment of user according to the size of coordinate array, and calculate the DPI value of suitable this environment, then this DPI value and coordinate array are passed to the mouse control chip, the distance of calculating mouse displacement according to the DPI value that passes over and number of coordinates batch total by the mouse control chip, and it is passed to computer CPU, mouse pointer is made best displacement and speed on computer screen.Follow the calculating of how much doubly taking advantage of of the displacement coordinate quantity that obtains according to the unit interval by this MCU.For example: the displacement coordinate quantity that obtains in the unit interval is 4, and the DPI that carries out X2 so calculates, if the displacement coordinate quantity that obtains in the unit interval is 2, carries out the calculating of X0.5DPI so.
In the present embodiment, also carried out again selected to the mouse profile, conventional mouse all is the centre position that the opening of sensor is placed on mouse, perhaps according to any chosen position of the requirement of die space, but present embodiment with the opening of sensor be placed on the mouse die length forward 2/3rds, the center of width, this position can allow catching of sensor acumen catch user's wrist translational speed.
Be as shown in Figure 3, Figure 4 in the present embodiment displacement respectively with the corresponding diagram of X-axis coordinate and Y-axis.In the present embodiment, when maximum displacement of XY axle and mobile grid number are judged by every 100uS, press following standard setting:
When XY axle maximum displacement absolute value is400DPI 0~20 the time
When XY axle maximum displacement absolute value is 800DPI 21~50 the time
When XY axle maximum displacement absolute value is 1200DPI 51~90 the time
When XY axle maximum displacement absolute value is being 1600DPI greater than 91 the time.