CN108111160B - Three-continuous-stroke recognition circuit and three-continuous-stroke recognition method based on same - Google Patents

Three-continuous-stroke recognition circuit and three-continuous-stroke recognition method based on same Download PDF

Info

Publication number
CN108111160B
CN108111160B CN201810004587.1A CN201810004587A CN108111160B CN 108111160 B CN108111160 B CN 108111160B CN 201810004587 A CN201810004587 A CN 201810004587A CN 108111160 B CN108111160 B CN 108111160B
Authority
CN
China
Prior art keywords
interface
triode
resistor
mfb
key switch
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.)
Active
Application number
CN201810004587.1A
Other languages
Chinese (zh)
Other versions
CN108111160A (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.)
Guangdong Spark Technology Co ltd
Original Assignee
Guangdong Spark Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Spark Technology Co ltd filed Critical Guangdong Spark Technology Co ltd
Priority to CN201810004587.1A priority Critical patent/CN108111160B/en
Publication of CN108111160A publication Critical patent/CN108111160A/en
Application granted granted Critical
Publication of CN108111160B publication Critical patent/CN108111160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/0175Coupling arrangements; Interface arrangements
    • H03K19/018Coupling arrangements; Interface arrangements using bipolar transistors only
    • H03K19/01806Interface arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a three-continuous-stroke recognition circuit and a three-continuous-stroke recognition method based on the circuit, wherein the three-continuous-stroke recognition circuit comprises a key switch, a Bluetooth chip and a recognition circuit for connecting the key switch and the Bluetooth chip, the Bluetooth chip is a ROM (read only memory) Bluetooth chip, the Bluetooth chip is provided with an MFB (Multi-frequency bus) interface, a first PIO (particle image input) interface and a second PIO interface, and the recognition circuit comprises a first triode, a second triode, a first resistor, a second resistor, a third resistor and a fourth resistor; the identification method comprises the following steps: 1) judging whether the MFB interface and the first PIO interface have signal input at the same time in the period time; 2) judging whether the MFB interface and the second PIO interface have signal input at the same time in the period time; 3) and judging whether the MFB interface and the second PIO interface simultaneously input signals again in the cycle time. The invention can lead the ROM version Bluetooth chip to identify the three-connection impact of the key switch, thereby effectively reducing the manufacturing cost.

Description

