HK1079894B - A method for changing function or state of a portable storage device - Google Patents
A method for changing function or state of a portable storage device Download PDFInfo
- Publication number
- HK1079894B HK1079894B HK05111705.8A HK05111705A HK1079894B HK 1079894 B HK1079894 B HK 1079894B HK 05111705 A HK05111705 A HK 05111705A HK 1079894 B HK1079894 B HK 1079894B
- Authority
- HK
- Hong Kong
- Prior art keywords
- mobile storage
- storage device
- file
- function
- state
- Prior art date
Links
Description
[ technical field ] A method for producing a semiconductor device
The present invention relates to a method for changing the function or state of a mobile storage device, and more particularly, to a method for changing the function or state of a mobile storage device without a mechanical toggle switch.
[ background of the invention ]
With the development of information technology, data processing and storage are increasingly closely related to the work and life of people, and mobile storage equipment becomes one of important means for data storage and carrying due to the characteristics of convenience and flexibility. With the increasing demand of people for mobile storage devices, various storage devices are in endlessly, and from early floppy disks to flash memory disks, CF cards, MMC cards, SM cards, SD cards, and the like used at present, the storage devices have smaller and smaller volumes and more implemented functions, such as write protection, hiding, encryption, multi-partition, and the like, wherein write protection exists in various mobile storage devices as a basic function of the mobile storage devices. Early floppy disks used a mechanical toggle switch and the drive implemented write protection by mechanical means to detect the position of the write protection switch. Although the current mobile storage device has smaller volume and more functions, the method for realizing the write protection and other function selection is still similar to the early floppy disk, namely realized by poking a similar mechanical switch. This results in two or more switches in the memory device, which undoubtedly increases the difficulty of designing the mold and the workload of designing the appearance, and thus increases the hardware cost. And it occupies a large space on the PCB board, which becomes one of the bottlenecks affecting the miniaturization of the memory device. In addition, the defects of single function selection, short service life and the like exist.
[ summary of the invention ]
The invention aims to provide a method for changing the function or the state of a mobile storage device without poking a mechanical switch for the mobile storage device.
The purpose of the invention is realized by the following technical scheme: the method for changing the function or the state of the mobile storage equipment comprises the following steps: setting solidified software in the mobile storage equipment, wherein the solidified software comprises a plurality of function realization modules and a file query module; writing a specific file in the mobile storage device; setting the information of the specific file through an upper computer operating system connected with the mobile storage equipment; the solidified software queries the information of the specific file through a file query module and judges the function or the state to be realized by the mobile storage equipment according to the information of the specific file; and the solidified software calls a function implementation module to implement the function or state to be implemented by the mobile storage equipment.
Compared with the prior art, the invention adopts a soft implementation method to change the function or the state of the mobile storage equipment, thereby saving a mechanical switch device commonly used in the industry, further achieving the effects of simplifying the structure, expanding the function and reducing the cost, and being convenient and flexible to use.
[ description of the drawings ]
Fig. 1 is a file allocation table of an upper computer operating system according to a first embodiment of the method for changing the function or state of a mobile storage device.
Fig. 2 is a flowchart of the operation of the solidified software in the mobile storage device according to the first embodiment of the method for changing the function or state of the mobile storage device.
Fig. 3 is a flow chart of the operation of the solidified software in the mobile storage device in another embodiment of the method for changing the function or the state of the mobile storage device according to the present invention.
[ detailed description ] embodiments
The first embodiment of the method for changing the function or the state of the mobile storage device comprises the following steps: setting solidified software in the mobile storage equipment; writing a specific file to the mobile storage device; setting the specific file attribute; and the solidified software judges and executes the function or the state to be realized by the mobile storage equipment according to the specific file attribute.
The solidified software comprises various function realization modules and a file query module, wherein the function realization modules comprise write protection, partitioning, encryption, hiding and other function realization modules, and the file query module is used for querying the attribute of the specific file.
Writing a specific file to a mobile storage device is to write the specific file to a fixed position of the mobile storage device through a mobile storage device formatting tool, the specific file can be various types of files, the fixed file can also be written by a user through an operating system, but writing the specific file to the fixed position through the formatting tool is more beneficial to inquiring the specific file.
Setting the specific file attribute comprises: and setting the attribute of the specific file through an upper computer operating system connected with the mobile storage equipment. In this embodiment, a windows 2000 operating system is taken as an example for explanation, but is not limited to the operating system. Files in the Windows 2000 operating system typically have attributes of "read-only", "hidden", "archived", and the like. When the attribute of the specific file is set, the operation process of the windows 2000 operating system is only needed to be pressed, namely, a right button is clicked to enter a file attribute setting window, and one or more of attributes such as read-only, hidden and archived are selected and set. After the "determining" operation is performed on the setting of the specific file attribute, the attribute change of the specific file is reflected in the file system of the operating system, and the file system in this embodiment is described by taking FAT16 as an example, but is not limited to the file system. As shown in FIG. 1, FIG. 1 is a file allocation table of FAT16 file system, in which the first column "offset" represents the fileThe second column "0-F" of the stored offset address is the file information bits, and the content of each information bit is represented by a 2-bit 16-ary code. Now, it is assumed that the offset address of the specific file is 9679E0, the file name is "0000. TXT", and the attribute is "archive", then the file name "0000" of the specific file corresponds to the offset address is 9679E0, the file information bits are 4-7 of 4-16-ary code "20202020", the extension "TXT" of the specific file corresponds to the 3-ary code "545854" with the file information bits being 8-a, the attribute "archive" corresponds to the 16-ary code "20" with the file information bits being B, the binary code "20" corresponds to the binary code "xx 1x xxxx" ("x" is a bit indicating no judgment is needed), that is, the "archive" attribute flag bit is 1, when the file attribute is "read only", the corresponding binary code is "xxxx xxx 1", that is "read only" attribute flag bit is 1, when the file attribute is "hidden", the corresponding binary code is "xxxx 1 x", that is "attribute flag bit 1, it can be seen that the three file attributes of "hidden", "read-only" and "archive" respectively correspond to three identification bits in the binary code of the information bit representing the file attribute in the file management table, each of the identification bits has two states of "0" and "1", and the three identification bit combinations can represent 2 of the file3I.e. 8 states.
The step of judging and executing the functions or states to be realized by the mobile storage device through the attributes of the specific file by the solidified software comprises the following steps: when the mobile storage device is connected with an upper computer or performs an operation, as shown in fig. 2, the solidified software initializes the mobile storage device first; then the file query module detects whether the specific file exists, if not, the process is ended, and if so, the attribute of the specific file is detected by a file allocation table of the upper computer operating system; then, judging the function or state to be realized by the mobile storage device according to the attribute of the specific file, wherein 8 functions or states can be set, and the functions or states can be but are not limited to write protection, hiding, encryption, partitioning and the like; and then, the solidified software calls a corresponding function realization module according to the function or the state to be realized by the mobile storage module.
Taking the implementation of the "write protect" function of the mobile storage module as an example, the mobile storage device is provided with a set of solidified software, the solidified software includes the file query module and various function implementation modules, and the function implementation modules include various function implementation modules that implement the functions of write protect, hiding, encryption, partitioning, and the like of the mobile storage device. And writing a specific file into the mobile storage device through the formatting tool software. Connecting the mobile storage module with an upper computer, entering an operating system of the upper computer, namely a windows 2000 operating system in the embodiment, selecting the specific file, clicking a mouse right button pop-up menu, selecting an attribute in the menu to enter a file attribute setting frame, displaying three selectable file attributes of read-only, hidden and archived in the file attribute setting frame, selecting the read-only attribute by using a mouse, inquiring the attribute of the specific file through a file allocation table of the operating system by the solidified software, and calling a write protection function module. The function module corresponding to each file attribute can be set in the solidified software, in this example, for the convenience of the user, the "read-only" attribute of the specific file directly corresponds to the "write protection" function of the mobile storage device, and can also be set as "hidden" or "archived", that is, when the "hidden" or "archived" flag bit in the file system is 1, the "write protection" function is invoked, and when any two or more attributes of the "read-only", "hidden" and "archived" attributes are combined, the "write protection" function is invoked. When other functions of the mobile storage device, such as partitioning, encryption and hiding, need to be realized, the attribute of the specific file is changed in the above manner, and then the file query module of the solidified software judges the function to be realized by the mobile storage device according to the attribute of the specific file, and calls the corresponding function realization module.
The specific file can also be written into a certain partition of the mobile storage device, so that the selection of the function or the state of the certain partition of the mobile storage device is realized.
Another embodiment of the method of the present invention for changing the function or state of a mobile storage device comprises the steps of: setting solidified software in the mobile storage equipment; writing a specific file into the mobile storage device; setting the content of the specific file; and the solidified software judges and executes the function or the state to be realized by the mobile storage equipment according to the content of the specific file.
The solidified software comprises various function realization modules and a file query module, wherein the function realization modules comprise write protection, partitioning, encryption, hiding and other function realization modules, and the file query module is used for querying the content of the specific file.
Writing a specific file to the mobile storage device is written through a formatting tool of the mobile storage device, wherein the specific file can be various editable files.
The step of judging and executing the functions or states to be realized by the mobile storage device through the specific file content by the solidified software comprises the following steps: as shown in fig. 3, after starting, the solidified software of the mobile storage device initializes the mobile storage device; after initialization, the curing software detects whether the specific file exists, if not, the process is ended, and if so, the position of the specific file is inquired and the content of the specific file is read; then, judging functions or states to be realized by the mobile storage device according to the content of the specific file, wherein the functions or states include but are not limited to write protection, hiding, encryption and partitioning; and then, calling a corresponding function implementation module according to the function or the state to be implemented by the mobile storage equipment.
The specific file can also be written into a certain partition of the mobile storage device, so that the selection of the function or the state of the certain partition of the mobile storage device is realized.
The upper computer operating system can be any one of windows series operating systems, such as windows 98, windows me, windows 2000, windows XP and subsequent windows operating systems, and can also be other types of operating systems, such as operating systems of MAC OSX, Unix, Linux and the like. When the upper computer operating system is windows, the corresponding file systems include, but are not limited to, FAT12, VFAT, FAT16, FAT32, CDFS and NTFS. When the upper computer operating system is Linux, the corresponding file systems include, but are not limited to EXT2, EXT3, JFS, NFS, RAMFS, HPFS, and CRAMFS. The mobile storage device may be a flash disk, a CF card, an MMC card, an SM card, an SD card, etc., but is not limited to the above mobile storage device; the functions or states implemented by the mobile storage device include, but are not limited to, write protection, hiding, encryption, partitioning, and the like.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be construed as the protection scope of the present invention.
Claims (6)
1. A method of changing a function or state of a mobile storage device, comprising the steps of:
setting solidified software in the mobile storage equipment, wherein the solidified software comprises a plurality of function realization modules and a file query module;
writing a specific file in the mobile storage device;
setting the information of the specific file through an upper computer operating system connected with the mobile storage equipment;
the solidified software queries the information of the specific file through a file query module and judges the function or the state to be realized by the mobile storage equipment according to the information of the specific file;
and the solidified software calls a function implementation module to implement the function or state to be implemented by the mobile storage equipment.
2. A method of changing a function or state of a mobile storage device as claimed in claim 1, wherein: and writing the specific file into the mobile storage device by the mobile storage device formatting tool.
3. A method of changing a function or state of a mobile storage device as claimed in claim 1, wherein: writing a particular file to the mobile storage device is written by a user through an operating system.
4. A method of changing a function or state of a mobile storage device as claimed in claim 1, wherein: the solidified software judges the function or the state to be realized by the mobile storage equipment through a file system of the upper computer operating system.
5. A method of changing a function or state of a mobile storage device as claimed in claim 1, wherein: the specific file is written in a certain partition of the mobile storage device.
6. The method for changing the function or state of a mobile storage device according to any one of claims 1 to 5, wherein the information of the specific file comprises: attributes of the file or contents of the file.
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2003101174572A CN100478919C (en) | 2003-12-16 | 2003-12-16 | Method for changing mobile storage device function or status |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1079894A1 HK1079894A1 (en) | 2006-04-13 |
| HK1079894B true HK1079894B (en) | 2009-12-11 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108427705B (en) | Electronic device, distributed system log query method and storage medium | |
| CN103309559B (en) | A kind of control inerface application drawing calibration method and terminal | |
| CN109033360B (en) | Data query method, device, server and storage medium | |
| CN108090168B (en) | Universal F2FS file system parsing method, terminal device and storage medium | |
| US10248598B2 (en) | Intelligent storage device signal transmission method for backing up data on intelligent storage module based on system type of electronic device | |
| US8438362B2 (en) | Automatically reclaiming memory space | |
| US9170824B2 (en) | Virtualized boot block with discovery volume | |
| CN110688201B (en) | Log management method and related equipment | |
| CN111651296A (en) | Intercept backup method, device, device and storage medium for data deletion operation | |
| CN107203624A (en) | The single generation method of one kind song and mobile terminal | |
| EP2263156B1 (en) | Identification of memory cards by host | |
| KR101565975B1 (en) | A user device including a flash memory storing an index and an index access method thereof | |
| CN106528690A (en) | Method for accessing storage medium by application and mobile terminal | |
| CN104049914A (en) | Method and device for executing write operation on protected partition | |
| WO2022187016A1 (en) | Measuring and improving index quality in a distributed data system | |
| US20040133554A1 (en) | Efficient file interface and method for providing access to files using a JTRS SCA core framework | |
| JP2006004011A (en) | Storage system | |
| CN112948376A (en) | IP geographical position information query method, terminal equipment and storage medium | |
| WO2005059755A1 (en) | A method of changing the functions or status of a removal storage device | |
| CN112527824B (en) | Paging query method, paging query device, electronic equipment and computer-readable storage medium | |
| HK1079894B (en) | A method for changing function or state of a portable storage device | |
| CN118170443A (en) | U disk automatic identification and formatting method and system based on embedded system | |
| CN101587443B (en) | Starting method and starting equipment | |
| CN111382120A (en) | Small file management method, system and computer equipment | |
| CN119513041A (en) | File processing method and electronic equipment |