Key input method and device

文档序号:1888552 发布日期:2021-11-26 浏览:10次 中文

阅读说明:本技术 一种按键输入方法及装置 (Key input method and device ) 是由 朱江涛 向文林 许立 陈可夫 向文明 于 2021-08-07 设计创作,主要内容包括:本发明专利提供了一种按键输入方法及装置,包括:获取作用于终端的按压指令信息,所述按压指令信息包括数量信息、排序信息和时长信息;当所述按压指令信息的数量信息大于一时,根据所述按压指令信息的数量信息、排序信息生成新的按压指令信息;查询所述按压指令信息对应的预设控制命令存储项,生成初级控制命令;当所述按压指令的时长信息超过时长预设值时,将所述初级控制命令切换成次级控制命令,通过分辨按压指令的数量信息、排序信息能够生成新的指令信息,克服了按键输入的数量局限,例如,在3个按键的基础上,将任意按键组合,可达到7个可输入指令,极大地扩充了可输入指令的数量,通过对按压指令的时长监测来调整可输入指令。(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.)

1. A key input 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.

2. The method according to claim 1, wherein the obtaining of the pressing instruction information acting on the terminal comprises:

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.

3. The method according to claim 1, wherein 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 comprises:

when the quantity information of the press instruction information is unique, the sequencing information of the press instruction information is saved.

4. The method according to claim 1, wherein 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.

5. A key input device, comprising:

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.

6. The apparatus of claim 5, wherein the acquisition module comprises:

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.

7. The apparatus of claim 5, wherein the generating module comprises:

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.

8. The apparatus of claim 5, wherein the processing module comprises:

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.

9. A key input device, comprising:

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.

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 an acquisition 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;

the generating 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;

the processing 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, the acquisition module 1, as shown in fig. 6, includes:

the sensing 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;

the statistic 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, the generating module 2, as shown in fig. 5, includes:

the pairing 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, the processing 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:

a processor 101;

a memory 102 for storing instructions executable by the processor 101;

wherein the processor 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.

The processor 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.

The processor 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: processing component 100, memory 102, communication component 110, input/output interface 120, power component 130, multimedia component 140, sensor component 150, and audio component 160. The processing 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. The processing 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, the processing component 100 can include one or more modules that facilitate interaction between the processing component 100 and other components. For example, the processing component 100 may include a multimedia module to facilitate interaction between the multimedia component 140 and the processing component 100.

The memory 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. The memory 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. The power supply component 130 provides power to the various components of the terminal device. The power 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.

The multimedia 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, the multimedia 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. The audio component 160 is configured to output and/or input audio signals. For example, the audio 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 the memory 102 or transmitted via the communication component 110. In some embodiments, the audio assembly 160 further includes a speaker for outputting audio signals. The input/output interface 120 provides an interface between the processing 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. The sensor assembly 150 includes one or more sensors for providing various aspects of status assessment for the terminal device. For example, the sensor 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, the sensor 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. The sensor assembly 150 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 150 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 150 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication 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, the communication part 110 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication 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 the memory 102, comprising instructions executable by the processor 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 a processor 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.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种输入方法、装置和用于输入的装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类