CN1627238B - 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 PDFInfo
- Publication number
- CN1627238B CN1627238B CN 200310119423 CN200310119423A CN1627238B CN 1627238 B CN1627238 B CN 1627238B CN 200310119423 CN200310119423 CN 200310119423 CN 200310119423 A CN200310119423 A CN 200310119423A CN 1627238 B CN1627238 B CN 1627238B
- 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000005540 biological transmission Effects 0.000 claims description 8
- 230000009471 action Effects 0.000 claims description 6
- 238000012546 transfer Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
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. Thisinvention also discloses a method for utilizing said device to identify key operations.
Description
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 the I2C bus module that is connected with button, this I2C bus module is provided with the corresponding different key action in different pieces of information position, be used for when the actuation of keys pressed, automatically wake up, discern the actuation of keys of pressing according to the different pieces of information position, 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 according to actuation of keys that is provided with and the corresponding relation between 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, set in advance the corresponding different key action in different pieces of information position in the I2C bus module, corresponding relation between actuation of keys and the key information value is set, corresponding relation between the operation of key information value and actuation of keys correspondence is set, this method also comprises: A, when the actuation of keys pressed, and the I2C bus module wakes up automatically, the actuation of keys that identification is pressed according to data bit, 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.
Described actuation of keys and the corresponding relation that connects between the key information value are 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 can be defined as 20 to the I2C bus data address of the data that display unit transmits, 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. wire-controlled apparatus, comprise button, it is characterized in that, this device also comprises the I2C bus module that is connected with button, this I2C bus module is provided with the corresponding different key action in different pieces of information position, be used for when the actuation of keys pressed, automatically wake up, discern the actuation of keys of pressing according to the different pieces of information position, 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 according to actuation of keys that is provided with and the corresponding relation between 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. method of utilizing the described device of claim 1 identification actuation of keys, it is characterized in that, set in advance the corresponding different key action in different pieces of information position in the I2C bus module, corresponding relation between actuation of keys and the key information value is set, corresponding relation between the operation of key information value and actuation of keys correspondence is set, and this method also comprises:
A, when the actuation of keys pressed, the I2C bus module wakes up automatically, the actuation of keys that identification is pressed according to data bit sends look-at-me to the main frame that will control, makes 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.
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 CN1627238A (en) | 2005-06-15 |
CN1627238B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105163234B (en) * | 2015-08-04 | 2018-02-02 | 广东欧珀移动通信有限公司 | A kind of adaptation method of self-shooting bar, device and corresponding mobile device |
CN108076407B (en) * | 2017-12-18 | 2020-01-03 | 广东思派康电子科技有限公司 | Incoming call control system of Type-C earphone |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2480923Y (en) * | 2001-03-14 | 2002-03-06 | 厦门华侨电子企业有限公司 | IC card electronic video game apparatus |
-
2003
- 2003-12-10 CN CN 200310119423 patent/CN1627238B/en not_active Expired - Lifetime
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2480923Y (en) * | 2001-03-14 | 2002-03-06 | 厦门华侨电子企业有限公司 | IC card electronic video game apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN1627238A (en) | 2005-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN202872406U (en) | Interface multiplexing circuit and mobile terminal | |
CN101359425B (en) | Receiver and receiving method | |
CN102647522A (en) | Multifunctional universal remote control system based on mobile phone platform | |
CN201698602U (en) | Multimedia teaching integrated machine | |
CN107015507B (en) | Comprehensive expansion system of central controller | |
CN109144582A (en) | Wake-up circuit and electronic equipment | |
CN102902337A (en) | Power supply switching system, computer system and restarting control method thereof | |
CN102253703B (en) | Switch-on and switch-off system of motherboards | |
CN101782802A (en) | Standby power-saving system and method for starting and disconnecting power supply of computer | |
CN103777733B (en) | The method of supplying power to of computer apparatus and general connectivity port module | |
CN212846570U (en) | Type-C interface circuit and touch-control all-in-one | |
CN1627238B (en) | Wire controlled device and method for recognizing key-press operations through the device | |
CN210377453U (en) | Double TYPE-C interface control circuit | |
CN101339458A (en) | One machine multi-workstation computer system and its configuration method, USB Hub box | |
CN112118470A (en) | Awakening method, device and system of set top box and electronic equipment | |
CN201995065U (en) | Wake-up circuit and digital television receiving terminal | |
CN109992129A (en) | A kind of method and system for sharing cell phone keyboard by USB data line | |
CN114071048A (en) | Multi-type video interface conversion device and conversion method | |
CN210155656U (en) | Interactive flat plate with Type-C interface and interactive flat plate system | |
CN101261534A (en) | Bidirectional wireless perimeter set electricity-saving method | |
CN202383814U (en) | Remote controller with voice prompt function | |
CN113867787A (en) | Switching system and method between server network cards | |
CN100587752C (en) | Method and apparatus for controlling communication between double-system electronic equipments | |
CN114339080B (en) | Video matrix switching system based on domestic chip | |
CN220855652U (en) | Docking station |
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 |