Three-continuous-stroke recognition circuit and three-continuous-stroke recognition method based on same
Technical Field
The invention relates to the technical field of Bluetooth equipment, in particular to a three-continuous-stroke recognition circuit and a three-continuous-stroke recognition method based on the circuit.
Background
At present along with the development of wearing formula smart machine, the bluetooth technology is used also more and more extensively, and the bluetooth wide application is in equipment such as bracelet, wrist-watch and earphone. The ROM version Bluetooth and the flash version Bluetooth chips are released by each large chip manufacturer, the ROM version Bluetooth is that the chip manufacturer burns the firmware into the chip after the firmware is made, a user can only use the firmware through simple configuration and cannot perform secondary programming development, and the flash version Bluetooth chips support the user to modify code programming. Because the price of the ROM version Bluetooth chip is lower, more intelligent devices such as a bracelet, an earphone and the like use the ROM version Bluetooth chip, and the MFB interface of the ROM version Bluetooth chip can only identify single click and double click of a key switch but cannot identify three continuous clicks of the key switch; in order to realize the triple-click function, part of manufacturers of the bluetooth devices have to use a Flash version bluetooth chip to replace a ROM version bluetooth chip, but the manufacturing cost is increased, so that the overall price of the bluetooth device with the triple-click recognition function is difficult to reduce.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a triple-strike recognition circuit and a triple-strike recognition method based on the circuit, aiming at the defects in the prior art, which can enable a ROM-version bluetooth chip to recognize triple-strike of a key switch, effectively reduce the manufacturing cost, and effectively reduce the overall price of a bluetooth device with triple-strike function.
In order to solve the technical problems, the technical scheme of the invention is as follows:
a triple-link-click recognition circuit comprises a key switch, a Bluetooth chip and a recognition circuit connected with the key switch and the Bluetooth chip, wherein the Bluetooth chip is a ROM-version Bluetooth chip, the Bluetooth chip is provided with an MFB interface, a first PIO interface and a second PIO interface, the recognition circuit comprises a first triode, a second triode, a first resistor, a second resistor, a third resistor and a fourth resistor, one end of the key switch is connected with the positive electrode of a power supply, the other end of the key switch is respectively connected with the MFB interface and the emitting electrode of the first triode, the collecting electrode of the first triode is connected with the second PIO interface, the emitting electrode of the first triode is connected with the base electrode of the first triode through the second resistor, the base electrode of the first triode is connected with the collecting electrode of the second triode through the third resistor, the base electrode of the second triode is connected with the first PIO interface through the fourth resistor, and one end of the first resistor is connected with the second PIO interface, and the other end of the first resistor is connected with the ground wire.
As a preferable scheme, the first triode is a PNP type triode.
As a preferable scheme, the second triode is an NPN type triode.
A three-continuous-click identification method is based on Bluetooth equipment, wherein the Bluetooth equipment comprises the three-continuous-click identification circuit, and the three-continuous-click identification method comprises the following steps:
1) judging whether the MFB interface and the first PIO interface have signal input at the same time in the period time, if so, entering the next step; if not, identifying that the key switch is not pressed;
2) judging whether the MFB interface and the second PIO interface have signal input at the same time in the period time, if so, entering the next step, and if not, identifying as clicking a key switch;
3) and judging whether the MFB interface and the second PIO interface simultaneously input signals again in the period time, if so, identifying as a three-continuous-click key switch, and if not, identifying as a double-continuous-click key switch.
Preferably, the cycle time is 500 ms.
As a preferred scheme, the bluetooth device further comprises a PCB, and the bluetooth chip and the identification circuit are disposed on the PCB.
Preferably, the PCB board is provided with an MFB connection pin, and the MFB connection pin of the PCB board is respectively connected with the MFB interface of the bluetooth chip and the emitter of the first triode.
Preferably, one end of the key switch is connected with the positive electrode of the power supply, and the other end of the key switch is connected with the MFB connecting pin of the PCB.
As a preferred scheme, the bluetooth device further comprises a key, and the key switch is arranged in the key.
The invention has the beneficial effects that: through the cooperation of the key switch, the identification circuit, the ROM version Bluetooth chip and the triple-strike identification method, the ROM version Bluetooth chip can identify triple-strike of the key switch, so that the manufacturing cost is effectively reduced, and the overall price of the Bluetooth equipment with the triple-strike function is effectively reduced.
Drawings
FIG. 1 is a diagram of a three-stroke recognition circuit according to the present invention;
FIG. 2 is a schematic block diagram of a three-stroke recognition method according to the present invention.
In the figure: the Bluetooth module comprises a 1-key switch, a 2-Bluetooth chip, a 21-MFB interface, a 22-first PIO interface, a 23-second PIO interface, a 3-first triode, a 4-second triode, a 5-first resistor, a 6-second resistor, a 7-third resistor, a 8-fourth resistor, a 9-key, a 10-PCB and a 101-MFB connecting pin.
Detailed Description
The structural and operational principles of the present invention are explained in further detail below with reference to the accompanying drawings.
As shown in fig. 1, a triple-link-click identification circuit comprises a key switch 1, a bluetooth chip 2 and an identification circuit connecting the key switch 1 and the bluetooth chip 2, wherein the bluetooth chip 2 is a ROM-version bluetooth chip, the bluetooth chip 2 is provided with an MFB interface 21, a first PIO interface 22 and a second PIO interface 23, the identification circuit comprises a first triode 3, a second triode 4, a first resistor 5, a second resistor 6, a third resistor 7 and a fourth resistor 8, one end of the key switch 1 is connected with a positive electrode of a power supply, the other end of the key switch 1 is respectively connected with the MFB interface 21 and an emitter of the first triode 3, a collector of the first triode 3 is connected with the second PIO interface 23, an emitter of the first triode 3 is connected with a base of the first triode 3 through the second resistor 6, a base of the first triode 3 is connected with a collector of the second triode 4 through the third resistor 7, the base of the second triode 4 is connected with the first PIO interface 22 through the fourth resistor 8, the emitter of the second triode 4 is connected with the ground wire, one end of the first resistor 5 is connected with the second PIO interface 23, and the other end of the first resistor 5 is connected with the ground wire. The first triode 3 is a PNP type triode, and the second triode 4 is an NPN type triode.
As shown in fig. 2, a three-tap identification method is based on a bluetooth device, where the bluetooth device includes the three-tap identification circuit, and the three-tap identification method includes the following steps:
1) judging whether the MFB interface 21 and the first PIO interface 22 have signal input at the same time in the period time, if so, entering the next step; if not, identifying that the key switch 1 is not pressed;
2) judging whether the MFB interface 21 and the second PIO interface 23 have signal input at the same time in the period time, if so, entering the next step, and if not, identifying as clicking the key switch 1;
3) and judging whether the MFB interface 21 and the second PIO interface 23 simultaneously input signals again in the period time, if so, identifying the three-continuous-click key switch 1, and if not, identifying the two-continuous-click key switch 1. The cycle time is 500 ms. The Bluetooth device further comprises a PCB (printed circuit board) 10, and the Bluetooth chip 2 and the identification circuit are arranged on the PCB 10. The PCB 10 is provided with an MFB connection pin 101, and the MFB connection pin 101 of the PCB 10 is respectively connected with the MFB interface 21 of the Bluetooth chip 2 and the emitter of the first triode 3. One end of the key switch 1 is connected with the positive electrode of the power supply, and the other end of the key switch 1 is connected with the MFB connecting pin 101 of the PCB 10. The Bluetooth device further comprises a key 9, and the key switch 1 is arranged in the key 9.
Click recognition process: when the key switch 1 is clicked, the identification circuit is conducted, a part of current directly flows into the bluetooth chip 2 through the MFB interface 21, because the first triode 3 and the second triode 4 are both in a cut-off state at the moment, the other part of current flows into the bluetooth chip 2 through the second resistor 6, the third resistor 7, the fourth resistor 8 and the first PIO interface 22 in sequence, and the time for the process is very short, it can be understood that the process is simultaneous, the bluetooth chip 2 can recognize that the MFB interface 21 and the first PIO interface 22 have signal input simultaneously, because the user cannot have the second key 9 input within 500ms, namely the bluetooth chip 2 cannot recognize that the signal input exists again, so the bluetooth chip 2 recognizes that the MFB interface 21 and the first PIO interface 22 have signal input simultaneously within 500ms, and recognizes that the key switch 1 is clicked.
And (3) double-click identification process: when the key switch 1 is pressed for the first time, the identification circuit is conducted, a part of current directly flows into the Bluetooth chip 2 through the MFB interface 21, because the first triode 3 and the second triode 4 are in a cut-off state at the time, the other part of current flows into the Bluetooth chip 2 through the second resistor 6, the third resistor 7, the fourth resistor 8 and the first PIO interface 22 in sequence, the process is very short, the process can be understood as simultaneous, the Bluetooth chip 2 can identify that the MFB interface 21 and the first PIO interface 22 have signal input simultaneously, when the key switch 1 is pressed for the second time within 500ms, the identification circuit is conducted again, a part of current directly flows into the Bluetooth chip 2 through the MFB interface 21, because the first triode 3 and the second triode 4 are both conducted at the time, the other part of current flows into the Bluetooth chip 2 through the first triode 3 and the second PIO interface 23, the Bluetooth chip 2 can identify that the MFB interface 21 and the second IPO interface have signal input simultaneously, since the third key 9 input is not available within 500ms, that is, the bluetooth chip 2 does not recognize the signal input any more, after the bluetooth chip 2 recognizes that the MFB interface 21 and the first PIO interface 22 have the signal input at the same time within 500ms, it recognizes that the MFB interface 21 and the second PIO interface 23 have the signal input at the same time, and then recognizes that the key switch 1 is double-clicked.
Three-continuous-stroke identification process: when the key switch 1 is pressed for the first time, the identification circuit is conducted, a part of current directly flows into the Bluetooth chip 2 through the MFB interface 21, because the first triode 3 and the second triode 4 are in a cut-off state at the time, the other part of current flows into the Bluetooth chip 2 through the second resistor 6, the third resistor 7, the fourth resistor 8 and the first PIO interface 22 in sequence, the process is very short, the process can be understood as simultaneous, the Bluetooth chip 2 can identify that the MFB interface 21 and the first PIO interface 22 have signal input simultaneously, when the key switch 1 is pressed for the second time within 500ms, the identification circuit is conducted again, a part of current directly flows into the Bluetooth chip 2 through the MFB interface 21, because the first triode 3 and the second triode 4 are both conducted at the time, the other part of current flows into the Bluetooth chip 2 through the first triode 3 and the second PIO interface 23, the Bluetooth chip 2 can identify that the MFB interface 21 and the second IPO interface have signal input simultaneously, when the key switch 1 is pressed for the third time within 500ms, the recognition circuit is conducted for the third time, a part of current directly flows into the bluetooth chip 2 through the MFB interface 21, because the first triode 3 and the second triode 4 are still in a conducting state at the moment, the other part of current flows into the bluetooth chip 2 through the first triode 3 and the second PIO interface 23, at the moment, the bluetooth chip 2 can recognize that the MFB interface 21 and the second IPO interface have signals flowing simultaneously for the second time, and at the moment, the bluetooth chip 2 is recognized as a three-link key switch.
The cycle time is not always 500ms, but may be set according to actual conditions.
The above description is only a preferred embodiment of the present invention, and all the minor modifications, equivalent changes and modifications made to the above embodiment according to the technical solution of the present invention are within the scope of the technical solution of the present invention.

