WO2008071113A1 - Procédé et dispositif de prévention d'endommagement de carte compact flash (cf) - Google Patents

Procédé et dispositif de prévention d'endommagement de carte compact flash (cf) Download PDF

Info

Publication number
WO2008071113A1
WO2008071113A1 PCT/CN2007/071140 CN2007071140W WO2008071113A1 WO 2008071113 A1 WO2008071113 A1 WO 2008071113A1 CN 2007071140 W CN2007071140 W CN 2007071140W WO 2008071113 A1 WO2008071113 A1 WO 2008071113A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
signal
bus
unit
power
Prior art date
Application number
PCT/CN2007/071140
Other languages
English (en)
French (fr)
Inventor
Huayu Chang
Original Assignee
Huawei Technologies 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2008071113A1 publication Critical patent/WO2008071113A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Definitions

  • the present invention relates to the field of memory card technologies, and in particular, to a method and apparatus for reducing CF card damage.
  • Flash a storage device that uses compact flash technology
  • the C F card has the advantages of large capacity, fast speed, convenient replacement and high cost performance. Therefore, it is favored by users of digital cameras and handheld computers, and has been widely used in the field of data communication.
  • Mode mode it is the easiest to connect to the hardware.
  • driver software you can borrow the driver of the IDE (electronic integrated driver) interface. Therefore, True IDE Mode is the most commonly used mode of CF card.
  • Figure 1 shows CF card working in True IDE
  • the details include the following: The processor unit, the power supply, and the CF card connector on the board.
  • the CF card is connected to the board through the CF card connector on the board.
  • the processor unit includes an IDE interface and an in-position signal determining unit, and the IDE interface is configured to perform data and control information transmission with the CF card, and the in-position signal determining unit is configured to determine whether the CF card is completely in contact with the CF card connector;
  • the power supply connects the power terminal on the CF card connector slot to the power supply of the processor unit;
  • the CF card connector is provided with a power supply signal line including a power source and a ground, and is used for data transmission between the board and the CF card.
  • General purpose 1/0 (input/output) signal line, in-position detection CD1 signal and CD2 signal for judging whether the CF card is fully inserted into the slot of the CF card connector.
  • the power supply signal line
  • the order in which the pins of the CF card are in contact with the board is different. Because the pin of the power supply signal line is the most Long, so the power supply signal line is first contacted with the CF card; secondly, the CF card is in contact with the general-purpose I/O signal line; finally, the contact with the CF card is to determine whether the CF is fully inserted into the CF card connector slot. .
  • the CF card will be powered on during the insertion process. However, the CF card may not be fully inserted yet, which may result in damage to the CF card. Similarly, when the CF card is removed. During the process, since the CD1 and CD2 signals are first separated from the CF card, the power supply signal line is finally separated, which may cause unpredictable information to be written into the CF card, thereby damaging the CF card.
  • An embodiment of the present invention provides a method and apparatus for reducing CF card damage in a True IDE.
  • mode mode it prevents damage to the CF card during contact with the CF card connector.
  • the embodiment of the invention provides a method for reducing damage of a CF card, and the method includes:
  • the processor unit determines whether the CD1 signal and the CD2 signal are valid in place
  • the processor unit controls the CF card to be powered on; after the CF card is powered on, the processor unit controls the IDE bus to communicate with the CF card interface; after that, the processor unit accesses the CF card.
  • the embodiment of the invention provides a method for reducing damage of a CF card, and the method includes:
  • the processor unit controls the IDE bus to disconnect from the CF card; [18] After the IDE bus is disconnected from the CF card interface, the processor unit controls the CF card to be powered off.
  • An embodiment of the present invention provides a device for reducing damage to a CF card, the device comprising a processor unit, and further comprising:
  • the power control unit is configured to receive a signal for powering up the CF card and perform specific operations for powering up the CF card;
  • the bus control unit is configured to receive the signal of the connection between the IDE bus and the CF card interface and perform the specific operation of connecting the IDE bus and the CF card interface after the CF card is powered on;
  • In-position signal result sending unit used to send CD1, CD when both CD1 and CD2 signals are valid
  • a control unit configured to receive information sent by the in-position signal result sending unit, and control the power control unit to control the bus control unit to perform an IDE bus and a CF card interface after the CF card is powered on according to the information The operation of the connection.
  • An embodiment of the present invention provides an apparatus for reducing damage to a CF card, the apparatus comprising a processor unit, and further comprising:
  • Bus control unit used to receive the disconnected signal of the IDE bus and CF card interface and perform IDE bus and C
  • the power control unit is configured to receive the signal of the CF card power-off and perform the specific operation of the CF card power-off after the IDE bus and the CF card interface are disconnected;
  • control unit configured to control the bus control unit to perform an operation of disconnecting the IDE bus from the CF card interface
  • Figure 1 shows the CF card working in the True IDE in the prior art.
  • FIG. 2 is a flow chart showing an operation of inserting and removing a CF card according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of hardware signal connection between a CF card and a board according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a specific implementation of an apparatus according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of an operation of inserting and removing a CF card, and specifically includes:
  • the processor unit Before inserting the CF card, the processor unit sets the power end of the CF card connector slot to the power-off state; that is, if the power terminal of the CF card connector slot is powered, it needs to be inserted. Before the CF card, set the power end of the CF card connector slot to the power-off state; it can be understood that if the power end of the CF card connector slot is powered off, no setting is required; CF card connector slot for electricity The method of the power-off state of the card is: disconnecting the power end of the CF card connector slot from the power end of the board;
  • S21 After inserting the CF card, determine whether the CD1 and CD2 signals on the CF card connector are the same as the same; in the embodiment, the specific mode may be: If the CD1 and CD2 signals are the same as the low level , CD1 and CD2 signals are valid at the same time; if one of CD1 and CD2 signals is high level or the same level is high, it means that the CF card is not in position, so no operation is performed; if CD1 and CD2 signals are the same If it is valid, it means that the CF card is in place. This indicates that the CF card has been fully inserted into the CF card connector socket, and S22 is executed;
  • S22 After extending the processor unit for a period of time, such as delaying Is, the processor unit controls the CF card to be powered on; after the CF card is powered on, the processor unit controls the IDE bus to communicate with the CF card interface; Specifically, the processor unit sends a power-on signal to the CF card power control switch. After the CF card power control switch receives the signal, the CF card power control switch is closed, and the indicating device indicates that the CF card is in the power-on state. In the example, the LED (Light Emitting Diode) indicator is lit; after that, the processor unit sends a communication signal to the bus control switch. After the bus control switch receives the signal, the bus control switch is closed, that is, the IDE interface bus is enabled. Status; LED indicator is lit, it is forbidden to pull the CF card out of the CF card connector;
  • S23 The processor unit initializes the CF card and accesses the CF card; the ⁇ LED is always on, and the CF card is forbidden to be pulled out;
  • the processor unit controls the IDE bus to disconnect from the CF card interface; after the IDE bus is disconnected from the CF card interface, the processor unit controls the CF card to be powered off; specifically, the processor unit sends a disconnection to the bus control switch.
  • the bus control switch receives the signal, the bus control switch is turned off, that is, the IDE interface bus is in a high impedance state; after that, the processor unit sends a power down signal to the CF card power control switch, and the CF card power control is performed.
  • the switch receives the signal, the CF card power control switch is turned off, and the LED indicator on the board is turned off at the same time; after the LED indicator is off, the CF card can be pulled out from the CF card connector socket.
  • FIG. 3 is a schematic diagram of hardware connection between a CF card and a board according to an embodiment of the present invention, specifically including:
  • processor unit a processor unit, a power control unit, a bus control unit, and a processor unit disposed in the processor unit In-position signal result transmission unit and control unit, where:
  • the power control unit is used to receive the CF card power-on or power-off signal and perform the specific operation of the CF card power-on or power-off; after receiving the CF card power-on signal, perform the CF card power-on operation; Power off signal to CF card
  • the CF card is powered off after the IDE bus and the CF card have been disconnected.
  • the bus control unit is used to receive the connection or disconnection signal between the IDE bus and the CF card interface and to connect or disconnect the IDE bus and the CF card interface; when receiving the IDE bus and the CF card interface Signal, Bay I" controls the connection between the IDE bus and the CF card interface after the CF card is powered on, if the IDE bus and C are received
  • the F card interface When the F card interface disconnects, it controls the disconnection between the IDE bus and the CF card interface.
  • the in-position signal result transmitting unit is configured to transmit, to the control unit, information that both the CD1 and the CD2 signal are valid if the judgment result of the in-position signal judging unit is that both the CD1 and the CD2 signal are valid;
  • control unit after receiving the information sent by the in-position signal result transmitting unit, is used to control the power control unit to power on the CF card, and then the control bus control unit connects the IDE bus to the CF card interface; if the processor unit stops Access to the CF card for controlling the bus control unit to disconnect the IDE bus from the CF card interface
  • FIG. 4 is a schematic diagram of a specific implementation of an apparatus according to an embodiment of the present invention, including a power control unit, a bus control unit, and an in-position signal result sending unit and control disposed in the processor unit. Unit, where:
  • the control unit comprises:
  • the bus judging unit is configured to judge whether the interface between the IDE bus and the CF card is disconnected; when the IDE bus is disconnected from the CF card interface, the upward electrical signal sending unit sends the judgment result;
  • a power-on signal sending unit configured to send a signal for powering on or off the CF card to the power control unit after receiving the information sent by the in-situ signal result transmitting unit or the determining result sent by the bus determining unit;
  • the result of the bit signal result transmitting unit is that both the CD1 and the CD2 signal are valid, and the power-on signal sending unit sends the CF card power-on signal to the power control unit; when the result of the determination by the bus determining unit is that the IDE bus and the CF card interface are disconnected, Then, the power-on signal transmitting unit sends a CF card power-off signal to the power control unit.
  • the power-on judging unit is configured to judge whether the CF card is powered on; when the CF card is powered on, send the judgment result to the bus signal sending unit; that is, the judgment result is sent only after the power-on is completed, No signal is sent without powering up.
  • the bus signal sending unit is configured to: when the receiving power-on determining unit sends the judgment result, the CF card is powered on, send the IDE bus and the CF card interface connection signal to the bus control unit, or the processor unit stops the CF card. After the access, a signal that the IDE bus is disconnected from the CF card interface is sent to the bus control unit.
  • the device further includes:
  • an indicating unit configured to indicate a power-on or power-off state of the CF card under the control of the power control unit; in the embodiment of the present invention, the indicating unit may be various types of indicators, such as an LED indication
  • the LED indicator light is turned on or off under the control of the power control unit, and indicates to the operator that the CF card is powered on or off to determine whether the CF card can be pulled out; if the LED indicator is always If the CF card is in the power-on state, the CF card cannot be removed. When the LED indicator is off, that is, the CF card is in the power-off state, the CF card can be removed.
  • the power control unit includes:
  • the power-on signal receiving unit is configured to receive a signal that the CF card sent by the power-on signal sending unit is powered on or off
  • a power control switch configured to close or disconnect the switch according to the signal received by the power-on signal receiving unit, and control whether the indicator light is turned on or off; when the power-on signal receiving unit receives the CF card The electrical signal closes the switch and the control indicator lights. Otherwise, when the power-on signal receiving unit receives the CF card power-off signal, the switch is turned off and the control indicator is turned off.
  • the bus control unit includes:
  • a bus signal receiving unit configured to receive a signal that the IDE bus sent by the bus signal sending unit is connected or disconnected from the CF card interface
  • Bus control switch for connecting or disconnecting the IDE bus to the CF card interface according to the signal received by the bus signal receiving unit.
  • the device may further include:
  • Power-on delay unit used to control the CD1 and CD2 signals, the power control unit controls the continuous time before the CF card is powered on.
  • the embodiment of the invention relates to a method and a device for reducing damage of a CF card, comprising: setting, by a processor unit, a CF card connector to be in a power-off state and determining whether a CD1 signal or a CD2 signal is valid; , The CD2 signal is valid, the processor unit controls the CF card to be powered on; after the CF card is powered on, the processor unit controls the IDE bus to communicate with the CF card interface; thereafter, the processor unit accesses the CF card; if the processor unit stops When the CF card is accessed, the processor unit controls the IDE bus to disconnect from the CF card interface; after the IDE bus is disconnected from the CF card interface, the processor unit controls the CF card to be powered off.
  • the invention is in True lDE

