[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114356805A - Memory card opening method, equipment and computer readable storage medium - Google Patents

Memory card opening method, equipment and computer readable storage medium Download PDF

Info

Publication number
CN114356805A
CN114356805A CN202111680939.3A CN202111680939A CN114356805A CN 114356805 A CN114356805 A CN 114356805A CN 202111680939 A CN202111680939 A CN 202111680939A CN 114356805 A CN114356805 A CN 114356805A
Authority
CN
China
Prior art keywords
memory
sub
card
mother
card interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111680939.3A
Other languages
Chinese (zh)
Inventor
赖振楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hosin Global Electronics Co Ltd
Original Assignee
Hosin Global Electronics 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 Hosin Global Electronics Co Ltd filed Critical Hosin Global Electronics Co Ltd
Priority to CN202111680939.3A priority Critical patent/CN114356805A/en
Publication of CN114356805A publication Critical patent/CN114356805A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Memory System (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention provides a memory card opening method, a device and a computer readable storage medium, wherein the method comprises the following steps: reading a card opening program from a mother memory connected with a mother card interface, and writing the card opening program into a child memory connected with a child card interface, wherein the card opening program is used for being executed by the child memory, so as to scan a local memory chip and establish a mapping summary table for mapping a memory block in the memory chip; when a scanning completion signal of a sub-memory connected with a sub-card interface is received, reading sub-memory firmware from a mother memory connected with the mother card interface, and writing the sub-memory firmware into a sub-memory connected with the sub-card interface, wherein the sub-memory firmware is used for being executed by the sub-memory to respond to an externally input data access instruction. The invention can realize the offline card-opening operation of different types of memories.

Description

Memory card opening method, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of memories, and more particularly, to a memory card opening method, device and computer-readable storage medium.
Background
The existing memory card opening operation is mostly completed by the cooperation of a Personal Computer (PC), and the specific process is as follows: firstly, connecting a memory with a personal computer through a cable, a connector and the like; burning an off-line scanning (RDT) program into a memory by a volume production tool on a personal computer, wherein the RDT program is used for carrying out full-disk scanning on the memory and determining usable blocks in the memory; after the RDT program is burned, the connection between the memory and the personal computer is disconnected, and the memory is electrified again, so that the RDT program in the memory can run; after the RDT program finishes scanning (the RDT program finishes scanning is indicated by the state of the flashing light), the memory is connected with the personal computer again; after the memory is reconnected to the personal computer, the firmware of the memory needs to be written into the memory through the personal computer.
In the above-mentioned card opening process, many operations depend on the software on the human and personal computers. Therefore, the operator needs to follow the card opening degree of the personal computer to continuously advance the card opening process, and the waste of labor cost exists.
In order to avoid waste of labor cost, some offline card opening devices are provided, but such devices are usually special devices and can only open cards for a certain kind of memories. For different types of memory, a plurality of different offline card-open devices are required.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a new memory card opening method, device and computer readable storage medium, aiming at the above problems that the memory card opening by using a personal computer wastes labor cost and the offline card opening device is not compatible with various memories.
The technical solution of the present invention for solving the above technical problems is to provide a memory card opening method, including:
reading a card opening program from a mother memory connected with a mother card interface, and writing the card opening program into a child memory connected with a child card interface, wherein the card opening program is used for being executed by the child memory, so as to scan a local memory chip and establish a mapping summary table for mapping a memory block in the memory chip;
when a scanning completion signal of a sub-memory connected with a sub-card interface is received, reading sub-memory firmware from a mother memory connected with the mother card interface, and writing the sub-memory firmware into a sub-memory connected with the sub-card interface, wherein the sub-memory firmware is used for being executed by the sub-memory to respond to an externally input data access instruction.
As a further improvement of the present invention, the method further comprises:
after the sub-memory connected with the sub-card interface is written into the sub-memory firmware, controlling the sub-memory connected with the sub-card interface to be powered off and restarted;
after the sub-memory connected with the daughter card interface is restarted, writing test data into the sub-memory, and reading data from the sub-memory;
and confirming that the card opening of the sub-memory is completed when the data read from the sub-memory is consistent with the test data written into the sub-memory.
As a further improvement of the present invention, said writing said sub-memory firmware to a sub-memory interfaced with said daughter card comprises:
reading a process mark in a sub-memory connected with the sub-card interface, writing a part of the sub-memory firmware which is not written into the sub-memory according to the process mark, and updating the process mark according to the writing process of the sub-memory firmware.
As a further improvement of the present invention, the method comprises the following steps performed after power-on start:
sending a first inquiry signal to the mother card interface, and confirming whether the mother card interface is connected with a mother memory according to a signal returned by the mother card interface, wherein the first inquiry signal is used for being executed by the mother memory so as to feed back a first confirmation signal to the mother card interface;
and sending a second inquiry signal to the daughter card interface, and confirming whether the daughter card interface is connected with a sub-memory according to a signal returned by the daughter card interface, wherein the second inquiry signal is used for being executed by the sub-memory so as to feed back a second confirmation signal to the daughter card interface.
As a further improvement of the present invention, the first acknowledge signal includes a memory type of the mother memory, and the second acknowledge signal includes a memory type of the child memory;
the method further comprises the following steps:
judging whether the mother memory connected with the mother card interface and the daughter memory connected with the daughter card interface are the same type of memory or not according to the first confirmation signal and the second confirmation signal;
and when the mother memory connected with the mother card interface and the daughter memory connected with the daughter card interface are different types of memories, outputting an alarm signal.
As a further improvement of the present invention, the reading of the child memory firmware from the parent memory interfaced with the parent card includes: reading the mother memory firmware of the mother memory connected with the mother card interface, and taking the mother memory firmware of the mother memory as the child memory firmware.
As a further improvement of the present invention, before writing the card-opening program into the sub-memory interfaced with the daughter card, the method further comprises: and checking whether a mapping total table exists in the sub-memory, and deleting the mapping total table by the control chip when the mapping total table exists in the sub-memory.
As a further improvement of the present invention, before writing the card-opening program into the sub-memory interfaced with the daughter card, the method further comprises: and checking whether a mapping general table exists in the sub-memory, and stopping writing the card opening program into the sub-memory and outputting a prompt signal when the mapping general table exists in the sub-memory by the control chip.
The invention also provides a memory card-opening device, which comprises a mother card interface, a daughter card interface, a storage unit and a control chip; the storage unit is integrated with the control chip or connected with the control chip, a computer program executable on the control chip is stored in the storage unit, and the steps of the memory card opening method are realized when the control chip executes the computer program.
As a further improvement of the present invention, the memory card-opening device includes a plurality of daughter card interfaces, and the plurality of daughter card interfaces are respectively connected to the same group of pins of the control chip.
As a further improvement of the present invention, the memory card-opening device further includes a power interface, the power interface is electrically connected to the power supply pins of the control chip and the daughter card interface, respectively, and the power supply pin of the mother card interface is electrically connected to the power output pin of the control chip.
As a further improvement of the present invention, the memory card-opening device further includes a control switch, and the power interface is electrically connected to the power supply pin of the daughter card interface via the control switch.
As a further improvement of the invention, the control end of the control switch is connected with the control chip and is controlled to be switched on and off by the control chip.
As a further improvement of the present invention, each daughter card interface includes a status indicator light for indicating a status of the daughter card interface, the memory card activation device further includes a driving circuit controlled by the control chip, and the status indicator lights are respectively connected to the driving circuit and driven by the driving circuit to emit light.
The present invention also provides a computer readable storage medium, having a computer program stored thereon, which, when executed by a processor, implements the steps of the memory card opening method as described above.
The invention has the following technical effects: the offline card opening operation of different types of memories can be realized by acquiring the card opening program and the sub-memory firmware from the mother memory and writing the acquired card opening program and the sub-memory firmware into the sub-memory.
Drawings
FIG. 1 is a flowchart illustrating a method for opening a memory card according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a process of determining whether a mother memory and a daughter memory are plugged in place in a memory card opening method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for determining whether a mother memory and a daughter memory are the same type of memory according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating a process of determining whether the card is successfully opened in the sub-memory in the method for opening the card of the memory according to the embodiment of the present invention;
fig. 5 is a schematic diagram of a memory card-opening device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, the Memory card opening method according to an embodiment of the present invention is a flowchart, and the Memory card opening method may be applied to the Memory card opening device shown in fig. 5, and implement offline card opening, specifically, the Memory card opening device includes a control chip 51, a mother card interface 52, a daughter card interface 53, and a storage unit, an SRAM (Static Random-Access Memory) may be integrated in the control chip 51 for loading a program, and the mother card interface 52, the daughter card interface 53, and the storage unit are all connected to the control chip 51 and perform data interaction with the control chip 51. In practical applications, the memory unit may also be integrated in the control chip 51.
The memory card opening method of the embodiment may include the following steps executed by the control chip 51:
step S11: the card-open program is read from the mother memory connected to the mother card interface 52 and written to the daughter memory connected to the daughter card interface 53.
The mother memory and the son memory are both complete memories, namely, the inside of the mother memory and the inside of the son memory have control and storage functions and comprise a main control chip and a memory chip; meanwhile, the mother memory and the daughter memory are provided with connection interfaces matched with the external interface, so that the mother memory and the daughter memory can be connected with the external interface, respond to instructions from the external interface and execute corresponding operations. Specifically, the mother memory and the daughter memory may be non-power-loss memory devices such as Serial Peripheral Interface (SPI) FLASH, for example, solid state disk, CF, SM, MMC, SD, XD, SM, TF, 1394, PCMCIA, USB interface memory, and the like.
Correspondingly, the mother card interface 52 and the daughter card interface 53 are pluggable interfaces, and may specifically be interfaces corresponding to the external interfaces of the mother memory and the daughter memory. In practical application, the memory card opening device can also realize the card opening of different memories by arranging a plurality of different types of mother card interfaces and daughter card interfaces. In addition, the card opening of different types of memories can be realized by connecting different conversion plugs.
The main memory stores a card opening program and a sub-memory firmware, wherein the card opening program is used for being executed by the sub-memory, that is, after the card opening program is written into the sub-memory (for example, a memory chip of the sub-memory), the main control chip of the sub-memory can execute the card opening program. For example, after the card-opening program is written into the sub-memory, the control chip 51 may generate a restart signal to power off and restart the sub-memory through the sub-card interface, execute the card-opening program after the sub-memory is restarted, scan the local memory chip and establish a mapping table for mapping the memory blocks in the memory chip, where the mapping table stores the states (e.g., good or bad, idle or occupied, etc.) of the memory blocks in the memory chip, and the mapping table may be stored in an eeprom (electrically Erasable Programmable rom) of the control chip of the sub-memory or a hidden memory block in the memory chip. The card opening procedure itself is well known in the art and will not be described herein.
Step S12: upon receiving a scan completion signal of the sub memory connected to the daughter card interface 53, the sub memory firmware is read from the mother memory connected to the mother card interface 52 and written to the sub memory connected to the daughter card interface 53.
Specifically, after the sub-memory connected to the sub-card interface 53 scans its memory chip and establishes the mapping summary table, the sub-memory sends a scanning completion signal to the control chip 51 through the sub-card interface 53, and the control chip 51 reads the firmware of the sub-memory from the main memory through the main card interface 52 after receiving the scanning completion signal, and then writes the firmware of the sub-memory into the sub-memory through the sub-card interface 53.
The sub-memory firmware is used for the sub-memory to execute and constitutes the most basic and lowest layer of software of the sub-memory (i.e., the file system of the sub-memory). Specifically, the sub-memory firmware includes bin files, when the main control chip of the sub-memory executes the sub-memory firmware, and if the sub-memory does not have a file system, the main control chip of the sub-memory first searches the bin files in the sub-memory firmware and then executes the bin files, and according to the bin files, the main control chip of the sub-memory divides each block in the memory chip of the sub-memory to establish the file system of the screwdriver memory. The memory firmware itself is well known in the art and will not be described herein.
In particular, the sub-memory firmware may be stored into a hidden memory block in a memory chip of the sub-memory or an EEPROM of a main control chip of the sub-memory.
In the memory card opening method, the card opening program and the sub-memory firmware are obtained from the main memory, and the obtained card opening program and the sub-memory firmware are written into the sub-memory, so that offline card opening operations of different types of memories can be realized, for example, when the cards of the different types of memories are opened, only the main memory connected with the main card interface 52 needs to be replaced.
Since the above-mentioned card opening method of the memory is operated in an off-line manner, in order to ensure the complete writing of the firmware of the sub-memory and at the same time avoid the repeated writing of the firmware data of the sub-memory caused by the unexpected interruption (e.g. power off) of the writing of the firmware of the sub-memory, in an embodiment of the present invention, in the step S12, the following steps performed by the control chip 51 are included in writing the firmware of the sub-memory into the sub-memory connected to the sub-card interface 53: the process flag in the sub-memory connected to the sub-card interface 53 is read, and the portion of the sub-memory firmware not written to the sub-memory is written to the sub-memory according to the process flag, and the process flag is updated according to the writing process of the sub-memory firmware.
The process flag may be written by the control chip 51 to a specific memory block (which may be preset) in the memory chip of the sub-memory, and the process flag is generated according to the data amount of the sub-memory firmware, for example, the process flag is updated by the control chip 51 every time the sub-memory firmware with 1K data is written. Alternatively, the control chip 51 may generate the process flag according to the content of the sub-memory firmware.
Specifically, the control chip 51 may divide the sub-memory firmware into a plurality of data sets, where each data set corresponds to a process flag, and accordingly, the updating process flag includes: and writing the process mark corresponding to the data set of the sub-memory firmware which is already written into the sub-memory into a specific storage block of the sub-memory, namely, a plurality of different process marks exist in the sub-memory. In practical applications, the control chip 51 may also divide the sub-memory firmware into a plurality of data sets sequentially written into the sub-memory, and accordingly, the update process flag includes: after the written data set of the sub-memory firmware is written into the sub-memory, the original process flag in the sub-memory is deleted, and a new process flag (i.e., the process flag corresponding to the data set just written) is written.
Specifically, when the control chip 51 does not read the process flag in the sub-memory (for example, there is no process flag in the sub-memory, and the sub-memory firmware does not start writing at this time), the control chip 51 directly writes all the data of the sub-memory firmware into the sub-memory, and during the writing process, the control chip 51 creates the process flag and updates the process flag along with the writing of the sub-memory firmware.
As shown in fig. 2, in an embodiment of the present invention, before performing the above steps S11 and S12 (after the powering-on of the memory card-open device is completed), the following steps performed by the control chip 51 may be further included:
step S101: the first inquiry signal is sent to the mother card interface 52, and whether the mother card interface 52 is connected with the mother memory is confirmed according to the signal returned by the mother card interface 52.
The first query signal is used for the mother memory to execute so as to feed back a first confirmation signal to the mother card interface 52, that is, after the master control chip of the mother memory receives the first query signal, a signal indicating the connection state and the identity of the mother memory is sent to the control chip 51 through the mother card interface 52. The control chip 51 confirms that the mother card interface 52 is connected with the mother memory after receiving the first confirmation signal; if the control chip 51 does not receive any feedback signal, it is determined that the mother card interface 52 is not connected to the mother memory. Specifically, when the control chip 51 confirms that the mother card interface 52 is not connected to the mother memory, the control chip 51 may cyclically execute the step S101 at a preset period until the mother memory is connected to the mother card interface 52.
Step S102: and sending a second inquiry signal to the daughter card interface 53, and confirming whether the daughter card interface 53 is connected with the daughter memory according to a signal returned by the daughter card interface 53.
The second query signal is used for the sub-memory to execute, so as to feed back a second confirmation signal to the sub-card interface 53, that is, after the main control chip of the sub-memory receives the second query signal, the main control chip sends a signal indicating the connection state and the identity of the sub-memory to the control chip 51 through the sub-card interface 53. After receiving the second acknowledgement signal, the control chip 51 confirms that the daughter card interface 53 is connected to the daughter memory; if the control chip 51 does not receive any feedback signal, it is confirmed that the daughter card interface 53 is not connected to the daughter memory. Specifically, when the control chip 51 confirms that the daughter card interface 53 is not connected to the daughter memory, the control chip 51 may execute the step S102 cyclically according to a preset period until there is a daughter memory connected to the daughter card interface 53.
The sequence of the above steps S101 and S102 may not be limited, that is, the control chip 51 may send the first query signal to the mother card interface 52 first after being powered on, or may send the second query signal to the daughter card interface 53 first. After the control chip 51 confirms that the mother card interface 52 is connected to the mother memory and the daughter card interface 53 is connected to the daughter memory, steps S11 and S12 are executed. By the mode, the offline card opening of the sub-memory can be realized only by plugging the main memory into the main card interface 52 and plugging the sub-memory into the sub-card interface 53 without manual operation of an operator.
In one embodiment of the present invention, as shown in conjunction with FIG. 3, the feedback signal of the first query signal, i.e., the first acknowledge signal returned by the parent memory, includes the memory type of the parent memory; a feedback signal of the second query signal, i.e. a second acknowledge signal returned by the sub-memory, including the memory type of the sub-memory; accordingly, after steps S101 and S102, the following steps performed by the control chip 51 are also included:
step S103: according to the first confirmation signal and the second confirmation signal, the memory type of the mother memory connected with the mother card interface 52 and the memory type of the daughter memory connected with the daughter card interface 53 are obtained, and whether the mother memory connected with the mother card interface 52 and the daughter memory connected with the daughter card interface 53 are the same type of memory, for example, whether the mother memory and the daughter memory are both TF cards or both SD cards is judged.
Step S104: when the mother memory connected to the mother card interface 52 and the daughter memory connected to the daughter card interface 53 are different types of memories, an alarm signal is outputted, for example, by an LED lamp flashing and/or a buzzer sounding a specific sound. And when the mother memory connected to the mother card interface 52 and the daughter memory connected to the daughter card interface 53 are the same type of memory, step S11 and step S12 are executed.
By the mode, the sub-memory can be prevented from being mistakenly opened, and the success rate of opening the card is improved. Accordingly, in step S12, when the sub-memory firmware is not present in the mother memory (i.e., the mother memory does not store the detectable sub-memory firmware), the control chip 51 may directly read a storage area of the mother memory firmware of the mother memory connected to the mother card interface 52 (e.g., a hidden storage block in the storage chip of the mother memory or an EEPROM of the main control chip), and write data of the storage area of the mother memory firmware as the sub-memory firmware, i.e., directly write the firmware of the mother memory as the firmware of the sub-memory into the sub-memory. Specifically, the control chip 51 may read out the hidden memory block of the mother memory or the firmware in the EEPROM (i.e. the firmware of the mother memory) by a read instruction, for example, the control chip 51 directly sends an instruction (such as a subcommand flinfo, iminfo, etc. in the Uboot) to the mother memory to obtain the storage information (storage address, start address, storage length, etc.) of the firmware, and then extracts the firmware in the corresponding position of the storage information.
Referring to fig. 4, in an embodiment of the present invention, after the steps S11 and S12 of the above memory card opening method, the following steps performed by the control chip 51 are further included:
step S13: and after the sub-memory connected with the daughter card interface 53 is written into the sub-memory firmware, controlling the sub-memory connected with the daughter card interface 53 to be powered off and restarted.
Specifically, whether the writing of the firmware of the sub-memory is completed can be confirmed according to the feedback signal of the sub-memory. And, the control chip 51 may power down through the power pin of the control daughter card interface 53, thereby powering down and restarting the sub-memory connected to the daughter card interface 53.
Step S14: after the sub-memory connected to the daughter card interface 53 is restarted (at which time the sub-memory automatically runs the sub-memory firmware written in step S12), test data is written to the sub-memory, and data is read from the sub-memory.
The test data may be read from the mother memory through the mother card interface 52, or may be directly stored in the SRAM of the control chip 51, a storage device connected to the control chip 51 in the memory card-opening apparatus, or may be randomly generated by the control chip 51.
Step S15: and confirming that the card opening of the sub-memory is completed when the data read from the sub-memory is consistent with the test data written into the sub-memory. If the data read from the sub-memory does not match the test data written to the sub-memory, the control chip 51 returns to step S11 to re-execute the card-open operation. The data comparison method is well known in the art and will not be described herein.
Through the steps S13-S15, the card opening operation can be verified, so that the success rate of the card opening operation is improved.
In an embodiment of the present invention, before performing step S11, the control chip 51 further checks whether a mapping table already exists in the sub-memory connected to the daughter card interface 53, if the mapping table already exists, deletes the mapping table and writes the card start program into the sub-memory, and after the sub-memory is restarted, scans the local memory chips and reestablishes the mapping table for mapping the memory blocks in the memory chips according to the scanning result. In practical applications, if the control chip 51 checks that the mapping table already exists in the sub-memory connected to the sub-card interface 53, the card-open operation may be suspended and a prompt signal (e.g., sound, light, etc.) may be output to avoid data loss in the atomic memory.
The embodiment of the present invention further provides a memory card opener, as shown in fig. 5, the memory card opener includes a control chip 51, a mother card interface 52, a daughter card interface 53, and a storage unit, and the mother card interface 52, the daughter card interface 53, and the storage unit are all connected to the control chip 51 (or the storage unit is integrated into the control chip 51), and perform data interaction with the control chip 51. The storage unit stores a computer program executable on the control chip 51, and the control chip 51 implements the steps of the memory card opening method when executing the computer program.
In an embodiment of the present invention, the memory card-opening apparatus includes a plurality of daughter card interfaces 53, and the daughter card interfaces 53 are respectively connected to the same group of pins of the control chip 51, so that simultaneous card opening of a plurality of daughter memories can be realized.
In addition, the memory card-opening device may further include a power interface 54, and the power interface 54 is electrically connected to the power supply pins of the control chip 51 and the daughter card interface 53, respectively, and the power supply pin of the mother card interface 52 is electrically connected to the power output pin of the control chip 51, that is, the daughter card interface 53 is powered by the power interface 54, and the mother card interface 52 is powered by the control chip 51. In practical applications, the mother card interface 52 and the daughter card interface 53 may both be powered by the control chip 51.
To facilitate card-open control, in an embodiment of the present invention, the memory card-open apparatus may further include a control switch, the power interface 51 is electrically connected to the power pins of the daughter card interfaces 53 via the control switch, for example, an independent control switch is connected between each daughter card interface 53 and the power interface 54, or all the daughter card interfaces 53 are connected to the power interface 54 via the same control switch. In particular, the control end of the control switch is connected with the control chip 51 and is controlled by the control chip 51 to be switched on and off, for example, the control switch may include a semiconductor switch tube. The control switch can be controlled to be on or off manually, and comprises a poking rod or a button and the like.
In order to enable an operator to know the card opening process of the sub-memory in real time, in the above memory card opening device, each sub-card interface 53 includes a status indicator lamp (specifically, may include a plurality of lamp beads with different colors, or include a lamp bead capable of emitting different colors) for indicating the status of the sub-card interface 53, and correspondingly, the memory card opening device further includes a driving circuit controlled by the control chip 51, and the status indicator lamps are respectively connected with the driving circuit and driven by the driving circuit to emit light. For example, when the daughter card interface 53 is in a normal open card process, the control chip 51 controls the status indicator lamp of the daughter card interface 53 to emit red light through the driving circuit; when the daughter card interface 53 has an error, the control chip 51 controls the status indicator lamp of the daughter card interface 53 to emit a flashing red light through the driving circuit; when the opening of the sub-memory of the sub-card interface 53 is completed, the control chip 51 controls the status indicator lamp of the sub-card interface 53 to emit green light through the driving circuit.
The memory card-opening device in this embodiment is the same as the memory card-opening method in the embodiment corresponding to fig. 1 to 4, and specific implementation processes thereof are detailed in the corresponding method embodiments, and technical features in the method embodiments are correspondingly applicable in this device embodiment, which is not described herein again.
The embodiment of the invention also provides a computer readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the memory card opening method are realized.
The computer-readable storage medium in this embodiment is the same as the memory card-opening method in the embodiment corresponding to fig. 1 to 4, and specific implementation processes thereof are detailed in the corresponding method embodiments, and technical features in the method embodiments are correspondingly applicable in this device embodiment, which is not described herein again.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing functional units and modules are merely illustrated in terms of division, and in practical applications, the foregoing functions may be distributed as needed by different functional units and modules. Each functional unit and module in the embodiments may be integrated in one processor, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed memory card opening method and apparatus can be implemented in other ways. For example, the memory card-opening device embodiments described above are merely illustrative.
In addition, functional units in the embodiments of the present application may be integrated into one processor, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any physical or interface switching device, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc., capable of carrying said computer program code. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (15)

1. A memory card opening method is characterized by comprising the following steps:
reading a card opening program from a mother memory connected with a mother card interface, and writing the card opening program into a child memory connected with a child card interface, wherein the card opening program is used for being executed by the child memory, so as to scan a local memory chip and establish a mapping summary table for mapping a memory block in the memory chip;
when a scanning completion signal of a sub-memory connected with a sub-card interface is received, reading sub-memory firmware from a mother memory connected with the mother card interface, and writing the sub-memory firmware into a sub-memory connected with the sub-card interface, wherein the sub-memory firmware is used for being executed by the sub-memory to respond to an externally input data access instruction.
2. The memory card opening method according to claim 1, further comprising:
after the sub-memory connected with the sub-card interface is written into the sub-memory firmware, controlling the sub-memory connected with the sub-card interface to be powered off and restarted;
after a sub-memory connected with the daughter card interface is restarted, writing test data into the sub-memory, and reading data from the sub-memory;
and confirming that the card opening of the sub-memory is completed when the data read from the sub-memory is consistent with the test data written into the sub-memory.
3. The memory card opening method according to claim 1, wherein the writing the sub-memory firmware to the sub-memory interfaced with the daughter card comprises:
reading a process mark in a sub-memory connected with the sub-card interface, writing a part of the sub-memory firmware which is not written into the sub-memory according to the process mark, and updating the process mark according to the writing process of the sub-memory firmware.
4. The memory card opening method according to claim 1, wherein the method comprises the following steps performed after power-on start:
sending a first inquiry signal to the mother card interface, and confirming whether the mother card interface is connected with a mother memory according to a signal returned by the mother card interface, wherein the first inquiry signal is used for being executed by the mother memory so as to feed back a first confirmation signal to the mother card interface;
and sending a second inquiry signal to the daughter card interface, and confirming whether the daughter card interface is connected with a sub-memory according to a signal returned by the daughter card interface, wherein the second inquiry signal is used for being executed by the sub-memory so as to feed back a second confirmation signal to the daughter card interface.
5. The memory card opening method according to claim 4, wherein the first acknowledge signal comprises a memory type of the mother memory, and the second acknowledge signal comprises a memory type of the child memory;
the method further comprises the following steps:
judging whether the mother memory connected with the mother card interface and the daughter memory connected with the daughter card interface are the same type of memory or not according to the first confirmation signal and the second confirmation signal;
and when the mother memory connected with the mother card interface and the daughter memory connected with the daughter card interface are different types of memories, outputting an alarm signal.
6. The memory card opening method according to claim 5, wherein the reading of the sub-memory firmware from the mother memory interfaced with the mother card comprises: reading the mother memory firmware of the mother memory connected with the mother card interface, and taking the mother memory firmware as the child memory firmware.
7. The memory card opening method according to claim 1, wherein writing the card opening program to a sub-memory interfaced with a sub-card further comprises: checking whether a mapping summary table exists in a sub-memory, and deleting the mapping summary table when the mapping summary table exists in the sub-memory.
8. The memory card opening method according to claim 1, wherein writing the card opening program to a sub-memory interfaced with a sub-card further comprises: checking whether a mapping general table exists in a sub-memory, and stopping writing a card opening program into the sub-memory and outputting a prompt signal when the mapping general table exists in the sub-memory.
9. A memory card opening device is characterized by comprising a mother card interface, a daughter card interface, a storage unit and a control chip; the storage unit is integrated with the control chip or connected with the control chip, a computer program executable on the control chip is stored in the storage unit, and the steps of the memory card opening method according to any one of claims 1-8 are realized when the computer program is executed by the control chip.
10. The memory card-opening device according to claim 9, wherein the memory card-opening device comprises a plurality of daughter card interfaces, and the plurality of daughter card interfaces are respectively connected with the same group of pins of the control chip.
11. The memory card-opening device according to claim 9, further comprising a power interface, wherein the power interface is electrically connected to the power pins of the control chip and the daughter card interface, respectively, and the power pin of the mother card interface is electrically connected to the power output pin of the control chip.
12. The memory card opener apparatus of claim 11, further comprising a control switch, wherein the power interface is electrically connected to a power pin of a daughter card interface via the control switch.
13. The memory card-opening device of claim 12, wherein a control terminal of the control switch is connected to the control chip and is controlled to be turned on or off by the control chip.
14. The memory card-opening device according to claim 9, wherein each daughter card interface comprises a status indicator light for indicating the status of the daughter card interface, the memory card-opening device further comprises a driving circuit controlled by the control chip, and the status indicator lights are respectively connected to the driving circuit and driven by the driving circuit to emit light.
15. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of the memory card opening method according to any one of claims 1 to 8.
CN202111680939.3A 2021-12-31 2021-12-31 Memory card opening method, equipment and computer readable storage medium Pending CN114356805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111680939.3A CN114356805A (en) 2021-12-31 2021-12-31 Memory card opening method, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111680939.3A CN114356805A (en) 2021-12-31 2021-12-31 Memory card opening method, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114356805A true CN114356805A (en) 2022-04-15

Family

ID=81105369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111680939.3A Pending CN114356805A (en) 2021-12-31 2021-12-31 Memory card opening method, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114356805A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050160219A1 (en) * 2004-01-20 2005-07-21 Samsung Electronics Co., Ltd. Apparatus and method for booting NAND flash memory of a mobile terminal
CN103237252A (en) * 2013-03-22 2013-08-07 深圳市九洲电器有限公司 Method and device for burning set-top box storage chips
US20140163716A1 (en) * 2012-12-10 2014-06-12 Skymedi Corporation Bridge device, automated production system and method thereof for storage device
CN105740031A (en) * 2016-03-08 2016-07-06 深圳市硅格半导体股份有限公司 Card activating method based on card activating external member and card activating external member
CN105760186A (en) * 2015-12-31 2016-07-13 北京兆易创新科技股份有限公司 Expandable modular multi-channel off-line programmer
CN109119124A (en) * 2018-08-27 2019-01-01 湖南国科微电子股份有限公司 The production method and solid state hard disk of solid state hard disk
CN110297791A (en) * 2019-06-28 2019-10-01 深圳忆联信息系统有限公司 A kind of method and its system for effectively improving solid state hard disk serial ports and opening card speed
CN111857882A (en) * 2020-07-23 2020-10-30 深圳忆联信息系统有限公司 Extensible SSD (solid State disk) firmware loading method and device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050160219A1 (en) * 2004-01-20 2005-07-21 Samsung Electronics Co., Ltd. Apparatus and method for booting NAND flash memory of a mobile terminal
US20140163716A1 (en) * 2012-12-10 2014-06-12 Skymedi Corporation Bridge device, automated production system and method thereof for storage device
CN103237252A (en) * 2013-03-22 2013-08-07 深圳市九洲电器有限公司 Method and device for burning set-top box storage chips
CN105760186A (en) * 2015-12-31 2016-07-13 北京兆易创新科技股份有限公司 Expandable modular multi-channel off-line programmer
CN105740031A (en) * 2016-03-08 2016-07-06 深圳市硅格半导体股份有限公司 Card activating method based on card activating external member and card activating external member
CN109119124A (en) * 2018-08-27 2019-01-01 湖南国科微电子股份有限公司 The production method and solid state hard disk of solid state hard disk
CN110297791A (en) * 2019-06-28 2019-10-01 深圳忆联信息系统有限公司 A kind of method and its system for effectively improving solid state hard disk serial ports and opening card speed
CN111857882A (en) * 2020-07-23 2020-10-30 深圳忆联信息系统有限公司 Extensible SSD (solid State disk) firmware loading method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙丽华: "安全数码卡开卡过程的设计与实现", 硕士电子期刊, no. 2011, 15 October 2011 (2011-10-15) *

Similar Documents

Publication Publication Date Title
JP4722194B2 (en) Rewriting system for vehicles
KR100280637B1 (en) Computer system capable of data update of fixed flash ROM and its control method
CN104965725B (en) A kind of full-automatic firmware programming method of embedded device based on SD card
US7480905B2 (en) Interface device, and method and computer readable product for updating firmware in the interface device
CN102446141B (en) Device and method for realizing write protection control
CN105094877A (en) Method for firmware upgrading, and host side device and system
CN112732617A (en) Control method, device and equipment for NVME hard disk LED lamp and readable medium
CN109614118B (en) SPI Flash firmware burning method and device
CN100383737C (en) SCM online loading and updating method and system
US6904484B1 (en) Low pin count (LPC) firmware hub recovery
CN114356805A (en) Memory card opening method, equipment and computer readable storage medium
US20080222404A1 (en) In-system programming system and method for motherboard
CN110968329A (en) Burner and operation method and burning system thereof
CN109062622A (en) One kind being based on long-range FPGA loading system and method
WO2001020541A1 (en) Entertainment device, data processing device and portable storage device
CN112445670B (en) eMMC test method and device
CN114356806B (en) Fast card opening method, apparatus and computer readable storage medium
CN112612500A (en) Method and device for upgrading BMC, electronic equipment and storage medium
CN111552498A (en) Method and system for realizing screen parameter upgrading of display screen
CN117076214A (en) Method, system, terminal and medium for detecting dial fool-proof of hard disk backboard of server
CN116471731A (en) Stage lamp program updating system based on USB
KR101261022B1 (en) Apparatus of data processing and method of setting program data thereof
KR101837725B1 (en) Device writing program for micro controller unit and programming method thereof
US11853736B2 (en) Module, information processing device equipped with same, and method for updating program data to update program data in module
CN109245920B (en) Automatic switch configuration method and device, switch and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination