CN103885914B - USB device with switching device - Google Patents

USB device with switching device Download PDF

Info

Publication number
CN103885914B
CN103885914B CN201410135630.XA CN201410135630A CN103885914B CN 103885914 B CN103885914 B CN 103885914B CN 201410135630 A CN201410135630 A CN 201410135630A CN 103885914 B CN103885914 B CN 103885914B
Authority
CN
China
Prior art keywords
usb
pin
chip
mass storage
switching device
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
CN201410135630.XA
Other languages
Chinese (zh)
Other versions
CN103885914A (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.)
CETC 24 Research Institute
Original Assignee
CETC 24 Research Institute
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 CETC 24 Research Institute filed Critical CETC 24 Research Institute
Priority to CN201410135630.XA priority Critical patent/CN103885914B/en
Publication of CN103885914A publication Critical patent/CN103885914A/en
Application granted granted Critical
Publication of CN103885914B publication Critical patent/CN103885914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Details Of Connecting Devices For Male And Female Coupling (AREA)
  • Electronic Switches (AREA)

Abstract

The invention provides the USB device of a kind of band switching device, including: shell, USB plug, master controller mass storage, gesture sensor and sensing controler, described gesture sensor electrically connects with sensing controler, described sensing controler also electrically connects with mass storage and USB plug, described USB plug is additionally operable to provide operating voltage into sensing controler, and described sensing controler is for receiving from the sensing signal of gesture sensor and exporting the mass storage that controls signal to of correspondence and control the writable state of mass storage with correspondence.The USB device of above-mentioned band switching device can realize the switching of duty.

Description

USB device with switching device
Technical field
The present invention relates to a kind of USB device, particularly to the USB device of a kind of band switching device.
Background technology
USB flash drive (USB flash disk) inserts equipment, by whether having write-protect as a kind of common USB Function can be divided into write-protect USB flash disk and common U disk, write-protect USB flash disk to compare common U disk having higher anti- Virus, anti-misoperation characteristic, but current write-protect USB flash disk is usually and uses a mechanical switch to realize protecting Protect the switching of pattern and general mode, operation inconvenience and restricted lifetime.
Summary of the invention
In view of the foregoing, it is necessary to provide one not utilize mechanical switch to realize protected mode and common mould The USB device of formula switching.
The USB device of a kind of band switching device provided by the present invention, including: shell, USB plug, Master controller and mass storage, described USB plug, master controller and mass storage may be contained within In shell, and the part of described USB plug stretches out shell, described master controller and USB plug and great Rong Amount memory electrical connection, described USB plug, for being connected with the USB interface of electronic equipment, thinks master control Device processed provides operating voltage, and described master controller is for controlling the number between mass storage and electronic equipment According to transmission;The USB device of described band switching device also includes gesture sensor and sensing controler, described hand Gesture sensor electrically connects with sensing controler, described sensing controler also with mass storage and USB plug Electrical connection, described USB plug is additionally operable to provide operating voltage into sensing controler, and described sensing controler is used In receive from the sensing signal of gesture sensor and export correspondence control signal to mass storage with right The writable state of mass storage should be controlled.
Wherein, the USB device of described band switching device also includes indicator lamp, described indicator lamp and sensing control Device electrically connects, and the sensing signal from gesture sensor that described sensing controler is additionally operable to according to being received is defeated The indicator lamp that controls signal to going out correspondence controls the duty of indicator lamp with correspondence.
Wherein, described gesture sensor is light sensor or voltage sensitive sensor.
Wherein, described gesture sensor is capacitor induction type sensor;Described sensing controler, master controller It is integrated on chip with mass storage, the grounding pin ground connection of described USB plug, two data pin Correspondence is connected with two data pin of chip respectively, and the power pins of described USB plug passes through resistance and finger Showing that the first end of lamp is connected, the second end of described indicator lamp is connected with the I/O pin RA3 of chip, described core The I/O pin RA0 of sheet is connected with capacitor induction type sensor, the grounding pin ground connection of described chip, power supply Pin is connected with the power pins of USB plug, and the programming of described chip enables pin and draws with the first of connector Pin is connected, and the second pin of described connector is connected with the power pins of chip, and the 3rd of described connector draws Pin is connected with the grounding pin of chip, and the 4th pin of described connector is connected with the serial data pin of chip, 5th pin of described connector is connected with the serial clock pin of chip;Described connector is used for and cd-rom recorder It is connected.
Wherein, the model of described chip is PIC18F25K50.
Wherein, described capacitor induction type sensor is the copper sheet of 1cm × 1cm.
Wherein, described capacitor induction type sensor fits in the inwall setting of shell.
Wherein, described indicator lamp is light emitting diode, and the anode of described light emitting diode is the first of indicator lamp End, the negative electrode of described light emitting diode is the second end of indicator lamp.
Wherein, described master controller, mass storage and sensing controler may be contained within pcb board.
Wherein, the USB device of described band switching device also includes pcb board fixed support, for by PCB Plate is fixed on enclosure.
The USB device of above-mentioned band switching device is in use: user puts down to hold and holds band switching device with side During the shell of USB device, described sensor controller can by detection sensing signal judge staff be with Which kind of mode holds the shell of the USB device of band switching device, controls band according to judged result correspondence simultaneously The mode of operation of the USB device of switching device and the duty of indicator lamp, i.e. do not passing through mechanical switch Under conditions of achieve the switching of mode of operation of USB device to band switching device.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the better embodiment of the USB device of band switching device of the present invention.
Fig. 2 and Fig. 3 is the circuit diagram of the USB device of band switching device in Fig. 1.
Fig. 4 and Fig. 5 is the structural representation of the USB device of band switching device in Fig. 1.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
Although it should be appreciated that the term such as " first ", " second " can be used to describe various unit herein Part, but these elements should not limited by these terms.These terms only be used for distinguish an element and Another element.Therefore, " first " element discussed below can also be referred to as " second " element and Without departing from the teachings of the present invention.It should be appreciated that when mention an element " connect " or " coupled " to During another element, it can be directly connected or be directly coupled to another element or can also there is centre Element.On the contrary, when mentioning that an element " is directly connected " or " directly coupling " arrives another element, The most there is not intermediary element.
Term as used herein is used only for describing the purpose of specific embodiment and being not intended as the present invention Restriction.As used herein, unless context clearly dictates otherwise, then singulative is intended to also wrap Include plural form.
It is to be further understood that term ought be used in this manual " to include " and/or " including " Time, these terms specify the existence of described feature, entirety, step, operation, element and/or parts, But also it is not excluded for more than one other feature, entirety, step, operation, element, parts and/or its group The existence of group and/or additional.
Referring to Fig. 1, the better embodiment of the USB device of band switching device of the present invention is dodged with a USB Illustrate as a example by deposit.Described USB flash drive include shell 1, USB plug 2, gesture sensor 3, Sensing controler 5, master controller 6, mass storage 7 and indicator lamp 8.Described USB plug 2, Gesture sensor 3, sensing controler 5, master controller 6 and mass storage 7 may be contained within shell 1 Inside, and the part of described USB plug 2 stretches out described shell 1.Outside described gesture sensor 3 fits in The inwall of shell 1 is arranged.Described sensing controler 5 all electrically connects with gesture sensor 3 and master controller 6, Described master controller 6 also all electrically connects with mass storage 7 and USB plug 2.Described USB plug 2 also electrically connect with sensing controler 5, think that sensing controler 5 provides operating voltage.Described indicator lamp 8 Electrically connect with sensing controler 5, to receive the signal from sensing controler 5.
In present embodiment, described USB plug 2, master controller 6 and mass storage 7 are all with existing USB flash disk identical, wherein said USB plug 2 for being connected with the USB interface on computer or other equipment, Described master controller 6 is for controlling the data transmission between mass storage 7 and computer or other equipment. Described gesture sensor 3 is for sensing the gesture of user, and transmits the signal sensed to sensing controler 5, described sensing controler 5 controls signal to indicator lamp 8 according to the sensing signal output correspondence received And mass storage 7, to point out the state of the most described USB flash disk of user and corresponding control mass storage The writable state of 7.
In the present invention, described gesture sensor 3 can be photosensitive, pressure-sensitive, capacitor induction type etc., Qi Zhong electricity It is simplest for holding induction type, and have need not exposed, be not directly contacted with the advantage of human body, therefore, this reality Execute example and have employed capacitor induction type sensor, certainly, other embodiments also can use other sensor, Do not repeat them here.
Please further refer to shown in Fig. 2 and Fig. 3, it illustrates the internal circuit diagram of described USB flash drive. In present embodiment, described sensing controler 5, master controller 6 and mass storage 7 are integrated into one On chip U1, model is PIC18F25K50.The grounding pin GND ground connection of described USB plug 2, Data pin D+ is connected with data pin D+ and the D-of chip U1 with D-correspondence respectively, power pins+5V It is light emitting diode D1 by indicator lamp 2 described in resistance R1 and indicator lamp D1(present embodiment) Anode is connected, and the negative electrode of described light emitting diode D1 is connected with the I/O pin RA3 of chip U1.
The I/O pin RA0 of described chip U1 is connected with capacitor induction type sensor U2, described chip U1 Grounding pin VSS ground connection, power pins VDD is connected with the power pins+5V of USB plug, programming The pin P1 enabling pin VPP and connector J1 is connected, the pin P2 of described connector J1 and chip Power pins VDD of U2 is connected, the grounding pin VSS of the pin P3 and chip U2 of described connector J1 Being connected, the serial data pin PGD of the pin P4 and chip U1 of described connector J1 is connected, described company The serial clock pin PGC of the pin P5 and chip U1 that meet device J1 is connected.In the present invention, described connection Device J1 is for being connected with cd-rom recorder, with burning program in chip U1.Other pins of described chip U1 Vacant.
In present embodiment, described capacitor induction type sensor U2 is the copper sheet of 1cm × 1cm, this copper sheet Can by pcb board Fu Tong district, top layer realize (wherein pcb board is two-ply, and sheet material is FR4, and thickness of slab is 2mm, copper thickness is 1oz), and by the I/O pin RA0 of chip U2, this copper sheet is applied lasting " filling Electricity-electric discharge " electric current, this just constitutes a capacitive induction electrode.
Further, said chip U1 and peripheral circuit are arranged on pcb board 10.For the ease of saying Bright, USB plug 2 and capacitance type sensor U2 are simultaneously placed to by the USB flash drive shown in Fig. 4 On pcb board 10, other can be used to design actually used, it is for instance possible to use common metal USB plug substitutes the USB plug of pcb board.Refer to Fig. 5, so that pcb board 10 can be more preferably Be fixed in shell 1, described USB flash drive also includes pcb board fixed support 11, described pcb board Fixed support 11 is used for fixing pcb board 10.
The highest according to capacitance induction principle, capacitor induction type sensor and the nearlyest sensitivity of staff spacing, institute Should be close to the inner side of shell 1 with capacitor induction type sensor, the thickness of shell 1 cannot be greater than 1mm simultaneously, More Bao Yuehao.This distance must not change because pcb board 10 loosens simultaneously, it may be necessary to employing bonding, The modes such as welding, fixed support fix pcb board 10.
The operation principle of above-mentioned USB flash drive will be illustrated below:
During use, and common U disk is as good as, and sets when described USB flash drive inserts other electronics such as computer During standby USB interface, the hand of user inherently holds the shell 1 of described USB flash drive, and difference is only It is with which kind of posture to hold.Different capacitance characteristics is had when the hand of user is to put down and to hold and hold with side.When making When user puts down the shell 1 holding USB flash drive, owing to staff overlaps with copper sheet (capacitor induction type sensor) Area is maximum, and capacitor induction type sensor shows bigger capacitance;In like manner, when side is held due to staff with Copper sheet overlapping area is minimum, and capacitance is the least.Described chip U1 just may be used by the size of detection capacitance To judge that staff is the shell 1 holding USB flash drive in which way, simultaneously according to judged result pair The mode of operation of USB flash drive and the duty of LED light should be controlled.Such as, when judging Putting down USB flash drive when holding to start with write-protect pattern, i.e. controlling mass storage 7 is write-protect state, LED light D1 is lit simultaneously;When judging that side is held, USB flash drive starts in the normal mode, I.e. control mass storage 7 and can be written into data, do not light LED light D1 simultaneously.As for electric capacity Detection algorithm and function switching are to complete by the firmware in chip U1, and this is that mature technology repeats no more.
The above is not limited to the present invention, it is clear that the present invention can be entered by those skilled in the art The various changes of row and modification are without departing from the spirit and scope of the present invention.So, if these of the present invention are repaiied Change and belong within the scope of the claims in the present invention and equivalent technologies thereof with modification, then the present invention is also intended to comprise These are changed and including modification.

Claims (10)

1. a USB device for band switching device, including: shell, USB plug, master controller and big Capacity memory, described USB plug, master controller and mass storage may be contained within shell, and institute The part stating USB plug stretches out shell, and described master controller is electrically connected with USB plug and mass storage Connecing, described USB plug, for being connected with the USB interface of electronic equipment, thinks master controller offer work Voltage, described master controller is for controlling the data transmission between mass storage and electronic equipment, and it is special Levy and be: the USB device of described band switching device also includes gesture sensor and sensing controler, described hand Gesture sensor electrically connects with sensing controler, described sensing controler also with mass storage and USB plug Electrical connection, described USB plug is additionally operable to provide operating voltage into sensing controler, and described sensing controler is used In receive from the sensing signal of gesture sensor and export correspondence control signal to mass storage with right Should control the writable state of mass storage, described sensing signal is for reflecting holding of described USB device Hold state.
2. the USB device of band switching device as claimed in claim 1, it is characterised in that: described band is cut The USB device of changing device also includes that indicator lamp, described indicator lamp electrically connect with sensing controler, described sensing Controller is additionally operable to export corresponding controlling signal to according to the sensing signal from gesture sensor received Indicator lamp controls the duty of indicator lamp with correspondence.
3. the USB device of band switching device as claimed in claim 1, it is characterised in that: described gesture Sensor is light sensor or voltage sensitive sensor.
4. the USB device of band switching device as claimed in claim 1, it is characterised in that: described gesture Sensor is capacitor induction type sensor;Described sensing controler, master controller and mass storage are integrated On chip, the grounding pin ground connection of described USB plug, two data pin correspondences respectively and the two of chip Individual data pin is connected, and the power pins of described USB plug is connected with the first end of indicator lamp by resistance, Second end of described indicator lamp is connected with the I/O pin RA3 of chip, the I/O pin RA0 of described chip with Capacitor induction type sensor is connected, the grounding pin ground connection of described chip, power pins and the electricity of USB plug Source pin is connected, and the programming of described chip enables pin and is connected with the first pin of connector, described connector The second pin be connected with the power pins of chip, the 3rd pin of described connector and the grounding pin of chip Being connected, the 4th pin of described connector is connected with the serial data pin of chip, the 5th of described connector Pin is connected with the serial clock pin of chip;Described connector is for being connected with cd-rom recorder.
5. the USB device of band switching device as claimed in claim 4, it is characterised in that: described chip Model be PIC18F25K50.
6. the USB device of band switching device as claimed in claim 4, it is characterised in that: described electric capacity Inductosyn is the copper sheet of 1cm × 1cm.
7. the USB device of band switching device as claimed in claim 4, it is characterised in that: described electric capacity Inductosyn fits in the inwall of shell and arranges.
8. the USB device of band switching device as claimed in claim 4, it is characterised in that: described instruction Lamp is light emitting diode, and the anode of described light emitting diode is the first end of indicator lamp, described light emitting diode The second end that negative electrode is indicator lamp.
9. the USB device of band switching device as claimed in claim 1, it is characterised in that: described master control Device processed, mass storage and sensing controler may be contained within pcb board.
10. the USB device of band switching device as claimed in claim 1, it is characterised in that: described band is cut The USB device of changing device also includes pcb board fixed support, for pcb board is fixed on enclosure.
CN201410135630.XA 2014-04-04 2014-04-04 USB device with switching device Active CN103885914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410135630.XA CN103885914B (en) 2014-04-04 2014-04-04 USB device with switching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410135630.XA CN103885914B (en) 2014-04-04 2014-04-04 USB device with switching device

Publications (2)

Publication Number Publication Date
CN103885914A CN103885914A (en) 2014-06-25
CN103885914B true CN103885914B (en) 2016-08-17

Family

ID=50954813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410135630.XA Active CN103885914B (en) 2014-04-04 2014-04-04 USB device with switching device

Country Status (1)

Country Link
CN (1) CN103885914B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202103646U (en) * 2011-06-17 2012-01-04 中国华录·松下电子信息有限公司 Non-contact capacitance induction switch
CN203520879U (en) * 2013-10-24 2014-04-02 昆明理工大学 U disk with a write protection function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030154385A1 (en) * 2002-02-12 2003-08-14 Pei-Chung Liu Data security device of data storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202103646U (en) * 2011-06-17 2012-01-04 中国华录·松下电子信息有限公司 Non-contact capacitance induction switch
CN203520879U (en) * 2013-10-24 2014-04-02 昆明理工大学 U disk with a write protection function

Also Published As

Publication number Publication date
CN103885914A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN107038138A (en) USB power delivery apparatus and the system including it
CN207978169U (en) False memory circuit board
CN106786960A (en) Charge control method, device and terminal
CN107658916A (en) Cue circuit and electronic equipment
KR20090056918A (en) A type symmetric usb receptacle
KR100765612B1 (en) Wireless charger
CN107391212A (en) Burning device and its guard method
JP5897014B2 (en) System and method for illuminating a power device
TW201415333A (en) Touch sensing device and circuit board
CN103219042B (en) Circuit for realizing program burning through USB interface and memory circuit
CN103885914B (en) USB device with switching device
CN103425943B (en) Embedded multi-media card and relevant electronic installation and its project plate
KR100776611B1 (en) USB Drive Having within Spare Battery
CN109709616A (en) Bluetooth leather sheath keyboard suspend mode magnet test device and test method
TW201601348A (en) System in package structure, electroplating module thereof and memory storage device
CN204516361U (en) Embedded storage chip, EMBEDDED AVIONICS
GB2447517A (en) Solid state memory with extensible capacity
KR102530893B1 (en) Electric device with safety protection against moisture
CN215895444U (en) Firmware updating device and development board assembly
CN203406628U (en) Card-type electronic equipment with charging interface
CN109396594A (en) A kind of charging type electric soldering iron that can record data
CN209334893U (en) A kind of charging type electric soldering iron that can record data
US20220209554A1 (en) Portable charging device
JP6419283B1 (en) Semiconductor memory device
CN203673831U (en) EEPROM on-line burning circuit and conditioner

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant