WO2014205909A1 - 数据存储处理方法、装置及终端 - Google Patents

数据存储处理方法、装置及终端 Download PDF

Info

Publication number
WO2014205909A1
WO2014205909A1 PCT/CN2013/082095 CN2013082095W WO2014205909A1 WO 2014205909 A1 WO2014205909 A1 WO 2014205909A1 CN 2013082095 W CN2013082095 W CN 2013082095W WO 2014205909 A1 WO2014205909 A1 WO 2014205909A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
terminal
power
communication interface
module
Prior art date
Application number
PCT/CN2013/082095
Other languages
English (en)
French (fr)
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 中兴通讯股份有限公司
Publication of WO2014205909A1 publication Critical patent/WO2014205909A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0625Power saving in storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0634Configuration or reconfiguration of storage systems by changing the state or mode of one or more devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the present invention relates to the field of communications, and in particular to a data storage processing method, apparatus, and terminal.
  • a data storage processing method, apparatus, and terminal BACKGROUND OF THE INVENTION
  • terminals including mobile terminals, for example, mobile phones
  • terminals are becoming more and more powerful, and more and more terminals are equipped with large-capacity storage spaces.
  • Users generally use the storage space on the terminal to store data.
  • the terminal is turned off, if you want to use the mobile storage function, you must turn it on to use it normally. This brings inconvenience to the user's use. For example, it takes a certain amount of time to boot, and it consumes more power of the terminal.
  • the present invention provides a data storage processing method, apparatus, and terminal to solve at least the problems caused by the storage function of the related art in which the terminal must be powered on.
  • a terminal including: a power interface configured to be connected to an external power source that supplies power to the terminal; a storage device configured to store data; and a communication interface configured to be connected to an external device Providing an interface for the external device to access the storage device; the processing module is configured to maintain the shutdown state of the terminal and start when determining that the terminal is in a shutdown state and the power interface is connected to the external power source
  • the data storage function of the storage device enables the external device to access the storage device through the communication interface.
  • the power interface and the communication interface are the same interface, or the power interface and the communication interface are different interfaces.
  • the power interface and the communication interface are Universal Serial Bus (USB) interfaces.
  • the communication interface comprises at least one of: a universal serial bus (USB) interface, a wireless fidelity (WIFI) interface, a Bluetooth interface, an infrared interface; and/or, the power interface includes at least one of the following: Wireless power interface, wired power interface.
  • a data storage processing method is further provided, including: determining that a terminal is in a shutdown state; and maintaining a shutdown state of the terminal when a power interface of the terminal is connected to an external power source; A data storage function of the storage device in the terminal is enabled to enable an external device to access the storage device, wherein the external device is connected to the external device through a communication interface in the terminal.
  • the power interface and the communication interface are the same interface, or the power interface and the communication interface are different interfaces.
  • the power interface and the communication interface are universal serial bus (USB) interfaces; or, in a case where the power interface and the communication interface are different interfaces, the communication interface includes at least the following a universal serial bus (USB) interface, a wireless fidelity (WIFI) interface, a Bluetooth interface, an infrared interface; and/or, the power interface includes at least one of the following: a wireless power interface, a wired power interface.
  • a data storage processing apparatus including: a determining module, configured to determine whether the terminal is in a shutdown state; and a host module configured to connect an external power source to the power interface of the terminal and When the determining module determines that the terminal is in a shutdown state, maintaining a shutdown state of the terminal and starting a data storage function of the storage device in the terminal, so that the external device can access the storage device, where The external device is connected to the external device through a communication interface in the terminal.
  • the power interface and the communication interface are the same interface, or the power interface and the communication interface are different interfaces.
  • the power interface and the communication interface are universal serial bus (USB) interfaces; or, in a case where the power interface and the communication interface are different interfaces, the communication interface includes at least the following A universal serial bus (USB) interface, a wireless fidelity WIFI interface, a Bluetooth interface, an infrared interface; and/or, the power interface includes at least one of the following: a wireless power interface, a wired power interface.
  • USB universal serial bus
  • a terminal including: a power interface configured to be connected to an external power source that supplies power to the terminal; a storage device configured to store data; and a communication interface configured to be connected to an external device, the external The device accesses the storage device providing interface; the processing module is configured to: when the terminal is determined to be in a shutdown state and the power interface is connected to the external power source, maintaining a shutdown state of the terminal and starting a data storage function of the storage device, so that the device The external device can access the storage device through the communication interface.
  • FIG. 1 is a block diagram showing a structure of a terminal according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a data storage processing method according to an embodiment of the present invention
  • FIG. 3 is a data storage processing apparatus according to an embodiment of the present invention
  • FIG. 4 is a flowchart of implementing shutdown storage according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a host opening and shutting down storage function according to an embodiment of the present invention
  • FIG. 6 is a wired connection terminal according to an embodiment of the present invention
  • FIG. 7 is a structural diagram of a wireless connection terminal according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments.
  • the terminal may be a mobile terminal (for example, a mobile phone, a tablet, etc.), or may be another type of terminal.
  • FIG. 1 is a structural block diagram of a terminal according to an embodiment of the present invention.
  • the terminal includes: a power interface 12, and a storage device 14 (also referred to as a storage module).
  • the storage device may be a storage device built in the terminal, which may be a storage device on a memory card inserted in the terminal, a communication interface 16, and a processing module 18. The structure will be described below.
  • the power interface 12 is configured to be connected to an external power source for powering the terminal; the storage device 14 is configured to store data; the communication interface 16 is configured to be connected to an external device, and provide an interface for the external device to access the storage device;
  • the processing module 18 is configured to, when determining that the terminal is in a shutdown state and the power interface is connected to the external power source, maintaining a shutdown state of the terminal and starting a data storage function of the storage device, so that the external device can pass the communication interface Access the storage device.
  • the terminal only activates the data storage function without turning on the power, thereby realizing the access of the external device to the storage device, and the access may be operations of writing data, reading data, modifying data, deleting data, and the like. .
  • the communication interface 16 may include a module that implements a protocol used by the external device for data storage.
  • the module that implements the protocol may also activate the module in the processing module to start the data storage function of the storage device.
  • the communication interface 16 can be understood to include a physical interface (which may be a wired interface or a wireless interface) and a communication module that communicates with an external device through the physical interface.
  • the power interface 12 can be understood to include a physical power interface (which may be a wired interface or a wireless interface), and a power supply module that supplies power to the storage device 14, the communication interface 16, and the processing module 18 of the terminal.
  • the power interface 12 and the communication interface 16 may be the same interface (for example, a universal serial bus (USB) interface); or, the power interface 12 and the communication interface 16 may also be different interfaces.
  • the communication interface 16 may include the following At least one of: a universal serial bus (USB) interface, a wireless fidelity (WIFI) interface, a Bluetooth interface, an infrared interface; and/or, the power interface 12 includes at least one of the following: a wireless power interface, a wired power interface.
  • FIG. 2 is a flowchart of a data storage processing method according to an embodiment of the present invention.
  • the flow includes the following steps: Step S202, determining a terminal Step S204, in the case that the power interface 12 of the terminal is connected to the external power source, the shutdown state of the terminal is maintained and the data storage function of the storage device 14 in the terminal is activated to enable the external device to access the storage device.
  • the external device is connected to the external device through a communication interface 16 in the terminal.
  • the power interface 12 and the communication interface 16 may be the same interface (for example, a universal serial bus USB interface); or the power interface 12 and the communication interface 16 may also be different interfaces.
  • the communication interface 16 may include at least the following One: a universal serial bus (USB) interface, a wireless fidelity (WIFI) interface, a Bluetooth interface, an infrared interface; and/or, the power interface 12 includes at least one of the following: a wireless power interface, a wired power interface.
  • a data storage processing device is also provided.
  • FIG. 3 is a structural block diagram of a data storage processing device according to an embodiment of the present invention. As shown in FIG. 3, the structure includes: a determining module 32 and a host module 34. The determining module 32 and the host module 34 can implement the functions of the processing module 18 described above. It should be noted that the names of the judgment module and the host module should not be construed as limiting the module.
  • the judgment module may also be expressed as "a module that is set to determine whether the terminal is in a shutdown state.”
  • the modules involved in the above embodiments and the following embodiments and their preferred embodiments may be implemented by using a processor.
  • the judging module may be expressed as "a processor configured to determine whether the terminal is in a shutdown state" or "one.”
  • the processor includes a judging module, which may be located in different processors or in the same process. The structure in Fig. 3 will be described below.
  • the determining module 32 is configured to determine whether the terminal is in a shutdown state.
  • the host module 34 is configured to maintain the shutdown state of the terminal and start when the power interface of the terminal is connected to the external power source and the determining module determines that the terminal is in the shutdown state.
  • the power interface 12 and the communication interface 16 may be the same interface (for example, a universal serial bus (USB) interface); or, the power interface 12 and the communication interface 16 may also be different interfaces.
  • the communication interface 16 may include the following At least one of: a universal serial bus (USB) interface, a wireless fidelity (WIFI) interface, a Bluetooth interface, an infrared interface; and/or, the power interface 12 includes at least one of the following: a wireless power interface, a wired power interface. The following description will be made in conjunction with a preferred embodiment.
  • a method and a terminal for continuing to use the mobile storage function after the power off are provided.
  • the terminal in this embodiment may include the following modules: a communication interface, through which data is received and transmitted externally; a determination module that determines whether the current storage state is in a shutdown state; and a host module that can be used to initiate a mobile storage function; a storage module for storing data;
  • the communication module can be used for data transmission inside each terminal, and can also be used for data transmission channel between the terminal and the external device; the power supply module supplies power to the above module; the power interface, and the external DC power supply can supply power to the terminal through the interface.
  • Step S402 A terminal is connected to a PC through a communication interface, and the communication interface is usually a USB port, and the terminal can pass through a USB port. Obtaining a certain voltage. If the communication interface adopts a wireless communication protocol, the terminal obtains a certain voltage through the power interface. In step S404, the power supply module supplies power to the terminal by using the obtained voltage. Step S406, the host module obtains the power supply notification.
  • the judging module judges that the current power-off state is determined by the current power state, and determines that the current communication interface is connected (for example, can be judged by the voltage provided by the power supply module), thereby obtaining a conclusion that the terminal is in the shutdown mobile storage state, if not Then, in step S408, the host module obtains the current state as the shutdown storage from the judgment module, and then turns off the shutdown mobile storage function, the function only opens the communication module and the storage module related to the mobile storage, and controls the communication interface and the PC through the interface protocol. Communication between.
  • the drive loading process for opening the communication module and the storage module can be as shown in FIG. 5.
  • Step S410 the communication interface is connected to the host module and the storage module through the communication module, and under the control of the host module, the data of the storage module is transmitted with the PC to implement the function of the mobile U disk.
  • FIG. 5 is a flowchart of a host turning off a shutdown storage function according to an embodiment of the present invention. As shown in FIG. 5, the flow includes the following:
  • FIG. 6 is a structural diagram of a wired connection terminal according to an embodiment of the present invention. Description will be made below with reference to FIG. 6.
  • a terminal that is in a power-off state is connected to the computer through a communication interface and a connection line.
  • the communication interface can be a USB interface or other interface with a power pin.
  • the USB connection is taken as an example to illustrate the workflow of the terminal:
  • the power supply module is connected to the communication interface through a certain circuit, and the communication interface and the personal computer (Personal
  • the power supply module After connecting through the connection line, the power supply module obtains a certain voltage, and supplies power to the judgment module, the host module, the storage module, and the communication module through the power supply circuit of the module. After the power is turned on, the judgment module learns that the power state is currently in the power-off state, and the power supply module supplies power to the power supply module, and the current state is defined as the power-off state of the power supply module. After receiving the power supply from the power supply module, the host module starts to read the result of the judgment module. When it is learned from the judgment module that the current state is the shutdown mobile storage state, the shutdown mobile storage function is turned on.
  • This function mainly controls the data transmission between the communication interface and the PC through the transmission protocol of the interface, and can put the data into the storage module through the communication module.
  • the storage function involved is no different from the storage function in the power-on state, the difference is that the open program is different.
  • the host In the shutdown storage mode, the host only loads the storage-related functions and programs, which is a small system.
  • FIG. 7 is a structural diagram of a wireless connection terminal according to an embodiment of the present invention. This will be described below with reference to FIG. A terminal that is in a power-off state is connected to other terminals through a communication interface.
  • the communication interface can be WiFi, or a wireless communication method such as Bluetooth. The following takes the WiFi connection as an example to illustrate the workflow of the shutdown mobile storage of the terminal:
  • the power supply module is connected to the power interface through a certain circuit.
  • the power supply module When the terminal is connected to the DC power supply, the power supply module obtains a certain voltage through the power interface, and passes the module.
  • the power supply circuit supplies power to the determination module, the host module, the storage module, and the communication module.
  • the judging module knows that the power state is currently in the power-off state, and the power supply module is powered by the power supply module to know that the power supply module is currently in the power supply state, and the state is defined as the shutdown mobile storage state.
  • the host module After receiving the power supply from the power supply module, the host module starts to read the result of the judgment module. When it is learned from the judgment module that the current state is the shutdown mobile storage state, the shutdown mobile storage function is turned on.
  • This function mainly controls the data transmission between the communication interface and the PC through the transmission protocol of the interface, and can put the data into the storage module through the communication module.
  • the storage function involved is no different from the storage function in the power-on state, the difference is that the open program is different.
  • the host In the shutdown storage mode, the host only loads the storage-related functions and programs, which is a small system.
  • the host module mainly plays a control role, controls the communication interface through the transmission protocol to generate corresponding signals, and receives the signals of the corresponding PC, obtains data therefrom and writes the storage unit through the communication module to realize the mobile U disk.
  • An embodiment of the present invention provides a device capable of realizing data storage of a mobile U disk in a state in which the terminal is powered off.
  • the device can be implemented by a corresponding unit or interface of an existing terminal, and has good Industrial applicability.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • the computing device may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into respective integrated circuit modules. Blocks, or a plurality of modules or steps in them, are implemented as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Power Sources (AREA)

Abstract

本发明公开了一种数据存储处理方法、装置及终端,其中,该终端包括:电源接口,设置为与为该终端供电的外部电源连接;存储装置,设置为存储数据;通信接口,设置为与外部装置连接,为该外部装置访问该存储装置提供接口;处理模块,设置为在确定该终端为关机状态以及该电源接口连接该外部电源的情况下,保持该终端的关机状态并启动该存储装置的数据存储功能,使该外部装置能够通过该通信接口访问该存储装置。通过本发明,解决了相关技术中必须开机才能使用终端的存储功能所导致的问题,提高了使用的便利性。

Description

数据存储处理方法、 装置及终端 技术领域 本发明涉及通信领域, 具体而言, 涉及数据存储处理方法、 装置及终端。 背景技术 随着技术的进步, 硬件成本的降低, 终端 (包括移动终端, 例如, 手机) 的功能 越来越强大, 越来越多的终端配备了大容量的存储空间。 用户一般会使用终端上的存 储空间来进行数据的存储。但是, 当终端处于关机状态时, 如果要使用移动存储功能, 必须开机才能正常使用。 这给用户的使用带来不便, 例如, 开机需要一定的时间, 会 消耗终端的较多的电量等。 针对相关技术中必须开机才能使用终端的存储功能所导致的问题, 目前尚未提出 很好的解决方案。 发明内容 本发明提供了一种数据存储处理方法、 装置及终端, 以至少解决相关技术中必须 开机才能使用终端的存储功能所导致的问题。 根据本发明实施例的一个方面, 提供了一种终端, 包括: 电源接口, 设置为与为 所述终端供电的外部电源连接; 存储装置, 设置为存储数据; 通信接口, 设置为与外 部装置连接, 为所述外部装置访问所述存储装置提供接口; 处理模块, 设置为在确定 所述终端为关机状态以及所述电源接口连接所述外部电源的情况下, 保持所述终端的 关机状态并启动所述存储装置的数据存储功能, 使所述外部装置能够通过所述通信接 口访问所述存储装置。 优选地, 所述电源接口和所述通信接口为同一接口, 或者, 所述电源接口和所述 通信接口为不同接口。 优选地, 所述电源接口和所述通信接口为通用串行总线 (Universal Serial Bus, 简 称为 USB) 接口。 优选地, 所述通信接口包括以下至少之一: 通用串行总线 (USB) 接口、 无线保 真 (WIFI) 接口、 蓝牙接口、 红外线接口; 和 /或, 所述电源接口包括以下至少之一: 无线电源接口、 有线电源接口。 根据本发明实施例的另一个方面, 还提供了一种数据存储处理方法, 包括: 确定 终端为关机状态; 在所述终端的电源接口连接外部电源的情况下, 保持所述终端的关 机状态并启动所述终端中的存储装置的数据存储功能, 以使外部装置能够访问所述存 储装置, 其中, 所述外部装置通过所述终端中的通信接口与所述外部装置连接。 优选地, 所述电源接口和所述通信接口为同一接口, 或者, 所述电源接口和所述 通信接口为不同的接口。 优选地, 所述电源接口和所述通信接口为通用串行总线 (USB) 接口; 或者, 在 所述电源接口和所述通信接口为不同的接口的情况下, 所述通信接口包括以下至少之 一: 通用串行总线 (USB) 接口、 无线保真 (WIFI) 接口、 蓝牙接口、 红外线接口; 和 /或, 所述电源接口包括以下至少之一: 无线电源接口、 有线电源接口。 根据本发明实施例的另一个方面, 还提供了一种数据存储处理装置, 包括: 判断 模块, 设置为判断终端是否为关机状态; 主机模块, 设置为在所述终端的电源接口连 接外部电源以及所述判断模块判断所述终端为关机状态的情况下, 保持所述终端的关 机状态并启动所述终端中的存储装置的数据存储功能, 以使外部装置能够访问所述存 储装置, 其中, 所述外部装置通过所述终端中的通信接口与所述外部装置连接。 优选地, 所述电源接口和所述通信接口为同一接口, 或者, 所述电源接口和所述 通信接口为不同的接口。 优选地, 所述电源接口和所述通信接口为通用串行总线 (USB) 接口; 或者, 在 所述电源接口和所述通信接口为不同的接口的情况下, 所述通信接口包括以下至少之 一: 通用串行总线 (USB) 接口、 无线保真 WIFI接口、 蓝牙接口、 红外线接口; 和 / 或, 所述电源接口包括以下至少之一: 无线电源接口、 有线电源接口。 通过本发明实施例, 采用了一种终端, 包括: 电源接口, 设置为与为该终端供电 的外部电源连接; 存储装置, 设置为存储数据; 通信接口, 设置为与外部装置连接, 为该外部装置访问该存储装置提供接口; 处理模块, 设置为在确定该终端为关机状态 以及该电源接口连接该外部电源的情况下, 保持该终端的关机状态并启动该存储装置 的数据存储功能, 使该外部装置能够通过该通信接口访问该存储装置。 解决了相关技 术中必须开机才能使用终端的存储功能所导致的问题, 提高了使用的便利性。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中- 图 1是根据本发明实施例的终端的结构框图; 图 2是根据本发明实施例的数据存储处理方法的流程图; 图 3是根据本发明实施例的数据存储处理装置的结构框图; 图 4是根据本发明实施例的关机存储的实现流程图; 图 5是根据本发明实施例的主机打开关机存储功能的流程图; 图 6是根据本发明实施例的有线连接终端的结构图; 图 7是根据本发明实施例的无线连接终端的结构图。 具体实施方式 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相 互组合。 下面将参考附图并结合实施例来详细说明本发明。 在以下实施例中, 终端可以是移动终端(例如, 手机、 平板电脑等), 也可以是其 他类型的终端。 终端上运行的操作系统也而已是各种类型的系统, 例如, 目前被广泛 使用的安卓系统, 或者是 Windows操作系统、 iOS系统等, 但是并不限于此。 在本实施例中, 提供了一种终端, 图 1是根据本发明实施例的终端的结构框图, 如图 1所示, 该终端包括: 电源接口 12、 存储装置 14 (也可以称为存储模块, 该存储 装置可以是终端中内置的存储装置,可以是终端上插入的存储卡上的存储装置)、通信 接口 16、 处理模块 18, 下面对该结构进行说明。 电源接口 12, 设置为与为该终端供电的外部电源连接; 存储装置 14, 设置为存储数据; 通信接口 16, 设置为与外部装置连接, 为该外部装置访问该存储装置提供接口; 处理模块 18, 设置为在确定该终端为关机状态以及该电源接口连接该外部电源的 情况下, 保持该终端的关机状态并启动该存储装置的数据存储功能, 使该外部装置能 够通过该通信接口访问该存储装置。 通过上述装置, 终端在不开机的情况下, 仅仅启动了数据存储功能, 从而实现了 外部装置对该存储装置的访问, 该访问可以是写入数据、 读取数据、 修改数据、 删除 数据等操作。对于数据存储功能的启动加载与数据存储功能相关的驱动或者程序即可。 可以参考移动 U盘的实现, 在此不再赘述。 优选地, 上述通信接口 16可以包括实现外部装置用来数据存储的协议的模块, 当 然, 实现该协议的模块也可以在处理模块中, 启动该存储装置的数据存储功能即启动 了模块。 即该通信接口 16可以理解为包括一个物理接口 (可以是有线接口, 也可以是 无线接口) 以及通过该物理接口来实现与外部装置通信的通信模块。 该电源接口 12 可以理解为包括一个物理电源接口 (可以是有线接口, 也可以是无线接口), 以及为终 端的存储装置 14、 通信接口 16、 处理模块 18供电的供电模块。 优选地,电源接口 12和通信接口 16可以为同一接口(例如,通用串行总线(USB) 接口); 或者, 电源接口 12和通信接口 16也可以为不同接口, 例如, 通信接口 16可 以包括以下至少之一: 通用串行总线 (USB) 接口、 无线保真 (WIFI) 接口、 蓝牙接 口、 红外线接口; 和 /或, 电源接口 12包括以下至少之一: 无线电源接口、 有线电源 接口。 在本实施例中, 还提供了一种数据存储处理方法, 图 2是根据本发明实施例的数 据存储处理方法的流程图, 如图 2所示, 该流程包括如下步骤: 步骤 S202, 确定终端为关机状态; 步骤 S204, 在该终端的电源接口 12连接外部电源的情况下, 保持该终端的关机 状态并启动该终端中的存储装置 14的数据存储功能,以使外部装置能够访问该存储装 置, 其中, 该外部装置通过该终端中的通信接口 16与该外部装置连接。 优选地, 电源接口 12和通信接口 16可以为同一接口 (例如, 通用串行总线 USB 接口); 或者, 电源接口 12和通信接口 16也可以为不同接口, 例如, 通信接口 16可 以包括以下至少之一: 通用串行总线 (USB) 接口、 无线保真 (WIFI) 接口、 蓝牙接 口、 红外线接口; 和 /或, 电源接口 12包括以下至少之一: 无线电源接口、 有线电源 接口。 在本实施例中, 还提供了一种数据存储处理装置, 图 3是根据本发明实施例的数 据存储处理装置的结构框图, 如图 3所示, 该结构包括: 判断模块 32和主机模块 34, 该判断模块 32和主机模块 34可以实现上述处理模块 18的功能。需要说明的是,判断 模块和主机模块的名称并不应当理解为对该模块的限定, 例如, 判断模块也可以表述 为 "设置为判断终端是否为关机状态的模块"。 以上实施例以及以下实施例及其优选实 施方式中涉及到的模块均可以使用处理器来实现, 例如, 判断模块可以表述为 "一种 设置为判断终端是否为关机状态的处理器"或者 "一种处理器包括判断模块", 这些模 块可以位于不同的处理器中, 也可以位于同一处理中。下面对图 3中的结构进行说明。 判断模块 32, 设置为判断终端是否为关机状态; 主机模块 34, 设置为在该终端的电源接口连接外部电源以及该判断模块判断该终 端为关机状态的情况下, 保持该终端的关机状态并启动该终端中的存储装置的数据存 储功能, 以使外部装置能够访问该存储装置, 其中, 该外部装置通过该终端中的通信 接口与该外部装置连接。 优选地,电源接口 12和通信接口 16可以为同一接口(例如,通用串行总线(USB) 接口); 或者, 电源接口 12和通信接口 16也可以为不同接口, 例如, 通信接口 16可 以包括以下至少之一: 通用串行总线 (USB) 接口、 无线保真 (WIFI) 接口、 蓝牙接 口、 红外线接口; 和 /或, 电源接口 12包括以下至少之一: 无线电源接口、 有线电源 接口。 下面结合一个优选实施例进行说明。 在本实施例中提供了一种关机断电后还能继续使用移动存储功能的方法及终端。 使用该方法的终端处于关机断电状态时, 用户仍然可以将其作为移动 U盘进行数据的 传输和存储工作。 本实施例中的终端可以包括以下几个模块: 通信接口, 通过该接口与外部进行数据的接收和传输; 判断模块, 判断当前是否处于关机存储状态; 主机模块, 可以用来启动移动存储功能; 存储模块, 用来存储数据; 通信模块, 可以用来各个终端内部的数据传输, 也可以用来终端和外部装置之间 的数据传输通道; 供电模块, 给上述模块供电; 电源接口, 外部直流电源可通过该接口给终端供电。 图 4是根据本发明实施例的关机存储的实现流程图, 如图 4所示, 该流程如下步 骤: 步骤 S402, 终端通过通信接口与 PC连接, 通信接口通常为 USB口, 终端能通过 USB口获取一定的电压, 若通信接口采用无线通讯协议, 则终端通过电源接口获取一 定的电压; 步骤 S404, 供电模块通过获取到的电压, 为终端上述模块提供电源; 步骤 S406, 主机模块获得供电通知, 判断模块通过当前电源状态判断出当前处于 关机状态, 并判断出当前通信接口已连接 (例如, 可以通过供电模块提供的电压来判 断), 进而得出终端是否处于关机移动存储状态的结论, 如果不是则退出; 步骤 S408, 主机模块从判断模块处获取到当前状态为关机存储, 则打开关机移动 存储功能, 该功能仅打开与移动存储有关的通信模块和存储模块, 通过接口协议控制 通信接口与 PC间的通信。 打开通信模块和存储模块的驱动加载过程可以如图 5所示。 步骤 S410, 通信接口通过通信模块与主机模块及存储模块相连, 在主机模块的控 制下, 将存储模块的数据与 PC进行传输, 实现移动 U盘的功能。 图 5是根据本发明实施例的主机打开关机存储功能的流程图, 如图 5所示, 该流 程包括如下: 牛聰
少 S502, 加载存储模块的驱动程序; 牛聰
少 S504, 将存储模块加载至文件系统; 牛聰
少 S506, 加载通信模块驱动程序; 牛聰
少 S508, 加载通信协议控制程序; 牛聰
少 S510, 组成可实现存储功能的小系统。 通过上述方法和终端, 在终端关机状态下, 也能实现 U盘的移动存储功能, 省去 无谓开机所消耗的时间及电量, 使用户的实际使用更为便捷有效, 为消费者带来良好 的用户体验。 下面结合两个优选例子来进行说明。 图 6是根据本发明实施例的有线连接终端的结构图。 下面结合图 6进行说明。 处于关机断电状态下的某终端, 通过通信接口, 以及连接线与电脑相连。 该通信接口可以是 USB接口, 或者其他带电源 pin脚的接口。 这些接口有个共同 的特点, 即既可以进行数据传输, 也能提供一定的电压给终端。 下面以 USB连接为例说明该终端的工作流程: 供电模块通过一定的电路与通信接口相连, 在通信接口与个人电脑 (Personal
Computer, 简称为 PC)通过连接线连接后, 供电模块获取到了一定的电压, 并通过该 模块的供电电路对判断模块、 主机模块、 存储模块、 通信模块供电。 判断模块在上电后通过对电源状态的读取得知当前处于关机断电状态, 又通过供 电模块对其的供电, 得知当前处于供电模块供电状态, 此状态被定义为关机移动存储 状态。 主机模块在得到供电模块的供电后, 即开始读取判断模块的结果, 当从判断模块 处获知当前状态为关机移动存储状态时, 即打开关机移动存储功能。 该功能主要是通 过接口的传输协议控制通信接口与 PC 间的数据传输, 并能将这些数据通过通信模块 放入存储模块中。 其涉及到的存储功能与开机状态下的存储功能无差别, 差别在于打 开的程序有所不同。 关机存储模式下, 主机仅加载跟存储有关的功能及程序, 是一个 小系统, 而开机存储模式下, 主机会加载整个手机的操作系统以及所有外设驱动, 是 大系统。 当主机获知为关机移动存储状态时, 会加载存储模块的驱动, 将存储模块作为文 件系统加载, 加载 U盘通信协议控制程序, 将终端作为 U盘连接至 PC。 在数据的传输过程中, 主机模块主要起到控制作用, 通过传输协议控制通信接口 产生相应的信号, 和接收相应的 PC 的信号, 从中获取数据并通过通信模块写入存储 单元, 实现移动 U盘存储功能。 图 7是根据本发明实施例的无线连接终端的结构图。 下面结合图 7进行说明。 处于关机断电状态下的某终端, 通过通信接口, 与其他终端相连。 该通信接口可以是 WiFi, 或者蓝牙等无线通讯方式。 下面以 WiFi连接为例, 说明终端的关机移动存储的工作流程: 供电模块通过一定的电路与电源接口相连, 当终端外接直流电源时, 供电模块通 过电源接口获取到一定的电压, 并通过该模块的供电电路对判断模块、 主机模块、 存 储模块、 通信模块供电。 判断模块通过对电源状态的读取得知当前处于关机断电状态, 又通过供电模块对 其的供电, 得知当前处于供电模块供电状态, 此状态被定义为关机移动存储状态。 主机模块在得到供电模块的供电后, 即开始读取判断模块的结果, 当从判断模块 处获知当前状态为关机移动存储状态时, 即打开关机移动存储功能。 该功能主要是通 过接口的传输协议控制通信接口与 PC 间的数据传输, 并能将这些数据通过通信模块 放入存储模块中。 其涉及到的存储功能与开机状态下的存储功能无差别, 差别在于打 开的程序有所不同。 关机存储模式下, 主机仅加载跟存储有关的功能及程序, 是一个 小系统, 而开机存储模式下, 主机会加载整个手机的操作系统以及所有外设驱动, 是 大系统。 当主机获知为关机移动存储状态时, 会加载存储模块的驱动, 将存储模块作为文 件系统加载, 加载 WiFi通信协议控制程序, 将终端作为 U盘连接至 PC。 在数据的传输过程中, 主机模块主要起到控制作用, 通过传输协议控制通信接口 产生相应的信号, 和接收相应的 PC 的信号, 从中获取数据并通过通信模块写入存储 单元, 实现移动 U盘存储功能。 工业实用性 本发明实施例提供了一种能够在终端关机状态下就能够实现移动 U盘的数据存储 的装置, 该装置可以通过对现有的终端的相应的单元或者接口就可以实现, 具有良好 的工业实用性。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 或者将它们分别制作成各个集成电路模 块, 或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明 不限制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种终端, 包括:
电源接口, 设置为与为所述终端供电的外部电源连接;
存储装置, 设置为存储数据;
通信接口, 设置为与外部装置连接, 为所述外部装置访问所述存储装置提 供接口;
处理模块, 设置为在确定所述终端为关机状态以及所述电源接口连接所述 外部电源的情况下, 保持所述终端的关机状态并启动所述存储装置的数据存储 功能, 使所述外部装置能够通过所述通信接口访问所述存储装置。
2. 根据权利要求 1所述的终端,其中,所述电源接口和所述通信接口为同一接口, 或者, 所述电源接口和所述通信接口为不同接口。
3. 根据权利要求 2所述的终端, 其中, 所述电源接口和所述通信接口为通用串行 总线 USB接口。
4. 根据权利要求 2所述的终端, 其中, 所述通信接口包括以下至少之一: 通用串 行总线 USB接口、 无线保真 WIFI接口、 蓝牙接口、 红外线接口; 和 /或, 所述 电源接口包括以下至少之一: 无线电源接口、 有线电源接口。
5. 一种数据存储处理方法, 包括:
确定终端为关机状态;
在所述终端的电源接口连接外部电源的情况下, 保持所述终端的关机状态 并启动所述终端中的存储装置的数据存储功能, 以使外部装置能够访问所述存 储装置,其中,所述外部装置通过所述终端中的通信接口与所述外部装置连接。
6. 根据权利要求 5所述的方法,其中,所述电源接口和所述通信接口为同一接口, 或者, 所述电源接口和所述通信接口为不同的接口。
7. 根据权利要求 6所述的方法, 其中,
所述电源接口和所述通信接口为通用串行总线 USB接口;
或者, 在所述电源接口和所述通信接口为不同的接口的情况下, 所述通信接口包 括以下至少之一: 通用串行总线 USB接口、 无线保真 WIFI接口、 蓝牙接口、 红外线接口; 和 /或, 所述电源接口包括以下至少之一: 无线电源接口、 有线电 源接口。
8. 一种数据存储处理装置, 包括:
判断模块, 设置为判断终端是否为关机状态;
主机模块, 设置为在所述终端的电源接口连接外部电源以及所述判断模块 判断所述终端为关机状态的情况下, 保持所述终端的关机状态并启动所述终端 中的存储装置的数据存储功能, 以使外部装置能够访问所述存储装置, 其中, 所述外部装置通过所述终端中的通信接口与所述外部装置连接。
9. 根据权利要求 8所述的装置,其中,所述电源接口和所述通信接口为同一接口, 或者, 所述电源接口和所述通信接口为不同的接口。
10. 根据权利要求 8所述的装置, 其中,
所述电源接口和所述通信接口为通用串行总线 USB接口;
或者,
在所述电源接口和所述通信接口为不同的接口的情况下, 所述通信接口包 括以下至少之一: 通用串行总线 USB接口、 无线保真 WIFI接口、 蓝牙接口、 红外线接口; 和 /或, 所述电源接口包括以下至少之一: 无线电源接口、 有线电 源接口。
PCT/CN2013/082095 2013-06-26 2013-08-22 数据存储处理方法、装置及终端 WO2014205909A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310260326.3 2013-06-26
CN201310260326.3A CN104252318A (zh) 2013-06-26 2013-06-26 数据存储处理方法、装置及终端

Publications (1)

Publication Number Publication Date
WO2014205909A1 true WO2014205909A1 (zh) 2014-12-31

Family

ID=52140923

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082095 WO2014205909A1 (zh) 2013-06-26 2013-08-22 数据存储处理方法、装置及终端

Country Status (2)

Country Link
CN (1) CN104252318A (zh)
WO (1) WO2014205909A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872200A (zh) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 手机及usb系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247316A (zh) * 2007-02-13 2008-08-20 中国移动通信集团公司 一种通信终端的数据共享方法
US20090292883A1 (en) * 2008-05-23 2009-11-26 Nokia Corporation Apparatus, Method, and Computer Program Product for Memory Validation Operations in a Memory
CN101827169A (zh) * 2009-03-03 2010-09-08 Lg电子株式会社 移动终端和用于在移动终端中显示数据的方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2783417Y (zh) * 2005-03-09 2006-05-24 深圳市顶星数码网络技术有限公司 可作为移动存储设备的笔记本电脑
CN101187910B (zh) * 2007-12-25 2011-05-11 中兴通讯股份有限公司 无线终端系统及其控制方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247316A (zh) * 2007-02-13 2008-08-20 中国移动通信集团公司 一种通信终端的数据共享方法
US20090292883A1 (en) * 2008-05-23 2009-11-26 Nokia Corporation Apparatus, Method, and Computer Program Product for Memory Validation Operations in a Memory
CN101827169A (zh) * 2009-03-03 2010-09-08 Lg电子株式会社 移动终端和用于在移动终端中显示数据的方法

Also Published As

Publication number Publication date
CN104252318A (zh) 2014-12-31

Similar Documents

Publication Publication Date Title
JP5726240B2 (ja) 無線インターネットアクセス装置、sd制御チップ、及びデータ通信の方法
US8943232B2 (en) System method for enumerating client devices embedded in a user device during reboot, wake up or restart of user device
WO2021043222A1 (zh) 终端设备充电方法、装置和存储介质
TWI677214B (zh) 擴展塢裝置、電子裝置及mac位址複製方法
TW201342026A (zh) 將電腦系統從睡眠狀態喚醒的方法及設備
US20100064036A1 (en) Peripheral device operation method, peripheral device and host
TW201227516A (en) System and method for facilitating wireless communication during a pre-boot phase of a computing device
US10162402B2 (en) Serial communication method
US8850086B2 (en) SD switch box in a cellular handset
KR20110049121A (ko) 디바이스 활성화 방법 및 장치
KR20150023877A (ko) 주변 디바이스에 대한 효율적인 저전력 종료 시퀀스
US11392318B2 (en) Electronic device and method of utilizing storage space thereof
JP2001242965A (ja) コンピュータシステム、情報処理装置、及び電源供給システム
US20200150976A1 (en) Electronic device and method for transceiving control signal
US20130194968A1 (en) Communication device, program and communication method
US9729335B2 (en) Method for remotely accessing data and local apparatus using the method
TW202028999A (zh) 傳輸介面電路
US20150169039A1 (en) Electronic Apparatus, Method and Storage Medium
JP2007328534A (ja) 情報処理装置および情報処理装置の制御方法
WO2013049980A1 (zh) 一种转接装置及转接方法
WO2014205909A1 (zh) 数据存储处理方法、装置及终端
WO2016045363A1 (zh) Cpu通过hsic总线接口控制wifi模块的方法
TWI735585B (zh) 具有網路功能的資料管理電路及基於網路的資料管理方法
US7890678B2 (en) Portable computer having auxiliary IO apparatus and system setup method thereof
KR101321426B1 (ko) 무선 광 디스크 장치와 그 구동 방법

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

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

Country of ref document: EP

Kind code of ref document: A1