Data transmission method, device and equipment

By disconnecting the USB data path when the electronic device is locked or turned off, and re-enabled after unlocking, the problem of poor data security is solved, and efficient data protection is achieved.

CN119512991AActive Publication Date: 2025-02-25VIVO MOBILE COMM CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411580588.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2025-02-25
Estimated Expiration
2044-11-06

AI Technical Summary

Technical Problem

The USB data path of electronic devices cannot be disconnected when locking the screen or shutting down, resulting in poor data security and is easily acquired by other users through the USB data path.

Method used

By receiving lock screen or shutdown instructions, disconnect the USB data path of the electronic device and re-enable the USB data path after receiving the unlock command to transmit data.

Benefits of technology

It effectively prevents other users from obtaining data from the device through the USB data channel when the electronic device is locked and shut down, improving data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512991A_ABST
    Figure CN119512991A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method, device and equipment, and belongs to the technical field of electronic equipment. The data transmission method comprises the steps that a first instruction is received, and the first instruction comprises a screen locking instruction or a shutdown instruction; in response to the first instruction, disconnecting a USB data path of the electronic equipment; a second instruction is received, and the second instruction comprises an unlocking instruction; and in response to the second instruction, unlocking the electronic equipment and conducting the USB data path so as to transmit data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a data transmission method, device and equipment. Background Art

[0002] The Universal Serial Bus (USB) path of the electronic device includes: a data path, an audio path and a charging protocol path, wherein the data path is used for data transmission, the audio path is used for transmitting audio signals, and the charging protocol path is used for charging the electronic device.

[0003] Usually, the USB data path of an electronic device is turned on after it leaves the factory. This means that when the electronic device is obtained by other users, the other users can obtain the data in the electronic device through the USB data path, resulting in poor data security. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a data transmission method, device and equipment that can solve the problem of poor data security.

[0005] In a first aspect, an embodiment of the present application provides a data transmission method, including:

[0006] Receiving a first instruction, wherein the first instruction includes a screen lock instruction or a power off instruction;

[0007] In response to the first instruction, disconnecting the USB data path of the electronic device;

[0008] receiving a second instruction, wherein the second instruction includes an unlock instruction;

[0009] In response to the second instruction, the electronic device is unlocked and the USB data path is turned on to transmit data.

[0010] In a second aspect, an embodiment of the present application provides a data transmission device, including:

[0011] A first receiving module, configured to receive a first instruction, wherein the first instruction includes a screen lock instruction or a power off instruction;

[0012] A disconnection module, configured to disconnect the USB data path of the electronic device in response to the first instruction;

[0013] A second receiving module, configured to receive a second instruction, wherein the second instruction includes an unlocking instruction;

[0014] The conduction module is used to unlock the electronic device and conduct the USB data path in response to the second instruction to transmit data.

[0015] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the data transmission method provided in the embodiment of the present application are implemented.

[0016] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the data transmission method provided in the embodiment of the present application are implemented.

[0017] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the data transmission method provided in the embodiment of the present application.

[0018] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the data transmission method provided in an embodiment of the present application.

[0019] In an embodiment of the present application, a first instruction is received, wherein the first instruction includes a lock screen instruction or a shutdown instruction; in response to the first instruction, the USB data path of the electronic device is disconnected; a second instruction is received, wherein the second instruction includes an unlock instruction; in response to the second instruction, the electronic device is unlocked and the USB data path is turned on to transmit data. In this way, when the electronic device is locked or shut down, the USB data path of the electronic device is disconnected, and when the electronic device is unlocked, the USB data path is turned on, which can prevent other users from obtaining data in the electronic device through the USB data path when the electronic device is locked or shut down, and can improve the security of data in the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a flowchart of a data transmission method provided in an embodiment of the present application;

[0021] Figure 2 This is a schematic diagram of the first hardware architecture provided in the embodiment of the present application;

[0022] Figure 3 This is a schematic diagram of the second hardware architecture provided in the embodiment of the present application;

[0023] Figure 4 This is a schematic diagram of the third hardware architecture provided in the embodiment of the present application;

[0024] Figure 5 is a schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;

