Electronic device and debug mode triggering method

By setting multiple keys and processing circuits in the optical mouse, the key layout is automatically detected and the debugging mode is triggered, which solves the problem of difficulty in determining the key layout of the optical mouse, and realizes that the debugging mode can be accurately entered regardless of the key layout, improving the accuracy and efficiency of optical mouse calibration.

CN116126153BActive Publication Date: 2025-08-12PIXART IMAGING INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210590811.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-11-15
Filing Date
2022-05-27
Publication Date
2025-08-12
Estimated Expiration
2042-05-27

AI Technical Summary

Technical Problem

When existing optical mouse enters debugging mode, it is difficult for engineers or maintenance personnel to determine the correct key layout, resulting in the optical mouse entering the wrong debugging mode or not entering the debugging mode.

Method used

By setting multiple keys and processing circuits in the optical mouse, the key combination is judged to trigger the debugging mode, and corresponding tests are performed to automatically detect the key layout, ensuring that the optical mouse can accurately enter the debugging mode regardless of the key layout.

Benefits of technology

It realizes that no matter what the optical mouse button layout can automatically detect and accurately enter the debugging mode, improving the accuracy and efficiency of optical mouse calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116126153B_ABST
    Figure CN116126153B_ABST
Patent Text Reader

Abstract

An electronic device capable of entering a debug mode comprises: a plurality of keys, wherein the layout of the plurality of keys corresponds to one of a first key layout and a second key layout; and a processing circuit, which controls the electronic device to enter a debug mode if at least two of the plurality of keys are pressed to achieve a predetermined key combination; wherein the control circuit controls the electronic device to perform a first test corresponding to the first key layout or controls the electronic device to perform a second test corresponding to the second key layout to detect whether the electronic device corresponds to the first key layout or the second key layout. The present invention also provides a debug mode triggering method. The present invention can automatically detect the key layout, and the optical mouse can enter the debug mode regardless of which key layout the optical mouse has.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an electronic device and a debug mode triggering method, and more particularly to an electronic device and a debug mode triggering method capable of triggering a debug mode regardless of a key layout of the electronic device. Background Art

[0002] Existing optical mice may need to enter debug mode, where engineers or maintenance personnel can calibrate the mouse's parameters. Optical mouse buttons can correspond to various button layouts. However, it's difficult for engineers or maintenance personnel to obtain information about the button layout when calibrating an optical mouse. Consequently, the optical mouse may enter the incorrect debug mode or fail to enter debug mode due to lack of knowledge of the correct button layout. Summary of the Invention

[0003] An object of the present invention is to disclose an electronic device that can enter a debug mode by light regardless of the key layout of the electronic device.

[0004] An object of the present invention is to disclose a debug mode triggering method, which can enter the debug mode by light regardless of the key layout of the electronic device.

[0005] One embodiment of the present invention discloses an electronic device that can enter a debugging mode, comprising: a plurality of keys, wherein the layout of the plurality of keys corresponds to one of a first key layout and a second key layout; and a processing circuit that controls the electronic device to enter a debugging mode if at least two of the plurality of keys are pressed to reach a predetermined key combination; wherein the control circuit controls the electronic device to perform a first test corresponding to the first key layout or controls the electronic device to perform a second test corresponding to the second key layout to detect whether the electronic device corresponds to the first key layout or the second key layout.

[0006] Another embodiment of the present invention discloses a debug mode triggering method for use in an electronic device including multiple buttons, comprising: (a) determining whether at least two of the multiple buttons are pressed to reach a predetermined button combination, wherein the layout of the multiple buttons corresponds to one of a first button layout and a second button layout; (b) if at least two of the multiple buttons are pressed to reach the predetermined button combination, controlling the electronic device to enter a debug mode; and (c) controlling the electronic device to perform a first test corresponding to the first button layout or controlling the electronic device to perform a second test corresponding to the second button layout to detect whether the electronic device corresponds to the first button layout or the second button layout.

[0007] According to the above embodiment, the key layout can be automatically detected, and the optical mouse can enter the debugging mode regardless of the key layout of the optical mouse. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 FIG. 1 is a schematic diagram of an optical mouse according to an embodiment of the present invention.

[0009] Figure 2 as well as Figure 3 Two examples of key layouts according to embodiments of the present invention are shown.

[0010] Figure 4 as well as Figure 5 FIG. 4 is a schematic diagram illustrating how to trigger the debugging mode of an optical mouse according to an embodiment of the present invention.

[0011] Figure 6 FIG. 4 is a flow chart of a debug triggering method according to an embodiment of the present invention.

[0012] The description of the accompanying drawings is as follows:

[0013] 100 optical mouse

[0014] 101 Processing Circuit

[0015] 200, 300 button layout

[0016] B1, B2, B3, B4, B5 buttons

[0017] Ba,Bb,Bc,Bd,Be,Bf,Bg,Bh,Bi,Bj,Bk,Bl switch

[0018] Pa, Pb, Pc, Pd, Pe, Pf, Pg pins

[0019] Ra, Rb, Rc, Rd, Re, Rf, Rg resistance

[0020] R0, R1, R2, R3 read points

[0021] T1, T2, T3 endpoints DETAILED DESCRIPTION

[0022] The present invention will be described below using multiple embodiments. Please note that the components in each embodiment may be implemented via hardware (e.g., a device or circuit) or firmware (e.g., at least one program written into a microprocessor). Furthermore, the terms "first," "second," and similar terms in the following description are used solely to define different components, parameters, data, signals, or steps. They are not intended to limit their order. For example, the first device and the second device may have the same structure but be different devices.

[0023] Furthermore, in the following embodiments, an optical mouse is used as an example to illustrate the concept of the present invention. However, the debug mode triggering method disclosed in the present invention can be applied to any other electronic device (eg, an optical navigation device).

[0024] Figure 1 FIG. 1 is a schematic diagram of an optical mouse according to an embodiment of the present invention. Figure 1 As shown, the optical mouse 100 includes a plurality of buttons B1, B2, B3, B4, B5 and a processing circuit 101. Please note that the optical mouse 100 is not limited to including five buttons B1-B5. The number and / or arrangement of the buttons of the optical mouse 100 may vary. Figure 1 The example shown in FIG. Buttons B1-B5 correspond to one of the first button layout and the second button layout, indicating that buttons B1-B5 correspond to one of the available button layouts. Furthermore, processing circuit 101 is configured to control optical mouse 100 to enter debug mode when at least two of buttons B1-B5 are pressed to achieve a predetermined button combination. For example, pressing buttons B1, B2, and B5, or pressing buttons B3, B4, and B5. The predetermined button combination may include more than one combination. For example, pressing buttons B1, B2, and then pressing buttons B3, B4.

[0025] The optical mouse 100 may further include an image sensor, and the processing circuit 101 determines the position of the optical mouse according to an image sensed by the image sensor.

[0026] The debug mode may be a mode for testing the optical mouse 100 to determine if it has errors, or a mode for calibrating parameters of the optical mouse 100 to improve its performance. In one embodiment, the debug mode allows the optical mouse 100 to allow its firmware or stored programs to be modified, or to allow new programs or firmware to be written to it.

[0027] In one embodiment, after a predetermined key combination is reached, processing circuit 101 controls optical mouse 100 to perform a first test corresponding to the first key layout or a second test corresponding to the second key layout to detect whether optical mouse 100 corresponds to the first or second key layout. In short, after a predetermined key combination is reached, optical mouse 100 determines whether it has the first or second key layout, thereby enabling more accurate calibration of optical mouse 100 in debug mode.

[0028] In one embodiment, after at least two buttons are pressed to achieve a predetermined button combination, the processing circuit 101 controls the optical mouse 100 to perform a first test. If the result of the first test indicates that the button does not have the first button layout, the processing circuit 101 controls the optical mouse 100 to perform a second test.

[0029] In another embodiment, after at least two buttons are pressed to reach a predetermined button combination, the processing circuit 101 controls the optical mouse 100 to perform a first test. Then, if the result of the first test indicates that the buttons have the first button layout, the processing circuit 101 controls the optical mouse 100 to perform the first test but does not control the optical mouse 100 to perform the second test.

