Function parameter switching storage circuit and operation method applied to peripheral device
By introducing a function parameter switching and storage circuit into the optical sensor, including a function parameter switching key, an external controller, and a virtual switch circuit, the problems of optical sensors being unable to store user-set parameters and resolution inconsistencies are solved, ensuring the stability and consistency of function parameters when power management changes.
Patent Information
- Application Number
- CN202110870044.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-30
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2041-07-30
AI Technical Summary
Existing optical sensors cannot store user-defined function parameters, causing the parameters to revert to default values after the power management device is powered off. Furthermore, they are prone to resolution inconsistencies due to noise interference or during the reset process.
A function parameter switching and storage circuit is adopted, including a function parameter switching key, an external controller and a virtual switch circuit. The analog control circuit analyzes the physical switch signal and stores the parameter values set for switching, ensuring that the optical sensor maintains the set state when the power management changes, and corrects possible malfunctions through feedback monitoring signals.
This technology enables optical sensors to maintain user-defined functional parameters when power management changes, avoiding errors such as parameter reversion to default values and resolution inconsistencies, thus improving user experience and stability.
Smart Images

Figure CN115686232B_ABST
Abstract
Description
Technical Field
[0001] This case relates to a function parameter switching and storage circuit and its operation method, particularly a function parameter switching and storage circuit and its operation method applied to peripheral devices. Background Technology
[0002] Various peripherals for computers or laptops, especially input devices (such as mice), often feature designs that allow users to switch various function parameters to better adapt to different operating environments or meet different operating needs. For example, the mouse resolution (Dots Per Inch, DPI) can be switched by the user, allowing the user to adjust the sensitivity required when operating the mouse.
[0003] For example, in the field of mouse design, the optical sensor design scheme with product number PAW3519, which is currently widely used in the market, has the function of allowing users to switch the resolution themselves.
[0004] In other words, please refer to Figure 1A This is a schematic diagram of the appearance of a currently available mouse with resolution switching functionality; additionally... Figure 1B Then it is Figure 1A The diagram shows a block diagram of the existing circuitry inside the mouse related to the resolution switching function.
[0005] At Figure 1A , Figure 1B In the mouse 10, there is a resolution switching button 11. When the user manually triggers the resolution switching button 11, the resolution switching button 11 will generate a physical switch signal I11 and output it to the optical sensor 13 to notify the optical sensor 13 to perform a resolution switching procedure.
[0006] The deficiency of the aforementioned prior art is that the optical sensor 13 that currently supports manual resolution switching by the user is generally a SoC type chip (e.g., the optical sensing chip with product number PAW3519 mentioned above). Therefore, it cannot modify the internal program or have external memory. Once the power management device 12 is powered off, the optical sensor 13 cannot store the resolution set by the user (i.e., the physical switch signal I11). As a result, when the power management device 12 is powered on again, the optical sensor 13 will revert to using the internally preset resolution P. However, this will cause great inconvenience to the user.
[0007] Furthermore, during the process of the aforementioned physical switch signal I11 being output to the optical sensor 13, if the optical sensor 13 happens to be in a reset procedure (e.g., the process of powering on or off the power management device 12 and then powering it back on) before it is ready to receive data signals, an inconsistency may occur between the resolution set by the user (i.e., the physical switch signal I11) and the resolution actually operated by the optical sensor 13 due to the omission of the aforementioned physical switch signal I11.
[0008] In addition, the voltage level at the I / O pin of the optical sensor 13, which is electrically connected to the resolution switching key 11, is used to provide the optical sensor 13 with the ability to determine the resolution to switch to. However, when external noise interference causes an unexpected voltage change at the voltage level of this I / O pin, and if the magnitude of the voltage change reaches another unexpected resolution switching threshold set internally by the optical sensor 13, the optical sensor 13 will unexpectedly start the internal resolution switching action, thereby causing an unexpected switching malfunction.
[0009] In view of this, the main purpose of this development and improvement is to propose a new functional parameter (e.g., resolution) switching storage circuit and operation method, so as to solve the existing problems in the prior art, such as the inability to store or store user-defined resolution settings, or inconsistencies or unexpected resolution switching, while cooperating with the existing optical sensor architecture. Summary of the Invention
[0010] The main objective of this invention is to provide a function parameter switching and storage circuit and operation method, so that, in conjunction with the existing optical sensor architecture, the actual function parameters of the optical sensor can be kept in the state that the user expects to switch and set at any time.
[0011] This invention relates to a function parameter switching and storage circuit applied in a peripheral device having an optical sensor. The function parameter switching and storage circuit includes: a function parameter switching key for generating and outputting a physical switch signal in response to any user triggering action; and an analog control circuit including: an external controller electrically connected to the function parameter switching key, the external controller generating and outputting a control command in response to the physical switch signal; wherein the external controller can analyze the physical switch signal to store a switched function parameter storage value; and a virtual switch circuit electrically connected between the external controller and the optical sensor, the virtual switch circuit generating and outputting a virtual switch signal to the optical sensor in response to the control command; wherein the external controller generates and outputs the control command to the virtual switch circuit in response to either the physical switch signal or the switched function parameter storage value, thereby causing the optical sensor to perform a function parameter switching procedure in response to the virtual switch signal.
[0012] Preferably, the function parameter switch key can be a resolution (DPI) switch key or a polling rate switch key.
[0013] Preferably, the external controller is a microprocessor independent of the optical sensor.
[0014] Preferably, the microprocessor has an internal memory, or the microprocessor is electrically connected to an external memory; wherein either the internal memory or the external memory is used to store the function parameter storage value of the switching setting.
[0015] Preferably, the external controller has a switch signal filtering procedure to filter out abnormal physical switch signals.
[0016] Preferably, the peripheral device further includes a power management device electrically connected to the optical sensor for providing a power source; wherein the power management device is further electrically connected to the external controller, or the power management device is further electrically connected to the external controller and the virtual switch circuit.
[0017] Preferably, when the power management device is in a normal power operation program, the external controller uses the received physical switch signal to generate and output the control command to the virtual switch circuit, thereby enabling the optical sensor to perform the function parameter switching program.
[0018] Preferably, when the power management device puts the optical sensor into a reset procedure in response to power-on or power-off and then power-on, the external controller uses the stored function parameter values of the switching settings to generate and output the control command to the virtual switch circuit, thereby enabling the optical sensor to perform the function parameter switching procedure.
[0019] Preferably, the optical sensor can be used to output a feedback monitoring signal to the external controller, so that the external controller can determine the content and timing of generating and outputting the control command.
[0020] Preferably, the feedback monitoring signal is an actual operating function parameter of the optical sensor and / or a resolution switching notification interrupt signal. When the external controller monitors and compares the actual operating function parameter and the stored value of the switching function parameter, the external controller uses the stored value of the switching function parameter to regenerate and output the control command to the virtual switch circuit, thereby enabling the optical sensor to perform a function parameter correction procedure.
[0021] Preferably, the feedback monitoring signal is a Ready signal for the optical sensor, and the external controller can only activate one of the stored values of the function parameters corresponding to the physical switch signal and the switching setting when it receives the Ready signal, so as to generate and output the control command to the virtual switch circuit, thereby enabling the optical sensor to perform the function parameter switching procedure.
[0022] Preferably, the preparation signal is generated and output to the external controller after the optical sensor has completed a reset procedure.
[0023] Preferably, if the external controller fails to receive the physical switch signal for a period of time, the analog control circuit can switch from an operating mode to a low-power mode or a sleep mode.
[0024] Preferably, when the analog control circuit enters the low-power mode or the sleep mode, and when the external controller receives the physical switch signal, or when the external controller monitors, compares and determines that the actual operating function parameter of the optical sensor is different from the stored value of the switching function parameter, the analog control circuit re-enters the operating mode.
[0025] Preferably, the function parameter switching key is either a physical button switch or a physical touch switch.
[0026] Preferably, the peripheral device may be one of various peripheral input devices, including a mouse.
[0027] Another preferred embodiment is a peripheral device comprising: a function parameter switching key for generating and outputting a physical switch signal in response to any user's triggering actions; an optical sensor for executing a function parameter switching procedure; and an analog control circuit electrically connected between the function parameter switching key and the optical sensor, the analog control circuit generating and outputting a virtual switch signal to the optical sensor in response to the physical switch signal; wherein the analog control circuit can analyze the physical switch signal to store a switching set function parameter storage value, and the analog control circuit, in response to either the physical switch signal or the switching set function parameter storage value, causes the optical sensor to perform the function parameter switching procedure in response to the virtual switch signal.
[0028] Preferably, the function parameter switch key can be a resolution (DPI) switch key or a polling rate switch key.
[0029] Preferably, the function parameter switching key is either a physical button switch or a physical touch switch.
[0030] Preferably, the analog control circuit is independent of the optical sensor and together with the function parameter switching key forms a function parameter switching storage circuit. The analog control circuit includes at least: an external controller electrically connected to the function parameter switching key, the external controller being used to generate and output a control command in response to the physical switch signal; wherein the external controller can be used to analyze the physical switch signal to store the function parameter storage value of the switching setting; and a virtual switch circuit electrically connected between the external controller and the optical sensor, the virtual switch circuit being used to generate and output the virtual switch signal to the optical sensor in response to the control command.
[0031] Preferably, the external controller has an internal memory, or the external controller is electrically connected to an external memory; wherein either the internal memory or the external memory is used to store the function parameter storage value of the switching setting.
[0032] Preferably, the peripheral device further includes a power management device electrically connected to the optical sensor for providing a power source; wherein the power management device is further electrically connected to the external controller, or the power management device is further electrically connected to the external controller and the virtual switch circuit.
[0033] Preferably, when the power management device is in a normal power operation program, the external controller uses the received physical switch signal to generate and output the control command to the virtual switch circuit, thereby enabling the optical sensor to perform the function parameter switching program.
[0034] Preferably, when the power management device puts the optical sensor into a reset procedure in response to power-on or power-off and then power-on, the external controller uses the stored function parameter values of the switching settings to generate and output the control command to the virtual switch circuit, thereby enabling the optical sensor to perform the function parameter switching procedure.
[0035] Preferably, the optical sensor can be used to output a feedback monitoring signal to the analog control circuit, so that the analog control circuit can determine the content and timing of generating and outputting the virtual switch signal; wherein the feedback monitoring signal is an actual operating functional parameter of the optical sensor, or a resolution switching notification interrupt signal of the optical sensor, or a ready signal of the optical sensor.
[0036] Preferably, if the analog control circuit fails to receive the physical switch signal for a period of time, the analog control circuit can switch from an operating mode to a low-power mode or a sleep mode. If the analog control circuit receives the physical switch signal, or if the analog control circuit monitors, compares and determines that the actual operating function parameter of the optical sensor is different from the stored value of the switching function parameter, the analog control circuit will resume entering the operating mode.
[0037] Another preferred approach is a function parameter switching and storage operation method, applied to a peripheral device having at least a function parameter switching key, an optical sensor, an analog control circuit, and a power management device. The function parameter switching and storage operation method includes at least the following steps: (a) When the optical sensor is in a reset procedure due to the power management device being powered on or off and then powered on again, the analog control circuit determines whether all stored function parameter values for switching settings are available; (b) If the stored function parameter values for switching settings are available, the analog control circuit generates a virtual switch signal based on the stored function parameter values for switching settings, thereby enabling the optical sensor to perform a function parameter switching procedure; (c) If the stored function parameter values for switching settings are not available, the analog control circuit further determines whether it can receive a signal generated by the function parameter switching key in response to a user's switching trigger action within a certain period of time. (d) When it is determined that the physical switch signal can be received within the specified time period, the analog control circuit generates the virtual switch signal in response to the physical switch signal, thereby enabling the optical sensor to perform the function parameter switching procedure; (e) When it is determined that the physical switch signal cannot be received within the specified time period, the analog control circuit switches from an operating mode to a low-power mode or a sleep mode; (f) When the analog control circuit is in the low-power mode or the sleep mode, the analog control circuit determines whether the physical switch signal has been received, or determines and monitors whether the actual operating function parameter of the optical sensor is the same as the stored value of the switching function parameter; and (g) When it is determined that the physical switch signal has been received, or when it is determined and monitored that the actual operating function parameter of the optical sensor is different from the stored value of the switching function parameter, the analog control circuit resumes the operating mode.
[0038] Preferably, in step (b) or step (d), before or after the optical sensor performs the function parameter switching procedure, the following step may be included: (h) causing the optical sensor to output a feedback monitoring signal to the analog control circuit, so that the analog control circuit can determine the content and timing of generating and outputting the virtual switch signal; wherein the feedback monitoring signal is an actual operating function parameter of the optical sensor, or the feedback monitoring signal is a ready signal of the optical sensor, or the feedback monitoring signal is a resolution switching notification interrupt signal.
[0039] Preferably, the feedback monitoring signal is the preparation signal of the optical sensor, and before the optical sensor performs the function parameter switching procedure, the analog control circuit must wait to receive the preparation signal before it can start either the physical switch signal or the stored value of the function parameter set for switching, thereby enabling the optical sensor to perform the function parameter switching procedure.
[0040] Preferably, when the feedback monitoring signal is the actual operating function parameter of the optical sensor and / or the resolution switching notification interrupt signal, and after the optical sensor performs the function parameter switching procedure, the analog control circuit monitors, compares, and determines that the actual operating function parameter is different from the stored value of the switching function parameter. In this case, the analog control circuit uses the stored value of the switching function parameter to regenerate and output the virtual switch signal, thereby enabling the optical sensor to perform a function parameter correction procedure.
[0041] To provide a better understanding of the above and other aspects of this case, specific embodiments are described below in conjunction with the accompanying drawings. Attached Figure Description
[0042] Figure 1A This is a schematic diagram of the appearance of a currently available mouse with resolution switching functionality.
[0043] Figure 1B for Figure 1A The diagram shows a block diagram of the existing circuitry inside the mouse related to the resolution switching function.
[0044] Figure 2 This is a block diagram of a first preferred embodiment of the circuit in this case.
[0045] Figure 3 This is a block diagram of a second preferred embodiment of the circuit in this case.
[0046] Figures 4A to 4B This case serves as the basis. Figure 2 The diagram shows the first preferred implementation process steps.
[0047] Figures 5A to 5C This case serves as the basis. Figure 3 The diagram shows a second preferred implementation process step.
[0048] The reference numerals in the attached figures are explained as follows:
[0049] 10, 20, 30: Mouse
[0050] 11: Resolution switch button
[0051] 12: Power Management Device
[0052] 13: Optical Sensors
[0053] I11: Physical switch signal
[0054] P: Internal preset resolution
[0055] 21, 31: Functional parameter (resolution) switching and storage circuit
[0056] 211, 311: Function parameter (resolution) toggle keys
[0057] 212, 312: Analog control circuit
[0058] 2121, 3121: External controller
[0059] 2122, 3122: Virtual switching circuits
[0060] 22, 32: Power management devices
[0061] 23, 33: Optical sensors
[0062] I21, I31: Physical switch signals
[0063] I22, I32: Virtual switch signals
[0064] C1, C2: Control commands
[0065] R1, R2: Toggle the stored resolution value
[0066] F: Feedback monitoring signal
[0067] S100 to S108: Steps
[0068] S201 to S216: Steps Detailed Implementation
[0069] The following are detailed descriptions of the embodiments provided. These embodiments are merely illustrative and do not limit the scope of protection intended for this application. Furthermore, the drawings in the embodiments omit unnecessary elements or elements that can be accomplished with ordinary techniques in order to clearly illustrate the technical features of this application.
[0070] Please see Figure 2 Taking a peripheral input device such as a mouse as an example, this paper discloses a first preferred embodiment circuit block diagram of the inventive concept; wherein, Figure 2The mouse 20 includes: a function parameter switching and storage circuit 21, a power management device 22, and an optical sensor 23; wherein, the function parameter switching and storage circuit 21 includes at least: a function parameter switching key 211 and an analog control circuit 212; furthermore, the analog control circuit 212 includes at least an external controller 2121 and a virtual switch circuit 2122.
[0071] Since this embodiment and the following embodiments will both use the function parameter of switching mouse resolution (DPI) as an example for explanation, the aforementioned function parameter switching storage circuit 21 and the aforementioned function parameter switching key 211 will be explained by example using the resolution switching storage circuit 21 and the resolution switching key 211, respectively. The purpose is only to facilitate understanding of the inventive concept of this case, but it is not intended to limit the scope of application of this case.
[0072] Furthermore, the resolution switching storage circuit 21 provided in this embodiment can be used with various optical sensor designs currently on the market that provide users with the ability to switch parameters (e.g., mouse resolution (Dots Per Inch, DPI)) (e.g., the optical sensor with product number PAW3519); of course, the types of optical sensors that can be used with the inventive concept of this case are not limited to the aforementioned optical sensor with product number PAW3519.
[0073] Furthermore, the inventive concept of this case can also be extended to other different functional parameters (or operating modes). For example, this case can also be applied to schemes that allow users to switch and set the polling rate. In other words, the scope of application of this case is not limited to processing a specific functional parameter.
[0074] Let me explain further. Figure 2 Operating principle: Figure 2 In this circuit, the resolution switching storage circuit 21 is used to electrically connect to and cooperate with the optical sensor 23 commonly used in the market (e.g., product number PAW3519); the analog control circuit 212 includes an external controller 2121 for inputting a physical switch signal I21, and a virtual switch circuit 2122 electrically connected between the external controller 2121 and the optical sensor 23. The virtual switch signal I22 is used to simulate and generate a virtual switch signal I22 corresponding to the physical switch signal I21 in response to a control command C1 from the external controller 2121 and input it into the optical sensor 23, so that the optical sensor 23 can perform a function parameter switching program related to resolution adjustment.
[0075] In this embodiment, the external controller 2121 is a microprocessor independent of the optical sensor 23. In this way, after receiving the physical switch signal I21 generated and output by the resolution switching key 211 in response to all the user's switching actions, the external controller 2121 will determine the virtual switch signal I22 to be output to the optical sensor 23 according to the content of the physical switch signal I21 (e.g., the number of times the user presses or the corresponding code). At the same time, the external controller 2121 will convert the content of the physical switch signal I21 into a resolution setting storage value R1 and store it in its internal memory.
[0076] Of course, another approach is to store the resolution value R1 of the switching setting in an external memory (not shown) that is electrically connected to the external controller 2121, which will not be elaborated here.
[0077] Another preferred approach is to add a switch signal filtering program to the controller 2121 to filter out abnormal physical switch signals I21.
[0078] In addition, the resolution switching key 211 in this embodiment is a physical button switch, but it can also be replaced with a touch physical switch depending on the actual application. This case does not limit it.
[0079] Furthermore, when the power management device 22 (e.g., a battery-powered device or a USB wired power device) is in a normal power operation program, it is used to provide power for the normal operation of the mouse 20, and it includes components that can be electrically connected to the external controller 2121 and the optical sensor 23 to provide the same or different operating voltages / currents for both.
[0080] On the other hand, when the mouse 20 is powered on or off and then the power management device 22 is powered on again, causing the optical sensor 23 to be in a reset program, the external controller 2121 can directly convert the stored resolution value R1 of the switching setting into a virtual switch signal I22 and output it to the optical sensor 23, so that the optical sensor 23 can continue to use the resolution set by the user before the mouse 20 is powered on or off, thus solving the problem of the prior art.
[0081] Another preferred approach is that if the external controller 2121 fails to receive the physical switch signal I21 for a period of time, the analog control circuit 212, including the external controller 2121 and the virtual switch circuit 2122, can switch from an operating mode to a low-power mode or a sleep mode.
[0082] Of course, if the external controller 2121 receives the physical switch signal I21 within a certain period of time, or if the external controller 2121 monitors and compares and determines that the actual operating function parameter located inside the optical sensor 23 is different from the stored value R1 of the switching set function parameter, the analog control circuit 212 will return to the aforementioned working mode.
[0083] Please see again Figure 3 This invention discloses a second preferred embodiment circuit block diagram using a peripheral input device such as a mouse as an example; furthermore, this embodiment also describes the function of switching mouse resolution (DPI) as an example. Figure 3 The mouse 30 includes: a function parameter switching storage circuit 31, a power management device 32, and an optical sensor 33; wherein, the function parameter switching storage circuit 31 includes at least: a function parameter switching key 311 and an analog control circuit 312; furthermore, the analog control circuit 312 includes at least an external controller 3121 and a virtual switch circuit 3122; in addition, the aforementioned function parameter switching storage circuit 31 and the aforementioned function parameter switching key 311 will be described by way of example using the resolution switching storage circuit 31 and the resolution switching key 311, respectively.
[0084] Furthermore, the various implementation components in the aforementioned second preferred embodiment circuit block diagram are essentially extensions of the relevant implementation components in the aforementioned first preferred embodiment circuit block diagram, and Figure 3 The physical switch signal I31, control command C2, and virtual switch signal I32 in the block diagram of the first preferred embodiment of the circuit are basically similar in operation to the physical switch signal I21, control command C1, and virtual switch signal I22 in the block diagram of the first preferred embodiment of the circuit, and will not be described again here.
[0085] However, one of the differences between the two embodiments is that, in the second preferred embodiment circuit block diagram of this case, when the power management device 32 (e.g., battery power device or USB wired power device) is in a normal power operation program, it is used to provide power for the normal operation of the mouse 30. And if the virtual switch circuit 3122 does not use the power of the external controller 3121, the power management device 32 includes the ability to be electrically connected to the external controller 3121, the virtual switch circuit 3122 and the optical sensor 33 simultaneously to provide the same or different operating voltages / currents for the three.
[0086] Furthermore, another new technical feature of the second preferred embodiment circuit block diagram of this case is that the external controller 3121 can maintain or receive the feedback monitoring signal F from the optical sensor 33 during operation at any time, and the external controller 3121 can determine the content of the feedback monitoring signal F or compare it with the internal parameters to prevent and overcome unexpected (accidental) errors in the optical sensor 33 during operation, thereby solving the existing technical problem of inconsistency between the actual resolution of its operation and the resolution storage value R2 that the user actually sets for switching.
[0087] In other words, the feedback monitoring signal F can be any signal source provided to the external controller 3121 for monitoring purposes. For example, the feedback monitoring signal F can be the actual operating resolution of the optical sensor 33 during operation. In this way, the external controller 3121 can always monitor and compare the operating resolution of the optical sensor 23 with the stored resolution value R2 of the switching setting. In the event of an unexpected (accidental) resolution switching malfunction due to noise affecting the I / O pin between the optical sensor 33 and the virtual switch circuit 3122, the external controller 3121 can automatically recalibrate the actual operating resolution inside the optical sensor 33 based on the results of the aforementioned monitoring and comparison. That is to say, the external controller 3121 can enable the optical sensor 33 to perform a functional parameter calibration procedure.
[0088] Of course, another better approach is that the controller 3121 can also be changed according to the actual operating conditions to require the aforementioned monitoring and comparison results, as well as the resolution switching notification interrupt signal (Interrupt) issued by the optical sensor 33 from time to time, to formally start the aforementioned function parameter correction procedure; that is, the feedback monitoring signal F can be composed of the actual operating resolution from the optical sensor 33 when it is working, plus the resolution switching notification interrupt signal.
[0089] Another preferred approach is that the controller 3121 can also wait for and respond to the aforementioned resolution switching notification interrupt signal issued by the optical sensor 33 from time to time before formally starting the aforementioned function parameter correction procedure.
[0090] Alternatively, the aforementioned feedback monitoring signal F can also be a Ready signal from the optical sensor 33 during operation. In this way, the external controller 3121 can wait for the optical sensor 33 to be in a state where it is ready to receive data signals before sending the virtual switch signal I32 to the optical sensor 33. This avoids the prior art problem of resolution switching errors or inconsistencies caused by the optical sensor 33 not having completed its operational preparation (for example, the optical sensor 33 being in a Reset procedure due to the power management device 32 being powered off and then re-energized).
[0091] Please see again Figures 4A to 4B This serves as the basis for this case. Figure 2 The diagram illustrates a first preferred implementation process, the implementation steps of which include at least the following:
[0092] Step S100: Power is restored after power is turned on or off; during this time, the optical sensor 23 is in a reset procedure.
[0093] Step S101: Determine whether the analog control circuit 212 has the stored value R1 of the function parameter R1 of the switching setting; that is, the external controller 2121 will check whether the stored value R1 of the function parameter R1 of the switching setting is stored in its internal memory or external memory.
[0094] When the external controller 2121 confirms that there is no stored value R1 of the function parameter R1 of the switching setting, step S104 is executed.
[0095] Step S102: When the external controller 2121 confirms that there is a stored value R1 of the function parameter R1 of the switching setting, the external controller 2121 shall, in accordance with the stored value R1 of the function parameter R1 of the switching setting, cause the virtual switch circuit 2122 to generate and output a virtual switch signal I22 to the optical sensor 23.
[0096] Step S103: The optical sensor 23 performs a function parameter switching procedure in response to the virtual switch signal I22, and continues to execute step S104;
[0097] Step S104: The external controller 2121 determines whether it can receive the physical switch signal I21 generated and output by the resolution switching key 211 in response to all the user's switching trigger actions within a certain period of time;
[0098] Step S105: When the external controller 2121 receives the physical switch signal I21 within this period of time, the external controller 2121 responds to the physical switch signal I21 by causing the virtual switch circuit 2122 to generate and output the virtual switch signal I22 to the optical sensor 23, and the external controller 2121 converts the content of the physical switch signal I21 into the resolution storage value R1 set by switching, and stores it in the internal memory or external memory;
[0099] Step S106: The optical sensor 23 performs a function parameter switching procedure in response to the virtual switch signal I22, and continues to execute step S104;
[0100] Step S107: When the external controller 2121 fails to receive the physical switch signal I21 within this period, both the external controller 2121 and the virtual switch circuit 2122 switch from an operating mode to a low-power mode or a sleep mode; and
[0101] Step S108: Depending on whether it is in low power mode or sleep mode, the external controller 2121 determines whether it receives the physical switch signal I21;
[0102] If the external controller 2121 confirms that it has received the physical switch signal I21, step S104 is executed again; or if the external controller 2121 confirms that it has not received the physical switch signal I21, step S108 is executed again.
[0103] Please see again Figures 5A to 5C This serves as the basis for this case. Figure 3 The diagram illustrates a second preferred implementation process, the implementation steps of which include at least the following:
[0104] Step S200: Power on or off and then power on again;
[0105] Step S201: Determine whether the analog control circuit 312 has the stored value R2 of the function parameter R2 of the switching setting; that is, the external controller 3121 will check whether the stored value R2 of the function parameter R2 of the switching setting is stored in its internal memory or external memory.
[0106] When the external controller 3121 confirms that there is no stored value R2 for the function parameter R2 of the switching setting that has been stored, step S207 is executed.
[0107] Step S202: When the external controller 3121 confirms that it has the stored value R2 of the function parameter R2 of the switching setting, it then determines whether a ready signal has been received from the optical sensor 33.
[0108] If the external controller 3121 confirms that it has not received the preparation signal from the optical sensor 33, then step S202 is executed again.
[0109] Step S203: When the external controller 3121 confirms that it has received the preparation signal from the optical sensor 33, the external controller 3121 switches the set function parameter storage value R2 so that the virtual switch circuit 3122 generates and outputs the virtual switch signal I32 to the optical sensor 33.
[0110] Step S204: The optical sensor 33 performs a function parameter switching procedure in response to the virtual switch signal I32;
[0111] Step S205: The external controller 3121 monitors, compares, and determines whether the actual operating function parameters in the optical sensor 33 are the same as the stored value R2 of the function parameter set during switching.
[0112] When the external controller 3121 monitors and compares the function parameters of the actual operation and the stored value R2 of the function parameter set by the switching are the same, step S207 is continued.
[0113] Step S206: When the external controller 3121 monitors and compares and finds that the actual operating function parameters are different from the stored value R2 of the switching function parameters, the external controller 3121 uses the stored value R2 of the switching function parameters to regenerate and output the virtual switch signal I32, thereby enabling the optical sensor 33 to perform a function parameter correction program and continue to execute step S207.
[0114] Step S207: The external controller 3121 determines whether it can receive the physical switch signal I31 generated and output by the resolution switching key 311 in response to all the user's switching trigger actions within a certain period of time;
[0115] Step S208: When the external controller 3121 confirms that it can receive the physical switch signal I31 within a certain period of time, it then determines whether it has received the preparation signal from the optical sensor 33; if the external controller 3121 confirms that it has not received the preparation signal from the optical sensor 33, then step S208 is executed again.
[0116] Step S209: When the external controller 3121 confirms that it has received the preparation signal from the optical sensor 33, the external controller 3121, in response to the physical switch signal I31, causes the virtual switch circuit 3122 to generate and output the virtual switch signal I32 to the optical sensor 33. The external controller 3121 will convert the content of the physical switch signal I31 into the set resolution storage value R2 and store it in the internal memory or external memory.
[0117] Step S210: The optical sensor 33 performs a function parameter switching procedure in response to the virtual switch signal I32;
[0118] Step S211: The external controller 3121 monitors, compares and determines whether the actual operating function parameters in the optical sensor 33 are the same as the stored value R2 of the switching set function parameters;
[0119] When the external controller 3121 monitors and compares the function parameters of the actual operation and the stored value R2 of the function parameter set by the switching are the same, step S207 is continued.
[0120] Step S212: When the external controller 3121 monitors and compares and finds that the actual operating function parameters are different from the function parameter storage value R2 set by the switching, the external controller 3121 uses the function parameter storage value R2 set by the switching to regenerate and output the virtual switch signal I32, thereby enabling the optical sensor 33 to perform a function parameter correction program and continue to execute step S207.
[0121] Step S213: When the external controller 3121 fails to receive the physical switch signal I31 within this period of time, both the external controller 3121 and the virtual switch circuit 3122 switch from an operating mode to a low-power mode or a sleep mode.
[0122] Step S214: Depending on whether it is in low power mode or sleep mode, the external controller 3121 determines whether it has received a physical switch signal I32;
[0123] When the external controller 3121 confirms that it has received the physical switch signal I32, it wakes up the external controller 3121 and the virtual switch circuit 3122 so that they can return to the working mode and continue to execute step S207.
[0124] Step S215: When the external controller 3121 confirms that no physical switch signal I32 has been received, it then judges and monitors whether the actual operating function parameters of the optical sensor 33 are the same as the stored value R2 of the switching function parameters.
[0125] Specifically, when the external controller 3121 confirms and monitors that the actual operating function parameters of the comparison optical sensor 33 are the same as the stored value R2 of the switching function parameter, step S214 is re-executed; and
[0126] Step S216: When the external controller 3121 confirms and monitors that the actual operating function parameters of the comparison optical sensor 33 are different from the stored value R2 of the switching setting function parameters, the external controller 3121 and the virtual switch circuit 3122 are woken up so that they can return to the working mode and continue to execute step S207.
[0127] The aforementioned restoration to the working mode includes enabling the external controller 3121 to use the stored value R2 of the switching function parameter to regenerate and output the virtual switch signal I32, thereby enabling the optical sensor 33 to perform a function parameter calibration procedure.
[0128] The conditions under which the analog control circuit 312 is awakened include receiving the physical switch signal I31 generated by the user triggering the resolution switching key 311 again, or being awakened when receiving the aforementioned feedback monitoring signals F.
[0129] For example, in this case, the external controller 3121, which is in low power mode (power saving mode), can continue to receive the actual operating resolution from the optical sensor 23. When the external controller 3121 detects an inconsistency between the actual operating resolution of the optical sensor 33 and the stored value R2 of the switching function parameter, the external controller 3121 is woken up and enters a normal operating mode, and automatically recalibrates the actual operating resolution inside the optical sensor 33.
[0130] Another way to wake up the analog control circuit 312 in this case is to enable the external controller 3121, which is in sleep mode, to wait continuously and receive a resolution switching notification interrupt signal from the optical sensor 33 before being woken up and entering a normal working mode, and automatically recalibrating the actual internal resolution of the optical sensor 33.
[0131] In conclusion, the various implementation schemes proposed in this case can clearly solve the various deficiencies of the existing technology, thus this case is indeed a work of great industrial value.
[0132] Although the present invention has been disclosed above with reference to embodiments, it is not intended to limit the scope of the invention. Those skilled in the art to which this invention pertains may make various modifications and refinements without departing from the spirit and scope of the invention. Therefore, the scope of protection of this invention shall be determined by the appended claims.
Claims
1. A function parameter switching and storage circuit, applied in a peripheral device having an optical sensor, the function parameter switching and storage circuit comprising: A function parameter switching key is used to generate and output a physical switch signal in response to any of the user's trigger actions; as well as An analog control circuit, including: An external controller, electrically connected to the function parameter switching key, is used to generate and output a control command in response to the physical switch signal; wherein, the external controller can analyze the physical switch signal to store a switching setting function parameter storage value; and A virtual switch circuit is electrically connected between the external controller and the optical sensor. The virtual switch circuit is used to generate and output a virtual switch signal to the optical sensor in response to the control command. The external controller generates and outputs a control command to the virtual switch circuit based on either the physical switch signal or the stored value of the switching function parameter. This causes the optical sensor to perform a function parameter switching procedure in response to the virtual switch signal. When the external controller monitors and compares the actual operating function parameter of the optical sensor and determines that the stored value of the switching function parameter is different, the external controller uses the stored value of the switching function parameter to regenerate and output the control command to the virtual switch circuit, thereby causing the optical sensor to perform a function parameter correction procedure.
2. The function parameter switching storage circuit as described in claim 1, wherein the function parameter switching key may be a resolution switching key or a rate of return switching key.
3. The function parameter switching and storage circuit as described in claim 1, wherein the external controller is a microprocessor independent of the optical sensor.
4. The function parameter switching and storage circuit as described in claim 3, wherein the microprocessor has an internal memory, or the microprocessor is electrically connected to an external memory; wherein, Either the internal memory or the external memory is used to store the function parameter storage value of the switching setting.
5. The function parameter switching storage circuit as described in claim 1, wherein the external controller has a switch signal filtering program to filter out abnormal physical switch signals.
6. The function parameter switching and storage circuit as described in claim 1, wherein the peripheral device further includes a power management device electrically connected to the optical sensor for providing a power source; wherein, The power management device is further electrically connected to the external controller, or the power management device is further electrically connected to the external controller and the virtual switch circuit.
7. The function parameter switching storage circuit as described in claim 6, wherein when the power management device is in a normal power operation program, the external controller uses the received physical switch signal to generate and output the control command to the virtual switch circuit, thereby enabling the optical sensor to perform the function parameter switching program.
8. The function parameter switching storage circuit as described in claim 6, wherein when the power management device puts the optical sensor into a reset program in response to power-on or power-off and then power-on, the external controller uses the stored function parameter value of the switching setting to generate and output the control command to the virtual switch circuit, thereby enabling the optical sensor to perform the function parameter switching program.
9. The function parameter switching and storage circuit as described in claim 1, wherein the optical sensor can be used to output a feedback monitoring signal to the external controller, so that the external controller can determine the content and timing of generating and outputting the control command.
10. The function parameter switching storage circuit as described in claim 9, wherein the feedback monitoring signal is the actual operating function parameter of the optical sensor and / or a resolution switching notification interrupt signal.
11. The function parameter switching storage circuit as described in claim 9, wherein the feedback monitoring signal is a preparation signal for the optical sensor, and the external controller can only start generating and outputting the control command to the virtual switch circuit when the external controller receives the preparation signal, based on either the physical switch signal or the function parameter storage value set by the switching, thereby enabling the optical sensor to perform the function parameter switching procedure.
12. The function parameter switching storage circuit as described in claim 11, wherein the preparation signal is generated and output to the external controller after the optical sensor has completed a reset procedure.
13. The function parameter switching storage circuit as described in claim 1, wherein if the external controller fails to receive the physical switch signal for a period of time, the analog control circuit can switch from an operating mode to a low-power mode or a sleep mode.
14. The function parameter switching storage circuit as described in claim 13, wherein when the analog control circuit enters the low power mode or the sleep mode, and if the external controller receives the physical switch signal, or if the external controller monitors, compares and determines that an actual operating function parameter of the optical sensor is different from the stored value of the switching set function parameter, the analog control circuit re-enters the working mode.
15. The function parameter switching storage circuit as described in claim 1, wherein the function parameter switching key is a physical button switch or a physical touch switch.
16. The function parameter switching and storage circuit as described in claim 1, wherein the peripheral device may be one of various peripheral input devices, including a mouse.
17. A method for switching and storing function parameters, applied to a peripheral device having at least a function parameter switching key, an optical sensor, an analog control circuit, and a power management device, wherein the method for switching and storing function parameters includes at least the following steps: (a) When the optical sensor is in a reset program due to the power management device being powered on or off and then powered on again, the analog control circuit determines whether it has all the stored function parameter values that have been set. (b) When it is determined that the stored value of the switching setting function parameter has been stored, the analog control circuit generates a virtual switch signal according to the stored value of the switching setting function parameter, thereby enabling the optical sensor to perform a function parameter switching procedure. (c) When it is determined that the function parameter storage value of the switching setting is not available, the analog control circuit further determines whether it can receive a physical switch signal generated and output by the function parameter switching key in response to all switching trigger actions of a user within a certain period of time. (d) When it is determined that the physical switch signal can be received within the specified time period, the analog control circuit generates the virtual switch signal in response to the physical switch signal, thereby enabling the optical sensor to perform the function parameter switching procedure. (e) When it is determined that the physical switch signal is not received within the specified time period, the analog control circuit switches from an operating mode to a low-power mode or a sleep mode. (f) Depending on whether the analog control circuit is in the low-power mode or the sleep mode, the analog control circuit determines whether it has received the physical switch signal, or determines and monitors whether the actual operating functional parameters of the optical sensor are the same as the stored value of the switching set functional parameters; and (g) When it is determined that the physical switch signal has been received, or when it is determined and monitored that the actual operating function parameter of the optical sensor is different from the stored value of the switching function parameter, the analog control circuit resumes the working mode; after the optical sensor performs the function parameter switching procedure in step (b) or (d), when the analog control circuit monitors and compares and determines that the actual operating function parameter is different from the stored value of the switching function parameter, the analog control circuit uses the stored value of the switching function parameter to regenerate and output the virtual switch signal, thereby enabling the optical sensor to perform a function parameter correction procedure.
18. The function parameter switching and storage operation method as described in claim 17, wherein in step (b) or step (d), before or after the optical sensor performs the function parameter switching procedure, the following steps may be further included: (h) The optical sensor outputs a feedback monitoring signal to the analog control circuit so that the analog control circuit can determine the content and timing of generating and outputting the virtual switch signal; wherein the feedback monitoring signal is an actual operating functional parameter of the optical sensor, or the feedback monitoring signal is a preparation signal of the optical sensor, or the feedback monitoring signal is a resolution switching notification interruption signal.
19. The function parameter switching storage operation method as described in claim 18, wherein the feedback monitoring signal is the preparation signal of the optical sensor, and before the optical sensor performs the function parameter switching procedure, the analog control circuit must wait to receive the preparation signal before it can start either the physical switch signal or the function parameter storage value set by the switching, thereby enabling the optical sensor to perform the function parameter switching procedure.
20. The function parameter switching and storage operation method as described in claim 18, wherein the feedback monitoring signal is the actual operating function parameter of the optical sensor and / or the resolution switching notification interruption signal.
Citation Information
Patent Citations
Mouse DPI preset value setting method and mouse
CN101105730A
