CN108668200B - Audio payment control circuit and mobile terminal - Google Patents

Audio payment control circuit and mobile terminal Download PDF

Info

Publication number
CN108668200B
CN108668200B CN201810697757.9A CN201810697757A CN108668200B CN 108668200 B CN108668200 B CN 108668200B CN 201810697757 A CN201810697757 A CN 201810697757A CN 108668200 B CN108668200 B CN 108668200B
Authority
CN
China
Prior art keywords
resistor
audio
capacitor
pin
signal
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
CN201810697757.9A
Other languages
Chinese (zh)
Other versions
CN108668200A (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.)
Shenzhen Weibu Information Co Ltd
Original Assignee
Shenzhen Weibu Information 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 Shenzhen Weibu Information Co Ltd filed Critical Shenzhen Weibu Information Co Ltd
Priority to CN201810697757.9A priority Critical patent/CN108668200B/en
Publication of CN108668200A publication Critical patent/CN108668200A/en
Application granted granted Critical
Publication of CN108668200B publication Critical patent/CN108668200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses an audio payment control circuit and a mobile terminal, wherein the mobile terminal comprises a CPU, a card reader module, an earphone socket and an audio payment control circuit; the CPU detects the current mode and outputs a control signal, an audio signal or an audio signal loaded with a payment instruction of a corresponding level; the earphone socket outputs a microphone signal or a microphone signal loaded with a payment instruction; in the use mode, the audio payment control circuit converts an audio signal into an earphone audio signal according to a control signal and transmits the earphone audio signal to the earphone socket, and converts a microphone signal into a positive microphone signal and a negative microphone signal and transmits the positive microphone signal to the CPU; in the payment mode, the audio payment control circuit converts the audio signal loaded with the payment instruction and the microphone signal into card signals according to the control signals and transmits the card signals to the card reader module, and the card reader module performs payment operation according to the payment instruction. The payment function can be realized through the audio signal without adding a hub or a USB port additionally.

Description