[0030] In another embodiment, the processing circuit 101 controls the optical mouse 100 to perform the first test and the second test simultaneously after at least two buttons are pressed to reach a predetermined button combination.

[0031] The first and second tests can be performed by detecting the voltages of certain components or endpoints within the optical mouse 100, or by sending signals to detect output signals from certain endpoints. In this way, the type of the key layout can be detected. It should be noted that the steps for testing the key layout are not limited to the above examples.

[0032] In one embodiment, the aforementioned button layout refers to the circuitry connected between the internal circuitry or IC (Integrated Circuit) of the optical mouse 100 and the buttons B1, B2, B3, B4, and B5 on the optical mouse 100. Through this circuitry, when any of the buttons B1, B2, B3, B4, and B5 is pressed, the internal circuitry or IC of the optical mouse 100 can generate a corresponding signal to control the optical mouse 100.

[0033] The button layout of the optical mouse 100 can have various structures. Figure 2 as well as Figure 3 Two examples of key layouts according to embodiments of the present invention are shown. Figure 2 As shown, the key layout (reference numeral 200), which may be referred to as "KeyScan," includes multiple switches Ba, Bb, Bc, Bd, Be, Bf, Bg, Bh, Bi, Bj, Bk, and Bl, multiple terminals T1, T2, and T3, and read points R0, R1, R2, and R3. Each switch Ba, Bb, Bc, Bd, Be, Bf, Bg, Bh, Bi, Bj, Bk, and Bl corresponds to a key of the optical mouse 100. Furthermore, scan signals are alternately provided to terminals T1, T2, and T3. If a key is pressed, the corresponding switch turns on. Therefore, the scan signal can be used to determine which key was pressed.

[0034] Figure 3The key layout 300 in the optical mouse 100 may be referred to as a "GPIO layout" and uses the pins of the IC inside the optical mouse 100. GPIO stands for general-purpose input / output. Figure 3 As shown, the button layout 300 includes switches Ba, Bb, Bc, Bd, Be, Bf, Bg and resistors Ra, Rb, Rc, Rd, Re, Rf, Rg. Each switch Ba, Bb, Bc, Bd, Be, Bf, Bg corresponds to a button of the optical mouse 100 and is coupled between one of the resistors Ra, Rb, Rc, Rd, Re, Rf, Rg and one of the pins Pa, Pb, Pc, Pd, Pe, Pf, Pg. The pins Pa, Pb, Pc, Pd, Pe, Pf, Pg are pins of the IC inside the optical mouse 100. The IC mentioned here can be responsible for various functions. For example, the IC can be the processing circuit 101 or the image sensor of the optical mouse 100, but it can also be an IC responsible for other functions. In addition, in one embodiment, the resistors Ra, Rb, Rc, Rd, Re, Rf, Rg are used to form impedance matching, but are not limited to this. By Figure 3 The structure shown can inform the IC having pins Pa, Pb, Pc, Pd, Pe, Pf, and Pg whether any button is pressed, so as to generate a control signal to control the optical mouse 100.

[0035] In the aforementioned embodiment, when a predetermined key combination is reached (at least two keys are pressed to reach the predetermined key combination), the debug mode is triggered. However, triggering the debug mode may further include other steps. Figure 4 as well as Figure 5 A schematic diagram illustrating how to trigger the debugging mode of an optical mouse according to an embodiment of the present invention is shown. Figure 4 In the embodiment of FIG, when a predetermined key combination is reached and the optical mouse 100 is in the lift mode, the processing circuit 101 controls the optical mouse 100 to enter the debug mode. If the optical mouse 100 is in the lift mode, it means that the bottom of the optical mouse 100 is more than a predetermined distance away from the surface Sr, such as Figure 4 On the contrary, if the optical mouse 100 is not in the lifting mode, it means that the bottom of the optical mouse 100 contacts the surface Sr, as shown in FIG. Figure 4 As shown in the figure below, the surface Sr can be any surface. For example, the surface Sr can be a table or a mouse pad. The predetermined distance can be set to any desired value.

[0036] exist Figure 5In this embodiment, when a predetermined key combination is reached and the movement of the optical mouse 100 within a predetermined time interval conforms to a predetermined trajectory, the processing circuit 101 controls the optical mouse 100 to enter a debug mode. For example, when a predetermined key combination is reached and the movement of the optical mouse 100 within a predetermined time interval conforms to the shape of a horizontal 8, the optical mouse 100 enters debug mode. Please note that the trajectory here can be replaced with any other trajectory, and is not limited to a horizontal 8.

[0037] In another embodiment, the processing circuit 101 controls the optical mouse 100 to enter a debug mode when a predetermined key combination is reached within a predetermined time interval after the optical mouse 100 receives power (is powered on). For example, the optical mouse 100 is connected to a computer and receives power when the computer is turned on. In this case, the optical mouse 100 enters the debug mode when a predetermined key combination is reached within a predetermined time interval after the computer is turned on. For another example, "receiving power" may mean that at least one powered battery is installed in the optical mouse 100.

[0038] The predetermined time interval can be set to any desired value. In one embodiment, the predetermined time interval is set to 21 seconds, so that the user has sufficient time to control the optical mouse 100 to enter the debug mode. In another embodiment, when the optical mouse 100 receives power, if a predetermined key combination is achieved, the optical mouse 100 enters the debug mode. In other words, if a key on the optical mouse 100 is pressed to achieve the predetermined key combination before the optical mouse 100 receives power, the optical mouse 100 will enter the debug mode after receiving power.

[0039] In short, in the above embodiment, the optical mouse 100 enters debug mode when certain conditions are met, and does not enter debug mode when certain conditions are not met. Specific conditions may include: a predetermined key combination, a predetermined key combination and a lift mode, a predetermined key combination and a predetermined trajectory, or a predetermined key combination and receiving power.

[0040] According to the aforementioned embodiments, a debug mode triggering method can be obtained. Figure 6 A flowchart of a debug triggering method according to an embodiment of the present invention is shown, which is applicable to an electronic device including a plurality of buttons, wherein the layout of the buttons corresponds to one of a first button layout and a second button layout. Figure 6 The methods in include:

[0041] Step 601

[0042] Determine whether at least two of the plurality of keys are pressed to achieve a predetermined key combination.

[0043] Step 603

[0044] If at least two of the plurality of keys are pressed to reach a predetermined key combination, the electronic device is controlled to enter a debugging mode.

[0045] Step 605

[0046] The electronic device is controlled to execute a first test corresponding to the first key layout or the electronic device is controlled to execute a second test corresponding to the second key layout to detect whether the electronic device corresponds to the first key layout or the second key layout.

[0047] Other detailed steps have been disclosed in the aforementioned embodiments and will not be repeated here.

[0048] According to the above embodiment, the key layout can be automatically detected, and the optical mouse can enter the debugging mode regardless of the key layout of the optical mouse.

[0049] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.

Claims

1. An electronic device capable of entering a debug mode, characterized in that: include: A plurality of buttons, wherein the layout of the plurality of buttons corresponds to one of a first button layout and a second button layout; as well as a processing circuit that controls the electronic device to enter a debugging mode if at least two of the plurality of buttons are pressed to achieve a predetermined key combination; the debugging mode includes a mode for testing whether the optical mouse has an error, or a mode for calibrating parameters of the optical mouse; The processing circuit controls the electronic device to perform a first test corresponding to the first key layout or controls the electronic device to perform a second test corresponding to the second key layout to detect whether the electronic device corresponds to the first key layout or the second key layout.

2. The electronic device according to claim 1, wherein If at least two of the plurality of buttons are pressed to reach the predetermined button combination and the electronic device is in the lift mode, the processing circuit controls the electronic device to enter the debug mode.

3. The electronic device according to claim 1, wherein: If at least two of the plurality of buttons are pressed to reach the predetermined button combination and the movement of the electronic device in the predetermined time interval follows a predetermined trajectory, the processing circuit controls the electronic device to enter the debugging mode.

4. The electronic device according to claim 1, wherein: If at least two of the plurality of keys are pressed within a predetermined time interval after the electronic device receives power to achieve the predetermined key combination, the processing circuit controls the electronic device to enter the debugging mode.

5. The electronic device according to claim 1, wherein: If at least two of the plurality of buttons are pressed to achieve the predetermined button combination when the electronic device receives power, the processing circuit controls the electronic device to enter the debugging mode.

6. The electronic device according to claim 1, wherein: After at least two of the multiple keys are pressed to reach the predetermined key combination, the processing circuit controls the electronic device to perform a first test, and if the result of the first test is that the multiple keys do not have the first key layout, the processing circuit controls the electronic device to perform the second test.

7. The electronic device according to claim 1, wherein: After at least two of the multiple keys are pressed to reach the predetermined key combination, the processing circuit controls the electronic device to perform a first test, and if the result of the first test is that the multiple keys have the first key layout, the processing circuit does not control the electronic device to perform the second test.

8. The electronic device according to claim 1, wherein: After at least two of the plurality of keys are pressed to reach the predetermined key combination, the processing circuit controls the electronic device to perform the first test and the second test.

9. The electronic device according to claim 1, wherein: The electronic device is an optical navigation device.

10. The electronic device according to claim 9, wherein: The electronic device is an optical mouse.

11. A debug mode triggering method, used in an electronic device comprising a plurality of buttons, characterized in that: include: (a) determining whether at least two of the plurality of keys are pressed to achieve a predetermined key combination, wherein the layout of the plurality of keys corresponds to one of a first key layout and a second key layout; (b) if at least two of the plurality of buttons are pressed to reach the predetermined button combination, controlling the electronic device to enter a debugging mode; the debugging mode includes a mode for testing whether the optical mouse has an error, or a mode for calibrating parameters of the optical mouse; as well as (c) controlling the electronic device to perform a first test corresponding to the first key layout or controlling the electronic device to perform a second test corresponding to the second key layout to detect whether the electronic device corresponds to the first key layout or the second key layout.

12. The debugging mode triggering method according to claim 11, wherein: The step (b) further comprises: If at least two of the plurality of buttons are pressed to reach the predetermined button combination and the electronic device is in the lift mode, the electronic device is controlled to enter the debug mode.

13. The debugging mode triggering method according to claim 11, wherein: The step (b) further comprises: If at least two of the plurality of buttons are pressed to reach the predetermined button combination and the movement of the electronic device in the predetermined time interval follows a predetermined trajectory, the electronic device is controlled to enter the debugging mode.

14. The debugging mode triggering method according to claim 11, wherein: The step (b) further comprises: If at least two of the plurality of buttons are pressed within a predetermined time interval after the electronic device receives power to achieve the predetermined button combination, the electronic device is controlled to enter the debugging mode.

15. The debugging mode triggering method according to claim 11, wherein: The step (b) further comprises: If at least two of the plurality of buttons are pressed to reach the predetermined button combination when the electronic device receives power, the electronic device is controlled to enter the debugging mode.

16. The debugging mode triggering method according to claim 11, wherein: Further including: After at least two of the multiple keys are pressed to reach the predetermined key combination, the electronic device is controlled to perform a first test, and if the result of the first test is that the multiple keys do not have the first key layout, the processing circuit controls the electronic device to perform the second test.

17. The debugging mode triggering method according to claim 11, wherein: Further including: After at least two of the multiple keys are pressed to reach the predetermined key combination, the electronic device is controlled to perform a first test, and if the result of the first test is that the multiple keys have the first key layout, the processing circuit does not control the electronic device to perform the second test.

18. The debug mode triggering method according to claim 11, wherein: Further including: After at least two of the plurality of keys are pressed to reach the predetermined key combination, the electronic device is controlled to perform the first test and the second test.

19. The debugging mode triggering method according to claim 11, wherein: The electronic device is an optical navigation device.

20. The debugging mode triggering method according to claim 19, wherein: The electronic device is an optical mouse.

Citation Information

Patent Citations

  • Correcting circuit for switching mouse into different sensing modes

    CN105589582A

  • Optical mouse and parameter correction method thereof

    CN108664146A