[go: up one dir, main page]

WO2018166072A1 - Procédé et dispositif de traitement de données - Google Patents

Procédé et dispositif de traitement de données Download PDF

Info

Publication number
WO2018166072A1
WO2018166072A1 PCT/CN2017/086277 CN2017086277W WO2018166072A1 WO 2018166072 A1 WO2018166072 A1 WO 2018166072A1 CN 2017086277 W CN2017086277 W CN 2017086277W WO 2018166072 A1 WO2018166072 A1 WO 2018166072A1
Authority
WO
WIPO (PCT)
Prior art keywords
data storage
storage device
removable data
terminal device
removable
Prior art date
Application number
PCT/CN2017/086277
Other languages
English (en)
Chinese (zh)
Inventor
李鹏
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201780012551.1A priority Critical patent/CN109074301B/zh
Publication of WO2018166072A1 publication Critical patent/WO2018166072A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/28Error detection; Error correction; Monitoring by checking the correct order of processing

Definitions

  • the present application relates to the field of data storage technologies, and in particular, to a data processing method and apparatus.
  • the embodiment of the present application provides a data processing method and device, which are used to solve the problem of data corruption caused by the removal of an SD card that is not performed according to the correct operation in the prior art.
  • the embodiment of the present application provides a data processing method, including: detecting, in a process of writing first data on a terminal device to a removable data storage device coupled to the terminal device, And storing, when the mobile data storage device is removed from the terminal device, the second data in the first data that has not been written into the removable data storage device in a preset storage medium of the terminal device And detecting, when the removable data storage device is coupled to the terminal device again, writing the second data stored in the storage medium to the removable data storage device.
  • the unwritten portion in the process of writing data to the removable data storage device, when it is detected that the removable data storage device is accidentally removed, the unwritten portion is stored in the preset storage medium, thereby detecting the When the removable data storage device is coupled to the terminal device again, the unwritten portion continues to be written into the removable data storage device, thereby ensuring data integrity to a certain extent and avoiding data corruption.
  • the method before the second data stored in the storage medium is written into the removable data storage device, the method further comprises: determining that the removable data storage device is detected again The timing of coupling to the terminal device is within a first preset time period after detecting that the removable data storage device is removed from the terminal device; or determining that the removable data storage device is detected again The timing of coupling to the terminal device is to prompt the user that the removable data storage device is not safely removed within a second preset time period after detecting that the removable data storage device is removed from the terminal device .
  • the terminal device after detecting that the removable data storage device is coupled to the terminal device again within a first preset time period after the removable data storage device is removed from the terminal device, Will be stored in the office
  • the second data in the storage medium is written to the removable data storage device, and when the user removable data storage device is no longer coupled to the terminal device for a long time, the terminal device no longer detects whether the removable data storage device is coupled again to
  • the terminal device can reduce the consumption of the power of the terminal device to a certain extent.
  • the method may further include prompting the user that the removable data storage device is not securely removed and detecting an instruction triggered by the user to confirm that there is no secure removal.
  • the removable data storage device After detecting that the removable data storage device is removed from the terminal device, prompting the user that the removable data storage device is not securely removed, detecting that the removable data storage device is coupled again
  • the terminal device is detected and the user-triggered instruction for confirming that there is no safe removal is detected
  • the second data stored in the storage medium is written into the removable data storage device, and the user can be prompted to move
  • the removable data storage device data is not secure, so that the user can connect the removable data storage device to the terminal device again in time, and timely write the second data stored in the storage medium to the movable data.
  • the storage device guarantees the integrity of the data to a certain extent and avoids data corruption.
  • the method may further include: detecting, in the second preset duration after the user is prompted that the removable data storage device is not safely removed, detecting that the removable data storage device is coupled to the a terminal device; deleting the second data from the storage medium, or moving the second data from a non-permanent storage medium to a permanent storage when the storage medium is a non-permanent storage medium In the medium.
  • the removable data storage device in the second preset duration after prompting the user that the removable data storage device is not safely removed, the removable data storage device is not detected to be coupled to the terminal device, and the second is timely The data is deleted from the storage medium to prevent the second data from occupying the storage medium for a long time.
  • the storage medium is a non-permanent storage medium
  • the second data is moved from the non-permanent storage medium to the permanent storage medium, and the unwritten useful data can be avoided at the terminal device. Loss after power, to a certain extent to ensure the security of the data.
  • the method may further include: detecting, in the third preset duration after the user is prompted that the removable data storage device is not safely removed, detecting that the removable data storage device is coupled to the Said terminal device, again prompting said user that said removable data storage device is not securely removed, so that the user can timely know that the mobile data storage device is not securely removed, and connect the removable data storage device to the terminal device in time Therefore, the terminal device can continue to write the unwritten data into the removable data storage device in time, which ensures the integrity of the data and the data corruption.
  • the embodiment of the present application further provides a data processing device, where the device is applied to a terminal device, including:
  • the communication interface for coupling a removable data storage device with the terminal device; the memory for storing first data; the processor for The first data stored in the memory is written into the removable data storage device, and when the removable data storage device is detected to be removed from the terminal device, the first data is not yet The second data written to the removable data storage device is stored in a predetermined storage space of the memory; when the removable data storage device is detected to be coupled to the terminal device again, The second data in the preset storage space is written to the removable data storage device.
  • the memory includes a first storage medium and a second storage medium, the first storage a storage medium for storing the first data;
  • the processor when storing the second data of the first data that has not been written into the removable data storage device in a preset storage space of the memory, specifically for using the second Data is stored in the preset storage space of the second storage medium.
  • the processor is further configured to determine that the removable data storage device is detected before writing the second data stored in the storage medium to the removable data storage device The timing of coupling to the terminal device again is within a first preset time period after detecting that the removable data storage device is removed from the terminal device; or determining that the removable data storage device is detected Re-coupling to the terminal device is a second preset duration after prompting the user that the removable data storage device is not safely removed, when detecting that the removable data storage device is removed from the terminal device Inside.
  • the processor is further configured to: after detecting that the removable data storage device is removed from the terminal device, in the second data to be stored in the storage medium Prior to writing to the removable data storage device, the user is prompted that the removable data storage device is not securely removed and an instruction triggered by the user to confirm that there is no secure removal is detected.
  • the processor is further configured to detect that the removable data storage device is coupled to the second preset duration after prompting the user that the removable data storage device is not safely removed.
  • the terminal device deletes the second data from the storage space, or when the storage medium corresponding to the preset storage space is a non-permanent storage medium, the second data is non-permanent
  • the storage medium is moved to a permanent storage medium.
  • the processor is further configured to detect that the removable data storage device is coupled to the third preset duration after prompting the user that the removable data storage device is not safely removed.
  • the terminal device again prompts the user that the removable data storage device is not securely removed.
  • the device further includes a display or a speaker; when the processor prompts the user that the removable data storage device is not safely removed, specifically for prompting the user through the display interface of the display The removable data storage device is not securely removed, or the user is prompted by the speaker that the removable data storage device is not securely removed.
  • an embodiment of the present application provides a data processing apparatus, where the apparatus includes:
  • a writing module configured to write the first data on the terminal device to the removable data storage device coupled to the terminal device;
  • a detecting module configured to detect whether the removable data storage device is removed from the terminal device
  • a storage module configured to: when the writing module writes first data on the terminal device into the removable data storage device coupled to the terminal device, the detecting module detects the removable data storage device When being removed from the terminal device, the second data of the first data that has not been written into the removable data storage device is stored in a preset storage medium of the terminal device;
  • a detecting module configured to detect whether the removable data storage device is coupled to the terminal device
  • the writing module is further configured to: when the detecting module detects that the movable data storage device is coupled to the terminal device again, write second data stored in the storage medium to the movable device Data storage device.
  • the detecting module is further configured to: before the writing module writes the second data stored in the storage medium into the removable data storage device, determining to detect the The timing at which the removable data storage device is coupled to the terminal device again is within a first predetermined duration after detecting that the removable data storage device is removed from the terminal device.
  • the method further includes a prompting module, when the detecting module detects that the removable data storage device is removed from the terminal device, prompting the user that the removable data storage device does not Safely removed.
  • the detecting module is further configured to: before the writing module writes the second data stored in the storage medium to the removable data storage device, determine that the removable data storage device is detected to be coupled again The timing of the terminal device is that after detecting that the removable data storage device is removed from the terminal device, the prompting module prompts the user that the removable data storage device has no second preset after being safely removed. Within the time.
  • the prompting module prompts the user that the removable data storage device is not safely removed.
  • the detection module detects that the removable data storage device is coupled to the terminal device again, and detects a user-triggered instruction for confirming that there is no secure removal, then the write module is to be stored in the storage Second data in the medium is written to the removable data storage device.
  • the device further includes:
  • a deleting module configured to, within a second preset duration after the prompting module prompts the user that the removable data storage device is not safely removed, the detecting does not detect that the removable data storage device is coupled to the The terminal device deletes the second data from the storage medium.
  • the storage module is further configured to: after the prompting module prompts the user that the removable data storage device is not safely removed Within two preset durations, the detecting does not detect that the removable data storage device is coupled to the terminal device, and the second data is moved from the non-permanent storage medium to the permanent storage medium.
  • the prompting module is further configured to: after the prompting the user that the removable data storage device is not safely removed, the detecting module does not detect the movable data.
  • a storage device is coupled to the terminal device, again prompting the user that the removable data storage device is not securely removed.
  • the embodiment of the present application further provides a computer storage medium, where the software program stores a software program, where the software program can implement the first aspect or the first one when being read and executed by one or more processors Any of the aspects provided by the design.
  • an embodiment of the present application provides a computer program product comprising instructions, when executed on a computer, causing a computer to perform the method provided by any one of the above first aspect or the first aspect.
  • FIG. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a data processing system according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a data processing method according to an embodiment of the present application.
  • FIG. 5 is a flowchart of still another data processing method according to an embodiment of the present application.
  • FIG. 6 is a flowchart of still another data processing method according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of prompt information displayed by a terminal device according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a data processing apparatus according to an embodiment of the present application.
  • a removable data storage device including a memory, configured to store data.
  • the removable data storage device may be a subscriber identification module (English: Subscriber Identification Module, SIM for short), a secure digital (English: Secure Digital Memory, SD) memory card, or an integrated circuit (IC: integrated circuit) Memory, a universal serial bus (English: Universal Serial Bus, USB for short), a universal integrated circuit card (English: Universal Integrated Circuit Card, UICC), removable user identification module (English: Removable User) Identity Module (R-UIM), thumb drive, flash drive, solid state storage device, etc.
  • SIM Subscriber Identification Module
  • SD Secure Digital Memory
  • IC integrated circuit
  • a universal serial bus English: Universal Serial Bus, USB for short
  • a universal integrated circuit card English: Universal Integrated Circuit Card, UICC
  • removable user identification module English: Removable User) Identity Module (R-UIM)
  • thumb drive flash drive
  • solid state storage device etc.
  • the terminal device includes, but is not limited to, a personal computer, a server computer, a handheld or laptop device, a mobile device (such as a cell phone, a mobile phone, a tablet, a personal digital assistant, a pager, a media player, a camera, an audio recording device, etc.) ), consumer electronics, small computers, large computers, and more.
  • a personal computer such as a cell phone, a mobile phone, a tablet, a personal digital assistant, a pager, a media player, a camera, an audio recording device, etc.
  • a mobile device such as a cell phone, a mobile phone, a tablet, a personal digital assistant, a pager, a media player, a camera, an audio recording device, etc.
  • Coupled means that two components are bonded directly or indirectly to each other. This combination may be fixed or movable, and this combination may allow for the transfer of fluid, electrical, electrical signals or other types of signals between the two components.
  • the removable data storage device is an SD card
  • the terminal device is a personal computer.
  • the personal computer is provided with a recessed member, and the SD card can be mounted on the concave member to achieve the coupling between the SD card and the personal computer, or the SD card can be Coupled with a personal computer via an SD card reader.
  • Permanent storage medium means that data stored in the storage medium will not be lost after power off.
  • read only memory English: Read Only Memory, ROM for short
  • flash memory Flash Memory
  • electrically erasable write-read only memory Edinburgh: Electrically Erasable Programmable Read-Only Memory, EEPROM for short.
  • Non-permanent storage medium means that data stored in the storage medium will be lost after power off.
  • Such as random access memory English: Random Access Memory, referred to as: RAM.
  • Multiple means two or more.
  • the terminal device 100 includes a display device 110, a processor 120, and a memory 130.
  • the memory 130 can be used to store software programs and data, and the processor 120 executes various functional applications and data processing of the terminal device 100 by running software programs and data stored in the memory 130.
  • the memory 130 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as an image collection function, etc.), and the like; and the storage data area may be stored according to the terminal device 100. Use the created data (such as audio data, phone book, etc.).
  • the memory 130 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, or other volatile solid state storage device or the like.
  • the processor 120 is a control center of the terminal device 100, and connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device 100 by running or executing software programs and/or data stored in the memory 130. And process the data to monitor the terminal device as a whole.
  • the processor 120 may include one or more general-purpose processors, and may also include one or more digital signal processors (English: Digital Signal Processor, DSP for short) for performing related operations to implement the embodiments of the present application. Technical solution.
  • a camera 160 for taking a photo or video may also be included in the terminal device 100.
  • the terminal device 100 may further include an input device 140 for receiving input digital information, character information, or contact touch operation/contactless hand Potential, and signal input related to user setting and function control of the terminal device 100 are generated.
  • the input device 140 may include a touch panel 141.
  • the touch panel 141 also referred to as a touch screen, can collect touch operations on or near the user (such as the user's operation on the touch panel 141 or on the touch panel 141 using any suitable object or accessory such as a finger, a stylus, or the like. ), and drive the corresponding connection device according to a preset program.
  • the touch panel 141 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller;
  • the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 120 is provided and can receive commands from the processor 120 and execute them.
  • the user clicks on an icon or a legend corresponding to an application on the touch panel 141, and the touch detection device detects the signal brought by the click, and then transmits the signal to the touch controller, and touches The controller then converts this signal to coordinates for transmission to processor 120, which determines the operation (on) for the icon or legend based on the coordinates and the type of the signal (click or double click).
  • the touch panel 141 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input device 140 may further include other input devices 142, which may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like. One or more of them.
  • the display device 110 includes a display panel 111 for displaying information input by the user or information provided to the user, and various menu interfaces of the terminal device 100, etc., which are mainly used for displaying the camera in the terminal device 100 in the embodiment of the present application.
  • the captured picture can be configured by using a liquid crystal display (English: Liquid Crystal Display, LCD for short) or an organic light-emitting diode (English: Organic Light-Emitting Diode, OLED for short).
  • the touch panel 141 can cover the display panel 111 to form a touch display screen.
  • the terminal device 100 may further include a power source 150 for supplying power to other modules.
  • the terminal device 100 may also include one or more sensors 170, such as an acceleration sensor, a light sensor, a GPS sensor, an infrared sensor, a laser sensor, a position sensor or a lens pointing angle sensor, and the like.
  • the terminal device 100 may further include a radio frequency (English: Radio Frequency, RF for short) circuit 180 for performing network communication with the wireless network device, and may further include a WiFi module 190 for performing WiFi communication with other devices, and may also include
  • the speaker 210 is used for playing music, voice prompts or sounding prompts and the like.
  • the terminal device 100 further includes a communication interface 220 for coupling connection with the removable data storage device.
  • a data processing method and apparatus which can avoid the problem of data corruption caused by not removing the removable data storage device according to the above specification operation.
  • the method and the device are based on the same inventive concept. Since the principles of the method and the device for solving the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated description is not repeated.
  • the data processing system provided by the embodiment of the present application includes a removable data storage device 200. And the terminal device 100.
  • the removable data storage device 200 is coupled to the terminal device 100.
  • the data processing method includes:
  • the removable data storage device 200 In the process of writing the first data on the terminal device 100 to the removable data storage device 200, detecting the first data when the removable data storage device 200 is removed from the terminal device 100 The second data that has not been written into the removable data storage device 200 is stored in the storage medium of the terminal device 100 (S301). Upon detecting that the removable data storage device 200 is coupled again to the terminal device 100, the second data stored in the storage medium is written to the removable data storage device 200 (S302).
  • the second data that is not written in the removable data storage device 200 is saved to the storage medium of the terminal device 100, and the storage medium may be a non-permanent storage medium or may be a permanent storage medium.
  • the second data is associated with the identification information of the removed removable data storage device 200.
  • Information such as a start address of the second data in the removable data storage device, a data size of the second data, and the like may also be saved.
  • the removable data storage device 200 When detecting that the removable data storage device 200 is coupled to the terminal device 100 again, it may be stored in the storage medium by determining identification information of the removable data storage device coupled to the terminal device 100 again. When the identification information of the removable data storage device is the same, it is determined that the removable data storage device 200 is coupled to the terminal device 100 again.
  • writing second data stored in the storage medium to the removable data storage may be written into the removable data storage device 200 when any of the following timings is reached:
  • Determining that the timing of detecting that the removable data storage device 200 is coupled to the terminal device 100 is the first preset duration after detecting that the removable data storage device 200 is removed from the terminal device 100 Inside.
  • Determining that the time when the removable data storage device 200 is detected to be coupled to the terminal device 100 is to prompt the user to move when detecting that the removable data storage device 200 is removed from the terminal device 100
  • the data storage device 200 is not within the second preset time period after the security removal.
  • the third type is the third type.
  • the removable data storage device 200 is again coupled to the terminal device 100 and detects a user-triggered instruction for confirming that there is no secure removal.
  • the first preset duration and the second preset duration may be the same or different. This embodiment of the present application does not specifically limit this.
  • the mobile data storage device 200 is not detected to be connected to the terminal device 100 after the user is prompted to perform the second preset duration after the removable data storage device 200 is not securely removed, the device is not detected to be coupled to the terminal device 100.
  • the second data is deleted from the storage medium.
  • the storage medium is a non-permanent storage medium
  • the removable data storage device 200 is not detected to be coupled to The terminal device 100 can move the second data from a non-permanent storage medium to a permanent storage medium.
  • the S504 reaches the third preset duration after prompting the user that the removable data storage device 200 is not securely removed, the removable data storage device 200 has not been detected to be coupled to the terminal device 100, again The user is prompted that the removable data storage device 200 is not securely removed. If the user is again prompted that the removable data storage device 200 has not been securely removed and reaches a third preset duration, and the removable data storage device 200 has not been detected to be coupled to the terminal device 100, the The two data are deleted from the storage medium.
  • the mobile data storage device 200 is not detected to be connected to the terminal device 100 after the user is prompted to perform the second preset duration after the removable data storage device 200 is not securely removed, the device is not detected to be coupled to the terminal device 100.
  • the second data is deleted from the storage medium.
  • the storage medium is a non-permanent storage medium
  • the removable data storage device 200 is not detected to be coupled to The terminal device 100 can move the second data from a non-permanent storage medium to a permanent storage medium.
  • the S604 reaches the third preset duration after prompting the user that the removable data storage device 200 is not securely removed, the removable data storage device 200 has not been detected to be coupled to the terminal device 100, again The user is prompted that the removable data storage device 200 is not securely removed. If the user is again prompted that the removable data storage device 200 has not been securely removed and reaches a third preset duration, and the removable data storage device 200 has not been detected to be coupled to the terminal device 100, the The two data are deleted from the storage medium.
  • the user may be prompted to remove the removable data storage device 200 according to the specification operation. .
  • an alert sound that can be heard by the user eg, a beep, an alarm, And so on, alerting the user, or a warning that can be seen by the user (eg, illumination light, flashing lights, images on the display, prompting text on the display, etc.), or an alert (eg, vibration) that can be perceived by the user.
  • the prompt text is "The SD card is not safely removed, and the stored part of the data is left, please insert the SD card to restore the legacy data immediately."
  • the embodiment of the present application further provides a data processing device, where the device is applied to a terminal device, and may be implemented by the processor 120 in the terminal device 100.
  • the apparatus may include:
  • the writing module 801 is configured to write the first data on the terminal device to the removable data storage device coupled to the terminal device;
  • a detecting module 802 configured to detect whether the removable data storage device is removed from the terminal device
  • a storage module 803 configured to: when the writing module 801 writes first data on the terminal device into the removable data storage device coupled to the terminal device, the detecting module 802 detects the movable When the data storage device is removed from the terminal device, the second data of the first data that has not been written into the removable data storage device is stored in a preset storage medium of the terminal device;
  • the detecting module 802 is further configured to detect whether the removable data storage device is coupled to the terminal device;
  • the writing module 801 is further configured to: when the detecting module 802 detects that the removable data storage device is coupled to the terminal device again, write the second data stored in the storage medium into the Removable data storage device.
  • the detecting module 802 is further configured to determine, before the writing module 801 writes the second data stored in the storage medium to the removable data storage device, The timing of coupling the removable data storage device to the terminal device is within a first predetermined time period after detecting that the removable data storage device is removed from the terminal device.
  • the prompting module 804 is further configured to prompt the user to move the data when the detecting module 802 detects that the removable data storage device is removed from the terminal device. The storage device is not safely removed.
  • the detecting module 802 is further configured to determine that the removable data storage device is detected again before the writing module 801 writes the second data stored in the storage medium to the removable data storage device.
  • the timing of coupling to the terminal device is to prompt the user that the removable data storage device is not securely removed after detecting that the removable data storage device is removed from the terminal device Within the preset duration.
  • the prompting module 804 prompts the user that the removable data storage device does not Safely removing; the detection module 802 detects that the removable data storage device is coupled to the terminal device again, and detects a user-triggered instruction for confirming that there is no secure removal, then the write module 801 will Second data stored in the storage medium is written to the removable data storage device.
  • the device further includes:
  • a deleting module 805, configured to: after the prompting module 804 prompts the user that the removable data storage device is not safely removed, the detecting module 802 does not detect that the removable data storage device is coupled to The terminal device deletes the second data from the storage medium.
  • the storage module 803 is further configured to prompt the user that the removable data storage device is not safely removed at the prompting module 804. After the second preset duration, the detecting module 802 does not detect that the removable data storage device is coupled to the terminal device, and then moves the second data from the non-permanent storage medium to the permanent storage medium. .
  • the prompting module 804 is further configured to: after the prompting the user that the removable data storage device is not safely removed, the detecting module 802 does not detect the A removable data storage device is coupled to the terminal device, again prompting the user that the removable data storage device is not securely removed.
  • each functional module in each embodiment of the present application may be integrated into one processing. In the device, it can also be physically existed alone, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the hardware implementation of the terminal device can refer to FIG. 1 and its related description.
  • the communication interface 220 is configured to couple the removable data storage device with the terminal device;
  • the memory 130 is configured to store first data.
  • the processor 120 is configured to detect that the removable data storage device is removed from the terminal device during writing of the first data stored in the memory 130 to the removable data storage device And storing, in the first data, second data that has not been written into the removable data storage device in a preset storage space of the memory; detecting that the removable data storage device is coupled to When the terminal device is used, the second data stored in the preset storage space is written into the removable data storage device.
  • the memory 130 may include a first storage medium and a second storage medium, where the first storage medium is configured to store the first data;
  • the processor 120 is configured to: when the second data that has not been written into the removable data storage device in the first data is stored in a preset storage space of the memory, The two data are stored in the preset storage space of the second storage medium.
  • the processor 120 is further configured to be stored in the storage medium Before the second data is written into the removable data storage device, determining that the mobile data storage device is detected to be coupled to the terminal device again is detecting that the removable data storage device is from the terminal device Within a first preset duration after removal; or determining that the opportunity to detect that the removable data storage device is coupled to the terminal device again is detecting that the removable data storage device is moved from the terminal device In addition, prompting the user that the removable data storage device is not safely removed within a second preset duration.
  • the processor is further configured to: after detecting that the removable data storage device is removed from the terminal device, in a second to be stored in the storage medium Before the data is written to the removable data storage device, the user is prompted to have the secure data storage device not safely removed, and a user-triggered instruction for confirming that there is no secure removal is detected.
  • the processor is further configured to: detect, after the prompting user that the removable data storage device is not securely removed, the mobile data storage device is not detected. Go to the terminal device; delete the second data from the storage space, or when the storage medium corresponding to the preset storage space is a non-permanent storage medium, then the second data is The permanent storage medium is moved to a permanent storage medium.
  • the processor is further configured to: detect, after the prompting user that the removable data storage device is not securely removed, the mobile data storage device is not detected to be coupled. To the terminal device, the user is again prompted that the removable data storage device is not securely removed.
  • the processor when the processor prompts the user that the removable data storage device is not securely removed, the processor is specifically configured to prompt the user that the removable data storage device is not secure through the display interface of the display. Remove, or prompt the user through the speaker that the removable data storage device is not securely removed.
  • the unwritten portion in the process of writing data to the removable data storage device, when detecting that the removable data storage device is accidentally removed, the unwritten portion is stored in the preset storage medium, thereby detecting When the removable data storage device is coupled to the terminal device again, the unwritten portion continues to be written into the removable data storage device, thereby ensuring data integrity to a certain extent and avoiding data corruption.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)
  • Telephone Function (AREA)

