Control method, control device and connection device
By using a connection device, and by using a driver that is built into or has its own in the electronic device, the technical problems that cannot be solved in the prior art are solved, and fast connection and data transmission between electronic devices are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LENOVO (BEIJING) LTD
- Filing Date
- 2022-07-29
- Publication Date
- 2026-04-14
AI Technical Summary
In existing technologies, the connection device causes connection delays between electronic devices during the synchronization and adaptation process of the driver, making it impossible to achieve fast connection.
By utilizing the built-in or proprietary drivers of electronic devices in the connection device, target configuration information is shared to establish a communication channel, eliminating the need for driver synchronization and adaptation processes, thus enabling rapid connection and data transmission between electronic devices.
It enables rapid connection and data sharing between electronic devices, simplifies the connection process, shortens the connection time, and meets the needs of efficient connection.
Smart Images

Figure CN115269483B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of control, and more particularly to a control method, control device, and connection device. Background Technology
[0002] In related technologies, two electronic devices can be connected via a connection device to enable data transfer between them. How to achieve rapid connection between electronic devices using such a device has become a pressing technical problem to be solved. Summary of the Invention
[0003] A first aspect of this application provides a control method, comprising:
[0004] After connecting to the first electronic device and the second electronic device respectively, the target configuration information is shared with the first electronic device and the second electronic device;
[0005] At least one communication channel is established between the first electronic device and the second electronic device using the driver in the first electronic device and the second electronic device that corresponds to the target configuration information.
[0006] In the aforementioned scheme, establishing at least one communication channel between the first electronic device and the second electronic device using drivers corresponding to the target configuration information in the first electronic device and the second electronic device includes:
[0007] After the target configuration information is given to the first electronic device and the second electronic device, the first electronic device and the second electronic device load the driver corresponding to the target configuration information to establish the at least one communication channel through the driver;
[0008] The target configuration information can at least characterize the communication protocol information supported by the connection device used to connect the first electronic device and the second electronic device.
[0009] In the aforementioned scheme, after establishing the at least one communication channel, the method further includes:
[0010] Data generated by one of the first electronic devices and the second electronic devices based on the target application is transmitted to the other of the first electronic devices and the second electronic devices through the at least one communication channel;
[0011] The communication channel includes at least one of the following:
[0012] Communication channels established through communication device protocols, communication channels established through human-machine interface device protocols, communication channels established through universal serial bus video protocols, and communication channels established through universal serial bus audio protocols.
[0013] In the aforementioned scheme, the method further includes:
[0014] If it is determined that the first electronic device and / or the second electronic device do not have the target application installed, the configuration file corresponding to the target application is shared with the first electronic device and / or the second electronic device.
[0015] In the aforementioned scheme, the method further includes:
[0016] When the first electronic device and the second electronic device are running different target applications, they use different communication channels to exchange data generated based on the target applications.
[0017] In the aforementioned scheme, the mutual transmission of data generated by the target application using different communication channels includes at least one of the following:
[0018] If the data includes screen projection content, the display content and audio content in the screen projection content are transmitted to the peer device through the corresponding first communication channel and second communication channel, respectively. The first communication channel is a communication channel established through the Universal Serial Bus video protocol, and the second communication channel is a communication channel established through the Universal Serial Bus audio protocol.
[0019] If the data includes a file to be transmitted, the file to be transmitted is sent to the corresponding first physical layer hardware through the driver of the communication device class protocol interface of the first electronic device, and the first physical layer hardware transmits the file to be transmitted to the peer device.
[0020] If the data includes instruction data that acts on the first electronic device, the instruction data is sent to the corresponding first physical layer hardware through the driver of the communication protocol interface of the first electronic device, and the first physical layer hardware transmits the instruction data to the second electronic device.
[0021] If the data includes keyboard / mouse data from the first electronic device, the keyboard / mouse data is sent to the corresponding second physical layer hardware via the driver of the human-machine interface device protocol corresponding to the first electronic device, and the second physical layer hardware transmits the keyboard / mouse data to the second electronic device.
[0022] In the aforementioned scheme, the method further includes:
[0023] If the first electronic device and the second electronic device support different interface protocol versions, a communication connection shall be established preferentially using the interface protocol version supported by both the first electronic device and the second electronic device; and / or,
[0024] Obtain the latency information of the data to be transmitted through the corresponding communication channel, and adjust the transmission parameters of the data to be transmitted based on the latency information.
[0025] According to a second aspect of this application, a control device is provided, comprising:
[0026] The sharing module is used to share target configuration information with the first electronic device and the second electronic device after they are respectively connected;
[0027] A module is established to establish at least one communication channel between the first electronic device and the second electronic device using drivers in the first electronic device and the second electronic device that correspond to the target configuration information.
[0028] According to a third aspect of this application, a connecting device is provided, comprising:
[0029] The first interface and the second interface are respectively connected to the first electronic device and the second electronic device to establish a connection between the first electronic device and the second electronic device;
[0030] A control module, located between the first interface and the second interface, is capable of sharing target configuration information with the first electronic device and the second electronic device, so as to establish at least one communication channel between the first electronic device and the second electronic device using the driver in the first electronic device and the second electronic device corresponding to the target configuration information.
[0031] In the aforementioned scheme, the connection device further includes: a power path, the two ends of which are respectively connected to the first interface and the second interface, for transmitting power signals between the first electronic device and the second electronic device;
[0032] The control module can control the on / off state of the power path to control the power transmission between the first electronic device and the second electronic device.
[0033] The control method, control device, and connection device provided in this application enable rapid connection between two electronic devices by utilizing their built-in or proprietary drivers. Furthermore, after achieving rapid connection between the electronic devices using the connection device, data can be transmitted between the electronic devices based on the communication channel established during the connection process, thereby enabling data sharing between the electronic devices.
[0034] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description
[0035] The above and other objects, features, and advantages of exemplary embodiments of this application will become readily apparent from the following detailed description taken in conjunction with the accompanying drawings. Several embodiments of this application are illustrated in the drawings by way of example and not limitation, in which:
[0036] In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
[0037] Figure 1 This document illustrates the implementation flow of the control method in an embodiment of this application. Figure 1 ;
[0038] Figure 2 This document illustrates the implementation flow of the control method in an embodiment of this application. Figure 2 ;
[0039] Figure 3 This document illustrates the implementation flow of the control method in an embodiment of this application. Figure 3 ;
[0040] Figure 4 A schematic diagram illustrating data sharing between electronic devices using a connection device is shown in an embodiment of this application;
[0041] Figure 5 A schematic diagram of the architecture of an electronic device that implements data sharing in an embodiment of this application is shown;
[0042] Figure 6 A schematic diagram of the composition structure of the control device in an embodiment of this application is shown;
[0043] Figure 7 A schematic diagram of the structural composition of the connecting device in an embodiment of this application is shown. Detailed Implementation
[0044] To make the objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0045] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0046] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0047] In the following description, the terms "first" and "second" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first" and "second" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0049] It should be understood that in the various embodiments of this application, the sequence number of each implementation process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0050] In related technologies, connection devices require a driver to function properly and connect two electronic devices. Typically, the driver is an additional program that the connection device needs to synchronize with both electronic devices. Considering that electronic devices already have a number of drivers, these additional drivers, as non-built-in drivers, require the electronic device to select the correct driver from among all available drivers—a driver adaptation process. This synchronization and adaptation process undoubtedly introduces a time delay into the connection process, preventing rapid connection between electronic devices using a connection device. Therefore, how to achieve rapid connection between electronic devices using a connection device has become a pressing technical problem.
[0051] This invention provides a control method that enables rapid connection between electronic devices using a connection device, thereby meeting the high-efficiency requirements of device connectivity. Furthermore, after rapid connection between electronic devices is achieved using the connection device, data transmission between the electronic devices can be realized based on the communication channel established during the connection process.
[0052] The processing logic of the control method of the present invention can be deployed in a connection device. The connection device can be any device or apparatus capable of physically or logically connecting two or more electronic devices. Taking a physical device or apparatus as an example, the connection device can also be a connecting cable, such as a Universal Serial Bus (USB) standard connecting cable, such as a USB cable (copy cable). One end of the USB cable can be inserted into device 1, and the other end into device 2, thereby achieving the connection between device 1 and device 2. The connection device can be a peripheral device inserted into the device for use, such as a USB device, a storage device such as Flash, hard disk, etc. Preferably, the connection device is a USB copy cable.
[0053] Figure 1 This document illustrates the implementation flow of the control method in an embodiment of this application. Figure 1 The control method is applied in the connection device. For example... Figure 1 As shown, the method includes:
[0054] S101: After connecting to the first electronic device and the second electronic device respectively, share the target configuration information with the first electronic device and the second electronic device;
[0055] In this step, the connecting device can connect to both the first and second electronic devices via physical interfaces. For example, the connecting device includes at least two interfaces: a first interface and a second interface. The connecting device is inserted into the first electronic device through the first interface and into the second electronic device through the second interface. To accommodate the insertion of the connecting device into the electronic devices, the electronic devices are also provided with corresponding interfaces to facilitate insertion.
[0056] In this invention, taking a USB cable as an example, the connection device can support the following communication protocols: Communication Device Class (CDC) protocol, Human Interface Device (HID) protocol, Universal Serial Bus Video Class (UVC) protocol to establish communication channels, and Universal Serial Bus Audio Class (UAC) protocol.
[0057] It is understandable that the connection device is used to connect two electronic devices in order to transmit data from one electronic device to another, so as to achieve data sharing between the electronic devices.
[0058] Using the aforementioned protocols, the connection device can achieve the target functions corresponding to each protocol.
[0059] Utilizing the CDC protocol, the connecting device can transmit target data between electronic devices, such as transferring text data and / or command data from one electronic device to another, enabling the sharing of text data between the two electronic devices and allowing both electronic devices to respond to the command data and obtain response results. This function of the connecting device is referred to as the first function.
[0060] Here, the instruction data can be commands input to the electronic device via a mouse and / or keyboard, such as commands to change the mouse's movement trajectory, or commands to add, delete, or modify content to be updated on the electronic device via keyboard input. Instruction data can also be commands input to the electronic device via gestures, voice, etc., such as unlocking both electronic devices by performing an unlock gesture on one device.
[0061] Using the HID protocol, connecting devices can transmit keyboard / mouse data between electronic devices. For example, the position of the mouse on the display interface of one electronic device can be transmitted to another; and / or, data entered via the keyboard in one electronic device can be transmitted to another. This enables the sharing of the same keyboard and / or mouse between two electronic devices. This function of the connecting device is called its second function.
[0062] Using the UVC protocol, a connection device can transmit image or video data between electronic devices, enabling the sharing of image or video data between the two electronic devices. This function of the connection device is referred to as the third function.
[0063] Using the UAC protocol, the connection device can transmit audio data between electronic devices, enabling the sharing of audio data between the two devices. This function of the connection device is called the fourth function.
[0064] Therefore, the connecting device has several target functions, including sharing target data between electronic devices, sharing keyboard / mouse data, image or video data, and audio data. That is, the target function is at least one of the aforementioned first to fourth functions.
[0065] The connecting device may be configured with (first) configuration information enabling the connecting device to achieve target data sharing between electronic devices, (second) configuration information enabling the connecting device to achieve keyboard / mouse data sharing between electronic devices, (third) configuration information enabling the connecting device to achieve image or video data sharing between electronic devices, and (fourth) configuration information enabling the connecting device to achieve audio data sharing between electronic devices.
[0066] The configuration information for each of the shared functions described above can appear in the connection device in the form of firmware (or software). When the connection device is connected to the first electronic device and the second electronic device respectively, the connection device can enumerate at least one of the aforementioned functions that the connection device can implement to the two electronic devices based on the operation of the firmware, thereby achieving the purpose of the connection device sharing at least one of the four configuration information with the two electronic devices.
[0067] In this application, the target configuration information includes at least one of the aforementioned four configuration information. The method by which the above-described connecting device shares target configuration information with two electronic devices is simple, easy to implement, and readily applicable in engineering.
[0068] In this invention, the two electronic devices can be either terminals or servers. Terminals include, but are not limited to, different types of terminals such as tablets, all-in-one computers, desktop computers, mobile phones, smart speakers, and smartwatches. Servers include different types of servers such as ordinary servers and cloud servers. The two electronic devices that achieve data sharing can be the same type of terminal, such as both being tablets, or they can be different types of terminals, such as one being a tablet and the other a mobile phone. Similarly, the two electronic devices that achieve data sharing can be the same type of server, such as both being ordinary servers, or they can be different types of servers, such as one being an ordinary server and the other a cloud server.
[0069] S102: Establish at least one communication channel between the first electronic device and the second electronic device using the driver in the first electronic device and the second electronic device that corresponds to the target configuration information.
[0070] Both electronic devices in this application have drivers corresponding to four configuration information. Among them, the first configuration information corresponds to a first driver that is compatible with the CDC protocol, the second configuration information corresponds to a second driver that is compatible with the HID protocol, the third configuration information corresponds to a third driver that is compatible with the UVC protocol, and the fourth configuration information corresponds to a fourth driver that is compatible with the UAC protocol.
[0071] Typically, both electronic devices can support CDC, HID, UVC, and UAC protocols. The first to fourth drivers mentioned above are either built-in or proprietary drivers of the two electronic devices. The connection between the two electronic devices is achieved by using these built-in or proprietary drivers.
[0072] Compared with related technologies that require a connecting device to synchronize the driver to the electronic device, and electronic devices that need to adapt external drivers from their own and external drivers, this solution uses the self-owned drivers of the two electronic devices to achieve the connection between the electronic devices, avoiding the synchronization and adaptation process of the driver in related technologies. This can greatly shorten the connection time, realize the fast connection between electronic devices using the connecting device, and meet the requirements of high-efficiency connection.
[0073] In this application, a communication connection between two electronic devices is established by establishing at least one communication channel between the two electronic devices.
[0074] In this application, because both the connecting device and the two electronic devices support the CDC protocol, a communication channel using or established via the CDC protocol can be established in the connecting device for the two electronic devices. This communication channel is referred to as a CDC channel.
[0075] In this application, since both the connecting device and the two electronic devices support the HID protocol, a communication channel using or established via the HID protocol can be established between the two electronic devices in the connecting device. This communication channel is referred to as an HID channel.
[0076] In this application, since both the connecting device and the two electronic devices support the UVC protocol, a communication channel using or established via the UVC protocol can be established in the connecting device for the two electronic devices. This communication channel is referred to as a UVC channel.
[0077] In this application, since both the connecting device and the two electronic devices support the UAC protocol, a communication channel using or established through the UAC protocol can be established in the connecting device for the two electronic devices. This communication channel is referred to as the UAC channel.
[0078] In terms of implementation, combined Figure 4 As shown, if the configuration information shared by the connecting device to the two electronic devices is the first configuration information, a CDC channel can be established between itself and both electronic devices. This channel can be considered as a CDC channel established for the two electronic devices. If the configuration information shared by the connecting device to the two electronic devices is the second configuration information, an HID channel can be established between itself and both electronic devices. This channel can be considered as an HID channel established for the two electronic devices. If the configuration information shared by the connecting device to the two electronic devices is the third configuration information, a UVC channel can be established between itself and both electronic devices. This channel can be considered as a UVC channel established for the two electronic devices. If the configuration information shared by the connecting device to the two electronic devices is the fourth configuration information, a UAC channel can be established between itself and both electronic devices. This channel can be considered as a UAC channel established for the two electronic devices.
[0079] The connecting device can share some or all of the configuration information from the first to fourth configuration information with the two electronic devices, thereby establishing corresponding channels between itself and each electronic device. Thus, the connecting device establishes some or all of the four channels for the two electronic devices.
[0080] In some embodiments, such as Figure 2 As shown, the aforementioned scheme of establishing at least one communication channel between the first electronic device and the second electronic device using the driver corresponding to the target configuration information in the first electronic device and the second electronic device can be implemented in the following way:
[0081] S102': After the target configuration information is given to the first electronic device and the second electronic device, the first electronic device and the second electronic device load the driver corresponding to the target configuration information to establish the at least one communication channel through the driver; wherein, the target configuration information can at least characterize the communication protocol information supported by the connection device used to connect the first electronic device and the second electronic device.
[0082] In this application, during the process of the connecting device sharing target configuration information with two electronic devices, the instruction information for controlling the two electronic devices to load the driver can be shared with the two electronic devices. The two electronic devices respond to the instruction information and load the driver corresponding to the target configuration information. After the driver is loaded and initialized, the communication channel corresponding to the target configuration information is established.
[0083] The instruction information controlling the driver loading of the two electronic devices can be carried as separate information within the target configuration information and shared with both devices. Alternatively, the instruction information can be separated from the target configuration information and shared as separate instruction data before or after sharing the target configuration information, thus enabling driver loading control. Furthermore, the driver can be loaded without separate instruction information, provided the target configuration information is shared between the two electronic devices. In other words, the electronic devices use the shared target configuration information both as configuration information and as instruction information.
[0084] In implementation, if the connecting device shares target configuration information (first configuration information), the two electronic devices load the first driver. After the first driver is loaded and initialized, a CDC channel is established between the connecting device and the two electronic devices. If the connecting device shares target configuration information (second configuration information), the two electronic devices load the second driver. After the second driver is loaded and initialized, an HID channel is established between the connecting device and the two electronic devices. If the connecting device shares target configuration information (third configuration information), the two electronic devices load the third driver. After the third driver is loaded and initialized, a UVC channel is established between the connecting device and the two electronic devices. If the connecting device shares target configuration information (fourth configuration information), the two electronic devices load the fourth driver. After the fourth driver is loaded and initialized, a UAC channel is established between the connecting device and the two electronic devices.
[0085] like Figure 4 As shown, the first to fourth drivers are the system (OS) drivers (default drivers) of the electronic device.
[0086] For the connecting device, its first function is the transmission of target data between electronic devices based on the CDC protocol. To achieve this function, the target configuration information it shares with the two electronic devices is (first) configuration information that enables the connecting device to share target data between electronic devices. To a certain extent, this configuration information indicates that the connecting device has the characteristic of supporting the CDC protocol. Its second function is the transmission of keyboard / mouse data between electronic devices based on the CDC protocol. To achieve this function, the target configuration information it shares with the two electronic devices is (second) configuration information that enables the connecting device to share keyboard / mouse data between electronic devices. To a certain extent, this configuration information indicates that the connecting device has the characteristic of supporting the HID protocol. Its third function is the transmission of image or video data between electronic devices based on the UVC protocol. To achieve this function, the target configuration information it shares with the two electronic devices is (third) configuration information that enables the connecting device to share image or video data between electronic devices. To a certain extent, this configuration information indicates that the connecting device has the characteristic of supporting the UVC protocol. Its fourth function is the transmission of audio data between electronic devices based on the UAC protocol. To achieve this function, the target configuration information shared by the two electronic devices is the (fourth) configuration information that enables the connected device to share audio data between electronic devices. To a certain extent, this configuration information indicates that the connected device has the characteristic of supporting the UAC protocol.
[0087] In S101 and S102', the two electronic devices load their own drivers to quickly establish one or more communication channels between the electronic devices, enabling rapid connection between them. Compared with related technologies, the synchronization and adaptation processes of the drivers can be omitted, greatly shortening the connection time, simplifying the connection process, and achieving rapid connection, thereby achieving efficient connection.
[0088] In some embodiments, after S102 or S102', as Figure 3 As shown, the method further includes:
[0089] S103: The connection device transmits data generated by one of the first electronic device and the second electronic device based on the target application to the other of the first electronic device and the second electronic device through the at least one communication channel.
[0090] In layman's terms, this embodiment establishes a communication channel between two electronic devices using a connection device, allowing data generated by a target application in one electronic device to be shared with the other electronic device.
[0091] In this embodiment, after the connecting device establishes a fast connection between two electronic devices, data sharing between the electronic devices can be achieved through one or more communication channels established by the connecting device. This demonstrates the practicality of the connecting device.
[0092] from Figure 4 As shown, because the communication channels between two electronic devices include several types such as CDC channels, HID channels, UVC, and UAC, and each type of channel transmits a corresponding type of data, the target applications in the electronic devices are also of multiple types. For example, electronic devices may include applications that can generate text data (type 1), applications that can acquire keyboard data and / or mouse data (type 2), applications that can generate images (type 3), and applications that can generate audio data (type 4).
[0093] It is understood that electronic devices also contain applications that can generate video data, such as video playback applications. Because video data includes both images and sound, it can be considered a special type of image data or a special type of audio data. In electronic devices, distinct from the aforementioned third and fourth types of applications, the application that generates this special type of data is designated as a fifth type of application, and video data is used as data generated by this fifth type of application. In this application, screen projection data can be considered as a type of video data.
[0094] Both the first electronic device and the second electronic device can install at least one of the aforementioned target applications of various types. One of the electronic devices transmits the data to be transmitted generated by one or more of the target applications it runs to the other electronic device through a corresponding communication channel established between the two electronic devices by a connection device.
[0095] Combination Figure 4 Data generated by the first type of application is transmitted from one electronic device (HOST 1) to another electronic device (HOST 2) via the CDC channel and the connection device. Data generated by the second type of application is transmitted from one electronic device to another via the HID channel and the connection device. Data generated by the third type of application is transmitted from one electronic device to another via the UVC channel and the connection device. Data generated by the fourth type of application is transmitted from one electronic device to another via the UAC channel and the connection device.
[0096] For example,
[0097] For Word text generated by a first-type application such as Word in HOST 1, it can be first transmitted to the connecting device via the CDC channel established between the connecting device and HOST 1. The connecting device then transmits the received Word text to HOST 2 via the CDC channel established between itself and HOST 2, thus achieving text sharing between the two HOSTs. Alternatively, add or delete operations generated for the text can be used as instruction data to be transmitted. This data can be first transmitted to the connecting device via the CDC channel, and the connecting device then transmits the received instruction data to HOST 2 via the CDC channel established between itself and HOST 2, thereby achieving the addition or deletion of text data content in both HOSTs, i.e., achieving synchronized text updates.
[0098] For cursor position data obtained by a second type of application, such as a mouse application, in HOST 1, it can be first transmitted to the connecting device through the HID channel established between the connecting device and HOST 1. The connecting device then transmits the received cursor position data to HOST 2 through the HID channel established between it and HOST 2, so that the cursor of HOST 2 stays in the same position.
[0099] For photos captured by a third type of application, such as a camera, in HOST 1, the photos can be first transmitted to the connecting device via the UVC channel established between the connecting device and HOST 1. The connecting device then transmits the received photos to HOST 2 via the UVC channel established between itself and HOST 2, thereby enabling photo sharing between the two HOSTs.
[0100] For songs played on HOST 1 by fourth-type applications such as audio playback applications, the songs can be first transmitted to the connecting device through the UAC channel established between the connecting device and HOST 1. The connecting device then transmits the received songs to HOST 2 through the UAC channel established between itself and HOST 2, thereby realizing the sharing of songs between the two HOSTs.
[0101] The connection device can enable the transmission of data generated by different types of target applications between electronic devices based on different transmission channels established for the two electronic devices.
[0102] The above are just a few specific examples and are not limited to all situations in this application. Any reasonable situation is included within the scope of this application.
[0103] The foregoing scheme describes a scenario where the first and second electronic devices have the target application installed. In some embodiments, the connecting device may send a request to the electronic device regarding whether the target application is installed. The electronic device then responds to the request by providing feedback to the connecting device, indicating whether the target application is installed or not. This allows the connecting device to determine whether the target application is installed. The aforementioned request and feedback can be transmitted via a CDC channel established between the connecting device and the electronic device.
[0104] If it is determined that the first electronic device and / or the second electronic device do not have the target application installed, the connection device shares the configuration file corresponding to the target application with the first electronic device and / or the second electronic device.
[0105] In layman's terms, the connecting device can store configuration files, which are the installation packages of target applications. Considering that target applications can be of various types, such as the first to fourth types mentioned above, the connecting device will share the installation package of the type of target application that the first and / or second electronic device does not have installed. The storage of configuration files by the connecting device enriches its functionality. Sharing configuration files by the connecting device can greatly avoid the problem of data sharing being impossible due to the electronic device's inability to obtain the target application's installation package.
[0106] In addition to supporting protocols such as CDC, HID, UVC, and UAC, the connection device in this application also supports Mass Storage Class (MSC) protocols. The connection device establishes MSC channels with two electronic devices respectively using the MSC protocol. Through these MSC channels, the connection device can transmit installation packages of target applications not installed on the first and / or second electronic devices to the first and / or second electronic devices, thereby enabling the connection device to share configuration files.
[0107] The connection device in this application includes a memory for storing installation packages of various types of target applications for electronic devices. For example, it stores installation packages for applications of types one through four. In use, the installation packages of target applications not yet installed on the electronic device are read from the memory, and the read installation packages are transmitted to the required electronic device via the MSC channel. The memory can be a read-only memory (ROM), random access memory (RAM), flash memory, or other similar storage devices.
[0108] The connection device can transmit the installation package of the target application that is not installed in the electronic device to the electronic device through the MSC channel, which can easily realize the sharing of various types of data such as text, images, keyboard and mouse data between electronic devices.
[0109] The process of a connecting device transmitting the installation package of a target application that is not installed in an electronic device through an MSC channel typically occurs during the initial connection process between electronic devices using the connecting device.
[0110] In this embodiment, the first and second electronic devices can run at least one type of target application from the aforementioned categories. Preferably, both electronic devices can run all types of target applications.
[0111] For two electronic devices running the same type of target application, one of the electronic devices can transmit data generated by its own target application to the other electronic device through a corresponding communication channel established between the two devices by a connection device. The other electronic device can then transmit data generated by its own target application of the same type to the first electronic device through the corresponding channel, thereby enabling the mutual transmission of data generated by the same type of target application.
[0112] For example, a Word document 1 generated by a Word application in HOST 1 is transmitted to the connecting device via a CDC channel established between the connecting device and HOST 2. The connecting device then transmits the Word document to HOST 2 via a CDC channel established between itself and HOST 2. Similarly, a Word document 2 generated by a Word application in HOST 2 is transmitted to the connecting device via a CDC channel established between the connecting device and HOST 2. The connecting device then transmits the Word document to HOST 1 via a CDC channel established between itself and HOST 1. Thus, the connecting device enables the mutual transfer of data generated by the same type of target application between the two electronic devices.
[0113] In some embodiments, the control method of this application further includes: when the first electronic device and the second electronic device are running different target applications, the connecting devices use different communication channels to transmit data generated based on the target applications.
[0114] For example, regarding a third type of application running on HOST 1 and a fourth type of application running on HOST 2, the third type of application in HOST 1, such as a photo 1 generated by a camera, transmits the photo 1 to the connecting device via the UVC channel established between the camera and the connecting device. The connecting device then transmits the photo 1 to HOST 2 via the UVC channel established between the camera and HOST 2. Similarly, the fourth type of application in HOST 2, such as a song generated by an audio playback application, transmits the song to the connecting device via the UAC channel established between the camera and the connecting device. The connecting device then transmits the song to HOST 1 via the UVC channel established between the audio playback application and HOST 1.
[0115] For example, considering a first type of application running on HOST 1 and a second type of application running on HOST 2, a Word document (e.g., a Word application) generated by the first type of application on HOST 1 is transmitted to the connecting device via a CDC channel established between the application and the connecting device. The connecting device then transmits the Word document to HOST 2 via the CDC channel established between the application and HOST 2. Similarly, cursor position information generated by a second type of application on HOST 2, such as a mouse application, is transmitted to the connecting device via a HID channel established between the application and the connecting device. The connecting device then transmits the cursor position information to HOST 1 via the HID channel established between the application and HOST 1. Thus, the connecting device can enable the mutual transfer of data generated by different types of target applications between the two electronic devices.
[0116] If the data generated by each type of target application is regarded as the corresponding type of data to be transmitted, then, by using the aforementioned scheme, different types of data to be transmitted can be exchanged between two electronic devices based on the connection device.
[0117] In the aforementioned scheme, the data generated by the target application can be transmitted between different communication channels. This transmission may include data generated by the application itself, or data generated by the application itself and data generated by other applications monitored by the electronic device. Specifically, the connection device can use the communication channels available to the application itself to transmit data generated by the application itself from one electronic device to another. Similarly, the connection device can use the communication channels available to other applications to transmit data generated by other monitored applications from one electronic device to another.
[0118] For example, assuming the data generated by the application itself is a Word document 1 generated by a first type of application, such as a Word application, in HOST 1, HOST 1 monitors the cursor's position in Word document 1 in real time while using the first type of application, obtaining the real-time position of the cursor in Word document 1. Word document 1 generated by the Word application in HOST 1 is transmitted to the connecting device via the CDC channel established with it. The connecting device then transmits Word document 1 to HOST 2 via the CDC channel established between itself and HOST 2. Furthermore, the real-time position of the cursor in Word document 1 monitored by HOST 1 is transmitted to the connecting device via the HID channel established with it. The connecting device then transmits the real-time position of the cursor in Word document 1 to HOST 2 via the HID channel established between itself and HOST 2. This enables the simultaneous use of Word document 1 on two electronic devices and synchronous operation of the same document using the same mouse.
[0119] In some embodiments, the aforementioned inter-transmission of data generated by the target application using different communication channels includes at least one of the following:
[0120] Scenario 1: If the data includes screen projection content, the display content and audio content in the screen projection content are transmitted to the peer device through the corresponding first communication channel and second communication channel, respectively. The first communication channel is a communication channel established through the Universal Serial Bus video protocol, and the second communication channel is a communication channel established through the Universal Serial Bus audio protocol.
[0121] It is understandable that the data transmitted from HOST 1 to HOST 2 using the connection device can be video data, such as screen-cast content. Screen-cast content includes both display content and audio content. Display content can be transmitted as an image. Based on this distinction between image and audio in screen-cast content, for the display content generated by HOST 1, the display content can be transmitted to the connection device via the UVC channel (first communication channel) established between HOST 1 and the connection device. The connection device can then transmit the display content to HOST 2 via the UVC channel established between HOST 1 and HOST 2, thus enabling the transmission of display content between the two electronic devices. For the audio content in the screen-cast content, the audio content can be transmitted to the connection device via the UAC channel (second communication channel) established between HOST 1 and the connection device. The connection device can then transmit the audio content to HOST 2 via the UAC channel established between HOST 2 and HOST 2, thus enabling the transmission of display content between the two electronic devices.
[0122] In this scenario, the projected content is generated by a projecting application, which can be considered the fifth type of target application in this application. Data generated by this fifth type of target application can be transmitted separately for the display and audio content within the projected content via both UVC and UAC channels, enabling the sharing of projected content between electronic devices. This method of sharing projected content is easy to implement and highly feasible in engineering applications.
[0123] It is understandable that when transmitting display content and audio content through the UVC and UAC channels respectively, the connection device must ensure that the display content and audio content in the same frame of screen projection are transmitted synchronously to avoid the problem of image and sound desynchronization in the electronic device.
[0124] To enable data transmission or sharing between electronic devices using connection devices, electronic devices have features such as... Figure 5The architecture shown includes an application layer, an application programming interface (API) layer, a driver layer, and a physical layer. The application layer includes the aforementioned types of target applications. The API layer serves as the interface between the application layer and the driver layer. The driver layer includes the aforementioned first to fourth drivers, with different drivers used to establish different communication channels. The physical layer provides the physical entities, such as physical hardware, used to implement the first to fourth functions implemented by the connection device, as these functions all require physical support.
[0125] For the content displayed in the screen projection, the content will be sent to the corresponding physical layer hardware, such as UVC hardware, through the driver of the corresponding UVC protocol interface (video transmission API or screen projection content transmission API) of HOST 1. The UVC hardware will then transmit the content to the connected device through the UVC channel established between HOST 1 and the connected device. The connected device will then transmit the content to HOST 2 through the UVC channel established between itself and HOST 2, thereby enabling data transmission between electronic devices using the connected device.
[0126] For audio content in the screen-casting content, the audio content is sent to the corresponding physical layer hardware, such as the UAC driver, through the driver of the corresponding UAC protocol interface (video transmission API or screen-casting content transmission API) of HOST 1. The UAC hardware then transmits the audio content to the connecting device through the UAC channel established between HOST 1 and the connecting device. The connecting device then transmits the audio content to HOST 2 through the UAC channel established between itself and HOST 2, thereby enabling video data transmission between electronic devices using the connecting device.
[0127] Scenario 2: If the data includes a file to be transmitted, the file to be transmitted is sent to the corresponding first physical layer hardware through the driver of the communication device class protocol interface of the first electronic device, and the first physical layer hardware transmits the file to be transmitted to the peer device.
[0128] Data transferred from HOST 1 to HOST 2 using a connection device can be target data such as text data, like file data. Combined with... Figure 5As shown, the file to be transferred is sent to the corresponding first physical layer hardware, such as the CDC hardware, through the driver of the CDC protocol interface (CDC API) of HOST 1. The CDC hardware then transmits the file to be transferred to the connecting device through the CDC channel established between HOST 1 and the connecting device. The connecting device then transmits the file to be transferred to HOST 2 through the CDC channel established between itself and HOST 2, thereby realizing file data transfer between electronic devices using the connecting device.
[0129] Scenario 3: If the data includes instruction data that acts on the first electronic device, the instruction data is sent to the corresponding first physical layer hardware through the driver of the corresponding communication protocol interface of the first electronic device, and the first physical layer hardware transmits the instruction data to the second electronic device.
[0130] Data transmitted from HOST 1 to HOST 2 using the connection device can be instruction data for a file to be transferred in the first electronic device, such as operation instructions for deleting, adding, or modifying the content of the file to be transferred. Combined with... Figure 5 As shown, the instruction data of the file to be transferred is sent to the corresponding first physical layer hardware, such as the CDC hardware, through the driver of the CDC protocol interface (CDC API) of HOST 1. The CDC hardware then transmits the instruction data of the file to be transferred to the connecting device through the CDC channel established between HOST 1 and the connecting device. The connecting device then transmits the instruction data of the file to be transferred to HOST 2 through the CDC channel established between itself and HOST 2, thereby realizing the transmission of instruction data of the file to be transferred between electronic devices using the connecting device.
[0131] In scenarios two and three, the file to be transferred and the instruction data for the file to be transferred can be transferred together using the aforementioned process. Alternatively, they can be transferred using a separate process, without specific limitations.
[0132] In the foregoing, instruction data is considered to be instructions related to the file to be transferred in the first electronic device, such as instructions related to updating the content of the file to be transferred by the user. In addition, instruction data can also be instructions input to the first electronic device via voice, gestures, or other operations that are unrelated to the file to be transferred itself. For example, a user inputting "Please open XX application" via voice into the electronic device. Or a gesture command generated when a user uses gestures to enter a password into an application, such as a banking application, to access the banking application.
[0133] The XX application mentioned in the aforementioned voice-input command can be one of the target applications of the types described above in this application. The voice input can be used to launch the target application and transmit the data to be transmitted generated by the launched target application via a connection device. In this case, the command data input via voice or gesture can be considered as a command to trigger the launch of the target application of the electronic device, which facilitates data transmission between electronic devices. This command data can also be considered as a command to trigger the electronic device to implement a data transmission process using a connection device.
[0134] The instructions that trigger the electronic device to perform the data transmission process using the connection device can be the aforementioned voice or gesture instructions, or other forms of instructions, such as instructions from the cloud, or instructions input in the form of a combination of voice and gestures.
[0135] In practical applications, instruction data transmitted via the CDC channel is intended to operate electronic devices, and the operations on the mouse and / or keyboard in scenario four are also intended to operate electronic devices. The instructions transmitted via the CDC channel in this application differ from those transmitted via the HID channel based on mouse and / or keyboard operations. In some embodiments, the instruction data transmitted via the CDC channel may be instructions that do not require mouse and / or keyboard operations, and / or instructions that cannot be generated by mouse and / or keyboard operations.
[0136] Scenario 4: If the data includes keyboard / mouse data from the first electronic device, the keyboard / mouse data is sent to the corresponding second physical layer hardware through the driver of the human-machine interface device protocol of the first electronic device, and the second physical layer hardware transmits the keyboard / mouse data to the second electronic device.
[0137] Data transmitted from HOST 1 to HOST 2 via a connection device can be keyboard / mouse data from the first electronic device. Keyboard / mouse data includes mouse cursor position and / or character data such as numbers, Chinese characters, and English letters input via the keyboard. Combined with... Figure 5 As shown, keyboard / mouse data is sent to the corresponding second physical layer hardware, such as HID hardware, through the driver of the HID protocol interface (HID API) of HOST 1. The HID hardware then transmits the keyboard / mouse data to the connecting device through the HID channel established between HOST 1 and the connecting device. The connecting device then transmits the keyboard / mouse data to HOST 2 through the HID channel established between itself and HOST 2. This allows the connection device to transmit keyboard / mouse data between electronic devices, thereby enabling synchronous operation of the same keyboard and / or mouse on different electronic devices.
[0138] Furthermore, to establish an MSC channel for sharing target application installation packages using the connection device, an MSC driver is built into the electronic device. By loading and initializing this driver, an MSC channel can be established between the electronic device and the connection device, enabling normal transmission of the installation package from the connection device to the electronic device. The electronic device's MSC hardware receives the installation package transmitted from the connection device, allowing the electronic device to install the package.
[0139] It is understood that the aforementioned drivers corresponding to protocols such as CDC, UAC, UV, HID, and MSC are either built-in or proprietary drivers of electronic devices. Utilizing these built-in or proprietary drivers allows for not only rapid connection between electronic devices using connection devices, but also... Figure 5 The architecture shown enables rapid data transfer between electronic devices.
[0140] In some embodiments, if the first electronic device and the second electronic device support different interface protocol versions, a communication connection is established preferentially using the interface protocol version supported by both the first electronic device and the second electronic device.
[0141] In this embodiment, the electronic device may support different or the same USB interface protocol versions. The interface protocol versions include, but are not limited to, USB 1.0, USB 2.0, and USB 3.0. Correspondingly, the CDC, HID, UVC, UAC, and MSC protocols in this embodiment can be one of USB 1.0, USB 2.0, and USB 3.0 versions.
[0142] In practical applications, USB 3.0 is a higher version than USB 2.0, and vice versa. Higher versions are compatible with lower versions. If two electronic devices support different interface protocol standards, the connecting device will preferentially use the lower version to establish communication between the two devices.
[0143] For example, HOST 1 supports the USB 2.0 protocol, and HOST 2 supports the USB 3.0 protocol. In order to achieve compatibility with both, the connection device selects the lower version of each protocol among the various protocols supported by the electronic devices, such as CDC, HID, UVC, and UAC. The lower version of each protocol is used to establish the corresponding communication channel, thereby realizing the communication connection between electronic devices using the connection device.
[0144] For example, HOST 1 supports a high version of the CDC protocol, HOST 2 supports a low version of the CDC channel, and the connecting device uses the low version of CDC to establish a CDC channel with the two electronic devices, so as to utilize the version that is compatible with both electronic devices to establish an available channel.
[0145] This scheme, which prioritizes establishing a communication connection using an interface protocol version supported by both electronic devices, enables the normal establishment of a communication connection between the two electronic devices using a connection device, and then enables the normal transmission or sharing of data between the two electronic devices using the connection device.
[0146] In some embodiments, during the transmission of data to be transmitted through a corresponding communication channel, the connection device obtains the latency information of the data to be transmitted through the corresponding communication channel and adjusts the transmission parameters of the data to be transmitted based on the latency information.
[0147] In this embodiment, the connection device can obtain the latency information of the data to be transmitted through the corresponding communication channel by reading the time when the data to be transmitted is sent out by one electronic device and the time when the data to be transmitted is received by the other electronic device.
[0148] If the latency reaches a predetermined latency threshold, such as 30 seconds, it indicates a significant latency. Considering that connecting devices are typically smaller than electronic devices, their compact size may limit their transmission rate or speed. Therefore, a significant latency might be due to the connecting device and / or electronic device setting the transmission rate or speed too high, failing to match its own transmission performance. This latency can be reduced by decreasing the transmission rate or speed of the data within the connecting device and / or electronic device, allowing for data transmission between electronic devices with minimal latency. The aforementioned transmission rate or speed can be considered a transmission parameter of the data to be transmitted.
[0149] If the data to be transmitted is audio, the transmission rate or speed can be reduced by lowering or decreasing transmission parameters such as the bit rate and sampling rate. If the data to be transmitted is image, the transmission rate or speed can be reduced by lowering or decreasing transmission parameters such as the frame rate, resolution, and compression rate. This aims to achieve data transmission between electronic devices with minimal latency.
[0150] For example, if the data to be transmitted is an image or the content displayed in the screen projection, the connecting device can change the original transmission rate of video data from one electronic device to another at 30 frames per second to a transmission rate of 20 frames per second.
[0151] If the data to be transmitted is audio or audio content from the screen-casting content, the connecting device can change the original bitrate of 10kbps (kilobits per second) for transmitting video data from one electronic device to another to a bitrate of 5kbps (kilobits per second).
[0152] The above processing logic of the connection device, i.e., the processing logic of the control method of this application, can be specifically handled by the processor in the connection device (e.g., ...). Figure 4 This is achieved using the processor shown.
[0153] The above solution uses a connection device with two interfaces, each connecting to one of two electronic devices. However, the connection device of this application can also have three or more interfaces, each capable of connecting to one electronic device, thus enabling data sharing between three or more electronic devices. The actual number of interfaces in the connection device depends on its specific usage.
[0154] This application provides a control device, such as... Figure 6 As shown, the device includes:
[0155] The sharing module 601 is used to share target configuration information with the first electronic device and the second electronic device after they are respectively connected to the first electronic device and the second electronic device;
[0156] The module 602 is configured to establish at least one communication channel between the first electronic device and the second electronic device using the driver in the first electronic device and the second electronic device that corresponds to the target configuration information.
[0157] In some embodiments, the establishment module 602 is further configured to:
[0158] After the target configuration information is given to the first electronic device and the second electronic device, the first electronic device and the second electronic device load the driver corresponding to the target configuration information to establish the at least one communication channel through the driver;
[0159] The target configuration information can at least characterize the communication protocol information supported by the connection device used to connect the first electronic device and the second electronic device.
[0160] In some embodiments, the apparatus further includes a transmission module for:
[0161] Data generated by one of the first electronic devices and the second electronic devices based on the target application is transmitted to the other of the first electronic devices and the second electronic devices through the at least one communication channel;
[0162] The communication channel includes at least one of the following:
[0163] Communication channels established through communication device protocols, communication channels established through human-machine interface device protocols, communication channels established through universal serial bus video protocols, and communication channels established through universal serial bus audio protocols.
[0164] In some embodiments, the sharing module 601 is further configured to:
[0165] If it is determined that the first electronic device and / or the second electronic device do not have the target application installed, the configuration file corresponding to the target application is shared with the first electronic device and / or the second electronic device.
[0166] In some embodiments, the transmission module is further configured to:
[0167] When the first electronic device and the second electronic device are running different target applications, they use different communication channels to exchange data generated based on the target applications.
[0168] In some embodiments, the transmission module is further configured to:
[0169] If the data includes screen projection content, the display content and audio content in the screen projection content are transmitted to the peer device through the corresponding first communication channel and second communication channel, respectively. The first communication channel is a communication channel established through the Universal Serial Bus video protocol, and the second communication channel is a communication channel established through the Universal Serial Bus audio protocol.
[0170] If the data includes a file to be transmitted, the file to be transmitted is sent to the corresponding first physical layer hardware through the driver of the communication device class protocol interface of the first electronic device, and the first physical layer hardware transmits the file to be transmitted to the peer device.
[0171] If the data includes instruction data that acts on the first electronic device, the instruction data is sent to the corresponding first physical layer hardware through the driver of the communication protocol interface of the first electronic device, and the first physical layer hardware transmits the instruction data to the second electronic device.
[0172] If the data includes keyboard / mouse data from the first electronic device, the keyboard / mouse data is sent to the corresponding second physical layer hardware via the driver of the human-machine interface device protocol corresponding to the first electronic device, and the second physical layer hardware transmits the keyboard / mouse data to the second electronic device.
[0173] In some embodiments, the establishment module 602 is further configured to:
[0174] If the first electronic device and the second electronic device support different interface protocol versions, the communication connection shall be established with priority given to the interface protocol version supported by both the first electronic device and the second electronic device.
[0175] In some embodiments, the device further includes an adjustment module for obtaining latency information of the data to be transmitted through a corresponding communication channel, and adjusting the transmission parameters of the data to be transmitted based on the latency information.
[0176] It should be noted that the control device in this application embodiment is similar to the control method described above in terms of its problem-solving principle and beneficial effects. Therefore, the implementation process, implementation principle, and beneficial effects of the control device can be found in the description of the implementation process, implementation principle, and beneficial effects of the aforementioned method, and will not be repeated.
[0177] This application also provides a connecting device, such as... Figure 7 As shown, the device includes:
[0178] The first interface 701 is used to connect to the first electronic device;
[0179] The second interface 702 is used to connect to a second electronic device;
[0180] The control module 703 is disposed between the first interface and the second interface and is capable of sharing target configuration information with the first electronic device and the second electronic device to establish at least one communication channel between the first electronic device and the second electronic device using the driver in the first electronic device and the second electronic device corresponding to the target configuration information.
[0181] The drivers corresponding to the target configuration information are the proprietary drivers of the two electronic devices. This solution utilizes the proprietary drivers of the two electronic devices to achieve the connection between them, avoiding the synchronization and adaptation processes of drivers in related technologies. This can greatly shorten the connection time and achieve rapid connection between electronic devices using the connection device, thus meeting the requirements for efficient connection.
[0182] In the aforementioned scheme, the connecting device utilizes two interfaces to connect with electronic devices, enabling data transmission between electronic devices. In addition to the first interface 701 and the second interface 702, the connecting device in this application may include more interfaces, such as a third interface, a fourth interface, etc. Each interface can connect to one electronic device, thus enabling interconnection between three or more electronic devices, and data sharing among them. The actual number of interfaces depends on the specific usage of the connecting device.
[0183] The first interface 701 and the second interface 702 are respectively connected to the first electronic device and the second electronic device to establish a connection between them. The control module includes, for example,... Figure 4 The processor shown and the software running on it.
[0184] In some embodiments, the connection device further includes: a power path, the two ends of which are respectively connected to the first interface and the second interface, for transmitting power signals between the first electronic device and the second electronic device;
[0185] The control module 703 can control the on / off state of the power path to control the power transmission between the first electronic device and the second electronic device.
[0186] A switching circuit is provided between the power supply path and the control module 703. The switching circuit includes an on state and an off state. The control module 703 can generate control commands such as on or off to the switching circuit. The switching circuit is turned on based on the on control command and turned off based on the off control command. When the switching circuit is in the on state, the power supply path is opened or connected, providing normal power for transmission between electronic devices. When the switching circuit is in the off state, the power supply path is closed or disconnected, and normal power supply for transmission between electronic devices is not possible.
[0187] The aforementioned switching circuit is a standalone circuit located between the power supply path and the control module 703. Alternatively, the switching circuit can also be located on the power supply path and connected to the control module 703 to turn the power supply path on or off according to control commands from the control module 703.
[0188] In some embodiments, the connection device further includes a configuration channel for configuring power supply / power receiving information between electronic devices. After the power supply / power receiving information is configured, the control module 703 can control the switching circuit to conduct the power path, and the power supply circuit supplies power to each electronic device normally, thereby executing the aforementioned control method.
[0189] The power supply circuit provides normal power to each electronic device, ensuring the normal operation of the aforementioned control method, and enabling data sharing between electronic devices through rapid connection.
[0190] In some embodiments, the control module 703 is further configured to:
[0191] After the target configuration information is given to the first electronic device and the second electronic device, the first electronic device and the second electronic device load the driver corresponding to the target configuration information to establish the at least one communication channel through the driver;
[0192] The target configuration information can at least characterize the communication protocol information supported by the connection device used to connect the first electronic device and the second electronic device.
[0193] In some embodiments, the control module 703 is further configured to: after establishing the at least one communication channel,
[0194] Data generated by one of the first electronic devices and the second electronic devices based on the target application is transmitted to the other of the first electronic devices and the second electronic devices through the at least one communication channel;
[0195] The communication channel includes at least one of the following:
[0196] Communication channels established through communication device protocols, communication channels established through human-machine interface device protocols, communication channels established through universal serial bus video protocols, and communication channels established through universal serial bus audio protocols.
[0197] In some embodiments, the control module 703 is further configured to:
[0198] If it is determined that the first electronic device and / or the second electronic device do not have the target application installed, the configuration file corresponding to the target application is shared with the first electronic device and / or the second electronic device.
[0199] In some embodiments, the control module 703 is further configured to:
[0200] When the first electronic device and the second electronic device are running different target applications, they use different communication channels to exchange data generated based on the target applications.
[0201] In some embodiments,
[0202] If the data includes screen projection content, the display content and audio content in the screen projection content are transmitted to the peer device through the corresponding first communication channel and second communication channel, respectively. The first communication channel is a communication channel established through the Universal Serial Bus video protocol, and the second communication channel is a communication channel established through the Universal Serial Bus audio protocol.
[0203] If the data includes a file to be transmitted, the file to be transmitted is sent to the corresponding first physical layer hardware through the driver of the communication device class protocol interface of the first electronic device, and the first physical layer hardware transmits the file to be transmitted to the peer device.
[0204] If the data includes instruction data that acts on the first electronic device, the instruction data is sent to the corresponding first physical layer hardware through the driver of the communication protocol interface of the first electronic device, and the first physical layer hardware transmits the instruction data to the second electronic device.
[0205] If the data includes keyboard / mouse data from the first electronic device, the keyboard / mouse data is sent to the corresponding second physical layer hardware via the driver of the human-machine interface device protocol corresponding to the first electronic device, and the second physical layer hardware transmits the keyboard / mouse data to the second electronic device.
[0206] In some embodiments, the control module 703 is used for:
[0207] If the first electronic device and the second electronic device support different interface protocol versions, a communication connection shall be established preferentially using the interface protocol version supported by both the first electronic device and the second electronic device; and / or,
[0208] Obtain the latency information of the data to be transmitted through the corresponding communication channel, and adjust the transmission parameters of the data to be transmitted based on the latency information.
[0209] It should be noted that the connection device in this application embodiment is similar to the control method described above in terms of its problem-solving principle and beneficial effects. Therefore, the implementation process, implementation principle, and beneficial effects of the connection device can be found in the description of the implementation process, implementation principle, and beneficial effects of the aforementioned method, and will not be repeated.
[0210] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A control method applied to a connection device, the method comprising: After connecting to the first electronic device and the second electronic device respectively, target configuration information is shared with the first electronic device and the second electronic device; wherein, the target configuration information can at least characterize the communication protocol information supported by the connection device used to connect the first electronic device and the second electronic device; At least one communication channel is established between the first electronic device and the second electronic device using the driver in the first electronic device and the second electronic device that corresponds to the target configuration information.
2. The method according to claim 1, wherein, The step of establishing at least one communication channel between the first electronic device and the second electronic device using drivers corresponding to the target configuration information in the first electronic device and the second electronic device includes: After the target configuration information is given to the first electronic device and the second electronic device, the first electronic device and the second electronic device load the driver corresponding to the target configuration information to establish the at least one communication channel through the driver.
3. The method according to claim 1 or 2, wherein, After establishing the at least one communication channel, the method further includes: Data generated by one of the first electronic devices and the second electronic devices based on the target application is transmitted to the other of the first electronic devices and the second electronic devices through the at least one communication channel; The communication channel includes at least one of the following: Communication channels established through communication device protocols, communication channels established through human-machine interface device protocols, communication channels established through universal serial bus video protocols, and communication channels established through universal serial bus audio protocols.
4. The method according to claim 3, further comprising: If it is determined that the first electronic device and / or the second electronic device do not have the target application installed, the configuration file corresponding to the target application is shared with the first electronic device and / or the second electronic device.
5. The method according to claim 3, further comprising: When the first electronic device and the second electronic device are running different target applications, they use different communication channels to exchange data generated based on the target applications.
6. The method according to claim 5, wherein, Data generated by the target application is exchanged using different communication channels, including at least one of the following: If the data includes screen projection content, the display content and audio content in the screen projection content are transmitted to the peer device through the corresponding first communication channel and second communication channel, respectively. The first communication channel is a communication channel established through the Universal Serial Bus video protocol, and the second communication channel is a communication channel established through the Universal Serial Bus audio protocol. If the data includes a file to be transmitted, the file to be transmitted is sent to the corresponding first physical layer hardware through the driver of the communication device class protocol interface of the first electronic device, and the first physical layer hardware transmits the file to be transmitted to the peer device. If the data includes instruction data that acts on the first electronic device, the instruction data is sent to the corresponding first physical layer hardware through the driver of the communication protocol interface of the first electronic device, and the first physical layer hardware transmits the instruction data to the second electronic device. If the data includes keyboard / mouse data from the first electronic device, the keyboard / mouse data is sent to the corresponding second physical layer hardware via the driver of the human-machine interface device protocol corresponding to the first electronic device, and the second physical layer hardware transmits the keyboard / mouse data to the second electronic device.
7. The method according to claim 1, further comprising: If the first electronic device and the second electronic device support different interface protocol versions, a communication connection shall be established preferentially using the interface protocol version supported by both the first electronic device and the second electronic device; and / or, Obtain the latency information of the data to be transmitted through the corresponding communication channel, and adjust the transmission parameters of the data to be transmitted based on the latency information.
8. A control device, comprising: A sharing module is used to share target configuration information with the first electronic device and the second electronic device after they are respectively connected; wherein the target configuration information can at least characterize the communication protocol information supported by the connection device used to connect the first electronic device and the second electronic device; A module is established to establish at least one communication channel between the first electronic device and the second electronic device using drivers in the first electronic device and the second electronic device that correspond to the target configuration information.
9. A connecting device, comprising: The first interface and the second interface are respectively connected to the first electronic device and the second electronic device to establish a connection between the first electronic device and the second electronic device; A control module, disposed between the first interface and the second interface, is capable of sharing target configuration information with the first electronic device and the second electronic device to establish at least one communication channel between the first electronic device and the second electronic device using the driver in the first electronic device and the second electronic device corresponding to the target configuration information; wherein, the target configuration information can at least characterize the communication protocol information supported by the connection device used to connect the first electronic device and the second electronic device.
10. The connecting device according to claim 9, further comprising: A power path, the two ends of which are respectively connected to the first interface and the second interface, is used to transmit power signals between the first electronic device and the second electronic device; The control module can control the on / off state of the power path to control the power transmission between the first electronic device and the second electronic device.
Citation Information
Patent Citations
Screen projection method and device
CN113923508A
Control method and control device
CN113949923A
Information sharing method and device, screen projector and computer readable storage medium
CN114489548A
Connector
CN209881017U