Control method and electronic device
By detecting and adjusting the interface status, it solves the problem that personal computers cannot be compatible with different types of display devices at the same time, realizes flexible communication connections with HDMI and DP devices, and improves device compatibility.
Patent Information
- Application Number
- CN202111648393.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-29
AI Technical Summary
Personal computers can usually only connect to display devices through one display interface, and cannot be compatible with different types of display devices at the same time, such as HDMI and DP devices.
By detecting the attribute information of the second electronic device on the interface of the first electronic device, the communication status and power supply status of the interface are dynamically adjusted to achieve communication connections with different types of devices. The specific method includes using the detection structure to obtain the detection signal on the interface, and adjusting the switch according to the signal type to conduct the corresponding hot-swap signal channel and display data channel, or auxiliary channel, so as to establish an appropriate communication connection.
The invention realizes the connection of second electronic devices with different attribute information on one interface, meets the communication requirements for different types of devices, and improves device compatibility and connection flexibility.
Smart Images

Figure CN114328339B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a control method and electronic equipment. Background Art
[0002] Currently, a display interface is usually provided on a personal computer for connecting a display device, for example, connecting a high definition multimedia interface (HDMI) to an HDMI display device, or connecting a digital video interface (DP) to a DP display device.
[0003] However, a computer usually only has one type of interface, and can only be connected to a corresponding type of display device. Summary of the invention
[0004] In view of this, the present application provides a control method and an electronic device as follows:
[0005] A control method, comprising:
[0006] After the first electronic device is connected to the second electronic device through its first interface, obtaining attribute information of the second electronic device;
[0007] Based at least on the attribute information, control the communication state of the first interface so that the first electronic device can establish a communication connection with the second electronic device through the first interface;
[0008] Different second electronic devices have different attribute information, different attribute information corresponds to different communication states of the first interface, and in different communication states, the communication parameters of the first interface are different.
[0009] The above method preferably controls the communication state of the first interface based at least on the attribute information, including:
[0010] When the attribute information indicates that the second electronic device is a first type of device, controlling the first interface to be in a first communication state so that the first electronic device can establish a first type of communication connection with the second electronic device through the first interface;
[0011] When the attribute information indicates that the second electronic device is a second type of device, the first interface is controlled to be in a second communication state so that the first electronic device can establish a second type of communication connection with the second electronic device through the first interface.
[0012] The above method preferably controls the communication state of the first interface based at least on the attribute information, including:
[0013] When the attribute information indicates that the second electronic device is a high-definition multimedia interface device, at least controlling the hot-swap signal channel and the display data channel between the host system of the first electronic device and the first interface to be connected, so that the first interface is in a first communication state; or
[0014] When the attribute information indicates that the second electronic device is a digital video interface device, at least the hot plug signal channel and the auxiliary channel between the host system of the first electronic device and the first interface are controlled to be connected so that the first interface is in a second communication state.
[0015] In the above method, preferably, controlling the first interface to be in the first communication state at least includes:
[0016] Connecting a first hot-swap pin in the first interface to a hot-swap lead of a host system connected to the first electronic device through a first switching switch;
[0017] Connecting the first pin in the first interface to the display data channel lead of the host system connected to the first electronic device through the second switch;
[0018] and / or,
[0019] Controlling the first interface to be in a second communication state at least includes:
[0020] Connecting the second hot-swap pin in the first interface to the hot-swap lead of the host system connected to the first electronic device through a first switching switch;
[0021] The first pin in the first interface and the auxiliary channel lead of the host system connected to the first electronic device are connected through the second switching switch.
[0022] The above method, preferably, further comprises:
[0023] Based on the attribute information, controlling the power supply state of the first interface;
[0024] The power supply states of the first interface corresponding to different attribute information are different, and the interface voltage of the first interface is different in different power supply states.
[0025] In the above method, preferably, obtaining the attribute information of the second electronic device includes:
[0026] Obtaining, through the detection structure on the first interface, a detection signal corresponding to the detection pin on the first interface;
[0027] According to the detection signal, attribute information of the second electronic device is obtained.
[0028] In the above method, preferably, the detection structure is in a first structural state when the first interface is connected to a second electronic device with a high-definition multimedia interface, and the detection pin collects a first signal in the first structural state; the detection structure is in a second structural state when the first interface is connected to a second electronic device with a digital video interface, and the detection pin detects a second signal in the second structural state;
[0029] Wherein, obtaining the attribute information of the second electronic device according to the detection signal includes:
[0030] When the detection signal is the first signal, obtaining attribute information indicating that the second electronic device is a high-definition multimedia interface device;
[0031] In the case that the detection signal is the second signal, attribute information indicating that the second electronic device is a digital video interface device is obtained.
[0032] An electronic device, the electronic device being a first electronic device, comprises:
[0033] A first interface, a host system and a control module, wherein the control module is connected between the first interface and the host system;
[0034] After the second electronic device is connected to the first interface, the control module obtains attribute information of the second electronic device, and controls the communication state of the first interface at least based on the attribute information, so that the first electronic device can establish a communication connection with the second electronic device through the first interface;
[0035] Different second electronic devices have different attribute information, different attribute information corresponds to different communication states of the first interface, and in different communication states, the communication parameters of the first interface are different.
[0036] In the above electronic device, preferably, a detection structure and a detection pin are provided on the first interface;
[0037] The detection structure is in a first structural state when a second electronic device of the high-definition multimedia interface is connected to the first interface, and in the first structural state, the detection pin collects a first signal;
[0038] The detection structure is in a second structure state when a second electronic device of the digital video interface is connected to the first interface, and in the second structure state, the detection pin detects a second signal;
[0039] The control module at least includes:
[0040] a first switch, wherein a first end of the first switch is connected to a hot-swap lead of the host system, and a second end of the first switch is connectable to a first hot-swap pin or a second hot-swap pin in the first interface;
[0041] a second switch, wherein a first end of the second switch is connected to a first pin in the first interface, and a second end of the second switch is connectable to a display data channel lead or an auxiliary channel lead of the host system;
[0042] A controller is connected to the first switch and the second switch, and is capable of obtaining the first signal or the second signal collected by the detection pin; wherein, when the first signal is obtained, the controller controls the second end of the first switch to be connected to the first hot-swap pin, and controls the second end of the second switch to be connected to the display data channel lead; or,
[0043] When the second signal is obtained, the controller controls the second end of the first switch to be connected to the second hot-swap pin, and controls the second end of the second switch to be connected to the auxiliary channel lead.
[0044] In the above electronic device, preferably, the control module further includes:
[0045] a third switch, wherein a first end of the third switch is connected to a power pin in the first interface, and a second end of the third switch can be connected to a first power lead or a second power lead in the host system, or the second end of the third switch is connected to a third power lead in the host system;
[0046] Wherein, when the controller obtains the first signal, it controls the second end of the third switch to be connected to the first power lead, or controls the third power lead to output a first voltage; or,
[0047] When the controller obtains the second signal, it controls the second end of the third switch to be connected to the second power lead, or controls the third power lead to output a second voltage.
[0048] It can be seen from the above technical scheme that in a control method and electronic device disclosed in the present application, after the first electronic device is connected to the second electronic device through its first interface, the attribute information of the second electronic device is obtained, and then the communication state of the first interface is controlled based on the attribute information, so that the first electronic device can establish a communication connection with the second electronic device through the first interface. Different second electronic devices have different attribute information, and the communication states of the first interfaces corresponding to different attribute information are different. The communication parameters of the first interface under different communication states are different. Based on this, in the present application, a second electronic device with different attribute information can be connected to the first electronic device, thereby realizing a communication connection with a second electronic device with different attribute information through one interface on the first electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0050] Figure 1 A flow chart of a control method provided in Example 1 of the present application;
[0051] Figure 2 This is an example diagram of a first electronic device connected to a second electronic device through its first interface in an embodiment of the present application;
[0052] Figure 3 This is a partial structural diagram of the first interface in the embodiment of the present application;
[0053] Figure 4 This is an example diagram of a device connection in which the first interface implements an HDMI interface structure in an embodiment of the present application;
[0054] Figure 5 This is an example diagram of a device connection in which the first interface implements a DP interface structure in an embodiment of the present application;
[0055] Figure 6 This is an example diagram of the application being applicable to a notebook computer for controlling a television;
[0056] Figure 7-Figure 10 They are partial structural schematic diagrams of the first interface in the embodiments of the present application;
[0057] Fig.11 A schematic diagram of the structure of an electronic device provided in Embodiment 2 of the present application;
[0058] Figure 12-14They are partial structural schematic diagrams of an electronic device provided in Embodiment 2 of the present application;
[0059] Fig.15 This is a schematic diagram of the structure of the connector supporting HDMI and DP in this application;
[0060] Fig.16 This is a pin definition diagram of the connector supporting HDMI and DP in this application;
[0061] Fig.17 This application is applicable to the flowchart of notebook computer to realize HDMI or DP device connection;
[0062] Fig.18 This is a structural example diagram of the application applicable to a laptop to realize HDMI or DP device connection. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0064] refer to Figure 1 As shown, it is a flow chart of a control method provided in the first embodiment of the present application, which can be applied to a first electronic device having an interface for connecting to other electronic devices. Such as a notebook or computer having a connection interface. The technical solution in this embodiment is mainly used to realize communication connection with a second electronic device with different attribute information through an interface on the first electronic device.
[0065] Specifically, the method in this embodiment may include the following steps:
[0066] Step 101: After a first electronic device is connected to a second electronic device via its first interface, attribute information of the second electronic device is obtained.
[0067] The first interface on the first electronic device may be a connector having a plurality of connection pins, through which the second electronic device is connected to the first electronic device, such as Figure 2 As shown in . The attribute information of the second electronic device may be information characterizing the device type of the second electronic device. For example, the attribute information may characterize the second electronic device as a first type such as an HDMI type device, or the attribute information may characterize the second electronic device as a second type such as a DP type device. Specifically, the attribute information may be characterized by a type identifier, such as an HDMI identifier or a DP identifier.
[0068] In a specific implementation, in this embodiment, the detection structure on the first interface can be used to obtain the detection signal corresponding to the detection pin on the first interface, and then the attribute information of the second electronic device can be obtained according to the detection signal. Figure 3 as shown in .
[0069] Among them, the detection pin on the first interface can be pin21 on the first interface. The detection structure on the first interface can be in different structural states when a second electronic device with different attribute information is connected to the first interface, so that the detection pin collects different detection signals. Based on this, in this embodiment, attribute information characterizing the device type of the second electronic device can be obtained based on the difference in detection signals.
[0070] For example, the detection structure can be in a first structural state when the first interface is connected to a second electronic device of HDMI type, and in the first structural state, the detection pin can collect a first signal; and the detection structure can be in a second structural state when the first interface is connected to a second electronic device of DP type, and in the second structural state, the detection pin can collect a second signal. Based on this, when the detection signal is the first signal, the attribute information characterizing the second electronic device as HDMI type can be obtained in this embodiment, and when the detection signal is the second signal, the attribute information characterizing the second electronic device as DP type can be obtained in this embodiment.
[0071] In an optional embodiment, the detection structure can be implemented with a spring or other structure. Taking the spring as an example, the spring is set on the first interface. When the first interface is connected to the second electronic device of HDMI type, because the second electronic device of HDMI type will not contact the spring on the first interface when the first interface of HDMI type is connected, at this time, the detection pin will detect the state of the pin hanging in the air, at this time, the detection pin collects a high-level signal, based on this, in this embodiment, it can be determined that the second electronic device is of HDMI type, thereby obtaining the attribute information characterizing the second electronic device as HDMI type; and when the first interface is connected to the second electronic device of DP type, because the first interface of DP type is connected to the second electronic device of DP type, the spring on the first interface will be contacted, and the spring is pressed down to deform the spring, at this time, a path is formed between the detection pin and the spring, and the detection pin detects a low-level signal because it is grounded. Based on this, in this embodiment, it can be determined that the second electronic device is of DP type, thereby obtaining the attribute information characterizing the second electronic device as DP type.
[0072] Step 102: Based at least on the attribute information, control the communication state of the first interface so that the first electronic device can establish a communication connection with the second electronic device through the first interface.
[0073] Different second electronic devices have different attribute information, different attribute information corresponds to different communication states of the first interface, and in different communication states, the communication parameters of the first interface are different.
[0074] That is, according to the attribute information characterizing the device type of the second electronic device, the first interface is controlled to be in a communication state corresponding to the attribute information, thereby the first interface realizes a communication connection with the second electronic device of the device type based on the communication parameters in the communication state.
[0075] Specifically, in this embodiment, after controlling the first interface to be in a communication state corresponding to the attribute information, the first interface uses the communication parameters corresponding to the device type represented by the attribute information to establish a first display data channel by reusing the display data channel pin in the first interface, so that the first electronic device obtains the configuration information of the second electronic device, and then cuts off the first display data channel and establishes a second display data channel through the display data channel pin in the first interface, thereby establishing a communication connection between the first electronic device and the second electronic device based on the second display data channel, and the communication connection is mainly used to output the content to be output of the first electronic device to the second electronic device. Based on this, in this embodiment, a communication connection between the first electronic device and the second electronic device of different device types can be achieved.
[0076] For example, when the attribute information characterizes that the second electronic device is of the first type, the first interface is controlled to be in a first communication state, so that the first interface uses the communication parameters corresponding to the first type to enable the first electronic device to establish a first type of communication connection with the second electronic device through the first interface; when the attribute information characterizes that the second electronic device is of the second type, the first interface is controlled to be in a second communication state, so that the first interface uses the communication parameters corresponding to the second type to enable the first electronic device to establish a second type of communication connection with the second electronic device through the first interface.
[0077] The communication parameters of the first interface can be understood as parameters used by the first electronic device to communicate data with the second electronic device, such as HDMI type communication parameters or DP type communication parameters. Therefore, when the attribute information indicates that the second electronic device is of HDMI type, the first interface is controlled to be in HDMI communication state, so that the first interface uses HDMI type communication parameters to establish an HDMI type communication connection between the first electronic device and the second electronic device, such as Figure 4 In the case where the attribute information characterizes that the second electronic device is of DP type, the first interface is controlled to be in DP communication state, whereby the first interface uses the communication parameters corresponding to the DP type to establish a DP type communication connection between the first electronic device and the second electronic device, such as Figure 5 as shown in .
[0078] It can be seen from the above scheme that in a control method provided in Example 1 of the present application, after the first electronic device is connected to the second electronic device through its first interface, the attribute information of the second electronic device is obtained, and then the communication state of the first interface is controlled based on the attribute information, so that the first electronic device can establish a communication connection with the second electronic device through the first interface. Different second electronic devices have different attribute information, and the communication states of the first interfaces corresponding to different attribute information are different. The communication parameters of the first interface under different communication states are different. Based on this, in this embodiment, a second electronic device with different attribute information can be connected to the first electronic device, thereby realizing a communication connection with a second electronic device with different attribute information through one interface on the first electronic device.
[0079] Based on the above implementation, after the first electronic device establishes a communication connection with the second electronic device through the first interface, if a control instruction for controlling the second electronic device to perform a target operation is received on the first electronic device, the control instruction can be converted into a target instruction through a controller in the first electronic device, such as a CEC (Consumer Electronics Control) controller, and at least a control channel between the controller and the first interface is established, and then the target instruction is given to the second electronic device through the control channel, so that the second electronic device performs the corresponding target operation. The control channel here reuses the universal control bus pin in the first interface.
[0080] Among them, the control instruction is generated by the first electronic device, and after the control instruction is generated by the first electronic device, the processor on the first electronic device can send the control instruction to the controller through the control connection between the controller and the controller. After receiving the control instruction, the controller converts the control instruction into a target instruction that can be recognized by the second electronic device according to the instruction conversion rule, and transmits the target instruction to the second electronic device through the control channel between the controller and the first interface, thereby instructing the second electronic device to perform the corresponding target operation.
[0081] It should be noted that the universal control bus pin in the first interface multiplexed by the control channel may be pin 13 on the first interface, which is used to implement the transmission of instructions. Figure 6As shown in , when a laptop is connected to an HDMI-type TV via a connector, a control instruction can be generated, and the CPU sends the control instruction to the CEC controller via a control connection between the CEC controller, such as a Universal Serial Bus (USB) connection, and the CEC controller converts the control instruction into a target instruction that the TV can recognize according to the type of control connection and the type of TV, and then sends the target instruction to the TV via a control channel implemented by pin 13 of the HDMI interface, and the TV executes the target instruction to implement the corresponding operation.
[0082] In one implementation, in step 102, when the communication state of the first interface is controlled at least based on the attribute information, it can be specifically implemented in the following manner:
[0083] When the attribute information indicates that the second electronic device is an HDMI device, at least the hot plug signal channel and the display data channel between the host system of the first electronic device and the first interface are controlled to be connected so that the first interface is in the first communication state.
[0084] Specifically, the first hot-swap pin in the first interface and the hot-swap lead of the host system connected to the first electronic device can be connected through the first switching switch, thereby connecting the hot-swap signal channel between the host system of the first electronic device and the first interface, so that the host system of the first electronic device can detect that the second electronic device is connected to the first interface, and the first pin in the first interface and the display data channel lead of the host system connected to the first electronic device are connected through the second switching switch, thereby connecting the display data channel between the host system of the first electronic device and the first interface. At this time, the first interface is in the first communication state, and can realize the communication connection between the first electronic device and the second electronic device of HDMI type.
[0085] Among them, the first hot plug pin in the first interface can be pin19 in the first interface, the first pin in the first interface can be a pin in the first interface for realizing communication connection, and the display data channel lead of the host system connected to the first electronic device can be a DDC lead supporting the HDMI protocol. Based on this, when the second electronic device is an HDMI type device, an HDMI type HPD (hot plug detection) connection is established between the host system of the first electronic device and the first interface through the first switching switch, and a DDC (Display Data Channel) connection corresponding to the HDMI type is conducted between the host system of the first electronic device and the first interface through the second switching switch, such as Figure 7 as shown in .
[0086] When the attribute information indicates that the second electronic device is a DP device, at least the hot plug signal channel and the auxiliary channel between the host system of the first electronic device and the first interface are controlled to be connected so that the first interface is in the second communication state.
[0087] Specifically, the second hot-swap pin in the first interface and the hot-swap lead of the host system connected to the first electronic device can be connected through the first switching switch, thereby connecting the hot-swap signal channel between the host system of the first electronic device and the first interface, so that the host system of the first electronic device can detect that the second electronic device is connected to the first interface, and the first pin in the first interface and the auxiliary channel lead of the host system connected to the first electronic device are connected through the second switching switch, thereby connecting the auxiliary channel between the host system of the first electronic device and the first interface. At this time, the first interface is in the second communication state, and can realize the communication connection between the first electronic device and the second electronic device of DP type.
[0088] Among them, the second hot plug pin in the first interface can be pin18 in the first interface, and the auxiliary channel lead connected to the host system of the first electronic device can be an AUX (Auxiliary) lead supporting the DP protocol. Based on this, when the second electronic device is a DP type device, a DP type HPD connection between the host system of the first electronic device and the first interface is established through the first switching switch, and an AUX connection corresponding to the DP type between the host system of the first electronic device and the first interface is turned on through the second switching switch, such as Figure 8 as shown in .
[0089] Based on the above implementation, in addition to controlling the communication state of the first interface, this embodiment may also control the power supply state of the first interface based at least on the attribute information.
[0090] The power supply states of the first interface corresponding to different attribute information are different, and the interface voltage of the first interface is different in different power supply states.
[0091] In the specific implementation, Fig. 9 As shown in, in the case where the attribute information characterizes that the second electronic device is a first type of device, the power pin of the first interface and the first power lead in the host system can be connected through the third switching switch, and the first power lead here provides a power signal of a first voltage for the first interface, and the first voltage corresponds to the first type; in the case where the attribute information characterizes that the second electronic device is a second type of device, the power pin of the first interface and the second power lead can be connected through the third switching switch, and the second power lead here provides a power signal of a second voltage for the first interface, and the second voltage corresponds to the second type.
[0092] Or, if Fig.10 As shown in the table, in the case where the attribute information characterizes that the second electronic device is a first type of device, the power pin of the first interface and the third power lead in the host system can be connected through the third switching switch, and the third power lead provides a power signal of a first voltage to the first interface, and the first voltage corresponds to the first type; in the case where the attribute information characterizes that the second electronic device is a second type of device, the power pin of the first interface and the third power lead can be connected through the third switching switch, and the third power lead provides a power signal of a second voltage to the first interface, and the second voltage corresponds to the second type.
[0093] It should be noted that when the device type of the second electronic device connected to the first interface changes, the power pin of the first interface also changes. For example, when the second electronic device connected to the first interface is an HDMI device, the first interface uses pin 18 as the power pin, and when the second electronic device connected to the first interface is a DP device, the first interface uses pin 20 as the power pin.
[0094] For example, when the attribute information indicates that the second electronic device is an HDMI device, pin 18 of the first interface is connected to a 5V power supply through the third switching switch; when the attribute information indicates that the second electronic device is a DP device, pin 20 of the first interface is connected to a 3V power supply through the third switching switch.
[0095] refer to Fig.11 , is a schematic diagram of the structure of an electronic device provided in the second embodiment of the present application, the electronic device as a first electronic device, such as a notebook or computer with a connection interface, can be connected to other electronic devices. The technical solution in this embodiment is mainly used to realize the communication connection with the second electronic device with different attribute information through an interface on the first electronic device.
[0096] Specifically, the electronic device in this embodiment may include the following structure:
[0097] A first interface 1, a host system 2 and a control module 3, wherein the control module 3 is connected between the first interface 1 and the host system 2;
[0098] After the second electronic device is connected to the first interface 1 , the control module obtains the attribute information of the second electronic device, and controls the communication state of the first interface 1 at least based on the attribute information, so that the first electronic device can establish a communication connection with the second electronic device through the first interface 1 .
[0099] Different second electronic devices have different attribute information, different attribute information corresponds to different communication states of the first interface, and in different communication states, the communication parameters of the first interface are different.
[0100] It can be seen from the above scheme that in an electronic device provided in Example 2 of the present application, after the first electronic device is connected to the second electronic device through its first interface, the attribute information of the second electronic device is obtained, and then the communication state of the first interface is controlled based on the attribute information, so that the first electronic device can establish a communication connection with the second electronic device through the first interface. Different second electronic devices have different attribute information, and the communication states of the first interfaces corresponding to different attribute information are different. The communication parameters of the first interface under different communication states are different. Based on this, in this embodiment, a second electronic device with different attribute information can be connected to the first electronic device, thereby realizing a communication connection with a second electronic device with different attribute information through one interface on the first electronic device.
[0101] In one implementation, the first interface 1 is provided with a detection structure 11 and a detection pin 12, such as Fig.12 As shown in , the detection pin 12 is connected to the detection structure 11. The detection structure 11 may be a spring structure, and the detection pin 12 may be pin21:
[0102] When the second electronic device of HDMI type is connected to the first interface 1, the detection structure 11 is in a first structure state. In the first structure state, the detection pin 12 can collect the first signal.
[0103] When the second electronic device of DP type is connected to the first interface 1, the detection structure 11 is in the second structure state. In the second structure state, the detection pin 12 detects the second signal.
[0104] The control module 3 at least includes:
[0105] A first switch 31, wherein a first end of the first switch 31 is connected to a hot-swap lead 21 of the host system 2, and a second end of the first switch 31 can be connected to a first hot-swap pin 13 or a second hot-swap pin 14 in the first interface 1; the first hot-swap pin 13 may be pin 19 in the connector, and the second hot-swap pin 14 may be pin 18 in the connector;
[0106] A second switch 32, wherein a first end of the second switch 32 is connected to a first pin 15 in the first interface 1, and a second end of the second switch 32 can be connected to a display data channel lead 22 or an auxiliary channel lead 23 of the host system 2, and the first pin 15 can be pin 15 in the connector;
[0107] The controller 33 is connected to the first switch 31 and the second switch 32 and is capable of obtaining the first signal or the second signal collected by the detection pin 12;
[0108] Wherein, when the controller 33 obtains the first signal, it controls the second end of the first switch 31 to be connected to the first hot plug pin 13, and controls the second end of the second switch 32 to be connected to the display data channel lead 22; or,
[0109] When receiving the second signal, the controller 33 controls the second end of the first switch 31 to be connected to the second hot plug pin 14 , and controls the second end of the second switch 32 to be connected to the auxiliary channel lead 23 .
[0110] It should be noted that the controller 33 in the control module 3 is a different controller from the controller that performs target instruction conversion in the above text.
[0111] Furthermore, the control module 3 in this embodiment may also include the following structure:
[0112] The third switch 34 .
[0113] Among them, Fig.13 As shown in FIG. 1 , a first end of the third switch 34 is connected to the power pin 16 in the first interface 1 , and a second end of the third switch 34 can be connected to the first power lead 24 or the second power lead 25 in the host system 2 .
[0114] Wherein, the controller 33 controls the second end of the third switch 34 to be connected to the first power lead 24 when the first signal is obtained; the power pin 16 at this time may be pin 18 in the connector;
[0115] When the controller 33 obtains the second signal, it controls the second end of the third switch 34 to be connected to the second power lead 25 . At this time, the power pin 16 may be the pin 20 in the connector.
[0116] Or, if Fig.14 As shown in , a first end of the third switch 34 is connected to the power pin 16 in the first interface 1, and a second end of the third switch 34 is connected to the third power lead 26 in the host system 2;
[0117] Wherein, the controller 33 controls the third power lead 26 to output the first voltage when obtaining the first signal;
[0118] When the controller 33 obtains the second signal, it controls the third power lead 26 to output a second voltage.
[0119] Taking the first electronic device as a notebook as an example, the technical solution of the present application is described in detail below:
[0120] First, in order to support both DP interface structure devices and HDMI interface structure devices, a spring is set on the connector in the notebook, such as Fig.15 As shown in, it is used to detect whether the device connected to the connector is an HDMI interface structure or a DP interface structure. Based on this, by defining the corresponding pins of different interface structures on the connector, it is possible to: when the device connected to the connector is a DP interface structure, connect the pin corresponding to the DP type on the connector to the lead corresponding to the DP type on the notebook host system; when the device connected to the connector is an HDMI interface structure, connect the pin corresponding to the HDMI type on the connector to the lead corresponding to the HDMI type on the notebook host system, thereby enabling the notebook to achieve communication connection with electronic devices of different interface types through the connector.
[0121] Among them, the corresponding pins of different interface structures on the connector are as follows Fig.16 As shown in the figure, pin21 is used to detect the HDMI interface structure or the DP interface structure. When pin21 detects that the device connected to the connector is an HDMI interface structure device, the communication connection between the HDMI interface structure device and the notebook is realized according to the pin definition in the "For HDMI" column; when pin21 detects that the device connected to the connector is a DP interface structure device, the communication connection between the DP interface structure device and the notebook is realized according to the pin definition in the "For Display Port" column.
[0122] In the specific implementation, refer to Fig.17 The flowchart shown in:
[0123] After a device with a DP or HDMI interface structure is inserted into the laptop connector, based on the difference between the DP interface structure and the HDMI interface structure, the connector detects the structural state of the shrapnel through pin21, thereby detecting the interface structure of the device, such as Fig.18 As shown in:
[0124] In one case, since the connector is connected to a DP interface type device, the spring structure will be pressed down by the DP interface of the device and contact pin21 and be grounded, so that pin21 collects a low-level signal. Therefore, if the connector detects a low-level signal through pin21, it can be determined that the connector is connected to a DP interface type device. Based on this, the power lead of the connector is connected to the 3V power supply corresponding to the DP interface structure through the switching switch Switch on the notebook motherboard, the hot plug signal is switched to the HPD of DP and the AUX connection of DP is realized, thereby realizing the screen output of the DP interface type device.
[0125] In another case, since the connection of the connector to a device of the HDMI interface type will not affect the state of the spring structure, pin21 will collect a suspended high-level signal. Therefore, if the connector detects a high-level signal through pin21, it can be determined that the connector is connected to a device of the HDMI interface type. Based on this, the power lead of the connector is connected to the 5V power supply corresponding to the HDMI interface structure through the switching switch Switch on the notebook motherboard, the hot plug signal is switched to the HPD of HDMI and the DDC connection of HDMI is realized, thereby realizing the screen output of the device of the HDMI interface type.
[0126] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0127] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0128] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0129] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A control method, comprising: After the first electronic device is connected to the second electronic device through its first interface, the attribute information of the second electronic device is obtained, wherein the obtaining of the attribute information of the second electronic device includes: obtaining a detection signal corresponding to a detection pin on the first interface through a detection structure on the first interface; obtaining the attribute information of the second electronic device according to the detection signal, wherein the detection structure can be in different structural states when a second electronic device with different attribute information is connected to the first interface, so that the detection pin collects different detection signals; Based at least on the attribute information, controlling the communication state of the first interface so that the first electronic device can establish a communication connection with the second electronic device through the first interface; Different second electronic devices have different attribute information, different attribute information corresponds to different communication states of the first interface, and in different communication states, the communication parameters of the first interface are different.
2. The method according to claim 1, controlling the communication state of the first interface based at least on the attribute information, comprising: When the attribute information indicates that the second electronic device is a first type of device, controlling the first interface to be in a first communication state so that the first electronic device can establish a first type of communication connection with the second electronic device through the first interface; When the attribute information indicates that the second electronic device is a second type of device, the first interface is controlled to be in a second communication state so that the first electronic device can establish a second type of communication connection with the second electronic device through the first interface.
3. The method according to claim 1 or 2, controlling the communication state of the first interface based at least on the attribute information, comprising: When the attribute information indicates that the second electronic device is a high-definition multimedia interface device, at least controlling the hot-swap signal channel and the display data channel between the host system of the first electronic device and the first interface to be connected, so that the first interface is in a first communication state; or, When the attribute information indicates that the second electronic device is a digital video interface device, at least the hot plug signal channel and the auxiliary channel between the host system of the first electronic device and the first interface are controlled to be connected so that the first interface is in a second communication state.
4. The method according to claim 2, controlling the first interface to be in the first communication state comprises at least: Connecting a first hot-swap pin in the first interface to a hot-swap lead of a host system connected to the first electronic device through a first switching switch; Connecting the first pin in the first interface to the display data channel lead of the host system connected to the first electronic device through the second switching switch; and / or, Controlling the first interface to be in a second communication state at least includes: Connecting the second hot-swap pin in the first interface to the hot-swap lead of the host system connected to the first electronic device through a first switching switch; The first pin in the first interface and the auxiliary channel lead of the host system connected to the first electronic device are connected through the second switching switch.
5. The method according to claim 1 or 2, further comprising: Based on the attribute information, controlling the power supply state of the first interface; The power supply states of the first interface corresponding to different attribute information are different, and the interface voltage of the first interface is different in different power supply states.
6. The method according to claim 1, wherein the detection structure is in a first structural state when the first interface is connected to a second electronic device of a high-definition multimedia interface, and in the first structural state, the detection pin collects a first signal; The detection structure is in a second structure state when the first interface is connected to a second electronic device of a digital video interface, and in the second structure state, the detection pin detects a second signal; in, Obtaining attribute information of the second electronic device according to the detection signal includes: When the detection signal is the first signal, obtaining attribute information indicating that the second electronic device is a high-definition multimedia interface device; In the case that the detection signal is the second signal, attribute information indicating that the second electronic device is a digital video interface device is obtained.
7. An electronic device, the electronic device being a first electronic device, comprising: A first interface, a host system and a control module, wherein the control module is connected between the first interface and the host system, and a detection structure and a detection pin are provided on the first interface; Wherein, after the second electronic device is connected to the first interface, the control module obtains the attribute information of the second electronic device, and controls the communication state of the first interface at least based on the attribute information, so that the first electronic device can establish a communication connection with the second electronic device through the first interface, and the obtaining of the attribute information of the second electronic device includes: obtaining a detection signal corresponding to a detection pin on the first interface through a detection structure on the first interface; obtaining the attribute information of the second electronic device according to the detection signal, wherein the detection structure can be in different structural states when a second electronic device with different attribute information is connected to the first interface, so that the detection pin collects different detection signals; Different second electronic devices have different attribute information, different attribute information corresponds to different communication states of the first interface, and in different communication states, the communication parameters of the first interface are different.
8. The electronic device according to claim 7, wherein the detection structure is in a first structural state when the second electronic device of the high-definition multimedia interface is connected to the first interface, and in the first structural state, the detection pin collects a first signal; The detection structure is in a second structure state when a second electronic device of the digital video interface is connected to the first interface, and in the second structure state, the detection pin detects a second signal; The control module at least includes: a first switch, wherein a first end of the first switch is connected to a hot-swap lead of the host system, and a second end of the first switch is connectable to a first hot-swap pin or a second hot-swap pin in the first interface; a second switch, wherein a first end of the second switch is connected to a first pin in the first interface, and a second end of the second switch is connectable to a display data channel lead or an auxiliary channel lead of the host system; a controller, connected to the first switch and the second switch, and capable of obtaining the first signal or the second signal collected by the detection pin; Wherein, when the controller obtains the first signal, the controller controls the second end of the first switch to be connected to the first hot-swap pin, and controls the second end of the second switch to be connected to the display data channel lead; or, When the second signal is obtained, the controller controls the second end of the first switch to be connected to the second hot-swap pin, and controls the second end of the second switch to be connected to the auxiliary channel lead.
9. The electronic device according to claim 8, wherein the control module further comprises: a third switch, wherein a first end of the third switch is connected to a power pin in the first interface, and a second end of the third switch can be connected to a first power lead or a second power lead in the host system, or the second end of the third switch is connected to a third power lead in the host system; Wherein, when the controller obtains the first signal, it controls the second end of the third switch to be connected to the first power lead, or controls the third power lead to output a first voltage; or, When the controller obtains the second signal, it controls the second end of the third switch to be connected to the second power lead, or controls the third power lead to output a second voltage.