Abstract

L'invention concerne un procédé et un dispositif de traitement de données, destinés à être utilisés pour résoudre le problème de corruption de données dans l'état de la technique, dû à la non-exécution d'une opération correcte lors du retrait d'une carte SD. Le procédé comprend les étapes consistant : au cours d'un processus d'écriture de premières données sur un dispositif terminal dans un dispositif de mémorisation de données amovible couplé au dispositif terminal, lorsqu'il est détecté que le dispositif de mémorisation de données amovible est retiré du dispositif terminal, à mémoriser des secondes données des premières données non encore écrites dans le dispositif de mémorisation de données amovible dans un support d'informations prédéfini du dispositif terminal ; et, quand il est détecté que le dispositif de mémorisation de données amovible est couplé à nouveau au dispositif terminal, à écrire les secondes données du support d'informations dans le dispositif de mémorisation de données amovible.
PCT/CN2017/086277 2017-03-13 2017-05-27 Procédé et dispositif de traitement de données WO2018166072A1 (fr)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780012551.1A CN109074301B (zh) 2017-03-13 2017-05-27 一种数据处理方法及装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710147617.X 2017-03-13
CN201710147617 2017-03-13

Publications (1)

Publication Number Publication Date
WO2018166072A1 true WO2018166072A1 (fr) 2018-09-20

Family

ID=63521688

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086277 WO2018166072A1 (fr) 2017-03-13 2017-05-27 Procédé et dispositif de traitement de données

Country Status (2)

Country Link
CN (1) CN109074301B (fr)
WO (1) WO2018166072A1 (fr)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006115095A (ja) * 2004-10-13 2006-04-27 Kyocera Mita Corp 画像形成装置及びコンピュータ読み取り可能な記憶媒体
CN101458672A (zh) * 2007-12-10 2009-06-17 联想(北京)有限公司 一种热插拔设备、电脑及数据传输指示方法
CN102087623A (zh) * 2010-12-02 2011-06-08 东方口岸科技有限公司 专用usb存储设备数据更新时掉电的数据保护方法
CN102750202A (zh) * 2012-06-06 2012-10-24 宇龙计算机通信科技(深圳)有限公司 数据保护方法和装置
US20160357566A1 (en) * 2015-06-02 2016-12-08 International Business Machines Corporation Speculative Load Data in Byte-Write Capable Register File and History Buffer for a Multi-Slice Microprocessor

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5734894A (en) * 1995-04-25 1998-03-31 Honeywell Inc. Methods and apparatus for protecting the integrity of process data stored on a removable storage medium
JP4078010B2 (ja) * 2000-03-03 2008-04-23 株式会社日立グローバルストレージテクノロジーズ 磁気ディスク装置及び情報記録方法
US7818477B2 (en) * 2005-03-28 2010-10-19 Panasonic Corporation Storage device with buffer control unit
JP4419989B2 (ja) * 2005-08-19 2010-02-24 セイコーエプソン株式会社 データ処理装置、データ処理方法、制御プログラムおよびそのプログラムを記録した記録媒体
CN101566992A (zh) * 2008-04-24 2009-10-28 扬智科技股份有限公司 数据存储系统及其存储方法
US7937529B2 (en) * 2008-06-23 2011-05-03 International Business Machines Corporation Detection of frequent improper removals of and changing writing policies to prevent data loss in memory sticks
WO2010011217A1 (fr) * 2008-07-22 2010-01-28 Lsi Corporation Procédé, appareil et système de stockage de données permettant une récupération d'écriture interrompue
CN101604547A (zh) * 2009-07-07 2009-12-16 中兴通讯股份有限公司 一种磁盘阵列热插拔数据写保护系统和方法
CN103262054B (zh) * 2010-12-13 2015-11-25 桑迪士克科技股份有限公司 用于自动提交存储器的装置、系统和方法
US9003103B2 (en) * 2011-09-12 2015-04-07 Microsoft Technology Licensing, Llc Nonvolatile media dirty region tracking
CN102866964B (zh) * 2012-09-18 2015-06-03 北京奇虎科技有限公司 一种保护存储设备上数据的方法及装置
US9448896B2 (en) * 2013-08-07 2016-09-20 Seagate Technology Llc Torn write mitigation
CN103577124A (zh) * 2013-11-15 2014-02-12 华为终端有限公司 一种提示外接存储设备读写状态的方法及设备
CN104699413B (zh) * 2013-12-09 2019-02-22 群联电子股份有限公司 数据管理方法、存储器存储装置及存储器控制电路单元
CN105700971A (zh) * 2014-11-28 2016-06-22 东莞宇龙通信科技有限公司 数据备份的方法及装置
CN104503703B (zh) * 2014-12-16 2018-06-05 华为技术有限公司 缓存的处理方法和装置
CN105138280B (zh) * 2015-07-31 2018-10-19 成都华为技术有限公司 数据写入方法、装置及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006115095A (ja) * 2004-10-13 2006-04-27 Kyocera Mita Corp 画像形成装置及びコンピュータ読み取り可能な記憶媒体
CN101458672A (zh) * 2007-12-10 2009-06-17 联想(北京)有限公司 一种热插拔设备、电脑及数据传输指示方法
CN102087623A (zh) * 2010-12-02 2011-06-08 东方口岸科技有限公司 专用usb存储设备数据更新时掉电的数据保护方法
CN102750202A (zh) * 2012-06-06 2012-10-24 宇龙计算机通信科技(深圳)有限公司 数据保护方法和装置
US20160357566A1 (en) * 2015-06-02 2016-12-08 International Business Machines Corporation Speculative Load Data in Byte-Write Capable Register File and History Buffer for a Multi-Slice Microprocessor

Also Published As

Publication number Publication date
CN109074301B (zh) 2021-10-08
CN109074301A (zh) 2018-12-21

Similar Documents

Publication Publication Date Title
KR102557125B1 (ko) 전자 장치 및 그 제어 방법
KR102056316B1 (ko) 터치 스크린 동작 방법 및 그 전자 장치
US20140279437A1 (en) Method and apparatus for electronic payment in electronic device
EP3792741B1 (fr) Procédé de navigation dans un dossier d'application et dispositif électronique
CN109446832B (zh) 一种截屏方法及装置
US20140351725A1 (en) Method and electronic device for operating object
KR102337157B1 (ko) 전자 칠판 장치 및 그 제어 방법
JP5639489B2 (ja) 情報処理装置及びその制御方法、プログラム、並びに記憶媒体
KR102155133B1 (ko) 이미지 표시 방법 및 장치
JP6190978B2 (ja) ファームウェアリフレッシュ方法、装置、プログラム及び記録媒体
CN105138247A (zh) 检测到第二设备接近第一设备而在第一设备呈现用户界面
CN108255674A (zh) 多进程浏览器进程日志收集方法、装置以及移动终端
WO2019033655A1 (fr) Procédé et appareil de prévention de mauvaise manipulation tactile, dispositif et support d'informations
JP2019158986A5 (fr)
CN106371693B (zh) 一种显示导航信息的方法及移动终端
CN103677480B (zh) 用于测量坐标的设备及其控制方法
US9904322B2 (en) Mass storage device
JP2015207040A (ja) タッチ操作入力装置、タッチ操作入力方法及びプログラム
KR20140137629A (ko) 이어폰 연결을 감지하는 휴대 단말 및 방법
CN105829998B (zh) 将装置绑定到计算设备
CN106534482B (zh) 一种对移动终端应用程序管理的方法和装置
EP2813947B1 (fr) Dispositif électronique et procédé de montage d'un système de fichiers utilisant un dispositif de bloc virtuel
WO2018166072A1 (fr) Procédé et dispositif de traitement de données
US9857910B2 (en) Method for controlling multiple touchscreens and electronic device
CN110795285A (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: 17900405

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: 17900405

Country of ref document: EP

Kind code of ref document: A1