Instruction control system and method based on magnetic axis
By setting multiple programmable trigger point sections on the magnetic axis stroke, combining magnetic field detection and command setting, the problem of single function of existing keyboard keys is solved, and the expansion of multiple command functions is achieved, improving user satisfaction and Convenience of operation.
Patent Information
- Application Number
- CN202411190500.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2024-12-10
AI Technical Summary
The existing keyboard key functions based on Hall principle are limited by a single action and cannot meet the diverse needs of users with high demand for commands.
By setting multiple programmable trigger point segments on the magnetic axis stroke, combining the magnetic field detection unit and the instruction setting unit, different instructions are executed according to the magnetic axis position or angle, and the user can customize and edit the trigger point functions to realize the keys multiple functional extensions.
It improves user satisfaction and operation convenience, breaks through the singularity of traditional button functions, is suitable for a variety of application scenarios, and enhances product flexibility and applicability.
Smart Images

Figure CN119105339A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a command control system and method based on a magnetic axis. Background Art
[0002] The Hall principle is a magnetic field detection technology based on the Hall effect. The Hall effect is that when a charged particle moves in a magnetic field perpendicular to the direction of the current, a voltage perpendicular to the current and magnetic field will be generated. This voltage is the Hall voltage. In the magnetic axis control system, the Hall component can be used to detect changes in the magnetic field to obtain the position and direction information of the magnetic axis.
[0003] At present, keyboards based on the Hall principle have been widely used, but the key functions of this keyboard are limited to a single action, that is, they can only complete a single instruction. For users with high instruction requirements, different keys need to be converted to meet user needs.
[0004] Therefore, how to meet different user needs for the same button, thereby improving user satisfaction, has become an urgent problem to be solved. Summary of the invention
[0005] The embodiment of the present application provides a command control system and method based on a magnetic axis, which meets different needs of users and improves user satisfaction by setting multiple programmable trigger point sections.
[0006] In a first aspect, an embodiment of the present application provides a command control system based on a magnetic axis, the system comprising a magnetic axis and a Hall component, the magnetic axis being a magnetic key axis, the magnetic axis comprising a magnet, the magnet being able to generate magnetic induction lines, the Hall component comprising a magnetic field detection unit, a trigger point setting unit, a function setting unit and a control unit; the magnetic field detection unit being used to detect the position or angle of the magnetic axis; the trigger point setting unit being used to divide the magnetic axis stroke into a plurality of programmable trigger point segments; the command setting unit being used to set different commands according to the plurality of programmable trigger point segments; the control unit being used to connect the magnetic field detection unit and the command setting unit, determining the trigger point segment where the magnetic axis is located according to the position or angle of the magnetic axis; and executing the command corresponding to the trigger point segment according to the trigger point segment where the magnetic axis is located.
[0007] In one possible implementation, the magnetic field detection unit includes: a magnetic sensitive sensor, which is used to convert a magnetic field change signal into an electrical signal; a signal processing module, which is used to preprocess the electrical signal and determine the preprocessed signal, wherein the preprocessing includes signal amplification and filtering, and the preprocessed signal includes the position or angle information of the magnetic axis; a digital conversion module, which is used to convert the preprocessed signal into a digital signal; and a microcontroller module, which is used to receive the digital signal and calculate the position or angle of the magnetic axis.
[0008] In one possible implementation, the trigger point setting unit includes: a magnetic axis stroke division module, used to divide the magnetic axis stroke into multiple programmable trigger point segments, and the multiple programmable trigger point segments respectively correspond to preset magnetic axis positions or angle ranges; a trigger point setting interface, used for the user to set the starting position and end position of the trigger point segment; a trigger point storage module, used to store the starting position and end position set by the user in the internal memory of the microcontrol module; a trigger point comparison module, used to monitor the position or angle of the magnetic axis in real time, and when the position or angle of the magnetic axis is within the trigger point segment, execute the instructions corresponding to the trigger point segment.
[0009] In one possible implementation, the instruction setting unit includes: an instruction database, which presets multiple instructions, and the multiple instructions are used to control the electronic device to execute the functions corresponding to the multiple instructions; an instruction setting interface, which is used for the user to set the required instructions from the instruction database; an instruction logic programming module, which is used for the user to create new instructions and edit the functions corresponding to the new instructions; and an instruction configuration storage module, which is used to store the required instructions set by the user in an internal memory.
[0010] In one possible implementation, the control unit includes: an execution module, used to execute instructions corresponding to the trigger point segment according to the trigger point segment where the magnetic axis is located; a peripheral interface module, used to connect and control external hardware devices, the devices including buttons, motors and LEDs; a voltage management module, used to provide power supply for the system.
[0011] In a possible implementation, the system also includes a monitoring unit; the monitoring unit is used to monitor the combination instruction, the combination instruction including the combination instruction corresponding to the multiple instructions when different magnetic axes simultaneously issue multiple instructions; the monitoring unit executes the function corresponding to the combination instruction based on the combination instruction.
[0012] In a possible implementation, the control unit further includes a scene recognition module; the scene recognition module is used to determine the current scene through sensor data and user behavior operations; based on the current scene, the scene-function mapping formula is used to recommend instructions corresponding to the multiple programmable trigger point segments in the current scene; the scene-function mapping formula is:
[0013] Fni=f(Sj,Ui)
[0014] Among them, Fni represents the instruction of the nth trigger point, Sj represents the jth application scenario, and Ui represents the usage habits of the i-th user.
[0015] In a possible implementation, after recommending the instructions corresponding to the multiple programmable trigger point segments in the current scene based on the current scene through the scene-function mapping formula, the scene recognition module is also used to: obtain the current application scenario of the electronic device, the scenario including a game scenario, a multimedia playback scenario and a smart home scenario; based on the application scenario, match the multiple programmable trigger point segments corresponding to the current application scenario; based on the multiple programmable trigger point segments corresponding to the current application scenario, determine the instructions corresponding to the current application scenario; based on the instructions corresponding to the current application scenario and the position or angle of the magnetic axis, execute the corresponding function.
[0016] In the second aspect, an embodiment of the present application provides a command control method based on a magnetic axis, the method comprising: detecting the position or angle of the magnetic axis; dividing the magnetic axis stroke into a plurality of programmable trigger point segments; setting different instructions according to the plurality of programmable trigger point segments; determining the trigger point segment where the magnetic axis is located according to the position or angle of the magnetic axis, and executing the instruction corresponding to the trigger point segment according to the trigger point segment where the magnetic axis is located.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, comprising a magnetic axis-based command control system as described in the embodiment of the first aspect of the present application.
[0018] Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: by setting a plurality of programmable trigger point sections on the magnetic induction lines on the magnetic axis travel, the trigger point section where the magnetic axis is located is detected by the magnetic field detection unit, and then combined with the corresponding instructions in the section, the electronic device is controlled to execute the instruction. Compared with the prior art, in which there is only one trigger point on the magnetic induction lines on the magnetic axis travel, the present application sets a plurality of trigger points within the magnetic axis layer travel, which meets the user's requirements for multiple instructions for a key, thereby improving user satisfaction. In addition, the present application supports programmable trigger point functions, and users can customize the instructions for each trigger point, and edit the function program for the instruction, execute the function corresponding to the instruction, meet the personalized needs of different users, greatly improve the convenience of operation, and further combine the trigger point function with the current scene. According to the different current scenes, the trigger point section corresponding to the current scene and the instructions corresponding to the trigger point section corresponding to the current scene are automatically converted, which greatly improves the applicability and flexibility of the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 A schematic diagram of the structure of a magnetic axis-based command control system provided in one embodiment of the present application;
[0021] Figure 2 A schematic diagram of the structure of a Hall assembly provided in one embodiment of the present application;
[0022] Figure 3 A schematic diagram of the structure of another magnetic axis-based command control system provided in one embodiment of the present application;
[0023] Figure 4 A flowchart of a magnetic axis-based command control method provided in one embodiment of the present application. DETAILED DESCRIPTION
[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0025] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0026] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0027] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0028] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0029] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0030] The Hall principle is a magnetic field detection technology based on the Hall effect. The Hall effect is that when a charged particle moves in a magnetic field perpendicular to the direction of the current, a voltage perpendicular to the current and magnetic field will be generated. This voltage is the Hall voltage. In the magnetic axis control system, the Hall component can be used to detect changes in the magnetic field, thereby obtaining the position and direction information of the magnetic axis. Specifically: 1. When the magnet rotates, a changing magnetic field will be generated, that is, the change of the magnetic induction line; 2. Arranging several Hall components near the magnet can detect changes in the magnetic field; 3. By analyzing the changes in the magnetic field detected by different Hall components, the precise position and rotation direction of the magnetic axis can be obtained.
[0031] Compared with the Hall principle magnetic axis control method, ordinary button control technology has the following main disadvantages: 1. Mechanical wear and low reliability; 2. Ordinary buttons require physical contact and mechanical pressing. Long-term use will cause mechanical wear of the buttons, low reliability, low accuracy and sensitivity; 3. Function expansion is limited. The functions of ordinary buttons are often limited to a single switching action.
[0032] In view of mechanical wear and low reliability, the buttons designed based on the Hall principle in this application can achieve non-contact control, thereby greatly improving reliability and service life. In view of low accuracy and sensitivity, this application can achieve higher position / angle detection accuracy and sensitivity. In view of limited functional expansion, this application can detect more position / angle information and support richer functional expansion. In addition, this application divides the magnetic axis travel into multiple programmable trigger point sections to meet the personalized needs of different users and greatly improve the convenience of operation.
[0033] For ease of understanding, the technical solution of the present application will be described in detail below with reference to the accompanying drawings.
[0034] Figure 1 This is a schematic diagram of a magnetic axis-based command control system provided in one embodiment of the present application. Figure 1 As shown, the command control system includes 1 magnetic axis and 3 Hall components, and the magnet on the magnetic axis generates magnetic induction lines. In this example, the magnetic axis stroke is divided into 3 areas according to the different intensities of the magnetic induction lines of the magnetic axis at different positions received by the Hall component. Each area has a trigger point, and the interval size of each area can be adjusted. When the magnet on the magnetic axis moves or rotates, that is, the magnetic axis moves or rotates, a change in the magnetic field will occur. The Hall component at the bottom of the magnetic axis determines the position and rotation angle of the magnetic axis according to the change in the magnetic field. When the magnetic axis moves to the trigger point section, the instruction corresponding to the trigger point area is determined, and then the instruction is transmitted to the electronic device, thereby controlling the electronic device to run the instruction in the trigger point section, wherein the instruction corresponding to the trigger point area is programmable, and the editing instruction can be customized according to different needs, and the electronic device is controlled to execute the function corresponding to the instruction according to the instruction.
[0035] For example, Figure 1As shown, the entire travel of the magnetic axis is divided into three programmable trigger point sections; in the prior art, the granularity of the trigger point sections divided by the travel of the magnetic axis is the same. For example, a magnetic axis has three sections, and each time a section is pressed, the key code speed or nature emitted by the magnetic axis is the same. However, in the present application, the entire stroke of the magnetic axis is divided into multiple programmable trigger point sections through software programming management, and the functions corresponding to the instructions of each trigger point section can be defined, for example, trigger point 1 section represents a left click of the mouse; trigger point 2 section represents a right click of the mouse; trigger point 3 section represents a double click of the left button of the mouse, that is, the magnetic axis moves to different sections, and the corresponding functions are also different; similarly, the instructions of each section can also be re-edited for measurement and adjustment; as another example, the present application can also determine the sending speed of the key code according to the magnetic axis reaching different trigger point sections. Specifically, for example, in a shooting game, the shooting corresponding to a certain key code, when the magnetic axis reaches trigger point 1 section, the shooting speed is 1 time / second (once per second), when the magnetic axis reaches trigger point 2 section, the shooting speed is 2 times / second, and when the magnetic axis reaches trigger point 3 section, the shooting speed can be 4 times / second. The lower you press, the faster the shooting frequency of the magnetic axis from trigger point 1 to trigger point 3. Furthermore, the instructions of the trigger point segments can be adjusted by programming the trigger point segments, that is, the shooting speed of each trigger point segment can be adjusted as needed.
[0036] Specifically, the instructions that the user can set or program according to different trigger point intervals may include the following functions: key code output control, backlight brightness control and other function extensions, for example, when the user presses a keyboard key, when the first trigger point is reached, the letter corresponding to the keyboard can be output, and when the second trigger point is reached, the number corresponding to the key can be output; as another example, when the user presses a key for adjusting the backlight measurement, when the first trigger point is reached, the backlight measurement is "weak", when the second trigger point is reached, the backlight measurement is "medium", and when the third trigger point is reached, the backlight brightness is "strong"; as another example, when the user presses a key, when the magnetic induction line of the magnetic axis reaches the first trigger point, the output instruction is "power saving mode", when the second trigger point is reached, the output function is "high efficiency mode", and when the third trigger point is reached, the output function is "shutdown". For different trigger points, this application can edit different functions to meet user needs.
[0037] Figure 2 This is a schematic diagram of the structure of a Hall assembly provided in one embodiment of the present application. Figure 2 As shown, the Hall assembly 200 includes a magnetic field detection unit 210 , a trigger point setting unit 220 , a command setting unit 230 and a control unit 240 .
[0038] In one possible implementation, the magnetic field detection unit 210 is used to detect the position or angle of the magnetic axis; the trigger point setting unit 220 is used to divide the magnetic axis travel into multiple programmable trigger point segments; the instruction setting unit 230 is used to set different instructions according to the multiple programmable trigger point segments, exemplarily including: key code output, backlight brightness adjustment, etc.; the control unit 240 is used to connect the magnetic field detection unit 210 and the instruction setting unit 230, determine the trigger point segment where the magnetic axis is located according to the different magnetic induction line intensities generated by the position or angle of the magnetic axis; and execute the instructions corresponding to the trigger point segment according to the trigger point segment where the magnetic axis is located.
[0039] On the basis of the above-mentioned embodiments, the present embodiment further illustrates and optimizes the technical solution. Specifically, in the present embodiment, the magnetic field detection unit 210 includes: a magnetic sensor for converting a magnetic field change signal into an electrical signal, which may be a Hall effect sensor or a magnetoresistive sensor. When the position or angle of the magnetic axis changes, the magnetic sensor will detect the corresponding magnetic field change; a signal processing module for preprocessing the electrical signal and determining the preprocessed signal. Specifically, the original electrical signal output by the magnetic sensor will be preprocessed by amplification, filtering and the like. The preprocessed signal includes the position or angle information of the magnetic axis; a digital conversion module for converting the preprocessed signal into a digital signal for subsequent analysis. The digital signal contains accurate magnetic axis position or angle information; a microcontroller module for receiving the digital signal, calculating the position or angle of the magnetic axis, and outputting the position or angle information to provide a basis for subsequent function realization.
[0040] Specifically, the working process of the magnetic field detection unit 210 is as follows: when the user operates the magnetic axis, the position or angle of the magnetic induction lines generated by the magnet on the magnetic axis will change, thereby causing changes in the surrounding magnetic field; the magnetic sensor detects this magnetic field change and converts it into a corresponding electrical signal; the signal processing module amplifies, filters, and processes the original electrical signal to improve the signal quality; the digital conversion module converts the processed analog signal into a digital signal; the microcontroller module reads the digital signal, calculates the actual position or angle information of the magnetic axis, and outputs the position or angle information to provide a basis for subsequent function implementation, such as key code output, backlight control, etc.
[0041] On the basis of the above-mentioned embodiments, the present embodiment further illustrates and optimizes the technical solution. In the present embodiment, the trigger point setting unit 220 includes: a magnetic axis stroke division module, which is used to divide the magnetic axis stroke into a plurality of programmable trigger point segments according to the maximum stroke range of the magnetic axis, and the plurality of programmable trigger point segments respectively correspond to the preset magnetic axis positions or angle ranges; a trigger point setting interface, which provides a user-friendly graphical interface, allowing the user to freely set the starting and ending positions of each trigger point segment, and the user can flexibly adjust the size and position of each trigger point segment according to actual needs; a trigger point storage module, which is used to store the starting position and ending position set by the user in an internal memory to ensure that the trigger point setting can be retained and restored after power failure or restart; a trigger point comparison module, which is used to monitor the position or angle of the magnetic axis in real time, and compare it with the pre-set trigger point segment. When the position or angle of the magnetic axis is within the trigger point segment, the instruction corresponding to the trigger point segment is executed.
[0042] Specifically, the working process of the trigger point setting unit 220 is as follows: the user divides the magnetic axis stroke into multiple programmable trigger point segments according to the trigger point setting interface through the magnetic axis stroke division module, and sets the starting and ending positions of each trigger point segment in the magnetic axis stroke; the trigger point setting information is stored in the internal memory of the microcontroller unit; the trigger point comparison module monitors the position or angle of the magnetic axis output by the magnetic field detection unit 210 in real time, and compares it with the preset trigger point segment. Once the magnetic axis enters a certain trigger point segment, the instruction corresponding to the trigger point segment is executed, such as key code output, backlight control, etc.
[0043] On the basis of the above embodiments, the present embodiment further illustrates and optimizes the technical solution. Specifically, in the present embodiment, the instruction setting unit 230 includes: an instruction database, the instruction database presets a plurality of instructions, and the plurality of instructions are used to control the electronic device to execute the functions corresponding to the plurality of instructions, such as key code output, backlight control, sound effect playback, etc. Each instruction has corresponding parameter configuration and logic definition, which is used to implement the function corresponding to the instruction on the device; an instruction setting interface, which provides an intuitive graphical interface for users to select and set the required instruction operations; an instruction logic programming module, which allows users to perform more in-depth programming and logic definition on the selected instructions, so that users can create new instructions and edit the functions corresponding to the new instructions to implement more complex functional operation logic; an instruction configuration storage module, which is used to store the required instructions set by the user in the internal memory to ensure that the functional operation settings can be retained and restored after power failure or restart.
[0044] Specifically, the instruction setting unit 230 has the following working process: the user selects the required instruction from the instruction database through the instruction setting interface, and performs parameter configuration and logic definition on it; further, the user can also further use the instruction logic programming module to write custom codes to implement more complex functional operations; the required instructions set by the user are stored in the instruction configuration storage module; when the trigger point setting unit 220 triggers a certain instruction, the instruction setting unit 230 will read the corresponding instruction operation configuration and execute the corresponding operation logic. The specific execution of these instructions, such as key code output, backlight control, etc., are all completed by the instruction setting unit 230.
[0045] On the basis of the above embodiments, the present embodiment further illustrates and optimizes the technical solution. Specifically, in the present embodiment, the control unit 240 includes: an execution module, which is used to execute instructions corresponding to the trigger point segment according to the trigger point segment where the magnetic axis is located. Exemplarily, the execution module uses a high-performance microcontroller unit as the control core, such as an ARM Cortex-M series chip. The execution module is responsible for parsing and executing various operation instructions from the instruction setting unit 230; a peripheral interface module, which is used to connect and control external hardware devices, and the devices include buttons, motors and LEDs. Exemplarily, the peripheral interface may include common peripheral interfaces such as general-purpose input / output (GPIO) and pulse width modulation interface (PWM); a voltage management module, which is used to provide power supply for the system, including power switch, voltage regulation, battery charging and other functions.
[0046] Specifically, the working process of the control unit 240 is as follows: when the instruction setting unit 230 triggers a certain instruction, the corresponding control instruction will be passed to the execution module of the control unit 240; after receiving the instruction, the execution module will parse the parameters and operation logic therein; the execution module then uses the peripheral interface module to accurately control various external hardware devices to achieve the required functional operations, for example, through feature buttons and multiple trigger point segments corresponding to the buttons, PWM signals are sent to the LED to control the brightness, or specific drive signals are output to the motor; the power management module ensures that the entire system can obtain a stable and reliable power supply when performing various functional operations.
[0047] Figure 3 A schematic diagram of another magnetic axis-based command control system provided in one embodiment of the present application. Figure 3 As shown, based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, the command control system Figure 1On the basis of the command control system shown, a monitoring unit is added, and the monitoring unit is communicatively connected with the Hall component.
[0048] In a possible implementation, the monitoring unit is used to monitor the combination instruction, where the combination instruction includes a combination instruction corresponding to multiple instructions when different magnetic axes simultaneously issue multiple instructions; the monitoring unit executes a function corresponding to the combination instruction based on the combination instruction.
[0049] For example, when there are two or more magnetic axes, different magnetic axis combinations can be combined to achieve certain functions, such as Figure 3 As shown, magnetic axis A is pressed to the first section, and magnetic axis B is pressed to the second section (i.e., magnetic axis A+magnetic axis B), or a hot key is added (i.e., magnetic axis A+hot key). This combination method can realize another combination instruction. For example, the first trigger point section of the single magnetic axis A is to input the letter "A", and the second section of the magnetic axis B is to input the number "2". When the first section of the magnetic axis A and the second section of the magnetic axis B are pressed at the same time, another instruction will be generated, and the other instruction here can be "capture the screen". As another example, the instruction output by pressing the first section of the magnetic axis A and the second section of the magnetic axis B at the same time can be a function switch, or a switch of the entire action instruction library (for example, switching from game A to game B, there is a corresponding magnetic axis control action instruction library in game A, and after certain operations, it switches to the magnetic axis control action instruction library corresponding to B).
[0050] On the basis of the above embodiments, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, the control unit 240 also includes a scene recognition module.
[0051] In a possible implementation, the scene recognition module is used to determine the current scene through sensor data and user behavior operations; based on the current scene, the scene-function mapping formula is used to recommend instructions corresponding to multiple programmable trigger point segments in the current scene; the scene-function mapping formula is:
[0052] Fni=f(Sj,Ui)
[0053] Among them, Fni represents the instruction of the nth trigger point, Sj represents the jth application scenario, and Ui represents the usage habits of the i-th user.
[0054] Specifically, before the user sets the instructions corresponding to the trigger point segments for different scenes, the scene-function mapping formula automatically recommends instructions corresponding to multiple programmable trigger point segments in the current scene to the user based on the user's personal habits, thereby improving the convenience of user operation. After the user edits the instructions for each scene, the scene recognition module automatically calls up the instructions corresponding to the current scene based on the current scene.
[0055] In one possible implementation, after recommending instructions corresponding to multiple programmable trigger point segments in the current scene based on the current scene through the scene-function mapping formula, the scene recognition module is also used to: obtain the application scenario of the current electronic device, the scenarios include game scenes, multimedia playback scenes and smart home scenes; based on the application scenario, match multiple programmable trigger point segments corresponding to the current application scenario; based on the multiple programmable trigger point segments corresponding to the current application scenario, determine the instructions corresponding to the current application scenario; based on the instructions corresponding to the current application scenario and the position or angle of the magnetic axis, execute the corresponding function.
[0056] Specifically, the scene recognition module can automatically determine the current application scenario by analyzing the user's operating behavior, device status and other information. For example, in a game scenario, if the scene recognition module recognizes that the user is playing a shooting game, it will automatically recommend setting a trigger point as a fire button and another trigger point as a jump button, etc., to improve the user experience.
[0057] In the multimedia playback scenario, the scene recognition module will recognize that the user is watching a video, and will recommend setting the trigger points of commonly used keyboard keys to multimedia control functions such as volume adjustment and progress control. In the smart home scenario, the scene recognition module will recognize that the user is using smart home devices, and will recommend setting the trigger points of commonly used keyboard keys to control home functions such as light brightness and air conditioning temperature.
[0058] The intelligent linkage mechanism greatly improves the usability and user experience of the product. Users can obtain the best control solution that fits the current scene without tedious manual settings. As users accumulate usage habits, the recommended results will be continuously optimized to continuously improve the convenience of use.
[0059] The magnetic axis-based command control system provided by the present application supports programmable trigger point functions. Compared with the prior art, users of the present application can customize the instructions of each trigger point section to meet the needs of different users. At the same time, users can break through the limitations of traditional single functions by dividing the magnetic axis stroke into multiple programmable trigger point sections, and support users to customize the functions of trigger points in different scenarios, such as game operation, multimedia control, smart home control, etc., which greatly improves the applicability and flexibility of the product. The magnetic axis control system of the present application can automatically convert the user's operating requirements according to different application scenarios, and intelligently recommend appropriate trigger point function settings, which improves the convenience of user operation. After setting the trigger point section and instructions for the first time, the user can also dynamically adjust the functions of each trigger point during use. The system will provide intelligent suggestions based on the user's usage habits to help users quickly optimize the trigger point settings and continuously improve the user experience. The magnetic axis control system of the present application can be linked with other smart devices. For example, the trigger point function is linked with smart home devices, so that users can achieve centralized management of home devices through magnetic axis control. This cross-device functional linkage further expands the application scenarios of the product. Visualization of trigger point functions To enhance the user's perception of the trigger point functions, the magnetic axis-based command control system of the present application can intuitively feedback the functional status of the current trigger point through backlight brightness changes, GUI interface display, etc. Intuitive visual feedback greatly improves the convenience of operation and the overall user experience.
[0060] Understandably, Figure 1 , Figure 2 , Figure 3 The system architecture shown is only an example of a magnetic axis-based command control system provided by the present application. In other embodiments of the present application, the magnetic axis-based command control system may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware, which is not limited in the present application.
[0061] Figure 4 The following is a flow chart of a magnetic axis-based command control method provided by an embodiment of the present application. Figure 4 As shown, the method at least includes S401 to S404. Specifically, the method can be Figure 2 The magnetic field detection unit 210 , the trigger point setting unit 220 , the instruction setting unit 230 and the control unit 240 in the Hall component 200 are executed.
[0062] S401, detecting the position or angle of the magnetic axis.
[0063] As an example, the magnetic field detection unit 210 is used to detect the position or angle of the magnetic axis.
[0064] S402, dividing the magnetic axis travel into a plurality of programmable trigger point sections.
[0065] As an example, the trigger point setting unit 220 is used to divide the magnetic axis into a plurality of programmable trigger point sections.
[0066] S403, setting different instructions according to a plurality of programmable trigger point segments.
[0067] As an example, the instruction setting unit 230 is used to set different instructions according to a plurality of programmable trigger point segments, and examples thereof may include: key code output, backlight brightness adjustment, etc.
[0068] S404, determining the trigger point segment where the magnetic axis is located according to the position or angle of the magnetic axis, and executing instructions corresponding to the trigger point segment according to the trigger point segment where the magnetic axis is located.
[0069] As an example, the control unit 240 is used to connect the magnetic field detection unit 210 and the instruction setting unit 230, determine the trigger point segment where the magnetic axis is located according to the position or angle of the magnetic axis; and execute the instruction corresponding to the trigger point segment according to the trigger point segment where the magnetic axis is located.
[0070] The present application detects the position or angle of the magnetic axis; divides the magnetic axis into multiple programmable trigger point sections; sets different instructions according to the multiple programmable trigger point sections; determines the trigger point section where the magnetic axis is located according to the position or angle of the magnetic axis, and executes the instructions corresponding to the trigger point section according to the trigger point section where the magnetic axis is located. Compared with the prior art, where the magnetic axis has only one trigger point, the present application sets multiple trigger points within the magnetic axis layer travel, which meets the user's requirements for multiple instructions for one button, thereby improving user satisfaction.
[0071] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0072] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0073] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A command control system based on a magnetic axis, characterized in that: The system includes a magnetic shaft and a Hall component. The magnetic shaft is a magnetic key shaft. The magnetic shaft includes a magnet. The magnet generates magnetic induction lines. The Hall component includes a magnetic field detection unit, a trigger point setting unit, an instruction setting unit and a control unit. The magnetic field detection unit is used to detect the position or angle of the magnetic axis; The trigger point setting unit is used to divide the magnetic axis travel into a plurality of programmable trigger point sections; The instruction setting unit is used to set different instructions according to the plurality of programmable trigger point sections; The control unit is used to connect the magnetic field detection unit and the instruction setting unit, determine the trigger point segment where the magnetic axis is located according to the position or angle of the magnetic axis, and execute the instruction corresponding to the trigger point segment according to the trigger point segment where the magnetic axis is located.
2. The system according to claim 1, characterized in that The magnetic field detection unit comprises: Magnetic sensor, used to convert magnetic field change signal into electrical signal; A signal processing module, used for preprocessing the electrical signal to determine a processed signal, wherein the preprocessing includes signal amplification and filtering, and the preprocessed signal includes position or angle information of the magnetic axis; A digital conversion module, used for converting the preprocessed signal into a digital signal; The microcontroller module is used to receive the digital signal and calculate the position or angle of the magnetic axis.
3. The system according to claim 1, characterized in that The trigger point setting unit comprises: A magnetic axis travel division module, used for dividing the magnetic axis travel into a plurality of programmable trigger point sections, wherein the plurality of programmable trigger point sections respectively correspond to preset magnetic axis positions or angle ranges; A trigger point setting interface is used for the user to set the starting position and the ending position of the trigger point section; A trigger point storage module, used for storing the start position and the end position set by the user in an internal memory; The trigger point comparison module is used to monitor the position or angle of the magnetic axis in real time, and when the position or angle of the magnetic axis is within the trigger point section, execute the instruction corresponding to the trigger point section.
4. The system according to claim 1, characterized in that The instruction setting unit comprises: An instruction database, wherein the instruction database is pre-set with multiple instructions, and the multiple instructions are used to control the electronic device to execute the functions corresponding to the multiple instructions; An instruction setting interface, used for a user to set a desired instruction from the instruction database; The instruction logic programming module is used for users to create new instructions and edit the functions corresponding to the new instructions; The instruction configuration storage module is used to store the required instructions set by the user in the internal memory.
5. The system according to claim 1, characterized in that The control unit comprises: An execution module, used for executing instructions corresponding to the trigger point section according to the trigger point section where the magnetic axis is located; A peripheral interface module, used to connect and control external hardware devices, including buttons, motors and LEDs; The voltage management module is used to provide power supply for the system.
6. The system according to claim 1, characterized in that The system further comprises a monitoring unit; The monitoring unit is used to monitor the combined instruction, wherein the combined instruction includes the combined instruction corresponding to the multiple instructions when different magnetic axes simultaneously issue multiple instructions; The monitoring unit executes a function corresponding to the combined instruction based on the combined instruction.
7. The system according to claim 6, characterized in that The control unit also includes a scene recognition module; The scene recognition module is used to determine the current scene through sensor data and user behavior operations; Based on the current scene, through the scene-function mapping formula, recommend instructions corresponding to the multiple programmable trigger point segments in the current scene; The scenario-function mapping formula is: Fni=f(Sj,Ui) Among them, Fni represents the instruction of the nth trigger point, Sj represents the jth application scenario, and Ui represents the usage habits of the i-th user.
8. The system according to claim 7, characterized in that After recommending the instructions corresponding to the plurality of programmable trigger point segments in the current scene through the scene-function mapping formula based on the current scene, the scene recognition module is further used to: Acquire application scenarios of the current electronic device, where the application scenarios include game scenarios, multimedia playback scenarios, and smart home scenarios; Based on the application scenario, matching the plurality of programmable trigger point segments corresponding to the current application scenario; Determining, based on the plurality of programmable trigger point segments corresponding to the current application scenario, an instruction corresponding to the current application scenario; Based on the instructions corresponding to the current application scenario and the position or angle of the magnetic axis, the corresponding function is executed.
9. A command control method based on a magnetic axis, characterized in that: The method comprises: Detect the position or angle of the magnetic axis; Dividing the magnetic axis travel into a plurality of programmable trigger point sections; Setting different instructions according to the plurality of programmable trigger point segments; According to the position or angle of the magnetic axis, the trigger point segment where the magnetic axis is located is determined, and according to the trigger point segment where the magnetic axis is located, the instruction corresponding to the trigger point segment is executed.
10. An electronic device, characterized in that: A system comprising any one of claims 1 to 8.
