CN110825241A - Working method of magnetic power keyboard, computer device and computer readable storage medium - Google Patents

Working method of magnetic power keyboard, computer device and computer readable storage medium Download PDF

Info

Publication number
CN110825241A
CN110825241A CN201911102970.1A CN201911102970A CN110825241A CN 110825241 A CN110825241 A CN 110825241A CN 201911102970 A CN201911102970 A CN 201911102970A CN 110825241 A CN110825241 A CN 110825241A
Authority
CN
China
Prior art keywords
magnetic flux
flux data
hall device
magnet
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911102970.1A
Other languages
Chinese (zh)
Other versions
CN110825241B (en
Inventor
江耿平
林颀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Learning Electronic Technology Co Ltd
Zhuhai Hoksi Technology Co Ltd
Original Assignee
Zhuhai Learning Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Learning Electronic Technology Co Ltd filed Critical Zhuhai Learning Electronic Technology Co Ltd
Priority to CN201911102970.1A priority Critical patent/CN110825241B/en
Publication of CN110825241A publication Critical patent/CN110825241A/en
Priority to PCT/CN2020/128026 priority patent/WO2021093757A1/en
Application granted granted Critical
Publication of CN110825241B publication Critical patent/CN110825241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0202Constructional details or processes of manufacture of the input device
    • G06F3/0219Special purpose keyboards
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/51Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used
    • H03K17/90Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used by the use, as active elements, of galvano-magnetic devices, e.g. Hall-effect devices
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/9618Touch switches using a plurality of detectors, e.g. keyboard

Abstract

The invention provides a working method of a magnetic power keyboard, a computer device and a computer readable storage medium, wherein the working method of the magnetic power keyboard comprises the steps of obtaining threshold magnetic flux data corresponding to each Hall device; acquiring real-time magnetic flux data corresponding to each Hall device; and judging whether real-time magnetic flux data exceeding the threshold magnetic flux data exist or not, and if so, determining that the magnet matched with the Hall device corresponding to the real-time magnetic flux data exceeding the threshold magnetic flux data is in a keying-in state. The processor of the computer device executes the computer program stored in the memory to realize the working method of the magnetic power keyboard, and the computer program stored in the computer readable storage medium can realize the working method of the magnetic power keyboard when being executed. The method is suitable for the magnetic power keyboard with the function of self-defining the physical positions of the keys, and the misjudgment of the current operation state of the keys is avoided.

Description

Working method of magnetic power keyboard, computer device and computer readable storage medium
Technical Field
The invention relates to the technical field of keyboards, in particular to a working method of a magnetic power keyboard.
Background
The existing magnetic power keyboard comprises a keyboard base and a key group, wherein a plurality of Hall devices are arranged on the keyboard base, the key group comprises a plurality of types of keys with different sizes, and in the length direction of the keyboard base, for example, the size ratio of an English letter ' A ' key is L, the size ratio of a ' Ctrl ' key is 1.25L, and the size ratio of an ENTER ' key is 2.25L.
All install the magnet in every button, magnet and hall device one-to-one induction fit, for guaranteeing that hall device is located the magnet under, a plurality of hall devices have not unidimensional button according to the size adaptation of button on keyboard chassis length direction, and a plurality of hall device intervals are inequality ground, are arranged on the keyboard base in a mixed and disorderly manner.
The conventional magnetic power keyboard has the problem that after a user carries out self-defined arrangement on the physical positions of keys on the keyboard, the working method of the conventional magnetic power keyboard is not suitable for the magnetic power keyboard with the self-defined key positions.
Disclosure of Invention
The invention aims to provide a working method of a magnetic power keyboard suitable for self-defining of key positions.
The second purpose of the invention is to provide a computer device capable of realizing the working method of the magnetic power keyboard.
A third object of the present invention is to provide a computer readable storage medium that can implement the operation method of a magnetomotive keyboard.
The working method of the magnetomotive keyboard provided by the first object of the invention comprises the steps of obtaining threshold magnetic flux data corresponding to each Hall device; acquiring real-time magnetic flux data corresponding to each Hall device; and judging whether real-time magnetic flux data exceeding the threshold magnetic flux data exist or not, and if so, determining that the magnet matched with the Hall device corresponding to the real-time magnetic flux data exceeding the threshold magnetic flux data is in a keying-in state.
According to the scheme, after the user defines the physical position of the key, part of the magnets are not positioned right above the Hall devices, the basic magnetic flux data of each Hall device are different, and the corresponding threshold magnetic flux data are also different, so that the threshold magnetic flux data which correspond to each Hall device independently need to be calculated and determined according to the basic magnetic flux data of each Hall device, or the threshold magnetic flux data are determined according to the pressing depth of the key when the user debugs the software, so that whether the key is pressed to a key-in state or not is judged.
The method comprises the following steps of judging whether real-time magnetic flux data exceeding threshold magnetic flux data exist or not, if so, determining that the magnet matched with the Hall device corresponding to the real-time magnetic flux data exceeding the threshold magnetic flux data is in a key-in state, judging whether real-time magnetic flux data corresponding to any Hall device matched with the magnet exceeds the threshold magnetic flux data or not, and if so, determining that the magnet is in the key-in state.
Therefore, when the Hall device is only in induction fit with one magnet, whether the magnet is in the keying state can be known by judging whether the real-time magnetic flux data corresponding to the Hall device exceeds the threshold magnetic flux data.
The method comprises the steps of judging whether real-time magnetic flux data exceeding threshold magnetic flux data exist or not, if yes, determining that the magnet matched with the Hall device corresponding to the real-time magnetic flux data exceeding the threshold magnetic flux data is in a key-in state, judging whether the real-time magnetic flux data corresponding to all the Hall devices matched with the magnet exceed the threshold magnetic flux data or not, and if yes, determining that the magnet is in the key-in state.
As can be seen from the above, when one hall device is in inductive engagement with two magnets, if the current state of one magnet needs to be determined, in order to avoid erroneous determination, the determination should be made according to the real-time magnetic flux data of all hall devices of the magnet.
The method comprises the following steps of obtaining threshold magnetic flux data corresponding to each Hall device, wherein the basic magnetic flux data corresponding to each Hall device are obtained; threshold magnetic flux data corresponding to each Hall device is generated according to the plurality of basic magnetic flux data.
From the above, the threshold magnetic flux data of each hall device is determined by the pre-stored calculation formula and the acquired each basic magnetic flux data.
The method comprises the following steps of obtaining threshold magnetic flux data corresponding to each Hall device, wherein the basic magnetic flux data corresponding to each Hall device are obtained; acquiring debugging magnetic flux data corresponding to one Hall device, and generating pressing depth data of a magnet matched with the Hall device according to the basic magnetic flux data and the debugging magnetic flux data; threshold magnetic flux data corresponding to each Hall device is generated according to the pressing depth data and the plurality of basic magnetic flux data.
Therefore, a user can press any key in a software debugging mode, the system determines debugging magnetic flux data of the lowest point of key pressing as threshold magnetic flux data of the key, calculates pressing depth data according to magnetic flux change data, and calculates threshold magnetic flux data corresponding to each Hall device by combining basic magnetic flux data of other Hall devices, so that the effective keying pressing depth of each key is kept consistent.
The further scheme is that the step of acquiring debugging magnetic flux data corresponding to a Hall device and generating pressing depth data of a magnet matched with the Hall device according to the basic magnetic flux data and the debugging magnetic flux data comprises the following steps: the method comprises the steps of obtaining at least two debugging magnetic flux data corresponding to one Hall device, and generating pressing depth data of a magnet matched with the Hall device according to the basic magnetic flux data and the debugging magnetic flux data.
Therefore, a user can continuously press any key for multiple times in the software debugging mode to obtain multiple debugging magnetic flux data, and the effective typing pressing depth more fitting the use habits of the user is obtained by combining the multiple debugging magnetic flux data.
The method further comprises the step of executing a keying instruction corresponding to the magnet after determining that the magnet matched with the Hall device corresponding to the real-time magnetic flux data exceeding the threshold magnetic flux data is in a keying state.
The method further comprises the step of determining a keying instruction corresponding to each magnet according to the acquired interaction data before acquiring the real-time magnetic flux data corresponding to each Hall device.
A second object of the present invention is to provide a computer device including a processor, wherein the processor is configured to implement the operation method of the magnetic power keyboard when executing a computer program stored in a memory.
A third object of the present invention is to provide a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the working method of the magnetic power keyboard.
Drawings
Fig. 1 is a schematic structural diagram of a hidden key set according to a first embodiment of the magnetomotive keyboard of the present invention.
Fig. 2 is a partial schematic view of a hall device row and a first snap structure row in a first embodiment of a magnetomotive keyboard of the present invention.
Fig. 3 is a schematic diagram of a plurality of keys in a key set according to a first embodiment of the magnetomotive keyboard of the invention.
Fig. 4 is a schematic structural diagram of a first type of key in a key group in a first embodiment of a magnetomotive keyboard according to the invention.
Fig. 5 is a schematic structural diagram of a second type of keys in a key set in the first embodiment of the magnetomotive keyboard of the invention.
FIG. 6 is a diagram of a relationship between a key and a first latch structure of a first embodiment of a magnetic power keyboard according to the present invention.
FIG. 7 is a diagram of a first coordination relationship among Hall devices, Hall devices and keys in a first embodiment of a magnetomotive keyboard of the present invention.
FIG. 8 is a diagram of a second relationship among the Hall device, the Hall device and the key according to the first embodiment of the magnetomotive keyboard of the present invention.
FIG. 9 is a diagram showing the relationship between the first type of key and the Hall device in the first embodiment of the magnetic power keyboard according to the present invention.
FIG. 10 is a diagram showing the relationship between the second type of key and the Hall device in the first embodiment of the magnetic power keyboard.
FIG. 11 is a diagram showing the relationship between the rows of the keys and the rows of the Hall devices in the first embodiment of the operation method of the magnetomotive keyboard of the present invention.
FIG. 12 is a block diagram illustrating a flow chart of a first embodiment of a method for operating a magnetomotive keyboard in accordance with the present invention.
FIG. 13 is a diagram of the relationship between the rows of the keys and the rows of the Hall devices in a second embodiment of the magnetomotive keypad of the present invention.
FIG. 14 is a block diagram of the second embodiment of the magnetic power keyboard of the present invention.
Fig. 15 is a diagram illustrating a relationship between keys in a key set and a first fastening structure in a magnetic power keyboard according to a third embodiment of the present invention.
Detailed Description
First embodiment of magnetomotive keyboard
Referring to fig. 1, fig. 1 is a schematic structural diagram of a hidden key group of a first embodiment of a magnetomotive keyboard according to the invention. In the present embodiment, a magnetic power keyboard without a numeric keypad is provided, on a keyboard base 100 of the present embodiment, hall device rows 1 and a first snap structure row 2 are arranged in a main keyboard area 101, the main keyboard area 101 needs to be provided with five key rows, correspondingly, the keyboard base 100 is provided with five hall device rows 1 on the main keyboard area 101, and each hall device row 1 has 15 hall devices 11 arranged at equal distances in an x-axis direction; 60 first snap structures 21 arranged at equal distances in the x-axis direction are arranged in the first snap structure row 2, and every four first snap structures 21 on the first snap structure row 2 are matched with one hall device 11. And in the x-axis direction, two opposite sides of each hall device row 1 are provided with a first buckle structure row 2.
Referring to fig. 2, fig. 2 is a partial schematic view of a hall device row and a first snap structure row in a first embodiment of the magnetomotive keyboard of the present invention. In the hall device row 1, the centers of any two adjacent hall devices 11 have a distance d3 therebetween, correspondingly, in the first snap structure row 2, the distance d4 between any two adjacent first snap structures 21 is 0.25 × d3, and in the y-axis direction, four first snap structures 21 matching the hall devices 11 are symmetrically arranged on opposite sides of the hall devices 11.
Referring to fig. 3, fig. 3 is a schematic diagram of a plurality of keys in a key set in a first embodiment of a magnetic power keyboard according to the present invention. The magnetomotive force keyboard comprises a key set 9 detachably mounted on a keyboard base 100, the key set 9 comprising a plurality of types of keys having different lengths in the x-axis direction, the plurality of types of keys being based on a reference dimension d 1. The key group 9 includes keys 91, the keys 91 are keys of a first type, such as keys corresponding to the letter "a", and have a length L1 in the x-axis direction, and L1 ═ d 1; the key group 9 further includes keys 92, where the keys 92 are keys of a second type, such as "Ctrl" corresponding keys, which have a length L2 in the x-axis direction, and L2 is 1.25 × d 1; the key group 9 further includes keys 93, where the key 93 is a third type of key, such as a "Tab" corresponding key, and has a length L3 in the x-axis direction, and L3 is 1.5 × d 1; the key group 9 further includes keys 94, and the keys 94 are keys of a fourth type, such as "Caps" corresponding keys, which have a length L4 in the x-axis direction, and L4 is 1.75 × d 1; key group 9 further includes keys 95, where key 95 is a fifth type of key, such as an "ENTER" corresponding key, having a length L5 in the x-axis direction, and L5 is 2.25 × d 1; the key group 9 further includes keys 96, and the key 96 is a sixth type key, such as a "Shift" corresponding key, which has a length L6 in the x-axis direction, and L6 is 2.75 × d 1; the key group 9 further includes keys 97, and the key 97 is a seventh type key, such as a "Space" corresponding key, which has a length L7 in the x-axis direction, and L7 is 6.25 × d 1.
Of course, since the keys are mounted on the keyboard with certain intervals to ensure that the use of the keys is not affected by the interference of adjacent keys, the length of each key in the x-axis direction should include the size of the key entity and the amount of the gap reserved on both sides in the x-axis direction; in addition, the keyboard group 9 includes other types of keys having different sizes in the x-axis direction in addition to the seven types of keys, and as can be seen from the seven types of keys, the sizes among the plurality of types of keys are designed with the length L1 of the first type of key as a design reference and with 0.25L1 as length increments, that is, the length L0 of each type of key is (1+ n × 0.25) d1, d1 is greater than 0, and n is an integer equal to or greater than 0. The distance d3 between two adjacent hall devices 11 is d 1.
With reference to fig. 2 to 5, fig. 4 is a schematic structural diagram of a first type of key in a key set according to a first embodiment of the magnetic power keyboard of the present invention, and fig. 5 is a schematic structural diagram of a second type of key in the key set according to the first embodiment of the magnetic power keyboard of the present invention. In the keyboard group 9, each type of key is provided with four second buckle structures, and the middle part of the key is provided with a magnet.
Like the first type of key, in the view shown in fig. 4, a magnet 911 and four second snap structures 912 arranged in a rectangular arrangement are arranged on the key 91, the center of the magnet 911 coincides with the center of the key 91, and the centers of the four second snap structures 912 coincide with the center of the key 91; in the x-axis direction, the distance d5 between the two second snap structures 912 is 3 × d4, and in the y-axis direction, the distance between the two second snap structures 912 is equal to the distance between the two first snap structures 2 located on both sides of the hall device row 1.
As another example of the second type of key, in the view shown in fig. 5, the key 92 is provided with a magnet 921 and four second snap structures 922 arranged along a rectangular arrangement, the centers of the four second snap structures 922 coincide with the center of the key 92, and in the x-axis direction, the distance d6 between two second snap structures 912 is 4 × d 4.
Therefore, the length L0 of the key is (1+ n × 0.25) d1, and the distance d0 between the two second snap structures 912 in the x-axis direction is L0-0.25 × d1, so that the four second snap structures located at the bottom of the key are located at the outer edge of the key as much as possible, and the key is more stably mounted.
Referring to fig. 6, fig. 6 is a diagram of a matching relationship between a key and a first buckle structure in a first embodiment of the magnetic power keyboard of the present invention. Taking the key 91 as an example, the key 91 includes a key shaft structure, a key cap 915 and a shaft base 916, the key shaft structure includes a fixed base 913 and a movable shaft 914 capable of elastically sliding up and down along the z-axis direction, the key cap 915 is fixedly mounted on the movable shaft 914 to form a movable portion, and the shaft base 916 is mounted on the bottom of the fixed base 913 in a clamping or bolt-locking manner to form a fixed portion.
The magnet 911 is a magnetic ring, and the magnet 911 is sleeved on the periphery of the connecting column in the keycap 915; the second snap structure 912 is a snap projection protruding downward from the lower end surface of the shaft base 916, and the extended end of the snap projection has a diameter-increased part; the keyboard base 100 is provided with a long groove 202 extending along the x direction, a wall 203 protruding from the bottom surface of the groove is arranged in the long groove 202, and the first fastening structure 21 is formed at a fastening concave position between the two wall 203, and the entrance of the fastening concave position is narrowed. When the key 91 is mounted, the key 91 is only pressed downward, and the second fastening structure 912 (fastening protrusion) enters the first fastening structure 21 (fastening concave position), so as to complete the detachable mounting between the key 91 and the keyboard base 100.
With reference to fig. 6 and 7, fig. 7 is a diagram illustrating a first cooperation relationship among the hall device, and the key according to the first embodiment of the magnetomotive keypad of the present invention. When the key 91 (the first type key) is mounted on the keyboard base 100, after the four second snap structures 912 at the bottom of the key 91 and the four first snap structures 21 uniformly arranged around one hall device 11 are respectively matched, in the x-axis direction, the distance d2 between the center of the magnet 911 and the center of the hall device 11 is equal to 0.
A key 92 (a second type of key) is mounted adjacent to the key 91, and after four second snap structures 922 located at the bottom of the key 92 are matched with four first snap structures 21, a distance d3 between the magnet 921 and the nearest hall device 11 in the x-axis direction is 0.125 × d 1. When two keys 91 (first-type keys) are mounted at adjacent positions, the magnets 911 of the two keys 91 are each located directly above one hall device 11, and therefore, the minimum value of the distance d1 between the two adjacent magnets is the distance d3 between the two adjacent hall devices 11, and otherwise, the distance d2 between the two adjacent magnets is (1+ n × 0.125) d 1.
Referring to fig. 8, fig. 8 is a second matching relationship diagram of the hall device, the hall device and the key in the first embodiment of the magnetomotive force keyboard of the invention. If a key 98 (eighth type of key) is snap-fitted at the beginning of the left side of the first snap structure row 2 on the keyboard base 100 (shown in fig. 1), the length of the key 98 in the x-axis direction is twice the length of the first type of key, that is, the length L8 of the key 98 is 2 × d1, at this time, the two hall devices 11 are symmetrically located at two opposite sides of the magnet 981 on the key 98, that is, in the x-axis direction, the distance d3 between the center of the magnet 981 and the centers of the two hall devices 11 is 0.5 × d 1.
It follows that, when the magnet is not located directly above the hall device 11, the distance d3 between the magnet and the nearest hall device 11 is n × 0.125 × d1, 1 ≦ n ≦ 4, n being an integer.
As shown in fig. 8, the hall devices 11 can acquire magnetic flux data when they are located in the magnetic field of the magnet, and when the magnet 981 is located at the symmetrical center of two adjacent hall devices 11, there is a farthest distance d between the magnet 981 and any one of the hall devices 11 on both sides in the x-axis directionmaxTo ensure that the magnet 981 farthest from the hall devices 11 can be inductively coupled to the hall devices 11, the magnetic field range of the magnet 981 in the x-axis direction should be larger than the nearest distance between two adjacent hall devices 11, which is 0.5 × d 1.
Fig. 9 and 10, fig. 9 is a diagram showing a fitting relationship between a first type of key and a hall device in a first embodiment of a magnetic power keyboard of the present invention, and fig. 10 is a diagram showing a fitting relationship between a second type of key and a hall device in a first embodiment of a magnetic power keyboard of the present invention. The magnet 911 of the key 91 (first type key) is positioned right above the first hall device 11, and at this time, the second hall device 11 cannot sense the magnet 911; referring to fig. 10, the center of the magnet 921 of the key 92 (second type key) is offset from the first hall device 11 toward the second hall device 11, and the second hall device 11 is located in the magnetic field of the magnet 921, so that both hall devices 11 can sense the magnet 921.
Of course, the closer a magnet is to a hall device 11, the greater the magnetic flux that the hall device 11 acquires. Referring to fig. 9, when the key 91 is in the non-pressed state a, the hall device 11 detects a magnetic flux of 50Wb, and when the key 91 is in the pressed state b, the hall device 11 detects a magnetic flux of 80 Wb; referring to fig. 10, when the key 92 is in the non-pressed state a, the magnetic flux detected by the first hall device 11 is 45Wb, and the magnetic flux detected by the second hall device 11 is 10 Wb; when the push button 92 is in the pressed state b, the first hall device 11 detects a magnetic flux of 70Wb, and the second hall device 11 detects a magnetic flux of 25 Wb.
Therefore, a user can detachably install the keys on the keyboard base at suitable positions according to the use habit, and the user can complete the self-arrangement of the keys on the keyboard and the self-definition of the key instructions by customizing the key-in instructions of the keys in software, so that a keyboard meeting the self-demand is formed, the modularized keyboard can be produced in batch, and the production cost is effectively reduced.
First embodiment of working method of magnetic power keyboard
Referring to fig. 11 and 12, fig. 11 is a diagram illustrating a relationship between a key row and a hall device row in a first embodiment of an operating method of a magnetomotive keypad according to the present invention, and fig. 12 is a block diagram illustrating a flow of the first embodiment of the operating method of the magnetomotive keypad according to the present invention. The present embodiment is applied to the first embodiment of the magnetomotive force keyboard. The working method of the magnetic power keyboard is illustrated by the matching of one Hall device row and one key row, wherein a base of the keyboard is provided with Hall devices 11a, 11b, 11c, 11d, 11e, 11f and four other Hall devices 11 which are arranged in sequence at equal intervals in the x-axis direction; the key row comprises a first third type key, seven first type keys and a second third type key which are sequentially arranged on the keyboard base in the x-axis direction.
In the x-axis direction, the first third-type key and the four first-type keys behind the first third-type key respectively have a magnet 931, a magnet 911a, a magnet 911b, a magnet 911c and a magnet 911d, and since the length of the third-type key in the x-axis direction is 1.5 times that of the first-type key, under the influence of the installation position of the first third-type key, the magnet 931 is located between the hall device 11a and the hall device 11b and close to the hall device 11a, the magnet 911a is located at the center between the hall device 11b and the hall device 11c, the magnet 911b is located at the center between the hall device 11c and the hall device 11d, the magnet 911c is located at the center between the hall device 11d and the hall device 11e, and the magnet 911d is located at the center between the hall device 11e and the hall device 11 f. Therefore, the magnet 931, the magnet 911a, the magnet 911b, the magnet 911c, and the magnet 911d are each inductively engaged with two hall devices, and the hall devices 11a, 11b, 11c, 11d, 11e, and 11f are each located between the magnetic fields of adjacent two magnets.
Referring to fig. 7 and 8, the magnet is offset from the nearest hall device by an amount which is necessarily 1 to 4 times the interval of the hall device, so that when the key is in the non-pressed position, there are only a few possibilities of basic magnetic flux data of the hall device engaged with the key, and therefore, first basic magnetic flux component data corresponding to a first magnet and second basic magnetic flux component data corresponding to a second magnet in the basic magnetic flux data can be calculated according to different basic magnetic flux data, and corresponding threshold magnetic flux data can be determined according to the basic magnetic flux data, and a data table can be generated.
After the row of keys is installed, the system first performs step S1 to obtain basic magnetic flux data of each hall device. All the keys are in the non-pressed position, and the magnet of each key is in induction fit with two hall devices, at this time, the system can obtain basic magnetic flux data of the hall devices 11a, 11b, 11c, 11d, 11e, 11f and the other four hall devices 11, and then the system executes step S2 to generate threshold magnetic flux data of the hall devices 11a, 11b, 11c, 11d, 11e, 11f and the other four hall devices 11 according to the obtained basic magnetic flux data and a preset calculation formula. And at the moment, debugging of the user-defined magnetic power keyboard is completed.
When the magnetic power keyboard is normally used, the system executes step S3 to obtain the real-time magnetic flux data of each hall device at a certain time frequency, then executes decision step S4 to decide whether all the real-time magnetic flux data have the real-time magnetic flux data exceeding the corresponding threshold magnetic flux data, and if not, continues to execute step S3; if yes, step S5 is executed to determine the current operation state of the first key in the key row. As shown in fig. 11, when the user presses two first type keys corresponding to the magnet 911b and the magnet 911d, the real-time magnetic flux data of the hall device 11c, the hall device 11d, the hall device 11e, and the hall device 11f exceeds the threshold magnetic flux data, and the system starts to execute step S5. The real-time magnetic flux data of the remaining hall devices at this time is equal to the respective base magnetic flux data.
Since the hall device 11a is located only in the magnetic field of the magnet 931, the system derives the real-time magnetic flux data of the hall device 11a from the magnet 931, and therefore the real-time operating state of the magnet 931 can be accurately determined from the real-time magnetic flux data of the hall device 11 a. The real-time magnetic flux data of the hall device 11a is equal to the basic magnetic flux data, and therefore the current operation state of the magnet 931 is the non-key-in state.
The system then proceeds to step S6 to determine the current operating state of the next magnet, magnet 911 a. First, the real-time magnetic flux data of the hall device 11B includes the first real-time magnetic flux component data a1 corresponding to the magnet 931 and the second real-time magnetic flux component data B1 corresponding to the magnet 911a, and since the magnet 931 is in the non-key-in state and the real-time magnetic flux data of the hall device 11B is equal to the basic magnetic flux data, the first real-time magnetic flux component data a1 corresponding to the magnet 931 is equal to the first basic magnetic flux component data, the second real-time magnetic flux component data B1 corresponding to the magnet 911a is equal to the second basic magnetic flux component data by calculation, the system determines the current operating state of the magnet 911a as the non-key-in state.
Then the system executes a judging step S7 to judge whether the currently determined magnet is the magnet in the last key in the key row, if so, execute the key-in instruction of the key corresponding to all the magnets in the key row in the key-in state; if the determination result of the determination step S7 is negative, the process proceeds to step S6 to determine the current operation state of the next magnet. That is, when the system determines the current operating state of each magnet on a key row, the system will determine one by one starting from the first magnet in the key row sequence until the determination of the current operating state of the last magnet in the key row sequence is completed.
After the system determines the current operating state of the magnet 911a as the untyped state, the system proceeds to determine the current operating state of the magnet 911 b. For the real-time magnetic flux data of the hall device 11c, the second real-time magnetic flux component data B1 corresponding to the magnet 911a is taken as the first real-time magnetic flux component data a2 in the real-time magnetic flux data of the hall device 11c, and the second real-time magnetic flux component data B2 corresponding to the magnet 911B is also included in the real-time magnetic flux data of the hall device 11 c.
The real-time magnetic flux data corresponding to the hall device 11c is larger than the basic magnetic flux data, and the current operating state of the magnet 911a is determined to be the non-key-in state previously, so that the system can determine that the first real-time magnetic flux component data a2 related to the magnet 911a should be equal to the first basic magnetic flux component data corresponding to the magnet 911a in the real-time magnetic flux data acquired by the hall device 11c, and accordingly, the system calculates that the second real-time magnetic flux component data B2 corresponding to the magnet 911B is larger than the second basic magnetic flux component data corresponding to the magnet 911B, and further, the system determines the current operating state of the magnet 911B as the key-in state.
The system then determines the current operating state of the magnet 911 c. For the real-time magnetic flux data of the hall device 11d, the second real-time magnetic flux component data B2 corresponding to the magnet 911B is taken as the first real-time magnetic flux component data A3 in the real-time magnetic flux data of the hall device 11d, and the second real-time magnetic flux component data B3 corresponding to the magnet 911c is also included in the real-time magnetic flux data of the hall device 11 d. The real-time magnetic flux data corresponding to the hall device 11d is greater than the basic magnetic flux data, and the second real-time magnetic flux component data B2 corresponding to the magnet 911B, that is, the first real-time magnetic flux component data A3 is greater than the first basic magnetic flux component data corresponding to the magnet 911B, the system calculates therefrom that the second real-time magnetic flux component data B corresponding to the magnet 911c is equal to the second basic magnetic flux component data corresponding to the magnet 911c, and the system determines the current operating state of the magnet 911c as the non-key-in state.
Similarly, the system then determines the current operating state of the magnet 911d as the keyed state according to the above determination rule, and then determines the current operating states of the remaining four magnets as the non-keyed state. When the system completes the determination of the current operation state of the magnet of the last third type key in the arrangement order, the system performs the determination step S7, and if the determination result is yes, then performs the step S8, and executes the key input command of the key corresponding to the magnet 911b and the magnet 911 d.
Aiming at the staggered induction matching of the magnet and the Hall device in the magnetic power keyboard with the key physical position self-defining function, the working method of the magnetic power keyboard provided by the invention can avoid misjudgment of the current operation state of the key.
Second embodiment of magnetic power keyboard
Referring to fig. 13, fig. 13 is a diagram showing the matching relationship between the key rows and the hall device rows in the second embodiment of the magnetomotive keypad of the present invention. The same as the first embodiment of the magnetic power keyboard of the present invention is that the length design rule of the keys is as shown in fig. 3, the dimension d1 is used as the design basis, the key 41 is the third kind of key, and the key 42 is the first kind of key; the connection mode between the keys and the keyboard base adopts the detachable connection mode as shown in figures 7 and 8, namely, after the keys are installed on the keyboard base, the distance d2 between two adjacent magnets is more than or equal to d1 in the x-axis direction. The present embodiment is different from the first embodiment of the magnetomotive keypad of the present invention in that, in the hall device row, the distance d3 between two adjacent hall devices 43 in the x-axis direction is 0.75 × d1, and the magnetic field range w of the magnet 411 and the magnet 421 in the present embodiment is 0.8 × d 1.
This embodiment ensures that each hall device 43 is located in the magnetic field of only one magnet at most. Firstly, the sensing range of the hall device 43 in the x-axis direction is small enough to serve as a sensing point, the distance d2 between two adjacent magnets is larger than or equal to d1, the magnetic field range w of the magnet 421 is 0.8 × d1, so that the two adjacent magnetic fields have a space therebetween, and the hall device 43 located at the center between the two adjacent magnets 421 will not be in sensing fit with the two magnets 421; in addition, the distance d3 between two adjacent hall devices 43 is 0.75 × d1, that is, the distance d3 between two adjacent hall devices is smaller than the magnetic field range w of the magnet, which prevents the occurrence of a situation where the magnet is located right at the center between two adjacent hall devices and neither hall device is inductively coupled with the magnet. Preferably, the magnetic field range w is less than 2 × d3, and the arrangement ensures that each magnet is matched with only two Hall devices at most, so that the Hall devices are prevented from being wasted, and the production cost is reduced.
This embodiment therefore ensures that each hall device 43 is located in the magnetic field of only one magnet at most, and that the real-time magnetic flux data of the hall device 43 is associated with only one magnet, reducing the computational difficulty in making the determination of the current operating state of the magnet.
Second embodiment of the operation method of the magnetic power keyboard
With reference to fig. 13 and 14, fig. 14 is a flowchart of a second embodiment of the operation method of the magnetic power keyboard according to the present invention, and this embodiment is applied to the second embodiment of the magnetic power keyboard. When the user mounts the key to the keyboard base, and each magnet is in the non-key-in state (the key is not pressed), after the user confirms the interface click, the system performs step S11 to obtain the basic magnetic flux data of each hall device 43 in each hall device row, and then the system performs step S12 to determine the threshold magnetic flux data corresponding to each hall device according to each basic magnetic flux data obtained in step S11 and the preset calculation method and to keep the threshold magnetic flux data in the data table.
In the normal use state of the magnetic power keyboard, the system executes the step S13 to obtain a plurality of real-time magnetic flux data, executes the judgment step S14 to judge whether the obtained plurality of real-time magnetic flux data have the real-time magnetic flux data exceeding the corresponding threshold value magnetic flux data, and if not, continues to execute the step S13 to perform the next acquisition of the plurality of real-time magnetic flux data; if yes, the system judges that the magnet matched with the Hall device with the real-time magnetic flux data exceeding the threshold magnetic flux data is in a key-in state, and executes a key-in instruction of the magnet in the key-in state.
In decision step S14, if a magnet is inductively engaged with two hall devices, the system can determine whether the magnet is in a keyed state based on whether the real-time magnetic flux data of either one of the hall devices engaged with the magnet or the real-time magnetic flux data of the two hall devices engaged with the magnet exceeds the threshold magnetic flux data.
In step S12, the system can determine threshold magnetic flux data corresponding to each hall device based on the basic magnetic flux data and the predetermined calculation method, and can also determine threshold magnetic flux data corresponding to each hall device based on the basic magnetic flux data and the interaction data.
For example, the interactive data is debugging magnetic flux data, in a debugging mode, when a user presses a key deeply for debugging, the user presses the key three times continuously according to the knocking habit of the user, the system acquires magnetic flux data when the magnetic flux is maximum when the key is pressed each time as the debugging magnetic flux data, and takes the minimum value of the three debugging magnetic flux data as the threshold magnetic flux data of the magnet.
Then, in order to ensure that the pressing depth of each magnet when reaching the corresponding position of the key-in state is consistent, the system calculates the pressing depth data according to the acquired threshold magnetic flux data, the basic magnetic flux data corresponding to the hall device and a preset calculation formula, and generates the threshold magnetic flux data corresponding to each hall device by combining the pressing depth data and the basic magnetic flux data corresponding to each hall device.
In addition, the interactive data may also be press depth data entered by the user from an interactive window. If the user knows the pressing depth which is accustomed to the user, the pressing depth can be directly filled in the interactive window, and the system combines the pressing depth data and the basic magnetic flux data corresponding to each Hall device to generate the threshold magnetic flux data corresponding to each Hall device.
In addition, when the magnetomotive force keyboard is preset and debugged, the keying instruction corresponding to each magnet can be determined according to the acquired interaction data. After the system acquires basic magnetic flux data of each Hall device, the coordinate position of each magnet can be calculated according to the basic magnetic flux data, the coordinate position is displayed in a two-dimensional model of the magnetomotive force keyboard in a software interface, and a key model with the position matched with the key position on the magnetomotive force keyboard is arranged in the two-dimensional model of the magnetomotive force keyboard. The user can select one of the plurality of typing characters in the selection column of the interactive interface by clicking and selecting one key model, the system takes the selected typing character as interactive data after clicking confirmation, and determines the typing instruction of the magnet as the typing instruction matched with the selected typing character according to the interactive data.
Third embodiment of magnetic power keyboard
Referring to fig. 15, fig. 15 is a diagram of a matching relationship between a key in a key set and a first buckle structure in a third embodiment of the magnetic power keyboard of the present invention. In this embodiment, the magnet 991 is not disposed on the key cap 995 but fixed in the middle of the movable shaft 994; in addition, the first snap structure is a snap protrusion 31 disposed in an elongated groove in the keyboard base 300, and the snap protrusion 31 protrudes upward; the lower end surface of the shaft base 996 extends downwards out of the wall body 997, and the second buckling structure is a buckling concave position 992 formed between the two wall bodies 997.
The arrangement mode of the first buckle structure and the second buckle structure in the embodiment is opposite to that of the first buckle structure and the second buckle structure in the first embodiment of the magnetic power keyboard, but the detachable installation between the key group and the keyboard base can be realized.
Embodiments of a computer device
The computer device of the present invention may be a device including a processor, a memory, and the like, for example, a single chip microcomputer including a central processing unit and the like. The processor is used for realizing the steps of the working method of the magnetic power keyboard when executing the computer program stored in the memory.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Computer-readable storage medium embodiments
The computer readable storage medium of the present invention may be any form of storage medium that can be read by a processor of a computer device, including but not limited to a non-volatile memory, a ferroelectric memory, etc., and the computer readable storage medium has a computer program stored thereon, and when the processor of the computer device reads and executes the computer program stored in the memory, the steps of the above-mentioned operation method of the magnetic power keyboard can be realized.
The computer program comprises computer program code which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
Finally, it should be emphasized that the above-mentioned embodiments are merely preferred embodiments of the present invention, and are not intended to limit the present invention, and those skilled in the art can make various changes and modifications, for example, in other embodiments, only 1 or 2 second snap structures may be provided at the bottom of the key; in other embodiments, the keyboard base is not provided with the elongated groove, and the first buckle structure protrudes from the upper surface of the keyboard base; in other embodiments, the main keyboard area, the editing area and the functional keyboard area on the keyboard base are all provided with a Hall device line and a first buckle structure line so as to realize the self-arrangement of keys and the self-determination of key instructions on the areas; in other embodiments, the keyboard base is further provided with a numeric keypad, and the numeric keypad is provided with a Hall device row and a first buckling structure row so as to realize self-arrangement of keys and self-definition of key pressing instructions in the area. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. The working method of the magnetic power keyboard is characterized in that:
the working method comprises the following steps:
acquiring threshold magnetic flux data corresponding to each Hall device;
acquiring real-time magnetic flux data corresponding to each Hall device;
and judging whether the real-time magnetic flux data exceeding the threshold magnetic flux data exist or not, and if so, determining that the magnet matched with the Hall device corresponding to the real-time magnetic flux data exceeding the threshold magnetic flux data is in a key-in state.
2. The method of operation of claim 1, wherein:
the determining whether the real-time magnetic flux data exceeding the threshold magnetic flux data exists, and if so, determining that the magnet matched with the hall device corresponding to the real-time magnetic flux data exceeding the threshold magnetic flux data is in a key-in state, including:
and judging whether the real-time magnetic flux data corresponding to any one Hall device matched with the magnet exceeds the threshold magnetic flux data, if so, determining that the magnet is in a key-in state.
3. The method of operation of claim 1, wherein:
the determining whether the real-time magnetic flux data exceeding the threshold magnetic flux data exists, and if so, determining that the magnet matched with the hall device corresponding to the real-time magnetic flux data exceeding the threshold magnetic flux data is in a key-in state, including:
and judging whether the real-time magnetic flux data corresponding to all the Hall devices matched with the magnet exceed the threshold magnetic flux data or not, and if so, determining that the magnet is in a key-in state.
4. The working method according to any one of claims 1 to 3, characterized in that:
the obtaining of the threshold magnetic flux data corresponding to each hall device includes:
acquiring basic magnetic flux data corresponding to each Hall device;
threshold magnetic flux data corresponding to each Hall device is generated according to the plurality of basic magnetic flux data.
5. The working method according to any one of claims 1 to 3, characterized in that:
the obtaining of the threshold magnetic flux data corresponding to each hall device includes:
acquiring basic magnetic flux data corresponding to each Hall device;
acquiring debugging magnetic flux data corresponding to one Hall device, and generating pressing depth data of the magnet matched with the Hall device according to the basic magnetic flux data and the debugging magnetic flux data;
and generating the threshold magnetic flux data corresponding to each Hall device according to the pressing depth data and the plurality of basic magnetic flux data.
6. The method of operation of claim 5, wherein:
the step of acquiring debugging magnetic flux data corresponding to one Hall device and generating pressing depth data of the magnet matched with the Hall device according to the basic magnetic flux data and the debugging magnetic flux data comprises the following steps:
and acquiring at least two debugging magnetic flux data corresponding to one Hall device, and generating pressing depth data of the magnet matched with the Hall device according to the basic magnetic flux data and the plurality of debugging magnetic flux data.
7. The working method according to any one of claims 1 to 3, characterized in that:
after determining that the magnet matched with the hall device corresponding to the real-time magnetic flux data exceeding the threshold magnetic flux data is in a key-in state, the method further comprises:
and executing the keying instruction corresponding to the magnet.
8. The method of operation of claim 7, wherein:
before the obtaining of the real-time magnetic flux data corresponding to each hall device, the method further comprises:
and determining the keying instruction corresponding to each magnet according to the acquired interaction data.
9. A computer device, characterized by: the computer apparatus comprises a processor for implementing a method of operating a magnetomotive keyboard as claimed in any of claims 1 to 8 when executing a computer program stored in a memory.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implements a method of operating a magnetomotive keyboard according to any of claims 1 to 8.
CN201911102970.1A 2019-11-12 2019-11-12 Working method of magnetic power keyboard, computer device and computer readable storage medium Active CN110825241B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911102970.1A CN110825241B (en) 2019-11-12 2019-11-12 Working method of magnetic power keyboard, computer device and computer readable storage medium
PCT/CN2020/128026 WO2021093757A1 (en) 2019-11-12 2020-11-11 Magnetomotive keyboard and working method for magnetomotive keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911102970.1A CN110825241B (en) 2019-11-12 2019-11-12 Working method of magnetic power keyboard, computer device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110825241A true CN110825241A (en) 2020-02-21
CN110825241B CN110825241B (en) 2021-10-22

Family

ID=69554365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911102970.1A Active CN110825241B (en) 2019-11-12 2019-11-12 Working method of magnetic power keyboard, computer device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110825241B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021093757A1 (en) * 2019-11-12 2021-05-20 珠海市学思电子科技有限公司 Magnetomotive keyboard and working method for magnetomotive keyboard

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4366463A (en) * 1981-05-22 1982-12-28 Cooper Industries, Inc. Keyboard
CN205159167U (en) * 2015-10-19 2016-04-13 洛卡特股份有限公司 Press keyboard and keyboard with output of simulation signal and output of digital signal
CN205264563U (en) * 2015-11-22 2016-05-25 向开元 Mechanical keyboard key switch
CN106468957A (en) * 2016-09-20 2017-03-01 深圳元佑科技有限公司 Individualized input equipment and individualized key-press input method
EP3392132A1 (en) * 2017-04-19 2018-10-24 Ultraflex Spa Control device for boats
CN109951702A (en) * 2019-03-29 2019-06-28 华为技术有限公司 Position detecting mechanism, mobile terminal and method for detecting position

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4366463A (en) * 1981-05-22 1982-12-28 Cooper Industries, Inc. Keyboard
CN205159167U (en) * 2015-10-19 2016-04-13 洛卡特股份有限公司 Press keyboard and keyboard with output of simulation signal and output of digital signal
CN205264563U (en) * 2015-11-22 2016-05-25 向开元 Mechanical keyboard key switch
CN106468957A (en) * 2016-09-20 2017-03-01 深圳元佑科技有限公司 Individualized input equipment and individualized key-press input method
EP3392132A1 (en) * 2017-04-19 2018-10-24 Ultraflex Spa Control device for boats
CN109951702A (en) * 2019-03-29 2019-06-28 华为技术有限公司 Position detecting mechanism, mobile terminal and method for detecting position

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021093757A1 (en) * 2019-11-12 2021-05-20 珠海市学思电子科技有限公司 Magnetomotive keyboard and working method for magnetomotive keyboard

Also Published As

Publication number Publication date
CN110825241B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN103984495B (en) Operational approach and electronic installation
CN101634935B (en) Method and device for inputting characters by touch screen
CN109364476B (en) Game control method and device
EP2725458B1 (en) Information processing device, input control method, and input control program
CN102541401B (en) Information processing equipment and method for processing information
CN106681554A (en) Mobile terminal touch screen control method and device and mobile terminal
CN110825241B (en) Working method of magnetic power keyboard, computer device and computer readable storage medium
CN105159556A (en) Interface operation method and electronic terminal
US20170041447A1 (en) Mobile device and dial pad thereof
CN110850992B (en) Working method of magnetic power keyboard, computer device and computer readable storage medium
CN102043586B (en) Method and device for displaying background color in electronic form
CN210534721U (en) Magnetic power keyboard
CN110658922A (en) Magnetic power keyboard
US20160085316A1 (en) Input method of chinese pinyin and terminal
EP3438809A1 (en) Control instruction identification method and apparatus, and storage medium
CN109788356A (en) A kind of smart television screen sliding method, apparatus and smart television based on remote controler
CN105653131A (en) Application search method and terminal
EP2916212A1 (en) Character input device and information processing device
CN104932789A (en) Information display method and electronic equipment
CN112764606A (en) Identification display method and device and electronic equipment
CN104346123B (en) Image display device and image display method
JP3203819B2 (en) Touch panel input device
US20110316791A1 (en) Touch pad character entering system and method
CN106774971A (en) A kind of characters input method and device
CN109426429B (en) Unlocking device, unlocking method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant