CN105700983B - A kind of judgment method of USBKey and USBKey operating mode - Google Patents
A kind of judgment method of USBKey and USBKey operating mode Download PDFInfo
- Publication number
- CN105700983B CN105700983B CN201410693891.3A CN201410693891A CN105700983B CN 105700983 B CN105700983 B CN 105700983B CN 201410693891 A CN201410693891 A CN 201410693891A CN 105700983 B CN105700983 B CN 105700983B
- Authority
- CN
- China
- Prior art keywords
- usbkey
- voltage
- chip
- usb interface
- usb
- 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.)
- Expired - Fee Related
Links
Abstract
The invention discloses a kind of judgment methods of USBKey and USBKey operating mode, belong to safety certificate equipment field.The USBKey includes USBKey chip (1), the USB interface (6) connecting with USBKey chip (1) and non-USB interface (7) and the battery (5) for powering under non-USB mode for USBKey chip (1), it further include voltage module (8), the input terminal of the voltage module (8) is connect with USB interface (6), and output end is connect with USBKey chip (1).The present invention can judge that the work of USBKey current system is also to realize the correct quick judgement of more function USBKey operating modes under non-USB mode under USB mode by way of hardware.
Description
Technical field
The present invention relates to safety certificate equipment technical fields, and in particular to a kind of USBKey and USBKey operating mode is sentenced
Disconnected method.
Background technique
USBKey, and it is called U-shield for short, it is a kind of safety certificate equipment, by the widely used guarantee of Internet bank user
The ID authentication device of user account safety.This kind of equipment is used by each big bank more and more at present.
Traditional U-shield is called U-shield due to using single USB communication interface and for PCs such as PC.In recent years
Carry out the rapid development with mobile Internet, more and more mobile devices (such as mobile phone, tablet computer) have become U-shield and answer
New environment.Therefore U-shield function has been expanded more communication interfaces such as (bluetooth, audio, NFC), this multi-functional U-shield
Usually to determine that it works in USB mode also when powering on is non-USB mode, and the present invention is exactly the need for being directed to practical application
It wants and one kind for proposing new USBKey that multi-functional U-shield equipment operating mode is judged when can power on and its operating mode sentences
Disconnected method.
Summary of the invention
For the needs of practical application in the prior art, the purpose of the present invention is to provide a kind of USBKey and USBKey works
The judgment method of operation mode quickly can correctly judge USBKey current operation mode by this method.
To achieve the above object, The technical solution adopted by the invention is as follows:
A kind of USBKey, including USBKey chip, the USB interface being connect with USBKey chip and non-USB interface, Yi Jiyong
It is the battery of USBKey chip power supply under Yu Fei USB mode, further includes voltage module, the voltage module
Input terminal connect with USB interface, output end is connect with USBKey chip;When the USBKey is whole by USB interface and outside
When end equipment connects, the voltage value of voltage module output end meets the work for being greater than 0 and being less than or equal to USBKey chip
Voltage.
Optionally, a kind of USBKey as described above, the preferred value of the voltage value of the voltage module output end are
The operating voltage of USBKey chip.
Optionally, a kind of USBKey as described above, the voltage module include the first resistor being connected in series and
Second resistance, first resistor ground connection, one end of second resistance is connect with USB interface, the other end and USBKey chip connect.
Optionally, a kind of USBKey as described above, the non-USB interface are that audio interface, blue tooth interface or NFC connect
Mouthful.
A kind of judgment method of USBKey operating mode based on USBKey as described above, which comprises
The output voltage of USBKey chip monitoring voltage division module;
The operating mode of USBKey, method of determination are determined according to the output voltage are as follows:
Judge whether the output voltage is high voltage, if so, the operating mode for determining USBKey is USB Working mould
Formula;If it is not, then determining that the operating mode of USBKey is non-USBKey operating mode;Wherein, the high voltage refers to that satisfaction is default
The voltage of condition, the preset condition refer to that voltage value V meets: the operating voltage of 0 < V≤USBKey chip.
Optionally, a kind of judgment method of USBKey operating mode as described above, the voltage module include string
Join the first resistor and second resistance of connection, first resistor ground connection, one end of second resistance connect with USB interface, the other end and
The connection of USBKey chip;The output voltage is the voltage in second resistance.
Optionally, a kind of judgment method of USBKey operating mode as described above, the preferred value of the voltage value V are
The operating voltage of USBKey chip.
Optionally, a kind of judgment method of USBKey operating mode as described above, the USB mode refer to
USBKey is connect by USB interface with exterior terminal equipment;The non-USB mode refers to that USBKey passes through non-USB interface
It is connect with exterior terminal equipment.
Optionally, a kind of judgment method of USBKey operating mode as described above, the non-USB interface connect for audio
Mouth, blue tooth interface or NFC interface.
The beneficial effects of the present invention are: the judgment method of USBKey and USBKey operating mode of the present invention, energy
It is enough to judge that the work of USBKey current system is also to realize more function under non-USB mode under USB mode by way of hardware
The correct quick judgement of USBKey operating mode.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of USBKey of the present invention;
Fig. 2 is the structural schematic diagram of the USBKey provided in the embodiment of the present invention a kind of;
Fig. 3 is a kind of flow chart of the judgment method of USBKey operating mode in the embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with specific embodiment with reference to the accompanying drawings of the specification.
Fig. 1 shows a kind of structural schematic diagram of USBKey in the embodiment of the present invention, as can be seen from Figure, the USBKey
Including USBKey chip 1, the USB interface being connect with USBKey chip 16 and non-USB interface 7 and in non-USB Working mould
The battery 5 powered under formula for USBKey chip 1, which further includes voltage module 8, the voltage module 8
Input terminal is connect with USB interface 6, and output end is connect with USBKey chip 1;When the USBKey is whole by USB interface and outside
When end equipment connects, the voltage value of 8 output end of voltage module meets the work for being greater than 0 and being less than or equal to USBKey chip
Voltage, preferred value are the operating voltage of USBKey chip.It should be noted that in the present embodiment, what the exterior terminal equipment referred to
It is the terminal device that can connect with USBKey by USB interface 6, with the progress data interaction of USBKey chip 1, including but unlimited
It in PC and can be realized other smart machines of class PC function, such as can pass through the intelligent hand that USB interface 6 be connect with USBKey
Machine etc..
In the present embodiment, the voltage module 8 is used to lead between USBKey and exterior terminal equipment (such as PC)
When crossing the connection of USB interface 6, the voltage for being supplied to USBKey to external terminal device is divided.In practical applications, due to end
The voltage that end equipment is supplied to USBKey is usually 5V, and the operating voltage of USBKey chip 1 is generally 3.3V, and therefore, it is necessary to electricity
Pressure division module 8 divides 5V voltage, so that when USBKey is connect by USB interface 6 with exterior terminal equipment, voltage
Voltage after the partial pressure output of division module 8 is to be supplied to the voltage of USBkey to be less than or electric equal to the work of USBKey chip 1
Whether pressure, to guarantee the safety of USBKey chip, and judge USBKey by the monitoring to 8 output voltage of voltage module
Work is under USB mode.
In the present embodiment, the voltage module is as shown in Fig. 2, include the first resistor 2 being connected in series and the second electricity
Resistance 3,2 other end of first resistor are grounded (connecting with second resistance 3 one end), and one end of second resistance 3 (is connect with first resistor
One end) it is connect with USB interface 6, the connection of the other end and USBKey chip 1, i.e., in the embodiment, the output of voltage module 8
The voltage at end is the voltage in second resistance 3.Due to the voltage value of 8 output end of voltage module should meet it is greater than 0 and small
In or equal to USBKey chip operating voltage, therefore, when terminal device is supplied to USBKey 5V voltage, first resistor 2 with
The ratio between the resistance value of second resistance 3 k meets:The preferred value of k isIt should be noted that voltage module 8
Be achieved in that multiplicity, form including but not limited to shown in Fig. 2, including those skilled in the art can be realized voltage
The form of ownership of partial pressure.
In the present embodiment, the non-USB interface 7 can be audio interface, blue tooth interface or NFC interface etc., work as USBKey
When in non-USB mode, USBKey is set by the terminals such as functions and mobile phone such as audio, bluetooth or NFC of non-USB interface 7
It is standby to carry out data communication.It is that USBKey powers by battery 5 when being connect by non-USB interface 7 with mobile terminal device, one
As battery 5 voltage be 4.2V.
USBKey provided in the present embodiment can be realized by the voltage module 8 to USBKey chip
The judgement of operating mode, deterministic process are as follows:
When USBKey is connect by USB interface 6 with exterior terminal equipment (such as PC), USBKey can receive PC supply
5V DC voltage, at this point, partial pressure of the voltage module 8 to 5V voltage, the output voltage of voltage module 8 is greater than 0,
The output voltage of voltage module 8 generally preferably is the operating voltage of USBKey chip, i.e. the voltage meeting of 3.3V, the 3.3V
High level is identified as by USBKey chip, is generally identified as digital level 1.
When USBKey is connect by non-USB interface 7 with exterior terminal equipment, such as it is connect by audio interface with mobile phone
When, since USBKey can not receive the 5V voltage of the offer of USB interface 6, the output voltage of voltage module is 0V, 0V at this time
Voltage low level can be identified as by USBKey chip, be generally identified as digital level 0.Therefore, in USB mode and non-
Under USB mode, output voltage values are different in the voltage module 8 that USBKey chip is identified, can be passed through
The mode of low and high level judges the operating mode of USBKey.Wherein, monitoring and identification of the USBKey chip to low and high level
Method is the prior art, is not described in detail herein.
It should be noted that a complete USBKey affirmative is other than including above-mentioned each component, it further include some other
The indispensable component of USBKey, power management module 4 as shown in Figure 1, battery 5 or exterior terminal equipment pass through USB
Interface requires to convert voltage by power management module 4 to the USBKey voltage provided, converts voltage to meet
USBKey chip is transferred to after the voltage of USBKey job requirement again.Not for the USBKey including power management module 4
The other components that can lack all be to those skilled in the art it is well known, no longer introduce one by one herein.
A kind of a kind of sentencing for USBKey operating mode based on USBKey shown in Fig. 1 is additionally provided in the embodiment of the present invention
Disconnected method, as shown in figure 3, this method can with specifically includes the following steps:
The output voltage of USBKey chip monitoring voltage division module;
The operating mode of USBKey, method of determination are determined according to the output voltage are as follows:
Judge whether the output voltage is high voltage, if so, the operating mode for determining USBKey is USB Working mould
Formula;If it is not, then determining that the operating mode of USBKey is non-USBKey operating mode;Wherein, the high voltage refers to that satisfaction is default
The voltage of condition, the preset condition refer to that voltage value V meets: the operating voltage of 0 < V≤USBKey chip.Wherein, the electricity
The preferred value of pressure value V is the operating voltage of USBKey chip.
When USBKey work is under USB mode, the operating voltage of USBKey chip is led to by exterior terminal equipment
USB interface offer is provided, therefore can be monitored in the voltage module that is connect with USB interface and whether have by USBKey chip
Voltage judges whether USBKey works under USB mode.It should be noted that the electricity exported after voltage module partial pressure
Pressure is only intended to be monitored the operating mode of USBKey judgement, operating voltage of the USBKey chip under USB mode
Or the voltage that exterior terminal equipment provides is provided after power management module 4 is converted.
In the present embodiment, when the voltage module of the USBKey is as shown in Fig. 2, i.e. first including being connected in series is electric
When resistance and second resistance, first resistor ground connection, one end of second resistance is connect with USB interface, the other end and USBKey chip connect
It connects;At this point, the output voltage is the voltage in second resistance.
In the present embodiment, the operating voltage of the USBKey chip is generally 3.3V.The USB mode refers to
USBKey is connect by USB interface with exterior terminal equipment;The non-USB mode refers to that USBKey passes through non-USB interface
It is connect with exterior terminal equipment.The non-USB interface is audio interface, blue tooth interface or NFC interface etc..
The judgment method of USBKey and USBKey operating mode provided in the embodiment of the present invention, hardware based mode
The judgement to USBKey operating mode is realized, can fast and accurately judge the operating mode of USBKey by this way,
Demand it needs to be determined that its operating mode has been better met when USBKey is powered on.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technology
Within, then the present invention is also intended to include these modifications and variations.
Claims (8)
1. a kind of USBKey, including USBKey chip (1), the USB interface (6) and non-USB interface that are connect with USBKey chip (1)
(7) and for being the battery (5) of USBKey chip (1) power supply under non-USB mode, it is characterised in that: further include electricity
It presses division module (8), the input terminal of the voltage module (8) is connect with USB interface (6), output end and USBKey chip
(1) it connects, when the USBKey is connect by USB interface (6) with exterior terminal equipment, voltage module (8) output end
Voltage value meet be greater than 0 and be less than or equal to USBKey chip operating voltage;Voltage module (8) output end
Voltage value is the operating voltage of USBKey chip.
2. a kind of USBKey according to claim 1, which is characterized in that the voltage module (8) includes that series connection connects
The first resistor (2) and second resistance (3) connect, first resistor (2) ground connection, one end and USB interface (6) of second resistance (3) are even
It connects, the connection of the other end and USBKey chip (1).
3. a kind of USBKey according to claim 1, which is characterized in that the non-USB interface (7) is audio interface, indigo plant
Tooth interface or NFC interface.
4. a kind of judgment method of USBKey operating mode based on USBKey described in claim 1, which is characterized in that the side
Method includes:
The output voltage of USBKey chip monitoring voltage division module;
The operating mode of USBKey, method of determination are determined according to the output voltage are as follows:
Judge whether the output voltage is high voltage, if so, the operating mode for determining USBKey is USB mode;If
It is no, then determine that the operating mode of USBKey is non-USBKey operating mode;Wherein, the high voltage, which refers to, meets preset condition
Voltage, the preset condition refer to that voltage value V meets: the operating voltage of 0 < V≤USBKey chip.
5. a kind of judgment method of USBKey operating mode according to claim 4, it is characterised in that: the voltage value V
For the operating voltage of USBKey chip.
6. a kind of judgment method of USBKey operating mode according to claim 4 or 5, it is characterised in that: the voltage
Division module includes the first resistor and second resistance being connected in series, first resistor ground connection, one end of second resistance and USB interface
Connection, the other end and USBKey chip connect;The output voltage is the voltage in second resistance.
7. a kind of judgment method of USBKey operating mode according to claim 4 or 5, it is characterised in that: the USB work
Operation mode refers to that USBKey is connect by USB interface with exterior terminal equipment;The non-USB mode refers to that USBKey passes through
Non- USB interface is connect with exterior terminal equipment.
8. a kind of judgment method of USBKey operating mode according to claim 4 or 5, it is characterised in that: the non-USB
Interface is audio interface, blue tooth interface or NFC interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410693891.3A CN105700983B (en) | 2014-11-26 | 2014-11-26 | A kind of judgment method of USBKey and USBKey operating mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410693891.3A CN105700983B (en) | 2014-11-26 | 2014-11-26 | A kind of judgment method of USBKey and USBKey operating mode |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105700983A CN105700983A (en) | 2016-06-22 |
CN105700983B true CN105700983B (en) | 2019-06-18 |
Family
ID=56295202
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410693891.3A Expired - Fee Related CN105700983B (en) | 2014-11-26 | 2014-11-26 | A kind of judgment method of USBKey and USBKey operating mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105700983B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107835507B (en) * | 2017-10-30 | 2020-02-21 | 北京明华联盟科技有限公司 | Communication processing method applied to Bluetooth shield and Bluetooth shield |
CN112949805A (en) * | 2019-12-11 | 2021-06-11 | 深圳市文鼎创数据科技有限公司 | NFC card equipment power supply method and device, computer equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201757903U (en) * | 2010-06-25 | 2011-03-09 | 北京天地融科技有限公司 | Usb key device |
CN102521186A (en) * | 2011-11-22 | 2012-06-27 | 飞天诚信科技股份有限公司 | USB (Universal Serial Bus) key and method for communicating with terminal thereof |
CN102819501A (en) * | 2012-08-21 | 2012-12-12 | 天地融科技股份有限公司 | Electronic equipment and data interface type detection method |
CN103019991A (en) * | 2012-12-03 | 2013-04-03 | 深圳市文鼎创数据科技有限公司 | Interface system, switching method, USB key and UART terminal |
CN203117972U (en) * | 2013-02-02 | 2013-08-07 | 深圳先进技术研究院 | Connection device for data transmission between medical equipment and universal serial bus (USB) equipment |
CN103390303A (en) * | 2013-06-28 | 2013-11-13 | 上海爱信诺航芯电子科技有限公司 | Financial key based on audio frequency and USB data transmission and control method thereof |
CN204242185U (en) * | 2014-11-26 | 2015-04-01 | 北京握奇智能科技有限公司 | A kind of USBKey |
-
2014
- 2014-11-26 CN CN201410693891.3A patent/CN105700983B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201757903U (en) * | 2010-06-25 | 2011-03-09 | 北京天地融科技有限公司 | Usb key device |
CN102521186A (en) * | 2011-11-22 | 2012-06-27 | 飞天诚信科技股份有限公司 | USB (Universal Serial Bus) key and method for communicating with terminal thereof |
CN102819501A (en) * | 2012-08-21 | 2012-12-12 | 天地融科技股份有限公司 | Electronic equipment and data interface type detection method |
CN103019991A (en) * | 2012-12-03 | 2013-04-03 | 深圳市文鼎创数据科技有限公司 | Interface system, switching method, USB key and UART terminal |
CN203117972U (en) * | 2013-02-02 | 2013-08-07 | 深圳先进技术研究院 | Connection device for data transmission between medical equipment and universal serial bus (USB) equipment |
CN103390303A (en) * | 2013-06-28 | 2013-11-13 | 上海爱信诺航芯电子科技有限公司 | Financial key based on audio frequency and USB data transmission and control method thereof |
CN204242185U (en) * | 2014-11-26 | 2015-04-01 | 北京握奇智能科技有限公司 | A kind of USBKey |
Also Published As
Publication number | Publication date |
---|---|
CN105700983A (en) | 2016-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108365469B (en) | Concentrator with combined power supply | |
CN103699201B (en) | Multifunctional power-on circuit and Bluetooth product | |
CN106972736A (en) | Power adaptation equipment, control method and device | |
US10574073B2 (en) | Electronic device and method for controlling power supply | |
CN107707000B (en) | OTG power supply and wireless charging compatible circuit, related method and terminal equipment | |
CN105932733B (en) | OTG power supply and its method of supplying power to, OTG equipment and mobile communication equipment | |
CN105186598B (en) | USB inserts automatic identification and electric power system and is integrated with the chip of the system | |
CN203014451U (en) | USB charger | |
CN202076771U (en) | USB OTG circuit and portable electronic device utilizing thereof | |
CN107153814B (en) | Fingerprint module data acquisition device | |
CN104269709B (en) | A kind of fast charging adapter and its control method, electronic equipment | |
CN105700983B (en) | A kind of judgment method of USBKey and USBKey operating mode | |
CN203643943U (en) | Multifunctional starting circuit and Bluetooth product | |
CN111756086A (en) | Power bridging device and bridging method using mobile robot battery | |
CN205725104U (en) | A kind of battery bridge joint charger | |
CN108365749A (en) | A kind of direct current ATX power supplys | |
CN107919717A (en) | Terminal, charging unit and charging system | |
CN106774769A (en) | The changing method and device of a kind of terminal work mode, handheld terminal | |
CN206743096U (en) | Power adaptation equipment | |
CN204242185U (en) | A kind of USBKey | |
CN105490333B (en) | Quickly charging battery control circuit, adapter and mobile device | |
CN205544888U (en) | Power adapter who conveniently charges | |
CN205427710U (en) | Start circuit, motherboard and computer of motherboard | |
CN204407944U (en) | The Function detection circuit of tool intelligence USB identification chip | |
CN209217741U (en) | Battery charge controller and mobile power source |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190618 Termination date: 20211126 |