WO2017166633A1 - Data transmission method, electrical device and data cable - Google Patents

Data transmission method, electrical device and data cable 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
Application number
PCT/CN2016/096841
Other languages
French (fr)
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 乐视控股(北京)有限公司
Publication of WO2017166633A1 publication Critical patent/WO2017166633A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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 operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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 operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • 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

A data backup method, an electrical device and data cable. The method comprises: the electrical device connecting to a power supply device via the data cable (S101); when the electrical device acquires power from the power supply device via the data cable, the electrical device detecting whether a memory is provided at the data cable (S102); if the electrical device detects that a memory is provided at the data cable, performing data transmission between the electrical device and the memory (S103). The present invention can be used to solve security issues in backing up data via cloud storage in the prior art, and the problem of low data backup efficiency when backing up data with a memory device.

Description

一种数据传输方法、用电设备以及数据线Data transmission method, electric equipment and data line
本申请基于申请号为CN2016101850464、申请日为2016年3月29日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is based on a Chinese patent application filed on Jan. 29, 2016, the entire disclosure of which is hereby incorporated by reference.
【技术领域】[Technical Field]
本发明涉及数据传输技术领域,尤其涉及一种数据传输方法、用电设备以及数据线。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.
【背景技术】【Background technique】
在目前的终端、智能家电等用电设备中存储有大量用户数据,为了防止用电设备被盗或更换用电设备时的数据导入带来的困扰,将用电设备中存储的数据进行备份变得尤为重要。而现有技术中的数据备份主要有两种实现手段:将用电设备中存储的数据备份到云盘;或者,通过连接存储设备,将用电设备中存储的数据备份到存储设备上。In the current power devices such as terminals and smart home appliances, a large amount of user data is stored. In order to prevent the trouble of data introduction when the power device is stolen or replaced, the data stored in the power device is backed up. It is especially important. 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.
在实现本发明过程中,发明人发现现有技术中至少存在如下问题:In the process of implementing the present invention, the inventors have found that at least the following problems exist in the prior art:
通过云盘备份数据操作简便,但是备份后的数据存储于网络,而网络存储的安全性受到越来越多的质疑,因此,利用云盘备份数据存在较大的安全性隐患。另外,虽然通过存储设备备份数据是用户经常采用的方式,但是该方法必须在连接了额外的存储设备时才能完成数据备份,操作复杂,数据备份效率较低。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. In addition, although 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.
【发明内容】[Summary of the Invention]
有鉴于此,本发明实施例提供了一种数据传输方法、用电设备以及数据线,用以解决现有技术中通过云盘备份数据存在的安全性隐患,以及通过存储设备备份数据存在的数据备份效率较低的问题。In view of this, 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. The problem of low backup efficiency.
为了实现上述发明目的,本发明实施例提供了一种数据备份方法,包括: In order to achieve the above object, 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;
所述用电设备通过所述数据线从所述供电设备获取电能时,所述用电设备检测所述数据线中是否设置有存储器;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;
若所述用电设备检测到所述数据线中设置有存储器,所述用电设备与所述存储器进行数据传输。If the powered device detects that a memory is disposed in the data line, the powered device performs data transmission with the memory.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述用电设备检测所述数据线中是否设置有存储器,包括:The aspect as described above, and any of the possible implementations, further provide an implementation manner, 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;
若所述用电设备检测到的所述数据线的标识与预设的设置有存储器的数据线的标识相同;或者,若所述用电设备检测到的所述数据线的标识与预设的设置有存储器的数据线的标识的格式相同,所述用电设备确定所述数据线中设置有存储器。If the identifier of the data line detected by the powered device is the same as the identifier of the preset data line provided with the memory; or if the identifier of the data line detected by the powered device is preset The format of the identification of the data line provided with the memory is the same, and the powered device determines that the memory is provided in the data line.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述用电设备与所述存储器进行数据传输,包括:The above-mentioned aspect and any possible implementation manner further provide an implementation manner, in which the powered device performs data transmission with the memory, including:
所述用电设备查询所述数据线的数据传输协议;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 above-mentioned aspect and any possible implementation manner further provide an implementation manner, in which the powered device performs data transmission with the memory, including:
所述用电设备将所述用电设备所存储的数据发送到所述数据线中设置的存储器;或者,Transmitting, by the powered device, data stored by the powered device to a memory set in the data line; or
所述用电设备获取所述数据线中设置的存储器所存储的数据。The powered device acquires data stored in a memory provided in the data line.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述数据线的电能为所述供电设备提供的。In an aspect as described above and any possible implementation, an implementation is further provided, wherein the power of the data line is provided by the power supply device.
上述技术方案中的一个技术方案具有如下有益效果:One of the above technical solutions has the following beneficial effects:
本发明实施例中,用电设备通过数据线连接供电设备,所述用电设备通过所述数据线从所述供电设备获取电能时,所述用电设备检测所述数据线中是否 设置有存储器,若所述用电设备检测到所述数据线中设置有存储器,所述用电设备与所述存储器进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。In the embodiment of the present invention, 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. Moreover, compared with the method for implementing data backup by connecting additional storage devices in the prior art, 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.
为了实现上述发明目的,本发明实施例还提供了一种数据备份方法,包括:In order to achieve the above object, 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;
所述设置有存储器的数据线将所述供电设备的电能提供给所述用电设备时,所述存储器与所述用电设备进行数据传输。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 foregoing aspect and any possible implementation manner further provide an implementation manner, in which the memory performs data transmission with the powered device, including:
所述存储器通过所述数据线的数据传输协议与所述用电设备进行数据传输。The memory performs data transmission with the powered device through a data transmission protocol of the data line.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述存储器与所述用电设备进行数据传输,包括:The foregoing aspect and any possible implementation manner further provide an implementation manner, in which the memory performs data transmission with the powered device, including:
所述存储器接收所述用电设备发送的数据;或者,The memory receives data sent by the powered device; or
所述存储器将所述存储器所存储的数据发送给所述用电设备。The memory transmits data stored by the memory to the powered device.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述数据线的电能为所述供电设备提供的。In an aspect as described above and any possible implementation, an implementation is further provided, wherein the power of the data line is provided by the power supply device.
上述技术方案中的一个技术方案具有如下有益效果:One of the above technical solutions has the following beneficial effects:
本发明实施例中,通过设置有存储器的数据线分别连接用电设备和供电设备,所述设置有存储器的数据线将所述供电设备的电能提供给所述用电设备时, 所述存储器与所述用电设备进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。In the embodiment of the present invention, 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. Moreover, compared with the method for implementing data backup by connecting additional storage devices in the prior art, 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.
为了实现上述发明目的,本发明实施例提供了一种用电设备,用电设备通过数据线连接供电设备,所述用电设备包括:In order to achieve the above object, 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;
传输模块,用于若所述检测模块检测到所述数据线中设置有存储器,与所述存储器进行数据传输。And 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.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述检测模块,具体用于:The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the detecting module is specifically configured to:
检测所述数据线的标识;Detecting an identifier of the data line;
若检测到的所述数据线的标识与预设的设置有存储器的数据线的标识相同;或者,若检测到的所述数据线的标识与预设的设置有存储器的数据线的标识的格式相同,确定所述数据线中设置有存储器。If 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.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述传输模块,具体用于:The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the transmission module is specifically configured to:
查询所述数据线的数据传输协议;Querying a data transmission protocol of the data line;
与所述存储器通过所述数据传输协议进行数据传输。Data transmission with the memory through the data transfer protocol.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述 传输模块,具体用于:An aspect as described above, and any possible implementation, further providing an implementation manner, Transmission module, specifically for:
将所述用电设备所存储的数据发送到所述数据线中设置的存储器;或者,Transmitting data stored by the powered device to a memory set in the data line; or
获取所述数据线中设置的存储器所存储的数据。Acquiring data stored in a memory set in the data line.
上述技术方案中的一个技术方案具有如下有益效果:One of the above technical solutions has the following beneficial effects:
本发明实施例中,用电设备通过数据线连接供电设备,所述用电设备通过所述数据线从所述供电设备获取电能时,所述用电设备中的监测模块检测所述数据线中是否设置有存储器,若所述检测模块检测到所述数据线中设置有存储器,所述用电设备中的传输模块与所述存储器进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。In the embodiment of the present invention, 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. Moreover, compared with the method for implementing data backup by connecting additional storage devices in the prior art, 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.
为了实现上述发明目的,本发明实施例提供了一种数据线,包括:In order to achieve the above object, an embodiment of the present invention provides a data line, including:
连接线,用于分别连接用电设备和供电设备;以及,用于将所述供电设备的电能提供给所述用电设备;a 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;
存储器,用于所述连接线将所述供电设备的电能提供给所述用电设备时,与所述用电设备进行数据传输。And 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.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述存储器,具体用于:The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the memory is specifically used to:
通过所述数据线的数据传输协议与所述用电设备进行数据传输。Data transmission is performed with the powered device through a data transmission protocol of the data line.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述存储器,具体用于: The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the memory is specifically used to:
接收所述用电设备所发送的数据;或者,Receiving data transmitted by the powered device; or
将所述存储模块所存储的数据发送给所述用电设备。Transmitting data stored by the storage module to the powered device.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述连接线,还用于:The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the connection line is further used to:
将所述供电设备的电能提供给所述存储器。The power of the power supply device is provided to the memory.
上述技术方案中的一个技术方案具有如下有益效果:One of the above technical solutions has the following beneficial effects:
本发明实施例中,所述数据线中的连接线分别连接用电设备和供电设备,以及,将所述供电设备的电能提供给所述用电设备,所述数据线中的连接线将所述供电设备的电能提供给所述用电设备时,所述数据线中的存储器与所述用电设备进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。In the embodiment of the present invention, the 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. Moreover, compared with the method for implementing data backup by connecting additional storage devices in the prior art, 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.
【附图说明】[Description of the Drawings]
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. One of ordinary skill in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图1是本发明实施例所提供的数据传输方法的实施例一的流程示意图;1 is a schematic flowchart of Embodiment 1 of a data transmission method according to an embodiment of the present invention;
图2是本发明实施例所提供的数据传输系统的示例图;2 is a diagram showing an example of a data transmission system according to an embodiment of the present invention;
图3是本发明实施例所提供的数据传输方法的实施例二的流程示意图; 3 is a schematic flowchart of Embodiment 2 of a data transmission method according to an embodiment of the present invention;
图4是本发明实施例所提供的用电设备的结构示意图;4 is a schematic structural diagram of a power-consuming device according to an embodiment of the present invention;
图5是本发明实施例所提供的数据线的结构示意图。FIG. 5 is a schematic structural diagram of a data line according to an embodiment of the present invention.
【具体实施方式】【detailed description】
为了更好的理解本发明的技术方案,下面结合附图对本发明实施例进行详细描述。For a better understanding of the technical solutions of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。It should be understood that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terms used in the embodiments of the present invention are for the purpose of describing particular embodiments only and are not intended to limit the invention. The singular forms "a", "the" and "the"
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" as used herein is merely an association describing the associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, while A and B, there are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to determining" or "in response to detecting." Similarly, depending on the context, 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)".
实施例一Embodiment 1
本发明实施例给出一种数据传输方法,本方法为用电设备侧实现数据传输方法的具体实现方式。请参考图1,其为本发明实施例所提供的数据传输方法的实施例一的流程示意图,如图1所示,该方法包括以下步骤:The embodiment of the invention provides a data transmission method, and the method is a specific implementation manner of implementing a data transmission method by a power device side. Please refer to FIG. 1 , which 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:
S101,用电设备通过数据线连接供电设备。 S101. The powered device is connected to the power supply device through a data line.
需要说明的是,本发明实施例中所涉及的用电设备可以包括但不限于:移动终端、个人计算机、平板电脑、手机、个人数字助理、无线手持设备、MP3播放器、MP4播放器等。It should be noted that 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.
需要说明的是,本发明实施例中所涉及的数据线可以包括但不限于:通用串行总线(Universal Serial Bus,USB)数据线、串口数据线。It should be noted that the 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.
需要说明的是,本发明实施例中所涉及的供电设备可以包括但不限于:终端、电源适配器。It should be noted that 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.
例如,请参考图2,其为本发明实施例所提供的数据传输系统的示例图,如图2所示,用电设备通过数据线连接供电设备后,用电设备即可通过数据线获取供电设备提供的电能。For example, please refer to FIG. 2 , which is an example diagram of a data transmission system according to an embodiment of the present invention. As shown in FIG. 2 , after a power device is connected to a power supply device through a data line, the power device can obtain power through the data line. The power supplied by the device.
具体的,如图2所示,数据线将供电设备所提供的电能提供给用电设备中的电源集成电路(Power IC)和数据线中的存储器,而Power IC获取电能后,为用电设备中的其他器件提供电能。Specifically, as shown in FIG. 2, 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.
具体的,如图2所示,用电设备内置控制器,控制器与用电设备中的存储器相连,用电设备内部所存储的数据可以通过控制器的处理与其他设备进行交互,用电设备通过内置的控制器可以完成以下S102与S103的操作。Specifically, as shown in FIG. 2, 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.
S102,用电设备通过数据线从供电设备获取电能时,用电设备检测数据线中是否设置有存储器。S102. 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.
本发明实施例中,用电设备与供电设备通过数据线连接后,供电设备通过数据线为用电设备提供电能,用电设备自动检测数据线中是否设置有存储器。In the embodiment of the present invention, after the electrical equipment is connected to the power supply device through 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.
具体的,用电设备检测数据线中是否设置有存储器的方法可以包括但不限于:Specifically, 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;
若用电设备检测到的数据线的标识与预设的设置有存储器的数据线的标识相同;或者,若用电设备检测到的数据线的标识与预设的设置有存储器的数据线的标识的格式相同,用电设备确定所述数据线中设置有存储器。 If the identifier of the data line detected by the powered device is the same as the identifier of the preset data line provided with the memory; or, if the identifier of the data line detected by the powered device is different from the identifier of the preset data line provided with the memory The format is the same, and 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.
在一个具体的实现过程中,数据线的标识具体可以包括但不限于以下标识中至少一个:字符串标识、配置描述符标识和接口描述符标识。In a specific implementation process, 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.
例如,本发明实施例中,用电设备检测数据线的字符串标识时,用电设备可以预先设置好设置有存储器的数据线的字符串标识为A,用电设备连接数据线后自动检测数据线的字符串标识,若用电设备检测到数据线的字符串标识也为A,也即用电设备检测到的数据线的标识与预设的设置有存储器的数据线的标识相同,则用电设备确定数据线中设置有存储器。For example, in the embodiment of the present invention, 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.
或者,又例如,用电设备可以预先设置好设置有存储器的数据线的字符串标识的最后3位的字符格式为字母-数字-字母,用电设备连接数据线后自动检测数据线的字符串标识,若用电设备检测到的数据线的字符串标识的最后3位的字符格式也为字母-数字-字母,也即用电设备检测到的数据线的标识与预设的设置有存储器的数据线的标识的格式相同,则用电设备确定数据线中设置有存储器。Or, for example, 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.
S103,若用电设备检测到数据线中设置有存储器,用电设备与存储器进行数据传输。S103. If the electrical device detects that the memory is set in the data line, the power device and the memory perform data transmission.
具体的,用电设备检测到数据线中设置有存储器后,用电设备通过数据线从供电设备获取电能的同时,数据线中的存储器也能够从供电设备获取电能,也即,数据线的电能是供电设备提供的。Specifically, after the electrical device detects 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.
举例说明,用电设备与存储器进行数据传输的实现方法可以包括但不限于:For example, the implementation method of data transmission by the electrical device and the memory may include, but is not limited to:
用电设备查询数据线的数据传输协议;Querying the data transmission protocol of the data line with the electrical device;
用电设备与数据线中设置的存储器通过数据线的数据传输协议进行数据传 输。The data transfer protocol of the data line is transmitted by the power device and the memory set in the data line. lose.
在一个具体的实现过程中,数据线的数据传输协议具体包括但不限于:USB“进行中”(USB-On The Go,USB-OTG)协议。In a specific implementation process, the data transmission protocol of the data line specifically includes but is not limited to: USB "On-Go" (USB-OTG) protocol.
举例说明,若用电设备查询到设置有存储器的数据线使用的数据传输协议为USB-OTG协议,基于该数据传输协议,用电设备可以枚举为USB-OTG主设备,存储器可以枚举为USB-OTG从设备。或者,基于该数据传输协议,用电设备枚举为USB-OTG从设备,存储器枚举为USB-OTG主设备。也即,USB-OTG主设备与USB-OTG从设备可以基于USB-OTG协议进行数据传输。For example, if the data transmission protocol used by the electrical device to query the data line provided with the memory is the USB-OTG protocol, based on the data transmission protocol, the powered device can be enumerated as a USB-OTG master device, and the memory can be enumerated as USB-OTG slave device. Alternatively, based on the data transfer protocol, 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.
具体的,用电设备与数据线中设置的存储器进行数据传输可以包括以下两种实现方式:Specifically, 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.
第二种:用电设备获取数据线中设置的存储器所存储的数据。也即,数据线中设置的存储器所存储的数据,可以存储到用电设备,用电设备可以进行该数据的备份。Second: 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.
本发明实施例中,若用电设备枚举为USB-OTG主设备,存储器枚举为USB-OTG从设备,用电设备将用电设备所存储的数据发送到数据线中设置的存储器;或者,若用电设备枚举为USB-OTG从设备,存储器枚举为USB-OTG主设备,用电设备获取数据线中设置的存储器所存储的数据。In the embodiment of the present invention, if the power device is enumerated as a USB-OTG master device, 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 technical solution of the embodiment of the invention has the following beneficial effects:
本发明实施例中,用电设备通过数据线连接供电设备,用电设备通过数据线从供电设备获取电能时,用电设备检测数据线中是否设置有存储器,若用电设备检测到数据线中设置有存储器,用电设备与存储器进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进 行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。In the embodiment of the present invention, 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. Moreover, compared with the method for implementing data backup by connecting additional storage devices in the prior art, 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 2
本发明实施例还给出一种数据传输的方法,本方法为数据线侧实现数据传输方法的具体实现方式。请参考图3,其为本发明实施例所提供的数据传输方法的实施例二的流程示意图,如图3所示,该方法包括以下步骤: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. Please refer to FIG. 3 , which 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:
S301,设置有存储器的数据线分别连接用电设备和供电设备。S301. The data lines provided with the memory are respectively connected to the power device and the power supply device.
需要说明的是,本发明实施例中所涉及的用电设备可以包括但不限于:移动终端、个人计算机、平板电脑、手机、个人数字助理、无线手持设备、MP3播放器、MP4播放器等。It should be noted that 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.
需要说明的是,本发明实施例中所涉及的数据线可以包括但不限于:USB数据线、串口数据线。It should be noted that 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.
需要说明的是,本发明实施例中所涉及的供电设备可以包括但不限于:终端、电源适配器。It should be noted that 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.
具体的,设置有存储器的数据线分别连接用电设备和供电设备后,设置有存储器的数据线将供电设备提供的电能提供给用电设备和数据线中的存储器。Specifically, after the data lines provided with the memory are respectively connected to the power device and the power supply device, 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.
例如,如图2所示,设置有存储器的数据线分别连接用电设备和供电设备后,设置有存储器的数据线将供电设备提供的电能提供给用电设备和数据线中的存储器。For example, as shown in FIG. 2, after the data lines provided with the memory are respectively connected to the power device and the power supply device, 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.
具体的,如图2所示,数据线将供电设备所提供的电能提供给用电设备中的Power IC和数据线中的存储器,而Power IC获取电能后,为用电设备中的其他器件提供电能。 Specifically, as shown in FIG. 2, 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.
S302,设置有存储器的数据线将供电设备的电能提供给用电设备时,存储器与用电设备进行数据传输。S302: When 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.
具体的,设置有存储器的数据线将供电设备的电能提供给用电设备时,存储器与用电设备进行数据传输,包括:Specifically, when 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, 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.
在一个具体的实现过程中,数据线的数据传输协议具体包括但不限于:USB-OTG协议。In a specific implementation process, the data transmission protocol of the data line specifically includes but is not limited to: the USB-OTG protocol.
举例说明,若数据线使用的数据传输协议为USB-OTG协议,基于该数据传输协议,存储器可以枚举为USB-OTG从设备,用电设备可以枚举为USB-OTG主设备。或者,基于该数据传输协议,存储器枚举为USB-OTG主设备,用电设备枚举为USB-OTG从设备。也即,USB-OTG主设备与USB-OTG从设备可以基于USB-OTG协议进行数据传输。For example, if the data transmission protocol used by the data line is the USB-OTG protocol, based on the data transmission 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. Alternatively, based on the data transfer protocol, 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.
具体的,存储器与用电设备进行数据传输可以包括以下两种实现方式:Specifically, 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.
第二种:存储器将存储器所存储的数据发送给用电设备。也即,数据线中设置的存储器所存储的数据可以存储到用电设备,用电设备可以进行该数据的备份。Second: 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.
本发明实施例中,若存储器枚举为USB-OTG从设备,用电设备枚举为USB-OTG主设备,存储器接收用电设备发送的数据;或者,存储器枚举为USB-OTG主设备,用电设备枚举为USB-OTG从设备,存储器将存储器所存储的数据发送给用电设备。In the embodiment of the present invention, if the memory is enumerated as a USB-OTG slave device, 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 technical solution of the embodiment of the invention has the following beneficial effects:
本发明实施例中,通过设置有存储器的数据线分别连接用电设备和供电设 备,设置有存储器的数据线将供电设备的电能提供给用电设备时,存储器与用电设备进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。In the embodiment of the present invention, the power device and the power supply device are respectively connected through the data lines provided with the memory. When 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. Moreover, compared with the method for implementing data backup by connecting additional storage devices in the prior art, 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 3
基于上述实施例一所提供的数据传输方法,本发明实施例进一步给出实现上述数据传输方法实施例中各步骤及方法的装置实施例,请参考图4,其为本发明实施例所提供的用电设备的结构示意图,Based on the data transmission method provided in the first embodiment, the embodiment of the present invention further provides an apparatus embodiment for implementing the steps and methods in the foregoing data transmission method embodiment. Please refer to FIG. 4, which 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:
检测模块41,用于用电设备通过数据线从供电设备获取电能时,检测数据线中是否设置有存储器;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;
传输模块42,用于若检测模块检测到数据线中设置有存储器,与所述存储器进行数据传输。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.
需要说明的是,检测模块41和传输模块42可以集成在用电设备内置的控制器中,用电设备可以通过控制器实现与其他设备的数据交互。It should be noted that 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.
具体的,检测模块41,具体用于:Specifically, the detecting module 41 is specifically configured to:
检测数据线的标识;Detecting the identification of the data line;
若检测到的数据线的标识与预设的设置有存储器的数据线的标识相同;或者,若检测到的数据线的标识与预设的设置有存储器的数据线的标识的格式相同,确定数据线中设置有存储器。If the identifier of the detected data line is the same as the identifier of the preset data line in which the memory is set; or if the identifier of the detected data line is the same as the format of the identifier of the preset data line in which the memory is set, the data is determined. A memory is provided in the line.
具体的,传输模块42,具体用于: Specifically, the transmission module 42 is specifically configured to:
查询数据线的数据传输协议;Query the data transmission protocol of the data line;
与存储器通过数据线的数据传输协议进行数据传输。Data transfer with the data transfer protocol of the memory through the data line.
具体的,传输模块42,具体用于:Specifically, the transmission module 42 is specifically configured to:
将用电设备所存储的数据发送到数据线中设置的存储器;或者,Sending data stored by the powered device to the memory set in the data line; or,
获取数据线中设置的存储器所存储的数据。Get the data stored in the memory set in the data line.
由于本实施例中的各单元能够执行图1所示的方法,本实施例未详细描述的部分,可参考对图1的相关说明。Since the units in this embodiment can perform the method shown in FIG. 1, and the parts not described in detail in this embodiment, reference may be made to the related description of FIG.
本发明实施例的技术方案具有以下有益效果:The technical solution of the embodiment of the invention has the following beneficial effects:
本发明实施例中,用电设备通过数据线连接供电设备,用电设备通过数据线从供电设备获取电能时,用电设备中的检测模块检测数据线中是否设置有存储器,若检测模块检测到数据线中设置有存储器,用电设备中的传输模块与存储器进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。In the embodiment of the present invention, 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. Moreover, compared with the method for implementing data backup by connecting additional storage devices in the prior art, 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 4
基于上述实施例二所提供的数据传输方法,本发明实施例进一步给出实现上述数据传输方法实施例中各步骤及方法的装置实施例,请参考图5,其为本发明实施例所提供的数据线的结构示意图,该数据线包括:Based on the data transmission method provided in the foregoing embodiment 2, the embodiment of the present invention further provides an apparatus embodiment for implementing the steps and methods in the foregoing data transmission method embodiment. Please refer to FIG. 5, which is provided by the embodiment of the present invention. A schematic diagram of the structure of a data line, the data line including:
连接线51,用于分别连接用电设备和供电设备;以及,用于将供电设备的电能提供给用电设备;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;
存储器52,用于连接线将供电设备的电能提供给用电设备时,与用电设备 进行数据传输。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.
具体的,存储器52,具体用于:通过数据线的数据传输协议与用电设备进行数据传输。Specifically, the memory 52 is specifically configured to: perform data transmission with the powered device through a data transmission protocol of the data line.
具体的,存储器52,具体用于:接收用电设备所发送的数据;或者,将存储器52所存储的数据发送给用电设备。Specifically, 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.
具体的,连接线51,还用于:将供电设备的电能提供给存储器52。Specifically, the connection line 51 is further configured to: supply power of the power supply device to the memory 52.
由于本实施例中的各单元能够执行图3所示的方法,本实施例未详细描述的部分,可参考对图3的相关说明。Since each unit in this embodiment can perform the method shown in FIG. 3, and the parts not described in detail in this embodiment, reference may be made to the related description of FIG.
本发明实施例的技术方案具有以下有益效果:The technical solution of the embodiment of the invention has the following beneficial effects:
本发明实施例中,数据线中的连接线分别连接用电设备和供电设备,以及,将供电设备的电能提供给用电设备,数据线中的连接线将供电设备的电能提供给用电设备时,数据线中的存储器与用电设备进行数据传输。因此,本发明实施例通过设置有存储器的数据线,在供电设备为用电设备充电的同时,实现了用电设备与数据线的数据传输,利用该方案对用电设备上存储的数据进行备份,避免了将用电设备中的数据上传到网络云盘带来的网络安全风险。而且,相较于现有技术中通过连接额外存储设备实现数据备份的方法,本发明实施例仅依靠用电设备必备的数据线即可实现对用电设备中数据的备份,而不需要为用电设备额外连接其他存储设备,只需要连接数据线充电就可以实现在为用电设备充电的同时,对用电设备中所存储数据进行备份,操作简便,安全性高,提升了数据备份的效率。In the embodiment of the present invention, the 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. At the time, 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. Moreover, compared with the method for implementing data backup by connecting additional storage devices in the prior art, 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.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机课读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. 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.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (17)

  1. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method comprises:
    用电设备通过数据线连接供电设备;The power device is connected to the power supply device through the data line;
    所述用电设备通过所述数据线从所述供电设备获取电能时,所述用电设备检测所述数据线中是否设置有存储器;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;
    若所述用电设备检测到所述数据线中设置有存储器,所述用电设备与所述存储器进行数据传输。If the powered device detects that a memory is disposed in the data line, the powered device performs data transmission with the memory.
  2. 根据权利要求1所述的方法,其特征在于,所述用电设备检测所述数据线中是否设置有存储器,包括:The method according to claim 1, wherein the detecting, by the electrical device, whether the data line is provided with a memory comprises:
    所述用电设备检测所述数据线的标识;The electrical device detects an identifier of the data line;
    若所述用电设备检测到的所述数据线的标识与预设的设置有存储器的数据线的标识相同;或者,若所述用电设备检测到的所述数据线的标识与预设的设置有存储器的数据线的标识的格式相同,所述用电设备确定所述数据线中设置有存储器。If the identifier of the data line detected by the powered device is the same as the identifier of the preset data line provided with the memory; or if the identifier of the data line detected by the powered device is preset The format of the identification of the data line provided with the memory is the same, and the powered device determines that the memory is provided in the data line.
  3. 根据权利要求1所述的方法,其特征在于,所述用电设备与所述存储器进行数据传输,包括:The method according to claim 1, wherein the power device performs data transmission with the memory, including:
    所述用电设备查询所述数据线的数据传输协议;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.
  4. 根据权利要求1或3所述的方法,其特征在于,所述用电设备与所述存储器进行数据传输,包括:The method according to claim 1 or 3, wherein the power device performs data transmission with the memory, including:
    所述用电设备将所述用电设备所存储的数据发送到所述数据线中设置的存储器;或者,Transmitting, by the powered device, data stored by the powered device to a memory set in the data line; or
    所述用电设备获取所述数据线中设置的存储器所存储的数据。The powered device acquires data stored in a memory provided in the data line.
  5. 根据权利要求1所述的方法,其特征在于,所述数据线的电能为所述供 电设备提供的。The method of claim 1 wherein said data line is powered by said source Provided by electrical equipment.
  6. 一种数据传输方法,其特征在于,包括:A data transmission method, comprising:
    设置有存储器的数据线分别连接用电设备和供电设备;The data lines provided with the memory are respectively connected to the power device and the power supply device;
    所述设置有存储器的数据线将所述供电设备的电能提供给所述用电设备时,所述存储器与所述用电设备进行数据传输。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.
  7. 根据权利要求6所述的方法,其特征在于,所述存储器与所述用电设备进行数据传输,包括:The method according to claim 6, wherein the memory and the powered device perform data transmission, including:
    所述存储器通过所述数据线的数据传输协议与所述用电设备进行数据传输。The memory performs data transmission with the powered device through a data transmission protocol of the data line.
  8. 根据权利要求6所述的方法,其特征在于,所述存储器与所述用电设备进行数据传输,包括:The method according to claim 6, wherein the memory and the powered device perform data transmission, including:
    所述存储器接收所述用电设备发送的数据;或者,The memory receives data sent by the powered device; or
    所述存储器将所述存储器所存储的数据发送给所述用电设备。The memory transmits data stored by the memory to the powered device.
  9. 根据权利要求6所述的方法,其特征在于,所述数据线的电能为所述供电设备提供的。The method of claim 6 wherein the electrical energy of said data line is provided by said powering device.
  10. 一种用电设备,其特征在于,所述用电设备通过数据线连接供电设备;An electric device, wherein the electric device is connected to a power supply device through a data line;
    所述用电设备包括: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;
    传输模块,用于若所述检测模块检测到所述数据线中设置有存储器,所述传输模块与所述存储器进行数据传输。And a transmission module, configured to: if the detection module detects that a memory is disposed in the data line, the transmission module performs data transmission with the memory.
  11. 根据权利要求10所述的用电设备,其特征在于,所述检测模块,具体用于:The electrical device according to claim 10, wherein the detecting module is specifically configured to:
    检测所述数据线的标识;Detecting an identifier of the data line;
    若检测到的所述数据线的标识与预设的设置有存储器的数据线的标识相同;或者,若检测到的所述数据线的标识与预设的设置有存储器的数据线的标 识的格式相同,确定所述数据线中设置有存储器。If 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 identifier of the data line is detected and the preset data line of the memory is set The format of the recognition is the same, and it is determined that the memory is set in the data line.
  12. 根据权利要求10所述的用电设备,其特征在于,所述传输模块,具体用于:The electrical device according to claim 10, wherein the transmission module is specifically configured to:
    查询所述数据线的数据传输协议;Querying a data transmission protocol of the data line;
    与所述存储器通过所述数据传输协议进行数据传输。Data transmission with the memory through the data transfer protocol.
  13. 根据权利要求10或12所述的用电设备,其特征在于,所述传输模块,具体用于:The electrical device according to claim 10 or 12, wherein the transmission module is specifically configured to:
    将所述用电设备所存储的数据发送到所述数据线中设置的存储器;或者,Transmitting data stored by the powered device to a memory set in the data line; or
    获取所述数据线中设置的存储器所存储的数据。Acquiring data stored in a memory set in the data line.
  14. 一种数据线,其特征在于,包括:A data line, comprising:
    连接线,用于分别连接用电设备和供电设备;以及,用于将所述供电设备的电能提供给所述用电设备;a 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;
    存储器,用于所述连接线将所述供电设备的电能提供给所述用电设备时,与所述用电设备进行数据传输。And 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.
  15. 根据权利要求14所述的数据线,其特征在于,所述存储器,具体用于:The data line according to claim 14, wherein the memory is specifically configured to:
    通过所述数据线的数据传输协议与所述用电设备进行数据传输。Data transmission is performed with the powered device through a data transmission protocol of the data line.
  16. 根据权利要求14所述的数据线,其特征在于,所述存储器,具体用于:The data line according to claim 14, wherein the memory is specifically configured to:
    接收所述用电设备所发送的数据;或者,Receiving data transmitted by the powered device; or
    将所述存储器所存储的数据发送给所述用电设备。Transmitting data stored in the memory to the powered device.
  17. 根据权利要求14所述的数据线,其特征在于,所述连接线,还用于:The data line according to claim 14, wherein the connecting line is further configured to:
    将所述供电设备的电能提供给所述存储器。 The power of the power supply device is provided to the memory.
