WO2017166633A1 - 一种数据传输方法、用电设备以及数据线 - Google Patents

一种数据传输方法、用电设备以及数据线 Download PDF

Info

Publication number
WO2017166633A1
WO2017166633A1 PCT/CN2016/096841 CN2016096841W WO2017166633A1 WO 2017166633 A1 WO2017166633 A1 WO 2017166633A1 CN 2016096841 W CN2016096841 W CN 2016096841W WO 2017166633 A1 WO2017166633 A1 WO 2017166633A1
Authority
WO
WIPO (PCT)
Prior art keywords
memory
data line
data
power
powered device
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.)
Ceased
Application number
PCT/CN2016/096841
Other languages
English (en)
French (fr)
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.)
Le Holdings Beijing Co Ltd
Lemobile Information Technology (Beijing) Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Lemobile Information Technology (Beijing) 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 Le Holdings Beijing Co Ltd, Lemobile Information Technology (Beijing) Co Ltd filed Critical Le Holdings Beijing Co Ltd
Publication of WO2017166633A1 publication Critical patent/WO2017166633A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operations
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operations
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Definitions

  • the present invention relates to the field of data transmission technologies, and in particular, to a data transmission method, a power consumption device, and a data line.
  • the data backup in the prior art mainly has two implementation means: backing up the data stored in the power device to the cloud disk; or, by connecting the storage device, backing up the data stored in the power device to the storage device.
  • Backing up data through the cloud disk is easy to operate, but the data after backup is stored in the network, and the security of the network storage is more and more questioned. Therefore, there is a big security risk in using the cloud disk to back up data.
  • backing up data through a storage device is a method frequently used by users, the method must complete data backup when an additional storage device is connected, the operation is complicated, and the data backup efficiency is low.
  • the embodiments of the present invention provide a data transmission method, a power consumption device, and a data line, which are used to solve the security risks existing in the prior art through the cloud disk backup data, and the data existing by the backup data of the storage device.
  • an embodiment of the present invention provides a data backup method, including:
  • the power device is connected to the power supply device through the data line;
  • the powered device When the powered device obtains electrical energy from the power supply device through the data line, the powered device detects whether a memory is disposed in the data line;
  • the powered device If the powered device detects that a memory is disposed in the data line, the powered device performs data transmission with the memory.
  • the detecting, by the electrical device, detecting whether the data line is provided with a memory includes:
  • the electrical device detects an identifier of the data line
  • the powered device determines that the memory is provided in the data line.
  • the power device queries a data transmission protocol of the data line
  • the powered device and the memory perform data transmission through the data transmission protocol.
  • the powered device acquires data stored in a memory provided in the data line.
  • an implementation is further provided, wherein the power of the data line is provided by the power supply device.
  • the powered device is connected to the power supply device through the data line, and when the powered device obtains the electrical energy from the power supply device through the data line, the powered device detects whether the data line is in the data line.
  • a memory is provided, and if the powered device detects that a memory is disposed in the data line, the powered device performs data transmission with the memory. Therefore, the embodiment of the present invention realizes data transmission between the power device and the data line while the power supply device is charging the power device through the data line provided with the memory, and uses the solution to back up the data stored on the power device. The network security risk brought by uploading data from the powered device to the network cloud disk is avoided.
  • the embodiment of the present invention can realize the backup of the data in the powered device by relying only on the data lines necessary for the electrical device, without The electric device is additionally connected to other storage devices, and only needs to be connected to the data line to be charged, and the data stored in the electric device can be backed up while charging the electric device, the operation is simple, the security is high, and the data backup is improved. effectiveness.
  • the embodiment of the present invention further provides a data backup method, including:
  • the data lines provided with the memory are respectively connected to the power device and the power supply device;
  • the memory When the data line provided with the memory supplies the power of the power supply device to the power device, the memory performs data transmission with the power device.
  • the memory performs data transmission with the powered device through a data transmission protocol of the data line.
  • the memory receives data sent by the powered device.
  • the memory transmits data stored by the memory to the powered device.
  • an implementation is further provided, wherein the power of the data line is provided by the power supply device.
  • the power device and the power supply device are respectively connected by the data line provided with the memory, and the data line provided with the memory supplies the power of the power supply device to the power device.
  • the memory performs data transmission with the powered device. Therefore, the embodiment of the present invention realizes data transmission between the power device and the data line while the power supply device is charging the power device through the data line provided with the memory, and uses the solution to back up the data stored on the power device. The network security risk brought by uploading data from the powered device to the network cloud disk is avoided.
  • the embodiment of the present invention can realize the backup of the data in the powered device by relying only on the data lines necessary for the electrical device, without The electric device is additionally connected to other storage devices, and only needs to be connected to the data line to be charged, and the data stored in the electric device can be backed up while charging the electric device, the operation is simple, the security is high, and the data backup is improved. effectiveness.
  • an embodiment of the present invention provides an electrical device, wherein the electrical device is connected to the power supply device through a data line, and the powered device includes:
  • a detecting module configured to detect whether a memory is disposed in the data line when the power device obtains power from the power supply device through the data line;
  • a transmission module configured to perform data transmission with the memory if the detection module detects that a memory is disposed in the data line.
  • detecting module is specifically configured to:
  • the detected identifier of the data line is the same as the identifier of the preset data line in which the memory is set; or, if the detected identifier of the data line is different from the preset identifier of the data line in which the memory is set In the same manner, it is determined that a memory is provided in the data line.
  • Transmission module specifically for:
  • the power device is connected to the power supply device through the data line, and when the power device obtains the power from the power supply device through the data line, the monitoring module in the power device detects the data line. Whether a memory is provided, and if the detecting module detects that a memory is disposed in the data line, the transmission module in the power device performs data transmission with the memory. Therefore, the embodiment of the present invention realizes data transmission between the power device and the data line while the power supply device is charging the power device through the data line provided with the memory, and uses the solution to back up the data stored on the power device. The network security risk brought by uploading data from the powered device to the network cloud disk is avoided.
  • the embodiment of the present invention can realize the backup of the data in the powered device by relying only on the data lines necessary for the electrical device, without The electric device is additionally connected to other storage devices, and only needs to be connected to the data line to be charged, and the data stored in the electric device can be backed up while charging the electric device, the operation is simple, the security is high, and the data backup is improved. effectiveness.
  • an embodiment of the present invention provides a data line, including:
  • connection line for respectively connecting the power device and the power supply device; and, for supplying the power of the power supply device to the power device;
  • a memory configured to perform data transmission with the powered device when the connecting line supplies power of the power supply device to the powered device.
  • Data transmission is performed with the powered device through a data transmission protocol of the data line.
  • connection line is further used to:
  • the power of the power supply device is provided to the memory.
  • connection lines in the data line are respectively connected to the power consumption device and the power supply device, and the power of the power supply device is supplied to the power consumption device, and the connection line in the data line is When the power of the power supply device is supplied to the power device, the memory in the data line performs data transmission with the power device. Therefore, the embodiment of the present invention realizes data transmission between the power device and the data line while the power supply device is charging the power device through the data line provided with the memory, and uses the solution to back up the data stored on the power device. The network security risk brought by uploading data from the powered device to the network cloud disk is avoided.
  • the embodiment of the present invention can realize the backup of the data in the powered device by relying only on the data lines necessary for the electrical device, without The electric device is additionally connected to other storage devices, and only needs to be connected to the data line to be charged, and the data stored in the electric device can be backed up while charging the electric device, the operation is simple, the security is high, and the data backup is improved. effectiveness.
  • Embodiment 1 is a schematic flowchart of Embodiment 1 of a data transmission method according to an embodiment of the present invention
  • FIG. 2 is a diagram showing an example of a data transmission system according to an embodiment of the present invention.
  • Embodiment 3 is a schematic flowchart of Embodiment 2 of a data transmission method according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a power-consuming device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a data line according to an embodiment of the present invention.
  • the word “if” as used herein may be interpreted as “when” or “when” or “in response to determining” or “in response to detecting.”
  • the phrase “if determined” or “if detected (conditions or events stated)” may be interpreted as “when determined” or “in response to determination” or “when detected (stated condition or event) “Time” or “in response to a test (condition or event stated)”.
  • FIG. 1 is a schematic flowchart of Embodiment 1 of a data transmission method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
  • the powered device is connected to the power supply device through a data line.
  • the powered device involved in the embodiments of the present invention may include, but is not limited to, a mobile terminal, a personal computer, a tablet computer, a mobile phone, a personal digital assistant, a wireless handheld device, an MP3 player, an MP4 player, and the like.
  • data lines involved in the embodiments of the present invention may include, but are not limited to, a Universal Serial Bus (USB) data line and a serial data line.
  • USB Universal Serial Bus
  • the power supply device involved in the embodiments of the present invention may include, but is not limited to, a terminal and a power adapter.
  • FIG. 2 is an example diagram of a data transmission system according to an embodiment of the present invention.
  • the power device can obtain power through the data line. The power supplied by the device.
  • the data line supplies the power provided by the power supply device to the power IC in the power device and the memory in the data line, and after the power IC obtains the power, the power device is the power device.
  • Other devices in the system provide power.
  • the built-in controller of the electric device is connected to the memory in the electric device, and the data stored in the electric device can be interacted with other devices through the processing of the controller, and the electric device is used.
  • the following operations of S102 and S103 can be completed by the built-in controller.
  • the power device When the power device obtains power from the power supply device through the data line, the power device detects whether a memory is set in the data line.
  • the power supply device supplies power to the power device through the data line, and the power device automatically detects whether the memory is set in the data line.
  • the method for detecting whether the memory is set in the data line by the electrical device may include but is not limited to:
  • the electrical equipment detects the identity of the data line
  • the powered device determines that the data line is provided with a memory.
  • the format of the identifier of the data line provided with the memory or the identifier of the data line provided with the memory may be preset in the powered device according to actual needs.
  • the identifier of the data line may specifically include, but is not limited to, at least one of the following identifiers: a string identifier, a configuration descriptor identifier, and an interface descriptor identifier.
  • the format of the identifier of the data line which is preset in the power device, may include, but is not limited to, at least one of the following characters: the character at a certain position is a specified character, a character arrangement manner, and a character number.
  • the power device when the power device detects the character string identifier of the data line, the power device may set the character string identifier of the data line in which the memory is set to A in advance, and automatically detect the data after the power device connects the data line.
  • the string identifier of the line If the string identifier of the data line detected by the powered device is also A, that is, the identifier of the data line detected by the powered device is the same as the identifier of the preset data line with the memory set, The electrical device determines that a memory is provided in the data line.
  • the power device may pre-set the character format of the last 3 digits of the character string identifier of the data line provided with the memory as an alpha-numeric-letter, and automatically detect the string of the data line after connecting the data line with the electrical device.
  • the last three digits of the character string of the data line detected by the electrical device are also alpha-numeric-letter, that is, the identifier of the data line detected by the powered device and the preset setting with memory.
  • the format of the identification of the data lines is the same, and the electrical device determines that the memory is set in the data line.
  • the power device obtains the power from the power supply device through the data line, and the memory in the data line can also obtain the power from the power supply device, that is, the power of the data line. It is provided by the power supply equipment.
  • the implementation method of data transmission by the electrical device and the memory may include, but is not limited to:
  • the data transfer protocol of the data line is transmitted by the power device and the memory set in the data line. lose.
  • the data transmission protocol of the data line specifically includes but is not limited to: USB "On-Go” (USB-OTG) protocol.
  • the powered device can be enumerated as a USB-OTG master device, and the memory can be enumerated as USB-OTG slave device.
  • the powered device is enumerated as a USB-OTG slave device, and the memory is enumerated as a USB-OTG master device. That is, the USB-OTG master device and the USB-OTG slave device can perform data transmission based on the USB-OTG protocol.
  • the data transmission performed by the electrical device and the memory set in the data line may include the following two implementation manners:
  • the first type the electrical device sends the data stored by the powered device to the memory set in the data line. That is, the powered device stores the data stored by itself into the memory set in the data line, and the memory set in the data line can perform backup of the data.
  • the electrical device acquires the data stored in the memory set in the data line. That is, the data stored in the memory set in the data line can be stored in the power device, and the power device can perform backup of the data.
  • the memory is enumerated as a USB-OTG slave device, and the power device transmits the data stored by the power device to the memory set in the data line; or If the powered device is enumerated as a USB-OTG slave device, the memory is enumerated as a USB-OTG master device, and the power device acquires data stored in the memory set in the data line.
  • the power device is connected to the power supply device through the data line, and when the power device obtains the power from the power supply device through the data line, the power device detects whether the memory is set in the data line, and if the power device detects the data line A memory is provided, and the power device and the memory perform data transmission. Therefore, in the embodiment of the present invention, the data line of the memory device is used to realize the data transmission of the power device and the data line while the power supply device is charging the power device, and the data stored on the power device is used by using the solution. Backup of the line avoids the network security risk caused by uploading data from the powered device to the network cloud disk.
  • the embodiment of the present invention can realize the backup of the data in the powered device by relying only on the data lines necessary for the electrical device, without The electric device is additionally connected to other storage devices, and only needs to be connected to the data line to be charged, and the data stored in the electric device can be backed up while charging the electric device, the operation is simple, the security is high, and the data backup is improved. effectiveness.
  • the embodiment of the invention further provides a data transmission method, and the method is a specific implementation manner of implementing a data transmission method on the data line side.
  • FIG. 3 is a schematic flowchart of Embodiment 2 of a data transmission method according to an embodiment of the present invention. As shown in FIG. 3 , the method includes the following steps:
  • the data lines provided with the memory are respectively connected to the power device and the power supply device.
  • the powered device involved in the embodiments of the present invention may include, but is not limited to, a mobile terminal, a personal computer, a tablet computer, a mobile phone, a personal digital assistant, a wireless handheld device, an MP3 player, an MP4 player, and the like.
  • the data lines involved in the embodiments of the present invention may include, but are not limited to, a USB data line and a serial data line.
  • the power supply device involved in the embodiments of the present invention may include, but is not limited to, a terminal and a power adapter.
  • the data line provided with the memory supplies the power provided by the power supply device to the memory in the power device and the data line.
  • the data line provided with the memory supplies the power provided by the power supply device to the memory in the power device and the data line.
  • the data line supplies the power provided by the power supply device to the power IC in the power device and the memory in the data line, and after the power IC obtains the power, the power device provides the other devices in the power device. Electrical energy.
  • the memory and the power device perform data transmission, including:
  • the memory set in the data line transmits data to and from the powered device through the data transmission protocol of the data line.
  • the data transmission protocol of the data line specifically includes but is not limited to: the USB-OTG protocol.
  • the memory can be enumerated as a USB-OTG slave device, and the power device can be enumerated as a USB-OTG master device.
  • the memory enumeration is a USB-OTG master device, and the powered device is enumerated as a USB-OTG slave device. That is, the USB-OTG master device and the USB-OTG slave device can perform data transmission based on the USB-OTG protocol.
  • the data transmission between the memory and the powered device may include the following two implementation manners:
  • the first type the memory receives data transmitted by the powered device. That is, the data stored in the power device itself can be stored in a memory set in the data line, and the memory set in the data line can perform backup of the data.
  • the memory sends the data stored in the memory to the powered device. That is, the data stored in the memory set in the data line can be stored in the powered device, and the powered device can perform backup of the data.
  • the power device is enumerated as a USB-OTG master device, and the memory receives data sent by the power device; or the memory is enumerated as a USB-OTG master device.
  • the powered device is enumerated as a USB-OTG slave device, and the memory transmits the data stored in the memory to the powered device.
  • the power device and the power supply device are respectively connected through the data lines provided with the memory.
  • the data line provided with the memory supplies the power of the power supply device to the power device
  • the memory and the power device perform data transmission. Therefore, the embodiment of the present invention realizes data transmission between the power device and the data line while the power supply device is charging the power device through the data line provided with the memory, and uses the solution to back up the data stored on the power device. The network security risk brought by uploading data from the powered device to the network cloud disk is avoided.
  • the embodiment of the present invention can realize the backup of the data in the powered device by relying only on the data lines necessary for the electrical device, without The electric device is additionally connected to other storage devices, and only needs to be connected to the data line to be charged, and the data stored in the electric device can be backed up while charging the electric device, the operation is simple, the security is high, and the data backup is improved. effectiveness.
  • the embodiment of the present invention further provides an apparatus embodiment for implementing the steps and methods in the foregoing data transmission method embodiment.
  • FIG. 4 is provided by the embodiment of the present invention. Schematic diagram of the structure of the electrical equipment
  • the powered device is connected to the power supply device through a data line, and the powered device includes:
  • the detecting module 41 is configured to detect whether a memory is disposed in the data line when the power device obtains the power from the power supply device through the data line;
  • the transmission module 42 is configured to perform data transmission with the memory if the detection module detects that a memory is disposed in the data line.
  • the detection module 41 and the transmission module 42 can be integrated into a controller built in the electrical device, and the electrical device can implement data interaction with other devices through the controller.
  • the detecting module 41 is specifically configured to:
  • the data is determined.
  • a memory is provided in the line.
  • the transmission module 42 is specifically configured to:
  • the transmission module 42 is specifically configured to:
  • the power device is connected to the power supply device through the data line, and when the power device obtains the power from the power supply device through the data line, the detection module in the power device detects whether the memory is set in the data line, and if the detection module detects A memory is provided in the data line, and the data is transmitted by the transmission module and the memory in the power device. Therefore, the embodiment of the present invention realizes data transmission between the power device and the data line while the power supply device is charging the power device through the data line provided with the memory, and uses the solution to back up the data stored on the power device. The network security risk brought by uploading data from the powered device to the network cloud disk is avoided.
  • the embodiment of the present invention can realize the backup of the data in the powered device by relying only on the data lines necessary for the electrical device, without The electric device is additionally connected to other storage devices, and only needs to be connected to the data line to be charged, and the data stored in the electric device can be backed up while charging the electric device, the operation is simple, the security is high, and the data backup is improved. effectiveness.
  • the embodiment of the present invention further provides an apparatus embodiment for implementing the steps and methods in the foregoing data transmission method embodiment.
  • FIG. 5 is provided by the embodiment of the present invention.
  • a connecting line 51 for respectively connecting the electric device and the power supply device; and for supplying the electric energy of the power supply device to the electric device;
  • the memory 52 is configured to connect the power line to the power device when the power is supplied to the power device, and the power device Data transfer.
  • the memory 52 is specifically configured to: perform data transmission with the powered device through a data transmission protocol of the data line.
  • the memory 52 is specifically configured to: receive data sent by the powered device; or send the data stored in the memory 52 to the powered device.
  • connection line 51 is further configured to: supply power of the power supply device to the memory 52.
  • connection lines in the data line are respectively connected to the electrical equipment and the power supply equipment, and the power of the power supply equipment is supplied to the power equipment, and the connection line in the data line supplies the power of the power supply equipment to the power equipment.
  • the memory in the data line and the powered device perform data transmission. Therefore, the embodiment of the present invention realizes data transmission between the power device and the data line while the power supply device is charging the power device through the data line provided with the memory, and uses the solution to back up the data stored on the power device. The network security risk brought by uploading data from the powered device to the network cloud disk is avoided.
  • the embodiment of the present invention can realize the backup of the data in the powered device by relying only on the data lines necessary for the electrical device, without The electric device is additionally connected to other storage devices, and only needs to be connected to the data line to be charged, and the data stored in the electric device can be backed up while charging the electric device, the operation is simple, the security is high, and the data backup is improved. effectiveness.
  • the aforementioned program can be stored in a computer class reading storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: ROM, RAM, disk, or the like, which can store various program codes.
  • the device embodiments described above are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, and the components displayed as units may or may not be It is not a physical unit, it can be located in one place, or it can be distributed to at least two network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the embodiments of the present invention. Those of ordinary skill in the art can understand and implement without any creative effort.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Power Sources (AREA)

