Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system of realizing hot-swap function of CF (Compact Flash) card

A hot-swap, functional technology, applied in the direction of instruments, electrical digital data processing, etc., can solve the problems of unexpected system reset, component damage, data communication errors, etc., to improve flexibility and achieve the effect of hot-swap function

Inactive Publication Date: 2017-09-19
FENGHUO COMM SCI & TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the change of VCC power supply voltage and ground level during hot plugging, common mode noise will be introduced on the signal bus, resulting in data communication errors, unexpected system resets, and even damage to components

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system of realizing hot-swap function of CF (Compact Flash) card
  • Method and system of realizing hot-swap function of CF (Compact Flash) card
  • Method and system of realizing hot-swap function of CF (Compact Flash) card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0038] The present invention provides a method for realizing the hot swap function of a CF card, see figure 1 As shown, the card removal steps are as follows:

[0039] S11. When the CF card needs to be pulled out, the application program sets an event waiting for the action of pulling out the card through the interface provided by the CF card hot-swapping driver;

[0040] After the application program sets an event of waiting for the card pulling action, it waits for the card pulling action. When the card pulling action does not occur, the application program is in a sleep state. In addition, the interface provided by the CF card hot plug driver in the present invention is an ioctl interface, so that the cmd and arg parameters passed in by the ioctl function of the application layer will be directly passed into the ioctl interface of the driver layer.

[00...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a system of realizing a hot-swap function of a CF (Compact Flash) card, and relates to storage devices. The method comprises the following steps: setting, by an application program, an event of waiting for an action of pulling out the card when the CF card is pulled out; pressing a trigger switch before pulling out the card, and enabling a CF card controller to generate an interrupt request when the card is pulled out; responding to the interrupt request by a CF card hot-swap driver, triggering the event of waiting for the action of pulling out the card, and enabling an indicating signal light to flicker; cutting off processes, which read or write the CF card, by the application program, executing umount on the CF card, then notifying the CF card hot-swap driver to unload the CF card, and lastly setting an event of waiting for an action of plugging in the card; shutting off power after CF card unloading is completed; judging, by the CF card controller, whether the CF card is plugged in when the CF card is plugged in, and generating an interrupt request if the card is plugged in; responding to the interrupt request by the CF card hot-swap driver, starting up the power for the CF card, and initializing the CF card; triggering, after CF card recognizing is completed, the event of waiting for the action of plugging in the card; and executing mount on the CF card by the application program, and starting the processes which read or write the CF card. The method and the system can realize the hot-swap function of the CF card.

Description

technical field [0001] The invention relates to the field of storage devices, in particular to a method and a system for realizing a hot swap function of a CF card. Background technique [0002] CF card (Compact Flash) was originally a data storage device for portable electronic devices. As a storage device, it revolutionized the use of flash memory, and was first produced by SanDisk in 1994 and formulated related specifications. Currently, its physical format has been adopted by various devices. CF card has a longer life and lower unit capacity cost than other storage methods, and it can also provide larger capacity in a smaller size. [0003] But the CF card has no hot-swappable function, unlike the U disk, the SATA card has the hot-swappable function. In the process of use, it is inevitable that a live plug-in board is required. Due to the change of VCC power supply voltage and ground level during hot plugging, common mode noise will be introduced on the signal bus, r...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F13/40
CPCG06F13/4081
Inventor 陈利玲
Owner FENGHUO COMM SCI & TECH CO LTD