Summary of the invention
Based on this, be necessary to provide a kind of exchanges data convenient and the mobile memory of data storage security.
A kind of mobile memory, comprises USB interface, the control module be connected with USB interface, the USB main control module be connected with control module, to be connected with USB main control module for the flash memory storing data, the Wi-Fi module be connected with control module, the memory module be connected with control module and the power module that is connected with control module, described USB main control module is for controlling the access of data in flash memory, described Wi-Fi module is used for realizing radio communication with external unit, described power module is used for providing electric energy for described control module, described control module controls the work of Wi-Fi module and controls Wi-Fi module and the exchanges data between USB interface and USB main control module, described USB interface realizes the data access operation to described flash memory by control module and USB main control module, described Wi-Fi module realizes the data access operation to described flash memory by control module and USB main control module, described memory module is for storing password, when external unit carries out accessing operation by USB interface or Wi-Fi module to the data of flash memory, control module judges that whether the password that described USB interface or Wi-Fi module transmit is consistent with the password that memory module stores, if the password that USB interface or Wi-Fi module transmit is consistent with the password that memory module stores, allows USB interface or Wi-Fi module to carry out data access operation to flash memory, otherwise forbid that USB interface or Wi-Fi module carry out data access operation to flash memory.
Wherein in an embodiment, described mobile memory also comprises handover module, described handover module is connected between described USB interface and control module, and described handover module carries out exchanges data by one of them in control module selection USB interface and Wi-Fi module and described flash memory.
Wherein in an embodiment, described flash memory comprises the common storage area allowing directly access without the need to password authentification and the secret memory block needing password authentification to access.
Wherein in an embodiment, described flash memory comprises the first flash memory and the second flash memory, and described first flash memory is the common storage area allowing directly access without the need to password authentification, and described second flash memory is the secret memory block needing password authentification to access.
Wherein in an embodiment, described power module is rechargeable lithium ion batteries, and described power module is connected with described USB interface, and described USB interface is the charging of described power module.
Wherein in an embodiment, described handover module controls the connection of described power module and control module, when described handover module selects USB interface and described flash memory to carry out exchanges data, described handover module disconnects the connection of described power module and control module, when described handover module selects Wi-Fi module and described flash memory to carry out exchanges data, described handover module connects the connection of described power module and control module.
Wherein in an embodiment, be connected with charging control circuit between described USB interface and power module, described charging control circuit controls the electric energy being supplied to power module from USB interface.
Wherein in an embodiment, described mobile memory also comprises being connected with control module with power module and is used to indicate the state indicator module of described mobile memory duty.
Wherein in an embodiment, described state indicator module comprises the LED be connected with control module with power module.
Wherein in an embodiment, described Wi-Fi module comprises Wi-Fi signal launching and receiving antenna.
Above-mentioned mobile memory comprises USB interface, Wi-Fi module, processing module and memory module, and the access that this mobile memory both can carry out data by USB interface so also can carry out the access of data by Wi-Fi module.So this mobile memory has exchanges data advantage easily.In addition, processing module is used for judging that whether the password that user inputs is consistent with the password stored in memory module, just allows user to carry out data access operation to flash memory when the password of user's input is consistent with the password stored in memory module.Therefore, the data stored in this mobile memory are not easily let out, safer.
Embodiment
Please refer to Fig. 1, an embodiment provides a kind of mobile memory 100.This mobile memory 100 comprises usb 1 10, the control module 140 be connected with usb 1 10, the USB main control module 120 be connected with control module 140, to be connected with USB main control module 120 for the flash memory 130 storing data, the Wi-Fi module 150 be connected with control module 140, the memory module 190 be connected with control module 140 and the power module 180 that is connected with control module 140.USB main control module 120 is for controlling the access of data in flash memory 130, Wi-Fi module 150 is for realizing radio communication with external unit, power module 180 is for providing electric energy for control module 120, memory module 190 is for storing password, and control module 120 controls the work of Wi-Fi module 150 and controls Wi-Fi module 150 and the exchanges data between usb 1 10 and USB main control module 120.When external unit carries out accessing operation by the data of usb 1 10 or Wi-Fi module 150 pairs of flash memories 130, control module 140 judges that whether the password that password that usb 1 10 or Wi-Fi module 150 transmit and memory module 190 store is consistent, if the password that usb 1 10 or Wi-Fi module 150 transmit is consistent with the password that memory module 190 stores, allows usb 1 10 or Wi-Fi module 150 pairs of flash memories 130 to carry out data access operation, otherwise forbid that usb 1 10 or Wi-Fi module 150 pairs of flash memories 130 carry out data access operation.
Wi-Fi module 150 herein comprises Wi-Fi signal launching and receiving antenna.The password that memory module 190 stores comprises the password of access required for flash memory 130 and is connected the password required for matching with Wi-Fi module 150 with external unit.In addition, memory module 190 can also store the program needed for control module 140 of this mobile memory 100.
This mobile memory 100 also comprises handover module 160.Handover module 160 is connected between usb 1 10 and control module 140.Handover module 160 selects usb 1 10 to be connected with USB main control module 120 with one of them in control module 140.Like this, can ensure that this mobile memory 100 only has usb 1 10 pairs of flash memories 130 to conduct interviews in use or only has Wi-Fi module 150 pairs of flash memories 130 to carry out data access by this handover module 160.Thus can avoid occurring that the situations such as data access conflict occur.
Because this mobile memory 100 comprises usb 1 10 and Wi-Fi module 150, the access that this mobile memory 100 both can carry out data by usb 1 10 so also can carry out the access of data by Wi-Fi module 150.Like this, for only having USB interface or only having the external unit of Wi-Fi function, this mobile memory 100 can realize carrying out exchanges data with them.Therefore, this mobile memory has exchanges data advantage easily.
In addition, handover module 160 can also control the connection of power module 180 and control module 140.When handover module 160 selects usb 1 10 to carry out exchanges data with flash memory 130, the connection of handover module 160 deenergization module 180 and control module 140; When handover module 160 selects Wi-Fi module 150 to carry out exchanges data with flash memory 130, handover module 160 switches on power the connection of module 180 and control module 140.Like this, when handover module 160 selects usb 1 10 to carry out exchanges data with flash memory 130, power module 180 does not just need for control module 140 provides electric energy, but by the external unit be connected with usb 1 10, as computer for control module 140 provides electric energy.And when the usb 1 10 of this mobile memory 100 is not connected with external units such as computers, control module 140 will not work, and this mobile memory 100 also just cannot carry out data access operation by Wi-Fi module 150.Only have when handover module 160 selects Wi-Fi module 150 to carry out exchanges data with flash memory 130, power module 180 and control module 140 just can link together, power module 180 could provide electric energy for control module 140, thus makes this mobile memory 100 can carry out data access operation by Wi-Fi module 150.So handover module 160 not only has the function selecting different data model storages, also there is the function of closing this mobile memory 100.
The power module 180 of this mobile memory 100 is rechargeable lithium ion batteries, and power module 180 is connected with usb 1 10.Like this, usb 1 10 just can charge for power module 180.Be connected with charging control circuit between usb 1 10 and power module 180, charging control circuit controls the electric energy being supplied to power module 180 from usb 1 10.When power module 180 charging complete, charging control circuit controls usb 1 10 to be stopped charging to power module 180.
This mobile memory 100 also comprises being connected with control module 140 with power module 180 and is used to indicate the state indicator module 170 of this mobile memory 100 duty.Power module 180 is for powering for state indicator module 170, and control module 140 is for the indicating status of state of a control indicating module 170.State indicator module 170 herein comprises the LED be connected with control module 140 with power module 180.This mobile memory 100 duty herein comprises the instruction of electricity stored by the work instruction of Wi-Fi module 150 and power module 180.When Wi-Fi module 150 works, in state indicator module 170, corresponding LED can glimmer.When the electricity of power module 180 is not enough, in state indicator module 170, corresponding LED also can glimmer.Like this, user can understand the working condition of this mobile memory 100 according to the indicative function of state indicator module 170.
The flash memory 130 of this mobile memory 100 is NAND flash memory.In addition, flash memory 130 comprises the common storage area allowing directly access without the need to password authentification and the secret memory block needing password authentification to access.Common storage area and secret memory block can be two parts of a flash memory 130 also can be two flash memories.Herein, flash memory 130 comprises the first flash memory and the second flash memory, and the first flash memory is the common storage area allowing directly access without the need to password authentification, and the second flash memory is the secret memory block needing password authentification to access.
Because flash memory 130 comprises the common storage area allowing directly access without the need to password authentification and the secret memory block needing password authentification to access.Like this, user in use will be very convenient.For the data of some needs to be keep secret, such as address list, important documents and so on, user can be left in secret memory block.For the data of some not needs to be keep secret, user can leave them in common storage area.Just the significant data of need to be keep secret can be protected by this method, and can not be known by other people by leaking easily.In addition, when the user of the password of storage in the memory module 190 of not knowing this mobile memory 100 uses this mobile memory 100, this mobile memory 100, except the effect of protected data, can't bring excessive puzzlement to user.User still can use this mobile memory 100 as using traditional USB flash disk.Just user cannot operate secret memory block.So this mobile memory 100 can not only protect stored data not easily to be let out, and has safe and reliable advantage, conveniently can also not know that the user of password uses, there is advantage easy to use.
The working condition of this mobile memory 100 will be introduced below.
When using this mobile memory 100, user is transmitted or is used Wi-Fi transmission mode and the external world to realize data transmit needing according to the use of reality choice for use usb 1 10 and external unit to realize data.
Please refer to Fig. 2, when user's choice for use usb 1 10 and external unit carry out data transmit time, the usb 1 10 of this mobile memory 100 is directly connected with the USB interface of corresponding external unit.External device is herein such as computer.Now handover module 160 selects usb 1 10 and flash memory 130 to carry out exchanges data.Then, this mobile memory 100 will carry out work according to following steps.
Step S110, arranges the initial password of this mobile memory 100.When user takes this mobile memory 100 first time, when also dispatching from the factory with regard to this mobile memory 100, this mobile memory 100 inside does not arrange password.User is now needed to carry out password setting to this mobile memory 100.Certainly, this mobile memory 100 also can arrange a password when dispatching from the factory, and user can modify to the password arranged when dispatching from the factory before use.Password set in this step S110 is stored in memory module 190.This step S110 carries out when this mobile memory 100 is inserted into computer first time by user, after arranging, carries out password setting again in user's use procedure afterwards with regard to not needing.
Step S120, receives the access request of user.Through the setting of initial password, user, at this or when using this mobile memory 100 later, directly will process the access request of user.
Step S130, judges that the access request of user is carried out accessing operation to common storage area or carries out storage operation to secret memory block.The storage space being used for storing external data in this mobile memory 100 is divided into two regions herein, one is the common storage area allowing directly access without the need to password authentification, and another is the secret memory block needing password authentification to access.User can be facilitated like this to carry out classified access to data.
Step S142, if the access request of user carries out accessing operation to common storage area, allows user to perform accessing operation to common storage area, otherwise enters next step.That is, if the access request of user carries out storage operation to secret memory block, then step S141 is carried out.
Step S141, prompting user inputs password.Owing to being conduct interviews to secret memory block, now in order to the safety of protected data, just need user to input password and verify.
Step S150, judges that the password that user inputs is consistent with the password stored in mobile memory 100.
Step S160, when the password of user's input is consistent with the password stored in mobile memory 100, prompting user is the need of change password.When the password stored in the password and mobile memory 100 of user's input is inconsistent, return step S141, prompting user inputs password.
Step S170, when user selects Modify password, prompting user inputs new password, user cipher revised after password using new password as mobile memory 100.When user select not Modify password time, enter next step, namely carry out step S180.
Step S180, allows the secret memory block of user to mobile memory 100 to carry out data access operation.Now, the password of user's input is consistent with the password stored in mobile memory 100, so, allow the secret memory block of user to mobile memory 100 to carry out data access operation.
When user's choice for use Wi-Fi transmission mode and external unit carry out data transmit time, then need the state of the handover module 160 changing this mobile memory 100.The connection of usb 1 10 and control module 140 can be disconnected by the state changing handover module 160, and make power module 180 be connected with control module 140 simultaneously.Control Wi-Fi module 150 is sent signal by such control module 140.External unit will be connected with this mobile memory 100 by Wi-Fi module 150.Now, the password used when the connection of Wi-Fi module 150 and external unit can be set, thus the safety ensureing connection.Like this, the access that external unit just can realize data in flash memory 130 by Wi-Fi module 150 and control module 140, thus realize data access operation.External unit herein can be mobile phone, panel computer etc. with Wi-Fi function.Just data access operation can be carried out by external unit to this mobile memory 100 after external unit and this mobile memory 100 couple together with Wi-Fi.Now, this mobile memory 100 carry out password setting, data access work step with undertaken by USB interface password setting, data access work step identical.Repeat no more herein.
Need first to carry out password authentification when this mobile memory 100 is by arranging password and making user conduct interviews to mobile memory 100 then could access, can prevent the data in mobile memory 100 from being let out easily like this, thus make the data in mobile memory 100 safer.In addition, because mobile memory 100 has the common storage area allowing directly access without the need to password authentification and the secret memory block needing password authentification to access, the user not knowing password is made also can also to use mobile memory 100 to carry out the accessing operation of data.The use of this mobile memory 100 is very convenient like this.
This mobile memory comprises USB interface, Wi-Fi module, processing module and memory module, and the access that this mobile memory both can carry out data by USB interface so also can carry out the access of data by Wi-Fi module.So this mobile memory has exchanges data advantage easily.In addition, processing module is used for judging that whether the password that user inputs is consistent with the password stored in memory module, just allows user to carry out data access operation to flash memory when the password of user's input is consistent with the password stored in memory module.Therefore, the data stored in this mobile memory are not easily let out, safer.So this mobile memory has exchanges data convenience and the advantage of data storage security.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.