Audio payment control circuit and mobile terminal
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to an audio payment control circuit and a mobile terminal.
Background
Domestic wireless payment has evolved rapidly, but most of foreign cashless payment is based on credit cards and debit cards, and is not separated from pos machines. With the rapid development of the biological recognition industry in recent years, fingerprint, face, iris and other recognition technologies are mature, and various kinds of identity recognition are used for final purposes, namely safe payment.
The current recognition modes are modularized, and USB interface protocols are mostly used. When a pos machine scheme adopts a USB HUB chip, after a series of modules such as fingerprint identification, bar code identification and the like are correspondingly arranged, if no redundant USB port is used for connecting a card reader, HUB (HUB) needs to be added, so that the cost is increased.
Then we consider the use of audio signals to enable communication with the card reader module to support magnetic stripe cards and chip cards.
The scheme is a low-cost proposal implementation mode for realizing the communication between the audio signal and the card reader module without influencing the normal audio port function.
Disclosure of Invention
Aiming at the technical problems, the embodiment of the invention provides an audio payment control circuit and a mobile terminal, which are used for solving the problems that the existing USB port for safe payment is insufficient, an additional hub is required to be added, and the cost is increased.
The embodiment of the invention provides an audio payment control circuit which is connected with a CPU, a card reader module and an earphone socket, and comprises a control unit, a card switching unit, a microphone switching unit and an audio unit;
The control unit generates a selection signal of a corresponding level according to the control signal;
When in a use mode, the card switching unit conducts a passage between the CPU and the earphone socket according to the selection signal, converts an audio signal output by the CPU into a corresponding earphone audio signal and transmits the corresponding earphone audio signal to the earphone socket; the microphone switching unit conducts a passage between the earphone socket and the audio unit according to the selection signal, converts a microphone signal output by the earphone socket into an audio microphone signal and transmits the audio microphone signal to the audio unit;
In a payment mode, the card switching unit conducts a passage between the CPU and the card reader module according to a selection signal of a corresponding level, converts an audio signal which is output by the CPU and is loaded with a payment instruction into a corresponding card signal and transmits the corresponding card signal to the card reader module; the microphone switching unit conducts a passage between the earphone socket and the card reader module according to the selection signal, converts a microphone signal which is output by the earphone socket and is loaded with a payment instruction into a corresponding card microphone signal and transmits the card microphone signal to the card reader module;
The audio unit converts the audio microphone signals into positive and negative microphone signals and transmits the positive and negative microphone signals to the CPU;
the control unit is connected with the card switching unit, the microphone switching unit and the CPU, and the card switching unit and the audio unit are connected with the CPU; the card switching unit is connected with the card reader module and the earphone socket, and the microphone switching unit is connected with the card reader module, the earphone socket and the audio unit.
Optionally, in the audio payment control circuit, the control unit includes a first resistor and a second resistor;
One end of the first resistor is connected with the CPU; the other end of the first resistor is connected with one end of the second resistor, the output end of the control unit and the microphone switching unit, and the other end of the second resistor is grounded.
Optionally, in the audio payment control circuit, the card switching unit includes a first switching chip, a third resistor, a fourth resistor, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor, a first magnetic bead and a second magnetic bead;
The D+ pin of the first switching chip is connected with the CPU and is grounded through a first capacitor; the D-pin of the first switching chip is connected with the CPU and is grounded through a second capacitor; the D1-pin and the D1+ pin of the first switching chip are both connected with the card reader module, the D2-pin of the first switching chip is connected with one end of the third capacitor and the 3 rd pin of the earphone socket through the second magnetic bead, the D2+ pin of the first switching chip is connected with one end of the fourth capacitor and the 4 th pin of the earphone socket through the first magnetic bead, the other end of the third capacitor and the other end of the fourth capacitor are both grounded, and the VCC pin of the first switching chip is connected with one end of the third resistor and the power supply end through the fourth resistor; the other end of the third resistor is connected with the output end of the control unit and the SEL pin of the first switching chip; the 1 st pin of the earphone socket is connected with the microphone switching unit and is grounded through a fifth capacitor.
Optionally, in the audio payment control circuit, the card switching unit further includes a first protection tube, a second protection tube, a third protection tube, and a fourth protection tube;
One end of the first protection tube is connected with the 3 rd pin of the earphone socket, one end of the second protection tube is connected with the 5 th pin of the earphone socket, one end of the third protection tube is connected with the 4 th pin of the earphone socket, and one end of the fourth protection tube is connected with the 1 st pin of the earphone socket; the other end of the first protective tube is connected with the other end of the second protective tube, the other end of the third protective tube, the other end of the fourth protective tube and the ground.
Optionally, in the audio payment control circuit, the microphone switching unit includes: the second switching chip, the third magnetic bead and the fifth resistor;
The D+ pin of the second switching chip is connected with the audio unit through a third magnetic bead, the D1+ pin of the second switching chip is connected with the card reader module, the D2+ pin of the second switching chip is connected with the 1 st pin of the earphone socket, the VCC pin of the second switching chip is connected with the power supply end through a fifth resistor, and the SEL pin of the second switching chip is connected with the output end of the control unit.
Optionally, in the audio payment control circuit, the audio unit includes: a sixth capacitance, a seventh capacitance, an eighth capacitance, a ninth capacitance, a tenth capacitance, an eleventh capacitance, a sixth resistance, a seventh resistance, an eighth resistance, and a ninth resistance;
one end of the sixth capacitor is connected with one end of the seventh capacitor, one end of the ninth capacitor and the CPU; the other end of the sixth capacitor is connected with one end of the tenth capacitor, one end of the eighth capacitor and the CPU, the other end of the ninth capacitor is connected with the other end of the tenth capacitor and the ground, the other end of the seventh capacitor is connected with one end of the sixth resistor and one end of the seventh resistor, and the other end of the sixth resistor is connected with the MIC power supply end; the other end of the seventh resistor is connected with one end of the eighth resistor, one end of the ninth resistor, one end of the eleventh capacitor and the CPU, the other end of the eighth resistor is connected with the bias voltage end, the other end of the ninth resistor is connected with the other end of the eighth capacitor, and the other end of the eleventh capacitor is grounded.
Optionally, in the audio payment control circuit, the card reader module includes: a card reader, a fourth magnetic bead, a fifth magnetic bead, a sixth magnetic bead, a tenth resistor, an eleventh resistor, a twelfth capacitor, a thirteenth capacitor, a fourteenth capacitor and a fifteenth capacitor;
The 1 st pin of the card reader is connected with the card power supply end and is grounded through a fifteenth capacitor; the 3 rd pin of the card reader is connected with one end of the sixth magnetic bead and one end of the twelfth capacitor, and the 5 th pin of the card reader is connected with one end of the fifth magnetic bead, one end of the twelfth capacitor and one end of the tenth resistor; the 6 th pin of the card reader is connected with one end of the fourth magnetic bead, one end of the fourteenth capacitor and one end of the eleventh resistor; the other end of the fourth magnetic bead is connected with the D1+ pin of the first switching chip, the other end of the fifth magnetic bead is connected with the D1-pin of the first switching chip, and the other end of the sixth magnetic bead is connected with the D1+ pin of the second switching chip; the other end of the twelfth capacitor is connected with the other end of the thirteenth capacitor, the other end of the fourteenth capacitor and the ground; the other end of the tenth resistor is connected with the other end of the eleventh resistor and the ground.
Optionally, in the audio payment control circuit, the control unit includes a triode, a gate resistor and a transmitting resistor;
The base of the triode is connected with the power supply end through the gate resistor, the emitter of the triode is connected with one end of the emitting resistor and the ground, and the other end of the emitting resistor is connected with the output end of the control unit and the collector of the triode.
Optionally, in the audio payment control circuit, the control unit includes a first resistor, a triode, a gate resistor and a transmitting resistor;
One end of the first resistor is connected with the CPU; the other end of the first resistor is reserved and connected with the other end of the transmitting resistor, the output end of the control unit and the collector electrode of the triode; the base electrode of the triode is connected with the power supply end of the card through the gate resistor, and the emitter electrode of the triode is reserved and connected with one end of the emitting resistor and the ground.
The second aspect of the embodiment of the invention provides a mobile terminal, which comprises a circuit board, wherein a CPU, a card reader module and an earphone socket are arranged on the circuit board, the circuit board is also provided with an audio payment control circuit, and the audio payment control circuit is connected with the CPU, the card reader module and the earphone socket;
the CPU detects the current mode and outputs a control signal, an audio signal or an audio signal loaded with a payment instruction of a corresponding level; the earphone socket outputs a microphone signal or a microphone signal loaded with a payment instruction;
When in a use mode, the audio payment control circuit converts the audio signal into a corresponding earphone audio signal according to a control signal of a corresponding level and transmits the corresponding earphone audio signal to an earphone socket, and converts the microphone signal into a corresponding positive microphone signal and a corresponding negative microphone signal and transmits the corresponding positive microphone signal to the CPU;
And in a payment mode, the audio payment control circuit converts the audio signal loaded with the payment instruction and the microphone signal into corresponding card signals according to control signals of corresponding levels and transmits the corresponding card signals to the card reader module, and the card reader module performs payment operation according to the payment instruction.
In the technical scheme provided by the embodiment of the invention, the mobile terminal comprises a CPU, a card reader module, an earphone socket and an audio payment control circuit, wherein the audio payment control circuit is connected with the CPU, the card reader module and the earphone socket; the CPU detects the current mode and outputs a control signal, an audio signal or an audio signal loaded with a payment instruction of a corresponding level; the earphone socket outputs a microphone signal or a microphone signal loaded with a payment instruction; when in a use mode, the audio payment control circuit converts the audio signal into a corresponding earphone audio signal according to a control signal of a corresponding level and transmits the corresponding earphone audio signal to an earphone socket, and converts the microphone signal into a corresponding positive microphone signal and a corresponding negative microphone signal and transmits the corresponding positive microphone signal to the CPU; and in a payment mode, the audio payment control circuit converts the audio signal loaded with the payment instruction and the microphone signal into corresponding card signals according to control signals of corresponding levels and transmits the corresponding card signals to the card reader module, and the card reader module performs payment operation according to the payment instruction. On the basis of ensuring the existing audio function, a hub or a USB port is not required to be additionally arranged, and the payment function can be realized through an audio signal; the problem of current safe payment's USB port not enough need additionally increase the concentrator, lead to the cost to increase is solved.
Drawings
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 2 is a schematic circuit diagram of a control unit, a card switching unit and an earphone socket in an audio payment control circuit according to an embodiment of the invention.
Fig. 3 is a schematic circuit diagram of a microphone switching unit in an audio payment control circuit according to an embodiment of the invention.
Fig. 4 is a schematic circuit diagram of an audio unit in an audio payment control circuit according to an embodiment of the invention.
FIG. 5 is a schematic circuit diagram of a card reader module according to an embodiment of the invention.
Fig. 6 is a circuit schematic diagram of a control unit, a card switching unit and an earphone socket in the audio payment control circuit according to the second embodiment of the invention.
Fig. 7 is a schematic circuit diagram of a control unit, a card switching unit and an earphone socket in an audio payment control circuit according to a third embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Embodiments of the present invention are intended to be within the scope of the present invention as defined by the appended claims.
Referring to fig. 1, the mobile terminal provided by the embodiment of the invention includes a circuit board, on which an audio payment control circuit 10, a CPU 20, a card reader module 30 and an earphone socket J1 are disposed; the audio payment control circuit 10 is connected with the CPU 20, the card reader module 30 and the earphone socket J1, and the earphone socket J1 is externally connected with an earphone. The CPU detects the current mode and outputs a control signal, an audio signal or an audio signal loaded with a payment instruction (the payment is not a general audio signal, is a special audio signal loaded with the payment instruction, and is used for communicating with the card reader module 30); the earphone socket outputs a microphone signal or a microphone signal loaded with a payment instruction.
In the use mode, the audio payment control circuit 10 converts the audio signal into a corresponding earphone audio signal according to a control signal of a corresponding level and transmits the corresponding earphone audio signal to the earphone socket J1, and converts the microphone signal into a corresponding positive and negative microphone signal and transmits the corresponding positive and negative microphone signal to the CPU or a microphone built in the mobile terminal so as to realize an audio function; in the payment mode, the audio payment control circuit 10 converts the audio signal loaded with the payment instruction and the microphone signal into corresponding card signals according to the control signals of corresponding levels and transmits the corresponding card signals to the card reader module 30, and the card reader module 30 performs payment operation according to the payment instruction so as to realize a card swiping payment function. Therefore, under the condition that the normal function of the audio port is not affected, the audio communication between the CPU and the earphone socket can be realized, and the payment communication between the CPU and the card reader module can be realized.
It should be understood that the mobile terminal may be selected as a tablet pos machine; the mobile device can also be selected as a tablet personal computer, a smart phone and other mobile devices with a 3G module or a 4G module, and is matched with the device with the built-in card swiping module.
The audio payment control circuit 10 includes a control unit 110, a card switching unit 120, a microphone switching unit 130, and an audio unit 140; the control unit 110 is connected with the card switching unit 120, the microphone switching unit 130 and the CPU 20, and the card switching unit 120 and the audio unit 140 are connected with the CPU 20; the card switching unit 120 connects the card reader module 30 and the earphone jack J1, and the microphone switching unit 130 connects the card reader module 30, the earphone jack J1, and the audio unit 140. The control unit 110 generates a selection signal of a corresponding level according to the control signal; in the use mode, the card switching unit 120 turns on a path between the CPU 20 and the earphone socket J1 according to the selection signal, converts an audio signal output by the CPU 20 into a corresponding earphone audio signal, and transmits the corresponding earphone audio signal to the earphone socket J1; the microphone switching unit 130 conducts a path between the earphone jack J1 and the audio unit 140 according to the selection signal, converts a microphone signal output by the earphone jack J1 into an audio microphone signal, and transmits the audio microphone signal to the audio unit 140; the audio unit 140 converts the audio microphone signal into positive and negative microphone signals and transmits the positive and negative microphone signals to the CPU (the audio decoding chip may be implemented by the CPU or PMU (mono class D audio codec), depending on the specific requirements); in the payment mode, the card switching unit 120 turns on a path between the CPU and the card reader module 30 according to the selection signal, and converts the audio signal loaded with the payment instruction and output by the CPU 20 into a corresponding card signal and transmits the corresponding card signal to the card reader module 30; the microphone switching unit 130 switches on the path between the earphone jack J1 and the card reader module 30 according to the selection signal, and converts the microphone signal loaded with the payment instruction and output by the earphone jack J1 into a corresponding card signal (i.e., a card microphone signal) and transmits the card signal to the card reader module 30.
In the first embodiment, the switching selection of the CARD switching unit 120 and the microphone switching unit 130 is controlled by the high-low level of the control signal ADUIO _card_sel output from the GPIO port of the CPU. Communication switching of the audio signals between the earphone and the card reader module can be realized, and communication switching of the microphone signals between the CPU and the card reader module can be realized; on the basis of guaranteeing the existing audio function, a hub or a USB port is not required to be additionally arranged, the payment function can be achieved through the audio signal and the microphone signal, and cost is saved.
Referring to fig. 2, the control unit 110 includes a first resistor R1 and a second resistor R2; one end of the first resistor R1 is connected with a CPU (used for inputting a control signal ADUIO _CARD_SEL); the other end of the first resistor R1 is connected to one end of the second resistor R2, the output terminal OUT of the control unit 110, and the microphone switching unit 130, and the other end of the second resistor R2 is grounded.
The card switching unit 120 includes a first switching chip (preferably WAS 7227Q) U1, a third resistor R3, a fourth resistor R4, a first capacitor C1, a second capacitor C2, a third capacitor C3, a fourth capacitor C4, a fifth capacitor C5, a first magnetic bead L1 and a second magnetic bead L2; the D+ pin of the first switching chip U1 is connected with a CPU (used for inputting an audio left signal HSL) and is grounded through a first capacitor C1; the D-pin of the first switching chip U1 is connected with a CPU (used for inputting an audio right signal HSR) and is grounded through a second capacitor C2; the D1-pin and the D1+ pin of the first switching chip U1 are both connected with the card reader module 30, the D2-pin of the first switching chip U1 is connected with one end of the third capacitor C3 and the 3 rd pin of the earphone socket J1 through the second magnetic bead L2, the D2+ pin of the first switching chip U1 is connected with one end of the fourth capacitor C4 and the 4 th pin of the earphone socket J1 through the first magnetic bead L1, the other end of the third capacitor C3 and the other end of the fourth capacitor C4 are both grounded, and the VCC pin of the first switching chip U1 is connected with one end of the third resistor R3 and the power supply end VCC through the fourth resistor R4; the other end of the third resistor R3 is connected with the output end OUT of the control unit 110 and the SEL pin of the first switching chip U1; the 1 st pin of the earphone socket J1 is connected to the microphone switching unit 130 and is also grounded through the fifth capacitor C5.
The first magnetic bead L1 and the second magnetic bead L2 are preferably patch magnetic beads, and high-frequency interference on the left and right audio signals (hp_hsl, hp_hsr) of the earphone is isolated by using a characteristic curve of high impedance at high frequency. The first capacitor C1 to the fourth capacitor C4 are preferably patch filter capacitors for filtering out unwanted high frequency interference on the audio left and right signals (HSL, HSR) and the earphone left and right audio signals.
Preferably, the card switching unit 120 further includes a first protection tube D1, a second protection tube D2, a third protection tube D3, and a fourth protection tube D4; one end of the first protection tube D1 is connected with the 3 rd pin of the earphone socket J1, one end of the second protection tube D2 is connected with the 5 th pin of the earphone socket J1 (for transmitting an earphone interrupt signal HP_DET), one end of the third protection tube D3 is connected with the 4 th pin of the earphone socket J1, and one end of the fourth protection tube D4 is connected with the 1 st pin of the earphone socket J1; the other end of the first protection tube D1 is connected with the other end of the second protection tube D2, the other end of the third protection tube D3, the other end of the fourth protection tube D4 and the ground. The first through fourth protection tubes D1 through D4 are preferably ESD devices, so that the card switching unit 120 can pass the relevant ESD test standard.
Referring to fig. 3, the microphone switching unit 130 includes: a second switching chip (model is preferably WAS 7227Q) U2, a third magnetic bead L3 and a fifth resistor R5; the d+ pin of the second switching chip U2 is connected to the audio unit 140 (for outputting an audio microphone signal ext_mic) through the third magnetic bead L3, the d1+ pin of the second switching chip U2 is connected to the card reader module 30, the d2+ pin of the second switching chip U2 is connected to the 1 st pin of the earphone socket J1, the VCC pin of the second switching chip U2 is connected to the power supply terminal VCC through the fifth resistor R5, and the SEL pin of the second switching chip U2 is connected to the output terminal OUT of the control unit 110.
Referring to fig. 4, the audio unit 140 includes: a sixth capacitance C6, a seventh capacitance C7, an eighth capacitance C8, a ninth capacitance C9, a tenth capacitance C10, an eleventh capacitance C11, a sixth resistance R6, a seventh resistance R7, an eighth resistance R8, and a ninth resistance R9; one end of the sixth capacitor C6 is connected to one end of the seventh capacitor C7, one end of the ninth capacitor C9 and the CPU 20; the other end of the sixth capacitor C6 is connected with one end of the tenth capacitor C10, one end of the eighth capacitor C8 and the CPU 20, the other end of the ninth capacitor C9 is connected with the other end of the tenth capacitor C10 and the ground, the other end of the seventh capacitor C7 is connected with one end of the sixth resistor R6 and one end of the seventh resistor R7, and the other end of the sixth resistor R6 is connected with the MIC power supply end VUMIC; the other end of the seventh resistor R7 is connected to one end of the eighth resistor R8, one end of the ninth resistor R9, one end of the eleventh capacitor C11 and the CPU, the other end of the eighth resistor R8 is connected to the bias voltage terminal ACD (for supplying power to the audio unit 140 and providing a bias voltage to the audio unit 140), the other end of the ninth resistor R9 is connected to the other end of the eighth capacitor C8, and the other end of the eleventh capacitor C11 is grounded.
Referring to fig. 5, the card reader module 30 includes: the card reader JB, the fourth magnetic bead L4, the fifth magnetic bead L5, the sixth magnetic bead L6, the tenth resistor R10, the eleventh resistor R11, the twelfth capacitor C12, the thirteenth capacitor C13, the fourteenth capacitor C14 and the fifteenth capacitor C15; the 1 st pin of the card READER JB is connected with the card power supply end VDD_READER and is grounded through a fifteenth capacitor C15; the 3 rd pin of the card reader JB is connected with one end of the sixth magnetic bead L6 and one end of the twelfth capacitor C12, and the 5 th pin of the card reader JB is connected with one end of the fifth magnetic bead L5, one end of the twelfth capacitor C12 and one end of the tenth resistor R10; the 6 th pin of the card reader JB is connected with one end of the fourth magnetic bead L4, one end of the fourteenth capacitor C14 and one end of the eleventh resistor R11; the other end of the fourth magnetic bead L4 is connected with the D1+ pin of the first switching chip U1, the other end of the fifth magnetic bead L5 is connected with the D1-pin of the first switching chip U1, and the other end of the sixth magnetic bead L6 is connected with the D1+ pin of the second switching chip U2; the other end of the twelfth capacitor C12 is connected with the other end of the thirteenth capacitor C13, the other end of the fourteenth capacitor C14 and the ground; the other end of the tenth resistor R10 is connected to the other end of the eleventh resistor R11 and ground.
The working principle of the mobile terminal is as follows:
When the mobile terminal is in the use mode, the control signal ADUIO _card_sel outputs a high level or a high resistance mode by default, and the selection signal a_c_sel of the switching chip is a high level, so that the D-pins of the first switching chip U1 and the second switching chip U2 are connected with the D2-pin, and the d+ pin is connected with the d2+ pin. The audio signals (including the audio left signal HSL and the audio right signal HSR) output by the CPU are output through the D2+ -pin of the first switching chip U1, and become earphone audio signals (including the earphone left audio signal HP_HSL and the earphone right audio signal HP_HSR) to be transmitted to the earphone socket J1, so that the earphone is provided for an earphone to use, and the earphone function is realized. The microphone signal hp_mic output from the earphone socket J1 is output through the d+ pin of the second switching chip U2, becomes an audio microphone signal ext_mic, and is transmitted to the audio unit 140. The audio unit 140 converts the audio microphone signal ext_mic into positive and negative microphone signals (MICN, MICP 2) and transmits to the CPU 20 for audio processing.
When the CARD reading interface is opened and the payment mode is entered, the CARD power supply end vdd_read of the CARD READER module is opened, the CPU pulls down the control signal ADUIO _card_sel, and the selection signal a_c_sel is also pulled down through the first resistor R1, so that the d±pins of the first switching chip U1 and the second switching chip U2 are correspondingly connected with the D1±pins. The CPU outputs an audio signal loaded with a payment instruction (because the audio signal is the same signal line and is represented by HSL and HSR, but the specific signal content is different), and the audio signal is output through D1+ -feet of the first switching chip U1 and becomes a CARD signal (comprising HSL_card and HSR_card); meanwhile, the microphone signal HP_MIC loaded with the payment instruction and output by the earphone socket J1 is output through the D1+ pin of the second switching chip U2, becomes a CARD microphone signal MIC_card and is transmitted to the CARD reader JB, so that the CARD swiping function is realized.
When the CPU detects that payment is completed and exits, the control signal ADUIO _card_SEL is changed to a high level, the switching operation when the mobile terminal is in a use mode is repeated, and the audio signal is automatically switched back to the earphone socket J1. After the audio output mode is switched back, the earphone, the radio and the wire control function can work normally and are not affected, and the earphone is not required to be plugged or unplugged.
In specific implementation, the switching of the access of the switching chip can also be controlled through the power supply network of the card swiping module, namely the card supply end VDD_READER of the card READER module.
In the second embodiment, other circuits are unchanged except for the circuit change of the control unit 110. Referring to fig. 6, the control unit 110 / includes a transistor Q, a gate resistor RA1 and a transmitting resistor RA2; the base of the triode Q is connected with the card power supply end VDD_READER through a gate resistor RA1, the emitter of the triode Q is connected with one end of an emitting resistor RA2 and the ground, and the other end of the emitting resistor RA2 is connected with the output end OUT of the control unit 110 / and the collector of the triode Q.
With continued reference to fig. 3 to 6, in the second embodiment, when the mobile terminal is in the use mode and the card power supply terminal vdd_read of the card READER module is not powered, the selection signal a_c_sel is pulled up to a high level through the third resistor R3; the other working principles are the same as those of the first embodiment, and will not be described here. When the card reading interface is opened, the card power supply end VDD_READER supplies power, the triode Q of the NPN channel is driven to enter a saturated conduction mode, the collector network of the triode Q is pulled down, namely the selection signal A_C_SEL is changed into a low level; the rest of the working principles are the same as the payment mode of the first embodiment, and will not be described here. After the payment is completed and the card power supply end VDD_READER is not powered, the selection signal A_C_SEL is pulled up to be high level again, and the audio signal is automatically switched back to the earphone socket to switch the echo frequency output mode.
It should be understood that if the power supply 3.3V (vdd_read) of the card READER module 30 is common to the 3.3V used by other systems of the motherboard, the circuit of the control unit of the first embodiment is adopted for implementation; this saves separate devices such as DC/DC and thus cost. If the resources are in tension, no redundant GPIO ports are used for outputting the control signal ADUIO _CARD_SEL, and the power supply end VDD_READER of the CARD READER module 30 is independently provided by the power management chip PMU (or other programmable power supply) and is not multiplexed with other power supplies; the circuit of the control unit of the second embodiment is selected to be implemented; therefore, GPIO ports of the main chip can be effectively saved to realize other functions.
If the use condition of the specific GPIO port is not clear, for convenience of selection, a compatible design may be performed on the circuit board, that is, each device in the control unit circuits in the first embodiment and the second embodiment is welded on the circuit board in advance, as in the control unit 100 // in the third embodiment shown in fig. 7, which includes the first resistor R1, the triode Q, the gate resistor RA1 and the transmitting resistor RA2;
One end of the first resistor R1 is connected with the CPU; the other end of the first resistor R1 is reserved and connected with the other end of the transmitting resistor RA2, the output end OUT of the control unit 100 // and the collector electrode of the triode Q; the base electrode of the triode Q is connected with the card power supply end VDD_READER through the gate resistor RA1, and the emitter electrode of the triode Q is reserved and connected with one end of the emitting resistor RA2 and the ground. Which circuit configuration is needed is to directly connect the broken line shown at the broken line (which means that the reserved connection is not connected on the circuit temporarily, and whether the connection is actually connected is selected according to the situation).
In summary, according to the audio payment control circuit and the mobile terminal provided by the invention, the communication switching between the CPU and the earphone and the communication switching between the CPU and the card reader can be realized by using 2 groups of switching chips to perform the path selection; on the basis of guaranteeing the existing audio function, the payment function can be achieved through the audio signal without additionally adding a hub or a USB port, the cost is saved, and the echo frequency function can be automatically switched after the payment is completed. And because the frequency range of the audio is relatively low, the audio is contained in the specification of the switching chip, and various indexes of the audio cannot be influenced.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An audio payment control circuit is connected with a CPU, a card reader module and an earphone socket and is characterized by comprising a control unit, a card switching unit, a microphone switching unit and an audio unit;
The control unit generates a selection signal of a corresponding level according to the control signal;
When in a use mode, the card switching unit conducts a passage between the CPU and the earphone socket according to the selection signal, converts an audio signal output by the CPU into a corresponding earphone audio signal and transmits the corresponding earphone audio signal to the earphone socket; the microphone switching unit conducts a passage between the earphone socket and the audio unit according to the selection signal, converts a microphone signal output by the earphone socket into an audio microphone signal and transmits the audio microphone signal to the audio unit;
In a payment mode, the card switching unit conducts a passage between the CPU and the card reader module according to a selection signal of a corresponding level, converts an audio signal which is output by the CPU and is loaded with a payment instruction into a corresponding card signal and transmits the corresponding card signal to the card reader module; the microphone switching unit conducts a passage between the earphone socket and the card reader module according to the selection signal, converts a microphone signal which is output by the earphone socket and is loaded with a payment instruction into a corresponding card microphone signal and transmits the card microphone signal to the card reader module;
The audio unit converts the audio microphone signals into positive and negative microphone signals and transmits the positive and negative microphone signals to the CPU;
The control unit is connected with the card switching unit, the microphone switching unit and the CPU, and the card switching unit and the audio unit are connected with the CPU; the card switching unit is connected with the card reader module and the earphone socket, and the microphone switching unit is connected with the card reader module, the earphone socket and the audio unit; the earphone socket is externally connected with an earphone.
2. The audio payment control circuit of claim 1, wherein the control unit comprises a first resistor and a second resistor;
One end of the first resistor is connected with the CPU; the other end of the first resistor is connected with one end of the second resistor, the output end of the control unit and the microphone switching unit, and the other end of the second resistor is grounded.
3. The audio payment control circuit of claim 2, wherein the card switching unit comprises a first switching chip, a third resistor, a fourth resistor, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor, a first magnetic bead, and a second magnetic bead;
The D+ pin of the first switching chip is connected with the CPU and is grounded through a first capacitor; the D-pin of the first switching chip is connected with the CPU and is grounded through a second capacitor; the D1-pin and the D1+ pin of the first switching chip are both connected with the card reader module, the D2-pin of the first switching chip is connected with one end of the third capacitor and the 3 rd pin of the earphone socket through the second magnetic bead, the D2+ pin of the first switching chip is connected with one end of the fourth capacitor and the 4 th pin of the earphone socket through the first magnetic bead, the other end of the third capacitor and the other end of the fourth capacitor are both grounded, and the VCC pin of the first switching chip is connected with one end of the third resistor and the power supply end through the fourth resistor; the other end of the third resistor is connected with the output end of the control unit and the SEL pin of the first switching chip; the 1 st pin of the earphone socket is connected with the microphone switching unit and is grounded through a fifth capacitor.
4. The audio payment control circuit of claim 3, wherein the card switching unit further comprises a first protection tube, a second protection tube, a third protection tube, and a fourth protection tube;
One end of the first protection tube is connected with the 3 rd pin of the earphone socket, one end of the second protection tube is connected with the 5 th pin of the earphone socket, one end of the third protection tube is connected with the 4 th pin of the earphone socket, and one end of the fourth protection tube is connected with the 1 st pin of the earphone socket; the other end of the first protective tube is connected with the other end of the second protective tube, the other end of the third protective tube, the other end of the fourth protective tube and the ground.
5. The audio payment control circuit of claim 3, wherein the microphone switching unit comprises: the second switching chip, the third magnetic bead and the fifth resistor;
The D+ pin of the second switching chip is connected with the audio unit through a third magnetic bead, the D1+ pin of the second switching chip is connected with the card reader module, the D2+ pin of the second switching chip is connected with the 1 st pin of the earphone socket, the VCC pin of the second switching chip is connected with the power supply end through a fifth resistor, and the SEL pin of the second switching chip is connected with the output end of the control unit.
6. The audio payment control circuit of claim 5, wherein the audio unit comprises: a sixth capacitance, a seventh capacitance, an eighth capacitance, a ninth capacitance, a tenth capacitance, an eleventh capacitance, a sixth resistance, a seventh resistance, an eighth resistance, and a ninth resistance;
one end of the sixth capacitor is connected with one end of the seventh capacitor, one end of the ninth capacitor and the CPU; the other end of the sixth capacitor is connected with one end of the tenth capacitor, one end of the eighth capacitor and the CPU, the other end of the ninth capacitor is connected with the other end of the tenth capacitor and the ground, the other end of the seventh capacitor is connected with one end of the sixth resistor and one end of the seventh resistor, and the other end of the sixth resistor is connected with the MIC power supply end; the other end of the seventh resistor is connected with one end of the eighth resistor, one end of the ninth resistor, one end of the eleventh capacitor and the CPU, the other end of the eighth resistor is connected with the bias voltage end, the other end of the ninth resistor is connected with the other end of the eighth capacitor, and the other end of the eleventh capacitor is grounded.
7. The audio payment control circuit of claim 6, wherein the card reader module comprises: a card reader, a fourth magnetic bead, a fifth magnetic bead, a sixth magnetic bead, a tenth resistor, an eleventh resistor, a twelfth capacitor, a thirteenth capacitor, a fourteenth capacitor and a fifteenth capacitor;
The 1 st pin of the card reader is connected with the card power supply end and is grounded through a fifteenth capacitor; the 3 rd pin of the card reader is connected with one end of the sixth magnetic bead and one end of the twelfth capacitor, and the 5 th pin of the card reader is connected with one end of the fifth magnetic bead, one end of the twelfth capacitor and one end of the tenth resistor; the 6 th pin of the card reader is connected with one end of the fourth magnetic bead, one end of the fourteenth capacitor and one end of the eleventh resistor; the other end of the fourth magnetic bead is connected with the D1+ pin of the first switching chip, the other end of the fifth magnetic bead is connected with the D1-pin of the first switching chip, and the other end of the sixth magnetic bead is connected with the D1+ pin of the second switching chip; the other end of the twelfth capacitor is connected with the other end of the thirteenth capacitor, the other end of the fourteenth capacitor and the ground; the other end of the tenth resistor is connected with the other end of the eleventh resistor and the ground.
8. The audio payment control circuit of claim 1, wherein the control unit comprises a triode, a gate resistor, and a transmitting resistor;
The base of the triode is connected with the power supply end through the gate resistor, the emitter of the triode is connected with one end of the emitting resistor and the ground, and the other end of the emitting resistor is connected with the output end of the control unit and the collector of the triode.
9. The audio payment control circuit of claim 1, wherein the control unit comprises a first resistor, a triode, a gate resistor, and a firing resistor;
One end of the first resistor is connected with the CPU; the other end of the first resistor is reserved and connected with the other end of the transmitting resistor, the output end of the control unit and the collector electrode of the triode; the base electrode of the triode is connected with the power supply end of the card through the gate resistor, and the emitter electrode of the triode is reserved and connected with one end of the emitting resistor and the ground.
10. A mobile terminal, comprising a circuit board, wherein a CPU, a card reader module and an earphone socket are arranged on the circuit board, and the mobile terminal is characterized in that an audio payment control circuit according to any one of claims 1-7 is also arranged on the circuit board, and the audio payment control circuit is connected with the CPU, the card reader module and the earphone socket;
the CPU detects the current mode and outputs a control signal, an audio signal or an audio signal loaded with a payment instruction of a corresponding level; the earphone socket outputs a microphone signal or a microphone signal loaded with a payment instruction;
When in a use mode, the audio payment control circuit converts the audio signal into a corresponding earphone audio signal according to a control signal of a corresponding level and transmits the corresponding earphone audio signal to an earphone socket, and converts the microphone signal into a corresponding positive microphone signal and a corresponding negative microphone signal and transmits the corresponding positive microphone signal to the CPU;
And in a payment mode, the audio payment control circuit converts the audio signal loaded with the payment instruction and the microphone signal into corresponding card signals according to control signals of corresponding levels and transmits the corresponding card signals to the card reader module, and the card reader module performs payment operation according to the payment instruction.
CN201810697757.9A 2018-06-29 2018-06-29 Audio payment control circuit and mobile terminal Active CN108668200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810697757.9A CN108668200B (en) 2018-06-29 2018-06-29 Audio payment control circuit and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810697757.9A CN108668200B (en) 2018-06-29 2018-06-29 Audio payment control circuit and mobile terminal

Publications (2)

Publication Number Publication Date
CN108668200A CN108668200A (en) 2018-10-16
CN108668200B true CN108668200B (en) 2024-04-19

Family

ID=63773375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810697757.9A Active CN108668200B (en) 2018-06-29 2018-06-29 Audio payment control circuit and mobile terminal

Country Status (1)

Country Link
CN (1) CN108668200B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201732442U (en) * 2010-07-19 2011-02-02 福建联迪商用设备有限公司 POS (point of sale) of mobile phone
KR20110103919A (en) * 2011-08-20 2011-09-21 허인구 A multi-card reader device using a mobile, and the method therefor
CN202110612U (en) * 2011-05-04 2012-01-11 信雅达系统工程股份有限公司 Multifunctional electronic payment terminal
CN102339499A (en) * 2011-09-30 2012-02-01 重庆南天数据资讯服务有限公司 System for realizing POS (point of sale) card swiping payment device based on mobile communication terminal
CN102592359A (en) * 2011-01-17 2012-07-18 胡旭光 Bank card payment device of cellphone
CN103123678A (en) * 2011-11-18 2013-05-29 深圳市中磁计算机技术有限公司 Magnetic card reader
CN103377518A (en) * 2012-04-26 2013-10-30 国民技术股份有限公司 Payment device and payment method
CN103686535A (en) * 2013-12-02 2014-03-26 Tcl集团股份有限公司 Terminal capable of automatically recognizing headset microphone and karaoke devices, and recognition method thereof
CN104008641A (en) * 2013-12-09 2014-08-27 福建联迪商用设备有限公司 Mobile terminal, card reader, mobile terminal audio communication method and mobile terminal voice communication system
CN203950348U (en) * 2014-03-28 2014-11-19 杭州新百锐基业科技有限公司 A kind of safe on-line payment system
CN104184848A (en) * 2013-05-21 2014-12-03 上海斐讯数据通信技术有限公司 Mobile terminal with card charge function
CN104574705A (en) * 2014-12-19 2015-04-29 福建联迪商用设备有限公司 WIFI multi-functional moving POS machine and dining hall ordering system
CN104620567A (en) * 2012-07-13 2015-05-13 环汇系统有限公司 System and method for detecting the ground and microphone input contacts in an audio plug
WO2015072135A1 (en) * 2013-11-14 2015-05-21 セイコーエプソン株式会社 Payment media read-in device, payment media read-in device control method, and payment processing system
CN206649559U (en) * 2017-03-14 2017-11-17 广州乐校通信息科技有限公司 A kind of rechargeable card by mobile terminal payment is drawn money system
CN207337567U (en) * 2017-11-14 2018-05-08 深圳豆豆网络科技有限公司 A kind of Novel POS machine
CN208798186U (en) * 2018-06-29 2019-04-26 深圳微步信息股份有限公司 A kind of audio payment control circuit and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120255996A1 (en) * 2011-04-05 2012-10-11 Rev Worldwide, Inc. Method and Device for Processing Payment Card Information
KR101602426B1 (en) * 2012-08-29 2016-03-10 주식회사 케이티 Apparatus and method for card payment using mobile terminal
KR20140029736A (en) * 2012-08-29 2014-03-11 주식회사 케이티 Apparatus and method for card payment using mobile terminal

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201732442U (en) * 2010-07-19 2011-02-02 福建联迪商用设备有限公司 POS (point of sale) of mobile phone
CN102592359A (en) * 2011-01-17 2012-07-18 胡旭光 Bank card payment device of cellphone
CN202110612U (en) * 2011-05-04 2012-01-11 信雅达系统工程股份有限公司 Multifunctional electronic payment terminal
KR20110103919A (en) * 2011-08-20 2011-09-21 허인구 A multi-card reader device using a mobile, and the method therefor
CN102339499A (en) * 2011-09-30 2012-02-01 重庆南天数据资讯服务有限公司 System for realizing POS (point of sale) card swiping payment device based on mobile communication terminal
CN103123678A (en) * 2011-11-18 2013-05-29 深圳市中磁计算机技术有限公司 Magnetic card reader
CN103377518A (en) * 2012-04-26 2013-10-30 国民技术股份有限公司 Payment device and payment method
CN104620567A (en) * 2012-07-13 2015-05-13 环汇系统有限公司 System and method for detecting the ground and microphone input contacts in an audio plug
CN104184848A (en) * 2013-05-21 2014-12-03 上海斐讯数据通信技术有限公司 Mobile terminal with card charge function
WO2015072135A1 (en) * 2013-11-14 2015-05-21 セイコーエプソン株式会社 Payment media read-in device, payment media read-in device control method, and payment processing system
CN103686535A (en) * 2013-12-02 2014-03-26 Tcl集团股份有限公司 Terminal capable of automatically recognizing headset microphone and karaoke devices, and recognition method thereof
CN104008641A (en) * 2013-12-09 2014-08-27 福建联迪商用设备有限公司 Mobile terminal, card reader, mobile terminal audio communication method and mobile terminal voice communication system
CN203950348U (en) * 2014-03-28 2014-11-19 杭州新百锐基业科技有限公司 A kind of safe on-line payment system
CN104574705A (en) * 2014-12-19 2015-04-29 福建联迪商用设备有限公司 WIFI multi-functional moving POS machine and dining hall ordering system
CN206649559U (en) * 2017-03-14 2017-11-17 广州乐校通信息科技有限公司 A kind of rechargeable card by mobile terminal payment is drawn money system
CN207337567U (en) * 2017-11-14 2018-05-08 深圳豆豆网络科技有限公司 A kind of Novel POS machine
CN208798186U (en) * 2018-06-29 2019-04-26 深圳微步信息股份有限公司 A kind of audio payment control circuit and mobile terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
automatic mobile payment on a non-connected vending machine;S.B.Z. Azami;《Canadian conference on electrical and computer engineering 2004》;全文 *
互联网支付音频交易终端方案;陈海连;《数字化用户》;全文 *
基于rfid技术的手持式读写器的研究与设计;刘玉伟;《中国优秀硕士论文全文数据库信息科技辑辑》;全文 *

Also Published As

Publication number Publication date
CN108668200A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN100583076C (en) Hot plug detection method of mobile memory card
WO2015101067A1 (en) Rfid reader/writer and rfid system
CN109672950B (en) Power saving circuit and power saving method based on Type-C earphone
WO2010131236A2 (en) A near field communication device
KR20080004959A (en) Smartcard including a plurality of differnt interfaces
CN206610206U (en) A kind of compact platform of super-small based on ARM architecture processor
US20040059860A1 (en) Double-interface adaptor for memory cards
CN108668200B (en) Audio payment control circuit and mobile terminal
CN202351915U (en) Mobile payment SD (Secure Digital) card based on SWP (Single Wire Protocol)
WO2015096459A1 (en) Method and system for selecting contactless communication technique based on mobile terminal type
CN101840486B (en) Improved converter for SD card
CN104239941B (en) A kind of identification card
CN111858422A (en) Integrated interface and electronic device with same
CN103886364B (en) Memory card with intelligent chip
CN103246914A (en) Secure digital card
CN101883176A (en) Expansion card processing method, device and mobile terminal
CN208798186U (en) A kind of audio payment control circuit and mobile terminal
CN111247781A (en) Audio circuit and audio playback system based on intelligent terminal
US10037487B2 (en) Single-chip financial audio IC card
CN208873140U (en) Multiplex roles USB circuit based on MTK chip for cell phone
CN207216779U (en) Self-printing terminal 10G CPU Control Unit
CN211979664U (en) Intelligent key device supporting card reading
CN111428227B (en) Intelligent key device supporting card reading
CN105320215A (en) Split-body or integrated host framework integrated with card-stamping function
CN204795256U (en) Signal processing system of scanner based on audio interface

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