Movatterモバイル変換


[0]ホーム

URL:


CN113703589A - Key input method and device - Google Patents

Key input method and device
Download PDF

Info

Publication number
CN113703589A
CN113703589ACN202110904678.2ACN202110904678ACN113703589ACN 113703589 ACN113703589 ACN 113703589ACN 202110904678 ACN202110904678 ACN 202110904678ACN 113703589 ACN113703589 ACN 113703589A
Authority
CN
China
Prior art keywords
information
instruction information
pressing
control command
pressing instruction
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.)
Pending
Application number
CN202110904678.2A
Other languages
Chinese (zh)
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.)
Wuhan Zdeer Technology Co Ltd
Original Assignee
Wuhan Zdeer 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 Wuhan Zdeer Technology Co LtdfiledCriticalWuhan Zdeer Technology Co Ltd
Priority to CN202110904678.2ApriorityCriticalpatent/CN113703589A/en
Publication of CN113703589ApublicationCriticalpatent/CN113703589A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The invention provides a key input method and a device, comprising the following steps: acquiring press instruction information acting on a terminal, wherein the press instruction information comprises quantity information, sequencing information and duration information; when the quantity information of the press instruction information is more than one, generating new press instruction information according to the quantity information and the sequencing information of the press instruction information; inquiring a preset control command storage item corresponding to the pressing instruction information to generate a primary control command; when the duration information of the press instruction exceeds the duration preset value, the primary control instruction is switched into a secondary control instruction, new instruction information can be generated by distinguishing quantity information and sequencing information of the press instruction, the limitation of the quantity of key input is overcome, for example, on the basis of 3 keys, any key is combined, 7 inputtable instructions can be reached, the quantity of inputtable instructions is greatly expanded, and the inputtable instructions are adjusted by monitoring the duration of the press instruction.

Description

Key input method and device
Technical Field
The invention relates to the field of intelligent physiotherapy equipment, in particular to a key input method and a key input device.
Background
The physical therapy department mainly utilizes artificial or natural physical factors to act on a human body to generate favorable reaction to achieve the effect of preventing and treating diseases, and the main mode is that the human body reaction is caused by the local direct action and the indirect action of nerves and body fluid, the blood circulation is adjusted, the nutrition metabolism is improved, the immunity is improved, the function of a nervous system is regulated, the tissue repair is promoted, so that pathogenic factors are eliminated, the pathological process is improved, and the treatment in the physical therapy department is generally the traditional Chinese medicine combination therapy, which comprises the following steps: acupuncture, cupping, traction, massage, electrotherapy (low frequency and diathermy, etc.), and magnetic therapy, phototherapy, etc. compared with hospital facilities; (ii) a
The popularization of intelligence physiotherapy equipment has reduced people to the reliance of physiotherapy branch of academic or vocational study for home physiotherapy becomes possible, current intelligence physiotherapy equipment is for satisfying masses 'demand, mostly pursue the design outward appearance that retrencies, small and exquisite volume, portable equipment quality, but the debugging function of intelligence physiotherapy equipment is more, button quantity is huge, this is violated with the brief design demand of intelligence physiotherapy equipment, consequently, it needs a button input method and device that satisfies masses' demand lightly to intelligence physiotherapy equipment to be urgent.
SUMMARY OF THE PATENT FOR INVENTION
Aiming at the defects in the prior art, the invention provides a key input method and a key input device so as to reduce the requirement of the number of keys of intelligent physiotherapy equipment.
According to a first aspect of the embodiments of the present disclosure, a preferred embodiment of the present invention provides a key input method applied to terminal debugging of an intelligent physiotherapy device, including:
acquiring press instruction information acting on a terminal, wherein the press instruction information comprises quantity information, sequencing information and duration information;
when the quantity information of the press instruction information is more than one, generating new press instruction information according to the quantity information and the sequencing information of the press instruction information;
inquiring a preset control command storage item corresponding to the pressing instruction information to generate a primary control command;
and when the duration information of the press instruction exceeds a duration preset value, switching the primary control command into a secondary control command.
In an embodiment, the acquiring the pressing instruction information acting on the terminal includes:
when the pressing signal acting on the terminal is larger than a preset value, monitoring the pressing signal acting on the terminal;
recording the initial time and the termination time of the pressing signal, and calculating the absolute value of the difference between the initial time and the termination time of the pressing signal.
In an embodiment, when the quantity information of the press instruction information is greater than one, generating new press instruction information according to the quantity information and the sorting information of the press instruction information includes:
when the quantity information of the press instruction information is unique, the sequencing information of the press instruction information is saved.
In an embodiment, the querying a preset control command storage item corresponding to the pressing instruction information includes:
when the sequencing information of the press instruction information does not have a corresponding preset control command storage item, the press instruction information is invalid;
when the quantity information of the pressing instruction information is the maximum value, a final-stage control command is directly generated;
and when the quantity information of the press instruction information is smaller than the maximum value, generating a primary control command according to the sequencing information of the press instruction information.
According to a second aspect of the embodiments of the present disclosure, the present invention provides a key input device for terminal debugging of an intelligent physiotherapy apparatus, including:
the terminal comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring press instruction information acting on the terminal, and the press instruction information comprises quantity information, sequencing information and duration information;
the generating module is used for generating new pressing instruction information according to the quantity information and the sequencing information of the pressing instruction information when the quantity information of the pressing instruction information is more than one;
the processing module is used for inquiring a preset control command storage item corresponding to the pressing instruction information and generating a primary control command;
and the conversion module is used for switching the primary control command into a secondary control command when the duration information of the press command exceeds a duration preset value.
In one embodiment, the acquisition module includes:
the sensing module is used for monitoring the pressing signal acting on the terminal when the pressing signal acting on the terminal is larger than a preset value;
and the counting module is used for recording the initial time and the termination time of the pressing signal and calculating the absolute value of the difference between the initial time and the termination time of the pressing signal.
In one embodiment, the generating module includes:
and the pairing module is used for saving the sequencing information of the press instruction information when the quantity information of the press instruction information is unique.
In one embodiment, the processing module includes:
the invalidation module is used for invalidating the press instruction information when the sequencing information of the press instruction information does not have a corresponding preset control command storage item;
the stage skipping module is used for directly generating a final-stage control command when the quantity information of the press instruction information is the maximum value;
and the combination module is used for generating a primary control command according to the sequencing information of the press instruction information when the quantity information of the press instruction information is smaller than the maximum value.
According to a third aspect of the embodiments of the present disclosure, the present invention provides a key input device for terminal debugging of an intelligent physiotherapy apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring press instruction information acting on a terminal, wherein the press instruction information comprises quantity information, sequencing information and duration information;
when the quantity information of the press instruction information is more than one, generating new press instruction information according to the quantity information and the sequencing information of the press instruction information;
inquiring a preset control command storage item corresponding to the pressing instruction information to generate a primary control command;
and when the duration information of the press instruction exceeds a duration preset value, switching the primary control command into a secondary control command.
According to the technical scheme, the key input method and the key input device provided by the invention have the following beneficial effects: the quantity information of the press instructions is distinguished, new instruction information can be generated through sequencing information, the quantity limitation of key input is overcome, for example, on the basis of 3 keys, any key is combined, 7 inputtable instructions can be reached, the quantity of the inputtable instructions is greatly expanded, the inputtable instructions are adjusted through monitoring the duration of the press instructions, the range of the inputtable instructions is expanded, the quantity of the inputtable instructions can be doubled, multifunctional debugging tasks can be completed through simple key arrangement, and the simple design requirements of intelligent physiotherapy equipment can be met.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the patentable embodiments of the invention, reference will now be made to the appended drawings, which are briefly described as embodiments or as required in the prior art description. In all the drawings, the elements or parts are not necessarily drawn to actual scale.
FIG. 1 is a flow chart of a key input method according to the present invention;
FIG. 2 is a flowchart of step S101 of a key input method according to the present invention;
FIG. 3 is a flowchart of step S102 in a key input method according to the present invention;
FIG. 4 is a flowchart of step S103 of a key input method according to the present invention;
FIG. 5 is a block diagram of a key input device according to the present invention;
FIG. 6 is a block diagram of an acquisition module in a key input device according to the present invention;
FIG. 7 is a block diagram of a processing module of a key input device according to the present invention;
FIG. 8 is a schematic view illustrating a working process of another key input device according to the present invention;
fig. 9 is a block diagram of another key input device according to the present invention.
Detailed Description
Embodiments of the patented technology of the present invention will be described in detail below with reference to the drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only used as examples, and the protection scope of the present invention is not limited thereby.
Fig. 1 is a flowchart of a key input method according to the present invention, which is applied to terminal debugging of an intelligent physiotherapy device, and the terminal can display information such as pictures, videos, short messages, and wechat. The terminal may be equipped with any terminal device having a display screen, such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like. As shown in fig. 1, the key input method provided in this embodiment includes the following steps S101 to S104:
in step S101, press instruction information acting on a terminal is acquired, where the press instruction information includes quantity information, sorting information, and duration information;
the method comprises the following steps that a touch key is adopted to trigger pressing instruction information, an elastic element is arranged in the touch key, so that the touch key can automatically reset after being triggered once, wherein the elastic element can be made of elastic materials such as springs and silica gel;
optionally, the touch key combination includes a plurality of piezoresistors, the touch pressure is reflected by detecting the parallel voltage conditions of different piezoresistors, and when the touch pressure is sensed, the quantity information, the sequencing information and the duration information of the piezoresistors are recorded;
optionally, the touch key combination includes a plurality of circuit switches connected in parallel, the touch position is reflected by detecting the current and voltage changes of different circuits, and when an energization signal is received, the quantity information, the sequencing information and the duration information of the piezoresistors are recorded;
in step S102, when the quantity information of the press instruction information is greater than one, generating new press instruction information according to the quantity information and the sorting information of the press instruction information;
in step S103, querying a preset control command storage item corresponding to the pressing instruction information, and generating a primary control command;
for example, when the touch keys are 1/2/3:
pressing the 1 and 2 keys simultaneously can generate pressing instruction information 4;
pressing the 2 and 3 keys simultaneously can generate pressing instruction information 5;
pressing the 1 and 3 keys simultaneously can generate pressing instruction information 6;
for another example, when the touch keys are 1/2/3/4:
pressing the 1 and 2 keys simultaneously can generate pressing instruction information 5;
pressing the 1, 2 and 3 keys simultaneously can generate pressing instruction information 6;
pressing the 1, 2 and 4 keys simultaneously can generate pressing instruction information 7;
pressing the 1 and 3 keys simultaneously can generate pressing instruction information 8;
pressing the 1, 3 and 4 keys simultaneously can generate pressing instruction information 9;
pressing the 1 and 4 keys simultaneously can generate pressing instruction information 10;
pressing the 2, 3 and 4 keys simultaneously can generate pressing instruction information 11;
it should be noted that the more the touch keys are, the more the pressing instruction information can be generated, the touch keys can be designed in a strip, circular or special-shaped structure, and the space and size are suitable for the user to easily press the fingers.
In step S104, when the duration information of the press instruction exceeds a duration preset value, switching the primary control command to a secondary control command;
alternatively, the secondary control command may be an enhanced version of the primary control command, such as: the adjusting speed corresponding to the plus command is increased by 0.5 gear every time, the adjusting speed corresponding to the long-press plus command can be increased to continuously increase by 0.5 gear every second, repeated pressing is prevented, operation is simplified, and the operation is easy to remember;
alternatively, the secondary control command may be an execution command of the primary control command, such as: the plus command adjusts the 1 gear every time, the corresponding gear information can be started by long pressing the plus command, the corresponding gear information can be closed by long pressing the plus command again, and an additional starting key is not needed.
In one embodiment, in step S101, the acquiring of the pressing instruction information acting on the terminal, as shown in fig. 2, includes the following steps S201 to S202:
in step S201, when the pressing signal acting on the terminal is greater than a preset value, monitoring the pressing signal acting on the terminal;
in step S202, recording the start time and the end time of the pressing signal, and calculating the absolute value of the difference between the start time and the end time of the pressing signal;
the value of the preset value of the duration information of the press instruction is between 2s and 3 s;
for example, the following steps are carried out: the preset value of the duration information of the press instruction is 3s, so that when the duration information of the press instruction acquired by the terminal is less than 3s, the primary control command is executed, and when the duration information of the press instruction acquired by the terminal is more than 3s, the secondary control command is executed.
In one embodiment, in step S102, when the quantity information of the press instruction information is greater than one, generating new press instruction information according to the quantity information and the sorting information of the press instruction information, as shown in fig. 3, includes the following step S301:
in step S301, when the quantity information of the press instruction information is unique, the sorting information of the press instruction information is saved;
as described in S102, each touch key individually corresponds to one piece of pressing instruction information.
In an embodiment, in step S103, the querying a preset control command storage item corresponding to the pressing instruction information, as shown in fig. 4, includes the following steps S401 to S403:
in step S401, when the sorting information of the press instruction information does not have a corresponding preset control command storage item, the press instruction information is invalid;
in step S402, when the quantity information of the press instruction information is a maximum value, a final control command is directly generated;
optionally, under the condition that all touch keys are triggered, an emergency setting interface can be entered to avoid the emergency setting interface being mistakenly touched and opened, or a preset control command storage item is not set, so that the terminal device has no signal output, and the terminal displays an invalid input character to prevent repeated operation;
optionally, under the condition that all touch buttons are triggered, the screen locking interface can be entered, and under the condition that the screen locking interface is executed, the intelligent physiotherapy equipment can be prevented from being touched by mistake, so that the safety is higher.
In step S403, when the quantity information of the press instruction information is smaller than a maximum value, generating a primary control command according to the sorting information of the press instruction information;
in the method of the embodiment of the present disclosure, the total number of the pressing instruction information can be directly obtained through a digital combination formula, and the total number of the pressing instruction information is reduced by 1 to be the total number of the selectable instructions of the primary control command, when the intelligent physiotherapy device is set, it should be determined whether the total number of the pressing instruction information can include the required number of functions, it is preferable that the number of the touch keys is in a range of 3 to 5, in order to avoid an operation burden caused by a large number of the touch keys, it should be preferable to select the adjacent touch keys as the combination keys of the pressing instruction information as much as possible, so as to facilitate the user to perform the finger pressing operation, and the following description is given by taking the key layout of the "moxibustion instrument":
the moxibustion instrument is provided with a plus key, a minus key and a machine on/off key;
the operation method comprises the following steps: the machine is turned on and off by long pressing the on/off key, the warm moxibustion and septal moxibustion modes are switched by short pressing the on/off key, the '+' key is pressed for long to enter the running mode, the corresponding mode gear is increased by short pressing the '+' key, the corresponding mode gear is reduced by short pressing the '-' key, the '-' key is pressed for long to exit the running mode, the '+' key and the '-' key are pressed simultaneously to run the vibration mode, the '+' key and the '-' key are pressed simultaneously again to close the vibration mode, the '+' key and the on/off key are pressed simultaneously to increase the vibration mode, the '-' key and the on/off key are pressed simultaneously to reduce the vibration mode, and the key structure is simplified.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 5 is a block diagram of a key input device according to the present invention, which may be implemented as part or all of an electronic device through software, hardware or a combination of both. As shown in fig. 5, the apparatus includes:
the system comprises anacquisition module 1, a display module and a display module, wherein the acquisition module is used for acquiring press instruction information acting on a terminal, and the press instruction information comprises quantity information, sequencing information and duration information;
thegenerating module 2 is used for generating new pressing instruction information according to the quantity information and the sequencing information of the pressing instruction information when the quantity information of the pressing instruction information is larger than one;
theprocessing module 3 is used for inquiring a preset control command storage item corresponding to the pressing instruction information and generating a primary control command;
and the conversion module 4 is used for switching the primary control command into a secondary control command when the duration information of the press instruction exceeds a duration preset value.
The above-mentioned device of this disclosure embodiment, can generate new instruction information through distinguishing the quantity information of press command, the sequencing information, the quantity limitation of key input has been overcome, for example, on the basis of 3 buttons, with arbitrary button combination, can reach 7 inputtable instructions, can greatly expand the quantity of inputtable instruction, adjust inputtable instruction through the long duration monitoring to press command, the scope of inputtable instruction has been expanded, make the quantity of inputtable instruction can double, make simple button arrange can accomplish multi-functional debugging task, can satisfy the brief design demand of intelligent physiotherapy equipment.
In an embodiment, theacquisition module 1, as shown in fig. 6, includes:
thesensing module 101 is configured to monitor the pressing signal acting on the terminal when the pressing signal acting on the terminal is greater than a preset value;
thestatistic module 102 is configured to record an initial time and a termination time of the pressing signal, and calculate an absolute value of a difference between the initial time and the termination time of the pressing signal.
In an embodiment, thegenerating module 2, as shown in fig. 5, includes:
thepairing module 201 is configured to, when the quantity information of the press instruction information is unique, save the ordering information of the press instruction information.
In an embodiment, theprocessing module 3, as shown in fig. 7, includes:
an invalidation module 301, configured to invalidate the press instruction information when there is no corresponding preset control command storage item in the ordering information of the press instruction information;
a stage skipping module 302, configured to directly generate a final control command when the quantity information of the press instruction information is a maximum value;
and the combination module 303 is configured to generate a primary control command according to the sorting information of the press instruction information when the quantity information of the press instruction information is smaller than a maximum value.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An embodiment of the present disclosure further provides a key input device, as shown in fig. 8 and 9, including:
aprocessor 101;
amemory 102 for storing instructions executable by theprocessor 101;
wherein theprocessor 101 is configured to:
acquiring press instruction information acting on a terminal, wherein the press instruction information comprises quantity information, sequencing information and duration information;
when the quantity information of the press instruction information is more than one, generating new press instruction information according to the quantity information and the sequencing information of the press instruction information;
inquiring a preset control command storage item corresponding to the pressing instruction information to generate a primary control command;
and when the duration information of the press instruction exceeds a duration preset value, switching the primary control command into a secondary control command.
Theprocessor 101 may be further configured to:
the acquiring of the press instruction information acting on the terminal includes:
when the pressing signal acting on the terminal is larger than a preset value, monitoring the pressing signal acting on the terminal;
recording the initial time and the termination time of the pressing signal, and calculating the absolute value of the difference between the initial time and the termination time of the pressing signal.
The processor may be further configured to:
when the quantity information of the press instruction information is more than one, generating new press instruction information according to the quantity information and the sequencing information of the press instruction information, wherein the method comprises the following steps:
when the quantity information of the press instruction information is unique, the sequencing information of the press instruction information is saved.
Theprocessor 101 may be further configured to:
the querying a preset control command storage item corresponding to the pressing instruction information includes:
when the sequencing information of the press instruction information does not have a corresponding preset control command storage item, the press instruction information is invalid;
when the quantity information of the pressing instruction information is the maximum value, a final-stage control command is directly generated;
and when the quantity information of the press instruction information is smaller than the maximum value, generating a primary control command according to the sequencing information of the press instruction information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram of another key input device according to the present invention, which is suitable for terminal debugging of an intelligent physiotherapy apparatus. For example, the terminal device may be equipped with a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
The terminal device may include one or more of the following components: processingcomponent 100,memory 102,communication component 110, input/output interface 120,power component 130,multimedia component 140,sensor component 150, andaudio component 160. Theprocessing component 100 generally controls overall operations of the terminal device, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing assembly 100 may include one or more processors 1220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, theprocessing component 100 can include one or more modules that facilitate interaction between theprocessing component 100 and other components. For example, theprocessing component 100 may include a multimedia module to facilitate interaction between themultimedia component 140 and theprocessing component 100.
Thememory 102 is configured to store various types of data to support operations at the terminal device. Examples of such data include instructions for any application or method operating on the terminal device, contact data, phonebook data, messages, pictures, videos, etc. Thememory 102 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. Thepower supply component 130 provides power to the various components of the terminal device. Thepower components 130 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the terminal device.
Themultimedia component 140 comprises a screen providing an output interface between the terminal device and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, themultimedia component 140 includes a front facing camera and/or a rear facing camera. When the terminal device is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability. Theaudio component 160 is configured to output and/or input audio signals. For example, theaudio component 160 includes a Microphone (MIC) configured to receive external audio signals when the terminal device is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in thememory 102 or transmitted via thecommunication component 110. In some embodiments, theaudio assembly 160 further includes a speaker for outputting audio signals. The input/output interface 120 provides an interface between theprocessing component 100 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button. Thesensor assembly 150 includes one or more sensors for providing various aspects of status assessment for the terminal device. For example, thesensor assembly 150 may detect the open/closed status of the terminal device, the relative positioning of the components, such as the display and keypad of the terminal device, thesensor assembly 150 may also detect a change in the position of the terminal device or a component of the terminal device, the presence or absence of user contact with the terminal device, orientation or acceleration/deceleration of the terminal device, and a change in the temperature of the terminal device. Thesensor assembly 150 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. Thesensor assembly 150 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 150 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 110 is configured to facilitate wired or wireless communication between the terminal device and other devices. The terminal device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, thecommunication part 110 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 110 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal device may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as thememory 102, comprising instructions executable by theprocessor 101 of the terminal device to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by aprocessor 101 of a terminal device, enable the terminal device to perform a method of terminal commissioning, the method comprising:
acquiring press instruction information acting on a terminal, wherein the press instruction information comprises quantity information, sequencing information and duration information;
when the quantity information of the press instruction information is more than one, generating new press instruction information according to the quantity information and the sequencing information of the press instruction information;
inquiring a preset control command storage item corresponding to the pressing instruction information to generate a primary control command;
and when the duration information of the press instruction exceeds a duration preset value, switching the primary control command into a secondary control command.
In an embodiment, the acquiring the pressing instruction information acting on the terminal includes:
when the pressing signal acting on the terminal is larger than a preset value, monitoring the pressing signal acting on the terminal;
recording the initial time and the termination time of the pressing signal, and calculating the absolute value of the difference between the initial time and the termination time of the pressing signal.
In an embodiment, when the quantity information of the press instruction information is greater than one, generating new press instruction information according to the quantity information and the sorting information of the press instruction information includes:
when the quantity information of the press instruction information is unique, the sequencing information of the press instruction information is saved.
In an embodiment, the querying a preset control command storage item corresponding to the pressing instruction information includes:
when the sequencing information of the press instruction information does not have a corresponding preset control command storage item, the press instruction information is invalid;
when the quantity information of the pressing instruction information is the maximum value, a final-stage control command is directly generated;
and when the quantity information of the press instruction information is smaller than the maximum value, generating a primary control command according to the sequencing information of the press instruction information.
In the description of the present patent application, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present patent. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The above examples are only used to illustrate the technical solutions of the present invention, but not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; the modifications or substitutions do not make the essence of the corresponding technical solution depart from the scope of the technical solutions of the embodiments of the patent of the present invention, and the technical solutions are all covered in the claims and the specification of the patent of the present invention.