Claims (7)

1. A triple-strike identification circuit, characterized by: the Bluetooth chip is a ROM-version Bluetooth chip, an MFB interface, a first PIO interface and a second PIO interface are arranged on the Bluetooth chip, the identification circuit comprises a first triode, a second triode, a first resistor, a second resistor, a third resistor and a fourth resistor, one end of the key switch is connected with a positive electrode of a power supply, the other end of the key switch is respectively connected with the MFB interface and an emitting electrode of the first triode, a collector electrode of the first triode is connected with the second PIO interface, an emitting electrode of the first triode is connected with a base electrode of the first triode through the second resistor, a base electrode of the first triode is connected with a collector electrode of the second triode through the third resistor, a base electrode of the second triode is connected with the first PIO interface through the fourth resistor, and an emitting electrode of the second triode is connected with a ground wire, one end of the first resistor is connected with the second PIO interface, and the other end of the first resistor is connected with a ground wire; the first triode is a PNP triode, and the second triode is an NPN triode.
2. A three-continuous-click recognition method is characterized by comprising the following steps: based on a bluetooth device comprising the triple-tap identification circuit of claim 1, the triple-tap identification method comprises the steps of:
1) judging whether the MFB interface and the first PIO interface have signal input at the same time in the period time, if so, entering the next step; if not, identifying that the key switch is not pressed;
2) judging whether the MFB interface and the second PIO interface have signal input at the same time in the period time, if so, entering the next step, and if not, identifying as clicking a key switch;
3) and judging whether the MFB interface and the second PIO interface simultaneously input signals again in the period time, if so, identifying as a three-continuous-click key switch, and if not, identifying as a double-continuous-click key switch.
3. A three-tap recognition method according to claim 2, characterized in that: the cycle time is 500 ms.
4. A three-tap recognition method according to claim 2, characterized in that: the Bluetooth device further comprises a PCB, and the Bluetooth chip and the identification circuit are arranged on the PCB.
5. The three-click recognition method according to claim 4, wherein: and the MFB connecting pin of the PCB is respectively connected with the MFB interface of the Bluetooth chip and the emitting electrode of the first triode.
6. The three-click recognition method according to claim 5, wherein: one end of the key switch is connected with the positive electrode of the power supply, and the other end of the key switch is connected with an MFB connecting pin of the PCB.
7. A three-tap recognition method according to claim 2, characterized in that: the Bluetooth device further comprises a key, and the key switch is arranged in the key.
CN201810004587.1A 2018-01-03 2018-01-03 Three-continuous-stroke recognition circuit and three-continuous-stroke recognition method based on same Active CN108111160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810004587.1A CN108111160B (en) 2018-01-03 2018-01-03 Three-continuous-stroke recognition circuit and three-continuous-stroke recognition method based on same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810004587.1A CN108111160B (en) 2018-01-03 2018-01-03 Three-continuous-stroke recognition circuit and three-continuous-stroke recognition method based on same

Publications (2)

Publication Number Publication Date
CN108111160A CN108111160A (en) 2018-06-01
CN108111160B true CN108111160B (en) 2021-07-02

Family

ID=62218832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810004587.1A Active CN108111160B (en) 2018-01-03 2018-01-03 Three-continuous-stroke recognition circuit and three-continuous-stroke recognition method based on same

Country Status (1)

Country Link
CN (1) CN108111160B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2916758Y (en) * 2005-11-24 2007-06-27 郑国书 Input device with multi-keystroke function
CN101042618A (en) * 2007-04-30 2007-09-26 李明 Touching external connection keyboard
CN101424985A (en) * 2008-10-17 2009-05-06 陆志春 Mouse for conversing simultaneous clicks of two buttons to be double clicks of left button and implementing method
TW200928870A (en) * 2007-12-21 2009-07-01 Inventec Corp Method for key press detection and computer accessible storage media to store program thereof
CN205232431U (en) * 2015-12-09 2016-05-11 深圳市博贝特科技发展有限公司 Bluetooth sound box

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8648970B2 (en) * 2010-08-02 2014-02-11 Chip Goal Electronics Corporation, Roc Remote controllable video display system and controller and method therefor
US9489051B2 (en) * 2013-07-01 2016-11-08 Blackberry Limited Display navigation using touch-less gestures

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2916758Y (en) * 2005-11-24 2007-06-27 郑国书 Input device with multi-keystroke function
CN101042618A (en) * 2007-04-30 2007-09-26 李明 Touching external connection keyboard
TW200928870A (en) * 2007-12-21 2009-07-01 Inventec Corp Method for key press detection and computer accessible storage media to store program thereof
CN101424985A (en) * 2008-10-17 2009-05-06 陆志春 Mouse for conversing simultaneous clicks of two buttons to be double clicks of left button and implementing method
CN205232431U (en) * 2015-12-09 2016-05-11 深圳市博贝特科技发展有限公司 Bluetooth sound box

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
广播专用蓝牙音频接口设计;刁鹏;《日用电器》;20170430;34-37 *
新型多功能蓝牙音箱设计;朱 巍;《武汉轻工大学学报》;20140630;第33卷(第2期);52-59 *

Also Published As

Publication number Publication date
CN108111160A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN103019991B (en) Interface system and changing method, USB key and UART terminal
CN105137260B (en) A kind of active antenna state detection circuit
CN208621645U (en) The test fixture of communication module
CN108111160B (en) Three-continuous-stroke recognition circuit and three-continuous-stroke recognition method based on same
CN202102275U (en) IO port expansion circuit
CN211718896U (en) Burning and testing device for eSIM card
CN107483919B (en) A kind of camera module detection circuit
CN103389438B (en) A kind of for the welding detection system with cpu pcb and method
CN115454903A (en) Automatic interface plugging and unplugging control device and method
CN2901379Y (en) Processing box chip
CN205263798U (en) Simple and easy singlechip burns to be write and testing arrangement
CN204993697U (en) TV set core detection device
CN103311766A (en) Mobile equipment switching device and working mode switching method thereof
CN207366662U (en) A kind of device of Internet of Things instrument patch SIM card performance detection
CN111181818B (en) Multithreading signal processing system
CN207586694U (en) A kind of robot controller of integrated two-way direct current motor driving, multichannel servos control and sensor interface
CN214310805U (en) Charging test circuit and device of electronic equipment
CN205178596U (en) Wireless mouse power module structure
CN218526142U (en) Concentrator telecommunication module
CN220252570U (en) Development board for Internet of things
CN101294990A (en) Current/voltage inbreak testing apparatus
CN209267568U (en) A kind of wireless communication device
CN211508667U (en) Mobile power supply
CN205427834U (en) Computer software debug system
CN214311711U (en) Power panel and chip burning device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant