Electronic device and switching method thereof
By designing an electronic device that supports switching, the connection status of the first component and the second component is used to switch the interface mode, which solves the problem that the existing port expander does not support uplink main interface switching, and realizes function expansion in different scenarios. and enhancement.
Patent Information
- Application Number
- CN202111162321.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-09-30
AI Technical Summary
Existing port extenders usually have only one uplink main interface and do not support switching of the uplink main interface, making them unable to meet users' needs in different scenarios.
An electronic device is designed, which controls the electronic device to switch between the first mode and the second mode through the connection status of the first component and the second component, respectively transmits data through different interfaces to achieve functional expansion or enhancement, and supports uplink Free switching of the main interface.
It realizes different interface functions in different modes to meet users' needs in different scenarios. It is suitable for fixed office and mobile office scenarios, and provides the ability to expand and enhance functions.
Smart Images

Figure CN113934662B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to an expansion technology, and more particularly to an electronic device and a switching method thereof. Background Art
[0002] As the number of ports on existing laptops decreases, users usually use port expanders. However, the port expanders in the prior art usually have only one upstream main interface and do not support switching of the upstream main interface. Summary of the invention
[0003] In view of this, an embodiment of the present application hopes to provide an electronic device.
[0004] To solve the above problems, the technical solution of this application is implemented as follows:
[0005] According to one aspect of the present application, there is provided an electronic device, including:
[0006] A first component has a first interface, a second interface, and a third interface, wherein the first interface is used to connect to the second component, the second interface is used to connect to the first functional device, and the third interface is used to connect to the first processing device;
[0007] If the first interface is in a connected state with the second component, it is determined that the electronic device is in a first mode, in which the second interface transmits data through the first interface to implement a corresponding function of the first functional device;
[0008] If the first interface is in a disconnected state with the second component and the third interface is in a connected state with the first processing device, it is determined that the electronic device is in a second mode. In the second mode, the second interface transmits data through the third interface to implement the corresponding function of the first functional device.
[0009] The above scheme also includes:
[0010] The second component has a fourth interface and a fifth interface, wherein the fourth interface is used to connect to the first interface, and the fifth interface is used to connect to the second processing device.
[0011] The above scheme also includes:
[0012] If the first interface is in a connected state with the fourth interface, and the fifth interface is in a connected state with the second processing device, determining that the electronic device is in the first mode;
[0013] In the first mode, the second interface transmits data through the first interface to implement the first functional device to extend or enhance the function of the second processing device connected to the second component;
[0014] In the second mode, the second interface transmits data through the third interface to implement the function expansion or enhancement of the first processing device by the first functional device.
[0015] In the above solution, the second component also includes:
[0016] The sixth interface is used to connect to the second functional device, so as to implement the function expansion or enhancement of the second processing device by the second functional device through the fifth interface.
[0017] In the above solution, the second component also includes:
[0018] A first body having a receiving groove for receiving the first component;
[0019] The fourth interface is arranged on the side wall of the receiving groove;
[0020] The fifth interface is arranged on the side wall of the first body.
[0021] In the above solution, the first interface is also used to connect to a third functional device. In the second mode, the first interface transmits data through the third interface to achieve functional expansion or enhancement of the first processing device by the third functional device.
[0022] In the above solution, the first component also includes:
[0023] A control device is used to determine the connection status between the first interface and the second component according to the input signal of the first interface; and control the electronic device to switch between the first mode and the second mode according to the connection status.
[0024] In the above scheme, the control device is further used to shut down the capability of the third interface and control the second interface to transmit data through the first interface when the electronic device meets the first abnormal condition; the first abnormal condition represents that the first interface is in a connected state with the fourth interface, the fifth interface is connected to the second processing device, and the third interface is connected to the first processing device;
[0025] Alternatively, the control device is further configured to at least shut down the capability of the third interface when the electronic device satisfies a second abnormal condition; the second abnormal condition represents a situation in which the first interface and the fourth interface are in a connected state, the fifth interface is not connected to the second processing device, and the third interface is connected to the first processing device;
[0026] Alternatively, the control device is further used to at least shut down the capability of the first interface when the electronic device satisfies a third abnormal condition; the third abnormal condition represents a situation where the first interface is directly connected to a third processing device.
[0027] In the above solution, the first component also includes:
[0028] The output device is at least used to output prompt information when the electronic device meets the first abnormal condition, the second abnormal condition or the third abnormal condition.
[0029] According to another aspect of the present application, a switching method is provided, including:
[0030] detecting an input signal on the first component;
[0031] If the input signal comes from the first interface on the first component, it indicates that the first interface is in a connected state with the second component, and the electronic device is determined to be in a first mode. In the first mode, the second interface on the first component is controlled to transmit data through the first interface to implement a corresponding function of the first functional device connected to the second interface;
[0032] If the input signal comes from the third interface on the first component, it indicates that the third interface is in a connected state with the first processing device, and the first interface is in a disconnected state with the second component, and it is determined that the electronic device is in the second mode. In the second mode, the second interface on the first component is controlled to transmit data through the third interface to implement the corresponding function of the first functional device connected to the second interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 The structure of the electronic device in this application is shown in FIG. Figure 1 ;
[0034] Figure 2 The structure of the electronic device in this application is shown in FIG. Figure 2 ;
[0035] Figure 3 This is a schematic diagram of the control logic circuit in this application;
[0036] Figure 4This is an illustration of the scenarios used in this application Figure 1 ;
[0037] Figure 5 This is an illustration of the scenarios used in this application Figure 2 ;
[0038] Figure 6 This is an illustration of the scenarios used in this application Figure 3 ;
[0039] Figure 7 The structure of the electronic device in this application is shown in FIG. Figure 3 ;
[0040] Figure 8 Schematic diagram of the switching method in this application. DETAILED DESCRIPTION
[0041] The technical solution of the present application is further elaborated in detail below in conjunction with the accompanying drawings and specific embodiments of the specification.
[0042] Figure 1 The structure of the electronic device in this application is shown in FIG. Figure 1 ,like Figure 1 As shown, the electronic device includes:
[0043] The first component 10 has a first interface 101, a second interface 102 and a third interface 103, wherein the first interface 101 is used to communicate with the second component 20 ( Figure 2 The second interface 102 is used to connect with the first functional device (not shown in the figure), and the third interface 103 is used to connect with the first processing device (not shown in the figure).
[0044] Here, there can be multiple second interfaces 102, and the interface types of the multiple second interfaces 102 can be the same or different. For example, the second interface 102 can be: a high-definition multimedia interface (HDMI), a video graphics array (VGA) interface, a universal serial bus (USB) interface, a thunderbolt interface, a power port, a USB Type-C interface, and the like.
[0045] Here, the first functional device connected to the second interface 102 includes but is not limited to: a variety of external devices such as a USB flash drive, a mobile hard disk, an external graphics card, a display, a keyboard, a printer, a scanner, and a power adapter. The first processing device connected to the third interface 103 includes but is not limited to: a personal computer (PC), a laptop, a tablet computer, a television, a host, a speaker, and the like, which are terminals or servers with data processing capabilities.
[0046] In the present application, the first component 10 may further include a body 104, and the first interface 101, the second interface 102 and the third interface 103 may be integrally formed on the body 104. Alternatively, the third interface 103 is connected to the body 104 via a connecting line so as to be connected to the first processing device.
[0047] In the present application, if the first interface 101 is in a connected state with the second component 20, it is determined that the electronic device is in the first mode. In the first mode, the second interface 102 of the electronic device can transmit data through the first interface 101 to implement the corresponding function of the first functional device; if the first interface 101 is in a disconnected state with the second component 20, and the third interface 103 is in a connected state with the first processing device, it is determined that the electronic device is in the second mode. In the second mode, the second interface 102 transmits data through the third interface 103 to implement the corresponding function of the first functional device.
[0048] The present application controls the first component 10 to switch between different modes through the connection state between the first component 10 and the second component 20, so that the interface functions of the first component 10 in different models are different, thereby meeting the user's usage needs in different scenarios. For example, when the first component 10 is used in combination with the second component 20, due to the increase in the size of the electronic device, it can be used in fixed office scenarios, such as companies and homes. When the first component 10 is used alone, due to the decrease in the size of the electronic device, it can be used in mobile office scenarios, such as when on a business trip, in public places, on trains, and on airplanes.
[0049] Figure 2 The structure of the electronic device in this application is shown in FIG. Figure 2 ,like Figure 2 As shown, the electronic device also includes a second component 20, and the second component 20 can have a fourth interface 201, a fifth interface 202 and a sixth interface 203, wherein the fourth interface 201 is used to connect to the first interface 101, and the fifth interface 202 is used to connect to the second processing device (not shown in the figure); the sixth interface 203 is used to connect to the second functional device (not shown in the figure), and the sixth interface 203 can realize the function expansion or enhancement of the second processing device by the second functional device through the fifth interface 202.
[0050] In the present application, there may be multiple sixth interfaces 203, and the interface types of the multiple sixth interfaces 203 may be the same or different. For example, the sixth interface 203 may be an HDMI interface, a VGA interface, a USB interface, a Thunderbolt interface, a power port, a USB Type-C interface, and the like.
[0051] Here, the second function device connected to the sixth interface 203 may be the same as or different from the first function device connected to the second interface 102. For example, the second function device connected to the sixth interface 203 includes, but is not limited to, a USB flash drive, a mobile hard disk, an external graphics card, a display, a keyboard, a printer, a scanner, a power adapter, and other external devices.
[0052] Here, the second processing device connected to the fifth interface 202 may be the same as or different from the first processing device connected to the third interface 103. For example, the second processing device connected to the fifth interface 202 includes but is not limited to: a terminal or server with data processing capability, such as a PC, a laptop, a tablet computer, a TV, a host, a speaker, etc.
[0053] In the present application, the second component 20 can specifically be the base of the first component 10, and the second component 20 can also include: a first body 204, the first body 204 has a receiving groove 2041, for receiving the first component 10; the fourth interface 201 can be arranged on the side wall of the receiving groove 2041; the fifth interface 202 and the sixth interface 203 can be arranged on the side wall of the first body 204.
[0054] Specifically, the fifth interface 202 and the sixth interface 203 can be respectively disposed on the side walls of the first body 204 through connecting lines.
[0055] Of course, the fifth interface 202 and the sixth interface 203 may also be integrally formed on the side wall of the first body 204 .
[0056] Here, the fifth interface 202 and the third interface 103 may specifically be interfaces of the same type, for example, both are USB Type-C interfaces.
[0057] In the present application, if the first interface 101 is in a connection state with the fourth interface 201, and the fifth interface 202 is in a connection state with the second processing device, it can be determined that the electronic device is in the first mode.
[0058] Here, the first mode may specifically represent a mode in which the first component 10 is used in combination with the second component 20. In the first mode, the first interface 101 is an upstream port relative to the second interface 102, supporting full functions including display, USB data transmission and power transmission.
[0059] When the electronic device is in the first mode, the second interface 102 on the first component 10 can transmit data to the second processing device connected to the fifth interface 202 on the second component 20 through the first interface 101, so as to achieve functional expansion or enhancement of the first functional device on the second processing device connected to the fifth interface 202 on the second component 20.
[0060] Here, if the first interface 101 and the fourth interface 201 are in a disconnected state, it can be determined that the electronic device is in the second mode.
[0061] Here, the second mode may specifically represent a mode in which the first component 10 is used alone. In the second mode, the third interface 103 is an upstream port relative to the second interface 102, supporting full functions, including display, USB data transmission and power transmission.
[0062] When the electronic device is in the second mode, the second interface 102 can transmit data with the first processing device connected to the third interface 103 through the third interface 103, so as to achieve the function expansion or enhancement of the first processing device by the first functional device.
[0063] Here, if the function on the first functional device or the second functional device (such as a display) is a function that the first processing device or the second processing device does not have, it is determined to be a function expansion of the first processing device or the second processing device, for example, the first processing device or the second processing device is a desktop computer, and the desktop computer does not have a display; if the function on the first functional device or the second functional device (such as a display) is a function that the first processing device or the second processing device has, but the function on the first processing device or the second processing device is not as good as the function on the first functional device or the second functional device, it is determined to be a function enhancement of the first processing device or the second processing device, for example, the first processing device or the second processing device is a laptop computer with a small display, but the display function of the small display is not as good as the display effect of the large display of the first functional device or the second functional device.
[0064] In the present application, the first interface 101 on the first component 10 is also used to connect a third functional device (not shown in the figure). When the electronic device is in the second mode, the first interface 101 transmits data through the third interface 103 to achieve functional expansion or enhancement of the first processing device by the third functional device.
[0065] Here, the third function device may be the same as or different from the first function device and the second function device. For example, the third function device includes but is not limited to: a USB flash drive, a mobile hard disk, an external graphics card, a display, a keyboard, a printer, a scanner, a power adapter and other external devices.
[0066] For example, the third interface 103 on the first component 10 is connected to a computer, and the first interface 101 on the first component 10 is connected to a power adapter or a power grid, then the computer connected to the third interface 103 can be powered through the first interface 101 .
[0067] In the present application, the first component 10 also includes: a control device (not shown in the figure), which is arranged inside the first component 10, and is used to determine the connection status between the first interface 101 and the second component 20 according to the input signal of the first interface 101; and control the electronic device to switch between the first mode and the second mode according to the connection status.
[0068] In one implementation, when the first interface 101 on the first component 10 and the fourth interface 201 on the second component 20 are in a connected state, the control device can receive an input signal from the first interface 101, thereby determining that the electronic device is in the first mode based on the input signal.
[0069] In another implementation, the control device is able to receive an input signal from the first interface 101 only when the first interface 101 on the first component 10 is in a connected state with the fourth interface 201 on the second component 20, and the fifth interface 202 on the second component 20 is in a connected state with the second processing device, thereby determining that the electronic device is in the first mode based on the input signal.
[0070] Figure 3 This is a schematic diagram of the control logic circuit in this application, such as Figure 3As shown, if the first interface 101 of the first component 10 is currently in a connected state with the fourth interface 201 of the second component 20, the control device 50 can receive the input signal sent by the first interface 101, and thus determine that the processing device connected to the first interface 101 is the main device based on the input signal, then determine that the current electronic device is in the first mode. In the first mode, the data selector A can receive the USB signal sent by the first interface 101 and send the USB signal to the first interface 101. The data selector B can also receive the display (DP, DisplayPort) signal sent by the first interface 101 and send the DP signal to the first interface 101. If the first interface 101 of the first component 10 and the fourth interface 201 of the second component 20 are currently in a disconnected state, and the third interface 103 of the first component 10 is in a connected state with the processing device, the control device 50 can receive an input signal sent by the third interface 103, and thus determine based on the input signal that the processing device connected to the third interface 103 is a master device, then it is determined that the current electronic device is in the second mode, and in the second mode, the data selector A can receive a USB signal sent by the third interface 103 and send a USB signal to the third interface 103. The data selector B can also receive a DP signal sent by the third interface 103 and send a DP signal to the third interface 103.
[0071] Here, the data selector A and the data selector B are both connected to the control device 50 via a general-purpose input / output (GPIO) port.
[0072] The present application determines which of the first interface and the third interface is the uplink port through input signals of the first interface and the third interface on the first component, thereby realizing free switching of the uplink port to meet the user's usage requirements in different scenarios.
[0073] In the present application, the control device is also used to shut down the capability of the third interface 103 and control the second interface 102 to transmit data through the first interface 101 when the electronic device meets the first abnormal condition; here, the first abnormal condition represents that the first interface 101 is connected to the fourth interface 201, the fifth interface 202 is connected to the second processing device, and the third interface 103 is connected to the first processing device. Figure 4 shown.
[0074] Figure 4 This is an illustration of the scenarios used in this application Figure 1 ,like Figure 4As shown, the first component 10 is used in combination with the second component 20, so that the first interface of the first component 10 is in a connected state with the fourth interface of the second component 20, and the third interface 103 of the first component 10 is connected to the first processing device 30, and the fifth interface 202 of the second component 20 is connected to the second processing device 40. In such a usage scenario, it is determined that the electronic device meets the first abnormal condition, then the control device in the first component 10 can close the data path of the third interface 103, and use the second processing device 40 connected to the fifth interface 202 as the main device, and determine the first interface 101 of the first component 10 as the upstream port, supporting full functions, including display, USB data transmission, and power transmission; the second interface 102 on the first component 10 can transmit data with the second processing device 40 connected to the fifth interface 202 through the first interface 101, so as to realize the function increase or expansion of the first functional device to the second processing device.
[0075] Here, a control device (not shown) may also be provided in the second component 20, which is arranged inside the second component 20. The control device can control the sixth interface 203 on the second component 20 to realize the functional expansion or enhancement of the second processing device by the second functional device through the fifth interface 202.
[0076] In the present application, the control device in the first component 10 is also used to at least shut down the capability of the third interface 103 when the electronic device meets the second abnormal condition. Here, the second abnormal condition represents the situation that the first interface 101 is connected to the fourth interface 201, the fifth interface 202 is not connected to the second processing device, and the third interface 103 is connected to the first processing device. Figure 5 shown.
[0077] Figure 5 This is an illustration of the scenarios used in this application Figure 2 ,like Figure 5 As shown, the first component 10 is used in combination with the second component 20, so that the first interface of the first component 10 is in a connected state with the fourth interface of the second component 20, and the third interface 103 of the first component 10 is connected to the first processing device 30, and the fifth interface 202 of the second component 20 is not connected to the second processing device. In such a usage scenario, it is determined that the electronic device meets the second abnormal condition, then the control device in the first component 10 can close the data path of the third interface 103, and determine the first interface of the first component 10 as the upstream port of the second interface 102, supporting full functions, including display, USB data transmission, and power transmission.
[0078] In the present application, the control device in the first component 10 is also used to at least shut down the capability of the first interface 101 when the electronic device meets the third abnormal condition. Here, the third abnormal condition represents the situation that the first interface 101 is directly connected to the third processing device 60. Figure 6 shown.
[0079] Figure 6 This is an illustration of the scenarios used in this application Figure 3 ,like Figure 6 As shown, the first component 10 is used alone, wherein the first interface of the first component 10 is connected to the third processing device 60, and the third interface 103 of the first component 10 is not connected to the first processing device. In such a usage scenario, if it is determined that the electronic device meets the third abnormal condition, the control device in the first component 10 can close the data path of the first interface 101.
[0080] In the present application, the first component 10 may further include an output device (not shown), through which a prompt message may be output at least when the electronic device satisfies the first abnormal condition, the second abnormal condition or the third abnormal condition. The prompt message may remind the user that the connection of the current electronic device is abnormal.
[0081] Here, the output device can output the prompt information in the form of a prompt sound, a indicator light, or a vibration.
[0082] In the present application, the output device may also output different prompt information according to different abnormal conditions satisfied by the electronic device.
[0083] For example, when the electronic device meets different abnormal conditions, the output device outputs prompt information in the form of indicator lights. However, when the electronic device meets the first abnormal condition, the prompt information is output by turning on a red light; when the electronic device meets the second abnormal condition, the prompt information is output by turning on a green light; and when the electronic device meets the third abnormal condition, the prompt information is output by turning on a yellow light.
[0084] Of course, when the electronic device meets the first abnormal condition, the prompt information can be output by means of a prompt sound; when the electronic device meets the second abnormal condition, the prompt information can be output by means of an indicator light; when the electronic device meets the third abnormal condition, the prompt information can be output by means of vibration.
[0085] The present application can enable the user to promptly find out that the connection end of the electronic device is abnormal by outputting prompt information when the electronic device is abnormally connected. And by outputting different prompt information when the electronic device is abnormally connected, the user can promptly find out which connection end of the electronic device is abnormal.
[0086] Figure 7 The structure of the electronic device in this application is shown in FIG. Figure 3 ,like Figure 7 As shown, the electronic device includes:
[0087] A detection unit 701, configured to detect an input signal on the first component;
[0088] The control unit 702 is used to, if the input signal comes from the first interface on the first component, indicate that the first interface is in a connected state with the second component, determine that the electronic device is in a first mode, and in the first mode, control the second interface on the first component to transmit data through the first interface to implement the corresponding function of the first functional device connected to the second interface; and if the input signal comes from the third interface on the first component, indicate that the third interface is in a connected state with the first processing device and the first interface is in a disconnected state with the second component, determine that the electronic device is in a second mode, and in the second mode, control the second interface on the first component to transmit data through the third interface to implement the corresponding function of the first functional device connected to the second interface.
[0089] In the present application, the electronic device may specifically be an electronic device with expanded or enhanced functions.
[0090] Furthermore, the control unit 702 is specifically used to determine the connection status between the first interface and the second component according to the input signal of the first interface; and control the electronic device to switch between the first mode and the second mode according to the connection status.
[0091] Further, the control unit 702 is also used to shut down the capability of the third interface and control the second interface to transmit data through the first interface when the electronic device meets a first abnormal condition; the first abnormal condition represents that the first interface is connected to the fourth interface on the second component, and the fifth interface on the second component is connected to the second processing device, and the third interface is connected to the first processing device;
[0092] Further, the control unit 702 is further configured to at least shut down the capability of the third interface when the electronic device meets a second abnormal condition; the second abnormal condition represents that the first interface is connected to the fourth interface on the second component, the fifth interface on the second component is not connected to the second processing device, and the third interface is connected to the first processing device;
[0093] Furthermore, the control unit 702 is also used to shut down at least the capability of the first interface when the electronic device meets a third abnormal condition; the third abnormal condition represents a situation where the first interface is directly connected to a third processing device.
[0094] Furthermore, the electronic device also includes:
[0095] The output unit 703 is used to output prompt information when the electronic device meets the first abnormal condition, the second abnormal condition or the third abnormal condition.
[0096] Specifically, the output unit 703 may also output different prompt information according to different abnormal conditions satisfied by the electronic device.
[0097] It should be noted that: when the electronic device provided in the above embodiment performs data switching, only the division of the above program modules is used as an example. In actual application, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the above-described processing. Figures 1 to 6 The electronic device embodiments provided belong to the same concept, and their specific implementation process is detailed in Figures 1 to 6 The device embodiments are not described in detail here.
[0098] Figure 8 Schematic diagram of the switching method in this application, such as Figure 8 As shown, the method includes:
[0099] Step 801, detecting an input signal on a first component;
[0100] Step 802: if the input signal comes from the first interface on the first component, indicating that the first interface is in a connected state with the second component, it is determined that the electronic device is in a first mode, and in the first mode, the second interface on the first component is controlled to transmit data through the first interface to implement a corresponding function of the first functional device connected to the second interface;
[0101] Step 803, if the input signal comes from the third interface on the first component, it indicates that the third interface is in a connected state with the first processing device, and the first interface is in a disconnected state with the second component, and it is determined that the electronic device is in the second mode. In the second mode, the second interface on the first component is controlled to transmit data through the third interface to implement the corresponding function of the first functional device connected to the second interface.
[0102] In the present application, the method can be applied to an electronic device with expanded or enhanced functions, and the electronic device can specifically determine the connection status between the first interface and the second component based on the input signal of the first interface on the first component; and control the electronic device to switch between the first mode and the second mode based on the connection status.
[0103] In the present application, the electronic device can also shut down the capability of the third interface and control the second interface to transmit data through the first interface when a first abnormal condition is met; the first abnormal condition represents that the first interface is in a connected state with the fourth interface on the second component, and the fifth interface on the second component is connected to a second processing device, and the third interface is connected to the first processing device.
[0104] In the present application, the electronic device can also at least shut down the capability of the third interface when a second abnormal condition is met; the second abnormal condition represents a situation in which the first interface is connected to the fourth interface on the second component, the fifth interface on the second component is not connected to the second processing device, and the third interface is connected to the first processing device.
[0105] In the present application, the electronic device may also at least shut down the capability of the first interface when a third abnormal condition is met; the third abnormal condition represents a situation where the first interface is directly connected to a third processing device.
[0106] Here, the first processing device, the second processing device and the third processing device may be the same or different. For example, the first processing device, the second processing device and the third processing device include but are not limited to: PC, laptop, tablet computer, TV, host, speaker, etc., terminals or servers with data processing capabilities.
[0107] In the present application, the electronic device may also output prompt information when the electronic device meets the first abnormal condition, the second abnormal condition or the third abnormal condition.
[0108] Here, the electronic device may also output different prompt information according to different abnormal conditions satisfied by the electronic device.
[0109] It should be noted that the switching method provided in the above embodiment and the electronic device embodiment provided in the above embodiment are of the same concept, and the specific implementation process thereof is detailed in the device embodiment and will not be repeated here.
[0110] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0111] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0112] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0113] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0114] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0115] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An electronic device, comprising: A first component has a first interface, a second interface, and a third interface, wherein the first interface is used to connect to the second component, the second interface is used to connect to the first functional device, and the third interface is used to connect to the first processing device; If the first interface is in a connected state with the second component, it is determined that the electronic device is in a first mode, in which the second interface transmits data through the first interface to implement a corresponding function of the first functional device; If the first interface is in a disconnected state from the second component and the third interface is in a connected state to the first processing device, it is determined that the electronic device is in a second mode, and in the second mode, the second interface transmits data through the third interface to implement a corresponding function of the first functional device; The first component also includes: A control device is used to determine the connection state between the first interface and the second component according to the input signal of the first interface; and control the electronic device to switch between the first mode and the second mode according to the connection state.
2. The electronic device according to claim 1, further comprising: The second component has a fourth interface and a fifth interface, wherein the fourth interface is used to connect to the first interface, and the fifth interface is used to connect to the second processing device.
3. The electronic device according to claim 2, further comprising: If the first interface is in a connected state with the fourth interface, and the fifth interface is in a connected state with the second processing device, determining that the electronic device is in the first mode; In the first mode, the second interface transmits data through the first interface to implement the first functional device to extend or enhance the function of the second processing device connected to the second component; In the second mode, the second interface transmits data through the third interface to implement the function expansion or enhancement of the first processing device by the first functional device.
4. The electronic device according to claim 2, wherein the second component further comprises: The sixth interface is used to connect to the second functional device, so as to implement the function expansion or enhancement of the second processing device by the second functional device through the fifth interface.
5. The electronic device according to claim 2, wherein the second component further comprises: A first body having a receiving groove for receiving the first component; The fourth interface is arranged on the side wall of the accommodating groove; The fifth interface is arranged on the side wall of the first body.
6. The electronic device according to claim 1, wherein the first interface is also used to connect to a third functional device, and in the second mode, the first interface transmits data through the third interface to achieve functional expansion or enhancement of the first processing device by the third functional device.
7. The electronic device according to claim 2, wherein the control device is further configured to shut down the capability of the third interface and control the second interface to transmit data through the first interface when the electronic device satisfies a first abnormal condition; the first abnormal condition represents a situation in which the first interface is connected to the fourth interface, the fifth interface is connected to the second processing device, and the third interface is connected to the first processing device; Alternatively, the control device is further configured to at least shut down the capability of the third interface when the electronic device satisfies a second abnormal condition; the second abnormal condition represents a situation in which the first interface and the fourth interface are in a connected state, the fifth interface is not connected to the second processing device, and the third interface is connected to the first processing device; Alternatively, the control device is further used to at least shut down the capability of the first interface when the electronic device satisfies a third abnormal condition; the third abnormal condition represents a situation where the first interface is directly connected to a third processing device.
8. The electronic device according to claim 7, wherein the first component further comprises: The output device is at least used to output prompt information when the electronic device meets the first abnormal condition, the second abnormal condition or the third abnormal condition.
9. A switching method, comprising: detecting an input signal on the first component; If the input signal comes from the first interface on the first component, it indicates that the first interface is in a connected state with the second component, and the electronic device is determined to be in a first mode. In the first mode, the second interface on the first component is controlled to transmit data through the first interface to implement a corresponding function of the first functional device connected to the second interface; If the input signal comes from the third interface on the first component, it indicates that the third interface is in a connected state with the first processing device, and the first interface is in a disconnected state with the second component, it is determined that the electronic device is in the second mode, and in the second mode, the second interface on the first component is controlled to transmit data through the third interface to implement the corresponding function of the first functional device connected to the second interface; The control device determines the connection state between the first interface and the second component according to the input signal of the first interface; and controls the electronic device to switch between the first mode and the second mode according to the connection state.
Citation Information
Patent Citations
Modular multifunctional interface expansion device
CN213303020U
Forward and reverse insertion TYPE-C docking station capable of being used in split or combined mode
CN213878588U