Abstract

一种数据备份方法、用电设备以及数据线。一方面,用电设备通过数据线连接供电设备(S101),所述用电设备通过所述数据线从所述供电设备获取电能时,所述用电设备检测所述数据线中是否设置有存储器(S102),若所述用电设备检测到所述数据线中设置有存储器,所述用电设备与所述存储器进行数据传输(S103)。用以解决现有技术中通过云盘备份数据存在的安全性隐患,以及通过存储设备备份数据存在的数据备份效率较低的问题。

Description

一种数据传输方法、用电设备以及数据线
本申请基于申请号为CN2016101850464、申请日为2016年3月29日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
【技术领域】
本发明涉及数据传输技术领域,尤其涉及一种数据传输方法、用电设备以及数据线。
【背景技术】
在目前的终端、智能家电等用电设备中存储有大量用户数据,为了防止用电设备被盗或更换用电设备时的数据导入带来的困扰,将用电设备中存储的数据进行备份变得尤为重要。而现有技术中的数据备份主要有两种实现手段:将用电设备中存储的数据备份到云盘;或者,通过连接存储设备,将用电设备中存储的数据备份到存储设备上。
在实现本发明过程中,发明人发现现有技术中至少存在如下问题:
通过云盘备份数据操作简便,但是备份后的数据存储于网络,而网络存储的安全性受到越来越多的质疑,因此,利用云盘备份数据存在较大的安全性隐患。另外,虽然通过存储设备备份数据是用户经常采用的方式,但是该方法必须在连接了额外的存储设备时才能完成数据备份,操作复杂,数据备份效率较低。
【发明内容】
有鉴于此,本发明实施例提供了一种数据传输方法、用电设备以及数据线,用以解决现有技术中通过云盘备份数据存在的安全性隐患,以及通过存储设备备份数据存在的数据备份效率较低的问题。
为了实现上述发明目的,本发明实施例提供了一种数据备份方法,包括:
用电设备通过数据线连接供电设备;
所述用电设备通过所述数据线从所述供电设备获取电能时,所述用电设备检测所述数据线中是否设置有存储器;
若所述用电设备检测到所述数据线中设置有存储器,所述用电设备与所述存储器进行数据传输。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述用电设备检测所述数据线中是否设置有存储器,包括:
所述用电设备检测所述数据线的标识;
若所述用电设备检测到的所述数据线的标识与预设的设置有存储器的数据线的标识相同;或者,若所述用电设备检测到的所述数据线的标识与预设的设置有存储器的数据线的标识的格式相同,所述用电设备确定所述数据线中设置有存储器。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述用电设备与所述存储器进行数据传输,包括:
所述用电设备查询所述数据线的数据传输协议;
所述用电设备与所述存储器通过所述数据传输协议进行数据传输。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述用电设备与所述存储器进行数据传输,包括:
所述用电设备将所述用电设备所存储的数据发送到所述数据线中设置的存储器;或者,
所述用电设备获取所述数据线中设置的存储器所存储的数据。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述数据线的电能为所述供电设备提供的。
上述技术方案中的一个技术方案具有如下有益效果:
本发明实施例中,用电设备通过数据线连接供电设备,所述用电设备通过所述数据线从所述供电设备获取电能时,所述用电设备检测所述数据线中是否 设置有存储器,若所述用电设备检测到所述数据线中设置有存储器,所述用电设备与所述存储器进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。
为了实现上述发明目的,本发明实施例还提供了一种数据备份方法,包括:
设置有存储器的数据线分别连接用电设备和供电设备;
所述设置有存储器的数据线将所述供电设备的电能提供给所述用电设备时,所述存储器与所述用电设备进行数据传输。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述存储器与所述用电设备进行数据传输,包括:
所述存储器通过所述数据线的数据传输协议与所述用电设备进行数据传输。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述存储器与所述用电设备进行数据传输,包括:
所述存储器接收所述用电设备发送的数据;或者,
所述存储器将所述存储器所存储的数据发送给所述用电设备。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述数据线的电能为所述供电设备提供的。
上述技术方案中的一个技术方案具有如下有益效果:
本发明实施例中,通过设置有存储器的数据线分别连接用电设备和供电设备,所述设置有存储器的数据线将所述供电设备的电能提供给所述用电设备时, 所述存储器与所述用电设备进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。
为了实现上述发明目的,本发明实施例提供了一种用电设备,用电设备通过数据线连接供电设备,所述用电设备包括:
检测模块,用于所述用电设备通过所述数据线从所述供电设备获取电能时,检测所述数据线中是否设置有存储器;
传输模块,用于若所述检测模块检测到所述数据线中设置有存储器,与所述存储器进行数据传输。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述检测模块,具体用于:
检测所述数据线的标识;
若检测到的所述数据线的标识与预设的设置有存储器的数据线的标识相同;或者,若检测到的所述数据线的标识与预设的设置有存储器的数据线的标识的格式相同,确定所述数据线中设置有存储器。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述传输模块,具体用于:
查询所述数据线的数据传输协议;
与所述存储器通过所述数据传输协议进行数据传输。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述 传输模块,具体用于:
将所述用电设备所存储的数据发送到所述数据线中设置的存储器;或者,
获取所述数据线中设置的存储器所存储的数据。
上述技术方案中的一个技术方案具有如下有益效果:
本发明实施例中,用电设备通过数据线连接供电设备,所述用电设备通过所述数据线从所述供电设备获取电能时,所述用电设备中的监测模块检测所述数据线中是否设置有存储器,若所述检测模块检测到所述数据线中设置有存储器,所述用电设备中的传输模块与所述存储器进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。
为了实现上述发明目的,本发明实施例提供了一种数据线,包括:
连接线,用于分别连接用电设备和供电设备;以及,用于将所述供电设备的电能提供给所述用电设备;
存储器,用于所述连接线将所述供电设备的电能提供给所述用电设备时,与所述用电设备进行数据传输。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述存储器,具体用于:
通过所述数据线的数据传输协议与所述用电设备进行数据传输。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述存储器,具体用于:
接收所述用电设备所发送的数据;或者,
将所述存储模块所存储的数据发送给所述用电设备。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述连接线,还用于:
将所述供电设备的电能提供给所述存储器。
上述技术方案中的一个技术方案具有如下有益效果:
本发明实施例中,所述数据线中的连接线分别连接用电设备和供电设备,以及,将所述供电设备的电能提供给所述用电设备,所述数据线中的连接线将所述供电设备的电能提供给所述用电设备时,所述数据线中的存储器与所述用电设备进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。
【附图说明】
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。
图1是本发明实施例所提供的数据传输方法的实施例一的流程示意图;
图2是本发明实施例所提供的数据传输系统的示例图;
图3是本发明实施例所提供的数据传输方法的实施例二的流程示意图;
图4是本发明实施例所提供的用电设备的结构示意图;
图5是本发明实施例所提供的数据线的结构示意图。
【具体实施方式】
为了更好的理解本发明的技术方案,下面结合附图对本发明实施例进行详细描述。
应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。
实施例一
本发明实施例给出一种数据传输方法,本方法为用电设备侧实现数据传输方法的具体实现方式。请参考图1,其为本发明实施例所提供的数据传输方法的实施例一的流程示意图,如图1所示,该方法包括以下步骤:
S101,用电设备通过数据线连接供电设备。
需要说明的是,本发明实施例中所涉及的用电设备可以包括但不限于:移动终端、个人计算机、平板电脑、手机、个人数字助理、无线手持设备、MP3播放器、MP4播放器等。
需要说明的是,本发明实施例中所涉及的数据线可以包括但不限于:通用串行总线(Universal Serial Bus,USB)数据线、串口数据线。
需要说明的是,本发明实施例中所涉及的供电设备可以包括但不限于:终端、电源适配器。
例如,请参考图2,其为本发明实施例所提供的数据传输系统的示例图,如图2所示,用电设备通过数据线连接供电设备后,用电设备即可通过数据线获取供电设备提供的电能。
具体的,如图2所示,数据线将供电设备所提供的电能提供给用电设备中的电源集成电路(Power IC)和数据线中的存储器,而Power IC获取电能后,为用电设备中的其他器件提供电能。
具体的,如图2所示,用电设备内置控制器,控制器与用电设备中的存储器相连,用电设备内部所存储的数据可以通过控制器的处理与其他设备进行交互,用电设备通过内置的控制器可以完成以下S102与S103的操作。
S102,用电设备通过数据线从供电设备获取电能时,用电设备检测数据线中是否设置有存储器。
本发明实施例中,用电设备与供电设备通过数据线连接后,供电设备通过数据线为用电设备提供电能,用电设备自动检测数据线中是否设置有存储器。
具体的,用电设备检测数据线中是否设置有存储器的方法可以包括但不限于:
用电设备检测数据线的标识;
若用电设备检测到的数据线的标识与预设的设置有存储器的数据线的标识相同;或者,若用电设备检测到的数据线的标识与预设的设置有存储器的数据线的标识的格式相同,用电设备确定所述数据线中设置有存储器。
其中,设置有存储器的数据线的标识或者设置有存储器的数据线的标识的格式可以根据实际需要预先设置在用电设备中。
在一个具体的实现过程中,数据线的标识具体可以包括但不限于以下标识中至少一个:字符串标识、配置描述符标识和接口描述符标识。
其中,用电设备中预设的设置有存储器的数据线的标识的格式,可以包括但不限于以下格式中的至少一个:某位置上的字符为指定字符、字符排列方式和字符数目。
例如,本发明实施例中,用电设备检测数据线的字符串标识时,用电设备可以预先设置好设置有存储器的数据线的字符串标识为A,用电设备连接数据线后自动检测数据线的字符串标识,若用电设备检测到数据线的字符串标识也为A,也即用电设备检测到的数据线的标识与预设的设置有存储器的数据线的标识相同,则用电设备确定数据线中设置有存储器。
或者,又例如,用电设备可以预先设置好设置有存储器的数据线的字符串标识的最后3位的字符格式为字母-数字-字母,用电设备连接数据线后自动检测数据线的字符串标识,若用电设备检测到的数据线的字符串标识的最后3位的字符格式也为字母-数字-字母,也即用电设备检测到的数据线的标识与预设的设置有存储器的数据线的标识的格式相同,则用电设备确定数据线中设置有存储器。
S103,若用电设备检测到数据线中设置有存储器,用电设备与存储器进行数据传输。
具体的,用电设备检测到数据线中设置有存储器后,用电设备通过数据线从供电设备获取电能的同时,数据线中的存储器也能够从供电设备获取电能,也即,数据线的电能是供电设备提供的。
举例说明,用电设备与存储器进行数据传输的实现方法可以包括但不限于:
用电设备查询数据线的数据传输协议;
用电设备与数据线中设置的存储器通过数据线的数据传输协议进行数据传 输。
在一个具体的实现过程中,数据线的数据传输协议具体包括但不限于:USB“进行中”(USB-On The Go,USB-OTG)协议。
举例说明,若用电设备查询到设置有存储器的数据线使用的数据传输协议为USB-OTG协议,基于该数据传输协议,用电设备可以枚举为USB-OTG主设备,存储器可以枚举为USB-OTG从设备。或者,基于该数据传输协议,用电设备枚举为USB-OTG从设备,存储器枚举为USB-OTG主设备。也即,USB-OTG主设备与USB-OTG从设备可以基于USB-OTG协议进行数据传输。
具体的,用电设备与数据线中设置的存储器进行数据传输可以包括以下两种实现方式:
第一种:用电设备将用电设备所存储的数据发送到数据线中设置的存储器。也即,用电设备将自身存储的数据存储到数据线中设置的存储器,数据线中设置的存储器可以进行该数据的备份。
第二种:用电设备获取数据线中设置的存储器所存储的数据。也即,数据线中设置的存储器所存储的数据,可以存储到用电设备,用电设备可以进行该数据的备份。
本发明实施例中,若用电设备枚举为USB-OTG主设备,存储器枚举为USB-OTG从设备,用电设备将用电设备所存储的数据发送到数据线中设置的存储器;或者,若用电设备枚举为USB-OTG从设备,存储器枚举为USB-OTG主设备,用电设备获取数据线中设置的存储器所存储的数据。
本发明实施例的技术方案具有以下有益效果:
本发明实施例中,用电设备通过数据线连接供电设备,用电设备通过数据线从供电设备获取电能时,用电设备检测数据线中是否设置有存储器,若用电设备检测到数据线中设置有存储器,用电设备与存储器进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进 行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。
实施例二
本发明实施例还给出一种数据传输的方法,本方法为数据线侧实现数据传输方法的具体实现方式。请参考图3,其为本发明实施例所提供的数据传输方法的实施例二的流程示意图,如图3所示,该方法包括以下步骤:
S301,设置有存储器的数据线分别连接用电设备和供电设备。
需要说明的是,本发明实施例中所涉及的用电设备可以包括但不限于:移动终端、个人计算机、平板电脑、手机、个人数字助理、无线手持设备、MP3播放器、MP4播放器等。
需要说明的是,本发明实施例中所涉及的数据线可以包括但不限于:USB数据线、串口数据线。
需要说明的是,本发明实施例中所涉及的供电设备可以包括但不限于:终端、电源适配器。
具体的,设置有存储器的数据线分别连接用电设备和供电设备后,设置有存储器的数据线将供电设备提供的电能提供给用电设备和数据线中的存储器。
例如,如图2所示,设置有存储器的数据线分别连接用电设备和供电设备后,设置有存储器的数据线将供电设备提供的电能提供给用电设备和数据线中的存储器。
具体的,如图2所示,数据线将供电设备所提供的电能提供给用电设备中的Power IC和数据线中的存储器,而Power IC获取电能后,为用电设备中的其他器件提供电能。
S302,设置有存储器的数据线将供电设备的电能提供给用电设备时,存储器与用电设备进行数据传输。
具体的,设置有存储器的数据线将供电设备的电能提供给用电设备时,存储器与用电设备进行数据传输,包括:
数据线中设置的存储器通过数据线的数据传输协议与用电设备进行数据传输。
在一个具体的实现过程中,数据线的数据传输协议具体包括但不限于:USB-OTG协议。
举例说明,若数据线使用的数据传输协议为USB-OTG协议,基于该数据传输协议,存储器可以枚举为USB-OTG从设备,用电设备可以枚举为USB-OTG主设备。或者,基于该数据传输协议,存储器枚举为USB-OTG主设备,用电设备枚举为USB-OTG从设备。也即,USB-OTG主设备与USB-OTG从设备可以基于USB-OTG协议进行数据传输。
具体的,存储器与用电设备进行数据传输可以包括以下两种实现方式:
第一种:存储器接收用电设备发送的数据。也即,对用电设备自身存储的数据可以存储到数据线中设置的存储器,数据线中设置的存储器可以进行该数据的备份。
第二种:存储器将存储器所存储的数据发送给用电设备。也即,数据线中设置的存储器所存储的数据可以存储到用电设备,用电设备可以进行该数据的备份。
本发明实施例中,若存储器枚举为USB-OTG从设备,用电设备枚举为USB-OTG主设备,存储器接收用电设备发送的数据;或者,存储器枚举为USB-OTG主设备,用电设备枚举为USB-OTG从设备,存储器将存储器所存储的数据发送给用电设备。
本发明实施例的技术方案具有以下有益效果:
本发明实施例中,通过设置有存储器的数据线分别连接用电设备和供电设 备,设置有存储器的数据线将供电设备的电能提供给用电设备时,存储器与用电设备进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。
实施例三
基于上述实施例一所提供的数据传输方法,本发明实施例进一步给出实现上述数据传输方法实施例中各步骤及方法的装置实施例,请参考图4,其为本发明实施例所提供的用电设备的结构示意图,
该用电设备通过数据线连接供电设备,该用电设备包括:
检测模块41,用于用电设备通过数据线从供电设备获取电能时,检测数据线中是否设置有存储器;
传输模块42,用于若检测模块检测到数据线中设置有存储器,与所述存储器进行数据传输。
需要说明的是,检测模块41和传输模块42可以集成在用电设备内置的控制器中,用电设备可以通过控制器实现与其他设备的数据交互。
具体的,检测模块41,具体用于:
检测数据线的标识;
若检测到的数据线的标识与预设的设置有存储器的数据线的标识相同;或者,若检测到的数据线的标识与预设的设置有存储器的数据线的标识的格式相同,确定数据线中设置有存储器。
具体的,传输模块42,具体用于:
查询数据线的数据传输协议;
与存储器通过数据线的数据传输协议进行数据传输。
具体的,传输模块42,具体用于:
将用电设备所存储的数据发送到数据线中设置的存储器;或者,
获取数据线中设置的存储器所存储的数据。
由于本实施例中的各单元能够执行图1所示的方法,本实施例未详细描述的部分,可参考对图1的相关说明。
本发明实施例的技术方案具有以下有益效果:
本发明实施例中,用电设备通过数据线连接供电设备,用电设备通过数据线从供电设备获取电能时,用电设备中的检测模块检测数据线中是否设置有存储器,若检测模块检测到数据线中设置有存储器,用电设备中的传输模块与存储器进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。
实施例四
基于上述实施例二所提供的数据传输方法,本发明实施例进一步给出实现上述数据传输方法实施例中各步骤及方法的装置实施例,请参考图5,其为本发明实施例所提供的数据线的结构示意图,该数据线包括:
连接线51,用于分别连接用电设备和供电设备;以及,用于将供电设备的电能提供给用电设备;
存储器52,用于连接线将供电设备的电能提供给用电设备时,与用电设备 进行数据传输。
具体的,存储器52,具体用于:通过数据线的数据传输协议与用电设备进行数据传输。
具体的,存储器52,具体用于:接收用电设备所发送的数据;或者,将存储器52所存储的数据发送给用电设备。
具体的,连接线51,还用于:将供电设备的电能提供给存储器52。
由于本实施例中的各单元能够执行图3所示的方法,本实施例未详细描述的部分,可参考对图3的相关说明。
本发明实施例的技术方案具有以下有益效果:
本发明实施例中,数据线中的连接线分别连接用电设备和供电设备,以及,将供电设备的电能提供给用电设备,数据线中的连接线将供电设备的电能提供给用电设备时,数据线中的存储器与用电设备进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机课读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者等各种可以存储程序代码的介质。
以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以 不是物理单元,即可以位于一个地方,或者也可以分布到至少两个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本发明实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (17)

  1. 一种数据传输方法,其特征在于,所述方法包括:
    用电设备通过数据线连接供电设备;
    所述用电设备通过所述数据线从所述供电设备获取电能时,所述用电设备检测所述数据线中是否设置有存储器;
    若所述用电设备检测到所述数据线中设置有存储器,所述用电设备与所述存储器进行数据传输。
  2. 根据权利要求1所述的方法,其特征在于,所述用电设备检测所述数据线中是否设置有存储器,包括:
    所述用电设备检测所述数据线的标识;
    若所述用电设备检测到的所述数据线的标识与预设的设置有存储器的数据线的标识相同;或者,若所述用电设备检测到的所述数据线的标识与预设的设置有存储器的数据线的标识的格式相同,所述用电设备确定所述数据线中设置有存储器。
  3. 根据权利要求1所述的方法,其特征在于,所述用电设备与所述存储器进行数据传输,包括:
    所述用电设备查询所述数据线的数据传输协议;
    所述用电设备与所述存储器通过所述数据传输协议进行数据传输。
  4. 根据权利要求1或3所述的方法,其特征在于,所述用电设备与所述存储器进行数据传输,包括:
    所述用电设备将所述用电设备所存储的数据发送到所述数据线中设置的存储器;或者,
    所述用电设备获取所述数据线中设置的存储器所存储的数据。
  5. 根据权利要求1所述的方法,其特征在于,所述数据线的电能为所述供 电设备提供的。
  6. 一种数据传输方法,其特征在于,包括:
    设置有存储器的数据线分别连接用电设备和供电设备;
    所述设置有存储器的数据线将所述供电设备的电能提供给所述用电设备时,所述存储器与所述用电设备进行数据传输。
  7. 根据权利要求6所述的方法,其特征在于,所述存储器与所述用电设备进行数据传输,包括:
    所述存储器通过所述数据线的数据传输协议与所述用电设备进行数据传输。
  8. 根据权利要求6所述的方法,其特征在于,所述存储器与所述用电设备进行数据传输,包括:
    所述存储器接收所述用电设备发送的数据;或者,
    所述存储器将所述存储器所存储的数据发送给所述用电设备。
  9. 根据权利要求6所述的方法,其特征在于,所述数据线的电能为所述供电设备提供的。
  10. 一种用电设备,其特征在于,所述用电设备通过数据线连接供电设备;
    所述用电设备包括:
    检测模块,用于所述用电设备通过所述数据线从所述供电设备获取电能时,检测所述数据线中是否设置有存储器;
    传输模块,用于若所述检测模块检测到所述数据线中设置有存储器,所述传输模块与所述存储器进行数据传输。
  11. 根据权利要求10所述的用电设备,其特征在于,所述检测模块,具体用于:
    检测所述数据线的标识;
    若检测到的所述数据线的标识与预设的设置有存储器的数据线的标识相同;或者,若检测到的所述数据线的标识与预设的设置有存储器的数据线的标 识的格式相同,确定所述数据线中设置有存储器。
  12. 根据权利要求10所述的用电设备,其特征在于,所述传输模块,具体用于:
    查询所述数据线的数据传输协议;
    与所述存储器通过所述数据传输协议进行数据传输。
  13. 根据权利要求10或12所述的用电设备,其特征在于,所述传输模块,具体用于:
    将所述用电设备所存储的数据发送到所述数据线中设置的存储器;或者,
    获取所述数据线中设置的存储器所存储的数据。
  14. 一种数据线,其特征在于,包括:
    连接线,用于分别连接用电设备和供电设备;以及,用于将所述供电设备的电能提供给所述用电设备;
    存储器,用于所述连接线将所述供电设备的电能提供给所述用电设备时,与所述用电设备进行数据传输。
  15. 根据权利要求14所述的数据线,其特征在于,所述存储器,具体用于:
    通过所述数据线的数据传输协议与所述用电设备进行数据传输。
  16. 根据权利要求14所述的数据线,其特征在于,所述存储器,具体用于:
    接收所述用电设备所发送的数据;或者,
    将所述存储器所存储的数据发送给所述用电设备。
  17. 根据权利要求14所述的数据线,其特征在于,所述连接线,还用于:
    将所述供电设备的电能提供给所述存储器。
PCT/CN2016/096841 2016-03-29 2016-08-26 一种数据传输方法、用电设备以及数据线 Ceased WO2017166633A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610185046.4A CN105893175A (zh) 2016-03-29 2016-03-29 一种数据传输方法、用电设备以及数据线
CN2016101850464 2016-03-29

Publications (1)

Publication Number Publication Date
WO2017166633A1 true WO2017166633A1 (zh) 2017-10-05

Family

ID=57013839

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096841 Ceased WO2017166633A1 (zh) 2016-03-29 2016-08-26 一种数据传输方法、用电设备以及数据线

Country Status (2)

Country Link
CN (1) CN105893175A (zh)
WO (1) WO2017166633A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893175A (zh) * 2016-03-29 2016-08-24 乐视控股(北京)有限公司 一种数据传输方法、用电设备以及数据线
CN110321303A (zh) * 2018-03-29 2019-10-11 中国移动通信集团终端有限公司 备份终端数据的装置、方法、终端和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150326A (zh) * 2007-10-18 2008-03-26 方毅 一种兼具充电连接以及数据通讯和存储功能的通讯终端连接设备
US20090182935A1 (en) * 2006-05-19 2009-07-16 Xanto Technologies S.R.L. Mass storage device, in particular of the usb type, and related method for transferring data
CN105245254A (zh) * 2015-10-19 2016-01-13 杭州德澜科技有限公司 基于直流供电的数据通信方法
CN105281403A (zh) * 2015-10-19 2016-01-27 杭州德澜科技有限公司 一种使用usb接口通信的智能插座
CN105893175A (zh) * 2016-03-29 2016-08-24 乐视控股(北京)有限公司 一种数据传输方法、用电设备以及数据线

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090182935A1 (en) * 2006-05-19 2009-07-16 Xanto Technologies S.R.L. Mass storage device, in particular of the usb type, and related method for transferring data
CN101150326A (zh) * 2007-10-18 2008-03-26 方毅 一种兼具充电连接以及数据通讯和存储功能的通讯终端连接设备
CN105245254A (zh) * 2015-10-19 2016-01-13 杭州德澜科技有限公司 基于直流供电的数据通信方法
CN105281403A (zh) * 2015-10-19 2016-01-27 杭州德澜科技有限公司 一种使用usb接口通信的智能插座
CN105893175A (zh) * 2016-03-29 2016-08-24 乐视控股(北京)有限公司 一种数据传输方法、用电设备以及数据线

Also Published As

Publication number Publication date
CN105893175A (zh) 2016-08-24

Similar Documents

Publication Publication Date Title
EP2879014B1 (en) Tablet interface extension method and device
CN107465240A (zh) 一种智能移动电源及与其进行usb数据通讯的方法
CN107005062B (zh) 充电方法、移动终端和充电装置
WO2013178191A2 (zh) 移动终端、数据通信主设备和移动终端充电系统及方法
US11794603B2 (en) Methods, devices, and systems for submetering of an electric vehicle (EV) charging session
WO2016074158A1 (zh) 电源适配器、终端和充电系统
CN105075064A (zh) 无线电力发送单元、无线电力接收单元、以及控制方法
US20180321728A1 (en) Remote wake-up of mobile devices
CN105829990A (zh) 用于对具有usb连接的电子设备进行充电的方法和装置
CN107707000A (zh) 一种otg供电与无线充电兼容电路及相关方法和终端设备
CN107294172A (zh) 终端设备、电源适配器及充电控制方法
CN111149082A (zh) 用于为移动装置自动备份数据和充电的存储器站点
CN107453428A (zh) 一种自动识别苹果和安卓设备的方法
CN110492575A (zh) 用于手持设备的快速充电系统及方法、手持设备
US20130283028A1 (en) Adapter identification system and method for computer
US20170162929A1 (en) Charging Cable
CN110147154A (zh) 实现掉电上电的方法、装置和电路
CN107205263A (zh) 一种基于无线充电设备的数据传输方法及系统
TW201337577A (zh) 資料傳輸方法、系統及使用該方法的電子裝置
CN104978986A (zh) 用于数据储存的系统及智慧型usb装置
WO2015143793A1 (zh) 一种电流控制方法及终端设备
CN206389491U (zh) 一种type‑c电源和hub集成的集线系统
CN211152101U (zh) 无线传屏设备和交互系统
CN102544919B (zh) 电缆
CN105893175A (zh) 一种数据传输方法、用电设备以及数据线

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16896403

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896403

Country of ref document: EP

Kind code of ref document: A1