CN104810039A - Mobile storing device and access control method thereof - Google Patents

Mobile storing device and access control method thereof Download PDF

Info

Publication number
CN104810039A
CN104810039A CN201510142029.8A CN201510142029A CN104810039A CN 104810039 A CN104810039 A CN 104810039A CN 201510142029 A CN201510142029 A CN 201510142029A CN 104810039 A CN104810039 A CN 104810039A
Authority
CN
China
Prior art keywords
flash memory
lightning
memory device
usb
interface
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
CN201510142029.8A
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.)
Fengdao Electronic Technology Suzhou Co Ltd
Original Assignee
Fengdao Electronic Technology Suzhou 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 Fengdao Electronic Technology Suzhou Co Ltd filed Critical Fengdao Electronic Technology Suzhou Co Ltd
Priority to CN201510142029.8A priority Critical patent/CN104810039A/en
Publication of CN104810039A publication Critical patent/CN104810039A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to a mobile storing device. The device comprises a single chip controller, a storage device, a current detector, an analog-digital converter, a PMOS switch, a USB interface and a Lightning interface, wherein the current detector, the analog-digital converter and the PMOS switch are sequentially connected in series between the USB interface and the Lightning interface; the storage device, the analog-digital converter and the PMOS switch are respectively integrally connected with the single chip controller; the analog-digital converter can be used for converting a voltage signal from the current detector into a digital signal to be outputted to the single chip controller; the single chip controller can drive the PMOS switch to close or open according to the received digital signal in order to allow or cut off the transmission of data or power between the USB interface and the Lightning interface, and therefore, the mobile storing device can be connected with the USB device and the Lightning device within the first time to store and pick data and be charged; the use is convenient.

Description