Claims (9)

Translated fromChinese
1.一种按键输入方法,其特征在于,包括:1. a key input method, is characterized in that, comprises:获取作用于终端的按压指令信息,所述按压指令信息包括数量信息、排序信息和时长信息;Acquire press instruction information acting on the terminal, where the press instruction information includes quantity information, sorting information and duration information;当所述按压指令信息的数量信息大于一时,根据所述按压指令信息的数量信息、排序信息生成新的按压指令信息;When the quantity information of the pressing instruction information is greater than one, generate new pressing instruction information according to the quantity information and sorting information of the pressing instruction information;查询所述按压指令信息对应的预设控制命令存储项,生成初级控制命令;query the preset control command storage item corresponding to the pressing instruction information, and generate a primary control command;当所述按压指令的时长信息超过时长预设值时,将所述初级控制命令切换成次级控制命令。When the duration information of the pressing instruction exceeds a preset duration value, the primary control command is switched to a secondary control command.2.根据权利要求1所述的方法,其特征在于,所述获取作用于终端的按压指令信息,包括:2. The method according to claim 1, wherein the acquiring the pressing instruction information acting on the terminal comprises:当所述作用于终端的按压信号大于预设值时,监测所述作用于终端的按压信号;When the pressing signal acting on the terminal is greater than a preset value, monitoring the pressing signal acting on the terminal;记录所述按压信号的伊始时间和终止时间,并计算所述按压信号伊始时间与按压信号终止时间的差值绝对值。The start time and the end time of the pressing signal are recorded, and the absolute value of the difference between the initial time of the pressing signal and the end time of the pressing signal is calculated.3.根据权利要求1所述的方法,其特征在于,所述当所述按压指令信息的数量信息大于一时,根据所述按压指令信息的数量信息、排序信息生成新的按压指令信息,包括:3. The method according to claim 1, wherein when the quantity information of the pressing instruction information is greater than one, generating new pressing instruction information according to the quantity information and sorting information of the pressing instruction information, comprising:当所述按压指令信息的数量信息唯一时,保存所述按压指令信息的排序信息。When the quantity information of the pressing instruction information is unique, the sorting information of the pressing instruction information is saved.4.根据权利要求1所述的方法,其特征在于,所述查询所述按压指令信息对应的预设控制命令存储项,包括:4. The method according to claim 1, wherein the querying the preset control command storage item corresponding to the pressing instruction information comprises:当所述按压指令信息的排序信息无对应的预设控制命令存储项时,该所述按压指令信息无效;When the sorting information of the pressing instruction information has no corresponding preset control command storage item, the pressing instruction information is invalid;当所述按压指令信息的数量信息为最大值时,直接生成末级控制命令;When the quantity information of the pressing instruction information is the maximum value, directly generating the final stage control command;当所述按压指令信息的数量信息小于最大值时,依据所述按压指令信息的排序信息生成初级控制命令。When the quantity information of the pressing instruction information is less than the maximum value, a primary control command is generated according to the sorting information of the pressing instruction information.5.一种按键输入装置,其特征在于,包括:5. A key input device, characterized in that, comprising:采集模块,用于获取作用于终端的按压指令信息,所述按压指令信息包括数量信息、排序信息和时长信息;an acquisition module, configured to acquire pressing instruction information acting on the terminal, where the pressing instruction information includes quantity information, sorting information and duration information;生成模块,用于当所述按压指令信息的数量信息大于一时,根据所述按压指令信息的数量信息、排序信息生成新的按压指令信息;a generating module, configured to generate new pressing instruction information according to the quantity information and sorting information of the pressing instruction information when the quantity information of the pressing instruction information is greater than one;处理模块,用于查询所述按压指令信息对应的预设控制命令存储项,生成初级控制命令;a processing module, configured to query the preset control command storage item corresponding to the pressing instruction information, and generate a primary control command;转换模块,用于当所述按压指令的时长信息超过时长预设值时,将所述初级控制命令切换成次级控制命令。A conversion module, configured to switch the primary control command to a secondary control command when the duration information of the pressing instruction exceeds a preset duration value.6.根据权利要求5所述的装置,其特征在于,所述采集模块,包括:6. The device according to claim 5, wherein the acquisition module comprises:感知模块,用于当所述作用于终端的按压信号大于预设值时,监测所述作用于终端的按压信号;a sensing module, configured to monitor the pressing signal acting on the terminal when the pressing signal acting on the terminal is greater than a preset value;统计模块,用于记录所述按压信号的伊始时间和终止时间,并计算所述按压信号伊始时间与按压信号终止时间的差值绝对值。The statistics module is configured to record the start time and the end time of the pressing signal, and calculate the absolute value of the difference between the initial time of the pressing signal and the end time of the pressing signal.7.根据权利要求5所述的装置,其特征在于,所述生成模块,包括:7. The apparatus according to claim 5, wherein the generating module comprises:配对模块,用于当所述按压指令信息的数量信息唯一时,保存所述按压指令信息的排序信息。The pairing module is configured to save the sorting information of the pressing instruction information when the quantity information of the pressing instruction information is unique.8.根据权利要求5所述的装置,其特征在于,所述处理模块,包括:8. The apparatus according to claim 5, wherein the processing module comprises:无效模块,用于当所述按压指令信息的排序信息无对应的预设控制命令存储项时,该所述按压指令信息无效;an invalidation module, configured to invalidate the pressing instruction information when the sorting information of the pressing instruction information has no corresponding preset control command storage item;跳级模块,用于当所述按压指令信息的数量信息为最大值时,直接生成末级控制命令;a level-jumping module, configured to directly generate a final-level control command when the quantity information of the pressing instruction information is the maximum value;组合模块,用于当所述按压指令信息的数量信息小于最大值时,依据所述按压指令信息的排序信息生成初级控制命令。The combination module is configured to generate a primary control command according to the sorting information of the pressing instruction information when the quantity information of the pressing instruction information is less than the maximum value.9.一种按键输入装置,其特征在于,包括:9. A key input device, characterized in that, comprising:处理器;processor;用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;其中,所述处理器被配置为:wherein the processor is configured to:获取作用于终端的按压指令信息,所述按压指令信息包括数量信息、排序信息和时长信息;Acquire press instruction information acting on the terminal, where the press instruction information includes quantity information, sorting information and duration information;当所述按压指令信息的数量信息大于一时,根据所述按压指令信息的数量信息、排序信息生成新的按压指令信息;When the quantity information of the pressing instruction information is greater than one, generate new pressing instruction information according to the quantity information and sorting information of the pressing instruction information;查询所述按压指令信息对应的预设控制命令存储项,生成初级控制命令;query the preset control command storage item corresponding to the pressing instruction information, and generate a primary control command;当所述按压指令的时长信息超过时长预设值时,将所述初级控制命令切换成次级控制命令。When the duration information of the pressing instruction exceeds a preset duration value, the primary control command is switched to a secondary control command.
CN202110904678.2A2021-08-072021-08-07Key input method and devicePendingCN113703589A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110904678.2ACN113703589A (en)2021-08-072021-08-07Key input method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110904678.2ACN113703589A (en)2021-08-072021-08-07Key input method and device

Publications (1)

Publication NumberPublication Date
CN113703589Atrue CN113703589A (en)2021-11-26

Family

ID=78651807

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110904678.2APendingCN113703589A (en)2021-08-072021-08-07Key input method and device

Country Status (1)

CountryLink
CN (1)CN113703589A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN2327004Y (en)*1997-10-101999-06-30王黎明Keyboard capable of self defining
US20020160807A1 (en)*2001-04-272002-10-31Palm, Inc.Method and apparatus for dialing an emergency service
CN109324605A (en)*2018-11-192019-02-12广州极飞科技有限公司A kind of flying vehicles control method, apparatus, equipment and storage medium
CN111685393A (en)*2020-05-092020-09-22芯海科技(深圳)股份有限公司Electronic cigarette control method, electronic cigarette control device and electronic cigarette

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN2327004Y (en)*1997-10-101999-06-30王黎明Keyboard capable of self defining
US20020160807A1 (en)*2001-04-272002-10-31Palm, Inc.Method and apparatus for dialing an emergency service
CN109324605A (en)*2018-11-192019-02-12广州极飞科技有限公司A kind of flying vehicles control method, apparatus, equipment and storage medium
CN111685393A (en)*2020-05-092020-09-22芯海科技(深圳)股份有限公司Electronic cigarette control method, electronic cigarette control device and electronic cigarette

Similar Documents

PublicationPublication DateTitle
RU2643129C2 (en)Method and device for air conditioner activation
US11443019B2 (en)Methods and devices for fingerprint unlocking
EP3971704B1 (en)Method and apparatus for processing text information
CN104850995B (en)Operation execution method and device
US10824844B2 (en)Fingerprint acquisition method, apparatus and computer-readable storage medium
CN107102772B (en)Touch control method and device
KR20150134552A (en)Method and Electronic Device for Information
EP3575917B1 (en)Collecting fingerprints
CN105487658A (en)Application operation control method and apparatus
JP2016527577A (en) User command execution method, execution device, program, and storage medium
CN108090441B (en) Fingerprint recognition control method, mobile terminal and storage medium
CN112462997A (en)Content presentation method and device, electronic equipment and storage medium
CN108206882A (en)The method and device of equipment alarm clock calling
CN108766427B (en)Voice control method and device
CN107608538A (en)Intelligent keyboard and its control method
CN113703589A (en)Key input method and device
CN107808077A (en)For controlling the method, apparatus and storage medium of terminal unlocking function
CN117503527A (en)Hydrotherapy bed and hydrotherapy bed control method
CN112346571A (en)Equipment control method and device and storage medium
CN106534517B (en) Operating state adjustment method, device and electronic equipment
CN111506246A (en)Fingerprint identification determination method and fingerprint identification determination device
CN116795459A (en)Interface adjustment method, device and storage medium
US10531401B2 (en)Method, terminal device and system for controlling transmission
CN114680855A (en)Heart rate detection method, device, equipment and storage medium
CN107153448A (en)Display module and its control method, electronic equipment and computer-readable recording medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20211126

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp