CN106445844A - Data protection method and device for expansion card - Google Patents

Data protection method and device for expansion card Download PDF

Info

Publication number
CN106445844A
CN106445844A CN201611055604.1A CN201611055604A CN106445844A CN 106445844 A CN106445844 A CN 106445844A CN 201611055604 A CN201611055604 A CN 201611055604A CN 106445844 A CN106445844 A CN 106445844A
Authority
CN
China
Prior art keywords
data
draw
expansion card
groove
signal processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611055604.1A
Other languages
Chinese (zh)
Other versions
CN106445844B (en
Inventor
戎海峰
林华土
韩财学
董利华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Yuanfeng Automotive Electronic Co ltd
Original Assignee
DONGGUAN YF TECHNOLOGY Co Ltd
Guangdong Yuan Feng Automotive Electronics Co Ltd
GUANGDONG YUANFENG ELECTRONIC TECHNOLOGY 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 DONGGUAN YF TECHNOLOGY Co Ltd, Guangdong Yuan Feng Automotive Electronics Co Ltd, GUANGDONG YUANFENG ELECTRONIC TECHNOLOGY Co Ltd filed Critical DONGGUAN YF TECHNOLOGY Co Ltd
Priority to CN201611055604.1A priority Critical patent/CN106445844B/en
Publication of CN106445844A publication Critical patent/CN106445844A/en
Application granted granted Critical
Publication of CN106445844B publication Critical patent/CN106445844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • G06F21/79Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories

Landscapes

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

Abstract

The invention discloses a data protection method and device for an expansion card. The data protection method comprises the steps that in an equipment work state, a card slot opening signal is received; data cache is stopped; cached data is written in the storage space of the expansion card; a power-off instruction is sent to power off an equipment power source. In the equipment work state, the card slot opening signal can be triggered when a user opens a card slot, equipment makes response to the signal, data cache is stopped, the cached data is written in the storage space of the expansion card, and the power-off instruction is sent to power off the equipment power source. Before the user takes out the expansion card, it is guaranteed that the cached data is correctly written in the expansion card, the equipment is powered off, and data damage and loss caused by card taking are avoided.

Description

A kind of data guard method of expansion card and device
Technical field
The present invention relates to electronic equipment expansion card technical field, more particularly, to a kind of data guard method of expansion card and dress Put.
Background technology
At present, the hot plug of expansion card all supported by most electronic equipment, inserts or pull out expansion in the energized state Zhan Ka;For the electronic equipment not supporting hot plug, if inserting or pull out expansion card in the energized state it is more likely that can damage Hardware device.In the principle of storage, because there is direct relation in the life-span of expansion card with read-write number of times, it is all first to cache After certain data volume, property is written in card and forms file again, such as caches 5 seconds, 10 seconds or 5M, 10M and writes once. If extracting expansion card during caching, the loss of data caching, current file corruption can be led to it is impossible on an electronic device just Often check.At some in particular cases, the audio-video document as drive recorder or monitoring device is highly important, and data is lost File corruption of becoming estranged can bring great loss to user.
Content of the invention
It is an object of the invention to proposing a kind of data guard method of expansion card and device, ensure that from electronic equipment Before taking out expansion card, buffered data is correctly written in expansion card, will not cause damage and the loss of data because of card taking.
For reaching this purpose, the present invention employs the following technical solutions:
On the one hand, the present invention provides a kind of data guard method of expansion card, including:
Under equipment working state, receive draw-in groove open signal;
Stop data buffer storage;
The data of caching is write the memory space of expansion card;
Send shutdown command pass hull closure power supply.
Further, described data guard method also includes:
Under equipment off-mode,
If device power receives start-up command, whether test card slot is opening;
It is that then refusal executes described start-up command, pass hull closure power supply.
Further, before receiving draw-in groove open signal, also include:
Draw-in groove is opened triggering controlling switch and is sent draw-in groove open signal;
Described controlling switch is toggle switch or inductive switch.
On the other hand, the present invention provides a kind of data protecting device of expansion card, for executing above-mentioned data guard method, Including:Signal acquisition circuit, signal processing circuit and logic control circuit;
Described signal acquisition circuit is used for draw-in groove is detected when being unlocked, and sends draw-in groove open signal and notifies at described signal Reason circuit;
After described signal processing circuit is used for receiving described draw-in groove open signal, export corresponding control instruction to described Logic control circuit;
Described logic control circuit is used for, according to described control instruction, stopping data buffer storage, by the data write of caching The memory space of expansion card, and send shutdown command pass hull closure power supply.
Wherein, described signal acquisition circuit includes toggle switch;
When draw-in groove is unlocked, described toggle switch is pressed in linkage;
Accordingly, described signal acquisition circuit is used for detecting whether described toggle switch is pressed, and if so, sends draw-in groove and opens Open signal processing circuit described in signalisation.
Or, described signal acquisition circuit includes inductive switch;
Whether described inductive switch sensing draw-in groove is unlocked, and if so, sends draw-in groove open signal and notifies described signal processing Circuit.
Wherein, described signal processing circuit includes microcontroller;Described logic control circuit includes SOC(system on a chip).
Beneficial effects of the present invention are:
Under equipment working state, user opens draw-in groove and can trigger draw-in groove open signal, and equipment responds this signal, stops data Caching, the data of caching is write the memory space of expansion card, and sends shutdown command pass hull closure power supply.Take out in user It is ensured that the data of caching has been correctly written in expansion card before expansion card, equipment shuts down, and will not cause the damage of data because of card taking And loss.
Brief description
Fig. 1 is the flow chart of the data guard method of expansion card that the embodiment of the present invention one provides.
Fig. 2 is the structural representation of the data protecting device of expansion card that the embodiment of the present invention two provides.
Fig. 3 is the schematic diagram of the signal acquisition circuit that the embodiment of the present invention two provides.
Specific embodiment
For make present invention solves the technical problem that, the technical scheme that adopts and the technique effect that reaches clearer, below By combine accompanying drawing the technical scheme of the embodiment of the present invention is described in further detail it is clear that described embodiment only It is a part of embodiment of the present invention, rather than whole embodiments.
Embodiment one
The present embodiment provides a kind of data guard method of expansion card it is adaptable to the various electronic equipment with expansion card, uses When ensureing that user extracts expansion card, data and file will not be lost or damage.Described data guard method is by a kind of expansion card Executing, this device is made up of data protecting device software and/or hardware, is typically integrated on electronic equipment.
Fig. 1 is the flow chart of the data guard method of expansion card that the embodiment of the present invention one provides.As shown in figure 1, it is described Data guard method comprises the steps:
S11, under equipment working state, receives draw-in groove open signal.
Draw-in groove is opened triggering controlling switch and is sent draw-in groove open signal;Described controlling switch is toggle switch or sensing is opened Close.When the groove lid of draw-in groove is opened, toggle switch is pressed in linkage, or inductive switch senses that groove lid is opened, and triggering draw-in groove opens letter Number.
S12, stops data buffer storage.
User uses electronic equipment recording, video recording, editor's document etc., and the data of input is buffered on internal memory (RAM) first, After caching certain time or data length, then write preservation in expansion card.After equipment receives draw-in groove open signal, inwardly stop Deposit the new data of write.
S13, the data of caching is write the memory space of expansion card.
The data being buffered in internal memory is write in expansion card and preserves.
S14, sends shutdown command pass hull closure power supply.
After completing the write of data, sending instruction makes equipment shut down.
Further, described data guard method also includes:
Under equipment off-mode, if device power receives start-up command, whether test card slot is opening;It is then Refusal executes described start-up command, pass hull closure power supply.That is, under draw-in groove opening, toggle switch is in the state pressed, sense Also can sense whether groove lid opens after electricity on inductive switch, when to judge draw-in groove be opening, forbid starting shooting.
In the present embodiment, open the groove lid Trig control signal of draw-in groove by user, instruction equipment carries out data preservation, Complete the write of data when groove lid fully opens and equipment has shut down it is ensured that when user takes out expansion card, preserving in expansion card File will not damage, on equipment caching data will not lose.Meanwhile, when draw-in groove is not turned off, equipment can not be started shooting it is ensured that expanding Exhibition card and equipment will not damage because of plug-in card.
Embodiment two
The present embodiment provides a kind of data protecting device of expansion card, for executing the data protection described in above-described embodiment Method.Fig. 2 is the structural representation of the data protecting device of expansion card that the embodiment of the present invention two provides.As shown in Fig. 2 it is described Data protecting device includes:Signal acquisition circuit 21, signal processing circuit 22 and logic control circuit 23.
Described signal acquisition circuit 21 is used for draw-in groove is detected when being unlocked, and sends draw-in groove open signal and notifies described signal Process circuit 22.
Fig. 3 is the schematic diagram of the signal acquisition circuit that the embodiment of the present invention two provides.As shown in figure 3, described signals collecting Circuit 21 includes toggle switch 211;Described toggle switch 211 is in parallel with commutation diode ZD, electric capacity C, toggle switch 211 defeated Go out end to be connected with the negative pole of commutation diode ZD.When draw-in groove is unlocked, described toggle switch 211 is pressed in linkage;Accordingly, described Signal acquisition circuit 21 is used for detecting whether described toggle switch 211 is pressed, and if so, sends draw-in groove open signal PUSH_KEY Notify described signal processing circuit 22.
Or, described signal acquisition circuit 21 includes inductive switch;Whether described inductive switch sensing draw-in groove is unlocked, if It is to send draw-in groove open signal and notify described signal processing circuit 22.
After described signal processing circuit 22 is used for receiving described draw-in groove open signal, export corresponding control instruction to institute State logic control circuit 23.Described signal processing circuit 22 includes microcontroller (MCU), MCU can according to the content of input signal, Export corresponding control signal be given to circuit downstream go execute.
Described logic control circuit 23 is used for, according to described control instruction, stopping data buffer storage, the data of caching being write Enter the memory space of expansion card, and send shutdown command pass hull closure power supply.Described logic control circuit 23 includes SOC(system on a chip) (SoC:System on a chip), a SOC integrated complete system on a single chip, can be executed according to control instruction Corresponding operation.
In the present embodiment, open the operation triggering command of draw-in groove by user, the data of instruction equipment write caching is simultaneously Shutdown, before user fully opens the groove lid of draw-in groove, completes the preservation of data, can effectively prevent loss and the file of data Damage.
Describe the know-why of the present invention above in association with specific embodiment.These descriptions are intended merely to explain the present invention's Principle, and limiting the scope of the invention can not be construed to by any way.Based on explanation herein, the technology of this area Personnel do not need to pay other specific embodiments that performing creative labour can associate the present invention, and these modes fall within Within protection scope of the present invention.

Claims (7)

1. a kind of data guard method of expansion card is it is characterised in that include:
Under equipment working state, receive draw-in groove open signal;
Stop data buffer storage;
The data of caching is write the memory space of expansion card;
Send shutdown command pass hull closure power supply.
2. the data guard method of expansion card according to claim 1 is it is characterised in that also include:
Under equipment off-mode,
If device power receives start-up command, whether test card slot is opening;
It is that then refusal executes described start-up command, pass hull closure power supply.
3. expansion card according to claim 1 data guard method it is characterised in that receive draw-in groove open signal it Before, also include:
Draw-in groove is opened triggering controlling switch and is sent draw-in groove open signal;
Described controlling switch is toggle switch or inductive switch.
4. a kind of data protecting device of expansion card is it is characterised in that require the number described in 1 to 3 any one for perform claim According to guard method, including:Signal acquisition circuit, signal processing circuit and logic control circuit;
Described signal acquisition circuit is used for draw-in groove is detected when being unlocked, and sends draw-in groove open signal and notifies described signal processing electricity Road;
After described signal processing circuit is used for receiving described draw-in groove open signal, export corresponding control instruction to described logic Control circuit;
Described logic control circuit is used for, according to described control instruction, stopping data buffer storage, by the data write extension of caching The memory space of card, and send shutdown command pass hull closure power supply.
5. expansion card according to claim 4 data protecting device it is characterised in that:Described signal acquisition circuit includes Toggle switch;
When draw-in groove is unlocked, described toggle switch is pressed in linkage;
Accordingly, described signal acquisition circuit is used for detecting whether described toggle switch is pressed, and if so, sends draw-in groove and opens letter Number notify described signal processing circuit.
6. expansion card according to claim 4 data protecting device it is characterised in that:Described signal acquisition circuit includes Inductive switch;
Whether described inductive switch sensing draw-in groove is unlocked, and if so, sends draw-in groove open signal and notifies described signal processing circuit.
7. expansion card according to claim 4 data protecting device it is characterised in that:
Described signal processing circuit includes microcontroller;
Described logic control circuit includes SOC(system on a chip).
CN201611055604.1A 2016-11-25 2016-11-25 Data protection method and device for expansion card Active CN106445844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611055604.1A CN106445844B (en) 2016-11-25 2016-11-25 Data protection method and device for expansion card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611055604.1A CN106445844B (en) 2016-11-25 2016-11-25 Data protection method and device for expansion card

Publications (2)

Publication Number Publication Date
CN106445844A true CN106445844A (en) 2017-02-22
CN106445844B CN106445844B (en) 2024-03-22

Family

ID=58218867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611055604.1A Active CN106445844B (en) 2016-11-25 2016-11-25 Data protection method and device for expansion card

Country Status (1)

Country Link
CN (1) CN106445844B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844721A (en) * 2017-10-30 2018-03-27 深圳市麦道微电子技术有限公司 One kind prevents data card from missing plug-in system in drive recorder

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002032326A (en) * 2000-07-19 2002-01-31 Nec Kofu Ltd Extended slot hot plug controller
CN101377761A (en) * 2007-08-30 2009-03-04 联想(北京)有限公司 Apparatus and method for removing hot-plug equipment
CN101458672A (en) * 2007-12-10 2009-06-17 联想(北京)有限公司 Hot plug equipment, computer and data-transmission indicating method
CN101604547A (en) * 2009-07-07 2009-12-16 中兴通讯股份有限公司 A kind of disk array hot-swap data Write-protect system and method
CN103257906A (en) * 2012-02-21 2013-08-21 宇龙计算机通信科技(深圳)有限公司 Storage card hot plug control method and device
CN103744807A (en) * 2013-12-04 2014-04-23 西安诺瓦电子科技有限公司 Memory card access control system based on programmable logic device
CN206411659U (en) * 2016-11-25 2017-08-15 广东远峰电子科技股份有限公司 A kind of data protecting device of expansion card

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002032326A (en) * 2000-07-19 2002-01-31 Nec Kofu Ltd Extended slot hot plug controller
CN101377761A (en) * 2007-08-30 2009-03-04 联想(北京)有限公司 Apparatus and method for removing hot-plug equipment
CN101458672A (en) * 2007-12-10 2009-06-17 联想(北京)有限公司 Hot plug equipment, computer and data-transmission indicating method
CN101604547A (en) * 2009-07-07 2009-12-16 中兴通讯股份有限公司 A kind of disk array hot-swap data Write-protect system and method
CN103257906A (en) * 2012-02-21 2013-08-21 宇龙计算机通信科技(深圳)有限公司 Storage card hot plug control method and device
CN103744807A (en) * 2013-12-04 2014-04-23 西安诺瓦电子科技有限公司 Memory card access control system based on programmable logic device
CN206411659U (en) * 2016-11-25 2017-08-15 广东远峰电子科技股份有限公司 A kind of data protecting device of expansion card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844721A (en) * 2017-10-30 2018-03-27 深圳市麦道微电子技术有限公司 One kind prevents data card from missing plug-in system in drive recorder

Also Published As

Publication number Publication date
CN106445844B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN104881375B (en) Storage system power-down data protection method and apparatus
CN101017451A (en) Method and system for controlling insertion and extraction of USB on television
CN105511978B (en) A kind of recording equipment file system power-off protection method and system
CN202771443U (en) Face identification equipment possessing selective opening function
CN108106291A (en) The control method and control device of start/stop of compressor in Parallel sets
CN104272326A (en) Card burning preventing detecting device, terminal equipment, and card burning detecting and processing method
CN105739657A (en) Circuit structure applied to embedded system
CN106776209A (en) The temperature monitoring method and system of a kind of smart machine
CN106445844A (en) Data protection method and device for expansion card
CN206411659U (en) A kind of data protecting device of expansion card
CN106204805A (en) A kind of drive recorder and parking based on drive recorder monitoring method, system
CN203433025U (en) Intelligent monitor for electricity larceny prevention
CN108737786A (en) A kind of intelligent monitor system
CN105472459A (en) Automatic optimization system and method of intelligent television system
CN206193868U (en) Prevent vehicle -mounted electronic label of cheating
CN209258041U (en) A kind of power-off protecting circuit for mobile unit, apparatus and system
CN204928095U (en) Protection circuit of intelligence power module
CN201620658U (en) Fingerprint control device
CN107728510A (en) A kind of anti-disassembling mechanism suitable for portable set
CN204331868U (en) Intelligent key cabinet
CN104469614B (en) A kind of power amplifier failure self-repairing circuit and its implementation
CN110782573A (en) Access control method, device and equipment
CN105607929B (en) The system and method for burning is carried out to the EC in computer equipment
CN212168498U (en) Identity card monitoring and selling machine
CN1282911A (en) Method for suspending state of computer system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170823

Address after: 523808, building 1, 2 and 4, building A, 18 industrial East Road, Songshan hi tech Industrial Development Zone, Guangdong, Dongguan

Applicant after: GUANGDONG YUANFENG AUTOMOTIVE ELECTRONIC Co.,Ltd.

Address before: 523808, No. 18, industrial East Road, Songshan hi tech Industrial Development Zone, Guangdong, Dongguan

Applicant before: GUANGDONG YUANFENG ELECTRONIC TECHNOLOGY Co.,Ltd.

Applicant before: DONGGUAN YUANFENG TECHNOLOGY Co.,Ltd.

Applicant before: GUANGDONG YUANFENG AUTOMOTIVE ELECTRONIC Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: China

Address after: No.18, Industrial Road East, Songshanhu Park, Dongguan City, Guangdong Province

Applicant after: Yuanfeng Technology Co.,Ltd.

Address before: 523808 1st, 2nd and 4th floors, building a, No.18, Gongye East Road, Songshanhu high tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant before: GUANGDONG YUANFENG AUTOMOTIVE ELECTRONIC Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant