CN104077546A - SD (Secure Digital) card multi-partition switch based method and system - Google Patents

SD (Secure Digital) card multi-partition switch based method and system Download PDF

Info

Publication number
CN104077546A
CN104077546A CN201410277261.8A CN201410277261A CN104077546A CN 104077546 A CN104077546 A CN 104077546A CN 201410277261 A CN201410277261 A CN 201410277261A CN 104077546 A CN104077546 A CN 104077546A
Authority
CN
China
Prior art keywords
card
subregion
firmware
intelligent terminal
switching
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.)
Granted
Application number
CN201410277261.8A
Other languages
Chinese (zh)
Other versions
CN104077546B (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.)
SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd
Original Assignee
SHENZHEN SILICONGO SEMICONDUCTOR 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 SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd filed Critical SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd
Priority to CN201410277261.8A priority Critical patent/CN104077546B/en
Publication of CN104077546A publication Critical patent/CN104077546A/en
Application granted granted Critical
Publication of CN104077546B publication Critical patent/CN104077546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/77Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information in smart cards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • G06F21/79Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses an SD (Secure Digital) card multi-partition switch based method. The SD card multi-partition switch based method comprises the steps of enabling an SD card to be divided into a plurality of partitions through an SD card production tool, wherein the plurality of partitions comprise a main partition and more than one secure partition; enabling one of the plurality of partitions which are divided through the SD card production tool to be switched into a reading and writing partition through firmware of the SD card, wherein only the reading and writing partition can be displayed currently; identifying the partition which is switched through the firmware of the SD card through an intelligent terminal App (Application). The invention also discloses a SD card multi-partition switch based system. According to the SD card multi-partition switch based method and system, the plurality of secure partitions are supported, the data confidentiality is good, the use is convenient, and every partition can have different functions.

Description