PCT/CN2016/096841 2016-03-29 2016-08-26 Data transmission method, electrical device and data cable WO2017166633A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610185046.4A CN105893175A (en) 2016-03-29 2016-03-29 Data transmission method, electric equipment and data wire
CN2016101850464 2016-03-29

Publications (1)

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

Family

ID=57013839

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096841 WO2017166633A1 (en) 2016-03-29 2016-08-26 Data transmission method, electrical device and data cable

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893175A (en) * 2016-03-29 2016-08-24 乐视控股(北京)有限公司 Data transmission method, electric equipment and data wire
CN110321303A (en) * 2018-03-29 2019-10-11 中国移动通信集团终端有限公司 Device, method, terminal and the storage medium of back-up terminals data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150326A (en) * 2007-10-18 2008-03-26 方毅 A communication terminal connection device with charging connection and data communication and storage function
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 (en) * 2015-10-19 2016-01-13 杭州德澜科技有限公司 Data communication method based on direct current power supply
CN105281403A (en) * 2015-10-19 2016-01-27 杭州德澜科技有限公司 Intelligent socket communicating through USB interface
CN105893175A (en) * 2016-03-29 2016-08-24 乐视控股(北京)有限公司 Data transmission method, electric equipment and data wire

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 (en) * 2007-10-18 2008-03-26 方毅 A communication terminal connection device with charging connection and data communication and storage function
CN105245254A (en) * 2015-10-19 2016-01-13 杭州德澜科技有限公司 Data communication method based on direct current power supply
CN105281403A (en) * 2015-10-19 2016-01-27 杭州德澜科技有限公司 Intelligent socket communicating through USB interface
CN105893175A (en) * 2016-03-29 2016-08-24 乐视控股(北京)有限公司 Data transmission method, electric equipment and data wire

Also Published As

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

Similar Documents

Publication Publication Date Title
EP2879014B1 (en) Tablet interface extension method and device
EP2887492B1 (en) Method and apparatus for charging a battery
US8769317B2 (en) USB hub for supplying power upon determination whether a USB device is chargeable according to data transfer rate of the USB device
EP2892214B1 (en) Mobile terminal, master data communication device, and mobile terminal charging system and method
WO2017063192A1 (en) Charging method, mobile terminal, and charging device
WO2016074158A1 (en) Power adaptor, terminal and charging system
WO2014075498A1 (en) Charging management method, device and system
CN107707000B (en) OTG power supply and wireless charging compatible circuit, related method and terminal equipment
US11048315B2 (en) Remote wake-up of mobile devices
US20160147276A1 (en) Rack server system and power management method thereof
US20150106536A1 (en) Power-over-ethernet powered universal serial bus charging port
TWM486890U (en) Charging apparatus of integrated network
US20170162929A1 (en) Charging Cable
CN109564557A (en) Single line communication method and apparatus
US20130283028A1 (en) Adapter identification system and method for computer
WO2017166633A1 (en) Data transmission method, electrical device and data cable
US20240042891A1 (en) Methods, devices, and systems for submetering of an electric vehicle (ev) charging session
TW201535128A (en) Electric system
WO2015143793A1 (en) Current control method and terminal device
TWI223509B (en) Wireless transmission device
CN106792273B (en) TYPE-C power supply and HUB integrated HUB system and operation method thereof
JP2013247762A5 (en)
US11934736B2 (en) Wireless conferencing system and collaboration method thereof
CN109378891B (en) Charging and discharging method, mobile power supply and computer storage medium
WO2016192675A1 (en) Method for outputting charging current and power amplifier

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