CN1534483A - Realization method of pushbutton function control - Google Patents

Realization method of pushbutton function control Download PDF

Info

Publication number
CN1534483A
CN1534483A CNA031212905A CN03121290A CN1534483A CN 1534483 A CN1534483 A CN 1534483A CN A031212905 A CNA031212905 A CN A031212905A CN 03121290 A CN03121290 A CN 03121290A CN 1534483 A CN1534483 A CN 1534483A
Authority
CN
China
Prior art keywords
button
level
triggering
key
triggering level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA031212905A
Other languages
Chinese (zh)
Other versions
CN1277202C (en
Inventor
� 于
于劼
胡新宏
钟东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Motorola Mobile Communication Technology Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN 03121290 priority Critical patent/CN1277202C/en
Publication of CN1534483A publication Critical patent/CN1534483A/en
Application granted granted Critical
Publication of CN1277202C publication Critical patent/CN1277202C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

A method for implementing the function control of keys includes detecting the trigger levels of keys and sequentially arranging them, calculating the intermediate value of trigger levels between adjacent keys, using them as critical levels, storing them in register, setting up key code between adjacent critical levels, assigning function to each key code, storing key codes and relative functions in register, and triggering key to execute relative function.

Description

A kind of implementation method of keypress function control
Technical field
The present invention relates to electronic product by the key control field, the implementation method of particularly a kind of keypress function control.
Background technology
User's use is usually adopted by the key control electronic product and is finished some functions for convenience.As: adopt the line control earphone button realize in the broadcast of music, time-out, the broadcast one first and play next etc. function; Adopt the line control earphone button to realize making call, receive calls and hang up the telephone.
After being triggered, each button produces different level, electronic product can be carried out the function that line control earphone defined according to the difference of level, as shown in Figure 1, Fig. 1 realizes the synoptic diagram of difference in functionality for button, its specific descriptions are: this electronic product has n button, the level that each button triggers is different, button one triggering level one, level one corresponding function one; Button two triggering levels two, level two corresponding functions two; Button three triggering levels three, level three corresponding functions three; Button four triggering levels four, level four corresponding functions four; Button n triggering level n, level n corresponding function n, wherein, the level value that each button triggers is different.
Method by the key control electronic product exists following shortcoming, shortcoming one: the function that button will be realized all is that Default Value is good, and can only in the limited application that manufacturer provides, use, significant limitation is arranged, the user can't be provided with its function according to custom and the hobby of oneself, also can't provide in manufacturer and use button to operate on the program outside the scope; Shortcoming two: button does not have unified standard, and the level difference that is produced after the button of each manufacturer is triggered is very big, mostly can't be general.The user can only generally use this producer button that provided or defined.
By above-mentioned shortcoming as can be seen, the user not only can not arbitrarily change the button control function, and the button of different manufacturers can not be general.
Summary of the invention
In view of this, the invention provides the implementation method of a kind of keypress function control, this method has solved the problem that button that the user can not arbitrarily change button control function and different manufacturers can not be general.
According to above-mentioned purpose, technical scheme of the present invention is achieved in that
A kind of implementation method of keypress function control, this method comprises:
A, detect the triggering level of each button,, calculate the triggering level intermediate value of adjacent key, be kept in the register as the level critical value with button triggering level series arrangement;
B, between adjacent level critical value, key is set, this key is carried out function setting, the function of this key and this key correspondence is stored in the register;
C, triggering button are carried out the set function of this button.
The triggering level of described each button of detection further comprises:
A1, the idle level that detects each button and storage judge whether the triggering level of each button is identical with the idle level of respective keys, if identical, wait until that then triggering this button detects again, if inequality, changes step a2 over to;
A2, detect this triggering level and last time triggering level the time interval, if interval time is greater than a time thresholding, then store this triggering level, if interval time is smaller or equal to this time thresholding, then with after this triggering level and triggering level addition last time divided by 2 triggering levels that obtain this button.
The described process that calculates the triggering level intermediate value of adjacent key further comprises:
Calculate the difference between the adjacent key triggering level, if difference, is then calculated the triggering level of the mean value of adjacent key triggering level as a button less than given level error range, otherwise, the triggering level of arrangement push-button in order.
Described function setting comprises: the function that the title of button, button have and the environment for use of this function.
Described step C further comprises:
Triggering level is converted to digital triggering level compares, inquire corresponding key, carry out the pairing function of this key with the level critical value of each button of being stored.
Described key is corresponding one by one with button.
Described button triggering level series arrangement is the button triggering level by from big to small series arrangement.
Described triggering level and idle level are converted to digital triggering level respectively and store.
Described time thresholding is 100 milliseconds.
The present invention is by detecting the triggering level of each button, store the level critical value of each button, the user is provided with a key and the corresponding various functions of this key is set between adjacent two level critical values, finally obtain the corresponding mutually data structure of level critical value, key and function of each button, so that the user uses by the requirement of oneself and connects the key control electronic product, therefore, the invention solves the user and can not arbitrarily change the problem that the button of button control function and different manufacturers can not be general.
Description of drawings
Fig. 1 realizes the synoptic diagram of difference in functionality for button.
The process flow diagram that Fig. 2 detects and stores the button triggering level for the present invention.
Fig. 3 carries out the process flow diagram that keypress function is provided with for the present invention.
Fig. 4 is that button of the present invention uses process flow diagram.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, by the following examples and with reference to accompanying drawing, the present invention is described in more detail.
The present invention at first detects and stores the level signal value that each button triggers to the level signal that button triggers, the user is to each button defined function then, the defined function of button is corresponding with the level signal value that button is triggered, and last just can arbitrarily the use according to user's requirement pressed the key control electronic product.
Button is usually with the form of various line traffic controls control electronic product, as line control earphone by the key control palm PC, below be example to further detailed description of the present invention with line control earphone control palm PC:
1) level detection
As shown in Figure 2, the process flow diagram that Fig. 2 detects and stores the button triggering level for the present invention, its concrete steps are:
Step 200,201, the user inserts palm PC with line control earphone, start the level detection program of line control earphone, trace routine reads the idle level signal of each button on the line control earphone, and be translated into digital idle level signal and be stored in the register, idle level signal refers to the level signal of exporting when button is not triggered;
Step 202, palm PC prompting user is that detection system is withdrawed from new button or the requirement of requirement detection, if the user selects to detect new button, then change step 203 over to, otherwise the user selects to withdraw from detection system, changes step 209 over to;
Step 203,204, palm PC detects the level signal of one of them button, and level signal is carried out mould/number (A/D) conversion, is converted to the digital signal level value and is stored in the register, the digital signal level value of button is compared with the digital idle level signal value of corresponding button, judge whether identically, if identical, then this button is not triggered by the user, change step 202 over to, otherwise this button is triggered by the user, changes step 205 over to;
Step 205, palm PC is judged the current time interval of triggering this button and triggering this button last time, if interval greater than preset value, for example, 100 milliseconds, then change step 207 over to, if the time interval is smaller or equal to preset value, illustrate that the user never unclamps this button, then changes step 206 over to;
Step 206, divided by 2, the result who obtains deposits in the register, changes step 202 over to after the digital level value addition of digital signal level value that the trace routine of palm PC will obtain specifically and register-stored;
Step 207,208, if the user triggers is a new button that is not triggered in the past, new register of trace routine initialization, and the digital signal level value after detected level signal A/D changed deposits in this register, changes step 202 over to;
Step 209,210, test procedure will be kept at the digital signal level value that has detected in one group of register and arrange from big to small, and calculate the difference between the adjacent digital signal level, if this difference is less than the given level error range of handheld computer system, represent that then the user has carried out triggering more than once to a certain button, calculate the digital signal level value of the mean value of this key number level signal as this button, otherwise the digital signal level value that directly will detect is as the digital signal level value of this button;
Step 211,212,213, palm PC obtain one group arrange from big to small and and line control earphone button digital signal level value one to one, the trace routine of palm PC calculates the intermediate value of adjacent digital signal level value, this intermediate value is saved in the data structure as the level critical value of each button, and withdraws from the level detection program.
2) function setting
As shown in Figure 3, Fig. 3 carries out the process flow diagram that keypress function is provided with for the present invention, and its concrete steps are:
Step 300,301 accesses the level critical value of each button of line control earphone from handheld computer system, between per two adjacent level critical values a key is set;
Step 302, handheld computer system prompting user is provided with these buttons, and the content of setting comprises: the title of button, function and this function environment of applications;
Step 303, the function setting that level critical value, key and the user of each button carried out generates corresponding mutually data structure and this data structure is kept in the register of palm PC.
3) use of button
As shown in Figure 4, Fig. 4 is that button of the present invention uses process flow diagram, and its concrete steps are;
Step 400,401,402, the user triggers the button of line control earphone, and palm PC receives the level signal of this button, and this level signal is converted to the digital signal level value by A/D;
Step 403, this digital signal level value with stored all compare by the key level critical value, find key codes of pushbuttons corresponding with it, find the applied environment of title, function and this function of this button according to this key codes of pushbuttons;
Step 404,405, handheld computer system are judged present environment for use, carry out this function after the function of determining to carry out according to this environment for use.
Because some errors among a small circle appear in the output level of line control earphone sometimes, difference according to the hardware and the handheld computer system of palm PC, error range also can be different, so the present invention must be with the level error range of considering that handheld computer system is given.
This method is described by the following examples: the line control earphone of playing back music, major function is the broadcast, time-out of music, a last first broadcast is put and function such as next broadcast, utilizing the present invention to be specifically designed to a last first broadcast in the line control earphone of music puts button with next playing function and is set to roll up one page and following one page function, the function to the left or to the right in perhaps being set to play in the e-book.
The present invention not only can make the user fully according to the hobby of oneself and the function of custom setting button, and can make the user arbitrarily use different vendor by the key control palm PC, therefore, the present invention can offer the user and more select, satisfy user's individual demand, improve competitiveness of product, the present invention is simple, cost is lower, has obtained good effect.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being made within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1, a kind of implementation method of keypress function control is characterized in that this method comprises:
A, detect the triggering level of each button,, calculate the triggering level intermediate value of adjacent key, be kept in the register as the level critical value with button triggering level series arrangement;
B, between adjacent level critical value, key is set, this key is carried out function setting, the function of this key and this key correspondence is stored in the register;
C, triggering button are carried out the set function of this button.
2, the method for claim 1 is characterized in that, the triggering level of described each button of detection further comprises:
A1, the idle level that detects each button and storage judge whether the triggering level of each button is identical with the idle level of respective keys, if identical, wait until that then triggering this button detects again, if inequality, changes step a2 over to;
A2, detect this triggering level and last time triggering level the time interval, if interval time is greater than a time thresholding, then store this triggering level, if interval time is smaller or equal to this time thresholding, then with after this triggering level and triggering level addition last time divided by 2 triggering levels that obtain this button.
3, the method for claim 1 is characterized in that, the described process that calculates the triggering level intermediate value of adjacent key further comprises:
Calculate the difference between the adjacent key triggering level, if difference, is then calculated the triggering level of the mean value of adjacent key triggering level as a button less than given level error range, otherwise, the triggering level of arrangement push-button in order.
4, the method for claim 1 is characterized in that, described function setting comprises: the function that the title of button, button have and the environment for use of this function.
5, the method for claim 1 is characterized in that, described step C further comprises:
Triggering level is converted to digital triggering level compares, inquire corresponding key, carry out the pairing function of this key with the level critical value of each button of being stored.
6, the method for claim 1 is characterized in that, described key is corresponding one by one with button.
7, the method for claim 1 is characterized in that, described button triggering level series arrangement is the button triggering level by from big to small series arrangement.
8, method as claimed in claim 1 or 2 is characterized in that, described triggering level and idle level are converted to digital triggering level respectively and store.
9, method as claimed in claim 2 is characterized in that, described time thresholding is 100 milliseconds.
CN 03121290 2003-03-31 2003-03-31 Realization method of pushbutton function control Expired - Fee Related CN1277202C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03121290 CN1277202C (en) 2003-03-31 2003-03-31 Realization method of pushbutton function control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03121290 CN1277202C (en) 2003-03-31 2003-03-31 Realization method of pushbutton function control

Publications (2)

Publication Number Publication Date
CN1534483A true CN1534483A (en) 2004-10-06
CN1277202C CN1277202C (en) 2006-09-27

Family

ID=34285649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03121290 Expired - Fee Related CN1277202C (en) 2003-03-31 2003-03-31 Realization method of pushbutton function control

Country Status (1)

Country Link
CN (1) CN1277202C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917572B (en) * 2006-03-10 2013-03-27 三洋电机株式会社 Television broadcast receiver
CN103513769A (en) * 2013-09-29 2014-01-15 小米科技有限责任公司 Method, device and mobile terminal for setting key function
WO2016101269A1 (en) * 2014-12-26 2016-06-30 华为技术有限公司 Terminal device
CN106205646A (en) * 2016-06-28 2016-12-07 广东欧珀移动通信有限公司 Playback equipment keypress function method to set up, Apparatus and system
CN106302971A (en) * 2015-06-04 2017-01-04 中兴通讯股份有限公司 A kind of method and apparatus identifying earphone
CN111508127A (en) * 2020-04-02 2020-08-07 厦门立林科技有限公司 Intelligent control method of access control system and access control system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917572B (en) * 2006-03-10 2013-03-27 三洋电机株式会社 Television broadcast receiver
CN103513769A (en) * 2013-09-29 2014-01-15 小米科技有限责任公司 Method, device and mobile terminal for setting key function
WO2016101269A1 (en) * 2014-12-26 2016-06-30 华为技术有限公司 Terminal device
CN105934931A (en) * 2014-12-26 2016-09-07 华为技术有限公司 Terminal device
CN105934931B (en) * 2014-12-26 2019-07-19 华为技术有限公司 A kind of terminal installation
CN106302971A (en) * 2015-06-04 2017-01-04 中兴通讯股份有限公司 A kind of method and apparatus identifying earphone
CN106205646A (en) * 2016-06-28 2016-12-07 广东欧珀移动通信有限公司 Playback equipment keypress function method to set up, Apparatus and system
CN106205646B (en) * 2016-06-28 2018-04-03 广东欧珀移动通信有限公司 Playback equipment keypress function method to set up, apparatus and system
CN111508127A (en) * 2020-04-02 2020-08-07 厦门立林科技有限公司 Intelligent control method of access control system and access control system

Also Published As

Publication number Publication date
CN1277202C (en) 2006-09-27

Similar Documents

Publication Publication Date Title
CN1310545C (en) Method for intermediate unlocking of a keypad on a mobile electronic device
CN1758680A (en) Method for permutation and displaying number of mobile communication terminal
CN1416254A (en) Cellular telephone
CN1627764A (en) Mobile communication terminal with multi-input device and method of using the same
CN101039477A (en) Method and apparatus for searching linkman in dialing phone interface of mobile terminal
CN1308474A (en) Menu function controlling method for mobile station
CN1216187A (en) Radio telephone
CN1877502A (en) Apparatus and method for inputting characters using circular key arrangement
CN1592329A (en) Portable terminal device and method and program for specifying function of portable terminal device
CN1277202C (en) Realization method of pushbutton function control
CN101834925B (en) Method and system for configuring key function of terminal
CN1220393C (en) Mobile telephone system and mobile telephone set
CN1531364A (en) Method for defining keyboard function of electronic device
CN101042615A (en) English input method of electric device only with simple key group
CN1461171A (en) Portable terminal device, recording medium, and protable termal device control method
CN1783904A (en) Setting method of mobile phone keys and mobile phone screen side key
CN1960551A (en) Lock key mobile communication terminal and controlling method thereof
CN1816067A (en) Information terminal
CN1428993A (en) Mobile communication electronic equipment capable of automatically simplifying function selection and its method
CN1798406A (en) Method for operating an application and mobile terminal used therefor
CN101656775A (en) Display method and display system of search results of liaisons and computer program product using method
CN101042597A (en) Multi-mode touch control plate
CN1287625C (en) Method for quick browsing of short message, and integrated circuit product manufactured by same method
CN1779617A (en) Method for realizing active function by assembled keys
CN1393773A (en) Method for fast network access of mouse

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: LIANXIANG (BEIJING) CO. LTD.; HUMANTEC INDUSTRIAL

Free format text: FORMER OWNER: LIANXIANG (BEIJING) CO. LTD.

Effective date: 20080627

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20080627

Address after: No. 6, Pioneer Road, Beijing, Haidian District: 100085

Co-patentee after: Lenovo Mobile Communication Technology Ltd.

Patentee after: Lenovo (Beijing) Co., Ltd.

Address before: No. 6, Pioneer Road, Haidian District information industry base, Beijing, China: 100085

Patentee before: Lenovo (Beijing) Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060927

Termination date: 20210331

CF01 Termination of patent right due to non-payment of annual fee