Flash memory device and access control method thereof
Technical field
The present invention relates to a kind of flash memory device and access control method thereof, particularly relate to a kind of flash memory device and the access control method thereof that are connected to USB device and Lightning device.
Background technology
External flash memory device is except having storer in the market, is also built-in with battery component, can store data and give other equipment charges.Flash memory device is roughly divided into two kinds by interface type, and one only has a USB interface, with the USB device with USB interface, as computer, mobile phone, flat board link together, can carry out the access of data and the transmission of power supply.Another kind has both-end interface: USB interface and Lightning(lightning) interface, can be connected with USB device and the Lightning device with Lightning interface, Lightning device comprises the products such as Iphone, Ipad of Apple, and Lightning interface is the high-speed multifunctional I/O interface that Apple issued in September, 2012.
The above-mentioned flash memory device possessing both-end interface is mainly used to carry out data-moving between USB device and Lightning device, USB device and Lightning device cannot be connected at one time, after the data access of this flash memory device and USB device and the action of power delivery complete, must disconnect and connection between USB device, Lightning device could be connected and carry out data access and power delivery, use very loaded down with trivial details consuming time again.
So, be necessary that a kind of new flash memory device of design is to solve the problems of the technologies described above.
Summary of the invention
A kind of flash memory device easy to use and access control method thereof are the object of the present invention is to provide.
For realizing aforementioned object, the present invention adopts following technical scheme: a kind of flash memory device, it comprises single-chip controller, storer, current detector, analog to digital converter, PMOS switch, USB interface and Lightning interface, described current detector, analog to digital converter, PMOS switch is sequentially connected between USB interface and Lightning interface, described storer, analog to digital converter and PMOS switch also respective and single-chip controller link together, voltage signal from current detector can be converted to digital signal and export to single-chip controller by described analog to digital converter, described single-chip controller can drive PMOS switch close or open according to the size of received digital signal, to allow or to cut off the transmission of data or power supply between USB interface and Lightning interface.
The present invention also adopts following technical scheme: a kind of access control method of flash memory device, described flash memory device comprises single-chip controller, storer, battery component, current detector, analog to digital converter, PMOS switch, USB interface and Lightning interface, described current detector, analog to digital converter, PMOS switch is sequentially connected between USB interface and Lightning interface, described storer, battery component, analog to digital converter and PMOS switch also respective and single-chip controller link together, voltage signal from current detector can be converted to digital signal and export to single-chip controller by described analog to digital converter, the circular flow as follows of described access control method:
1st step, described single-chip controller, according to the size of analog to digital converter output valve, judges that whether USB interface connects with USB device or whether Lightning interface connects with Lightning device, draws three kinds of judged results:
(1). only USB interface and USB device connect, and flash memory device is only connected with device;
(2). only Lightning interface and Lightning device connect, and flash memory device is only connected with Lightning device;
(3). USB interface and Lightning interface connect at one time respectively, and flash memory device is connected between USB device and Lightning device, and three is formed and electrically conducts; 2nd step, three kinds of judged results according to the 1st step are run:
(1) if. when flash memory device is only connected with USB device, described single-chip controller allows USB device to carry out data access to flash memory device or USB device is charged to flash memory device;
(2) if. when flash memory device only connects with Lightning device, described single-chip controller allows Lightning device to carry out data access to flash memory device or flash memory device charges to Lightning device;
(3) if. when flash memory device, USB device and Lightning device three connect, described single-chip controller first cuts off Lightning device to the data access of flash memory device and flash memory device to the charging of Lightning device, then allows USB device to carry out data access or USB device to the charging of flash memory device to flash memory device and lightning device; And
3rd step, single-chip controller judges whether USB interface or Lightning interface disconnect.
Flash memory device of the present invention can be connected with USB device and Lightning device the same time, flash memory device is made to be connected between USB device and Lightning device, USB device is utilized to carry out data access to flash memory device and lightning device and USB device is charged to flash memory device, USB device can be allowed fast directly to carry out data access and power delivery to lightning device, easy to use, save time.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that flash memory device of the present invention is connected with USB device and Lightning device.
Fig. 2 is the operating diagram of flash memory device single-chip of the present invention.
Embodiment
Refer to shown in Fig. 1, flash memory device 100 of the present invention can be connected with USB device 200 or Lightning device 300 separately, or the same time is connected with USB device 200 and Lightning device 300, carries out the access of data and the transmission of power supply.Flash memory device 100 of the present invention comprises single-chip controller 10, stores the storer 20 of data, the battery component 30 of access power, current detector 40, analog to digital converter 50, PMOS switch 60, USB interface 70 and Lightning interface 80, and storer 20 can utilize storage card to replace.
Single-chip controller 10 is connected on USB interface 70, Lightning interface 80 and between storer 20 and battery component 30, make single-chip controller 10 when battery component 30, storer 20 are connected with USB interface 70, Lightning interface 80, can allow, disconnect and select to allow the transmission carrying out data and power supply, specifically, when flash memory device 100 is only connected with USB device 200, USB device 200 can carry out data access to the storer 20 of flash memory device 100 and battery component 30 charges; When flash memory device 100 is only connected with Lightning device 300, single-chip controller 100 allows the storer 20 of Lightning device 300 pairs of flash memory devices 100 to carry out data access and battery component 30 charges to Lightning device 300; When flash memory device 100, USB device 200 and Lightning device 300 three link together, single-chip controller 10 first can cut off Lightning device 300 pairs of flash memory devices 100 to carry out data and deposits, then allows USB device 200 pairs of flash memory devices 100 and Lightning device 300 to carry out data access or charge to Lightning device 300.
Current detector 40, analog to digital converter 50, PMOS switch 60 are sequentially connected between USB interface 70 and Lightning interface 80, analog to digital converter 50 and PMOS switch 60 also link together with single-chip controller 10 respectively, make single-chip controller 10 can receive the digital signal of analog to digital converter 50 output and drive PMOS switch 60 close or open according to the size of this digital signal.
Owing to providing the of a great variety of power supply through USB interface 70, by the voltage of USB interface 70 power supply, single-chip controller 10 can confirm that whether power supply is sufficient or limited when carrying out current sense, if electricity shortage, suitable power supply allotment can be carried out, reduce the possibility of damage of product and fault.
When USB interface 70 connects upper USB device 200, single-chip controller 10 starts to carry out power management routines, first, current detector 40 carries out current sense, current signal is converted to voltage signal, then, voltage signal changes rear output digit signals via analog to digital converter 50, finally, according to the size of this digital signal, single-chip controller 10 differentiates that whether the power supply that USB interface 70 inputs is normal, if meet the safe power supply of USB, PMOS switch 60 is then driven to close, the power supply of USB interface 70 is allowed to export Lightning interface 80 to, charge to Lightning device 300, if abnormal, then single-chip controller 10 drives PMOS switch 60 to close, and stops power supply to export Lightning interface 80 to, so designs, ensure that the security in use.
Refer to shown in Fig. 1 and Fig. 2, the present invention also provides a kind of access control method of flash memory device 100, and it comprises the steps:
1st step, single-chip controller 10 utilizes the size of analog to digital converter 50 output valve, judges that whether USB interface 70 connects with USB device 200 or whether Lightning interface 80 connects with Lightning device 300, draws three kinds of judged results:
(1). only USB interface 70 and USB device 200 connect, and flash memory device 100 is only connected with USB device 200;
(2). only Lightning interface 80 and Lightning device 300 connect, and flash memory device 100 is only connected with Lightning device 300;
(3). USB interface 70 and Lightning interface 80 connect at one time respectively, and flash memory device 100 is connected between USB device 200 and Lightning device 300, and three is formed and electrically conducts.
2nd step, three kinds of judged results according to the 1st step are run:
(1) if. when flash memory device 100 is only connected with USB device 200, runs USB device 200 pairs of flash memory devices 100 and carry out data access and USB device 200 pairs of flash memory devices 100 charge;
(2) if. when flash memory device 100 only connects with Lightning device 300, run Lightning device 300 pairs of flash memory devices 100 and carry out data access and flash memory device 100 pairs of Lightning devices 300 charge;
(3) if. when flash memory device 100, USB device 200 and Lightning device 300 three connect, first cut off the data access of Lightning device 300 pairs of flash memory devices 100 and the charging of flash memory device 100 pairs of Lightning devices 300, then allow USB device 200 pairs of flash memory devices 100 and lightning device 300 to carry out the charging of data access and USB device 200 pairs of flash memory devices 100.
3rd step, single-chip controller 10 judges whether USB interface 70 or Lightning interface 80 disconnect.
Flash memory device 100 1 aspect of the present invention can be connected with USB device 200 or Lightning device 300, carries out the data access between flash memory device 100 and USB device 200 or between flash memory device 100 and Lightning device 300 and power delivery.
On the other hand, flash memory device 100 of the present invention can be connected with USB device 200 and Lightning device 300 the same time, flash memory device 100 is made to be connected between USB device 200 and Lightning device 300, USB device 200 pairs of flash memory devices 100 and lightning device 300 can be utilized to carry out data access and USB device 200 pairs of flash memory devices 100 charge, USB device 200 can be allowed fast directly to carry out data access and power delivery to lightning device 300, easy to use, save time.
Although be example object, disclose the preferred embodiment of the present invention, but those of ordinary skill in the art will recognize, when not departing from scope and spirit of the present invention disclosed in appending claims, various improvement, increase and replacement are possible.