[0025] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0026] Figure 7 It is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0028] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0029] The data transmission method, apparatus and device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0030] Figure 1 : is a flow chart of a data transmission method provided in an embodiment of the present application. The data transmission method may include:

[0031] Step 101: receiving a first instruction, wherein the first instruction includes a screen lock instruction or a power off instruction;

[0032] In some possible implementations of the embodiments of the present application, the first instruction in the embodiments of the present application may be sent when triggered by a user, or may be sent automatically.

[0033] For the lock screen command, when the user short presses the power button of the electronic device, the lock screen command is triggered, or the user sets the automatic lock screen, and when the electronic device is not operated for a long time, the lock screen command is automatically triggered.

[0034] For the shutdown command, when the user long presses the power button of the electronic device, the lock screen command is triggered, or when the user sets automatic shutdown, the lock screen command is automatically triggered when the corresponding time point of automatic shutdown is reached.

[0035] Step 102: In response to the first instruction, disconnect the USB data path of the electronic device.

[0036] In some possible implementations of the embodiments of the present application, after receiving a lock screen instruction or a shutdown instruction, the USB data path of the electronic device is disconnected. After the USB data path of the electronic device is disconnected, data in the electronic device cannot be obtained through the USB data path.

[0037] Step 103: receiving a second instruction, wherein the second instruction includes an unlock instruction;

[0038] In some possible implementations of the embodiments of the present application, the unlocking instruction in the embodiments of the present application includes an unlocking instruction for unlocking the screen when the screen is locked, and may also include an unlocking instruction when the electronic device is turned on.

[0039] Step 104: In response to the unlock instruction, unlock the electronic device and open the USB data path to transmit data.

[0040] The embodiments of the present application do not limit the method used to unlock the electronic device, and any available unlocking method can be applied to the embodiments of the present application, such as fingerprint unlocking, face unlocking, pattern unlocking, character unlocking, etc. When the electronic device is unlocked, the USB data path is turned on, and data transmission can be performed at this time.

[0041] In an embodiment of the present application, a first instruction is received, wherein the first instruction includes a lock screen instruction or a shutdown instruction; in response to the first instruction, the USB data path of the electronic device is disconnected; a second instruction is received, wherein the second instruction includes an unlock instruction; in response to the second instruction, the electronic device is unlocked and the USB data path is turned on to transmit data. In this way, when the electronic device is locked or shut down, the USB data path of the electronic device is disconnected, and when the electronic device is unlocked, the USB data path is turned on, which can prevent other users from obtaining data in the electronic device through the USB data path when the electronic device is locked or shut down, and can improve the security of data in the electronic device.

[0042] In some possible implementations of the embodiments of the present application, in step 102, the USB data path of the electronic device can be disconnected when the electronic device is set with a lock screen password.

[0043] In the embodiment of the present application, since a lock screen password is set, even if other users obtain the electronic device, they cannot unlock the electronic device and obtain data in the electronic device.

[0044] In some possible implementations of the embodiments of the present application, the USB data path of the electronic device includes a USB data path inside a processor of the electronic device and a USB data path outside the processor. When disconnecting the USB data path of the electronic device, the USB data path inside the processor and / or the USB data path outside the processor may be disconnected, that is, only the USB data path inside the processor may be disconnected, only the USB data path outside the processor may be disconnected, or both the USB data path inside the processor and the USB data path outside the processor may be disconnected.

[0045] In some possible implementations of the embodiments of the present application, the electronic device includes a USB logic switch, which is used for switching between a USB data path, an audio path, and a charging protocol path outside the processor; accordingly, step 102 may include: switching the USB logic switch to the audio path or the charging protocol path, and disconnecting the USB data path outside the processor.

[0046] In some possible implementations of the embodiments of the present application, the USB logic switch in the embodiments of the present application may adopt a single-pole triple-throw switch or two single-pole double-throw switches.

[0047] For example, Figure 2 As shown, Figure 2 This is a schematic diagram of the first hardware architecture provided by the embodiment of the present application. Figure 2 In the figure, the USB logic switch adopts a single-pole three-throw switch, and the single-pole three-throw switch 201 is respectively connected to the USB data path 2021, the audio path 2022 and the charging protocol path 2023, and the common end of the single-pole three-throw switch 201 is connected to the USB interface 203 of the electronic device; the USB data path 2021 is connected to the processor 204 of the electronic device, and the processor 204 is also connected to the single-pole three-throw switch 201 through the control line 205.

[0048] When the electronic device receives a screen lock command or a power off command, the processor 204 switches the single-pole triple-throw switch 201 to the audio path 2022 or the charging protocol path 2023 through the control line 205 , and disconnects the USB data path 2021 outside the processor 204 .

[0049] For example, Figure 3 As shown, Figure 3 This is a schematic diagram of the second hardware architecture provided by the embodiment of the present application. Figure 3In the embodiment, the USB logic switch uses two single-pole double-throw switches, the first single-pole double-throw switch 301 is connected to the USB data path 2021 and the charging protocol path 2023 respectively, the second single-pole double-throw switch 302 is connected to the common end of the first single-pole double-throw switch 301 and the audio path 2022 respectively, the common end of the second single-pole double-throw switch 302 is connected to the USB interface 203 of the electronic device, the USB data path 2021 is connected to the processor 204 of the electronic device, and the processor 204 is also connected to the first single-pole double-throw switch 301 through the first control line 303, and is connected to the second single-pole double-throw switch 302 through the second control line 304.

[0050] When the electronic device receives a lock screen command or a shutdown command, the processor 204 switches the first single-pole double-throw switch 301 to the charging protocol path 2023 through the first control line 303, or switches the second single-pole double-throw switch 302 to the audio path 2022 through the second control line 304.

[0051] In some possible implementations of the embodiments of the present application, preferably, the USB logic switch can be switched to the charging protocol path. In this case, whether the electronic device is connected to a computer or a charger through a USB interface, it will be identified as non-standard charging, which can ensure that the electronic device cannot be cracked or flashed no matter who has it, which can improve data security, but the electronic device can be charged, and the electronic device can be tracked when it is turned on, which increases the probability of the owner finding the electronic device.

[0052] In some possible implementations of the embodiments of the present application, when the first instruction includes a shutdown instruction, step 102 may include: disconnecting the USB data path after a first time period after receiving the first instruction. That is, when the first instruction is received, the USB data path is not disconnected immediately, but is disconnected after a delay of a period of time.

[0053] In some possible implementations of the embodiments of the present application, the first duration can be set according to actual needs.

[0054] In some possible implementations of the embodiments of the present application, when the electronic device is turned off, by delaying the disconnection of the USB data path, it can be ensured that the normal flashing and other operations of the owner of the electronic device are not affected when the electronic device is turned off, while at the same time preventing the electronic device from being illegally flashed by others when it is lost.

[0055] In some possible implementations of the embodiments of the present application, step 104 may include: switching the USB logic switch to a USB data path outside the processor to conduct the USB data path outside the processor.

[0056] For example, when an electronic device uses Figure 2In the architecture shown, after the electronic device receives the unlocking instruction, the processor 204 switches the single-pole triple-throw switch 201 to the USB data path 2021 through the control line 205, thereby turning on the USB data path 2021 outside the processor 204.

[0057] When electronic devices use Figure 3 In the architecture shown, after the electronic device receives the unlocking instruction, the processor 204 switches the first single-pole double-throw switch 301 to the USB data path 2021 through the first control line 303, and switches the second single-pole double-throw switch 302 to the common end of the first single-pole double-throw switch 301 through the second control line 304, thereby turning on the USB data path 2021 outside the processor 204.

[0058] In some possible implementations of the embodiments of the present application, the electronic device may include a power management chip (Power Management Integrated Circuits, PMIC), and the power management chip is connected to a switch for controlling the conduction or disconnection of a USB data path inside a processor. Step 102 may include: when the power management chip detects through a USB battery charging protocol that a USB device is connected to the electronic device and the USB bus voltage is greater than a first threshold, turning on the switch, disconnecting the USB data path inside the processor, and turning off the USB battery charging protocol.

[0059] In some possible implementations of the embodiments of the present application, the USB battery charging protocol defines a detection, control and reporting mechanism for charging a device through a USB interface. When an electronic device is connected to a computer through a USB interface, the USB battery charging protocol will identify the computer as a standard downstream port (Standard Downstream Port) device, and the electronic device can perform data transmission and charging at this time; when an electronic device is connected to a charger through a USB interface, the USB battery charging protocol will identify the computer as a standard charging port (Dedicated Charging Port, DCP) device, and the electronic device can only be charged at this time. The first threshold value can be set according to actual needs, for example, 4.5 volts (V).

[0060] For example, Figure 4 As shown, Figure 4 This is a schematic diagram of the third hardware architecture provided in an embodiment of the present application.

[0061] exist Figure 4 In the embodiment, the power management chip 401 is connected to the USB data path 402 outside the processor 403, and the power management chip 401 is also connected to the switch 4031 in the processor 403 through the control line 404. The other end of the USB data path 402 outside the processor 403 is connected to the USB interface 203.

[0062] When the electronic device is locked or turned off, the power management chip 401 performs USB device access detection through the USB battery charging protocol. When it is detected that a USB device is connected to the electronic device and the USB bus voltage is greater than the first threshold, the USB battery charging protocol is turned off, and the switch 4031 in the processor 403 is controlled to open through the control line 404, so that the USB data path inside the processor 403 is disconnected. Since the USB data path inside the processor 403 is disconnected, even if a USB device is connected to the electronic device at this time, the data in the electronic device cannot be obtained, which can improve the security of the data in the electronic device. After the USB battery charging protocol is turned off, the USB device can only communicate with the charging protocol path. When the USB device is identified as a DCP device, the electronic device is charged.

[0063] In some possible implementations of the embodiments of the present application, step 104 may include: when the power management chip detects through the USB battery charging protocol that a USB device is connected to the electronic device and the USB bus voltage is greater than a second threshold, closing the switch, turning on the USB data path inside the processor, and starting the USB battery charging protocol.

[0064] In some possible implementations of the embodiments of the present application, when the electronic device adopts Figure 4 In the architecture shown, after the electronic device receives the unlocking instruction, the power management chip 401 performs USB device access detection through the USB battery charging protocol. When it is detected that a USB device is connected to the electronic device and the USB bus voltage is greater than a second threshold, the USB battery charging protocol is turned on, and the switch 4031 in the processor 403 is controlled to be closed through the control line 404, so that the USB data path inside the processor 403 is turned on.

[0065] In some possible implementations of the embodiments of the present application, after the electronic device is unlocked, the USB data path is turned on, and the USB battery charging protocol is turned on, the USB data path is connected to the power management chip, and the USB device access detection is performed through the USB battery charging protocol. When the connected USB device is identified as a USB audio device (for example, a USB headset or a USB microphone), the processor controls the USB logic switch to switch to the audio path to transmit the audio signal with the audio codec in the electronic device; when the connected USB device is identified as an SDP device, the USB logic switch is switched to the data path to transmit data with the SDP device; when the connected USB device is identified as a DCP device (for example, a charger), the USB logic switch is switched to the charging protocol path to charge the electronic device.

[0066] The data transmission method provided in the embodiment of the present application can be executed by a data transmission device. In the embodiment of the present application, the data transmission method executed by a data transmission device is taken as an example to illustrate the data transmission device provided in the embodiment of the present application.

[0067] Figure 5 Schematic diagram of the structure of the data transmission device provided in the embodiment of the present application. The data transmission device 500 may include:

[0068] A first receiving module 501 is used to receive a first instruction, wherein the first instruction includes a screen lock instruction or a power off instruction;

[0069] A disconnection module 502, configured to disconnect the USB data path of the electronic device in response to the first instruction;

[0070] A second receiving module 503 is used to receive a second instruction, wherein the second instruction includes an unlocking instruction;

[0071] The conducting module 504 is used to unlock the electronic device and conduct the USB data path to transmit data in response to the second instruction.

[0072] In an embodiment of the present application, a first instruction is received, wherein the first instruction includes a lock screen instruction or a shutdown instruction; in response to the first instruction, the USB data path of the electronic device is disconnected; a second instruction is received, wherein the second instruction includes an unlock instruction; in response to the second instruction, the electronic device is unlocked and the USB data path is turned on to transmit data. In this way, when the electronic device is locked or shut down, the USB data path of the electronic device is disconnected, and when the electronic device is unlocked, the USB data path is turned on, which can prevent other users from obtaining data in the electronic device through the USB data path when the electronic device is locked or shut down, and can improve the security of data in the electronic device.

[0073] In some possible implementations of the embodiments of the present application, the electronic device includes a power management chip, and the power management chip is connected to a switch for controlling the conduction or disconnection of a USB data path inside a processor;

[0074] The disconnection module 502 is specifically used for:

[0075] When the power management chip detects through the USB battery charging protocol that a USB device is connected to the electronic device and the USB bus voltage is greater than a first threshold, the switch is turned on, the USB data path inside the processor is disconnected, and the USB battery charging protocol is turned off.

[0076] In some possible implementations of the embodiment of the present application, the conduction module 504 is specifically used for:

[0077] When the power management chip detects through the USB battery charging protocol that a USB device is connected to the electronic device and the USB bus voltage is greater than the second threshold, the switch is closed, the USB data path inside the processor is turned on, and the USB battery charging protocol is turned on.

[0078] In some possible implementations of the embodiments of the present application, the electronic device includes a USB logic switch, and the USB logic switch is used for switching between a USB data path, an audio path, and a charging protocol path outside a processor;

[0079] The disconnection module 502 is specifically used for:

[0080] Switch the USB logic switch to the audio path or the charging protocol path, and disconnect the USB data path outside the processor.

[0081] In some possible implementations of the embodiment of the present application, the conduction module 504 is specifically used for:

[0082] The USB logic switch is switched to the USB data path outside the processor, thereby conducting the USB data path outside the processor.

[0083] The data transmission device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0084] The data transmission device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0085] The data transmission device provided in the embodiment of the present application can achieve Figures 1 to 4 To avoid repetition, the various processes implemented in the data transmission method embodiment are not described here.

[0086] Alternatively, if Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601 and a memory 602, wherein the memory 602 stores programs or instructions that can be executed on the processor 601, and when the program or instructions are executed by the processor 601, the various steps of the above-mentioned data transmission method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0087] Figure 7 It is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0088] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.

[0089] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0090] Among them, the processor 710 is used to: receive a first instruction, wherein the first instruction includes a lock screen instruction or a shutdown instruction; in response to the first instruction, disconnect the USB data path of the electronic device; receive a second instruction, wherein the second instruction includes an unlock instruction; in response to the second instruction, unlock the electronic device and turn on the USB data path to transmit data.

[0091] In an embodiment of the present application, a first instruction is received, wherein the first instruction includes a lock screen instruction or a shutdown instruction; in response to the first instruction, the USB data path of the electronic device is disconnected; a second instruction is received, wherein the second instruction includes an unlock instruction; in response to the second instruction, the electronic device is unlocked and the USB data path is turned on to transmit data. In this way, when the electronic device is locked or shut down, the USB data path of the electronic device is disconnected, and when the electronic device is unlocked, the USB data path is turned on, which can prevent other users from obtaining data in the electronic device through the USB data path when the electronic device is locked or shut down, and can improve the security of data in the electronic device.

[0092] In some possible implementations of the embodiments of the present application, the electronic device includes a power management chip, and the power management chip is connected to a switch for controlling the conduction or disconnection of a USB data path inside a processor;

[0093] The processor 710 is specifically configured to:

[0094] When the power management chip detects through the USB battery charging protocol that a USB device is connected to the electronic device and the USB bus voltage is greater than a first threshold, the switch is turned on, the USB data path inside the processor is disconnected, and the USB battery charging protocol is turned off.

[0095] In some possible implementations of the embodiments of the present application, the processor 710 is specifically configured to:

[0096] When the power management chip detects through the USB battery charging protocol that a USB device is connected to the electronic device and the USB bus voltage is greater than the second threshold, the switch is closed, the USB data path inside the processor is turned on, and the USB battery charging protocol is turned on.

[0097] In some possible implementations of the embodiments of the present application, the electronic device includes a USB logic switch, and the USB logic switch is used for switching between USB data paths, audio paths, and charging protocol paths outside the processor. Accordingly, the processor 710 is specifically used for:

[0098] Switch the USB logic switch to the audio path or the charging protocol path, and disconnect the USB data path outside the processor.

[0099] In some possible implementations of the embodiments of the present application, the processor 710 is specifically configured to:

