WO2022170861A1 - 电子设备的数据传输方法、电子设备及接口电路 - Google Patents

电子设备的数据传输方法、电子设备及接口电路 Download PDF

Info

Publication number
WO2022170861A1
WO2022170861A1 PCT/CN2021/140164 CN2021140164W WO2022170861A1 WO 2022170861 A1 WO2022170861 A1 WO 2022170861A1 CN 2021140164 W CN2021140164 W CN 2021140164W WO 2022170861 A1 WO2022170861 A1 WO 2022170861A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
type
switch
interface
peer
Prior art date
Application number
PCT/CN2021/140164
Other languages
English (en)
French (fr)
Inventor
许颖齐
陈俊涛
唐志勇
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21925506.4A priority Critical patent/EP4280072A4/en
Publication of WO2022170861A1 publication Critical patent/WO2022170861A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Definitions

  • the present application relates to the field of terminals, and in particular, to a data transmission method of an electronic device, an electronic device and an interface circuit.
  • a notebook computer can be connected to a large-screen device, the notebook computer transmits the operation interface to the large-screen device in the form of video data, and displays the operation interface of the notebook computer on the large-screen device.
  • the notebook computer can also be connected with the mobile phone, receive video data of the operation interface sent by the mobile phone, and display the operation interface of the mobile phone on the screen of the notebook computer.
  • the existing video transmission interface often can only be used for video data input or video data output alone.
  • a device supports video data input and video data output at the same time, multiple video interfaces need to be set up to be used for video data input or video data output respectively.
  • the structure is complex and easy to cause misoperation.
  • the embodiments of the present application provide a data transmission method, an electronic device and an interface circuit of an electronic device, which can solve the problem that when a device needs both video data input and video data output, a video input port and a video output port need to be set respectively. It is complicated and prone to misoperation.
  • an embodiment of the present application provides a data transmission method for an electronic device.
  • the electronic device includes a bidirectional interface, and the bidirectional interface is used for receiving multimedia data and sending multimedia data.
  • the method includes: after the opposite end device is inserted into the bidirectional interface, determining the device type of the opposite end device and the device type of the electronic device. After determining that the device type of the electronic device is the receiving end device, the multimedia data sent by the opposite end device is sent to the display receiving processor of the electronic device through the bidirectional interface. After determining that the device type of the electronic device is the source device, the multimedia data generated by the display sending processor on the electronic device is sent to the opposite device through the bidirectional interface.
  • electronic devices local devices
  • peer devices may include mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, laptops, super Mobile personal computers (ultra-mobile personal computers, UMPCs), netbooks, personal digital assistants (personal digital assistants, PDAs), large-screen devices and other devices that have the ability to send and receive multimedia data.
  • the peer device may be a device such as a mobile phone, a laptop computer, or a tablet computer.
  • a bidirectional interface can be used to transfer data or power in both directions.
  • the data transmitted by the bidirectional interface may include multimedia data, such as video data, audio data, or audio-video data.
  • the data transmission method of the electronic device can identify whether the receiving end device or the source end device is accessed. And according to the type of the access device, the receiving end device is connected with the display sending processor or the source end device is connected with the display receiving processor.
  • the multiplexing of display sending and display receiving is realized on a two-way interface, the structure is more concise, and the probability of user misoperation is reduced.
  • the method further includes: after determining that the device type of the electronic device is the receiving end device, connecting the bidirectional interface with the display receiving processor. After it is determined that the device type of the electronic device is the source device, the bidirectional interface is connected to the display sending processor.
  • the bidirectional interface is connected to the display sending processor.
  • determining the device type of the peer device and the device type of the electronic device includes: determining the device type of the peer device according to the signal transmitted on the bidirectional interface. The device type of the electronic device is determined according to the device type of the peer device.
  • the bidirectional interface is a Universal Serial Bus Type-C interface.
  • Determine the device type of the peer device according to the signal transmitted on the bidirectional interface including: detecting the level state of the pin on the bidirectional interface, and determining the device type of the peer device according to the level state of the pin.
  • the level state is high, the peer device is the source device, when the pin level state is low, the peer device is the sink device, and the pin level state is between the high level and the low level.
  • the peer device is a dual-role port device.
  • the device type of the peer device is determined, and then the device type of the electronic device is determined, which realizes the automatic detection of the device type, and realizes display transmission and display on a two-way interface more easily. Received multiplex.
  • determining the device type of the electronic device according to the device type of the peer device includes: when the peer device is the source device, determining that the electronic device is the sink device. When the peer device is the sink device, it is determined that the electronic device is the source device.
  • the peer device is a dual-role port device
  • the device types of the electronic device and the peer device are determined through a role negotiation process or a role switching process.
  • the device type of the electronic device and the peer device can be determined through the role negotiation process or the role switching process, which can more accurately confirm the device type expected by the peer device, and then adjust the device of the electronic device. type, so that the electronic device matches the peer device more accurately and reduces the probability of configuration errors.
  • the method before determining the device types of the electronic device and the peer device through the role negotiation process or the role switching process, the method further includes: determining the initial device type of the electronic device as the source device.
  • the method further includes: obtaining information on whether the peer device supports the display of the uplink port through the bidirectional interface, and for the peer device that supports the display of the uplink port, Start the role negotiation process or the role switching process.
  • the peer device that does not support the display uplink port cannot send or receive video data. Only for the peer device that supports the display uplink port, start the role negotiation process or the role switching process, which can exclude the peer device that cannot be used for video data transmission. devices, reducing unnecessary pairing processes.
  • the method further includes: acquiring supplier information, manufacturer information, device type preference information and device function information of the opposite device through a bidirectional interface. At least one, according to the acquired information, determine whether the peer device and the electronic device are the same device, if they are the same, perform a role negotiation process, and if they are different, perform a role switching process. By acquiring the VID/SVID and PID of the peer device, it is possible to more accurately determine whether to perform the role negotiation process or the role switching process from the physical properties of the device.
  • the role negotiation process includes: displaying an inquiry message on the electronic device, and the inquiry message is used to obtain the final device type of the electronic device.
  • the role switching process includes: sending a role switching request message to the peer device.
  • the final device type of the opposite end device and the electronic device is set according to the response message of the opposite end device.
  • the role negotiation process the final device type of the electronic device can be obtained, and then the final device type of the peer device can be determined.
  • the role negotiation process or the role switching process can make the matching between the electronic device and the peer device more accurate, and reduce the probability of configuration errors.
  • the bidirectional interface is also used for bidirectional charging.
  • an embodiment of the present application provides a data transmission apparatus for an electronic device, where the electronic device includes a bidirectional interface, and the bidirectional interface is used for receiving multimedia data and sending multimedia data.
  • the device includes: a determining module for determining the device type of the opposite end device and the device type of the electronic device after the opposite end device is inserted into the bidirectional interface.
  • the sending module is used for sending the multimedia data sent by the opposite end device to the display receiving processor of the electronic device through the bidirectional interface after determining that the device type of the electronic device is the receiving end device.
  • the sending module is further configured to send the multimedia data generated by the display sending processor on the electronic device to the opposite device through the bidirectional interface after determining that the device type of the electronic device is the source device.
  • the apparatus further includes a connection module, configured to connect the bidirectional interface with the display receiving processor after determining that the device type of the electronic device is the receiving end device. After it is determined that the device type of the electronic device is the source device, the bidirectional interface is connected to the display sending processor.
  • the determining module is specifically configured to determine the device type of the peer device according to the signal transmitted on the bidirectional interface.
  • the device type of the electronic device is determined according to the device type of the peer device.
  • the bidirectional interface is a Universal Serial Bus Type-C interface.
  • the peer device is the source For the terminal device, when the level state of the pin is low, the peer device is the receiving device, and when the level state of the pin is switched between high level and low level, the peer device is a dual-role port device.
  • the determining module is specifically configured to determine the electronic device as the sink device when the opposite device is the source device.
  • the peer device is the sink device, it is determined that the electronic device is the source device.
  • the peer device is a dual-role port device, the device types of the electronic device and the peer device are determined through a role negotiation process or a role switching process.
  • the determining module is further configured to determine the initial device type of the electronic device as the source device.
  • the determining module is further configured to obtain information on whether the peer device supports displaying the uplink port through the bidirectional interface, and for the peer device that supports displaying the uplink port, start a role negotiation process or a role switching process.
  • the determining module is further configured to acquire at least one of the supplier information, manufacturer information, device type preference information and device function information of the peer device through the bidirectional interface, and determine the peer device and the electronic device according to the acquired information. Whether the devices are the same, if they are the same, perform the role negotiation process, and if they are different, perform the role switching process.
  • the role negotiation process includes: displaying an inquiry message on the electronic device, and the inquiry message is used to obtain the final device type of the electronic device.
  • the role switching process includes: sending a role switching request message to the peer device.
  • the final device type of the opposite end device and the electronic device is set according to the response message of the opposite end device.
  • the bidirectional interface is also used for bidirectional charging.
  • an embodiment of the present application provides an electronic device, the electronic device includes a bidirectional interface, a controller, a display receiving processor, and a display sending processor.
  • Bidirectional interface including pins, the pins are used to connect the peer device plugged into the bidirectional interface.
  • the controller is used to determine the device type of the peer device and the device type of the electronic device. After determining that the device type of the electronic device is the receiving device, the multimedia data sent by the peer device is sent to the display receiving device of the electronic device through a bidirectional interface.
  • the processor after determining that the device type of the electronic device is the source device, sends the multimedia data generated by the display sending processor on the electronic device to the opposite device through the bidirectional interface.
  • the display receiving processor is used for displaying and processing the received multimedia data.
  • the display sending processor is used for processing the obtained multimedia data.
  • the electronic device further includes a switch module, and after determining that the device type of the electronic device is the sink device, the switch module is used to connect the bidirectional interface with the display receiving processor, and after determining that the device type of the electronic device is the source device. Then, the switch module is used to connect the bidirectional interface with the display sending processor.
  • the switch module includes a first switch, a second switch and a third switch, the first switch is connected to the display sending processor, the second switch is connected to the display receiving processor, and the third switch is connected to the pin; After the device type of the electronic device is the sink device, the controller controls the second switch to communicate with the third switch, and after determining that the device type of the electronic device is the source device, the controller controls the first switch to communicate with the third switch.
  • the controller is used to detect the level state of the pin on the bidirectional interface, determine the device type of the peer device according to the level state of the pin, and determine the device of the electronic device according to the device type of the peer device. type.
  • the electronic device further includes a power module connected to the pins; the controller is further configured to control the power module to charge the opposite device.
  • the power supply module is further configured to receive power transmitted by the peer device through the bidirectional interface.
  • the bidirectional interface is a Universal Serial Bus Type-C interface or a Lightning interface.
  • the controller that detects the level state of the first pin on the bidirectional interface is a power delivery controller.
  • an embodiment of the present application provides an interface circuit, where the interface circuit is configured to be disposed on an electronic device, and includes an interface module, a switch module, and a controller.
  • the interface module includes pins, which are used to connect the peer device inserted into the bidirectional interface.
  • the controller is used to determine the device type of the peer device and the device type of the electronic device. After determining that the device type of the electronic device is the receiving device, the interface module is connected to the display receiving processor of the electronic device through the switch module. After the device type of the electronic device is the source device, the interface module is connected with the display sending processor of the electronic device through the switch module.
  • the switch module includes a first switch, a second switch and a third switch, the first switch is used for connecting with the display sending processor, the second switch is used for connecting with the display receiving processor, and the third switch is connected with the pins. connect. After determining that the device type of the electronic device is the sink device, the controller controls the second switch to communicate with the third switch, and after determining that the device type of the electronic device is the source device, the controller controls the first switch to communicate with the third switch.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method provided in the first aspect is implemented.
  • an embodiment of the present application provides a computer program product, which enables the terminal device to execute the method provided in the first aspect when the computer program product runs on a terminal device.
  • an embodiment of the present application provides a chip system, the chip system includes a memory and a processor, and the processor executes a computer program stored in the memory to implement the method provided in the first aspect.
  • an embodiment of the present application provides a chip system, the chip system includes a processor, the processor is coupled to the computer-readable storage medium provided in the fourth aspect, and the processor executes a computer program stored in the computer-readable storage medium, to implement the method provided in the first aspect.
  • FIG. 1 is a schematic diagram of an application scenario of a data transmission method for an electronic device provided by an embodiment of the present application
  • Figure 2 is a schematic diagram of the pins of the type-c interface
  • FIG. 3 is a schematic circuit diagram of an interface circuit provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a data transmission method for an electronic device provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a data transmission apparatus for an electronic device provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another data transmission apparatus of an electronic device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • the term “if” may be contextually interpreted as “when” or “once” or “in response to determining” or “in response to detecting ".
  • references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
  • FIG. 1 shows a schematic diagram of an electronic device connection scenario.
  • Electronic devices may include mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs) ), netbook, personal digital assistant (personal digital assistant, PDA), etc.
  • AR augmented reality
  • VR virtual reality
  • UMPCs ultra-mobile personal computers
  • PDA personal digital assistant
  • FIG. 1 it includes a smartphone 11 , a notebook computer 12 , and a display 13 .
  • the smartphone 11 can be connected to the notebook computer 12 through a data cable 14
  • the notebook computer 12 can be connected to the display 13 through the data cable 14 .
  • the notebook computer 12 can be used as a video input device when connected with the smart phone 11
  • the smart phone 11 can be used as a video output device.
  • the notebook computer 12 receives the interface video data sent by the smart phone 11 and displays it.
  • the notebook computer 12 when the notebook computer 12 is connected to the display 13, it can be used as a video output device, and the display 13 can be used as a video input device.
  • the notebook computer 12 sends the interface to the display 13 in the form of video data, and the display 13 displays the interface of the notebook computer 12 .
  • a high-definition multimedia interface (High Definition Multimedia Interface, HDMI), a type-c interface or a display interface (DisplayPort, DP) can be used as the video data input port.
  • a display interface DisplayPort, DP
  • a different HDMI interface, a type-c interface or a DP interface, etc. will be used as the video data output port.
  • the display input port and the display transmission port are of the same type (for example, both are type-c interfaces or both are DP interfaces), it may not be possible to accurately distinguish the function of each interface, resulting in a
  • the data cable connected to the device is inserted into the display sending port, or the data cable connected with the receiving device is inserted into the display input port.
  • the present application provides a data transmission method, electronic device and interface circuit of an electronic device, which can identify whether the receiving end device or the source end device is connected, and according to the type of the access device, associate the receiving end device with the display device.
  • the sending module is connected or the source end is connected with the display receiving module.
  • the multiplexing of display sending and display receiving is realized on one interface, the structure is more concise, and the probability of user misoperation is reduced.
  • the present application also provides a bidirectional interface for realizing the above-mentioned bidirectional signal or data transmission.
  • the bidirectional interface described in this application refers to an interface that can realize bidirectional charging, bidirectional video signal transmission, bidirectional audio signal transmission, etc. in this application.
  • the bidirectional interface of the electronic device provided in this application may be a universal serial port.
  • Bus Type-c Universal Serial Bus Type-c, Type-c
  • Lightning port Lightning port
  • the bidirectional interface is a Type-c interface, the video data can be transmitted through the DP1.2 protocol, the DP1.4 protocol or the DP2.0 protocol.
  • a Type-c interface female port
  • a bidirectional interface is taken as an example to describe the bidirectional interface.
  • FIG. 2 shows a schematic diagram of the pins of the Type-c interface.
  • the Type-c interface includes two sets of pins arranged symmetrically, so that the data line inserted into the Type-c interface does not need to distinguish between positive and negative, regardless of whether the data line is positive or negative. Plug or reverse plug can be used normally.
  • the configuration channel CC
  • the configuration channel can be detected through the power delivery (PD) controller of the electronic device.
  • PD power delivery
  • CC1 and CC2 to determine the device type of the peer device.
  • Device types may include sink devices (such as display receiving devices or video input devices) and source devices (such as display sending devices or video output devices).
  • the device type may further include dual role port (DRP) devices. Among them, the DRP device has dual roles, which can be used as both a receiving end device and a source end device.
  • DRP dual role port
  • the electronic device when the data line connected to the peer device is connected to the Type-c interface, if the peer device is the receiving device, the electronic device detects that the level states of CC1 and CC2 are low; The source device, the electronic device detects that the level states of CC1 and CC2 are high; if the peer device is a DRP device, the electronic device detects that the level states of CC1 and CC2 are periodically high and low. switch between flats.
  • the power transmission controller can also be used to detect the DP capability of the peer device.
  • the power transmission controller may send a DP capability query instruction to the peer device through CC1 and CC2 based on the power transmission protocol, and receive DP capability information returned by the peer device.
  • the DP capability includes whether the peer device supports DP video transmission, and the channel mode during video data transmission.
  • Video data transmission can include dual channel mode (USB&DP mode) and quad channel mode (DP ONLY mode).
  • the peer device supports dual-channel mode refer to the type-c interface shown in FIG. 2 , in which the data pins include a first sending positive pin (TX1+), a first sending negative pin (TX1-), a second sending Send positive pin (TX2+), second send negative pin (TX2-), first receive positive pin (RX1+), first receive negative pin (RX1-), second receive positive pin (RX2+) and The second receive negative pin (RX2-).
  • the data pins are divided into four groups of data pins according to reception, transmission and positive and negative poles.
  • TX1+ and RX1- are a group of data pins
  • RX1+ and TX1- are a group of data pins.
  • Data pins, TX2+, RX2- are a group of data pins, RX2+, TX2- are a group of data pins.
  • Each set of data pins can be used to receive and transmit data.
  • the peer device When the peer device supports dual-channel mode, it can transmit USB data signals (USB SS) through TX1+, RX1- and RX1+, TX1-, and transmit two DP signals (DP Main) through TX2+, RX2- and RX2+, TX2- respectively. Lane1 and DP Main Lane0).
  • USB SS USB data signals
  • DP Main DP signals
  • Lane1 and DP Main Lane0 since the Type-c interface is not divided into positive and negative, when the power transmission controller detects through CC1 and CC2 that the type-c interface (sub-port) of the access data line matches the type-c interface (female port) of the electronic device , without flipping the pins, the above pins can be used to transmit two DP signals and USB data signals.
  • the power transmission controller detects that the type-c interface of the access data line does not match the type-c interface of the electronic device through CC1 and CC2, and needs to flip the Type-c pin, you can use TX1+, RX1- And RX1+, TX1- transmit two DP signals respectively, transmit USB data signal through TX2+, RX2- and RX2+, TX2-.
  • DP signals DP Main Lane2 and DP Main Lane3
  • two DP signals can be transmitted through TX1+, RX1- and RX1+, TX1- respectively
  • two DP signals can be transmitted through TX2+, RX2- and RX2+, TX2- respectively.
  • DP signal DP Main Lane1 and DP Main Lane0
  • the power transmission controller detects that the pins of Type-c need to be flipped through CC1 and CC2, it can transmit two DP signals (DP signals) through TX1+, RX1- and RX1+, TX1- respectively.
  • Main Lane1 and DP Main Lane0 respectively transmit two DP signals (DP Main Lane2 and DP Main Lane3) through TX2+, RX2- and RX2+, TX2-.
  • the audio signal can also be transmitted through the sideband use (Sideband Use, SBU) 1 and SBU2 to realize the simultaneous transmission of audio and video.
  • SBU Sideband Use
  • an electronic device is provided, and the bidirectional interface of the electronic device may be a Type-c interface.
  • the circuit shown in FIG. 3 which includes: a Type-c interface 21 , a power module 22 , a first controller 23 , a second controller 24 , a first A switch 25 , a second switch 26 , a third switch 27 , a display transmission processor 28 and a display reception processor 29 .
  • the circuit can be applied to electronic devices, such as mobile phones, tablet computers, notebook computers, large-screen devices, etc., which is not limited here.
  • the first switch 25, the second switch 26, and the third switch 27 include, but are not limited to, digital switches, transistors (MOSFETs), triodes (BJTs), relays, and the like.
  • the power module includes, but is not limited to, different voltage conversion modules such as a buck circuit (Buck), a boost circuit (Boost), a buck-boost circuit (Buck-Boost), and a low dropout voltage regulator (LDO).
  • different voltage conversion modules such as a buck circuit (Buck), a boost circuit (Boost), a buck-boost circuit (Buck-Boost), and a low dropout voltage regulator (LDO).
  • the first controller includes but is not limited to an embedded controller (Embedded Controller, EC), a complex programmable logic device (Complex Programming logic device, CPLD), a Field Programmable Gate Array (Field Programmable Gate Array, FPGA) and the like.
  • the second controller can be a power delivery controller, and any processor that can handle the PD protocol can be used as a power delivery controller.
  • first controller and the second controller may also be implemented by a unified controller.
  • the display sending processor includes, but is not limited to, a central processing unit (Central Processing Unit, CPU), a system on chip (System on Chip, SOC), etc., which have the ability to send a display signal.
  • a central processing unit Central Processing Unit, CPU
  • a system on chip System on Chip, SOC
  • SOC System on Chip
  • the display receiving processor refers to all modules with the receiving capability and processing capability of the DP signal, including but not limited to display processing chip (Scaler), timing controller (Tcon) and other processors.
  • Scaler display processing chip
  • Tcon timing controller
  • Display modules include, but are not limited to, liquid crystal display (LCD), micro light-emitting diode (micro Light Emitting Diode, micro LED) panels, organic light-emitting diode (Organic Light-Emitting Diode, OLED) panels and other modules with display functions or equipment.
  • LCD liquid crystal display
  • micro light-emitting diode micro Light Emitting Diode, micro LED
  • organic light-emitting diode Organic Light-Emitting Diode
  • OLED Organic Light-Emitting Diode
  • the power supply module 22 is connected to the bus power (Vbus) pin 212 of the Type-c interface 21 and the first controller 23.
  • the first controller 23 can control the power supply module 22 to supply power through the Vbus pin 212 .
  • the second controller 24 is respectively connected to the first controller 23 and the CC pin 213 of the Type-C interface 21 (ie CC1 and CC2 shown in FIG. 2 ), and the second controller 24 can detect the level of the CC pin 213 status to determine the device type of the peer device and obtain the DP capability of the peer device.
  • the display transmission processor 28 includes a USB physical layer interface (USB PHY) 281 and a DP transmission physical layer interface (DP TX PHY) 282, and the first switch 25 is respectively connected to the USB physical layer interface 281 and the DP transmission physical layer of the display transmission processor 28. Interface 282 is connected. The first switch 25 is also connected to the third switch 27 and the first controller 23 .
  • USB PHY USB physical layer interface
  • DP TX PHY DP transmission physical layer interface
  • the display receiving processor 29 includes a DP receiving physical layer interface (DP RX PHY) 291 and a display module 292 connected to the display receiving processor 29 .
  • the second switches 26 are respectively connected to the DP reception physical layer interface (DP RX PHY) 291 of the display reception processor 29.
  • the second switch 26 is also connected to the third switch 27 and the first controller 23 .
  • the first controller 23 can control the on-off of the first switch 25 , the second switch 26 and the third switch 27 according to the device type of the opposite end device and the DP capability of the opposite end device obtained by the second controller 24 , and the electronic The device is set as the sink device or as the source device.
  • the path of the DP TX PHY 282 in the first switch 25 can be disconnected, the second switch 26 and the third switch 27 can be connected, and the data pin can be connected to Connected with DP RX PHY291.
  • the peer device supports dual-channel mode, you can connect TX1+, RX1- and RX1+, TX1- in the data pins to the USB PHY281, and connect TX2+, RX2- and RX2+, TX2- in the data pins with the DP RX PHY291 connected.
  • the channel between the first switch 25 and the USB PHY 281 can also be disconnected, and the TX1+RX1-, RX1+TX1-, TX2+RX2- and RX2+ in the data pins can be disconnected.
  • TX2- are connected with DP RX PHY291.
  • the second switch 26 can be disconnected, the first switch 25 and the third switch 27 can be connected, and the data pin can be connected to the DP TX PHY282 is connected.
  • the peer device supports dual-channel mode, you can connect TX1+, RX1- and RX1+, TX1- in the data pins to the USB PHY281, and connect TX2+, RX2- and RX2+, TX2- in the data pins with the DP TX PHY282 is connected.
  • the present application also provides a data transmission method for an electronic device, which can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers , ultra-mobile personal computer (UMPC), netbook, smart screen and other electronic devices.
  • AR augmented reality
  • VR virtual reality
  • PC ultra-mobile personal computer
  • netbook smart screen and other electronic devices.
  • the embodiments of the present application do not limit any specific types of terminal devices.
  • the electronic device is used as a mobile phone for description.
  • the electronic device may include: a processor 310 , an audio module 320 , a screen 330 , a camera module 340 , a storage module 350 , an interface 360 , a power module 370 , an input module 380 , a communication module 390 and other components.
  • a processor 310 the electronic device may include: a processor 310 , an audio module 320 , a screen 330 , a camera module 340 , a storage module 350 , an interface 360 , a power module 370 , an input module 380 , a communication module 390 and other components.
  • the structure of the terminal device shown in FIG. 4 does not constitute a limitation on the terminal device, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.
  • the processor 310 is the control center of the terminal device, and the processor 310 may include a CPU 311 and a graphics processor (Graphics Processing Unit, GPU) 332.
  • the CPU 310 can use various interfaces and lines to connect various parts of the terminal device, and execute various functions of the terminal device by running or executing the software programs and/or modules stored in the storage module 350 and calling the data stored in the storage module 350. function and process data.
  • the GPU332 is a microprocessor that can perform image and graphics related operations. There are various forms of the GPU 332.
  • the GPU 332 may be provided in the graphics card, or integrated in the CPU 311, or may exist in the form of an independent GPU chip.
  • the GPU when the GPU draws and renders images and graphics, it draws or renders the images or graphics into a buffer (buffer).
  • the cache is the integrated video memory (also called the frame buffer) in the graphics card.
  • the cache may be a part of the running memory of the terminal device, such as part of the space in a random access memory (Random Access Memory, RAM).
  • the CPU 311 may include one or more processing units.
  • it can be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable Logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the display sending processor 333 and the display receiving processor 334 may be modules with display sending and display receiving functions that are independent or integrated in the GPU. It can also be a virtual processing module with display sending and display receiving functions implemented by GPU, and its specific implementation is not limited here.
  • a modulation and demodulation processor may also be integrated in the processor 310 .
  • the modem processor mainly deals with data related to wireless communication. This application does not limit this.
  • the audio module 320 is used for processing audio signals.
  • the audio module 320 may convert the analog audio signal received by the microphone 323 into digital audio data and send it to the processor 310 .
  • the digital audio data sent by the processor 310 is converted into an analog signal that can be played by the speaker 321 and the receiver 322 and sent to the speaker 321 or the receiver 322 .
  • the screen 330 is used for displaying the content output by the terminal device through visual output.
  • the information input by the user can be displayed, the information provided to the user can be displayed, the system interface of the terminal device, the interface of the application program running on the terminal device, and the like can be displayed.
  • the material of the display panel of the screen 330 can be a liquid crystal display (Liquid Crystal Display, LCD), a thin film transistor (Thin Film Transistor, TFT), a light-emitting semiconductor (Light-Emitting Diode, LED), an organic light-emitting semiconductor (Organic Light-Emitting Diode, OLED) ), etc., which are not limited here.
  • the display panel of the screen may also be covered with a touch panel. After the touch panel detects a touch operation on or near it, it is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides corresponding visual output on the display panel according to the type of the touch event.
  • the screen and the touch panel are two independent components in FIG. 2 to realize the input and output functions of the mobile phone, in some embodiments, the touch panel and the display panel can be integrated to realize the mobile phone input and output functions.
  • the camera module 340 includes at least one camera, and the camera may be a front camera 341 or a rear camera 342 .
  • the terminal device may be a single camera, a dual camera, a triple camera or a quad camera.
  • one camera is the front camera 341 and three are the rear cameras 342 .
  • the three rear cameras 342 can be cameras with different focal lengths.
  • a main camera with an equivalent focal length of 35mm a wide-angle camera with an equivalent focal length of 20mm, and a telephoto camera with an equivalent focal length of 105mm. This embodiment of the present application does not limit this.
  • the multiple cameras may be all front-facing, or all rear-facing, or part of the front-facing camera and another part of the rear-facing camera, which is not limited in this embodiment of the present application.
  • the storage module 350 includes an internal memory 351 and an external memory interface 352, and the internal memory 351 may be a flash memory, a hard disk, a computing memory, or the like.
  • the internal memory may include at least one hard disk or flash memory, and one computing memory.
  • the external memory interface 352 is used to connect an external memory, and the external memory may include a memory card, a mobile hard disk, a U disk, an optical disk, and the like.
  • the storage module 350 may be used to store software programs and modules, and the processor 310 executes various functional applications and data processing of the terminal device by running the software programs and modules stored in the storage module 350 .
  • the storage module 350 may mainly include a storage program area and a storage data area.
  • the program storage area is usually located on the internal memory 351, and can store an operating system and an application program required for at least one function (eg, a sound playback function, a touch response function).
  • the storage data area may be located on the internal memory 351, or on the external memory connected to the external memory interface 352, or on both the internal memory and the external memory.
  • the storage data area may store data (eg, audio data, image data, video data) created according to the usage of the mobile phone.
  • the interface 360 includes, but is not limited to, a Subscriber Identity Module (SIM) card interface 361 , a USB interface 362 , and an earphone interface 363 .
  • SIM Subscriber Identity Module
  • the SIM card interface is used to insert the SIM card provided by the operator, so that when the terminal device communicates with the base station through the mobile communication module 391, it can identify and verify the user identity, and after passing the verification, send a call request, a data request to the base station and receive the base station. Forwarded calls, data, text messages, etc.
  • the bidirectional interface of the electronic device may include a USB interface 362 , an earphone interface 363 and a controller 364 .
  • the interface circuit shown in FIG. 3 can be applied to the USB Type-c interface in the USB interface 362 to realize two-way charging, two-way video transmission, two-way audio transmission, two-way data transmission, and the like.
  • the USB interface 362 can connect the terminal device and the computer through a USB data line to exchange data. At the same time, the USB interface 362 is also connected to the power supply module 370. When the USB data cable is connected to a computer or a charging socket, the input power can be transmitted to the power supply module 370 to charge the terminal device.
  • the USB interface 362 can be micro-USB, mini-USB, USB Type-c, etc., which is not limited here.
  • the earphone jack 363 is used to connect an earphone.
  • the earphone interface 363 can be an independent interface, for example, the earphone interface 363 can be a 3.5mm earphone jack.
  • the headphone jack 363 can also be integrated into the USB interface 362, for example, the headphone jack can be integrated into the USB Type-c.
  • the audio module 320 can no longer send the output analog audio signal to the speaker 321 or the receiver 322, but to the earphone through the earphone interface 363, and the audio is played through the earphone.
  • the audio module When the earphone is inserted, if it is detected that the earphone does not include a microphone, the audio module still receives the analog audio signal sent by the microphone 323 at this time. If it is detected that the earphone includes a microphone, the audio module receives the analog audio signal sent by the earphone microphone, processes it, and sends it to the processor 310 .
  • the controller 364 may include a first controller and a second controller in the interface circuit, and the first controller and the second controller may also be implemented by a unified controller, which is not limited herein.
  • the terminal device also includes a power module 370 that supplies power to the various components.
  • the power module may include a battery, a power management module, and the like.
  • the power management module may be logically connected to the processor 310, so that functions such as managing the charging, discharging, and power consumption of the battery are implemented through the power management module.
  • the input module 380 may be configured to receive input information and key signals, the input information includes numeric or character information, touch information, etc., and the key signals include a physical key pressing signal, a virtual key pressing signal, and the like.
  • the input module 380 may include a touch panel and other input devices.
  • the touch panel and the screen 330 can form a touch screen, and the touch panel can collect the user's touch operations on or near it (for example, objects or accessories that can generate touch signals on the touch panel when the user uses a finger, a stylus, etc. operation on the panel or near the touch screen), and execute the corresponding function according to the preset program driver.
  • the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch orientation of the user, detects the signal brought by the touch operation, and transmits the signal to the touch controller.
  • the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the processor 310.
  • the processor 310 receives the sent contact coordinates, converts them into touch commands, and executes them.
  • the touch panel can be implemented using resistive, capacitive, infrared, and surface acoustic wave types.
  • Other input devices may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks.
  • the communication module 390 includes a mobile communication module 391 and a wireless communication module 392 .
  • the mobile communication module 391 can support any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division Multiple Access). Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, LTE), Time Division Multiplexing WCDMA (Time-Division WCDMA, TD-WCDMA), Time Division Multiplexing LTE (Time-Division LTE, TD-LTE), the 5th generation New Radio (the 5th generation New Radio, 5G NR), etc.
  • the wireless communication module 392 can support Bluetooth (Bluetooth), Wireless Fidelity (Wireless Fidelity, Wi-Fi), Near Field Communication (Near Field Communication, NFC), and the like.
  • the mobile communication module 391 can be used to connect with a communication base station through an antenna, so as to establish a call link between the terminal device and other terminal devices, and to send and receive call audio.
  • the wireless communication module 392 is used to wirelessly connect with an external device, wherein the external device can be an external device such as a bluetooth headset, a bluetooth speaker, etc. with functions of playback and radio, or a bluetooth mouse, a bluetooth keyboard, etc. for inputting
  • the external device is not limited here.
  • the method includes:
  • S401 Obtain the device type of the peer device. If the device type of the peer device is the source device, go to S402. If the device type of the peer device is the sink device and the DRP device, go to S404.
  • obtaining the device type of the peer device may be determined by acquiring the level of the CC pin of the peer device. It should be noted that, after the peer device is connected to the bidirectional interface, the pins of the peer device interface are connected to the pins in the bidirectional interface of the electronic device.
  • the level of the CC pin of the peer device is the level of the CC pin in the bidirectional interface of the electronic device. Referring to Figure 2, the CC pins include CC1 and CC2.
  • the electronic device obtains through the power transmission controller that the level state of the CC pin on the data line of the peer device connected to the type-c interface of the electronic device is high, it can be confirmed that the peer device is the source device .
  • the acquired level state of the CC pin is low, it can be confirmed that the peer device is the receiving device.
  • the level of the CC pin on the data line obtained from the peer device is periodically switched between a high level and a low level, it can be confirmed that the peer device is a DRP device.
  • setting the electronic device as a receiving end device includes disconnecting the path of the DP TX PHY 282 in the first switch 25, connecting the second switch 26 and the third switch 27, and connecting the data pin to the DP TX PHY 282.
  • RX PHY is connected.
  • the DP capability includes dual-channel DP communication or quad-channel DP communication.
  • the peer device acts as the source device and the electronic device acts as the sink device, and the peer device receives the DP capability of the electronic device.
  • the electronic device can send DP capability information to the peer device through the power transmission controller.
  • FIG. 3 For circuit connections under different DP capabilities, reference may be made to the example in FIG. 3 , which will not be repeated here.
  • the electronic device when it sends the DP capability information to the peer device through the power transmission controller, it can use the "Response Discover Modes" message specified in the power transmission protocol.
  • the message includes device function information of the electronic device, such as DP capability information and whether to support the Upstream Facing Port_Display (UFP_D).
  • the electronic device is set as a source device, the second switch 26 can be disconnected, the first switch 25 and the third switch 27 can be connected, and the data pin can be connected with the DP TX PHY.
  • the device type of the peer device is the sink device, after the electronic device is set as the source device, S411 may be directly executed.
  • the device type of the peer device is a DRP device, the device types of the electronic device and the peer device need to be determined through a role negotiation process or a role switching process.
  • S405 Determine whether the peer device supports the display of the uplink port, if so, execute S406, and if not, end the control process.
  • the "Discover Modes" command may also be used.
  • the electronic device can send the "Discover Modes" command to the peer device, and the peer device receives the "Discover Modes” command and returns a "Response Discover Modes” message, which includes the peer device.
  • DP capability information of the device and whether it supports UFP_D may also be used.
  • the peer device supports UFP_D, it means that the peer device supports the ability to transmit video data through DP, and can be used as a sink device or a source device to start the role negotiation process or role switching process; If the device does not support UFP_D, it means that the peer device does not have the ability to transmit video data through DP, and cannot transmit video data, so the control process can be ended directly. By determining whether the peer device supports UFP_D, the peer device that cannot be used for video data transmission can be excluded, thereby reducing unnecessary pairing processes.
  • S406 Determine whether the device types of the peer device and the electronic device are the same, if they are the same, perform S407, and if they are different, perform S409.
  • the vendor information may include a vendor identity document (VID) or a sub-supplier ID (Subsystem vendor identity document, SVID), and the vendor information may include a product identity document (PID).
  • VID vendor identity document
  • SVID sub-supplier ID
  • PID product identity document
  • the VID or SVID and PID of the peer device it can be determined whether the device type of the peer device is the same as the electronic device. For example, after the electronic device is used as the source device, according to the provisions of the power transmission protocol, the "Discover Identity” and “Discover SVIDs” commands can be sent to the peer device, and the "ACK Discover Identity” information and "ACK Discover SVIDs” message.
  • the "ACK Discover Identity” information includes the PID of the peer device
  • the "ACK Discover SVIDs” information includes the SVID of the peer device.
  • the device type supported by the peer device can be obtained from the pre-stored USB VID&PID table. For example, if the peer device is a display produced by a brand manufacturer A through the VID and PID, it is determined that the peer device is the receiving device, which is different from the device type of the electronic device.
  • the peer device is a smart screen produced by a C brand manufacturer through VID and PID acquisition, it can be determined that the peer device is a DRP device, and it is necessary to determine whether the device type is the same as that of the electronic device according to the specific settings of the DRP device.
  • the "Response Discover Modes" message might also include device type preference information. If the device type preference information of the DRP device is obtained, the device type of the opposite device can be determined according to the preference setting in the device type preference information.
  • the peer device's preference might be "try sink” or "try source”. "try sink” means that when connecting, the peer device will connect as the sink device first, and "try source” means that the end device will preferentially connect as the source device when connecting.
  • the DRP device may be determined as a source device (same device type as the electronic device) or a sink device (different device type from the electronic device) according to the preference setting of the DRP device. If the device type preference information of the DRP device cannot be obtained, randomly set the device type of the peer device, and then determine the device type of the peer device according to the level of the CC pin, and then determine whether it is the same as the device type of the electronic device.
  • S407 to S408 are examples of the role negotiation process.
  • S408 determine whether to set the electronic device as the receiving end device, if so, execute S403 , if not, execute S411 .
  • the electronic device is a source device, and when the opposite device is a source device, the electronic device and the opposite device are of the same device type.
  • a query message may be displayed on the electronic device to ask the user to choose to set the electronic device as a source device or a sink device.
  • a pop-up window may be displayed on the screen of the electronic device, providing an option to set the electronic device as a source device or a sink device, and waiting to receive a user's selection operation. If the received selection operation indicates that the electronic device is set as the receiving end device, S403 may be executed to send the DP capability of the electronic device to the opposite end device, receive video data sent by the opposite end device, and display it on the electronic device.
  • S411 may be directly executed.
  • S409 and S410 are examples of the role switching process.
  • the electronic device sends a data role conversion request to the peer device.
  • the electronic device is the source device, and when the opposite end device is randomly set as the receiving end device, although the device type of the opposite end device and the electronic device are different, because the opposite end device is randomly set when the receiving end device, The device type of the electronic device and the peer device may not match the expected settings.
  • the electronic device can send the request command "DR_Swap" for the data role switching request to the peer device according to the provisions of the power transmission protocol, and ask the peer device whether to switch to the source device. . If the peer device replies "Accept", it means that the peer device accepts the data role conversion request and converts it to the source device.
  • the electronic device will execute S402 to set the final device type of the electronic device to the receiving device. If the peer device replies "Reject", it means that the peer device rejects the data role conversion request and keeps the status quo, that is, the final device type of the electronic device is the source device.
  • the electronic device sends video data to the peer device.
  • the electronic device when it sends video data to the opposite end device, it can choose to transmit the video data through the DP1.2 protocol, DP1.4 protocol or DP2.0 protocol according to the DP capability of the opposite end device. There is no restriction on the specific transmission protocol in the application.
  • the electronic device will supply power to the peer device.
  • the electronic device when the electronic device is a laptop computer, and the peer device is a mobile phone, the laptop computer can perform video processing for the mobile phone when receiving video data sent by the mobile phone. Charge.
  • the electronic device can also control the power module to supply power through the Vbus pin, and the voltage and current of the power supply are not limited in this application.
  • FIG. 6 shows a structural block diagram of the data transmission apparatus of the electronic device provided by the embodiment of the present application. relevant part.
  • the apparatus includes: the electronic device includes a bidirectional interface, and the bidirectional interface is used for receiving multimedia data and sending multimedia data.
  • the apparatus includes: a determining module 51, configured to determine the device type of the opposite end device and the device type of the electronic device after the opposite end device is inserted into the bidirectional interface.
  • the sending module 52 is configured to send the multimedia data sent by the opposite device to the display receiving processor of the electronic device through the bidirectional interface after determining that the device type of the electronic device is the receiving device.
  • the sending module 52 is further configured to send the multimedia data generated by the display sending processor on the electronic device to the opposite device through the bidirectional interface after determining that the device type of the electronic device is the source device.
  • the apparatus further includes a connection module 53 for connecting the bidirectional interface with the display receiving processor after determining that the device type of the electronic device is the receiving end device. After it is determined that the device type of the electronic device is the source device, the bidirectional interface is connected to the display sending processor.
  • the determining module 51 is specifically configured to determine the device type of the peer device according to the signal transmitted on the bidirectional interface.
  • the device type of the electronic device is determined according to the device type of the peer device.
  • the bidirectional interface is a Universal Serial Bus Type-C interface.
  • the determination module 51 is specifically used to detect the level state of the pin on the bidirectional interface, and determine the device type of the peer device according to the level state of the pin, wherein, when the level state of the pin is high, the peer device is For the source device, when the level state of the pin is low, the peer device is the sink device, and when the level state of the pin is switched between high level and low level, the peer device is a dual-role port device .
  • the determining module 51 is specifically configured to determine the electronic device as the sink device when the opposite device is the source device.
  • the peer device is the sink device, it is determined that the electronic device is the source device.
  • the peer device is a dual-role port device, the device types of the electronic device and the peer device are determined through a role negotiation process or a role switching process.
  • the determining module 51 is further configured to determine the initial device type of the electronic device as the source device.
  • the determining module 51 is further configured to obtain information on whether the peer device supports displaying the uplink port through the bidirectional interface, and for the peer device that supports displaying the uplink port, start a role negotiation process or a role switching process.
  • the determining module 51 is further configured to acquire at least one of the supplier information, manufacturer information, device type preference information and device function information of the peer device through the bidirectional interface, and determine the relationship between the peer device and the peer device according to the acquired information. Whether the electronic devices are the same, if they are the same, perform a role negotiation process, and if they are different, perform a role switching process.
  • the role negotiation process includes: displaying an inquiry message on the electronic device, and the inquiry message is used to obtain the final device type of the electronic device.
  • the role switching process includes: sending a role switching request message to the peer device.
  • the final device type of the opposite end device and the electronic device is set according to the response message of the opposite end device.
  • the bidirectional interface is also used for bidirectional charging.
  • FIG. 8 shows a schematic structural diagram of another electronic device.
  • an embodiment of the present application further provides an electronic device 6 including a bidirectional interface 605, a controller 604, and a processor 601, wherein the processor 601 includes a display receiving processor and a display sending processor.
  • the bidirectional interface 605 includes pins, and the pins are used to connect the peer device inserted into the bidirectional interface.
  • the controller 604 is used to determine the device type of the peer device and the device type of the electronic device 6. After determining that the device type of the electronic device 6 is the receiving device, the multimedia data sent by the peer device is sent to the electronic device through a two-way interface.
  • the display receiving processor of the electronic device 6 After determining that the device type of the electronic device 6 is the source device, the display receiving processor of the electronic device 6 sends the multimedia data generated by the display sending processor on the electronic device 6 to the opposite device through the bidirectional interface.
  • the display receiving processor is used for displaying and processing the received multimedia data.
  • the display sending processor is used for processing the obtained multimedia data.
  • the electronic device 6 may further include a memory 602 and a computer program 603 stored in the memory 602 and executable on the at least one processor 601 , when the processor 601 executes the computer program 603
  • a memory 602 and a computer program 603 stored in the memory 602 and executable on the at least one processor 601 , when the processor 601 executes the computer program 603
  • FIG. 8 is only an example of the electronic device 6, and does not constitute a limitation to the electronic device 6, and may include more or less components than the one shown, or combine some components, or different components , for example, may also include input and output devices, network access devices, and the like.
  • the so-called processor 601 may be a central processing unit (Central Processing Unit, CPU), and the processor 601 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuits) , ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 602 may be an internal storage unit of the electronic device 6 in some embodiments, such as a hard disk or a memory of the electronic device 6 .
  • the memory 602 may also be an external storage device of the electronic device 6 in other embodiments, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc.
  • the memory 602 may also include both an internal storage unit of the electronic device 6 and an external storage device.
  • the memory 602 is used to store an operating system, an application program, a boot loader (Boot Loader), data, and other programs, for example, program codes of the computer program, and the like.
  • the memory 602 may also be used to temporarily store data that has been or will be output.
  • the electronic device 6 further includes a switch module, after determining that the device type of the electronic device 6 is a receiving end device, the switch module is used to connect the bidirectional interface 605 with the display receiving processor, and after determining that the device type of the electronic device is: After the source device is installed, the switch module is used to connect the bidirectional interface 605 with the display sending processor.
  • the switch module includes a first switch, a second switch and a third switch, the first switch is connected to the display sending processor, the second switch is connected to the display receiving processor, and the third switch is connected to the pins.
  • the controller 604 controls the second switch to communicate with the third switch.
  • the controller 604 controls the first switch to communicate with the third switch. The three switches are connected.
  • the controller 604 is used to detect the level state of the pin on the bidirectional interface, determine the device type of the peer device according to the level state of the pin, and determine the level of the electronic device according to the device type of the peer device. Equipment type.
  • the electronic device 6 further includes a power module, and the power module is connected to the pins.
  • the controller 604 is also used for controlling the power module to charge the opposite device.
  • the power module is further configured to receive power transmitted by the peer device through the bidirectional interface 605 .
  • the bidirectional interface 605 is a Universal Serial Bus Type-C interface or a Lightning interface.
  • the controller that detects the level state of the first pin on the bidirectional interface 605 is a power delivery controller.
  • the bidirectional interface 605 is a type-c interface, referring to FIG. 2
  • the first pins may be CC1 and CC2 pins.
  • the embodiment of the present application further provides an interface circuit, which is configured to be arranged on an electronic device and includes an interface module, a switch module and a controller.
  • the interface module includes pins, which are used to connect the peer device inserted into the bidirectional interface.
  • the controller is used to determine the device type of the peer device and the device type of the electronic device. After determining that the device type of the electronic device is the receiving device, the interface module is connected to the display receiving processor of the electronic device through the switch module. After the device type of the electronic device is the source device, the interface module is connected with the display sending processor of the electronic device through the switch module.
  • the switch module includes a first switch, a second switch and a third switch, the first switch is used for connecting with the display sending processor, the second switch is used for connecting with the display receiving processor, and the third switch is connected with the pins. connect. After determining that the device type of the electronic device is the sink device, the controller controls the second switch to communicate with the third switch, and after determining that the device type of the electronic device is the source device, the controller controls the first switch to communicate with the third switch.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
  • the embodiments of the present application provide a computer program product, when the computer program product runs on a mobile terminal, the steps in the foregoing method embodiments can be implemented when the mobile terminal executes the computer program product.
  • An embodiment of the present application provides a chip system, where the chip system includes a memory and a processor, and the processor executes a computer program stored in the memory to implement the steps in the foregoing method embodiments.
  • An embodiment of the present application provides a chip system, the chip system includes a processor, the processor is coupled to a computer-readable storage medium, and the processor executes a computer program stored in the computer-readable storage medium, so as to implement the above method embodiments. step.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the present application realizes all or part of the processes in the methods of the above embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium.
  • the computer program includes computer program code
  • the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like.
  • the computer-readable medium may include at least: any entity or device capable of carrying computer program codes to an electronic device, a recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunication signals, and software distribution media.
  • ROM read-only memory
  • RAM random access memory
  • electrical carrier signals telecommunication signals
  • software distribution media For example, U disk, mobile hard disk, disk or CD, etc.
  • computer readable media may not be electrical carrier signals and telecommunications signals.
  • the disclosed method, apparatus and electronic device may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Communication Control (AREA)

