CN109032983B - Handheld reader with USB signal connection circuit - Google Patents

Handheld reader with USB signal connection circuit Download PDF

Info

Publication number
CN109032983B
CN109032983B CN201811141814.1A CN201811141814A CN109032983B CN 109032983 B CN109032983 B CN 109032983B CN 201811141814 A CN201811141814 A CN 201811141814A CN 109032983 B CN109032983 B CN 109032983B
Authority
CN
China
Prior art keywords
pin
switching circuit
resistor
usb
reader
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
CN201811141814.1A
Other languages
Chinese (zh)
Other versions
CN109032983A (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.)
ZTE Intelligent IoT Technology Co Ltd
Original Assignee
ZTE Intelligent IoT 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 ZTE Intelligent IoT Technology Co Ltd filed Critical ZTE Intelligent IoT Technology Co Ltd
Priority to CN201811141814.1A priority Critical patent/CN109032983B/en
Publication of CN109032983A publication Critical patent/CN109032983A/en
Application granted granted Critical
Publication of CN109032983B publication Critical patent/CN109032983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Information Transfer Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a handheld reader with a USB signal connection circuit, wherein a smart phone is embedded in the handheld reader, and an ID pin switching circuit and a data receiving and transmitting switching circuit are connected with a USB interface, so that the smart phone has an OTG function, is in a host mode in a normal working state, and is in a device mode when being charged or connected to a computer. The ID pin switching circuit protection unit comprises an NPN transistor, wherein a pin 1 of the NPN transistor is connected with a VBUS pin (connected to a USB of the embedded smart phone) through an R91, a pin 2 of the NPN transistor is grounded, a pin 3 of the NPN transistor is provided with a pull-up resistor, and a pin 3 of the NPN transistor is connected to an analog switch TS3USB30RSWR. The PMOS tube drain electrode connecting resistor R91 is connected with the triode base electrode, and the triode collector electrode is connected with the pin No. 2 of SN74VC1GU04 DCKR. The components used by the data direction switching circuit comprise an analog switch TS3USB30RSWR, a No. 3 pin and a No. 5 pin of the TS3USB30RSWR are connected with a filter inductor, and two ends of the filter inductor are connected with electrostatic protection devices in parallel.

Description

