CN116069702A - NFC-based USB on-off controller and system - Google Patents

NFC-based USB on-off controller and system Download PDF

Info

Publication number
CN116069702A
CN116069702A CN202310198743.3A CN202310198743A CN116069702A CN 116069702 A CN116069702 A CN 116069702A CN 202310198743 A CN202310198743 A CN 202310198743A CN 116069702 A CN116069702 A CN 116069702A
Authority
CN
China
Prior art keywords
usb
nfc
control circuit
controller
circuit
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.)
Pending
Application number
CN202310198743.3A
Other languages
Chinese (zh)
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.)
Shanghai Huayi Microelectronic Material Co Ltd
Original Assignee
Shanghai Huayi Microelectronic Material 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 Shanghai Huayi Microelectronic Material Co Ltd filed Critical Shanghai Huayi Microelectronic Material Co Ltd
Priority to CN202310198743.3A priority Critical patent/CN116069702A/en
Publication of CN116069702A publication Critical patent/CN116069702A/en
Pending legal-status Critical Current

Links

Images

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/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging
    • 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/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • Power Sources (AREA)

Abstract

The invention discloses a USB on-off controller and a system based on NFC, which belong to the technical field of USB communication control, wherein the USB on-off controller based on NFC comprises: the USB male head is used for accessing the USB main equipment; the USB female head is connected with the USB male head and used for accessing USB slave equipment; the on-off control circuit is connected in series on a VBUS line between the USB male head and the USB female head; the MCU control circuit is in control connection with the on-off control circuit; the NFC card reading circuit is in communication connection with the MCU control circuit and is used for reading the USB on-off control information stored in the NFC card; and a power supply connected with the MCU control circuit. The invention can provide a convenient, efficient and automatic method for the operation of the USB slave device when the USB slave device needs to be connected with or disconnected from the master device at regular time or repeatedly, and has the advantages of time and labor saving and high efficiency.

Description