Abstract

一种电子设备的数据传输方法、电子设备及接口电路,该方法包括:在对端设备插入双向接口后,确定对端设备的设备类型和电子设备的设备类型。在确定电子设备的设备类型为收端设备后,将对端设备发送的多媒体数据通过双向接口发送到电子设备的显示接收处理器。在确定电子设备的设备类型为源端设备后,将电子设备上的显示发送处理器产生的多媒体数据通过双向接口发送到对端设备。在一个双向接口上实现显示发送和显示接收的复用,结构更加简洁,降低了用户误操作的概率。

Description

电子设备的数据传输方法、电子设备及接口电路
本申请要求于2021年02月10日提交国家知识产权局、申请号为202110186512.1、申请名称为“电子设备的数据传输方法、电子设备及接口电路”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端领域,尤其涉及一种电子设备的数据传输方法、电子设备及接口电路。
背景技术
目前电子产品的形式越来越多,电子产品之间经常会通过视频接口接收或输出视频数据。例如,笔记本电脑可与大屏设备连接,笔记本电脑将操作界面以视频数据的形式传输至大屏设备并在大屏设备上显示笔记本电脑的操作界面。或者,笔记本电脑还可以与手机连接,接收手机发送的操作界面的视频数据,并在笔记本电脑的屏幕上显示手机的操作界面。
现有的视频传输接口往往只能单独用作视频数据输入或视频数据输出。当一个设备同时支持视频数据输入和视频数据输出时,则需设置多个视频接口,分别用作视频数据输入或视频数据输出。结构复杂,且容易造成误操作。
发明内容
本申请实施例提供了一种电子设备的数据传输方法、电子设备及接口电路,可以解决当一个设备既需要视频数据输入又需要视频数据输出时,需分别设置视频输入端口和视频输出端口,结构复杂,且容易造成误操作的问题。
第一方面,本申请实施例提供了一种电子设备的数据传输方法,电子设备包括双向接口,双向接口用于接收多媒体数据和发送多媒体数据。
该方法包括:在对端设备插入双向接口后,确定对端设备的设备类型和电子设备的设备类型。在确定电子设备的设备类型为收端设备后,将对端设备发送的多媒体数据通过双向接口发送到电子设备的显示接收处理器。在确定电子设备的设备类型为源端设备后,将电子设备上的显示发送处理器产生的多媒体数据通过双向接口发送到对端设备。
其中,电子设备(本端设备)和对端设备可以包括手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、大屏设备等具有多媒体数据收发能力的设备。例如,电子设备为大屏设备时,对端设备可以为手机、笔记本电脑或平板电脑等设备。双向接口可用于双向传输数据或电力。双向接口传输的数据可以包括多媒体数据,例如,视频数据、音频数据或音视频数据等。
在第一方面中,电子设备的数据传输方法可以识别接入的是收端设备还是源端设备。并根据接入设备的类型,将收端设备与显示发送处理器连接或将源端设备与显示接收处理器连接。在一个双向接口上实现显示发送和显示接收的复用,结构更加简洁,降低了用户误操作的概率。
一些实施方式中,该方法还包括:在确定电子设备的设备类型为收端设备后,将双向接口与显示接收处理器连接。在确定电子设备的设备类型为源端设备后,将双向接口与显示发送处理器连接。在本申请中,通过将双向接口与显示接收处理器或显示发送处理器连接,从而改变双向接口的功能,在一个双向接口上实现显示发送和显示接收的复用。
一些实施方式中,确定对端设备的设备类型和电子设备的设备类型,包括:根据双向接口上的传输的信号,确定对端设备的设备类型。根据对端设备的设备类型,确定电子设备的设备类型。
一些实施方式中,双向接口为通用串行总线C型接口。
根据双向接口上的传输的信号,确定对端设备的设备类型,包括:检测双向接口上引脚的电平状态,根据引脚的电平状态确定对端设备的设备类型,其中,引脚的电平状态为高电平时,对端设备为源端设备,引脚的电平状态为低电平时,对端设备为收端设备,引脚的电平状态在高电平与低电平之间切换时,对端设备为双角色端口设备。通过type-c接口中引脚的电平状态,确定对端设备的设备类型,进而确定电子设备的设备类型,实现了设备类型的自动检测,更加简便的在一个双向接口上实现显示发送和显示接收的复用。
一些实施方式中,根据对端设备的设备类型,确定电子设备的设备类型包括:当对端设备为源端设备时,确定电子设备为收端设备。当对端设备为收端设备时,确定电子设备为源端设备。当对端设备为双角色端口设备时,通过角色协商过程或角色切换过程确定电子设备和对端设备的设备类型。当对端设备为双角色端口设备时,通过角色协商过程或角色切换过程确定电子设备和对端设备的设备类型,可以更加准确的确认对端设备所预期的设备类型,进而调整电子设备的设备类型,使电子设备与对端设备匹配的更加准确,降低配置错误的概率。
一些实施方式中,在通过角色协商过程或角色切换过程确定电子设备和对端设备的设备类型之前,方法还包括:将电子设备的初始设备类型确定为源端设备。
一些实施方式中,在将电子设备的初始设备类型确定为源端设备之后,该方法还包括:通过双向接口获取对端设备是否支持显示上行端口的信息,对于支持显示上行端口的对端设备,启动角色协商过程或角色切换过程。其中,不支持显示上行端口的对端设备无法发送或接受视频数据,只对支持显示上行端口的对端设备,启动角色协商过程或角色切换过程,可以排除掉无法用于视频数据传输的对端设备,减少不必要的配对流程。
一些实施方式中,在将电子设备的初始设备类型确定为源端设备之后,该方法还包括:通过双向接口获取对端设备的供应商信息、厂商信息、设备类型偏好信息和设备功能信息中的至少一种,根据获取的信息确定对端设备与电子设备的是否相同的设备,如果相同,执行角色协商过程,如果不同,执行角色切换过程。通过获取对端设 备的VID/SVID和PID,可以从设备的物理性质上更加准确地确定执行角色协商过程还是执行角色切换过程。
一些实施方式中,角色协商过程包括:在电子设备上展示询问消息,询问消息用于获得电子设备最终的设备类型。根据电子设备最终的设备类型设定对端设备最终的设备类型。角色切换过程包括:向对端设备发送角色切换请求消息。根据对端设备的响应消息设定对端设备与电子设备的最终的设备类型。通过角色协商过程可以获取电子设备最终的设备类型,进而确定对端设备最终的设备类型。而通过角色切换过程确定对端设备与电子设备的最终的设备类型,可以更加准确的获取对端设备所预期的设备类型,进而设定电子设备的最终的设备类型。角色协商过程或角色切换过程可以使得电子设备与对端设备在匹配时更加准确,降低配置错误的概率。
一些实施方式中,双向接口还用于双向充电。
第二方面,本申请实施例提供了一种电子设备的数据传输装置,电子设备包括双向接口,双向接口用于接收多媒体数据和发送多媒体数据。
该装置包括:确定模块,用于在对端设备插入双向接口后,确定对端设备的设备类型和电子设备的设备类型。发送模块,用于在确定电子设备的设备类型为收端设备后,将对端设备发送的多媒体数据通过双向接口发送到电子设备的显示接收处理器。发送模块,还用于在确定电子设备的设备类型为源端设备后,将电子设备上的显示发送处理器产生的多媒体数据通过双向接口发送到对端设备。
一些实施方式中,该装置还包括连接模块,用于在确定电子设备的设备类型为收端设备后,将双向接口与显示接收处理器连接。在确定电子设备的设备类型为源端设备后,将双向接口与显示发送处理器连接。
一些实施方式中,确定模块,具体用于根据双向接口上的传输的信号,确定对端设备的设备类型。根据对端设备的设备类型,确定电子设备的设备类型。
一些实施方式中,双向接口为通用串行总线C型接口。
确定模块,具体用于检测双向接口上引脚的电平状态,根据引脚的电平状态确定对端设备的设备类型,其中,引脚的电平状态为高电平时,对端设备为源端设备,引脚的电平状态为低电平时,对端设备为收端设备,引脚的电平状态在高电平与低电平之间切换时,对端设备为双角色端口设备。
一些实施方式中,确定模块,具体用于当对端设备为源端设备时,确定电子设备为收端设备。当对端设备为收端设备时,确定电子设备为源端设备。当对端设备为双角色端口设备时,通过角色协商过程或角色切换过程确定电子设备和对端设备的设备类型。
一些实施方式中,确定模块,还用于将电子设备的初始设备类型确定为源端设备。
一些实施方式中,确定模块,还用于通过双向接口获取对端设备是否支持显示上行端口的信息,对于支持显示上行端口的对端设备,启动角色协商过程或角色切换过程。
一些实施方式中,确定模块,还用于通过双向接口获取对端设备的供应商信息、厂商信息、设备类型偏好信息和设备功能信息中的至少一种,根据获取的信息确定对端设备与电子设备的是否相同的设备,如果相同,执行角色协商过程,如果不同,执 行角色切换过程。
一些实施方式中,角色协商过程包括:在电子设备上展示询问消息,询问消息用于获得电子设备最终的设备类型。根据电子设备最终的设备类型设定对端设备最终的设备类型。角色切换过程包括:向对端设备发送角色切换请求消息。根据对端设备的响应消息设定对端设备与电子设备的最终的设备类型。
一些实施方式中,双向接口还用于双向充电。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括双向接口、控制器、显示接收处理器和显示发送处理器。双向接口,包括引脚,引脚用于连接插入双向接口的对端设备。控制器,用于确定对端设备的设备类型和电子设备的设备类型,在确定电子设备的设备类型为收端设备后,将对端设备发送的多媒体数据通过双向接口发送到电子设备的显示接收处理器,在确定电子设备的设备类型为源端设备后,将电子设备上的显示发送处理器产生的多媒体数据通过双向接口发送到对端设备。显示接收处理器,用于对接收到的多媒体数据进行显示处理。显示发送处理器,用于处理得到多媒体数据。
一些实施方式中,电子设备还包括开关模块,在确定电子设备的设备类型为收端设备后,开关模块用于将双向接口与显示接收处理器连接,在确定电子设备的设备类型为源端设备后,开关模块用于将双向接口与显示发送处理器连接。
一些实施方式中,开关模块包括第一开关、第二开关和第三开关,第一开关与显示发送处理器连接,第二开关与显示接收处理器连接,第三开关与引脚连接;在确定电子设备的设备类型为收端设备后,控制器控制第二开关与第三开关连通,在确定电子设备的设备类型为源端设备后,控制器控制第一开关与第三开关连通。
一些实施方式中,控制器,用于检测双向接口上的引脚的电平状态,根据引脚的电平状态确定对端设备的设备类型,根据对端设备的设备类型,确定电子设备的设备类型。
一些实施方式中,电子设备还包括电源模块,电源模块与引脚连接;控制器还用于控制电源模块向对端设备充电。
一些实施方式中,电源模块还用于接收对端设备通过双向接口传输的电力。
一些实施方式中,双向接口为通用串行总线C型接口或闪电接口。
一些实施方式中,检测双向接口上的第一引脚的电平状态的控制器为电力传输控制器。
第四方面,本申请实施例提供了一种接口电路,接口电路用于设置在电子设备上,包括接口模块、开关模块和控制器。接口模块,包括引脚,引脚用于连接插入双向接口的对端设备。控制器,用于确定对端设备的设备类型和电子设备的设备类型,在确定电子设备的设备类型为收端设备后,通过开关模块将接口模块与电子设备的显示接收处理器连接,在确定电子设备的设备类型为源端设备后,通过开关模块将接口模块与电子设备的显示发送处理器连接。
一些实施方式中,开关模块包括第一开关、第二开关和第三开关,第一开关用于与显示发送处理器连接,第二开关用于与显示接收处理器连接,第三开关与引脚连接。在确定电子设备的设备类型为收端设备后,控制器控制第二开关与第三开关连通,在 确定电子设备的设备类型为源端设备后,控制器控制第一开关与第三开关连通。
第五方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现如第一方面提供的方法。
第六方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面提供的方法。
第七方面,本申请实施例提供了一种芯片系统,芯片系统包括存储器和处理器,处理器执行存储器中存储的计算机程序,以实现第一方面提供的方法。
第八方面,本申请实施例提供了一种芯片系统,芯片系统包括处理器,处理器与第四方面提供的计算机可读存储介质耦合,处理器执行计算机可读存储介质中存储的计算机程序,以实现第一方面提供的方法。
可以理解的是,上述第二方面至第八方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。
附图说明
图1为本申请实施例提供的一种电子设备的数据传输方法的应用场景示意图;
图2为type-c接口的引脚示意图;
图3为本申请实施例提供的接口电路的电路示意图;
图4为本申请实施例提供的一种电子设备的结构示意图;
图5为本申请实施例提供的一种电子设备的数据传输方法的流程示意图;
图6为本申请实施例提供的一种电子设备的数据传输装置的结构示意图;
图7为本申请实施例提供的另一种电子设备的数据传输装置的结构示意图;
图8为本申请实施例提供的另一种电子设备的结构示意图。
具体实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
图1示出了一种电子设备连接场景示意图。电子设备可以包括手机、平板电脑、 可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等,本申请实施例对电子设备的具体类型不作任何限制。
参考图1,包括智能手机11、笔记本电脑12、显示器13,智能手机11通过可以通过数据线14和笔记本电脑12连接,笔记本电脑12可以通过数据线14和显示器13连接。其中,笔记本电脑12在与智能手机11连接时可以作为视频输入设备,则智能手机11作为视频输出设备。笔记本电脑12接收智能手机11发送的界面视频数据并展示。
或者,笔记本电脑12在与显示器13连接时可以作为视频输出设备,则显示器13作为视频输入设备。笔记本电脑12将界面以视频数据的形式发送给显示器13,通过显示器13展示笔记本电脑12的界面。
现有技术中,笔记本电脑12作为视频输入设备时,可以使用高清多媒体接口(High Definition Multimedia Interface,HDMI)、type-c接口或显示接口(DisplayPort,DP)等作为视频数据输入端口。而当笔记本电脑12作为视频输出设备时会使用不同的HDMI接口、type-c接口或DP接口等作为视频数据输出端口。
上述的电子设备在使用时,若显示输入端口和显示发送端口的类型相同(如均为type-c接口或均为DP接口),则可能无法准确分辨每个接口的功能,导致将与源端设备连接的数据线插入显示发送端口中,或者将与收端设备连接的数据线插入显示输入端口中的情况。
为此,本申请提供了一种电子设备的数据传输方法、电子设备及接口电路,可以识别接入的是收端设备还是源端设备,并根据接入设备的类型,将收端设备与显示发送模块连接或将源端与显示接收模块连接。在一个接口上实现显示发送和显示接收复用,结构更加简洁,降低了用户误操作的概率。
需要说明的是,虽然本申请提供的电子设备的数据传输方法以多媒体数据中视频数据的双向传输为例进行说明。但是本领域技术人员应当明确,基于本申请的电子设备的数据传输方法实现的双向充电、双向视频信号传输、双向音频信号传输等双向传输均在本申请的保护范围之内。
本申请还提供一种双向接口,用于实现上述的双向信号或数据的传输。本申请所述的双向接口表示可以实现本申请双向充电、双向视频信号传输、双向音频信号传输等双向传输的接口,在一些实施方式中,本申请提供的电子设备的双向接口可以是通用串行总线c型(Universal Serial Bus Type-c,Type-c)接口或闪电接口(Lighting port)。当双向接口为Type-c接口时,可通过DP1.2协议、DP1.4协议或DP2.0协议进行视频数据的传输。
在本实施例中,以Type-c接口(母口)为例,对双向接口进行说明。
参照图2,图2示出了Type-c接口的引脚示意图,Type-c接口包括对称设置的两组引脚,以使得插入Type-c接口的数据线无需区分正反,无论数据线正插还是反插均可正常使用。当电子设备(即本端设备)检测到与对端设备连接的数据线接入Type-c接口中时,可通过电子设备的电力传输(power delivery,PD)控制器检测配置通道 (Configurationchannel,CC)1和CC2的电平状态,确定对端设备的设备类型。设备类型可以包括收端设备(sink device,例如显示接收设备或者视频输入设备)和源端设备(sourcedevice,例如显示发送设备或视频输出设备)。设备类型还可以进一步包括双角色端口(dual role port,DRP)设备。其中,DRP设备具备双角色,既可以作为收端设备也可以作为源端设备。
例如,当与对端设备连接的数据线接入Type-c接口时,若对端设备为收端设备,则电子设备检测到CC1和CC2的电平状态为低电平;若对端设备为源端设备,则电子设备检测到CC1和CC2的电平状态为高电平;若对端设备为DRP设备,则电子设备检测到CC1和CC2的电平状态周期性的在高电平和低电平之间进行切换。
需要说明的是,电力传输控制器还可以用于检测对端设备的DP能力。例如,电力传输控制器可以基于电力传输协议,通过CC1和CC2向对端设备发送DP能力查询指令,并接收对端设备返回的DP能力信息。
其中,DP能力包括对端设备是否支持DP视频传输,以及视频数据传输时的通道模式。视频数据传输时可以包括双通道模式(USB&DP模式)和四通道模式(DP ONLY模式)。当对端设备支持双通道模式时,参考图2示出的type-c接口,其中,数据引脚包括第一发送正极引脚(TX1+)、第一发送负极引脚(TX1-)、第二发送正极引脚(TX2+)、第二发送负极引脚(TX2-)、第一接收正极引脚(RX1+)、第一接收负极引脚(RX1-)、第二接收正极引脚(RX2+)和第二接收负极引脚(RX2-)。需要说明的是,在传输数据时,将数据引脚根据接收、发送以及正负极分为四组数据引脚,例如,TX1+、RX1-为一组数据引脚,RX1+、TX1-为一组数据引脚,TX2+、RX2-为一组数据引脚,RX2+、TX2-为一组数据引脚。每组数据引脚可用于接收和发送数据。
当对端设备支持双通道模式时,可以通过TX1+、RX1-和RX1+、TX1-传输USB的数据信号(USB SS),通过TX2+、RX2-和RX2+、TX2-分别传输两路DP信号(DP Main Lane1和DP Main Lane0)。其中,由于Type-c接口不分正反,当电力传输控制器通过CC1和CC2检测到接入数据线的type-c接口(子口)与电子设备的type-c接口(母口)匹配时,无需对引脚进行翻转,可使用上述的引脚进行两路DP信号以及USB数据信号的传输。若电力传输控制器通过CC1和CC2检测到接入数据线的type-c接口与电子设备的type-c接口不匹配时,需要对Type-c的引脚进行翻转,则可以通过TX1+、RX1-和RX1+、TX1-分别传输两路DP信号,通过TX2+、RX2-和RX2+、TX2-传输USB的数据信号。
当对端设备支持四通道模式时,可以通过TX1+、RX1-和RX1+、TX1-分别传输两路DP信号(DP Main Lane2和DP Main Lane3),通过TX2+、RX2-和RX2+、TX2-分别传输两路DP信号(DP Main Lane1和DP Main Lane0)。其中,与双通道模式类似,若电力传输控制器通过CC1和CC2检测到需要对Type-c的引脚进行翻转,则可以通过TX1+、RX1-和RX1+、TX1-分别传输两路DP信号(DP Main Lane1和DP Main Lane0),通过TX2+、RX2-和RX2+、TX2-分别传输两路DP信号(DP Main Lane2和DP Main Lane3)。
需要说明的是,在通过上述引脚传输DP信号时,还可以通过边带使用(Sideband Use,SBU)1和SBU2传输音频信号,实现音频和视频同时传输。
在本实施例中,提供了一种电子设备,该电子设备的双向接口可以为Type-c接口。作为示例,电子设备通过双向接口实现数据传输方法时,可以参考图3示出的电路,其中包括:Type-c接口21、电源模块22、第一控制器23、第二控制器24、第一开关25、第二开关26、第三开关27、显示发送处理器28以及显示接收处理器29。该电路可以应用于电子设备,如手机、平板电脑、笔记本电脑、大屏设备等,在此不做限制。
其中,第一开关25、第二开关26、第三开关27包括但不限于数字开关、晶体管(MOSFET)、三极管(BJT)、继电器等。
电源模块包括但不限于降压电路(Buck)、升压电路(Boost)、升降压电路(Buck-Boost)、低压差稳压器(LDO)等不同的电压转换模块。
第一控制器包括但不限于嵌入式控制器(Embedded Controller,EC)、复杂可编程逻辑器件(Complex Programming logic device,CPLD)、现场可编程门阵列(Field Programmable Gate Array,FPGA)等。第二控制器可以是电力传输控制器,任何可以处理PD协议的处理器均可作为电力传输控制器。
需要说明的是,第一控制器和第二控制器也可以由一个统一的控制器来实现。
显示发送处理器包括但不限于具备显示信号发送能力的中央处理器(Central Processing Unit,CPU)、片上系统(System on Chip,SOC)等。
显示接收处理器是指一切具备DP信号的接收能力和处理能力的模块,包括但不限于显示处理芯片(Scaler)、时序控制器(Tcon)等处理器。
显示模块包括但是不限于液晶显示器(Liquid Crystal Display,LCD)、微型发光二极管(micro Light Emitting Diode,micro LED)面板、有机发光二极管(Organic Light-Emitting Diode,OLED)面板等具有显示功能的模块或设备。
参考图2中示出的type-c接口的引脚示意图,电源模块22与Type-c接口21的总线电源(Vbus)引脚212和第一控制器23连接,当需要通过电子设备会向对端设备供电时,第一控制器23可以控制电源模块22通过Vbus引脚212进行供电。
第二控制器24分别与第一控制器23和Type-C接口21的CC引脚213(即图2示出的CC1和CC2)连接,第二控制器24可以检测CC引脚213的电平状态,以确定对端设备的设备类型以及获取对端设备的DP能力。
显示发送处理器28包括USB物理层接口(USB PHY)281和DP发送物理层接口(DP TX PHY)282,第一开关25分别与显示发送处理器28的USB物理层接口281和DP发送物理层接口282连接。第一开关25还与第三开关27、第一控制器23连接。
显示接收处理器29包括DP接收物理层接口(DP RX PHY)291以及与显示接收处理器29连接的显示模块292。第二开关26分别与显示接收处理器29的DP接收物理层接口(DP RX PHY)291连接。第二开关26还与第三开关27、第一控制器23连接。
第一控制器23可根据第二控制器24获取到的对端设备的设备类型以及对端设备的DP能力,控制第一开关25、第二开关26和第三开关27的通断,将电子设备设置为收端设备或设置为源端设备。
作为示例,若确定对端设备为源端设备,电子设备为收端设备,则可以断开第一开关25中DP TX PHY282的通路,连通第二开关26和第三开关27,将数据引脚与 DP RX PHY291连通。例如,若对端设备支持双通道模式,则可以将数据引脚中的TX1+、RX1-和RX1+、TX1-与USB PHY281连通,将数据引脚中的TX2+、RX2-和RX2+、TX2-与DP RX PHY291连通。或者,若对端设备支持四通道模式,则还可以断开第一开关25中与USB PHY281的通路,将数据引脚中的TX1+RX1-、RX1+TX1-、TX2+RX2-和RX2+TX2-均与DP RX PHY291连通。
在另一种示例中,若确定对端设备为收端设备,电子设备为源端设备,则可以断开第二开关26,连通第一开关25和第三开关27,将数据引脚与DP TX PHY282连通。例如,若对端设备支持双通道模式,则可以将数据引脚中的TX1+、RX1-和RX1+、TX1-与USB PHY281连通,将数据引脚中的TX2+、RX2-和RX2+、TX2-与DP TX PHY282连通。或者,若对端设备支持四通道模式,则可以将数据引脚中的TX1+RX1-、RX1+TX1-、TX2+RX2-和RX2+TX2-均与DP TX PHY282连通。
本申请还提供了一种电子设备的数据传输方法,可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、智慧屏等电子设备上。本申请实施例对终端设备的具体类型不作任何限制。
在此以电子设备为手机进行说明。如图4所示,该电子设备可以包括:处理器310、音频模块320、屏幕330、摄像模块340、存储模块350、接口360、电源模块370、输入模块380、通信模块390等部件。本领域技术人员可以理解,图4中示出的终端设备结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图4对终端设备的各个构成部件及模块进行具体的介绍:
处理器310是终端设备的控制中心,处理器310可以包括CPU311和图形处理器(Graphics Processing Unit,GPU)332。CPU310可以利用各种接口和线路连接终端设备的各个部分,通过运行或执行存储在存储模块350内的软件程序和/或模块,以及调用存储在存储模块350内的数据,执行终端设备的各种功能和处理数据。而GPU332则是可以进行图像和图形相关运算工作的微处理器。GPU332的形式有多种,例如,GPU332可以设置在显卡中,或者集成在CPU311中,再或者,也可以以独立的GPU芯片的形式存在。
其中,GPU在进行图像和图形的绘制和渲染时,是将图像或图形绘制或渲染至缓存(buffer)中。对于设置在显卡中的GPU来说,缓存即为显卡中集成的显存(也被叫做帧缓存)。而对于集成在CPU中或以独立的GPU芯片的形式存在的GPU,缓存则可以是终端设备的运行内存中的一部分,如随机存取存储器(Random Access Memory,RAM)中的部分空间。
一些实施方式中,CPU311可包括一个或多个处理单元。例如,可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。
需要说明的是,显示发送处理器333和显示接收处理器334可以是独立或集成于GPU内具有显示发送和显示接收功能的模块。也可以是通过GPU实现的具有显示发 送和显示接收功能的虚拟处理模块,其具体实现方式在此不做限制。
还有一些实施方式中,处理器310中还可集成调制解调处理器。调制解调处理器主要处理无线通信相关的数据。本申请对此不作限制。
音频模块320,用于处理音频信号。例如,音频模块320可以将麦克风323接收到的模拟音频信号转换为数字音频数据并发送给处理器310。或者,将处理器310发送的数字音频数据转换为扬声器321和受话器322能够播放的模拟信号并发送给扬声器321或受话器322。
屏幕330用于通过视觉输出,展示终端设备输出的内容。例如,可以显示用户输入的信息、展示提供给用户的信息、显示终端设备的系统界面、以及在终端设备上运行的应用程序的界面等。屏幕330显示面板的材质可以为液晶显示器(Liquid Crystal Display,LCD)、薄膜晶体管(Thin Film Transistor,TFT)、发光半导体(Light-Emitting Diode,LED)、有机发光半导体(Organic Light-Emitting Diode,OLED)等,在此不做限制。
一些实施方式中,屏幕的显示面板上还可以覆盖有触控面板。当触控面板检测到在其上或附近的触摸操作后,传送给处理器310以确定触摸事件的类型,随后处理器310根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图2中屏幕和触控面板(未示出)为互相独立的两个部件来实现手机的输入和输出功能,但是在一些实施方式中,可以将触控面板与显示面板集成而实现手机的输入和输出功能。
摄像模块340包括至少1个摄像头,摄像头可以是前置摄像头341或者后置摄像头342。
仅为作为示例,终端设备可以为单摄像头、双摄像头、三摄像头或四摄像头。例如,为四摄像头时,一个摄像头为前置摄像头341,三个为后置摄像头342。三个后置摄像头342可以为不同焦距的摄像头。如一个等效焦距35mm的主摄像头、一个等效焦距20mm的广角摄像头和一个等效焦距105mm的长焦摄像头。本申请实施例对此不作限定。
需要说明的是,当终端设备包括多个摄像头时,这多个摄像头可以全部前置,或者全部后置,或者一部分前置、另一部分后置,本申请实施例对此不作限定。
其中,存储模块350中包括内部存储器351和外部存储器接口352,内部存储器351可以是闪存、硬盘、运算内存等。例如,内部存储器可以包括至少一个硬盘或闪存,一个运算内存。外部存储器接口352用于连接外部存储器,外部存储器可以包括内存卡、移动硬盘、U盘、光碟等。
存储模块350可用于存储软件程序以及模块,处理器310通过运行存储在存储模块350的软件程序以及模块,从而执行终端设备的各种功能应用以及数据处理。存储模块350可主要包括存储程序区和存储数据区。其中,存储程序区通常位于内部存储器351上,可存储操作系统、至少一个功能所需的应用程序(如声音播放功能、触摸响应功能)。存储数据区可以位于内部存储器351上,或者位于与外部存储器接口352连接的外部存储器上,或者同时位于内部存储器和外部存储器上。存储数据区可存储根据手机的使用所创建的数据(如音频数据、图像数据、视频数据)。
接口360包括但不限于用户识别(Subscriber Identity Module,SIM)卡接口361、 USB接口362、耳机接口363。SIM卡接口用于插入运营商提供的SIM卡,以使得终端设备通过移动通信模块391与基站通信连接时,识别验证用户身份,并在通过验证后,向基站发送通话请求、数据请求以及接收基站转发的通话、数据、短信等。
其中,电子设备的双向接口可以包括USB接口362、耳机接口363以及控制器364。图3示出的接口电路可以应用于USB接口362中的USB Type-c接口,以实现双向充电、双向视频传输、双向音频传输和双向数据传输等。
USB接口362可以通过USB数据线将终端设备与电脑连接,进行数据交换。同时,USB接口362还与电源模块370连接,USB数据线在接入电脑或充电插口时,可以将输入电能传输给电源模块370,对终端设备进行充电。其中,USB接口362可以为micro-USB、mini-USB、USB Type-c等,在此不做限制。
耳机接口363用于接入耳机。耳机接口363可以为独立的接口,例如,耳机接口363可以为3.5mm耳机插孔。或者,耳机接口363还可以集成于USB接口362中,例如,耳机接口可以集成在USB Type-c中。当耳机接口363中插入了耳机时,音频模块320可以不再将输出的模拟音频信号发送给扬声器321或受话器322,而是通过耳机接口363发送给耳机,通过耳机播放音频。在插入耳机时,若检测到耳机不包括麦克风,此时音频模块依然接收麦克风323发送的模拟音频信号。若检测到耳机包括麦克风,则音频模块接收耳机麦克风发送的模拟音频信号,对其进行处理并发送给处理器310。
控制器364则可以包括接口电路中的第一控制器和第二控制器,第一控制器和第二控制器也可以由一个统一的控制器来实现,在此不做限制。
终端设备还包括给各个部件供电的电源模块370。电源模块可以包括电池、电源管理模块等。电源管理模块可以与处理器310逻辑相连,从而通过电源管理模块实现管理电池的充电、放电、以及功耗管理等功能。
输入模块380可用于接收输入的信息和按键信号,输入的信息包括数字或字符信息、触控信息等,按键信号包括物理按键的按压信号、虚拟按键的按压信号等。
一种实施方式中,输入模块380可包括触控面板以及其他输入设备。触控面板与屏幕330可组成触摸屏,触控面板可收集用户在其上或附近的触摸操作(如用户使用手指、触控笔等能够在触控面板上产生触摸信号的物体或附件在触控面板上或在触摸屏附近的操作),并根据预先设定的程式驱动执行相应的功能。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器。触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器310,处理器310接收发送的触点坐标,将其转换为触控指令并加以执行。可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板。其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆中的一种或多种。
通信模块390包括移动通信模块391和无线通信模块392。移动通信模块391可以支持任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband  Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、时分复用WCDMA(Time-Division WCDMA,TD-WCDMA)、时分复用LTE(Time-Division LTE,TD-LTE)、第五代新无线(the 5th generation New Radio,5G NR)等。而无线通信模块392则可以支持蓝牙(Bluetooth)、无线保真(Wireless Fidelity,Wi-Fi)、近场通信(Near Field Communication,NFC)等。
移动通信模块391可以用于通过天线与通信基站连接,以建立终端设备与其他终端设备之间通话链路,收发通话音频。无线通信模块392则用于与外置设备无线连接,其中,外置设备可以是蓝牙耳机、蓝牙音响等具有放音、收音功能的外置设备,也可以是蓝牙鼠标、蓝牙键盘等用于输入的外置设备,在此不做限制。
以下,以type-c接口为例,结合图3示出的接口电路以及图5所示流程图,对本申请提供的电子设备的数据传输方法进行说明。
参考图5,该方法包括:
S401、获取对端设备的设备类型,若对端设备的设备类型为源端设备,执行S402,若对端设备的设备类型为收端设备和DRP设备时,执行S404。
一些实施方式中,获取对端设备的设备类型可以通过获取对端设备的CC引脚的电平进行确定。需要说明的是,对端设备接入双向接口后,对端设备接口的引脚与电子设备双向接口中的引脚连接。对端设备的CC引脚的电平即为电子设备双向接口中CC引脚的电平,参考图2,CC引脚包括CC1和CC2。
作为示例,当电子设备通过电力传输控制器获取接入电子设备type-c接口的对端设备的数据线上的CC引脚的电平状态为高电平时,可以确认对端设备为源端设备。当获取到CC引脚的电平状态为低电平时,可以确认对端设备为收端设备。当获取到对端设备的数据线上的CC引脚的电平在高电平和低电平之间周期性切换时,可以确认对端设备为DRP设备。
S402、将电子设备设置为收端设备。
一些实施方式中,可以参考图3,将电子设备设置为收端设备,包括断开第一开关25中DP TX PHY282的通路,连通第二开关26和第三开关27,将数据引脚与DP RX PHY连通。
S403、向对端设备发送电子设备的DP能力。
一些实施方式中,DP能力包括双通道DP通信或四通道DP通信。作为示例,对端设备作为源端设备,电子设备作为收端设备,对端设备会接收电子设备的DP能力,例如,电子设备可以通过电力传输控制器,向对端设备发送DP能力信息。不同DP能力下的电路连接可参考图3的示例,在此不做赘述。
需要说明的是,电子设备通过电力传输控制器,向对端设备发送的DP能力信息时,可以通过电力传输协议中规定的“Response Discover Modes”消息。该消息中包括电子设备的设备功能信息,如DP能力信息以及是否支持显示上行端口(Upstream Facing Port_Display,UFP_D)。
S404、将电子设备设置为源端设备,当对端设备的设备类型为DRP设备时,执行S405;当对端设备的设备类型为收端设备时,执行S411。
一些实施方式中,可以参考图3,将电子设备设置为源端设备,可以断开第二开 关26,连通第一开关25和第三开关27,将数据引脚与DP TX PHY连通。
需要说明的是,当对端设备的设备类型为收端设备时,可以在将电子设备设置为源端设备后,直接执行S411。而当对端设备的设备类型为DRP设备时,则需通过角色协商过程或角色切换过程确定电子设备和对端设备的设备类型。
S405、确定对端设备是否支持显示上行端口,若支持,则执行S406,若不支持则结束控制流程。
在本实施例中,可以参考S403中的示例,在确定对端设备是否支持UFP_D时,也可以通过“Discover Modes”指令实现。例如,根据电力传输协议中的规定,电子设备可以向对端设备发送“Discover Modes”指令,对端设备接收“Discover Modes”指令并返回“Response Discover Modes”消息,在该消息中即包括对端设备的DP能力信息以及是否支持UFP_D。
需要说明的是,若对端设备支持UFP_D,则表示对端设备支持通过DP进行视频数据传输的能力,可以作为收端设备或源端设备使用,启动角色协商过程或角色切换过程;若对端设备不支持UFP_D,则说明对端设备不具有通过具有DP进行视频数据传输的能力,无法进行视频数据的传输,因此可以直接结束控制流程。通过确定对端设备是否支持UFP_D可以排除掉无法用于视频数据传输的对端设备,减少不必要的配对流程。
S406、确定对端设备与电子设备的设备类型是否相同,若相同,则执行S407,若不同,则执行S409。
一些实施方式中,供应商信息可以包括供应商编号(vendor identity document,VID)或子供应商编号(Subsystem vendor identity document,SVID),厂商信息可以包括产品编号(product identity document,PID)。根据对端设备的VID或SVID以及PID可以确定对端设备的设备类型与电子设备是否相同。例如,将电子设备作为源端设备后,根据电力传输协议中的规定,可以向对端设备发送“Discover Identity”和“Discover SVIDs”指令,并接收对端设备回复的“ACK Discover Identity”信息和“ACK Discover SVIDs”信息。其中,“ACK Discover Identity”信息中包括了对端设备PID,“ACK Discover SVIDs”信息中包括了对端设备的SVID。根据VID/SVID以及PID,可以从预存的USB VID&PID表中查询获取到对端设备支持的设备类型。例如,若通过VID和PID获取对端设备为A品牌厂商生产的显示器,则确定对端设备为收端设备,与电子设备的设备类型不同。或者,若通过VID和PID获取确定对端设备为C品牌厂商生产的智慧屏,则可以确定对端设备为DRP设备,需要根据DRP设备的具体设置确定是否与电子设备的设备类型相同。
作为示例,“Response Discover Modes”消息中可能还会包括设备类型偏好信息。若获取到DRP设备的设备类型偏好信息,则可以根据设备类型偏好信息中的偏好设置确定对端设备的设备类型。例如,对端设备的偏好设置可能为“try sink”或“try source”。“try sink”是指在进行连接时,对端设备将优先作为收端设备进行连接,“try source”则是指在进行连接时,端设备将优先作为源端设备进行连接。可以根据DRP设备的偏好设置确定DRP设备为源端设备(与电子设备的设备类型相同)或收端设备(与电子设备的设备类型不同)。若无法获取DRP设备的设备类型偏好信息,则随机设置对端 设备的设备类型,然后再根据CC引脚的电平确定对端设备的设备类型,再判断是否与电子设备的设备类型相同。
S407至S408为角色协商过程的示例。
S407、在电子设备上展示询问消息,等待接收选择操作。
S408、根据接收到的选择操作,确定是否将电子设备设置为收端设备,若是,则执行S403,若不是,则执行S411。
一些实施方式中,电子设备为源端设备,当对端设备为源端设备时,电子设备与对端设备的设备类型相同。这个情况下,可以在电子设备上展示询问消息,询问用户选择将电子设备设置为源端设备或收端设备。例如,可以在电子设备的屏幕上展示弹窗,提供将电子设备设置为源端设备或收端设备的选项,等待接收用户的选择操作。若接收到的选择操作指示将电子设备设置为收端设备,则可以执行S403,向对端设备发送电子设备的DP能力,并接收对端设备发送的视频数据,在电子设备上进行展示。
或者,若接收到的选择操作指示将电子设备设置为源端设备,则可以直接执行S411。
S409和S410为角色切换过程的示例。
S409、电子设备向对端设备发送数据角色转换请求。
S410、确定对端设备是否接受数据角色转换请求,若接收,则执行S402,若不接受,则执行S411。
一些实施方式中,电子设备为源端设备,当随机设置对端设备为收端设备时,虽然对端设备与电子设备的设备类型不同,但是由于对端设备为收端设备时随机设置的,电子设备和对端设备的设备类型可能不符合预期设置。为了更加准确地配置电子设备和对端设备,电子设备可以根据电力传输协议中的规定,向对端设备发送数据角色转换请求的请求指令“DR_Swap”,询问对端设备是否要转换为源端设备。若对端设备回复“Accept”,则表示对端设备接受数据角色转换请求,并转换为了源端设备,这个情况下,电子设备会执行S402,将电子设备最终的设备类型设置为收端设备。若对端设备回复“Reject”,则表示对端设备拒绝数据角色转换请求,保持现状,即电子设备最终的设备类型为源端设备。
S411、电子设备向对端设备发送视频数据。
一些实施方式中,电子设备在向对端设备发送视频数据时,可以根据对端设备的DP能力,选择通过DP1.2协议、DP1.4协议或DP2.0协议进行视频数据的传输,在本申请中对具体的传输协议不做限制。
可选地,还有一些实施方式中,电子设备会向对端设备供电,例如,电子设备为笔记本电脑,对端设备为手机时,笔记本电脑可以在接收手机发送的视频数据时,为手机进行充电。这个情况下,电子设备还可以控制电源模块,通过Vbus引脚进行供电,供电的电压大小、电流大小在本申请中不做限制。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
对应于上文实施例所述的电子设备的数据传输方法,图6示出了本申请实施例提 供的电子设备的数据传输装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。
参照图6,该装置包括:电子设备包括双向接口,双向接口用于接收多媒体数据和发送多媒体数据。
该装置包括:确定模块51,用于在对端设备插入双向接口后,确定对端设备的设备类型和电子设备的设备类型。
发送模块52,用于在确定电子设备的设备类型为收端设备后,将对端设备发送的多媒体数据通过双向接口发送到电子设备的显示接收处理器。
发送模块52,还用于在确定电子设备的设备类型为源端设备后,将电子设备上的显示发送处理器产生的多媒体数据通过双向接口发送到对端设备。
一些实施方式中,参考图7,该装置还包括连接模块53,用于在确定电子设备的设备类型为收端设备后,将双向接口与显示接收处理器连接。在确定电子设备的设备类型为源端设备后,将双向接口与显示发送处理器连接。
一些实施方式中,确定模块51,具体用于根据双向接口上的传输的信号,确定对端设备的设备类型。根据对端设备的设备类型,确定电子设备的设备类型。
一些实施方式中,双向接口为通用串行总线C型接口。
确定模块51,具体用于检测双向接口上引脚的电平状态,根据引脚的电平状态确定对端设备的设备类型,其中,引脚的电平状态为高电平时,对端设备为源端设备,引脚的电平状态为低电平时,对端设备为收端设备,引脚的电平状态在高电平与低电平之间切换时,对端设备为双角色端口设备。
一些实施方式中,确定模块51,具体用于当对端设备为源端设备时,确定电子设备为收端设备。当对端设备为收端设备时,确定电子设备为源端设备。当对端设备为双角色端口设备时,通过角色协商过程或角色切换过程确定电子设备和对端设备的设备类型。
一些实施方式中,确定模块51,还用于将电子设备的初始设备类型确定为源端设备。
一些实施方式中,确定模块51,还用于通过双向接口获取对端设备是否支持显示上行端口的信息,对于支持显示上行端口的对端设备,启动角色协商过程或角色切换过程。
一些实施方式中,确定模块51,还用于通过双向接口获取对端设备的供应商信息、厂商信息、设备类型偏好信息和设备功能信息中的至少一种,根据获取的信息确定对端设备与电子设备的是否相同的设备,如果相同,执行角色协商过程,如果不同,执行角色切换过程。
一些实施方式中,角色协商过程包括:在电子设备上展示询问消息,询问消息用于获得电子设备最终的设备类型。根据电子设备最终的设备类型设定对端设备最终的设备类型。角色切换过程包括:向对端设备发送角色切换请求消息。根据对端设备的响应消息设定对端设备与电子设备的最终的设备类型。
一些实施方式中,双向接口还用于双向充电。
需要说明的是,上述模块之间的信息交互、执行过程等内容,由于与本申请方法 实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
图8示出了另一种电子设备结构示意图。参考图8,本申请实施例还提供了一种电子设备6包括双向接口605、控制器604、处理器601,其中,处理器601包括显示接收处理器和显示发送处理器。双向接口605,包括引脚,引脚用于连接插入双向接口的对端设备。控制器604,用于确定对端设备的设备类型和电子设备6的设备类型,在确定电子设备6的设备类型为收端设备后,将对端设备发送的多媒体数据通过双向接口发送到电子设备的显示接收处理器,在确定电子设备6的设备类型为源端设备后,将电子设备6上的显示发送处理器产生的多媒体数据通过双向接口发送到对端设备。显示接收处理器,用于对接收到的多媒体数据进行显示处理。显示发送处理器,用于处理得到多媒体数据。
参考图8,该电子设备6还可以包括存储器602以及存储在所述存储器602中并可在所述至少一个处理器601上运行的计算机程序603,所述处理器601执行所述计算机程序603时实现上述任意电子设备的数据传输方法实施例中的步骤。
本领域技术人员可以理解,图8仅仅是电子设备6的举例,并不构成对电子设备6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。
所称处理器601可以是中央处理单元(Central Processing Unit,CPU),该处理器601还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器602在一些实施例中可以是电子设备6的内部存储单元,例如电子设备6的硬盘或内存。所述存储器602在另一些实施例中也可以是电子设备6的外部存储设备,例如电子设备6上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器602还可以既包括电子设备6的内部存储单元也包括外部存储设备。所述存储器602用于存储操作系统、应用程序、引导装载程序(BootLoader)、数据以及其他程序等,例如所述计算机程序的程序代码等。所述存储器602还可以用于暂时地存储已经输出或 者将要输出的数据。
一些实施方式中,电子设备6还包括开关模块,在确定电子设备6的设备类型为收端设备后,开关模块用于将双向接口605与显示接收处理器连接,在确定电子设备的设备类型为源端设备后,开关模块用于将双向接口605与显示发送处理器连接。
一些实施方式中,开关模块包括第一开关、第二开关和第三开关,第一开关与显示发送处理器连接,第二开关与显示接收处理器连接,第三开关与引脚连接。在确定电子设备6的设备类型为收端设备后,控制器604控制第二开关与第三开关连通,在确定电子设备6的设备类型为源端设备后,控制器604控制第一开关与第三开关连通。
一些实施方式中,控制器604,用于检测双向接口上的引脚的电平状态,根据引脚的电平状态确定对端设备的设备类型,根据对端设备的设备类型,确定电子设备的设备类型。
一些实施方式中,电子设备6还包括电源模块,电源模块与引脚连接。控制器604还用于控制电源模块向对端设备充电。
一些实施方式中,电源模块还用于接收对端设备通过双向接口605传输的电力。
一些实施方式中,双向接口605为通用串行总线C型接口或闪电接口。
一些实施方式中,检测双向接口605上的第一引脚的电平状态的控制器为电力传输控制器。其中,当双向接口605为type-c接口时,参考图2,第一引脚可以为CC1和CC2引脚。
本申请实施例还提供了一种接口电路,接口电路用于设置在电子设备上,包括接口模块、开关模块和控制器。接口模块,包括引脚,引脚用于连接插入双向接口的对端设备。控制器,用于确定对端设备的设备类型和电子设备的设备类型,在确定电子设备的设备类型为收端设备后,通过开关模块将接口模块与电子设备的显示接收处理器连接,在确定电子设备的设备类型为源端设备后,通过开关模块将接口模块与电子设备的显示发送处理器连接。
一些实施方式中,开关模块包括第一开关、第二开关和第三开关,第一开关用于与显示发送处理器连接,第二开关用于与显示接收处理器连接,第三开关与引脚连接。在确定电子设备的设备类型为收端设备后,控制器控制第二开关与第三开关连通,在确定电子设备的设备类型为源端设备后,控制器控制第一开关与第三开关连通。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。
本申请实施例提供了一种芯片系统,芯片系统包括存储器和处理器,处理器执行存储器中存储的计算机程序,以实现上述各个方法实施例中的步骤。
本申请实施例提供了一种芯片系统,芯片系统包括处理器,处理器与计算机可读存储介质耦合,处理器执行计算机可读存储介质中存储的计算机程序,以实现上述各个方法实施例中的步骤。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例 方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到电子设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的方法、装置和电子设备,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (20)

  1. 一种电子设备的数据传输方法,其特征在于,所述电子设备包括双向接口,所述双向接口用于接收多媒体数据和发送多媒体数据;所述方法包括:
    在对端设备插入所述双向接口后,确定所述对端设备的设备类型和所述电子设备的设备类型;
    在确定所述电子设备的设备类型为收端设备后,将所述对端设备发送的多媒体数据通过所述双向接口发送到所述电子设备的显示接收处理器;
    在确定所述电子设备的设备类型为源端设备后,将所述电子设备上的显示发送处理器产生的多媒体数据通过所述双向接口发送到所述对端设备。
  2. 根据权利要求1所述方法,其特征在于,所述方法还包括:
    在确定所述电子设备的设备类型为收端设备后,将所述双向接口与所述显示接收处理器连接;
    在确定所述电子设备的设备类型为源端设备后,将所述双向接口与所述显示发送处理器连接。
  3. 根据权利要求1或2所述方法,其特征在于,所述确定所述对端设备的设备类型和所述电子设备的设备类型,包括:
    根据所述双向接口上的传输的信号,确定所述对端设备的设备类型;
    根据所述对端设备的设备类型,确定所述电子设备的设备类型。
  4. 根据权利要求3所述方法,其特征在于,所述双向接口为通用串行总线C型接口;
    所述根据所述双向接口上的传输的信号,确定所述对端设备的设备类型,包括:
    检测所述双向接口上引脚的电平状态,根据所述引脚的电平状态确定所述对端设备的设备类型,其中,所述引脚的电平状态为高电平时,所述对端设备为源端设备,所述引脚的电平状态为低电平时,所述对端设备为收端设备,所述引脚的电平状态在高电平与低电平之间切换时,所述对端设备为双角色端口设备。
  5. 根据权利要求4所述方法,其特征在于,根据所述对端设备的设备类型,确定所述电子设备的设备类型包括:
    当所述对端设备为源端设备时,确定所述电子设备为收端设备;
    当所述对端设备为收端设备时,确定所述电子设备为源端设备;
    当所述对端设备为双角色端口设备时,通过角色协商过程或角色切换过程确定所述电子设备和所述对端设备的设备类型。
  6. 根据权利要求5所述方法,其特征在于,在通过角色协商过程或角色切换过程确定所述电子设备和所述对端设备的设备类型之前,所述方法还包括:
    将所述电子设备的初始设备类型确定为源端设备。
  7. 根据权利要求6所述方法,其特征在于,在将所述电子设备的初始设备类型确定为源端设备之后,所述方法还包括:
    通过所述双向接口获取所述对端设备是否支持显示上行端口的信息,对于支持显示上行端口的对端设备,启动所述角色协商过程或角色切换过程。
  8. 根据权利要求6或7所述方法,其特征在于,在将所述电子设备的初始设备类 型确定为源端设备之后,所述方法还包括:
    通过所述双向接口获取所述对端设备的供应商信息、厂商信息、设备类型偏好信息和设备功能信息中的至少一种,根据获取的信息确定所述对端设备与所述电子设备的是否相同的设备,如果相同,执行所述角色协商过程,如果不同,执行所述角色切换过程。
  9. 根据权利要求5-8任一项所述方法,其特征在于,所述角色协商过程包括:在所述电子设备上展示询问消息,所述询问消息用于获得所述电子设备最终的设备类型;
    根据所述电子设备最终的设备类型设定所述对端设备最终的设备类型;
    所述角色切换过程包括:向所述对端设备发送角色切换请求消息;
    根据所述对端设备的响应消息设定所述对端设备与所述电子设备的最终的设备类型。
  10. 根据权利要求1-9任一项所述方法,其特征在于,所述双向接口还用于双向充电。
  11. 一种电子设备,其特征在于,所述电子设备包括双向接口、控制器、显示接收处理器和显示发送处理器;
    所述双向接口,包括引脚,所述引脚用于连接插入所述双向接口的对端设备;
    所述控制器,用于确定所述对端设备的设备类型和所述电子设备的设备类型,在确定所述电子设备的设备类型为收端设备后,将所述对端设备发送的多媒体数据通过所述双向接口发送到所述电子设备的显示接收处理器,在确定所述电子设备的设备类型为源端设备后,将所述电子设备上的显示发送处理器产生的多媒体数据通过所述双向接口发送到所述对端设备;
    所述显示接收处理器,用于对接收到的多媒体数据进行显示处理;
    所述显示发送处理器,用于处理得到多媒体数据。
  12. 根据权利要求11所述的电子设备,其特征在于,所述电子设备还包括开关模块,在确定所述电子设备的设备类型为收端设备后,所述开关模块用于将所述双向接口与所述显示接收处理器连接,在确定所述电子设备的设备类型为源端设备后,所述开关模块用于将所述双向接口与所述显示发送处理器连接。
  13. 根据权利要求12所述的电子设备,其特征在于,所述开关模块包括第一开关、第二开关和第三开关,所述第一开关与所述显示发送处理器连接,所述第二开关与所述显示接收处理器连接,所述第三开关与所述引脚连接;在确定所述电子设备的设备类型为收端设备后,所述控制器控制所述第二开关与所述第三开关连通,在确定所述电子设备的设备类型为源端设备后,所述控制器控制所述第一开关与所述第三开关连通。
  14. 根据权利要求11-13任一项所述的电子设备,其特征在于,所述控制器,用于检测所述双向接口上的所述引脚的电平状态,根据所述引脚的电平状态确定所述对端设备的设备类型,根据所述对端设备的设备类型,确定所述电子设备的设备类型。
  15. 根据权利要求11-14任一项所述的电子设备,其特征在于,所述电子设备还包括电源模块,所述电源模块与所述引脚连接;所述控制器还用于控制所述电源模块向所述对端设备充电。
  16. 根据权利要求15所述的电子设备,其特征在于,所述电源模块还用于接收所述对端设备通过所述双向接口传输的电力。
  17. 根据权利要求11-16任一项所述的电子设备,其特征在于,所述双向接口为通用串行总线C型接口或闪电接口。
  18. 根据权利要求14-17任一项所述的电子设备,其特征在于,检测所述双向接口上的第一引脚的电平状态的控制器为电力传输控制器。
  19. 一种接口电路,其特征在于,所述接口电路用于设置在电子设备上,包括接口模块、开关模块和控制器;
    所述接口模块,包括引脚,所述引脚用于连接插入双向接口的对端设备;
    所述控制器,用于确定所述对端设备的设备类型和所述电子设备的设备类型,在确定所述电子设备的设备类型为收端设备后,通过所述开关模块将所述接口模块与所述电子设备的显示接收处理器连接,在确定所述电子设备的设备类型为源端设备后,通过所述开关模块将所述接口模块与所述电子设备的显示发送处理器连接。
  20. 根据权利要求19所述的接口电路,其特征在于,所述开关模块包括第一开关、第二开关和第三开关,所述第一开关用于与所述显示发送处理器连接,所述第二开关用于与所述显示接收处理器连接,所述第三开关与所述引脚连接;
    在确定所述电子设备的设备类型为收端设备后,所述控制器控制所述第二开关与所述第三开关连通,在确定所述电子设备的设备类型为源端设备后,所述控制器控制所述第一开关与所述第三开关连通。
PCT/CN2021/140164 2021-02-10 2021-12-21 电子设备的数据传输方法、电子设备及接口电路 WO2022170861A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP21925506.4A EP4280072A4 (en) 2021-02-10 2021-12-21 DATA TRANSMISSION METHOD OF AN ELECTRONIC DEVICE, ELECTRONIC DEVICE AND INTERFACE CIRCUIT

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110186512.1 2021-02-10
CN202110186512.1A CN114911729A (zh) 2021-02-10 2021-02-10 电子设备的数据传输方法、电子设备及接口电路

Publications (1)

Publication Number Publication Date
WO2022170861A1 true WO2022170861A1 (zh) 2022-08-18

Family

ID=82761557

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/140164 WO2022170861A1 (zh) 2021-02-10 2021-12-21 电子设备的数据传输方法、电子设备及接口电路

Country Status (3)

Country Link
EP (1) EP4280072A4 (zh)
CN (1) CN114911729A (zh)
WO (1) WO2022170861A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150363339A1 (en) * 2014-06-13 2015-12-17 Microsoft Corporation Reversible Connector for Accessory Devices
CN107544934A (zh) * 2017-09-07 2018-01-05 龙迅半导体(合肥)股份有限公司 一种USB Type‑C线缆的双向信号调节芯片及USB Type‑C线缆
CN107580701A (zh) * 2015-05-13 2018-01-12 高通股份有限公司 用于提供可重新配置的双向前端接口的装置和方法
CN111083412A (zh) * 2019-12-05 2020-04-28 视联动力信息技术股份有限公司 视频转接方法、视频转接器、电子设备及存储介质
CN108604218B (zh) * 2016-03-11 2020-07-21 华为技术有限公司 具有通用串行总线USB Type-C接口的设备之间建立连接的方法和终端设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8200855B2 (en) * 2008-01-15 2012-06-12 Dell Products L.P. Method and system for detecting displayport source device connections to sink device
US10866628B2 (en) * 2018-04-10 2020-12-15 Texas Instruments Incorporated Low-power mode for a USB type-C power delivery controller

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150363339A1 (en) * 2014-06-13 2015-12-17 Microsoft Corporation Reversible Connector for Accessory Devices
CN107580701A (zh) * 2015-05-13 2018-01-12 高通股份有限公司 用于提供可重新配置的双向前端接口的装置和方法
CN108604218B (zh) * 2016-03-11 2020-07-21 华为技术有限公司 具有通用串行总线USB Type-C接口的设备之间建立连接的方法和终端设备
CN107544934A (zh) * 2017-09-07 2018-01-05 龙迅半导体(合肥)股份有限公司 一种USB Type‑C线缆的双向信号调节芯片及USB Type‑C线缆
CN111083412A (zh) * 2019-12-05 2020-04-28 视联动力信息技术股份有限公司 视频转接方法、视频转接器、电子设备及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4280072A4

Also Published As

Publication number Publication date
CN114911729A (zh) 2022-08-16
EP4280072A4 (en) 2024-06-19
EP4280072A1 (en) 2023-11-22

Similar Documents

Publication Publication Date Title
CN109286764B (zh) 具有usb type-c接口的电视机
US9106553B2 (en) System and method for sharing resources and interfaces amongst connected computing devices
WO2018176901A1 (zh) 转接头、终端设备和转接头系统
US8195852B2 (en) Configurable connector for system-level communication
US10311000B2 (en) Integrated universal serial bus (USB) type-C switching
US20060160569A1 (en) Cellular phone and portable storage device using the same
KR102405773B1 (ko) Usb 타입 c 인터페이스를 이용한 멀티 디바이스 간의 통신 방법 및 이를 구현한 전자 장치
TW201738761A (zh) 顯示裝置
US20120156993A1 (en) Dongle and method for operating external input means, and external input system with the dongle
WO2021093627A1 (zh) 电子设备、电子设备接口控制方法及系统
US10380049B2 (en) Multi-host supported universal serial bus hub and automobile head unit using the same
WO2023051206A1 (zh) 一种电路板及电子设备
US20210200705A1 (en) Terminal, terminal peripheral, signal transmission system and signal sending and receiving method
JP2015076100A (ja) 通信制御ピンを介したシリアル通信
KR101277657B1 (ko) 외부 디바이스와 이에 도킹되는 휴대 단말 사이의 입력 이벤트 처리 방법
US10200084B2 (en) Electronic device and cable and method of driving the same
KR101504654B1 (ko) 외부 디바이스와 이에 도킹되는 휴대 단말 사이의 연결 수립 방법
US9584919B2 (en) Interface switching system and method for switching operation mode
WO2022170861A1 (zh) 电子设备的数据传输方法、电子设备及接口电路
CN218825507U (zh) 双接口装置和投影设备
CN112003928B (zh) 多功能屏幕同步控制方法、装置及设备
KR101485156B1 (ko) 외부 디바이스와 도킹되는 휴대 단말 및 그 제어 방법
KR101485154B1 (ko) 외부 디바이스와 이에 도킹되는 휴대 단말의 웨이크 업 모드 전환 방법
CN101998691A (zh) 一种数据传输的方法、系统和装置
CN117498105B (zh) 一种电子设备和连接部件

Legal Events

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

Ref document number: 21925506

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021925506

Country of ref document: EP

Effective date: 20230814

NENP Non-entry into the national phase

Ref country code: DE