The method and system switching based on SD card multi partition
Technical field
The present invention relates to information storage and information security field, relate in particular to the method and system switching based on SD card multi partition.
Background technology
SD card is realized multi partition at present, mainly adopt the mode of subregion in file system, this mode and computer hard disc subregion are similar, on the SD finished product card of volume production, utilize the file system in software change SD card, realize more than one subregion, but this scheme be not suitable for counterweight and want the storage of private data.
Summary of the invention
Fundamental purpose of the present invention is to solve the problem to important private data storage after SD card subregion.
For achieving the above object, the invention provides a kind of method of switching based on SD card multi partition, comprise the following steps:
SD card is divided into multiple subregions by the firmware of SD card, and described multiple subregions comprise a main partition and more than one security partitioning;
SD card is divided into multiple subregions by SD card volume production instrument, and described multiple subregions comprise a main partition and more than one security partitioning;
One of them subregion in described multiple subregions that the firmware of SD card is divided described SD card volume production instrument switches to the write partitions of current unique demonstration; Intelligent terminal App (Application, application program) identify described SD card firmware switch after subregion.
Preferably, described after subscriber authentication success, carry out described intelligent terminal App and select to be switched subregion, the step that described to be switched subregion is switched to the write partitions of current unique demonstration also comprises subscriber authentication step before, when after subscriber authentication success, carry out described after subscriber authentication success, carry out described intelligent terminal App and select to be switched subregion, described to be switched subregion is switched to the step of the write partitions of current unique demonstration, described subscriber authentication step comprises:
Described intelligent terminal App sends the firmware of privately owned order to described SD card; The firmware of described SD card receives the privately owned order that described intelligent terminal App sends, user identity verified, if the firmware validation of SD card reception is the privately owned order that described intelligent terminal App sends, and subscriber authentication success.
Preferably, described SD card volume production instrument is divided into multiple subregions by SD card in the time of volume production, and described multiple subregions comprise that the step of a main partition and more than one security partitioning specifically comprises:
Described SD card volume production tool scans SD card;
Described SD card volume production tool settings is divided the number of partitions of subregion, and at each subregion, independently file system is set;
Described SD card volume production instrument is divided SD card according to the number of partitions setting;
Described SD card volume production instrument is preserved the partition information of described division subregion.
Preferably, the described method of switching based on SD card multi partition is selected to be switched subregion in the described method of switching based on SD card multi partition at described intelligent terminal App, and the step that described to be switched subregion is switched to the write partitions of current unique demonstration specifically comprises:
Described intelligent terminal App sends to switching command in the firmware of described SD card;
The firmware of described SD card receives the switching command of described intelligent terminal App;
The firmware of described SD card is according to be switched order amendment respective partition sequence number;
The described subregion sequence number that the firmware that described intelligent terminal App receives described SD card returns;
Intelligent terminal operating system carry SD card or again plug SD card file reading system;
The firmware of described SD card completes subregion according to described subregion sequence number and switches;
Switching result is returned to described intelligent terminal App by the firmware of described SD card.
Preferably, after the step of subregion after the firmware that intelligent terminal App identifies described SD card switches, also comprise:
The file system of subregion after the firmware of described SD card returns and switches, described intelligent terminal operating system is obtained file system corresponding to subregion after described switching, carries out read-write operation after described switching in subregion.
The present invention further provides a kind of system of switching based on SD card multi partition, comprise firmware and the intelligent terminal App of SD card volume production instrument, SD card, wherein,
Described SD card volume production instrument comprises:
Divide module, for SD card is divided into multiple subregions, described multiple subregions comprise a main partition and more than one security partitioning;
The firmware of described SD card comprises:
Handover module, for switching to one of them subregion of described multiple subregions of described SD card volume production instrument division the write partitions of current unique demonstration;
Described intelligent terminal App comprises:
Identification module, the subregion switching for identifying the firmware of described SD card.
Preferably, described intelligent terminal App also comprises:
Described intelligent terminal App also comprises:
App transmitting element, for sending the firmware of privately owned order to described SD card;
The firmware of described SD card also comprises:
Firmware receiving element, the privately owned order sending for receiving described intelligent terminal App transmitting element;
Authentication unit, for user identity is verified, if the firmware validation of SD card reception is the privately owned order that intelligent terminal App sends, subscriber authentication success.
Preferably, the division module of described SD card volume production instrument comprises:
Scanning element, for scanning SD card;
Zoning unit, for setting the number of partitions of dividing subregion, and arranges independently file system at each subregion;
Division unit, for dividing SD card according to the number of partitions setting;
Storage unit, for preserving the partition information of described division subregion.
Preferably, the described system of switching based on SD card multi partition also comprises intelligent terminal operating system, wherein,
Described intelligent terminal App also comprises:
App transmitting element, for sending to switching command in the firmware of described SD card;
App receiving element, the switching result returning for receiving the firmware of subregion sequence number that the firmware of described SD card returns and SD card;
The firmware of described SD card also comprises:
Firmware receiving element, the switching command sending for receiving described intelligent terminal App transmitting element;
Amendment unit, for revising respective partition sequence number according to be switched subregion;
Firmware transmitting element, for sending the switching result of the amendment amended subregion sequence number in unit and switch unit;
Switch unit, switches for complete subregion according to described subregion sequence number;
Described intelligent terminal operating system, comprising:
Carry unit, for carry SD card or again plug SD card file reading system.
Preferably, the firmware of described SD card also comprises:
Return to unit, for returning to the file system of switching rear subregion;
Described intelligent terminal operating system also comprises:
Read-write cell for obtaining file system corresponding to subregion after described switching, carries out read-write operation after described switching in subregion.
A kind of method of switching based on SD card multi partition provided by the invention, comprises the following steps: SD card is divided into multiple subregions by SD card volume production instrument, and described multiple subregions comprise a main partition and more than one security partitioning; The firmware of SD card is identified the subregion that described SD card volume production instrument is divided; Intelligent terminal App switches to be switched subregion the write partitions of current unique demonstration.
The achieved beneficial effect of the present invention is:
One, support multiple security partitionings.And available existing partitioning tool is modified to partitioned file system, realize EXT subregion or SWAP subregion, now do not affect security partitioning.
Two, data security is good, and the firmware of SD card strengthens the confidentiality of data, when SD card carries out data read-write operation, can only in the subregion of current switching, operate.
Three, easy to use, between each security partitioning, be separate between main partition and security partitioning, concerning user, each subregion is equivalent to an independently SD card.
Four, each subregion can be used as difference in functionality use, such as main partition is as general data memory block, security partitioning is made as the first security partitioning and the second subregion, and the first place of safety subregion can be set to system boot disk, and the second security partitioning is to the important private data partition holding of user.
Brief description of the drawings
Fig. 1 is the schematic flow sheet that the present invention is based on method one embodiment switching SD card multi partition;
Fig. 2 is the refinement schematic flow sheet of step S200 in Fig. 1;
Fig. 3 is the refinement schematic flow sheet of step S300 in Fig. 1;
Fig. 4 is the high-level schematic functional block diagram that the present invention is based on system one embodiment switching SD card multi partition;
Fig. 5 is the high-level schematic functional block diagram that the intelligent terminal App of Fig. 4 divides module;
Fig. 6 the present invention is based on system one high-level schematic functional block diagram that switch SD card multi partition;
Fig. 7 the present invention is based on another high-level schematic functional block diagram of system that switch SD card multi partition.
Realization, functional characteristics and the advantage of the object of the invention, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The invention provides the method for switching based on SD card multi partition, with reference to Fig. 1, in one embodiment, the method that should switch based on SD card multi partition comprises:
SD card is divided into multiple subregions by step S100, SD card volume production instrument, and described multiple subregions comprise a main partition and more than one security partitioning.
SD card volume production instrument is divided into multiple subregions by SD card in the time of volume production, and described multiple subregions comprise a main partition and more than one security partitioning.Main partition is the subregion that SD card acquiescence is used, and available existing partitioning tool is modified to main partition file system, realizes EXT subregion or SWAP subregion, does not now affect security partitioning.Except main partition, SD card also can be provided with several security partitionings, such as security partitioning comprises the first security partitioning and the second security partitioning, and security partitioning need to coordinate intelligent terminal App and privately owned order just can conduct interviews.Each subregion also can be used as difference in functionality and uses, such as main partition is used as general data memory block, and the first place of safety subregion can be set to system boot disk, and the second security partitioning is to the important private data partition holding of user.
Step S200, described intelligent terminal App send the firmware of privately owned order to described SD card; The firmware of described SD card receives the privately owned order that described intelligent terminal App sends, user identity verified, if the firmware validation of SD card reception is the privately owned order that described intelligent terminal App sends, and subscriber authentication success.
Between each security partitioning, between security partitioning and main partition, be separate, concerning user, each subregion is equivalent to an independently SD card.Subregion switches and need send the firmware of privately owned order to SD card at intelligent terminal App, the firmware validation of SD card is passed through, then carry SD card again, just can complete subregion switches, data security is good, the firmware of SD card strengthens data security, cannot obtain by the address mode such as overflow the data of other subregions, and only having could access security subregion by authentication.The firmware of SD card is the program that writes SD card, and popular understanding is " curing software ", and the firmware of SD card is the software of BIOS, but completely different from common software, is the program code that is solidificated in SD card inside, is responsible for controlling and coordinating the function of SD card.Security partitioning comprises the first security partitioning and the second security partitioning, and security partitioning need to coordinate intelligent terminal App and privately owned order just can conduct interviews.Privately owned Command encapsulate, in general usb data bag, has specific data layout, and the firmware of intelligent terminal App and SD card is by decryption form, thus recognition command.Privately owned order is the write order of particular sequence, when the firmware of intelligent terminal App needs and SD card communicates, intelligent terminal App writes data by API and goes to connect with the firmware of SD card, the data of just writing are through consulting, such as: front 5 bytes are respectively 0x11,0x22,0x33,0x44,0x55, then the firmware of SD card detects that writing front 5 bytes of data meets the requirements, just be identified as privately owned order, then explain other bytes, explain the order of App, subscriber authentication success.
One of them subregion in described multiple subregions that the firmware of step S300, SD card is divided described SD card volume production instrument switches to the write partitions of current unique demonstration; Intelligent terminal App identify described SD card firmware switch after subregion.
The system of switching based on SD card multi partition is currently operating at main partition, and need to move the second security partitioning time, only main partition need be switched to the second security partitioning, the firmware that is SD card selects the second security partitioning to complete switching, after switch the second security partitioning, become the write partitions of current unique demonstration, i.e. file system and the data of the second security partitioning of subregion after the intelligent terminal App identification of the system of switching based on SD card multi partition is switched, now service data is also to carry out in the second security partitioning, can not operate at other subregion simultaneously.
The file system of subregion after the firmware of step S400, described SD card returns and switches, described intelligent terminal operating system is obtained file system corresponding to subregion after described switching, carries out read-write operation after described switching in subregion.
The firmware of SD card returns to the i.e. file system of the second security partitioning of subregion after switching, and intelligent terminal operating system is obtained file system corresponding to described the second security partitioning, carries out read-write operation in the second security partitioning.Subregion after being switched is the write partitions of current unique demonstration, the file system of subregion and the data of data and operation after the system acquisition switching based on SD card multi partition switches are all to carry out in the subregion after switching, can not in other subregion, carry out read-write operation simultaneously, thereby strengthen the security to user data.
Wherein, the firmware of intelligent terminal App and SD card also can be by subscriber authentication, and directly carries out subregion switching, when SD card carries out data read-write operation, can only in the subregion of current switching, operate, thereby can omit step S200.
A kind of method of switching based on SD card multi partition that the present embodiment provides, SD card is divided into multiple subregions by SD card volume production instrument, and described multiple subregions comprise a main partition and more than one security partitioning; The firmware of SD card is identified the subregion that described SD card volume production instrument is divided; Intelligent terminal App switches to be switched subregion the write partitions of current unique demonstration.
The achieved beneficial effect of the present embodiment is:
One, support multiple security partitionings.And available existing partitioning tool is modified to partitioned file system, realize EXT subregion or SWAP subregion, now do not affect security partitioning.
Two, data security is good, and the firmware of SD card strengthens the confidentiality of data, when SD card carries out data read-write operation, cannot obtain by the address mode such as overflow the data of other subregions, and only having could access security subregion by authentication.In the case of not having intelligent terminal App to send privately owned order and subscriber authentication to the firmware of SD card, the subregion sequence number that the firmware of SD card cannot retouching operation, can not access other subregions.
Three, easy to use, between each security partitioning, be separate between main partition and security partitioning, concerning user, each subregion is equivalent to an independently SD card.Subregion switches only needs intelligent terminal App to send privately owned order to the firmware of SD card, and the firmware validation of SD card is passed through, and then carry SD card again, just can complete subregion switching.
Four, each subregion can be used as difference in functionality use, such as main partition is as general data memory block, safety point can be made as the first security partitioning and the second subregion, and the first place of safety subregion can be set to system boot disk, and the second security partitioning is to the important private data partition holding of user.
Particularly, with further reference to Fig. 2, described step S200 comprises:
Step S210, described SD card volume production tool scans SD card.
The whole SD card of SD card volume production tool scans, checks and whether has system file and sector corruption, if any, repair.
The number of partitions that step S220, described SD card volume production tool settings are divided subregion.
SD card volume production instrument can be divided into SD card multiple subregions according to actual demand, and sets the number of partitions that will divide.
Step S230, described SD card volume production instrument are divided SD card according to the number of partitions setting.
SD card volume production instrument is divided SD card according to the number of partitions setting, and SD card is divided into multiple subregions, and described multiple subregions comprise a main partition and more than one security partitioning.Main partition is the subregion that SD card acquiescence is used.Except main partition, SD card also can be provided with several security partitionings, such as security partitioning comprises the first security partitioning and the second security partitioning, and security partitioning need to coordinate intelligent terminal App and privately owned order just can conduct interviews.Each subregion also can be used as difference in functionality and uses, such as main partition is used as general data memory block, and the first place of safety subregion can be set to system boot disk, and the second security partitioning is to the important private data partition holding of user.Each subregion arranges independently file system, thereby makes between each security partitioning, be separate between security partitioning and main partition, and concerning user, each subregion is equivalent to an independently SD card.
Step S240, described SD card volume production instrument are preserved the partition information of described division subregion.
SD card volume production instrument is preserved the partition information of dividing subregion, and partition information comprises divides the quantity of subregion, function and the sequence number corresponding to subregion of subregion.
Particularly, with further reference to Fig. 3, described step S300 comprises:
Step S310, described intelligent terminal App send to switching command in the firmware of described SD card.
Intelligent terminal App recognizes will carry out subregion switching time, first switching command is sent to to be switched subregion, such as the second security partitioning.
The firmware of step S320, described SD card receives the switching command of described intelligent terminal App.
The firmware of SD card receives after the switching command of described intelligent terminal App, and the switching command that described intelligent terminal App is sended over responds.
The firmware of step S330, described SD card is according to be switched order amendment respective partition sequence number.
Subregion sequence number is in the firmware operation of SD card, and there is specific sequence number in each security partitioning and main partition, operates different subregions and the sequence number operating need to be modified to specified partition sequence number.SD Cali carries out subregion with the firmware of SD card, when SD is stuck in volume production, can the number of partitions be set by SD card volume production instrument, and each subregion has independently file system.User can communicate by the firmware of the privately owned order of intelligent terminal App and SD card.When effective authentication is not provided, the firmware of SD card only provides the storage operation in the address realm of main partition, and address out of range read-write is invalid, and user can only access main partition, do not changing under the prerequisite of subregion sequence number, the operations such as current partition format are not being affected to the data of other subregions.
The described subregion sequence number that the firmware that step S340, described intelligent terminal App receive described SD card returns.
The subregion sequence number that the firmware of intelligent terminal App reception SD card returns, and subregion corresponding to subregion sequence number confirmed.
Step S350, intelligent terminal operating system carry SD card or again plug SD card file reading system.
Intelligent terminal operating system has two step: Umount and Mount during to SD card again carry.Wherein, Umount can unload the file system hanging at present in Linux catalogue.One " file " of Mount using Windows partition as Linux is articulated under an empty folder of Linux, thereby the subregion of Windows and this catalogue of mnt are connected.While carrying out Umount, intelligent terminal operating system is upgraded FAT table (File Allocation Table, file allocation table) to the firmware of SD card.While carrying out Mount, intelligent terminal operating system can be obtained the file system of subregion again.
The firmware of step S360, described SD card completes subregion according to described subregion sequence number and switches.
If the firmware of SD card has been received the switching command of intelligent terminal App, so when system reads the file system of subregion again, the firmware of SD card can be mapped to logical address in new change partitions, thereby returning to the file system of new change partitions, is also when system read-write in new change partitions.
Switching result is returned to described intelligent terminal App by the firmware of step S370, described SD card.
Switching result is returned to intelligent terminal App by the firmware of SD card, and the confirmation result that the firmware of intelligent terminal App reception SD card returns, confirms that switching command is finished.
With reference to Fig. 4, the present embodiment also further provides a kind of system of switching based on SD card multi partition, in one embodiment, comprises firmware and the intelligent terminal App of SD card volume production instrument, SD card, wherein,
Described SD card volume production instrument comprises:
Divide module 10, for SD card is divided into multiple subregions, described multiple subregions comprise a main partition and more than one security partitioning;
The firmware of described SD card comprises:
Handover module 20, for switching to one of them subregion of described multiple subregions of described SD card volume production instrument division the write partitions of current unique demonstration;
Described intelligent terminal App comprises:
Identification module 30, the subregion switching for identifying the firmware of described SD card.
SD card volume production instrument is divided into multiple subregions by SD card in the time of volume production, and described multiple subregions comprise a main partition and more than one security partitioning.Main partition is the subregion that SD card acquiescence is used, and available existing partitioning tool is modified to main partition file system, realizes EXT subregion or SWAP subregion, does not now affect security partitioning.Except main partition, SD card also can be provided with several security partitionings, such as security partitioning comprises the first security partitioning and the second security partitioning, and security partitioning need to coordinate intelligent terminal App and privately owned order just can conduct interviews.Each subregion also can be used as difference in functionality and uses, such as main partition is used as general data memory block, and the first place of safety subregion can be set to system boot disk, and the second security partitioning is to the important private data partition holding of user.
The system of switching based on SD card multi partition is currently operating at main partition, and need to move the second security partitioning time, only main partition need be switched to the second security partitioning, be that intelligent terminal App selects the second security partitioning, the second security partitioning completes switching, after switch the second security partitioning, become the write partitions of current unique demonstration, i.e. file system and the data of the second security partitioning of subregion after the system acquisition switching based on SD card multi partition switches, now service data is also to carry out in the second security partitioning, can not operate at other subregion simultaneously.
A kind of system of switching based on SD card multi partition that the present embodiment provides, in one embodiment, comprise firmware and the intelligent terminal App of SD card volume production instrument, SD card, wherein, described SD card volume production instrument comprises divides module 10, for SD card is divided into multiple subregions, described multiple subregions comprise a main partition and more than one security partitioning; The firmware of described SD card comprises handover module 20, for one of them subregion of described multiple subregions of described SD card volume production instrument division being switched to the write partitions of current unique demonstration; Described intelligent terminal App comprises identification module 30, the subregion switching for identifying the firmware of described SD card.
The achieved beneficial effect of the present embodiment is:
One, support multiple security partitionings.And available existing partitioning tool is modified to partitioned file system, realize EXT subregion or SWAP subregion, now do not affect security partitioning.
Two, data security is good, and the firmware of SD card strengthens the confidentiality of data, when SD card carries out data read-write operation, cannot obtain by the address mode such as overflow the data of other subregions, and only having could access security subregion by authentication.In the case of not having intelligent terminal App to send privately owned order and subscriber authentication to the firmware of SD card, the subregion sequence number that the firmware of SD card cannot retouching operation, can not access other subregions.
Three, easy to use, between each security partitioning, be separate between main partition and security partitioning, concerning user, each subregion is equivalent to an independently SD card.Subregion switches only need be verified by user profile in intelligent terminal App, sends the firmware of privately owned order to SD card, and the firmware validation of SD card is passed through, and then carry SD card again, just can complete subregion switching.
Four, each subregion can be used as difference in functionality use, such as main partition is as general data memory block, security partitioning is made as the first security partitioning and the second subregion, and the first place of safety subregion can be set to system boot disk, and the second security partitioning is to the important private data partition holding of user.
Particularly, referring to Fig. 6, the system of switching based on SD card multi partition described in the present embodiment,
Described intelligent terminal App also comprises:
App transmitting element 31, for sending the firmware of privately owned order to described SD card;
The firmware of described SD card also comprises:
Firmware receiving element 33, the privately owned order sending for receiving described intelligent terminal App transmitting element 31;
Authentication unit 34, for user identity is verified, if the firmware validation of SD card reception is the privately owned order that intelligent terminal App sends, subscriber authentication success.
Between each security partitioning, between security partitioning and main partition, be separate, concerning user, each subregion is equivalent to an independently SD card.Subregion switches and need send the firmware of privately owned order to SD card at intelligent terminal App, the firmware validation of SD card is passed through, then carry SD card again, just can complete subregion switches, data security is good, the firmware of SD card strengthens data security, cannot obtain by the address mode such as overflow the data of other subregions, and only having could access security subregion by authentication.The firmware of SD card is the program that writes SD card, and popular understanding is " curing software ", and the firmware of SD card is the software of BIOS, but completely different from common software, is the program code that is solidificated in SD card inside, is responsible for controlling and coordinating the function of SD card.Security partitioning comprises the first security partitioning and the second security partitioning, and security partitioning need to coordinate intelligent terminal App and privately owned order just can conduct interviews.Privately owned Command encapsulate, in general usb data bag, has specific data layout, and the firmware of intelligent terminal App and SD card is by decryption form, thus recognition command.Privately owned order is the write order of particular sequence, when the firmware of intelligent terminal App needs and SD card communicates, intelligent terminal App writes data by API and goes to connect with the firmware of SD card, the data of just writing are through consulting, such as: front 5 bytes are respectively 0x11,0x22,0x33,0x44,0x55, then the firmware of SD card detects that writing front 5 bytes of data meets the requirements, just be identified as privately owned order, then explain other bytes, explain the order of App, subscriber authentication success.
Particularly, as shown in Figure 5, the division module 10 of described SD card volume production instrument comprises:
Scanning element 11, for scanning SD card;
Zoning unit 12, for setting the number of partitions of dividing subregion, and arranges independently file system at each subregion;
Division unit 13, for dividing SD card according to the number of partitions setting;
Storage unit 14, for preserving the partition information of described division subregion.
SD card volume production tool scans unit 11 scans whole SD card, draws bad piece of the physics piece of becoming reconciled.SD card volume production instrument zoning unit 12 can be divided into SD card multiple subregions according to actual demand, and sets the number of partitions that will divide.SD card volume production instrument division unit 13 is divided SD card according to the number of partitions setting, and SD card is divided into multiple subregions, and described multiple subregions comprise a main partition and more than one security partitioning.Main partition is the subregion that SD card acquiescence is used.Except main partition, SD card also can be provided with several security partitionings, such as security partitioning comprises the first security partitioning and the second security partitioning, and security partitioning need to coordinate intelligent terminal App and privately owned order just can conduct interviews.Each subregion also can be used as difference in functionality and uses, such as main partition is used as general data memory block, and the first place of safety subregion can be set to system boot disk, and the second security partitioning is to the important private data partition holding of user.Each subregion arranges independently file system, thereby makes between each security partitioning, be separate between security partitioning and main partition, and concerning user, each subregion is equivalent to an independently SD card.SD card volume production tool storage unit 14 is preserved the partition information of dividing subregion, and partition information comprises divides the quantity of subregion, function and the sequence number corresponding to subregion of subregion.
Particularly, with further reference to Fig. 6, the system of switching based on SD card multi partition described in the present embodiment, also comprises intelligent terminal operating system, wherein,
Described intelligent terminal App also comprises:
App transmitting element 31, for sending to switching command in the firmware of described SD card;
App receiving element 32, the switching result returning for receiving the firmware of subregion sequence number that the firmware of described SD card returns and SD card;
The firmware of described SD card also comprises:
Firmware receiving element 33, the switching command sending for receiving described intelligent terminal App transmitting element 31;
Amendment unit 35, for revising respective partition sequence number according to be switched subregion;
Firmware transmitting element 36, for sending the switching result of the amendment amended subregion sequence number in unit 35 and switch unit 38;
Switch unit 38, switches for complete subregion according to described subregion sequence number.
Described intelligent terminal operating system, comprising:
Carry unit 37, for carry SD card or again plug SD card file reading system.
Intelligent terminal App recognizes will carry out subregion switching time, and first switching command is sent to be switched subregion by App transmitting element 31, such as the second security partitioning.The firmware receiving element 33 of the firmware of SD card receives after the switching command of described intelligent terminal App, and the switching command that described intelligent terminal App is sended over responds.The subregion sequence number of amendment unit 35 is in the firmware operation of SD card, and there is specific sequence number in each security partitioning and main partition, operate different subregions and the sequence number operating need to be modified to specified partition sequence number.SD Cali carries out subregion with the firmware of SD card, when SD is stuck in volume production, can the number of partitions be set by SD card volume production instrument, and each subregion has independently file system.User can communicate by the firmware of the privately owned order of intelligent terminal App and SD card.When effective authentication is not provided, the firmware of SD card only provides the storage operation in the address realm of main partition, and address out of range read-write is invalid, and user can only access main partition, do not changing under the prerequisite of subregion sequence number, the operations such as current partition format are not being affected to the data of other subregions.The App receiving element 32 of intelligent terminal App receives the subregion sequence number that the firmware of SD card returns, and subregion corresponding to subregion sequence number confirmed.Intelligent terminal operating system carry unit 37 has two step: Umount and Mount during to SD card again carry.Wherein, Umount can unload the file system hanging at present in Linux catalogue.One " file " of Mount using Windows partition as Linux is articulated under an empty folder of Linux, thereby the subregion of Windows and this catalogue of mnt are connected.While carrying out Umount, intelligent terminal operating system is upgraded FAT table (File Allocation Table, file allocation table) to the firmware of SD card.While carrying out Mount, system can be obtained the file system of subregion again.If the firmware of SD card has been received the switching command of intelligent terminal App, so when intelligent terminal operating system reads the file system of subregion again, the firmware of SD card can be mapped to logical address in new change partitions, thereby returning to the file system of new change partitions, is also when the read-write of intelligent terminal operating system in new change partitions.Switching result is returned to intelligent terminal App by the firmware of SD card, and the App receiving element 32 of intelligent terminal App receives the confirmation result that the firmware of SD card returns, and confirms that switching command is finished.
Particularly, as shown in Figure 7, the firmware of described SD card also comprises:
Return to unit 41, for returning to the file system of switching rear subregion;
Described intelligent terminal operating system also comprises:
Read-write cell 42 for obtaining file system corresponding to subregion after described switching, carries out read-write operation after described switching in subregion.
The firmware of SD card returns to unit 41 and returns to the i.e. file system of the second security partitioning of subregion after switching, and intelligent terminal operating system read-write cell 42 obtains file system corresponding to described the second security partitioning, carries out read-write operation in the second security partitioning.Subregion after being switched is the write partitions of current unique demonstration, the file system of subregion and the data of data and operation after the system acquisition switching based on SD card multi partition switches are all to carry out in the subregion after switching, can not in other subregion, carry out read-write operation simultaneously, thereby strengthen the security to user data.
These are only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a method of switching based on SD card multi partition, is characterized in that, the described method of switching based on SD card multi partition comprises the following steps:
SD card is divided into multiple subregions by SD card volume production instrument, and described multiple subregions comprise a main partition and more than one security partitioning;
One of them subregion in described multiple subregions that the firmware of SD card is divided described SD card volume production instrument switches to the write partitions of current unique demonstration; Intelligent terminal App identify described SD card firmware switch after subregion.
2. the method for switching based on SD card multi partition as claimed in claim 1, it is characterized in that, described after subscriber authentication success, carry out described intelligent terminal App and select to be switched subregion, the step that described to be switched subregion is switched to the write partitions of current unique demonstration also comprises subscriber authentication step before, when after subscriber authentication success, carry out described after subscriber authentication success, carry out described intelligent terminal App and select to be switched subregion, described to be switched subregion is switched to the step of the write partitions of current unique demonstration, described subscriber authentication step comprises:
Described intelligent terminal App sends the firmware of privately owned order to described SD card; The firmware of described SD card receives the privately owned order that described intelligent terminal App sends, user identity verified, if the firmware validation of SD card reception is the privately owned order that described intelligent terminal App sends, and subscriber authentication success.
3. the method for switching based on SD card multi partition as claimed in claim 1, it is characterized in that, described SD card volume production instrument is divided into multiple subregions by SD card in the time of volume production, and described multiple subregions comprise that the step of a main partition and more than one security partitioning specifically comprises:
Described SD card volume production tool scans SD card;
Described SD card volume production tool settings is divided the number of partitions of subregion, and at each subregion, independently file system is set;
Described SD card volume production instrument is divided SD card according to the number of partitions setting;
Described SD card volume production instrument is preserved the partition information of described division subregion.
4. the method for switching based on SD card multi partition as claimed in claim 2, is characterized in that, described intelligent terminal App selects to be switched subregion, and the step that described to be switched subregion is switched to the write partitions of current unique demonstration specifically comprises:
Described intelligent terminal App sends to switching command in the firmware of described SD card;
The firmware of described SD card receives the switching command of described intelligent terminal App;
The firmware of described SD card is according to be switched order amendment respective partition sequence number;
The described subregion sequence number that the firmware that described intelligent terminal App receives described SD card returns;
Intelligent terminal operating system carry SD card or again plug SD card file reading system;
The firmware of described SD card completes subregion according to described subregion sequence number and switches;
Switching result is returned to described intelligent terminal App by the firmware of described SD card.
5. the method for switching based on SD card multi partition as described in claim 1 to 4 any one, is characterized in that, after the step of subregion after the firmware that described intelligent terminal App identifies described SD card switches, also comprises:
The file system of subregion after the firmware of described SD card returns and switches, described intelligent terminal operating system is obtained file system corresponding to subregion after described switching, carries out read-write operation after described switching in subregion.
6. a system of switching based on SD card multi partition, is characterized in that, comprises firmware and the intelligent terminal App of SD card volume production instrument, SD card, wherein,
Described SD card volume production instrument comprises:
Divide module, for SD card is divided into multiple subregions, described multiple subregions comprise a main partition and more than one security partitioning;
The firmware of described SD card comprises:
Handover module, for switching to one of them subregion of described multiple subregions of described SD card volume production instrument division the write partitions of current unique demonstration;
Described intelligent terminal App comprises:
Identification module, the subregion switching for identifying the firmware of described SD card.
7. the system of switching based on SD card multi partition as claimed in claim 6, is characterized in that, described intelligent terminal App also comprises:
App transmitting element, for sending the firmware of privately owned order to described SD card;
The firmware of described SD card also comprises:
Firmware receiving element, the privately owned order sending for receiving described intelligent terminal App transmitting element;
Authentication unit, for user identity is verified, if the firmware validation of SD card reception is the privately owned order that intelligent terminal App sends, subscriber authentication success.
8. the system of switching based on SD card multi partition as claimed in claim 6, is characterized in that, the division module of described SD card volume production instrument comprises:
Scanning element, for scanning SD card;
Zoning unit, for setting the number of partitions of dividing subregion, and arranges independently file system at each subregion;
Division unit, for dividing SD card according to the number of partitions setting;
Storage unit, for preserving the partition information of described division subregion.
9. the system of switching based on SD card multi partition as claimed in claim 7, is characterized in that, the described system of switching based on SD card multi partition also comprises intelligent terminal operating system, wherein,
Described intelligent terminal App also comprises:
App transmitting element, for sending to switching command in the firmware of described SD card;
App receiving element, the switching result returning for receiving the firmware of subregion sequence number that the firmware of described SD card returns and SD card;
The firmware of described SD card also comprises:
Firmware receiving element, the switching command sending for receiving described intelligent terminal App transmitting element;
Amendment unit, for revising respective partition sequence number according to be switched subregion;
Firmware transmitting element, for sending the switching result of the amendment amended subregion sequence number in unit and switch unit;
Switch unit, switches for complete subregion according to described subregion sequence number;
Described intelligent terminal operating system, comprising:
Carry unit, for carry SD card or again plug SD card file reading system.
10. the system of switching based on SD card multi partition as described in claim 6 to 9 any one, is characterized in that, the firmware of described SD card also comprises:
Return to unit, for returning to the file system of switching rear subregion;
Described intelligent terminal operating system also comprises:
Read-write cell for obtaining file system corresponding to subregion after described switching, carries out read-write operation after described switching in subregion.
CN201410277261.8A 2014-06-19 2014-06-19 The method and system switched based on SD card multi partition Active CN104077546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410277261.8A CN104077546B (en) 2014-06-19 2014-06-19 The method and system switched based on SD card multi partition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410277261.8A CN104077546B (en) 2014-06-19 2014-06-19 The method and system switched based on SD card multi partition

Publications (2)

Publication Number Publication Date
CN104077546A true CN104077546A (en) 2014-10-01
CN104077546B CN104077546B (en) 2017-09-19

Family

ID=51598796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410277261.8A Active CN104077546B (en) 2014-06-19 2014-06-19 The method and system switched based on SD card multi partition

Country Status (1)

Country Link
CN (1) CN104077546B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462898A (en) * 2014-11-27 2015-03-25 中国华戎控股有限公司 Object file protecting method and device based on Android system
CN106020862A (en) * 2016-05-05 2016-10-12 深圳市硅格半导体股份有限公司 Webpage based network mass production method and device
CN106503513A (en) * 2016-09-23 2017-03-15 北京小米移动软件有限公司 Method for recognizing sound-groove and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034819A (en) * 2012-12-14 2013-04-10 隋国利 SD (Secure Digital) card capable of switching storage partitions and control method of SD card
CN103617404A (en) * 2013-12-17 2014-03-05 天津赢达信科技有限公司 Storing device of safety partitions
US20140108710A1 (en) * 2012-10-15 2014-04-17 Huawei Device Co., Ltd. Method for adjusting storage space of partition of embedded multimedia card and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140108710A1 (en) * 2012-10-15 2014-04-17 Huawei Device Co., Ltd. Method for adjusting storage space of partition of embedded multimedia card and terminal
CN103034819A (en) * 2012-12-14 2013-04-10 隋国利 SD (Secure Digital) card capable of switching storage partitions and control method of SD card
CN103617404A (en) * 2013-12-17 2014-03-05 天津赢达信科技有限公司 Storing device of safety partitions

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462898A (en) * 2014-11-27 2015-03-25 中国华戎控股有限公司 Object file protecting method and device based on Android system
CN104462898B (en) * 2014-11-27 2018-01-16 中国华戎控股有限公司 File destination guard method and device based on android system
CN106020862A (en) * 2016-05-05 2016-10-12 深圳市硅格半导体股份有限公司 Webpage based network mass production method and device
CN106503513A (en) * 2016-09-23 2017-03-15 北京小米移动软件有限公司 Method for recognizing sound-groove and device

Also Published As

Publication number Publication date
CN104077546B (en) 2017-09-19

Similar Documents

Publication Publication Date Title
US10761977B2 (en) Memory system and non-transitory computer readable recording medium
JP5149516B2 (en) IC card, portable terminal and control method of portable terminal
CN101645310B (en) Flash memory equipment, method and system for managing flash memory
EP2263156B1 (en) Identification of memory cards by host
CN101238431A (en) Mass data storage system
US20130262810A1 (en) Memory space management method and memory controller and memory storage device using the same
CN102609741B (en) A kind of method of exchanges data between mobile device and inside and outside portion storage card thereof
CN102779283A (en) Device, system and method for realization of reading and writing of SIM (subscriber identity module) card
US9807595B2 (en) Terminal read with smart card update list
CN104077546A (en) SD (Secure Digital) card multi-partition switch based method and system
CN104991737A (en) Storage card array architecture based hard disk implementation method
CN103458004A (en) Internet of things-based device subscription information changing method and equipment
CN111984557A (en) Data processing method, device and system
CN1331037C (en) Storing card with multi-interfae function and transmitting mode selective method
CN113190534A (en) Database data migration method and device
KR101833464B1 (en) Method for transferring data between disk device and external storage device and system using the method
CN103049403A (en) Method for communication between embedded terminal device and cell phone
CN100593213C (en) Memory device with multiple partitions
CN100464289C (en) Blue tooth data transmission processing apparatus and transmission method thereof
US9313651B2 (en) Memory system and method of controlling memory system
US9413755B2 (en) Method for managing identifiers in an integrated circuit board and corresponding integrated circuit board
CN107025176A (en) One kind adjustment Large Copacity USIM massage storage subregion capacity systems and method
CN101894082B (en) Storage device and smartphone system
CN209980289U (en) Smart card with SIM and WIFI wireless storage functions simultaneously
CN101287213A (en) Terminal initializing method, device and terminal

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