NFC-based USB on-off controller and system
Technical Field
The invention relates to the technical field of USB communication control, in particular to a USB on-off controller and a system based on NFC.
Background
Currently, many USB (Universal Serial Bus ) slave devices (such as a USB flash disk, a mouse, a keyboard and the like) are identified immediately after being plugged into a master device, and then enter a working mode; when the operation is required to be stopped, the connection with the main equipment and the operation are required to be disconnected by manual pulling out from the main equipment.
When a USB slave device needs to make and break connection with and from a master device periodically or repeatedly, a manual operation is very inconvenient. For example, when a usb disk is plugged into and pulled out of the host device multiple times to verify whether the usb disk can be identified by the host device each time, if the usb disk is manually operated, the usb disk is very labor-consuming and has low efficiency.
Disclosure of Invention
The invention aims to solve the technical problem of providing a USB on-off controller and a system based on NFC, which are time-saving and labor-saving and have high efficiency.
In order to solve the technical problems, the invention provides the following technical scheme:
in one aspect, a USB on-off controller based on NFC is provided, including:
the USB male head is used for accessing the USB main equipment;
the USB female head is connected with the USB male head and used for accessing USB slave equipment;
the on-off control circuit is connected in series on a VBUS line between the USB male head and the USB female head;
the MCU control circuit is in control connection with the on-off control circuit;
the NFC card reading circuit is in communication connection with the MCU control circuit and is used for reading the USB on-off control information stored in the NFC card; and
and the power supply is connected with the MCU control circuit.
Further, the on-off control circuit comprises a triode and a P-channel MOS tube, wherein:
one path of the base electrode of the triode is connected with a power supply through a resistor after passing through the resistor, the other path of the base electrode of the triode is connected with the MCU control circuit, the emitter electrode of the triode is grounded, and the collector electrode of the triode is connected with the grid electrode of the P-channel MOS tube;
and a resistor is connected between the grid electrode and the source electrode of the P-channel MOS tube, the drain electrode is connected with the VBUS terminal of the USB female head, and the source electrode is connected with the VBUS terminal of the USB male head.
Further, the model of the P-channel MOS transistor is AO3401, and/or the model of the triode is S9014.
Furthermore, the MCU control circuit adopts an STM32F103C8T6 chip.
Furthermore, the NFC card reading circuit adopts an HY9840 chip.
Further, the power source is a rechargeable lithium battery.
Further, a switch is arranged between the MCU control circuit and the power supply, and the on-off control circuit is in a normally closed state.
On the other hand, provide a USB on-off control system based on NFC, including foretell USB on-off control ware based on NFC still includes:
the NFC card is used for storing USB on-off control information;
an NFC card writer; and
and the upper computer is connected with the NFC card writer and used for setting and writing USB on-off control information into the NFC card through the NFC card writer.
Further, the USB on-off control information includes one or more of a circuit on-time, a circuit off-time, a circuit on-off number, and a circuit on-off frequency.
The invention has the following beneficial effects:
according to the NFC-based USB on-off controller and the NFC-based USB on-off system, the USB switching device is added to automatically control connection communication between the USB slave device and the master device, specifically, the on-off control circuit capable of controlling on-off through the MCU control circuit is connected in series on the VBUS line of the USB switching line, so that on-off of the VBUS is controlled, when the VBUS is on, the USB slave device is connected with the master device, and when the VBUS is off, the USB slave device is disconnected with the master device. The parameters of the controlled circuit such as on-off time, frequency, times and the like are analyzed by the MCU control circuit through the relative data read from the NFC card by the NFC card reading circuit.
The invention can provide a convenient, efficient and automatic method for the operation of the USB slave device when the USB slave device needs to be connected with or disconnected from the master device at regular time or repeatedly, and has the advantages of time and labor saving and high efficiency.
Drawings
Fig. 1 is a schematic diagram of an application principle of a USB on-off controller based on NFC according to the present invention;
fig. 2 is a schematic structural diagram of a USB on-off controller based on NFC according to the present invention;
fig. 3 is a schematic circuit diagram of the USB on-off controller based on NFC according to the present invention;
fig. 4 is a schematic structural diagram of a configuration part of the USB on-off control system based on NFC of the present invention;
FIG. 5 is a schematic diagram of a parameter setting interface of the configuration section shown in FIG. 4.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved more apparent, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
In one aspect, the present invention provides a USB on-off controller based on NFC (Near Field Communication ), as shown in fig. 1-2, comprising:
the USB male connector 1 is configured to access a USB host, for example, may be a Type a male connector;
the USB female head 2 is connected with the USB male head 1 and used for accessing USB slave equipment, for example, the USB female head can be a Type A female head, the connection between the USB female head 1 and the USB male head is a conventional USB connecting wire, and four paths of USB connecting wires respectively comprise GND (ground wire), D+ (data wire (positive)), D- (data wire (negative)), and VBUS (power wire);
the on-off control circuit 3 is connected in series on a VBUS line between the USB male head 1 and the USB female head 2;
MCU (Microcontroller Unit, micro control unit) control circuit 4, control connect on-off control circuit 3;
the NFC card reading circuit 5 is in communication connection with the MCU control circuit 4 and is used for reading the USB on-off control information stored in the NFC card; and
and the power supply 6 is connected with the MCU control circuit 4 and supplies power to the whole equipment.
According to the NFC-based USB on-off controller, the connection communication between the USB slave device and the master device is automatically controlled by adding the USB switching device, specifically, the on-off control circuit capable of controlling on-off through the MCU control circuit is connected in series on the VBUS line of the USB switching line, so that the on-off of the VBUS is controlled, when the VBUS is on, the USB slave device is connected with the master device, and when the VBUS is off, the USB slave device is disconnected with the master device. The parameters of the controlled circuit such as on-off time, frequency, times and the like are analyzed by the MCU control circuit through the relative data read from the NFC card by the NFC card reading circuit.
The invention can provide a convenient, efficient and automatic method for the operation of the USB slave device when the USB slave device needs to be connected with or disconnected from the master device at regular time or repeatedly, and has the advantages of time and labor saving and high efficiency.
In the invention, the on-off control circuit 3, the MCU control circuit 4 and the NFC card reading circuit 5 can be built by adopting the conventional technology in the field, and only the implementation of the on-off control circuit 3 is described here.
As shown in fig. 3, in the embodiment, the on-off control circuit 3 may include a transistor Q2 and a P-channel MOS (metal-oxide semiconductor field effect transistor) transistor Q1, wherein:
one path of the base electrode of the triode Q2 is connected with a power supply VCC3V3 through a resistor R5 after passing through a resistor R4, the other path of the base electrode is connected with an MCU control circuit (see a reference number BUS_CTR in the figure as a control end), the emitter electrode is grounded, and the collector electrode is connected with the grid electrode of the P-channel MOS tube Q1;
a resistor R3 is connected between the grid electrode and the source electrode of the P-channel MOS tube Q1, the drain electrode is connected with the VBUS terminal of the USB female head H4, and the source electrode is connected with the VBUS terminal of the USB male head H5.
The on-off control circuit 3 is in an off state under the condition that the MCU control circuit 4 is not electrified, and the specific principle is that the resistor R3 ensures that when BUS_CTR is in a low level and the source electrode of the MOS tube is in a high level, the grid electrode of the MOS tube is in a high level, and the MOS tube is in an off state at the moment; when BUS_CTR is high, the grid electrode of the MOS tube is low, and the MOS tube is in a conducting state.
The on-off control circuit 3 is simple to realize, reliable in work and high in safety. The model of the P channel MOS transistor Q1 can be AO3401, the maximum drain-source voltage (Vdss) is 30V, the maximum continuous drain current (Id) is 4.2A, and the VBUS electrifying requirement is completely met; the model of transistor Q2 may be S9014.
The MCU control circuit 4 can adopt an STM32F103C8T6 chip which is an intentional semiconductor universal MCU, the NFC card reading circuit 5 can adopt an HY9840 chip which is a 13.56MHz NFC radio frequency chip produced by Hua-pter microelectronics, and the use effect is good.
The power supply 6 is preferably a rechargeable lithium battery, in particular a 5V power supply, and is provided integrally with the device. A switch 7 may be disposed between the MCU control circuit 4 and the power supply 6, and the on-off control circuit 3 is preferably in a normally closed state (not in the embodiment shown in fig. 3, so as to ensure that VBUS is turned on), so that even if the USB on-off controller based on NFC of the present invention is in a state that the switch 7 is turned off and is not operated, normal connection communication between the USB slave device and the master device may be achieved.
On the other hand, the invention provides a USB on-off control system based on NFC, which comprises the USB on-off controller based on NFC, as shown in fig. 4, and further comprises:
the NFC card 8 is used for storing USB on-off control information;
an NFC card writer 9; and
the upper computer 10 (such as a computer) is connected with the NFC card writer 9, and is used for setting related parameters (i.e. USB on-off control information) of the on-off control circuit 3 and writing the USB on-off control information into the NFC card 8 through the NFC card writer 9. The USB on-off control information may specifically include one or more of a circuit on-time, a circuit off-time, a circuit on-off number, and a circuit on-off frequency. The parameter setting interface can be flexibly designed according to the needs, for example, as shown in fig. 5.
According to the NFC-based USB on-off control system, parameters in an NFC card can be flexibly configured through the upper computer and the NFC card writer. The upper computer, the NFC card writer and the NFC card form a configuration system of the on-off parameters of the USB on-off controller based on NFC.
In summary, the USB on-off controller and the system based on NFC can realize the control of the connection and disconnection of the USB slave device and the master device based on the NFC technology, wherein the control content comprises connection establishment time, connection disconnection time, repeated on-off frequency, repeated on-off times and the like.
The invention can be applied to testing the reliability of the USB function of the equipment. For example, a printer supporting USB flash disk reading is developed, whether the printer can be identified by inserting the USB flash disk for multiple times needs to be tested, and the USB on-off controller and the system based on NFC can be used at the moment. Firstly, through setting software in an upper computer, the set related parameters (such as 10000 times of on-off, 5 seconds of on-off interval and 1 hour of execution) are written into an NFC card, and then the USB on-off controller is swiped for testing.
The NFC-based USB on-off controller is characterized by being provided with a lithium battery power supply, does not need to be powered by a wire, and is good in mobility and portability. The power supply is convenient to use in places inconvenient to provide power, such as field environments, narrow spaces and the like. According to the invention, the NFC card is used, and an additional connecting wire is not needed for supplying power, so that the USB on-off controller becomes a portable independent product. The NFC card then exists as a medium for the transfer and preservation of a parameter.
The NFC technology is applied to USB on-off control, so that the portable USB on-off controller which is independent of a computer and an external power supply is formed, and the USB on-off state can be flexibly set.
For the requirements of various test parameters, a user can set a plurality of NFC cards to store the test parameters. The USB on-off controller can change the working state by swiping cards at any time.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that various modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

Claims (9)

1. An NFC-based USB on-off controller, comprising:
the USB male head is used for accessing the USB main equipment;
the USB female head is connected with the USB male head and used for accessing USB slave equipment;
the on-off control circuit is connected in series on a VBUS line between the USB male head and the USB female head;
the MCU control circuit is in control connection with the on-off control circuit;
the NFC card reading circuit is in communication connection with the MCU control circuit and is used for reading the USB on-off control information stored in the NFC card; and
and the power supply is connected with the MCU control circuit.
2. The NFC-based USB on-off controller of claim 1, wherein the on-off control circuit comprises a triode and a P-channel MOS transistor, wherein:
one path of the base electrode of the triode is connected with a power supply through a resistor after passing through the resistor, the other path of the base electrode of the triode is connected with the MCU control circuit, the emitter electrode of the triode is grounded, and the collector electrode of the triode is connected with the grid electrode of the P-channel MOS tube;
and a resistor is connected between the grid electrode and the source electrode of the P-channel MOS tube, the drain electrode is connected with the VBUS terminal of the USB female head, and the source electrode is connected with the VBUS terminal of the USB male head.
3. The USB on-off controller based on NFC according to claim 2, wherein the P-channel MOS transistor is of a model AO3401 and/or the triode is of a model S9014.
4. The NFC-based USB on-off controller of claim 1, wherein the MCU control circuit employs an STM32F103C8T6 chip.
5. The NFC-based USB on-off controller of claim 1, wherein the NFC card reading circuit employs an HY9840 chip.
6. The NFC-based USB on-off controller of claim 1, wherein the power source is a rechargeable lithium battery.
7. The USB on-off controller based on NFC according to claim 1, wherein a switch is arranged between the MCU control circuit and the power supply, and the on-off control circuit is in a normally closed state.
8. An NFC-based USB on-off control system, comprising the NFC-based USB on-off controller of any one of claims 1-7, further comprising:
the NFC card is used for storing USB on-off control information;
an NFC card writer; and
and the upper computer is connected with the NFC card writer and used for setting and writing USB on-off control information into the NFC card through the NFC card writer.
9. The NFC-based USB on-off controller system of claim 8, wherein the USB on-off control information includes one or more of a circuit on-time, a circuit off-time, a circuit on-off number, a circuit on-off frequency.
CN202310198743.3A 2023-03-03 2023-03-03 NFC-based USB on-off controller and system Pending CN116069702A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310198743.3A CN116069702A (en) 2023-03-03 2023-03-03 NFC-based USB on-off controller and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310198743.3A CN116069702A (en) 2023-03-03 2023-03-03 NFC-based USB on-off controller and system

Publications (1)

Publication Number Publication Date
CN116069702A true CN116069702A (en) 2023-05-05

Family

ID=86173227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310198743.3A Pending CN116069702A (en) 2023-03-03 2023-03-03 NFC-based USB on-off controller and system

Country Status (1)

Country Link
CN (1) CN116069702A (en)

Similar Documents

Publication Publication Date Title
US8502414B2 (en) Power saving apparatus and power saving method thereof
CN101901201B (en) Method and device for realizing USB OTG function on electronic equipment
CN107368441B (en) Configurable and power optimization integrated grid driver and Type-C SoC for USB transmission of electricity
CN1150851A (en) Portable computer keyboard for use with plurality of different host computers
CN102662898A (en) Host-slave compatibility method, device and system for USB (universal serial bus) device
CN110100366A (en) Mobile terminal, peripheral equipment and its charging method
CN109672950B (en) Power saving circuit and power saving method based on Type-C earphone
CN109921481A (en) To the OTG equipment and method of supplying power to of communication object power supply when USB is communicated
CN102387022A (en) Power over Ethernet method and device
CN107678753A (en) A kind of program burn writing method, apparatus and electronic equipment
CN112088472B (en) Double-interface switching circuit and Type-C concentrator
CN105677596B (en) Control method and electronic equipment
CN102147650A (en) Peripheral device and method of operating the same
CN202394228U (en) USB (Universal Serial Bus) equipment
CN102314194B (en) Portable computer
CN105812030A (en) Sensor general interface based on low power consumption bluetooth technology
CN108170623B (en) USB switching circuit and switching system
CN116069702A (en) NFC-based USB on-off controller and system
CN212649180U (en) Double-interface switching circuit and Type-C concentrator
CN104122967A (en) Power-on and power-down reset control circuit and computer
CN100465904C (en) Emulator of contact type intelligent card with USB interface
CN208954104U (en) Multichannel SIM card read-write equipment
CN106569572B (en) Mainboard and computerized control system with the mainboard
CN203520299U (en) Timer-power-on control circuit
CN202422765U (en) Memory card data erasing 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