Claims (6)

1. a flash memory device, it comprises single-chip controller, storer, current detector, analog to digital converter, PMOS switch, USB interface and Lightning interface, described current detector, analog to digital converter, PMOS switch is sequentially connected between USB interface and Lightning interface, it is characterized in that: described storer, analog to digital converter and PMOS switch also respective and single-chip controller link together, voltage signal from current detector can be converted to digital signal and export to single-chip controller by described analog to digital converter, described single-chip controller can drive PMOS switch close or open according to the size of received digital signal, to allow or to cut off the transmission of data or power supply between USB interface and Lightning interface.
2. flash memory device according to claim 1, it is characterized in that: described flash memory device also comprises the battery component linked together with single-chip controller, when described flash memory device is only connected with USB device, USB device can be charged to battery component; When described flash memory device is only connected with Lightning device, described battery component can give the charging of Lightning device.
3. flash memory device according to claim 2, it is characterized in that: it is characterized in that: when described flash memory device is only connected with USB device, storer can be allowed to carry out data access to flash memory device for described single-chip controller and USB device is charged to battery component.
4. flash memory device according to claim 2, it is characterized in that: it is characterized in that: when described flash memory device is only connected with Lightning device, Lightning device can be allowed to carry out data access to flash memory device for described single-chip controller and flash memory device charges to Lightning device.
5. flash memory device according to claim 2, it is characterized in that: it is characterized in that: when described flash memory device is connected with USB device and Lightning at one time, described single-chip controller can cut off Lightning device to the data access of flash memory device and flash memory device to the charging of Lightning device, and allows USB device to carry out data access to flash memory device and lightning device or USB device is charged to flash memory device.
6. the access control method of a flash memory device, described flash memory device comprises single-chip controller, storer, battery component, current detector, analog to digital converter, PMOS switch, USB interface and Lightning interface, described current detector, analog to digital converter, PMOS switch is sequentially connected between USB interface and Lightning interface, described storer, battery component, analog to digital converter and PMOS switch also respective and single-chip controller link together, voltage signal from current detector can be converted to digital signal and export to single-chip controller by described analog to digital converter, the circular flow as follows of described access control method:
1st step, described single-chip controller, according to the size of analog to digital converter output valve, judges that whether USB interface connects with USB device or whether Lightning interface connects with Lightning device, draws three kinds of judged results:
Only USB interface and USB device connect, and flash memory device is only connected with device;
Only Lightning interface and Lightning device connect, and flash memory device is only connected with Lightning device;
USB interface and Lightning interface connect at one time respectively, and flash memory device is connected between USB device and Lightning device, and three is formed and electrically conducts; 2nd step, three kinds of judged results according to the 1st step are run:
If when flash memory device is only connected with USB device, described single-chip controller allows USB device to carry out data access to flash memory device or USB device is charged to flash memory device;
If when flash memory device only connects with Lightning device, described single-chip controller allows Lightning device to carry out data access to flash memory device or flash memory device charges to Lightning device;
If when flash memory device, USB device and Lightning device three connect, described single-chip controller first cuts off Lightning device to the data access of flash memory device and flash memory device to the charging of Lightning device, then allows USB device to carry out data access or USB device to the charging of flash memory device to flash memory device and lightning device; And
3rd step, single-chip controller judges whether USB interface or Lightning interface disconnect.
CN201510142029.8A 2015-03-30 2015-03-30 Mobile storing device and access control method thereof Pending CN104810039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510142029.8A CN104810039A (en) 2015-03-30 2015-03-30 Mobile storing device and access control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510142029.8A CN104810039A (en) 2015-03-30 2015-03-30 Mobile storing device and access control method thereof

Publications (1)

Publication Number Publication Date
CN104810039A true CN104810039A (en) 2015-07-29

Family

ID=53694820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510142029.8A Pending CN104810039A (en) 2015-03-30 2015-03-30 Mobile storing device and access control method thereof

Country Status (1)

Country Link
CN (1) CN104810039A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114328332A (en) * 2021-11-30 2022-04-12 浪潮(山东)计算机科技有限公司 USB interface control method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030147231A1 (en) * 2002-02-01 2003-08-07 Frank Chen Access device of memory card
CN102957177A (en) * 2011-08-24 2013-03-06 芯讯通无线科技(上海)有限公司 Charging management system
CN204030206U (en) * 2014-08-22 2014-12-17 深圳市嘉夆科技有限公司 A kind of Multifunctional data line with emergent charging apparatus
CN204166903U (en) * 2014-11-14 2015-02-18 尹继鹏 Multifunctional storage device
CN204537698U (en) * 2015-03-30 2015-08-05 丰岛电子科技(苏州)有限公司 Flash memory device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030147231A1 (en) * 2002-02-01 2003-08-07 Frank Chen Access device of memory card
CN102957177A (en) * 2011-08-24 2013-03-06 芯讯通无线科技(上海)有限公司 Charging management system
CN204030206U (en) * 2014-08-22 2014-12-17 深圳市嘉夆科技有限公司 A kind of Multifunctional data line with emergent charging apparatus
CN204166903U (en) * 2014-11-14 2015-02-18 尹继鹏 Multifunctional storage device
CN204537698U (en) * 2015-03-30 2015-08-05 丰岛电子科技(苏州)有限公司 Flash memory device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114328332A (en) * 2021-11-30 2022-04-12 浪潮(山东)计算机科技有限公司 USB interface control method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN102754245A (en) Battery, battery component and subscriber equipment
CN102570546A (en) Mobile terminal and charge device and method thereof
CN104283284A (en) Multifunctional data portable power source and charging method
CN203086213U (en) Rapid charger and mobile power supply with the charger
CN103730933A (en) Charging method and electronic devices
CN103647258A (en) Battery protection-used chip cascade structure
CN102638081A (en) Smart matrix battery charging-discharging managing system and managing method
CN201766243U (en) Universal serial bus concentrator
CN204304476U (en) A kind of multi-functional data portable power source
CN204537698U (en) Flash memory device
CN202474947U (en) Portable movable power supply
CN204732936U (en) A kind of portable power source
CN104810039A (en) Mobile storing device and access control method thereof
CN104767229A (en) Integrated power bank
CN204349545U (en) Quick charge portable power source
CN102509999A (en) Digitalized solid laser power supply module
CN204706351U (en) Flash memory device
CN202474940U (en) Lithium battery miner lamp charging management switch based on current direction
CN204928289U (en) Novel USB charger
CN204130861U (en) The quick, intelligent charging wire of a kind of USB
CN203218974U (en) Electric power integrated power supply system
CN203135518U (en) Multifunctional mobile phone charger
CN201839027U (en) Portable charging data communication device
CN105932730A (en) Mobile phone charging circuit, mobile phone, mobile phone charging method
CN105280970A (en) Charging method for mobile terminal and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Jinxi town Jinchang road Kunshan city Suzhou city Jiangsu province 215324 No. 158

Applicant after: Luxshare Electronic Technology (Kunshan) Co., Ltd.

Address before: Jinxi town Jinchang road Kunshan city Suzhou city Jiangsu province 215324 No. 158

Applicant before: FENGDAO ELECTRONIC TECHNOLOGY (SUZHOU) CO., LTD.

CB02 Change of applicant information
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150729

WD01 Invention patent application deemed withdrawn after publication