Background technology
When pointing input device transmits data to main frame by wireless mode, owing to consider the problem of frequency range and power consumption, so conventional art is to make wireless pointing input device give main frame with a fixing speed passback data packet.For example in the application of the employed mouse of computer, wireless mouse is given computer with the data packet of a fixing speed passback coordinate displacement usually, with display radio mouse moving track.Recently, optics (or laser) sensor have multiple resolution (resolution) can be for setting.The user can select the resolution of its hobby by operating switch or special button.Figure 1A and 1B are that explanation is along circular trace mobile wireless mouse, the motion track that the different sensors resolution shows on screen.When along circular trace mobile wireless mouse, if the sensor of wireless mouse operates in than low-res (for example 400cpi), the motion track on the screen seem smaller (shown in Figure 1A).Yet, under the prerequisite that wireless mouse is moved along same trajectories with identical speed, when the sensor of wireless mouse operates in higher resolution (for example 800cpi), the motion track on the screen seem bigger (shown in Figure 1B).Thus two figure as can be seen, though the big polygon of Figure 1B only to be Figure 1A little polygonal amplification version, yet big polygon seems more unlike circle.This is because the twice that the big polygonal length of side is little polygonal side length.
With the Bluetooth technology is example, and bluetooth standard now there is no the bright speed of ordering mouse transmission data, but is decided in its sole discretion by manufacturer.Generally speaking, wired USB mouse is 125 artificial interface arrangement (HumanInterface Device of per second normally, HID) package (or package of per 8 milliseconds of transmission), blue-tooth radio-mouse then moves with the following speed of 100 artificial interface arrangements of per second (HID) package usually for the power saving factor.Figure 2 shows that conventional mouse transmits the process flow diagram of data packet.After mouse brings into operation, obtain the vector (step S210) that the mouse block cursor position moves, and motion-vector is processed into manual interface device (HID) package (step S220) and is sent to computer (step S230).In step S240, this mouse is checked that user has or not and is pressed the resolution switch bar.If the resolution switch bar is pressed, then execution in step S250 is to be set at optical sensor new resolution.This mouse in time interval D pause displacement detecting and data transmission, carries out step S210~S240 with execution in step S260 again after the elapsed time interval D.In prior art, any wired or wireless mouse all is to use fixing transfer rate.Fixedly the advantage of transfer rate is simple in structure.Yet fixedly the conventional art of transfer rate may cause aliasing because motion track is too big under the environment that uses the higher resolution setting value.Operate in when wireless mouse under the setting of high-res and (also promptly produce big shift vector value when mouse moving in Fixed Time Interval), the motion track of being presented on the screen is difficult to the actual motion track that loyalty presents mouse, causes serious distortion.For example, when draw circular camber line with mouse, the motion track of being presented on the screen becomes polygon.
Summary of the invention
The invention provides a kind of method of operating of wireless pointing input device, make wireless pointing input device according to resolution the dynamic adjusting data transfer rate.Therefore, the present invention can alleviate the motion track distortion under the environment of higher resolution setting value, makes the user can produce the figure that more is similar to Freehandhand-drawing on computer screen when drawing.And, under than the environment of low-res setting value, can save the data transmission frequency range and reduce power consumption.
For addressing the above problem, the present invention proposes a kind of method of operating of wireless pointing input device, comprises the steps.Detect the shift vector of this wireless pointing input device with a resolution.Every a time interval shift vector of wireless pointing input device is sent to main frame by wireless mode.Check whether this resolution is switched.If the new resolution after switching is higher than original resolution, then reduce this time interval accordingly.If the new resolution after switching is lower than original resolution, then increase this time interval accordingly.
The method of operating of a kind of wireless pointing input device proposed by the invention also can be described below: the present invention proposes a kind of method of operating of wireless pointing input device, comprising: the shift vector that detects wireless pointing input device with a resolution; Check whether this resolution is switched; If the new resolution after switching is higher than original resolution, then accelerate this transfer rate accordingly; And, then slow down this transfer rate accordingly if the new resolution after switching is lower than original resolution.
The present invention dynamically adjusts the time interval (or dynamic adjusting data transfer rate) of displacement detecting and data transmission because of making wireless pointing input device according to resolution, therefore the present invention can alleviate the motion track distortion under the environment of higher resolution setting value, makes the user can produce the figure that more is similar to Freehandhand-drawing on computer screen when drawing.Otherwise, under than the environment of low-res setting value, can save the data transmission frequency range and reduce power consumption.
For above-mentioned feature and advantage of the present invention can be become apparent, preferred embodiment cited below particularly, and conjunction with figs. is described in detail below.
Embodiment
When along circular trace mobile wireless pointing input device (for example wireless mouse, trace ball, Trackpad, rocking bar etc.), if the sensor (for example optical sensor, laser sensor etc.) of wireless pointing input device operates in than low-res (for example 400cpi), the motion track on the screen seem smaller (shown in Figure 1A).Yet, under the prerequisite that wireless pointing input device is moved along same trajectories with identical speed, when the sensor of wireless pointing input device operates in higher resolution (for example 800cpi), the motion track on the screen seem bigger (shown in Figure 1B).Thus two figure as can be seen, though the big polygon of Figure 1B only to be Figure 1A little polygonal amplification version, yet big polygon seems more unlike circle.This is because the twice that the big polygonal length of side is little polygonal side length.Therefore, when the sensor of wireless pointing input device operates in higher resolution, if wireless pointing input device transmits data packet with higher transmission rate (transferring rate) and gives main frame (for example computer), main frame can be obtained more multidata in the unit interval, make and to be presented in circle level and smooth (being that the polygonal length of side can be shorter) more on the screen as Fig. 1 C.
Under the field have and know that usually the knowledgeable can be according to suggestion and the teaching of spirit of the present invention and following all embodiment, and with the invention process in various wireless pointing input devices.For clearly demonstrating embodiments of the present invention, will with the blue-tooth radio-mouse example below.Figure 3 shows that the flow chart of one embodiment of the invention blue-tooth radio-mouse.In present embodiment, blue-tooth radio-mouse carries out step S310 and detects the shift vector of wireless pointing input device (as blue-tooth radio-mouse) with a certain resolution.Step S320 provides the mechanism of the resolution that switches blue-tooth radio-mouse.If the resolution of blue-tooth radio-mouse is not modified, then blue-tooth radio-mouse carries out displacement detecting and data transmission (step S310) every a time interval D (step S360), is sent to main frame (for example computer, PDA(Personal Digital Assistant), mobile phone etc.) with the shift vector with blue-tooth radio-mouse by wireless mode (for example radio frequency transmission, Bluetooth transmission etc.).
If the resolution of blue-tooth radio-mouse is modified, then carry out step S330 to judge that resolution is increased or is reduced.If the resolution of blue-tooth radio-mouse increases, then reduce time interval D (step S350) accordingly.If the resolution of blue-tooth radio-mouse reduces, then increase time interval D (step S340) accordingly.In this embodiment, if being resolution, the judged result of step S330 increases, then blue-tooth radio-mouse accelerates shift vector is sent to the transfer rate of computer accordingly; And, then slow down this transfer rate accordingly if the judged result of step S330 is that resolution reduces.
In present embodiment, above-mentioned steps S310 comprises step S311~S313.In step S311, blue-tooth radio-mouse detects the shift vector of blue-tooth radio-mouse with a certain resolution by sensor (for example optical sensor, laser sensor etc.).After obtaining shift vector, blue-tooth radio-mouse is converted to data packet (step S312) with shift vector, and the aforementioned data package is transferred to computer (step S313) by wireless mode.
In present embodiment, above-mentioned steps S320 comprises step S321 and S322.In step S321, blue-tooth radio-mouse can check whether this resolution was switched by the user, and promptly whether the user once operated the resolution change action, and for example whether the user once pressed " resolution switching push button ".If this resolution switches without the user, then carry out step S360.If this resolution switched by the user, then carry out step S322 being new resolution with sensor settings.Wherein, if the new resolution after switching is higher than original resolution, then blue-tooth radio-mouse reduces time interval D (step S350) accordingly.If the new resolution after switching is lower than original resolution, then increase time interval D (step S340) accordingly.In this embodiment,, then accelerate shift vector is sent to the transfer rate of computer accordingly if the new resolution after switching is higher than original resolution.If the new resolution after switching is lower than original resolution, then slow down this transfer rate accordingly.
Therefore, when when circular trace moves blue-tooth radio-mouse, if the sensor of blue-tooth radio-mouse operates in than low-res (for example 400cpi), the motion track on the screen seem smaller (shown in Figure 1A).Under the prerequisite that blue-tooth radio-mouse is moved along same trajectories with identical speed, when the sensor of blue-tooth radio-mouse operates in higher resolution (for example 800cpi), because blue-tooth radio-mouse transmits data packet with the higher transmission rate and gives computer (perhaps turning the time interval D that carries out displacement detecting and data transmission down), computer can be obtained more multidata in the unit interval, make and to be presented in circle level and smooth (being that the polygonal length of side can be shorter, shown in Fig. 1 C) more on the screen.The foregoing description is dynamically adjusted the time interval D (or dynamic adjusting data transfer rate) of displacement detecting and data transmission because of making blue-tooth radio-mouse according to resolution, therefore can under the environment of higher resolution setting value, alleviate the motion track distortion, make the user when drawing, can on computer screen, produce the figure that more is similar to Freehandhand-drawing.Otherwise, can dynamically transfer the time interval D (or dynamically reducing data transmission rate) of big displacement detecting and data transmission under than the environment of low-res setting value, to save the wireless transmission frequency range and to reduce power consumption.
If the sensor of blue-tooth radio-mouse has two or more resolution setting values, corresponding blue-tooth radio-mouse is dynamically adjusted displacement detecting and data transmission according to resolution time interval D also has two or more, does not exceed with the corresponding two kinds of time interval D of two kinds of resolutions.
Figure 4 shows that the flow chart of another embodiment of the present invention blue-tooth radio-mouse.In step S410, blue-tooth radio-mouse detects the shift vector of blue-tooth radio-mouse with a certain resolution by sensor (for example optical sensor, laser sensor etc.).After obtaining shift vector, blue-tooth radio-mouse is converted to data packet with shift vector, and the aforementioned data package is transferred to main frame (for example computer etc.) by wireless mode (for example radio frequency transmission, Bluetooth transmission etc.).Step S420 provides the mechanism of the resolution that switches blue-tooth radio-mouse.If the resolution of blue-tooth radio-mouse is not modified, then blue-tooth radio-mouse carries out displacement detecting and data transmission (step S410) every a time interval D (step S460), is sent to main frame (for example computer etc.) with the shift vector with blue-tooth radio-mouse by wireless mode.Step S410 and S460 can implement it with reference to step S310 and the S360 of Fig. 3 in present embodiment, so repeat no more.
In present embodiment, above-mentioned steps S420 comprises step S421, S422, S423 and S424.In step S421, blue-tooth radio-mouse can check whether this resolution was switched by the user, and promptly whether the user once operated the resolution change action, and for example whether the user once pressed " resolution switching push button ".If this resolution switches without the user, then carry out step S460 and keep the time interval D of previous setting.If this resolution switched by the user, then according to user's selection execution in step S422, S423 and S424 one of them.If it is 400cpi that the user selects resolution, then carries out step S422 and be set at 400cpi with resolution with sensor.If it is 600cpi that the user selects resolution, then carries out step S423 and be set at 600cpi with resolution with sensor.If it is 800cpi that the user selects resolution, then carries out step S424 and be set at 800cpi with resolution with sensor.
According to blue teeth wireless agreement, when operating in listen mode (Sniff mode), (Sniff interval) D of the time interval between adjacent two data packets is to be unit with " time slot " (Time slot).A time slot is 0.625 millisecond.If the resolution of sensor is set to 400cpi, then execution in step S430 is so that be set at 20 time slots (12.5 milliseconds) with time interval D.If the resolution of sensor is set to 600cpi, then execution in step S440 is so that be set at 18 time slots (11.25 milliseconds) with time interval D.If the resolution of sensor is set to 800cpi, then execution in step S450 is so that be set at 16 time slots (10 milliseconds) with time interval D.In other words, if the new resolution after switching is higher than original resolution, then blue-tooth radio-mouse reduces time interval D value accordingly; If the new resolution after switching is lower than original resolution, then increase time interval D value accordingly.In this embodiment,, then accelerate shift vector is sent to the transfer rate of computer accordingly if the new resolution after switching is higher than original resolution.The adjustment of deadline interval D value is (behind the step S430~S450), then blue-tooth radio-mouse carries out displacement detecting and data transmission (step S410) every a new time interval D (step S460), is sent to main frame with the shift vector with blue-tooth radio-mouse by wireless mode.
The foregoing description is dynamically adjusted the time interval D (or dynamic adjusting data transfer rate) of displacement detecting and data transmission because of making blue-tooth radio-mouse according to the resolution of sensor, therefore can under the environment of higher resolution setting value, alleviate the motion track distortion, make the user when drawing, can on computer screen, produce the figure that more is similar to Freehandhand-drawing.Otherwise, can dynamically transfer the time interval D (or dynamically reducing data transmission rate) of big displacement detecting and data transmission under than the environment of low-res setting value, to save the wireless transmission frequency range and to reduce power consumption.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; have in the technical field under any and know the knowledgeable usually; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is when with being as the criterion that claim was defined.