[0100] The USB logic switch is switched to the USB data path outside the processor, thereby conducting the USB data path outside the processor.

[0101] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0102] The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 709 may include a volatile memory or a non-volatile memory, or the memory 709 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0103] The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 710.

[0104] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned data transmission method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0105] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, and examples of computer-readable storage media include non-transitory computer-readable media, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0106] An embodiment of the present application also provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the data transmission method embodiment provided in the embodiment of the present application, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0107] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0108] The embodiment of the present application also provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the data transmission method embodiment provided in the embodiment of the present application, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0109] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0110] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0111] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data transmission method, characterized in that: The method comprises: Receiving a first instruction, wherein the first instruction includes a screen lock instruction or a power off instruction; In response to the first instruction, disconnecting the USB data path of the electronic device; receiving a second instruction, wherein the second instruction includes an unlock instruction; In response to the second instruction, the electronic device is unlocked and the USB data path is turned on to transmit data.

2. The method according to claim 1, characterized in that The electronic device comprises a power management chip, and the power management chip is connected to a switch for controlling the conduction or disconnection of a USB data path inside a processor of the electronic device; The method of disconnecting the USB data path of the electronic device comprises: When the power management chip detects through the USB battery charging protocol that a USB device is connected to the electronic device and the USB bus voltage is greater than a first threshold, the switch is turned on, the USB data path inside the processor is disconnected, and the USB battery charging protocol is turned off.

3. The method according to claim 2, characterized in that The step of conducting the USB data path comprises: When the power management chip detects through the USB battery charging protocol that a USB device is connected to the electronic device and the USB bus voltage is greater than a second threshold, the switch is closed, the USB data path inside the processor is turned on, and the USB battery charging protocol is turned on.

4. The method according to claim 1, characterized in that The electronic device comprises a USB logic switch, and the USB logic switch is used for switching between a USB data path, an audio path and a charging protocol path outside a processor of the electronic device; The method of disconnecting the USB data path of the electronic device comprises: The USB logic switch is switched to an audio path or a charging protocol path, and the USB data path outside the processor is disconnected.

5. A data transmission device, characterized in that: The device comprises: A first receiving module, configured to receive a first instruction, wherein the first instruction includes a screen lock instruction or a power off instruction; A disconnection module, configured to disconnect the USB data path of the electronic device in response to the first instruction; A second receiving module, configured to receive a second instruction, wherein the second instruction includes an unlocking instruction; The conduction module is used to unlock the electronic device and conduct the USB data path in response to the second instruction to transmit data.

6. The device according to claim 5, characterized in that The electronic device comprises a power management chip, and the power management chip is connected to a switch for controlling the conduction or disconnection of a USB data path inside a processor of the electronic device; The disconnection module is specifically used for: When the power management chip detects through the USB battery charging protocol that a USB device is connected to the electronic device and the USB bus voltage is greater than a first threshold, the switch is turned on, the USB data path inside the processor is disconnected, and the USB battery charging protocol is turned off.

7. The device according to claim 6, characterized in that The conduction module is specifically used for: When the power management chip detects through the USB battery charging protocol that a USB device is connected to the electronic device and the USB bus voltage is greater than a second threshold, the switch is closed, the USB data path inside the processor is turned on, and the USB battery charging protocol is turned on.

8. The device according to claim 5, characterized in that The electronic device comprises a USB logic switch, and the USB logic switch is used for switching between a USB data path, an audio path and a charging protocol path outside a processor of the electronic device; The disconnection module is specifically used for: The USB logic switch is switched to an audio path or a charging protocol path, and the USB data path outside the processor is disconnected.

9. The device according to claim 8, characterized in that The conduction module is specifically used for: The USB logic switch is switched to the USB data path outside the processor to conduct the USB data path outside the processor.

10. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the data transmission method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Charging method and apparatus of terminal having data exchange function

    CN105071488A

  • Anti-reinstallation-after-stolen mobile terminal and anti-reinstallation-after-stolen method therefor

    CN105117912A

  • Electronic equipment and information processing method

    CN105824775A

  • Shutdown method of electronic equipment and electronic equipment

    CN114489825A

  • USB (Universal Serial Bus) interface device

    US20040268163A1