CN1627238A - Wire controlled device and method for recognizing key-press operations through the device - Google Patents

Wire controlled device and method for recognizing key-press operations through the device Download PDF

Info

Publication number
CN1627238A
CN1627238A CN 200310119423 CN200310119423A CN1627238A CN 1627238 A CN1627238 A CN 1627238A CN 200310119423 CN200310119423 CN 200310119423 CN 200310119423 A CN200310119423 A CN 200310119423A CN 1627238 A CN1627238 A CN 1627238A
Authority
CN
China
Prior art keywords
keys
actuation
main frame
wire
key information
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
CN 200310119423
Other languages
Chinese (zh)
Other versions
CN1627238B (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
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 200310119423 priority Critical patent/CN1627238B/en
Publication of CN1627238A publication Critical patent/CN1627238A/en
Application granted granted Critical
Publication of CN1627238B publication Critical patent/CN1627238B/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

This invention relates to a line control device including keys and a 12c(Inter-integrated circuit) bus module connected with the keys for identifying operations of the key, delivering interrupt signals to the host being controlled by the line-control device, converting the key operation to key information value and transferring the value to the host being controlled by the device by 12 C bus. This invention also discloses a method for utilizing said device to identify key operations.

Description

A kind of wire-controlled apparatus and with the method for this device identification actuation of keys
Technical field
The present invention relates to button control technology field, particularly a kind of wire-controlled apparatus and with the method for this device identification actuation of keys.
Background technology
Along with development of electronic technology, a lot of portable electric appts all provide wire-controlled apparatus, and for example, walkman, CD (CD) machine, disk (MD) machine and palm PC have all disposed wire-controlled apparatus.The user can operate the electronic equipment that wire-controlled apparatus is controlled easily by wire-controlled apparatus.
At present, the method for wire-controlled apparatus identification actuation of keys is: utilize the different different actuation of keys of voltage gradient identification.Its detailed process is: set different actuation of keys by the hardware circuit of line control earphone in advance and have different voltage gradient scopes, then the computing circuit in the line control earphone judge actuation of keys output magnitude of voltage in which voltage gradient scope, thereby determine concrete actuation of keys.For example: the voltage gradient scope that preestablishes the action of " broadcast " function button is 2.8V~3.2V, when the voltage of current actuation of keys output was 3.0V, then the computing circuit in the line control earphone learnt that according to the magnitude of voltage of current button the button of pressing is the button of " broadcast " function.
As seen, this method is in order to realize discerning actuation of keys, need obtain the voltage of current actuation of keys output, judge the gradient scope at the voltage place of current actuation of keys output then, therefore, this method not only needs to design the complex calculations circuit, and requires components and parts to have very high stability and very strong anti-interference.Virtually, increased the cost of this wire-controlled apparatus.
Summary of the invention
In view of this, one object of the present invention is to provide a kind of wire-controlled apparatus, and this installs not only simplicity of design, and does not need components and parts to have the identification that very high stability just can realize actuation of keys, has saved cost.
Another object of the present invention is to provide a kind of method of discerning actuation of keys, and this method can realize the identification to actuation of keys easily.
According to above-mentioned purpose, technical scheme of the present invention is achieved in that
A kind of wire-controlled apparatus, comprise button, this device also comprises I2C (Inter-Integrated Circuit) bus module that is connected with button, be used to discern actuation of keys, send the main frame that look-at-me will be controlled to this wire-controlled apparatus, actuation of keys is converted to the key information value, and sends the key information value to main frame that this wire-controlled apparatus will be controlled by the I2C bus.
This device also comprises interface unit, and this interface unit links to each other with the I2C bus module, is used for look-at-me or key information value that the I2C bus module sends are transmitted to the main frame that this wire-controlled apparatus will be controlled.
This device also comprises display unit, and this display unit links to each other with interface unit, is used for receiving the operation information of the main frame transmission that will be controlled by this wire-controlled apparatus and showing this operation information by interface unit.
This device also comprises display unit, and this display unit links to each other with the main frame that this wire-controlled apparatus will be controlled, and is used to receive the operation information that main frame that this wire-controlled apparatus will control transmits by the I2C bus and shows this operation information.
The I2C bus address of the I2C bus address of described transfer operation information and described transmission key information value is inequality.
This device also comprises loudspeaker unit, and this loudspeaker unit links to each other with the main frame that this wire-controlled apparatus will be controlled, and is used to receive the voice signal that main frame that this wire-controlled apparatus will control sends.
A kind of method of discerning actuation of keys sets in advance the corresponding relation between actuation of keys and the key information value, and the corresponding relation between the operation of key information value and actuation of keys correspondence is set, and this method also comprises:
A, I2C bus module send look-at-me to the main frame that will control, make this main frame enter interruption status;
B, I2C bus module are determined the key information value and this value of information is sent to the main frame that will control by the I2C buses according to the corresponding relation that sets in advance between actuation of keys and the key information value;
After C, the main frame that will control receive this value of information, determine operation according to the corresponding relation between the operation of key information value that sets in advance and actuation of keys correspondence, and operate accordingly.
Corresponding relation between described actuation of keys and the key information value is kept in the I2C bus module, and the corresponding relation between the operation of described key information value and actuation of keys correspondence is kept in the main frame that this key device will control.
The I2C bus module has pre-determined the corresponding relation between data bit and the key information value, and the corresponding relation between described actuation of keys and the key information value is the corresponding relation between data bit and the actuation of keys.
Before described steps A, this method also comprises: whether the identification of I2C bus module has actuation of keys, if, execution in step A, otherwise, method ends.
By such scheme as can be seen, the corresponding relation of pre-defined actuation of keys of the present invention and data bit, I2C in the push-button unit (Inter-Integrated Circuit) bus module is according to this corresponding relation, determine the data bit of actuation of keys correspondence, thereby determine to export to the key information value of main frame.In main frame, also preserve the corresponding relation between key information value and the corresponding host service function of this actuation of keys, thereby main frame is operated accordingly according to the key information value.Because the present invention adopts data bit identification actuation of keys, rather than adopts voltage gradient identification actuation of keys, so equipment dependability height provided by the invention, the method that provides is easy; Because the present invention has adopted general purpose I 2C bus, so the present invention does not need the complex calculations circuit, has saved cost.
Description of drawings
Fig. 1 is the structural drawing of wire-controlled apparatus of the present invention.
Fig. 2 is the workflow diagram of push-button unit of the present invention.
Fig. 3 is the workflow diagram of display unit of the present invention.
Embodiment
For the purposes of the present invention, technical scheme and advantage be clearer, by the following examples and with reference to accompanying drawing, the present invention is further elaborated.
The present invention utilizes the different actuation of keys of different pieces of information position definition in the I2C bus in advance, and this corresponding relation is stored in the I2C bus module, and when pushing button, the I2C bus module in the wire-controlled apparatus is according to the different actuation of keys of different pieces of information position identification.The I2C bus is the existing parallel bus that is used for the alternate standard data line, can connect various integrated circuit or functional module.
Because the data bit correspondence in the I2C bus module the key information value of output, thus the corresponding operation of this key information value and this actuation of keys is corresponding, and with in the main frame that this corresponding relation is stored in this wire-controlled apparatus is connected.When pushing button, wire-controlled apparatus obtains corresponding data bit according to this actuation of keys, exports corresponding key information value according to this data bit to main frame again, and main frame is determined the corresponding line operate of going forward side by side of operating according to this key information value.
As shown in Figure 1, Fig. 1 is the structural drawing of wire-controlled apparatus of the present invention, and this wire-controlled apparatus comprises display unit, interface unit and push-button unit.
Display unit comprises display screen, this display screen must be supported the visit of I2C bus, as: model is the display screen of RGS080960390R003, this display screen receives from the information of the current operation of interface unit transmission by the I2C bus, and information that will this current operation is presented on the display screen, and current operation information can be for current just in title, length, author and the play mode etc. of play list.
Push-button unit comprises button and I2C bus module, and when button was pressed, the I2C bus module of push-button unit sent look-at-me to interface unit, and this actuation of keys corresponding key value of information is outputed to interface unit by the I2C bus.
Button of the present invention comprises: broadcast/time-out (Play/Pause) button, stop (Stop) button, a last head (Last) button, next (Next) button, increase volume (Volumn+) button, reduce volume (Volumn-) button, loop play (Cyc) button and play mode (PlayMode) button etc.
The model of I2C bus module of the present invention is PCF8574 or PCF8574A, can support 8 actuation of keys, if when the button of wire-controlled apparatus during more than 8, can adopt the method that increases one or more pieces I2C bus modules to solve.
Model is that the I2C bus module of PCF8574 or PCF8574A is in dormant state at ordinary times, when actuation of keys, wakes up automatically, and therefore, its power consumption is very low.
Interface unit sends to main frame with the look-at-me that push-button unit sends, after main frame receives this look-at-me, enter interruption status, interface unit transmits this actuation of keys corresponding key value of information by the I2C bus to main frame, and main frame is operated accordingly according to this key information value.Behind the main frame complete operation, transmit the display screen of the information of current operation by system interface unit to display unit, the information of this current operation also is to transmit with the I2C bus.
Because the transmission of data realizes by the I2C bus between main frame and the display unit, the transmission of data also realizes by the I2C bus between main frame and the push-button unit, so for the data that make transmission can not misinformated, so the I2C bus data address definition of the data that the I2C bus data address of the data that main frame transmits to display unit and push-button unit transmit to main frame is different, as: main frame is to the I2C of the data of display unit transmission, the bus data address can be defined as 20, and push-button unit can be defined as 16 to the I2C bus data address of the data that main frame transmits.
Main frame of the present invention has just been stored the corresponding relation between the different key value of information and the main frame different operating, and how it operates identical with prior art.
Wire-controlled apparatus provided by the invention can be line control earphone, when wire-controlled apparatus provided by the invention is line control earphone, as long as increase loudspeaker unit of the prior art, this loudspeaker unit is connected with the right ear signals line by left ear signal wire with the main frame that will control, is used to receive the voice signal that main frame sends.Also can have interface unit between this loudspeaker unit and the main frame, this interface unit is used for the voice signal that main frame sends is transmitted to loudspeaker unit.
As shown in Figure 2, Fig. 2 is the workflow diagram of push-button unit of the present invention, and its concrete steps are:
I2C bus module in step 201, the push-button unit has judged whether that button presses, if, change step 202 over to, otherwise, step 201 returned;
I2C bus module in step 202, the push-button unit sends look-at-me to the Be Controlled main frame by interface unit;
Step 203, main frame enter interruption status after receiving this look-at-me, wait for the value of information that receives button;
I2C bus module in step 204, the push-button unit is discerned this actuation of keys, and this actuation of keys is converted to the key information value, after by interface unit this key information value being sent to main frame, remove this actuation of keys record, the key information value transmits with the I2C bus;
After step 205, main frame receive this key information, determine corresponding operation, realize this operation according to the method for operating of prior art according to predefined corresponding relation.
As shown in Figure 3, Fig. 3 is the workflow diagram of display unit of the present invention, and its detailed process is:
After step 300, main frame are operated, send the instruction of initialization display screen to display unit by interface unit;
After step 301, display unit receive this instruction, the initialization display screen;
Step 302, main frame send the information of current operation to display unit by interface unit;
After step 303, display unit receive this information, show this information.
The process of the current operation information of the whole demonstration of display unit is identical with prior art, and what only transmit current operation information is the I2C bus, rather than common data line.
Below lift a specific embodiment explanation the present invention.
Suppose that push-button unit has 8 buttons, the corresponding relation between corresponding relation between its button and the data bit and data bit and the key information value is as shown in table 1:
Button Data bit The key information value
????Play/Pause ????D0 ????FE
????Stop ????D1 ????FD
????Last ????D2 ????FB
????Next ????D3 ????F7
????Volumn+ ????D4 ????EF
????Volumn- ????D5 ????DF
????Cyc ????D6 ????BF
????PlayMode ????D7 ????7F
Table 1
In table 1, the corresponding data bit of each actuation of keys is set, data bit is FF when 8 corresponding 8 data bit of button, no actuation of keys.In the table 1 first tabulation is shown the action of button, secondary series is expressed as the pairing data bit of actuation of keys, the 3rd classifies the pairing key information value that will export to main frame of data bit as, for example: when actuation of keys when stopping (Stop), pairing data bit is D1, pairing key information value is FD, and the key information value of promptly exporting to main frame is FD.
Owing to exist corresponding relation between key information value and the corresponding host service function of this actuation of keys, the operation that sets in advance key information value FD and main frame " stops " to exist corresponding relation, when then main frame obtains the key information value and is FD, determine that according to corresponding relation the operating process that will carry out is " stopping ", thereby carry out the operation of " stopping ".
Device and method provided by the invention is owing to by the different different actuation of keys of data bit identification, therefore have very high stability; Device and method provided by the invention adopts the I2C bus module of automatic energy saving, so power consumption is very low; Device and method provided by the invention can pass through to increase I2C bus module expansion bus interface, so extensibility is strong; Device and method provided by the invention has adopted the I2C bus module, no longer need actuation of keys output voltage of the prior art to gather and the comparative voltage circuit, so circuit is simple.
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 (10)

1, a kind of wire-controlled apparatus, comprise button, it is characterized in that, this device also comprises I2C (Inter-Integrated Circuit) bus module that is connected with button, be used to discern actuation of keys, send the main frame that look-at-me will be controlled to this wire-controlled apparatus, actuation of keys is converted to the key information value, and sends the key information value to main frame that this wire-controlled apparatus will be controlled by the I2C bus.
2, wire-controlled apparatus as claimed in claim 1, it is characterized in that, this device also comprises interface unit, and this interface unit links to each other with the I2C bus module, is used for look-at-me or key information value that the I2C bus module sends are transmitted to the main frame that this wire-controlled apparatus will be controlled.
3, wire-controlled apparatus as claimed in claim 2, it is characterized in that, this device also comprises display unit, and this display unit links to each other with interface unit, is used for receiving the operation information of the main frame transmission that will be controlled by this wire-controlled apparatus and showing this operation information by interface unit.
4, wire-controlled apparatus as claimed in claim 1, it is characterized in that, this device also comprises display unit, and this display unit links to each other with the main frame that this wire-controlled apparatus will be controlled, and is used to receive the operation information that main frame that this wire-controlled apparatus will control transmits by the I2C bus and shows this operation information.
5, wire-controlled apparatus as claimed in claim 4 is characterized in that, the I2C bus address of the I2C bus address of described transfer operation information and described transmission key information value is inequality.
6, wire-controlled apparatus as claimed in claim 1 is characterized in that, this device also comprises loudspeaker unit, and this loudspeaker unit links to each other with the main frame that this wire-controlled apparatus will be controlled, and is used to receive the voice signal that main frame that this wire-controlled apparatus will control sends.
7, a kind of method of utilizing the described device identification of claim 1 actuation of keys, it is characterized in that, set in advance the corresponding relation between actuation of keys and the key information value, the corresponding relation between the operation of key information value and actuation of keys correspondence is set, this method also comprises:
A, I2C bus module send look-at-me to the main frame that will control, make this main frame enter interruption status;
B, I2C bus module are determined the key information value and this value of information is sent to the main frame that will control by the I2C buses according to the corresponding relation that sets in advance between actuation of keys and the key information value;
After C, the main frame that will control receive this value of information, determine operation according to the corresponding relation between the operation of key information value that sets in advance and actuation of keys correspondence, and operate accordingly.
8, the method for identification actuation of keys as claimed in claim 7, it is characterized in that, corresponding relation between described actuation of keys and the key information value is kept in the I2C bus module, and the corresponding relation between the operation of described key information value and actuation of keys correspondence is kept in the main frame that this key device will control.
9, the method for identification actuation of keys as claimed in claim 8, it is characterized in that, the I2C bus module has pre-determined the corresponding relation between data bit and the key information value, and the corresponding relation between described actuation of keys and the key information value is the corresponding relation between data bit and the actuation of keys.
10, the method for identification actuation of keys as claimed in claim 7 is characterized in that, before described steps A, this method also comprises: whether the identification of I2C bus module has actuation of keys, if, execution in step A, otherwise, method ends.
CN 200310119423 2003-12-10 2003-12-10 Wire controlled device and method for recognizing key-press operations through the device Expired - Lifetime CN1627238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200310119423 CN1627238B (en) 2003-12-10 2003-12-10 Wire controlled device and method for recognizing key-press operations through the device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200310119423 CN1627238B (en) 2003-12-10 2003-12-10 Wire controlled device and method for recognizing key-press operations through the device

Publications (2)

Publication Number Publication Date
CN1627238A true CN1627238A (en) 2005-06-15
CN1627238B CN1627238B (en) 2010-04-21

Family

ID=34761374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200310119423 Expired - Lifetime CN1627238B (en) 2003-12-10 2003-12-10 Wire controlled device and method for recognizing key-press operations through the device

Country Status (1)

Country Link
CN (1) CN1627238B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105163234A (en) * 2015-08-04 2015-12-16 广东欧珀移动通信有限公司 Selfie stick fitting method, device and corresponding mobile device
CN108076407A (en) * 2017-12-18 2018-05-25 广东思派康电子科技有限公司 The call control system of Type-C earphones

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2480923Y (en) * 2001-03-14 2002-03-06 厦门华侨电子企业有限公司 IC card electronic video game apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105163234A (en) * 2015-08-04 2015-12-16 广东欧珀移动通信有限公司 Selfie stick fitting method, device and corresponding mobile device
CN105163234B (en) * 2015-08-04 2018-02-02 广东欧珀移动通信有限公司 A kind of adaptation method of self-shooting bar, device and corresponding mobile device
CN108076407A (en) * 2017-12-18 2018-05-25 广东思派康电子科技有限公司 The call control system of Type-C earphones
CN108076407B (en) * 2017-12-18 2020-01-03 广东思派康电子科技有限公司 Incoming call control system of Type-C earphone

Also Published As

Publication number Publication date
CN1627238B (en) 2010-04-21

Similar Documents

Publication Publication Date Title
CN2791777Y (en) Control system of multi-media platform
CN1139027C (en) Systems and methods for intermittently communicating diagnostic information from user input devices
CN101089835A (en) Control method, system and equipment of single serial port multi-CPU
CN101359425A (en) Receiver and receiving method
CN1174196C (en) Air conditioner remote monitoring system with master/slave control function
CN1992804A (en) Camera module for communicating through I2C method
CN1136490C (en) Electronic equipment
CN1282099C (en) Computer peripheral device and its working method
CN1991564A (en) Wireless projection method and system and apparatus thereof
CN1322313A (en) Information processor, display control method, and recorded medium
CN1627238A (en) Wire controlled device and method for recognizing key-press operations through the device
CN1869900A (en) Mouse mobile terminal and its using method
CN1220941C (en) Method for realizing computer multi-functional starting up
CN1188788C (en) Method for setting master-slave USB interface in MP3 player
CN1202452C (en) Computer device able to sense user state and computer system with automatic direct network access function
CN216391233U (en) Multi-type video interface conversion device
CN2845331Y (en) Telephone via power line frequency carrier
CN1581121A (en) Semicondustor storage device having host system operation function
CN100335992C (en) Computer system combining user interface and display device
CN1320468C (en) Radio peripheral equipment and control method capable of supporting basic input function
CN1673929A (en) Apparatus and method for remote-controlling computer
CN220419827U (en) Module connection circuit system for cleaning device and cleaning device
CN1795427A (en) Device for signal connection and energy supply for consumer electronics apparatuses
CN219420776U (en) Broadcasting adapter
CN1228703C (en) Pushbutton device and operation method

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
CX01 Expiry of patent term

Granted publication date: 20100421

CX01 Expiry of patent term