Handheld reader with USB signal connection circuit
Technical Field
The invention relates to the field of handheld readers, in particular to a handheld reader with a circuit for realizing USB signal connection.
Background
OTG technology is to implement data transfer between devices without Host. OTG technology allows devices to interact data with peripherals either as a master or as a slave. In the prior art, the master-slave relationship of two devices is determined by judging the type of a data line connecting the two devices, for example, when an OTG device detects that an ID pin in a data line connector connected with the OTG device is grounded, the device is defaulted to be a host, and when the ID pin is detected to float, the device is defaulted to be a slave.
Disclosure of Invention
The invention provides a handheld reader, which is internally embedded with a smart phone, wherein the smart phone has an OTG function, and the technical scheme is as follows:
a handheld reader containing a USB signal connection circuit is provided with an external USB interface, a smart phone is embedded in the handheld reader, and the USB interface is connected with an ID pin switching circuit and a data receiving and transmitting switching circuit, so that the smart phone in the reader has an OTG function.
Further, when the reader performs external data interaction, a data line used when the reader is connected with the peripheral is a standard USB data line.
Further, the ID pin switching circuit includes a not gate SN74VC1GU04DCKR, a tri-state buffer PI74ST1G125, and an NPN transistor, where the NPN transistor 1 pin is connected to the VBUS pin on the smart phone through R91 and a diode, the NPN transistor 2 pin is grounded, the 3 pin has a pull-up resistor R128, the NPN transistor 3 pin is connected to the No. 2 pin of the single not gate SN74VC1GU04DCKR, the No. 2 pin of the single not gate SN74VC1GU04DCKR is connected to the resistor R2, the No. 4 pin and the No. 5 pin of the single not gate SN74VC1GU04DCKR are connected to the No. 1 pin and the No. 5 pin of the PI74ST1G125, and the No. 4 pin of the PI74ST1G125 outputs the ID pin level.
Further, the signal usb_otg_id of the NPN transistor 3 pin level otg_id after passing through the single not gate and the tri-state buffer is connected to the ID pin on the smart phone.
Further, the resistor R127 is a 100Kohm resistor, and the resistor R91 is a 100K resistor.
Further, the diode is used to prevent voltage back-flowing when the handheld reading device is in USB OTG mode.
Further, the components used by the data direction switching circuit include an analog switch TS3USB30RSWR, the level of the No. 9 pin of the analog switch TS3USB30RSWR is opposite to the level of the level output by the No. 4 pin of the PI74ST1G125, the No. 3 pin and the No. 5 pin of the TS3USB30RSWR are connected with a filter inductor, and two ends of the filter inductor are connected with electrostatic protection devices in parallel.
Further, the NPN transistor 3 is connected to the pull-up resistor R128 and then connected to the analog switch TS3USB30RSWR.
Further, the external USB interface comprises a type-c interface.
Compared with the prior art, the invention has the beneficial effects that: the handheld reader comprises an ID pin switching circuit and a data receiving and transmitting switching circuit, so that the intelligent mobile phone embedded in the handheld reader has an OTG function, and the mobile phone can communicate with a processor in the reader when the intelligent mobile phone is not connected with a peripheral; when the common data line is used for connecting the handheld reader and the peripheral (such as a computer), if the peripheral has a power supply function, the reader is a slave device, otherwise, the reader is used as a master device.
Drawings
FIG. 1 is a schematic diagram of the overall structure of a handheld reader;
FIG. 2 is a first portion of an ID pin switching circuit;
FIG. 3 is a second portion of the ID pin switching circuit;
FIG. 4 is a data switching circuit;
fig. 5 is an overall configuration diagram of the ID pin switching circuit.
Detailed Description
As shown in fig. 1, the handheld reader in this embodiment includes an ultrahigh frequency radio frequency module and a smart phone embedded in the handheld reader, and the embedded phone can have an OTG function through an ID pin switching circuit and a data transmission direction switching circuit in the handheld reader, and the phone can communicate with a processor in the handheld reader and also can transmit data when an external USB interface is connected to a computer.
As shown in fig. 2 and 3, in this embodiment, the ID pin switching circuit protection unit includes an NPN transistor, pin 1 of the NPN transistor is connected to pin VBUS (USB connected to the embedded smart phone) through R91, pin 2 of the NPN transistor is grounded, pin 3 has a pull-up resistor, and pin 3 is connected to an analog switch TS3USB30RSWR. NPN transistor 3 foot is connected single NOT gate SN74VC1GU04 DCKR's No. 2 pin, single NOT gate SN74VC1GU04 DCKR's No. 2 pin connecting resistance R128, single NOT gate SN74VC1GU04 DCKR's No. 4 pin and No. 5 pin link to each other with PI74ST1G 125's No. 1 pin and No. 5 pin respectively, PI74ST1G 125's No. 4 pin output ID pin position level, be VBUS level between PMOS tube drain electrode and resistance R91. Wherein the resistor R127 is 100K resistor, the resistor R91 is 100Kohm resistor, and the resistor R128 is 10K resistor.
As shown in fig. 4, in this embodiment, the components used in the data transmission direction switching circuit include an analog switch TS3USB30RSWR, the level of pin 9 of the analog switch TS3USB30RSWR is the same as the level of pin 4 output by pin 4 of PI74ST1G125, pin 3 and pin 5 of the TS3USB30RSWR are connected to a filter inductor, and two ends of the filter inductor are connected in parallel to a diac.
Be equipped with type-c interface on the handheld reader in this embodiment, whether connect the electricity through type-c interface, realize the switch of the embedded cell-phone OTG mode of reader, the principle is as follows:
when the USB Type-c connector is plugged into a standard USB cable, the VBUS level between the drain of the PMOS transistor and the resistor R91 is high (H), the NPN transistor VT7 is turned on, the collector output signal otg_id of the NPN transistor is low (L), the Y signal level output from the No. 4 pin of the No. 4 gate is high (H) after passing through the single not gate D24, when the Y signal is high and AIN is low, the usb_otg_id is high impedance (HI-Z), because there is a pull-up in the mobile phone, the tri-state buffer D18 outputs the signal usb_otg_id which is High (HI), and the handheld reader can communicate with an external HOST (e.g. a computer) as a slave device
When VBUS is powered down after the charging cable is pulled out, VBUS level between the drain electrode of the PMOS transistor and the resistor R91 is low (L), the NPN triode VT7 is turned off, the signal otg_id is high (H), the Y signal level is low (L) after passing through the single-not gate D24, when the Y signal is low, AIN is low, the tri-state buffer D18 outputs the signal usb_otg_id as low (L), at this time, the handheld reader is changed from DEVICE to HOST, at this time, the embedded mobile phone can communicate with the processor.
When the VBUS potential changes, the data receiving and transmitting switching circuit realizes the switching of data receiving and transmitting through the analog switch because the level of the triode collector output signal OTG_ID changes accordingly. The signal logic table is as follows:
TABLE 1
TABLE 2
The technical principle of the present invention has been described above in connection with specific embodiments, which are only for the purpose of explaining the technical principle of the present invention, and should not be construed as limiting the scope of the present invention in any way. Based on this explanation, one skilled in the art will recognize that other embodiments of the present invention do not require inventive effort and will fall within the scope of the present invention.

Claims (4)

1. The handheld reader with the USB signal connection circuit is provided with an external USB interface, and is characterized in that the smart phone is embedded in the reader, and the USB interface is connected with an ID pin switching circuit and a data receiving and transmitting switching circuit, so that the smart phone in the reader has an OTG function, and a data line connecting the reader and an external data line is a standard USB data line when external data interaction is carried out;
the ID pin switching circuit comprises an NOT gate SN74VC1GU04DCKR, a tri-state buffer PI74ST1G125 and a triode, wherein the base electrode of the triode is connected with a diode, the cathode of the diode is in VBUS level, the collector of the triode is connected with a No. 2 pin of the NOT gate SN74VC1GU04DCKR, the No. 2 pin of the NOT gate SN74VC1GU04DCKR is connected with a resistor R91, a No. 4 pin and a No. 5 pin of the NOT gate SN74VC1GU04DCKR are respectively connected with a No. 1 pin and a No. 5 pin of the PI74ST1G125, and the No. 4 pin of the PI74ST1G125 outputs an ID pin level;
the components used by the data receiving and transmitting switching circuit comprise an analog switch TS3USB30RSWR, the level of a No. 9 pin of the analog switch TS3USB30RSWR is opposite to the level of a No. 4 pin output by a PI74ST1G125, a No. 3 pin and a No. 5 pin of the TS3USB30RSWR are connected with a filter inductor, and two ends of the filter inductor are connected with electrostatic protection devices in parallel.
2. The handheld reader of claim 1 wherein resistor R127 is a 100KOhm resistor and resistor R91 is a 10K resistor.
3. A handheld reader according to claim 2 comprising a USB signal connection circuit, wherein the transistor is an NPN transistor.
4. A handheld reader comprising USB signal connection circuitry as in claim 1 wherein the external USB interface comprises a type-c interface.
CN201811141814.1A 2018-09-28 2018-09-28 Handheld reader with USB signal connection circuit Active CN109032983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811141814.1A CN109032983B (en) 2018-09-28 2018-09-28 Handheld reader with USB signal connection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811141814.1A CN109032983B (en) 2018-09-28 2018-09-28 Handheld reader with USB signal connection circuit

Publications (2)

Publication Number Publication Date
CN109032983A CN109032983A (en) 2018-12-18
CN109032983B true CN109032983B (en) 2024-02-20

Family

ID=64614809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811141814.1A Active CN109032983B (en) 2018-09-28 2018-09-28 Handheld reader with USB signal connection circuit

Country Status (1)

Country Link
CN (1) CN109032983B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110943724A (en) * 2019-12-06 2020-03-31 昆山嘉提信息科技有限公司 Analog switch circuit based on hardware design and working method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035357A (en) * 2014-06-27 2014-09-10 广东欧珀移动通信有限公司 Headset, charging and OTG equipment circuit design based on USB socket
WO2017031957A1 (en) * 2015-08-25 2017-03-02 优品保技术(北京)有限公司 Otg anti-counterfeiting reader
CN206975633U (en) * 2017-06-27 2018-02-06 深圳市有方科技股份有限公司 A kind of multiplex circuit of OTG, USB function
CN108021522A (en) * 2017-12-14 2018-05-11 威创集团股份有限公司 USB device master slave mode switching circuit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253459A (en) * 2013-06-28 2014-12-31 鸿富锦精密工业(深圳)有限公司 USB device with power supply mode switching function
CN105808480A (en) * 2016-03-01 2016-07-27 联发科技(新加坡)私人有限公司 Role switching method and system of USB (Universal Serial Bus) OTG (On-The-Go) equipment, and USB OTG equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035357A (en) * 2014-06-27 2014-09-10 广东欧珀移动通信有限公司 Headset, charging and OTG equipment circuit design based on USB socket
WO2017031957A1 (en) * 2015-08-25 2017-03-02 优品保技术(北京)有限公司 Otg anti-counterfeiting reader
CN206975633U (en) * 2017-06-27 2018-02-06 深圳市有方科技股份有限公司 A kind of multiplex circuit of OTG, USB function
CN108021522A (en) * 2017-12-14 2018-05-11 威创集团股份有限公司 USB device master slave mode switching circuit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于智能手机USB OTG功能在电力专用PDA上的应用;王靖绚;;安徽建筑(01);全文 *

Also Published As

Publication number Publication date
CN109032983A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN101335736B (en) High-speed peripheral interconnecting interface
US7711870B2 (en) Interface detecting circuit and interface detecting method
CN101359316B (en) Method and apparatus for implementing general-purpose serial bus USB OTG
CN103208822A (en) Universal serial bus (USB) charging control circuit
CN102055223A (en) USB special charger recognition circuit
CN106655316B (en) Charging circuit and terminal device
WO2017063459A1 (en) Usb control apparatus and device
CN105868140A (en) A mobile apparatus
CN107544653A (en) A kind of USB Type C interface and mobile device
CN109062846B (en) Universal serial bus device and operation method thereof
CN109032983B (en) Handheld reader with USB signal connection circuit
CN105095137A (en) Control chip and connection module
US8334672B2 (en) Charging circuit with ability to identify power source
CN210006035U (en) USB and OTG function switching control circuit, device and mobile terminal
CN101094464A (en) Device and method for handset to manage files in U disk
CN112821156B (en) Electronic tags chip and TYPE-C data line
KR20150069659A (en) Usb gender
KR20150072248A (en) USB OTG memory device
CN208805804U (en) A kind of handheld reader containing usb signal connection circuit
CN211375595U (en) Solid state disk recognition device
CN214543613U (en) Anti-static circuit and system
CN216118769U (en) Type-C interface circuit and intelligent terminal equipment with same
CN116736752B (en) Switching circuit, electronic device and electronic system
CN105988962B (en) Overcurrent detecting system and circuit for detecting
CN217279563U (en) Interface multiplexing circuit and electronic equipment

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
CB02 Change of applicant information

Country or region after: China

Address after: 300308 Tianjin Binhai New Area Airport Economic Zone Dongqidao No.2 ZTE Industrial Base

Applicant after: Zte Intelligent Iot Technology Co.,Ltd.

Address before: 300308 Tianjin Binhai New Area Airport Economic Zone Dongqidao No.2 ZTE Industrial Base

Applicant before: ZTE INTELLIGENT IOT TECHNOLOGY Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant