Magnetic abnormality prompting method and device of magnetic axis keyboard, storage medium and program product
By collecting the output signal of the magnetic axis keyboard magnetic sensor and comparing the difference between its design range, the timely prompt and exclusion of the magnetic axis keyboard magnetic abnormalities, solve the function abnormal problems caused by magnetic interference, and improve the user experience.
Patent Information
- Application Number
- CN202411360370.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-24
AI Technical Summary
The magnetic shaft keyboard has abnormal product functions due to magnetic interference, which is difficult for ordinary users to eliminate in time, which affects the user experience.
By collecting the current output signal of the magnetic sensor in the magnetic keyboard, the magnetic induction output design range of the magnetic sensor is determined. If the current output signal is not within the design range, an exception prompt will be performed to help users eliminate magnetic interference or abnormalities by themselves.
It achieves timely prompts and elimination of magnetic abnormalities in magnetic axis keyboards, improves user experience, and avoids functional abnormalities caused by magnetic interference.
Smart Images

Figure CN119356534A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of mechanical keyboards, and in particular to a magnetic anomaly prompting method, device, storage medium and program product for a magnetic axis keyboard. Background Art
[0002] Computers have become an indispensable tool for modern people's work and life, and keyboards are one of the most important input devices for computers. In current magnetic axis keyboards, the magnetic axis is equipped with a dedicated axis plug-in board. After the magnetic axis is installed on the axis plug-in board, it is assembled with the PCB board. The magnetic sensor is pasted on the PCB through SMT, the magnetic axis is inserted into the PCB or fixed on the metal plate, and the magnet is in the magnetic axis and can move up and down.
[0003] However, since magnetic sensors are used to sense the strength of the magnetic field, this type of magnetic axis keyboard will have a problem caused by the application principle: magnetic interference, which will cause product malfunction. If ordinary users do not understand, they will think it is a product problem and cannot eliminate it in time, thus affecting the user experience. Summary of the invention
[0004] The main purpose of this application is to provide a magnetic anomaly prompt method, device, storage medium and program product for a magnetic axis keyboard, aiming to solve the technical problem that the magnetic axis keyboard suffers from magnetic interference, resulting in product malfunction and cannot be eliminated in time, thus affecting the user experience.
[0005] To achieve the above-mentioned purpose, the present application proposes a magnetic anomaly prompt method for a magnetic axis keyboard, the method comprising:
[0006] Collect the current output signal of the magnetic sensor in the magnetic axis keyboard;
[0007] Determining a design range of magnetic induction output of the magnetic sensor in the magnetic axis keyboard;
[0008] If the current output signal is not within the design range, an abnormal prompt is given to the magnetic axis keyboard based on the current output signal.
[0009] In addition, to achieve the above purpose, the present application also proposes a magnetic anomaly prompting device for a magnetic axis keyboard, the device comprising:
[0010] A signal acquisition module is used to collect the current output signal of the magnetic sensor in the magnetic axis keyboard;
[0011] A range determination module, used to determine a design range of magnetic induction output of the magnetic sensor in the magnetic axis keyboard;
[0012] The abnormal prompt module is used to provide an abnormal prompt to the magnetic axis keyboard based on the current output signal if the current output signal is not within the design range.
[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a magnetic axis keyboard, which executes the steps of implementing the magnetic anomaly prompt method of the magnetic axis keyboard as described above.
[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the magnetic anomaly prompt method of the magnetic axis keyboard as described above are implemented.
[0015] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the magnetic anomaly prompt method of the magnetic axis keyboard as described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 A flow chart of the first embodiment of the magnetic anomaly prompt method for the magnetic axis keyboard of the present application;
[0019] Figure 2 This is a schematic diagram of the output of the magnetic sensor provided in Example 1 of the present application;
[0020] Figure 3 A schematic diagram of the design range and abnormal range of the magnetic sensor provided in Example 1 of the present application;
[0021] Figure 4 A schematic diagram of the structure of the magnetic axis keyboard provided in Example 1 of the present application;
[0022] Figure 5 A schematic diagram of an abnormal prompt of a magnetic axis keyboard provided in Example 1 of the present application;
[0023] Figure 6 A schematic diagram of the magnetic axis keyboard provided in Example 1 of the present application returning to normal after eliminating the abnormality;
[0024] Figure 7 A flow chart of the second embodiment of the magnetic anomaly prompt method for the magnetic axis keyboard of the present application;
[0025] Figure 8 This is a schematic diagram of the module structure of the magnetic anomaly prompt device of the magnetic axis keyboard in the embodiment of the present application;
[0026] Fig. 9 It is a schematic diagram of the device structure of the hardware operating environment involved in the magnetic anomaly prompt method of the magnetic axis keyboard in the embodiment of the present application.
[0027] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0028] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0029] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0030] Since magnetic axis keyboards use magnetic sensors to sense the strength of magnetic fields, a problem will arise from the application principle: magnetic interference, which will cause product malfunctions. If ordinary users do not understand, they will think it is a product problem, resulting in complaints or returns. To solve the above problem, this application provides a magnetic anomaly prompt method for a magnetic axis keyboard, which can issue a warning prompt when the magnetic axis keyboard is subject to magnetic interference or magnetic anomalies to help users eliminate magnetic interference or anomalies by themselves.
[0031] It should be noted that the execution subject of this embodiment can be an electronic device with signal acquisition, signal detection and abnormality prompt functions, such as a personal computer, a keyboard, etc., or an electronic device capable of realizing the above functions, a magnetic anomaly prompt device of a magnetic axis keyboard that executes the magnetic anomaly prompt method of the magnetic axis keyboard of the present application (hereinafter referred to as the prompt device), etc., and this embodiment does not limit this. The following takes the prompt device as an example to illustrate this embodiment and the following embodiments.
[0032] Based on this, the embodiment of the present application provides a magnetic anomaly prompt method for a magnetic axis keyboard, referring to Figure 1 , Figure 1 A flow chart of the first embodiment of the magnetic anomaly prompt method for the magnetic axis keyboard of the present application is provided.
[0033] In this embodiment, the magnetic anomaly prompt method of the magnetic axis keyboard includes steps S10 to S30:
[0034] Step S10: collecting the current output signal of the magnetic sensor in the magnetic axis keyboard.
[0035] It should be noted that the magnetic axis keyboard is a mechanical keyboard. In the magnetic axis keyboard, each key has an independent mechanical axis to control the switching action.
[0036] In a magnetic axis keyboard, the magnetic sensor is a component used to detect key actions. When a key is pressed or released, the magnetic sensor senses the change in the magnetic field, converts this change into an electrical signal, and then identifies the key operation status. The magnetic sensor can accurately detect and transmit key signals to achieve the purpose of input.
[0037] It should be noted that the current output signal is the state of the electrical signal generated and transmitted to the outside by the magnetic sensor at the current moment. The current output signal reflects the current operation of the keys of the magnetic axis keyboard, such as whether the key is pressed, the degree of pressing, the duration of pressing, and other information.
[0038] The signal size of the current output signal can be used to determine whether the magnetic axis keyboard is subject to magnetic interference or magnetic anomaly.
[0039] In this embodiment, the prompt device can collect the current output signal of the magnetic sensor of each key in the magnetic axis keyboard in real time, and determine whether the magnetic axis keyboard is subject to magnetic interference or magnetic anomaly based on the signal size of the current output signal.
[0040] Step S20: determining a design range of the magnetic induction output of the magnetic sensor in the magnetic axis keyboard.
[0041] It should be noted that the design range is the parameter range specified for the output characteristics of the magnetic sensor of the key when designing the key of the magnetic axis keyboard. For example, the strength range of the magnetic sensor, the rate range of signal change, etc. The design range can ensure that the magnetic sensor can work stably and accurately.
[0042] For ease of understanding, the following is an example. Figure 2 This is used as an example to illustrate, but it does not limit this solution. Figure 2 This is a schematic diagram of the output of the magnetic sensor provided in Example 1 of the present application. As shown in the figure, the ordinate is the standard output voltage of the magnetic sensor, which is between 0.30V and 3.0V, and the intermediate voltage is 1.65V; the abscissa is the magnetic field range, the unit is B, and it is divided into N pole or S pole.
[0043] The magnetic axis used in the magnetic axis keyboard is generally unipolar, N pole or S pole, and both poles will not be used at the same time, and the magnetic sensor can sense both. When the magnetic sensor is applied to the magnetic axis keyboard, the output of the magnetic induction will only have a part of the output range, refer to Figure 3 , Figure 3 This is a schematic diagram of the design range and abnormal range of the magnetic sensor provided in Example 1 of the present application. Figure 3The figure shows the designed output range when using the S pole. The designed output range is 2 to 2.5V, within which the magnetic sensor works normally in the magnetic axis keyboard; 0.3 to 2V and 2.5 to 3.0V are the abnormal ranges of the magnetic sensor in the magnetic axis keyboard. The prompt device will detect the output voltage of the magnetic sensor in real time during normal operation to know the state of the magnetic sensor.
[0044] Step S30: If the current output signal is not within the design range, an abnormal prompt is given to the magnetic axis keyboard based on the current output signal.
[0045] In this embodiment, the magnetic sensor in the magnetic axis keyboard will be designed with a required signal output range, and this range only accounts for a part of the full range of the magnetic induction output of the magnetic sensor. After determining the design range of the magnetic induction output of the magnetic sensor in the magnetic axis keyboard, if the output range of the current output signal of the magnetic sensor is not within the design range, it is determined that the magnetic axis keyboard is currently experiencing magnetic interference or magnetic anomaly. At this time, an abnormal prompt can be given, such as flashing lights, or the abnormal position can be sent to the computer to show it to the user. In this way, the user can quickly learn that the magnetic axis keyboard has an abnormality to avoid affecting its use.
[0046] In a feasible implementation, step S30 of this embodiment may include the steps of: determining whether the current output signal is within the design range; if the current output signal is not within the design range, determining that the magnet matched with the magnetic sensor has magnetic interference or magnetic anomaly; and controlling the warning light of the magnetic axis keyboard to flash abnormally according to the magnetic interference or magnetic anomaly.
[0047] It should be noted that the magnetic interference situation is the situation where the magnet matched with the magnetic sensor is interfered by the magnetic field of the same polarity or opposite polarity. The magnetic anomaly situation is the situation where the magnet matched with the magnetic sensor is in a weaker magnetic field.
[0048] It should be noted that the warning light is a prompt light of a key in the magnetic axis keyboard, such as an LED light, and this embodiment does not limit this.
[0049] For ease of understanding, refer to Figure 4 , Figure 4 This is a schematic diagram of the structure of the magnetic axis keyboard provided in the first embodiment of the present application. The working mode of the magnetic axis keyboard product is as follows: Figure 4 As shown, the magnetic sensor is pasted on the PCB through SMT (Surface Mount Technology), the magnetic axis is inserted into the PCB or fixed on a metal plate, and the magnet is in the magnetic axis and can move up and down.
[0050] Since the magnet moves within a fixed range, the magnetic sensor can only sense a fixed range of magnetic flux, and the polarity is also fixed; therefore, the output range of the magnetic sensor can only occupy a part of the full range; this part of the output range is defined as the normal range. When the sensor output is outside the normal range, it can only be the following:
[0051] 1: Interference from a stronger magnetic field of the same polarity.
[0052] 2: Affected by opposite polarity interference.
[0053] 3: A weaker magnetic field of the same polarity is sensed, the magnetic axis is missing or not installed properly or the magnetic axis is damaged.
[0054] Among them, situations 1 and 2 are magnetic interference situations, and situation 3 is magnetic anomaly. These situations will affect the normal use of the product.
[0055] In this implementation manner, by determining the magnetic interference situation or the magnetic abnormality situation, the user can eliminate the abnormality of the magnetic axis keyboard by himself.
[0056] In another feasible implementation manner, the step of controlling the warning light of the magnetic axis keyboard to flash abnormally according to the magnetic interference situation or the magnetic abnormality situation described in this embodiment includes: determining the abnormal key of the magnetic axis keyboard according to the current output signal; when the abnormal key is a magnetic interference situation, generating a first flashing signal, and controlling the warning light of the abnormal key to flash according to the first flashing signal; when the abnormal key is a magnetic abnormality situation, generating a second flashing signal, and controlling the warning light of the abnormal key to flash according to the second flashing signal.
[0057] It should be noted that an abnormal key is a key corresponding to the current output signal exceeding the design range. The key is in a magnetic interference or magnetic anomaly state and does not conform to the normal mode state. This means that an abnormal key may have key function failures, abnormal key responses, etc.
[0058] It should be noted that the first flashing signal is a flashing signal generated when the abnormal key is in a magnetic interference situation. For example, when the abnormal key is interfered by a stronger magnetic field of the same polarity or interfered by a different polarity, it can be determined to be in a magnetic interference situation according to the value range of the signal, and the first flashing signal is generated, and the abnormal key flashes according to the first flashing signal, such as a single flash.
[0059] It should be noted that the second flashing signal is a flashing signal generated when the abnormal key is in a magnetic abnormality situation. For example, when the magnetic shaft of the abnormal key is missing or not installed properly or the magnetic shaft is damaged, it can be determined that it is in a magnetic abnormality situation according to the value range of the signal, and the second flashing signal is generated. The abnormal key flashes according to the second flashing signal, such as double flash.
[0060] For ease of understanding, refer to Figure 5 , Figure 5 This is a schematic diagram of an abnormal prompt of a magnetic axis keyboard provided in Example 1 of the present application. As shown in the figure, it is a conventional keyboard, and the key characters include:
[0061] Letters: A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z;
[0062] Numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9;
[0063] Symbols: comma, period, semicolon, colon, question mark, exclamation mark, brackets, addition, subtraction, multiplication, division and other operation symbols, various punctuation marks, etc.;
[0064] Function keys: Esc key, F1 to F12 keys, Ctrl key, Win key, Shift key, Alt key, Enter key, Tab key, CapsLock key, Backspace key, Right Alt key, Right Win key, Right Ctrl key, etc.
[0065] When the G key is an abnormal key, the prompt device can control the G key to display a blue light and flash the light at the same time to remind the user that the magnetic axis keyboard has a magnetic abnormality or magnetic interference. After the user eliminates the abnormality, the magnetic axis keyboard display returns to normal, such as Figure 6 As shown, Figure 6 This is a schematic diagram of the magnetic axis keyboard provided in Example 1 of the present application returning to normal after the abnormality is eliminated, and the G key display returns to normal.
[0066] In this embodiment, when an abnormal key is detected, the abnormal prompt flashes, which makes it convenient for the user to eliminate the abnormality in time.
[0067] In the technical solution provided in this embodiment, the prompt device can collect the current output signal of the magnetic sensor of each key in the magnetic axis keyboard in real time. Since the magnetic sensor in the magnetic axis keyboard will design the required signal output range, this range only accounts for a part of the full range of the magnetic induction output of the magnetic sensor. Then the design range of the magnetic induction output of the magnetic sensor in the magnetic axis keyboard can be determined. After the design range is determined, if the output range of the current output signal of the magnetic sensor is not within the design range, it is determined that the magnetic axis keyboard is currently experiencing magnetic interference or magnetic anomaly. At this time, an abnormal prompt can be made, such as flashing lights, or sending the abnormal position to the computer to show it to the user. In this way, the user can quickly learn that the magnetic axis keyboard has an abnormality, which is convenient for the user to eliminate it by themselves to avoid affecting the use.
[0068] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 7 , Figure 7 A flow chart of the second embodiment of the magnetic anomaly prompt method for the magnetic axis keyboard of the present application.
[0069] After the step of controlling the warning light of the magnetic axis keyboard to flash abnormally according to the magnetic interference situation or the magnetic abnormality situation described in this example, it also includes: determining the key position of the abnormal key corresponding to the current output signal; generating a preset solution strategy for the abnormal key according to the magnetic interference situation or the magnetic abnormality situation; generating a key warning report according to the preset solution strategy and the key position; and sending the key warning report to a computer device connected to the magnetic axis keyboard.
[0070] It should be noted that the preset solution strategy is a pre-set solution for magnetic interference or magnetic anomaly. For example, for magnetic interference, since it is interfered by a stronger magnetic field of the same polarity or opposite polarity, the solution strategy can be set to prompt the user to remove the interference source. For magnetic anomaly, since the magnetic shaft is missing or not installed properly or the magnetic shaft is damaged, the user is prompted to reinstall the abnormal button.
[0071] It should be noted that the key warning report is a report displayed to the user based on the preset solution strategy and key position to help the user eliminate anomalies.
[0072] Specifically, Figure 7 As shown, first determine whether the sensor output is within the design range. If the output is not within the design range, control the location where the abnormality occurs to flash the warning light, and output a warning code report (i.e., a key warning report) to the PC to inform the user of the abnormality and the location of the abnormality.
[0073] In this implementation, the key alarm report can promptly remind the user that the magnetic axis keyboard has an abnormality, and provide a solution to quickly solve the problem.
[0074] Furthermore, if Figure 7 As shown, after the step of sending the key warning report to the computer device connected to the magnetic axis keyboard, this example also includes: monitoring the key signal of the abnormal key according to a preset period; based on the key signal, returning to execute the step of determining whether the current output signal is within the design range, until the key signal is within the design range, determining that the abnormality of the abnormal key is eliminated, and closing the abnormal prompt of the abnormal key.
[0075] It should be noted that the preset period is a pre-set time period for monitoring abnormal key presses, such as 1 minute, 5 minutes, etc., and this embodiment does not impose any limitation on this.
[0076] Specifically, after sending the key warning report to the computer device connected to the magnetic axis keyboard, the prompt device can monitor the key signal of the abnormal key according to the preset period to determine whether the user has eliminated the abnormality. If so, turn off the abnormal warning; if not, return to execute the step of determining whether the current output signal is within the design range until the key signal is within the design range.
[0077] In this implementation manner, by monitoring the abnormal key, the user can be prompted whether the abnormality of the magnetic axis keyboard has been eliminated.
[0078] Furthermore, if Figure 7 As shown, after the step of determining whether the current output signal is within the design range, this example further includes: if the current output signal is within the design range, generating a corresponding key code according to the current output signal.
[0079] It should be noted that the key code is a specific encoding value assigned to each key. When a key on the keyboard is pressed, the key will generate a corresponding key code to achieve triggering or interaction.
[0080] In this implementation manner, if the current output signal is within the design range, indicating that the magnetic axis keyboard is normal, the designed KEY CODE (ie, key code) is output to ensure the normal operation of the magnetic axis keyboard.
[0081] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the magnetic anomaly prompt method of the magnetic axis keyboard of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0082] This application also provides a magnetic anomaly prompt device for a magnetic axis keyboard, please refer to Figure 8 , Figure 8 This is a schematic diagram of the module structure of the magnetic anomaly prompt device of the magnetic axis keyboard of the embodiment of the present application; the magnetic anomaly prompt device of the magnetic axis keyboard includes:
[0083] The signal acquisition module 801 is used to acquire the current output signal of the magnetic sensor in the magnetic axis keyboard;
[0084] A range determination module 802, for determining a design range of a magnetic induction output of the magnetic sensor in the magnetic axis keyboard;
[0085] The abnormality prompt module 803 is used to provide an abnormality prompt to the magnetic axis keyboard based on the current output signal if the current output signal is not within the design range.
[0086] In this embodiment, the abnormal prompt module 803 is also used to determine whether the current output signal is within the design range; if the current output signal is not within the design range, it is determined that the magnet matched with the magnetic sensor has magnetic interference or magnetic anomaly; according to the magnetic interference or magnetic anomaly, the warning light of the magnetic axis keyboard is controlled to flash abnormally.
[0087] Furthermore, the abnormal prompt module 803 is also used to determine the abnormal key of the magnetic axis keyboard according to the current output signal; when the abnormal key is in a magnetic interference situation, a first flashing signal is generated, and the warning light of the abnormal key is controlled to flash according to the first flashing signal; when the abnormal key is in a magnetic abnormality situation, a second flashing signal is generated, and the warning light of the abnormal key is controlled to flash according to the second flashing signal.
[0088] Furthermore, the magnetic anomaly prompt device of the magnetic axis keyboard also includes a warning report module 804, which is used to determine the key position of the abnormal key corresponding to the current output signal; generate a preset solution strategy for the abnormal key according to the magnetic interference situation or the magnetic anomaly situation; generate a key warning report according to the preset solution strategy and the key position; and send the key warning report to a computer device connected to the magnetic axis keyboard.
[0089] Furthermore, the magnetic anomaly prompt device of the magnetic axis keyboard also includes an abnormality elimination module 805, which is used to monitor the key signal of the abnormal key according to a preset period; according to the key signal, return to execute the step of determining whether the current output signal is within the design range until the key signal is within the design range, determine that the abnormality of the abnormal key is eliminated, and turn off the abnormal prompt of the abnormal key.
[0090] Furthermore, the magnetic anomaly prompting device of the magnetic axis keyboard also includes a key code module 806, which is used to generate a corresponding key code according to the current output signal if the current output signal is within the design range.
[0091] Other embodiments or specific implementation methods of the magnetic anomaly prompt device of the magnetic axis keyboard of the present application can refer to the above-mentioned method embodiments and will not be repeated here.
[0092] The magnetic anomaly prompt device for a magnetic axis keyboard provided in the present application adopts the magnetic anomaly prompt method for a magnetic axis keyboard in the above-mentioned embodiment, which can solve the technical problem that the magnetic axis keyboard has abnormal product functions due to magnetic interference and cannot be eliminated in time, thus affecting the user experience. Compared with the prior art, the beneficial effects of the magnetic anomaly prompt device for a magnetic axis keyboard provided in the present application are the same as the beneficial effects of the magnetic anomaly prompt method for a magnetic axis keyboard provided in the above-mentioned embodiment, and the other technical features of the magnetic anomaly prompt device for the magnetic axis keyboard are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0093] The present application provides a magnetic axis keyboard, wherein the magnetic axis keyboard is implemented by a built-in magnetic axis keyboard magnetic anomaly prompt device to implement the steps of the magnetic anomaly prompt method of the magnetic axis keyboard as described above. The magnetic anomaly prompt device of the magnetic axis keyboard comprises: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the magnetic anomaly prompt method of the magnetic axis keyboard in the first embodiment.
[0094] Reference below Fig. 9 , Fig. 9 The device structure diagram of the hardware operating environment involved in the magnetic anomaly prompt method of the magnetic axis keyboard in the embodiment of the present application shows a structural diagram of the magnetic anomaly prompt device of the magnetic axis keyboard suitable for implementing the embodiment of the present application. The magnetic anomaly prompt device of the magnetic axis keyboard in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The magnetic anomaly prompt device of the magnetic axis keyboard shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0095] like Fig. 9As shown, the magnetic anomaly prompt device of the magnetic axis keyboard may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the magnetic anomaly prompt device of the magnetic axis keyboard are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the magnetic anomaly prompt device of the magnetic axis keyboard to communicate wirelessly or wired with other devices to exchange data. Although the magnetic anomaly prompt device of the magnetic axis keyboard with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0096] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0097] The magnetic anomaly prompt device for a magnetic axis keyboard provided in the present application adopts the magnetic anomaly prompt method for a magnetic axis keyboard in the above-mentioned embodiment, which can solve the technical problem that the magnetic axis keyboard has abnormal product functions due to magnetic interference and cannot be eliminated in time, thus affecting the user experience. Compared with the prior art, the beneficial effects of the magnetic anomaly prompt device for a magnetic axis keyboard provided in the present application are the same as the beneficial effects of the magnetic anomaly prompt method for a magnetic axis keyboard provided in the above-mentioned embodiment, and the other technical features of the magnetic anomaly prompt device for a magnetic axis keyboard are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0098] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0099] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0100] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the magnetic anomaly prompt method for the magnetic axis keyboard in the above-mentioned embodiment.
[0101] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0102] The computer-readable storage medium may be included in the magnetic anomaly prompt device of the magnetic axis keyboard; or may exist independently without being assembled into the magnetic anomaly prompt device of the magnetic axis keyboard.
[0103] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the magnetic anomaly prompt device of the magnetic axis keyboard, the magnetic anomaly prompt device of the magnetic axis keyboard: collects the current output signal of the magnetic sensor in the magnetic axis keyboard; determines the design range of the magnetic induction output of the magnetic sensor in the magnetic axis keyboard; if the current output signal is not within the design range, then gives an abnormal prompt to the magnetic axis keyboard based on the current output signal.
[0104] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0105] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0106] The modules involved in the embodiments described in the present application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0107] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the magnetic anomaly prompt method of the magnetic axis keyboard, and can solve the technical problem that the magnetic axis keyboard has abnormal product functions due to magnetic interference and cannot be eliminated in time, thus affecting the user experience. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the magnetic anomaly prompt method of the magnetic axis keyboard provided by the above embodiment, and will not be repeated here.
[0108] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the magnetic anomaly prompt method for a magnetic axis keyboard as described above.
[0109] The computer program product provided by the present application can solve the technical problem that the magnetic axis keyboard, due to the magnetic interference phenomenon, causes product malfunction and cannot be eliminated in time, thus affecting the user experience. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the magnetic anomaly prompt method of the magnetic axis keyboard provided in the above embodiment, which will not be elaborated here.
[0110] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A magnetic anomaly prompt method for a magnetic axis keyboard, characterized in that: The method includes: Collect the current output signal of the magnetic sensor in the magnetic axis keyboard; Determining a design range of magnetic induction output of the magnetic sensor in the magnetic axis keyboard; If the current output signal is not within the design range, an abnormal prompt is given to the magnetic axis keyboard based on the current output signal.
2. The method according to claim 1, characterized in that The step of providing an abnormal prompt to the magnetic axis keyboard based on the current output signal if the current output signal is not within the design range comprises: Determine whether the current output signal is within the design range; If the current output signal is not within the design range, it is determined that the magnet matched with the magnetic sensor has magnetic interference or magnetic anomaly; According to the magnetic interference situation or the magnetic abnormality situation, the warning light of the magnetic axis keyboard is controlled to flash abnormally.
3. The method according to claim 2, characterized in that The step of controlling the warning light of the magnetic axis keyboard to flash abnormally according to the magnetic interference situation or the magnetic abnormality situation comprises: Determine an abnormal key of the magnetic axis keyboard according to the current output signal; When the abnormal key is in a magnetic interference situation, a first flashing signal is generated, and a warning light of the abnormal key is controlled to flash according to the first flashing signal; When the abnormal button is in a magnetic abnormality situation, a second flashing signal is generated, and the warning light of the abnormal button is controlled to flash according to the second flashing signal.
4. The method according to claim 2, characterized in that After the step of controlling the warning light of the magnetic axis keyboard to flash abnormally according to the magnetic interference situation or the magnetic abnormal situation, the method further includes: Determine the key position of the abnormal key corresponding to the current output signal; Generate a preset solution strategy for the abnormal key according to the magnetic interference situation or the magnetic abnormal situation; Generate a key warning report according to the preset solution strategy and the key position; The key-press warning report is sent to a computer device connected to the magnetic axis keyboard.
5. The method according to claim 4, characterized in that After the step of sending the key warning report to a computer device connected to the magnetic axis keyboard, the method further includes: Monitor the key signal of the abnormal key according to a preset period; According to the key signal, return to the step of determining whether the current output signal is within the design range, until the key signal is within the design range, determine that the abnormality of the abnormal key is eliminated, and turn off the abnormal prompt of the abnormal key.
6. The method according to any one of claims 2 to 5, characterized in that After the step of determining whether the current output signal is within the design range, the method further includes: If the current output signal is within the design range, a corresponding key code is generated according to the current output signal.
7. A magnetic anomaly prompting device for a magnetic axis keyboard, characterized in that: The device comprises: A signal acquisition module is used to collect the current output signal of the magnetic sensor in the magnetic axis keyboard; A range determination module, used to determine a design range of magnetic induction output of the magnetic sensor in the magnetic axis keyboard; The abnormal prompt module is used to provide an abnormal prompt to the magnetic axis keyboard based on the current output signal if the current output signal is not within the design range.
8. A magnetic axis keyboard, characterized in that: The magnetic axis keyboard executes the steps of implementing the magnetic anomaly prompting method of the magnetic axis keyboard according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the magnetic anomaly prompt method for a magnetic axis keyboard as described in any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the magnetic anomaly prompting method for a magnetic axis keyboard as claimed in any one of claims 1 to 6 are implemented.