Description

说明书 一种减少 CF卡损坏的方法及装置
[1] 技术领域
[2] 本发明涉及存储卡技术领域, 尤其涉及一种减少 CF卡损坏的方法及装置。
[3] 发明背景
[4] 目前, 各种存储卡广泛的应用于日常生活和工作的各个方面, 其中, CF (Com pact
Flash, 一种釆用紧凑闪存技术的存储设备) 卡是出现吋间较长的存储卡之一。 C F卡具有容量大、 速度较快、 更换方便、 性价比较高的优点, 因而受到广大数码 相机和掌上电脑用户的青睐, 在数据通信领域得到较广泛应用。
[5] 常用的 CF卡支持三种接口模式, 分别为 PC Card Memory
Mode (个人计算机存储模式) , PC Card 10
Mode (个人计算机输入输出模式) , True IDE
Mode (仿真电子集成驱动器模式) 。 其中, 当 CF卡工作于 True IDE
Mode模式吋, 在硬件连接上最简单, 在驱动软件方面可以借用 IDE (电子集成 驱动器) 接口的驱动程序, 因此 True IDE Mode模式是 CF卡最常用的模式。
[6] 图 1为 CF卡工作于 True IDE
Mode模式下与单板常见的电路连接框图。 具体包括: 位于单板上的处理器单元 、 电源以及 CF卡连接器, CF卡通过单板上的 CF卡连接器与单板相连。 所述处理 器单元包括 IDE接口和在位信号判断单元, IDE接口用于与 CF卡进行数据和控制 信息的传输, 在位信号判断单元用于判断 CF卡是否完全与 CF卡连接器接触; 所 述电源将 CF卡连接器插槽上的电源端与处理器单元的电源相连; CF卡连接器设 置了包括电源和地的供电信号线、 用于在单板与 CF卡之间进行数据传输的通用 1/ 0 (输入输出) 信号线、 用于判断 CF卡是否完全插入 CF卡连接器槽位中的在位 检测 CD1信号和 CD2信号。 其中, 供电信号线的管脚最长。
[7] 将 CF卡插入 CF卡连接器的过程中, 因为 CF卡连接器的各个信号线的长短不同
, 所以 CF卡的各个管脚与单板接触的先后顺序不同。 因为供电信号线的管脚最 长, 所以供电信号线最先与 CF卡接触; 其次与 CF卡接触的为通用 I/O信号线; 最 后与 CF卡接触的为判断 CF是否完全插入 CF卡连接器槽位中的在位信号。
[8] 由上述 CF卡与 CF卡连接器的接触过程可知, 因为供电信号线最先与 CF卡接触
, 所以若不对电源进行控制, 会导致 CF卡在插入过程中, CF卡先上电, 但是此 吋 CF卡可能还没有完全插入, 从而可能导致 CF卡损坏; 同样地, 在拔出 CF卡的 过程中, 由于 CD1、 CD2信号先与 CF卡脱离, 供电信号线最后脱离, 可能导致 将不可预知的信息写入 CF卡中, 从而损坏 CF卡。
[9] 因此, 在 True IDE
mode模式下, 目前没有技术方案能防止 CF卡在与 CF卡连接器的接触过程中的损 坏。
[10] 发明内容
[11] 本发明实施例提供一种减少 CF卡损坏的方法及装置, 在 True IDE
mode模式下, 能防止 CF卡在与 CF卡连接器的接触过程中的损坏。
[12] 本发明实施例是通过以下技术方案实现的:
[13] 本发明实施例提供一种减少 CF卡损坏的方法, 所述方法包括:
[14] 处理器单元判断在位检测 CD1信号、 CD2信号是否有效;
[15] 若 CD1、 CD2信号有效, 处理器单元控制 CF卡上电; CF卡为上电状态之后, 处 理器单元控制 IDE总线与 CF卡接口连通; 之后, 处理器单元对 CF卡进行访问。
[16] 本发明实施例提供一种减少 CF卡损坏的方法, 所述方法包括:
[17] 若处理器单元停止对 CF卡的访问, 处理器单元控制 IDE总线与 CF卡接口断开; [18] IDE总线与 CF卡接口断开之后, 处理器单元控制 CF卡断电。
[19] 本发明实施例提供一种减少 CF卡损坏的装置, 所述装置包括处理器单元, 还包 括:
[20] 电源控制单元, 用于接收 CF卡上电的信号并进行 CF卡上电的具体操作;
[21] 总线控制单元, 用于接收 IDE总线与 CF卡接口的连接的信号并在 CF卡上电后进 行 IDE总线与 CF卡接口的连接的具体操作;
[22] 在位信号结果发送单元, 用于在 CD1、 CD2信号均有效情况下, 发送 CD1、 CD
2信号均有效的信息; [23] 控制单元, 用于接收所述在位信号结果发送单元发送的信息, 根据所述信息控 制所述电源控制单元对 CF卡上电之后控制所述总线控制单元进行 IDE总线与 CF 卡接口的连接的操作。
[24] 本发明实施例提供一种减少 CF卡损坏的装置, 所述装置包括处理器单元, 还包 括:
[25] 总线控制单元, 用于接收 IDE总线与 CF卡接口的断开的信号并进行 IDE总线与 C
F卡接口的断开的具体操作;
[26] 电源控制单元, 用于接收 CF卡断电的信号并在 IDE总线与 CF卡接口的断开后进 行 CF卡断电的具体操作;
[27] 控制单元, 用于控制所述总线控制单元执行 IDE总线与 CF卡接口的断开的操作
, 之后控制所述电源控制单元对 CF卡断电的操作。
[28] 由上述本发明实施例提供的技术方案可以看出, 本发明实施例釆用一种减少 CF 卡损坏的方法及装置, 在 True IDE
mode模式下, 能够防止 CF卡的损坏, 从而增加 CF卡的可靠性, 延长 CF卡的寿命 , 节约了成本。
[29] 附图简要说明
[30] 图 1为现有技术中 CF卡工作于 True IDE
Mode模式下与单板常见的电路连接框图;
[31] 图 2为本发明实施例涉及的 CF卡插入和拔出的操作流程图;
[32] 图 3为本发明实施例涉及的 CF卡与单板的硬件信号连接示意图;
[33] 图 4为本发明实施例涉及的装置的具体实现示意图。
[34] 实施本发明的方式
[35] 本发明实施例的一个方法的具体实现示意图如图 2所示, 图 2为 CF卡插入和拔出 的操作流程图, 具体包括:
[36] S20: 在插入 CF卡之前, 处理器单元将 CF卡连接器插槽的电源端设置为断电状 态; 即若 CF卡连接器插槽的电源端为上电状态, 则需要在插入 CF卡之前, 将 CF 卡连接器插槽的电源端设置为断电状态; 可以理解的是, 若 CF卡连接器插槽的 电源端为断电状态, 则不需要进行任何设置; 具体的设置 CF卡连接器插槽的电 源端为断电状态的方法可以为: 将 CF卡连接器插槽的电源端与单板的电源端断 开;
[37] S21 : 在插入 CF卡之后, 判断 CF卡连接器上的 CD1、 CD2信号是否同吋有效; 在本实施例中判断的具体方式可以为: 若 CD1、 CD2信号同吋为低电平, 则 CD1 、 CD2信号同吋有效; 若 CD1、 CD2信号有一个是高电平或同吋为高电平, 则表 示 CF卡不在位, 此吋不进行任何操作; 若 CD1、 CD2信号同吋有效, 则表示 CF 卡在位, 此吋表明 CF卡已经完全插入 CF卡连接器插座, 执行 S22;
[38] S22: 处理器单元在延长一段吋间后, 比如延吋 Is后, 处理器单元控制 CF卡上 电; CF卡为上电状态之后, 处理器单元控制 IDE总线与 CF卡接口连通; 具体可 以为: 处理器单元向 CF卡电源控制开关发送上电信号, CF卡电源控制开关收到 所述信号之后, CF卡电源控制开关闭合, 指示装置指示 CF卡处于上电状态, 在 本实施例中为 LED (发光二极管) 指示灯点亮; 之后, 处理器单元向总线控制开 关发送连通信号, 总线控制开关收到所述信号之后, 总线控制开关闭合, 即, 使 IDE接口总线处于使能状态; LED指示灯处于点亮状态, 禁止将 CF卡从 CF卡 连接器中拔出;
[39] S23: 处理器单元对 CF卡进行初始化, 并对 CF卡进行访问; 此吋 LED灯一直处 于点亮状态, 此吋禁止拔出 CF卡;
[40] S24: 若处理器单元需要继续访问 CF卡, 则执行 S23中处理器单元对 CF卡的访 问过程, 此吋 LED指示灯一直处于点亮状态, 此吋禁止拔出 CF卡; 若处理器单 元不需要继续访问 CF卡, 则执行 S25;
[41] S25: 处理器单元控制 IDE总线与 CF卡接口断开; IDE总线与 CF卡接口断开之 后, 处理器单元控制 CF卡断电; 具体可以为: 处理器单元向总线控制开关发送 断开信号, 总线控制开关收到所述信号之后, 总线控制开关断开, 即, 使 IDE接 口总线处于高阻状态; 之后, 处理器单元向 CF卡电源控制开关发送断电信号, C F卡电源控制开关收到所述信号之后, CF卡电源控制开关断开, 同吋熄灭单板上 的 LED指示灯; LED指示灯熄灭之后, 可以将 CF卡从 CF卡连接器插座中拔出。
[42] 图 3为本发明实施例涉及的 CF卡与单板的硬件连接示意图, 具体包括:
[43] 处理器单元、 电源控制单元、 总线控制单元, 以及设置于所述处理器单元中的 在位信号结果发送单元和控制单元, 其中:
[44] 电源控制单元, 用于接收 CF卡上电或断电的信号并进行 CF卡上电或断电的具 体操作; 在接收到 CF卡上电信号后进行 CF卡上电操作; 在接收到 CF卡断电信号
, 且 IDE总线与 CF卡已经断开后执行 CF卡断电操作。
[45] 总线控制单元, 用于接收 IDE总线与 CF卡接口的连接或断开的信号并进行 IDE 总线与 CF卡接口的连接或断开的具体操作; 当接收到 IDE总线与 CF卡接口连接 信号, 贝 I」在 CF卡上电后控制 IDE总线与 CF卡接口的连接, 若接收到 IDE总线与 C
F卡接口断开信号, 则控制 IDE总线与 CF卡接口的断开。
[46] 在位信号结果发送单元, 若在位信号判断单元的判断结果为 CD1、 CD2信号均 有效, 则用于向控制单元发送 CD1、 CD2信号均有效的信息;
[47] 控制单元, 接收到在位信号结果发送单元发送的信息之后, 用于控制电源控制 单元将 CF卡上电, 之后控制总线控制单元将 IDE总线与 CF卡接口连通; 若处理 器单元停止对 CF卡的访问, 用于控制总线控制单元将 IDE总线与 CF卡接口断开
, 之后控制电源控制单元将 CF卡断电。
[48] 图 4为本发明实施例涉及的装置的具体实现示意图, 包括图 3所述的电源控制单 元、 总线控制单元, 以及设置于所述处理器单元中的在位信号结果发送单元和 控制单元, 其中:
[49] 所述控制单元包括:
[50] 总线判断单元, 用于判断 IDE总线与 CF卡接口是否断开; 当 IDE总线与 CF卡接 口断开后, 向上电信号发送单元发送判断结果;
[51] 上电信号发送单元, 用于在接收到在位信号结果发送单元发送的信息或总线判 断单元发送的判断结果之后, 向电源控制单元发送 CF卡上电或断电的信号; 当 在位信号结果发送单元判断结果为 CD1、 CD2信号均有效, 则上电信号发送单元 向电源控制单元发送 CF卡上电信号; 当总线判断单元发送的判断结果为 IDE总线 与 CF卡接口断开, 则上电信号发送单元向电源控制单元发送 CF卡断电信号。
[52] 上电判断单元, 用于判断 CF卡是否上电完成; 当 CF卡上电完成后, 向总线信 号发送单元发送判断结果; 也就是说, 只有在上电完成后才发送判断结果, 在 未完成上电的情况下不发送任何信号。 [53] 总线信号发送单元, 用于在接收到上电判断单元发送的判断结果为 CF卡上电完 成, 向总线控制单元发送 IDE总线与 CF卡接口连接信号, 或处理器单元停止对 C F卡的访问之后, 向总线控制单元发送 IDE总线与 CF卡接口断开的信号。
[54] 在本发明实施例的具体实现中, 所述装置还包括:
[55] 指示单元, 用于在所述电源控制单元的控制下, 指示 CF卡的上电或断电状态; 在本发明实施例中, 指示单元可以为各种类型的指示灯, 例如 LED指示灯; LED 指示灯在所述电源控制单元的控制下, 点亮或熄灭, 向操作者指示 CF卡处于上 电或断电状态, 以决定此吋是否能够拔出 CF卡; 若 LED指示灯一直处于点亮状 态, 即 CF卡处于上电状态, 则不能拔出 CF卡; 在 LED指示灯处于熄灭状态, 即 CF卡处于断电状态, 此吋可以将 CF卡拔出。
[56] 在本发明实施例的具体实现中, 所述电源控制单元包括:
[57] 上电信号接收单元, 用于接收上电信号发送单元发送的 CF卡上电或断电的信号
[58] 电源控制开关, 用于根据上电信号接收单元接收到的信号, 将开关闭合或断开 , 并控制指示灯的点亮或熄灭; 当所述上电信号接收单元接收到 CF卡上电信号 , 则将开关闭合, 控制指示灯点亮, 否则当所述上电信号接收单元接收到 CF卡 断电信号, 则将开关断开, 控制指示灯熄灭。
[59] 在本发明实施例的具体实现中, 所述总线控制单元包括:
[60] 总线信号接收单元, 用于接收总线信号发送单元发送的 IDE总线与 CF卡接口连 接或断开的信号;
[61] 总线控制开关, 用于根据总线信号接收单元接收到的信号, 将 IDE总线与 CF卡 接口连通或断开。
[62] 若需要在 CD1、 CD2信号有效之后, CF卡上电之前持续一段吋间, 则所述装置 还可以包括:
[63] 上电延吋单元, 用于控制 CD1、 CD2信号有效之后, 电源控制单元控制 CF卡上 电之前的持续吋间。
[64] 综上所述, 本发明实施例涉及一种减少 CF卡损坏的方法及装置, 包括: 处理器 单元设置 CF卡连接器为断电状态并判断 CD1信号、 CD2信号是否有效; 若 CD1、 CD2信号有效, 处理器单元控制 CF卡上电; CF卡为上电状态之后, 处理器单元 控制 IDE总线与 CF卡接口连通; 之后, 处理器单元对 CF卡进行访问; 若处理器 单元停止对 CF卡的访问, 处理器单元控制 IDE总线与 CF卡接口断开; IDE总线与 CF卡接口断开之后, 处理器单元控制 CF卡断电。 本发明在 True lDE
mode模式下, 能够防止 CF卡的损坏, 从而增加 CF卡的可靠性, 延长 CF卡的寿命 , 节约了成本。
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围 应该以权利要求书的保护范围为准。

Claims

权利要求书
[1] 1、 一种减少 CF卡损坏的方法, 其特征在于, 所述方法包括:
处理器单元判断在位检测 CD1信号、 CD2信号是否有效;
若 CD1、 CD2信号有效, 处理器单元控制 CF卡上电; CF卡为上电状态之后 , 处理器单元控制 IDE总线与 CF卡接口连通; 之后, 处理器单元对 CF卡进 行访问。
[2] 2、 如权利要求 1所述的方法, 其特征在于, 在所述方法之前还包括: 处理器单元设置 CF卡连接器为断电状态。
[3] 3、 如权利要求 1所述的方法, 其特征在于, 在所述处理器单元控制 CF卡上 电之前, 所述方法包括:
若 CD1、 CD2信号有效, 处理器单元在延长一段吋间后, 控制 CF卡上电。
[4] 4、 如权利要求 1或 3所述的方法, 其特征在于, 所述处理器单元控制 CF卡 上电的方法具体包括:
处理器单元向 CF卡电源控制开关发送上电信号; CF卡电源控制开关收到所 述信号之后, CF卡电源控制开关闭合。
[5] 5、 如权利要求 1所述的方法, 其特征在于, 所述处理器单元控制 IDE总线 与 CF卡接口连通的方法具体包括:
处理器单元向总线控制开关发送连通信号; 总线控制开关收到所述信号之 后, 总线控制开关闭合。
[6] 6、 如权利要求 1所述的方法, 其特征在于, 所述方法还包括:
若处理器单元停止对 CF卡的访问, 处理器单元控制 IDE总线与 CF卡接口断 开;
IDE总线与 CF卡接口断开之后, 处理器单元控制 CF卡断电。
[7] 7、 一种减少 CF卡损坏的方法, 其特征在于, 所述方法包括:
若处理器单元停止对 CF卡的访问, 处理器单元控制 IDE总线与 CF卡接口断 开;
IDE总线与 CF卡接口断开之后, 处理器单元控制 CF卡断电。
[8] 8、 如权利要求 7所述的方法, 其特征在于, 所述处理器单元控制 IDE总线 与 CF卡接口断开的方法具体包括:
处理器单元向总线控制开关发送断开信号; 总线控制开关收到所述信号之 后, 总线控制开关断开。
[9] 9、 如权利要求 7或 8所述的方法, 其特征在于, 所述处理器单元控制 CF卡 断电的方法具体包括:
处理器单元向 CF卡电源控制开关发送断电信号; CF卡电源控制开关收到所 述信号之后, CF卡电源控制开关断开。
[10] 10、 一种减少 CF卡损坏的装置, 所述装置包括处理器单元, 其特征在于, 还包括:
电源控制单元, 用于接收 CF卡上电的信号并进行 CF卡上电的具体操作; 总线控制单元, 用于接收 IDE总线与 CF卡接口的连接的信号并在 CF卡上电 后进行 IDE总线与 CF卡接口的连接的具体操作;
在位信号结果发送单元, 用于在 CD1、 CD2信号均有效情况下, 发送 CD1 、 CD2信号均有效的信息;
控制单元, 用于接收所述在位信号结果发送单元发送的信息, 根据所述信 息控制所述电源控制单元对 CF卡上电之后控制所述总线控制单元进行 IDE 总线与 CF卡接口的连接的操作。
[11] 11、 如权利要求 10所述的装置, 其特征在于, 所述控制单元包括:
上电信号发送单元, 用于在接收到在位信号结果发送单元发送的信息之后 , 向电源控制单元发送 CF卡上电的信号;
上电判断单元, 用于判断 CF卡是否上电完成; 当 CF卡上电完成后, 向总线 信号发送单元发送判断结果;
总线信号发送单元, 用于在接收到上电判断单元发送的判断结果之后, 向 总线控制单元发送 IDE总线与 CF卡接口连接的信号。
[12] 12、 如权利要求 10所述的装置, 其特征在于,
所述电源控制单元包括:
上电信号接收单元, 用于接收上电信号发送单元发送的 CF卡上电的信号; 电源控制开关, 用于根据上电信号接收单元接收到的信号, 将开关闭合。
[13] 13、 如权利要求 10所述的装置, 其特征在于,
所述总线控制单元包括:
总线信号接收单元, 用于接收总线信号发送单元发送的 IDE总线与 CF卡接 口连接的信号;
总线控制开关, 用于根据总线信号接收单元接收到的信号, 将 IDE总线与 C F卡接口连通。
[14] 14、 如权利要求 10至 13任一项所述的装置, 其特征在于, 所述装置还包括 指示单元, 与电源控制单元相连, 用于在所述电源控制单元的控制下, 指 示 CF卡的上电状态。
[15] 15、 如权利要求 10至 13任一项所述的装置, 其特征在于, 所述装置还包括 上电延吋单元, 与电源控制单元相连, 用于控制 CD1、 CD2信号有效之后 , 电源控制单元控制 CF卡上电之前的持续吋间。
[16] 16、 一种减少 CF卡损坏的装置, 所述装置包括处理器单元, 其特征在于, 还包括:
总线控制单元, 用于接收 IDE总线与 CF卡接口的断开的信号并进行 IDE总线 与 CF卡接口的断开的具体操作;
电源控制单元, 用于接收 CF卡断电的信号并在 IDE总线与 CF卡接口的断开 后进行 CF卡断电的具体操作;
控制单元, 用于控制所述总线控制单元执行 IDE总线与 CF卡接口的断开的 操作, 之后控制所述电源控制单元对 CF卡断电的操作。
[17] 17、 如权利要求 16所述的装置, 其特征在于, 所述控制单元包括:
总线判断单元, 用于判断 IDE总线与 CF卡接口是否断开; 当 IDE总线与 CF 卡接口断开后, 向上电信号发送单元发送判断结果;
上电信号发送单元, 用于在接收到总线判断单元发送的判断结果之后, 向 电源控制单元发送断电的信号;
总线信号发送单元, 用于在处理器单元停止对 CF卡的访问之后, 向总线控 制单元发送 IDE总线与 CF卡接口断开的信号。
[18] 18、 如权利要求 16所述的装置, 其特征在于,
所述电源控制单元包括:
上电信号接收单元, 用于接收上电信号发送单元发送的 CF卡断电的信号; 电源控制开关, 用于根据上电信号接收单元接收到的信号, 将开关断开。
[19] 19、 如权利要求 16所述的装置, 其特征在于,
所述总线控制单元包括:
总线信号接收单元, 用于接收总线信号发送单元发送的 IDE总线与 CF卡接 口断开的信号;
总线控制开关, 用于根据总线信号接收单元接收到的信号, 将 IDE总线与 C F卡接口断开。
[20] 20、 如权利要求 16至 19任一项所述的装置, 其特征在于, 所述装置还包括 指示单元, 与电源控制单元相连, 用于在所述电源控制单元的控制下, 指 示 CF卡的断电状态。
PCT/CN2007/071140 2006-12-14 2007-11-28 Procédé et dispositif de prévention d'endommagement de carte compact flash (cf) WO2008071113A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2006101658697A CN101201888B (zh) 2006-12-14 2006-12-14 一种减少cf卡损坏的方法及装置
CN200610165869.7 2006-12-14

Publications (1)

Publication Number Publication Date
WO2008071113A1 true WO2008071113A1 (fr) 2008-06-19

Family

ID=39511269

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/071140 WO2008071113A1 (fr) 2006-12-14 2007-11-28 Procédé et dispositif de prévention d'endommagement de carte compact flash (cf)

Country Status (2)

Country Link
CN (1) CN101201888B (zh)
WO (1) WO2008071113A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867488A (zh) * 2010-06-11 2010-10-20 中兴通讯股份有限公司 一种单板在位信息监测和记录装置和方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530265B (zh) * 2013-10-24 2016-06-01 烽火通信科技股份有限公司 实现电子设备的cf卡安全热插拔的装置及方法
CN106098092A (zh) * 2016-06-21 2016-11-09 浙江众合科技股份有限公司 实现存储卡写保护和复位的电路
CN207529373U (zh) * 2017-10-13 2018-06-22 华为技术有限公司 连接器、NVMe存储设备及计算机设备

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1456957A (zh) * 2002-05-10 2003-11-19 联想(北京)有限公司 支持热插拔和即插即用存储卡的ide硬盘接口装置
US20060075174A1 (en) * 2004-10-06 2006-04-06 Mr. Cory Vuong Vuong Method and aparatus for plug-and-play webserver

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1456957A (zh) * 2002-05-10 2003-11-19 联想(北京)有限公司 支持热插拔和即插即用存储卡的ide硬盘接口装置
US20060075174A1 (en) * 2004-10-06 2006-04-06 Mr. Cory Vuong Vuong Method and aparatus for plug-and-play webserver

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867488A (zh) * 2010-06-11 2010-10-20 中兴通讯股份有限公司 一种单板在位信息监测和记录装置和方法
CN101867488B (zh) * 2010-06-11 2015-04-01 中兴通讯股份有限公司 一种单板在位信息监测和记录装置和方法

Also Published As

Publication number Publication date
CN101201888B (zh) 2010-09-15
CN101201888A (zh) 2008-06-18

Similar Documents

Publication Publication Date Title
JP4416715B2 (ja) ネットワークインタフェース電源管理のシステムおよび方法
US20120290761A1 (en) USB Converter and Related Method
JP3810368B2 (ja) 内部usbハブを有するシステムで電力を管理する方法およびシステム
US20140103721A1 (en) Computer Host Power Management System having Extension Cord Sockets
CN101765850B (zh) 存储卡控制设备和用来控制存储卡控制设备的方法
CN112951315A (zh) 一种兼容nvme\ahci双协议硬盘测试装置及方法
WO2008071113A1 (fr) Procédé et dispositif de prévention d'endommagement de carte compact flash (cf)
JP2001067156A5 (ja) コンピュータ周辺機器及びその制御方法、撮像装置及びその制御方法並びにコンピュータ可読記憶媒体
KR20060090283A (ko) 직렬 데이터 통신 인터페이스
CN108874700A (zh) 电子设备
TWI754183B (zh) 硬碟背板管理裝置
JP2001067156A (ja) コンピュータ周辺機器及びその制御方法、撮像装置並びに記憶媒体
US20010041587A1 (en) Apparatus and method for controlling data transfer transmitted via radio communication applicable to electronic equipment and electronic equipment communication system
JP3063838U (ja) 自動省電睡眠機能を具えたpcカ―ド
CN111143898B (zh) 可插拔存储器装置数据保护方法
CN114860520B (zh) 一种usb从设备拔出检测电路
CN114661646A (zh) 串口转接控制电路
JP2000099215A (ja) Pcカードのインタフェース
JP2001067157A5 (ja) コンピュータとその周辺機器のシステム、コンピュータ周辺機器、コンピュータ及びその制御方法並びにコンピュータ可読記憶媒体
TWI484348B (zh) 資料傳輸控制器、系統及方法
CN111414067B (zh) 一种电脑开机方法
CN218242499U (zh) 连接装置及电子设备
TWI771828B (zh) 重置方法、重置裝置及智能網卡
TWI810837B (zh) 手持式裝置的非接觸式連結介面及其運作方法
TWI829240B (zh) 電子裝置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07817330

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07817330

Country of ref document: EP

Kind code of ref document: A1