技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种电子设备、通道切换的控制方法及控制电路。The present application relates to the field of computer technology, and in particular to an electronic device, a channel switching control method and a control circuit.
背景技术Background technique
不同系统都有各自的优点,基于软件兼容、使用不同的系统等需求,越来越多的用户为电子设备安装双系统,厂商也积极研制生产具有双系统的电子设备,特别是两个系统能够同时运行的电子设备(以下简称双系统电子设备),以吸引更多用户。而要使两个系统能够同时运行,目前采用的方法主要是使用两个主板,每个主板安装一个系统,由于每个系统拥有一个独立的中央处理器(Central Processing Unit,CPU),从而两个系统能够同时运行。Different systems have their own advantages. Based on the requirements of software compatibility and the use of different systems, more and more users install dual systems for electronic equipment. Manufacturers are also actively developing and producing electronic equipment with dual systems, especially the two systems can Electronic devices that operate simultaneously (hereinafter referred to as dual-system electronic devices) to attract more users. And to make two systems can run simultaneously, the method that adopts at present mainly is to use two motherboards, and each motherboard installs a system, because each system has an independent central processing unit (Central Processing Unit, CPU), thus two The systems are capable of running concurrently.
以目前常见的具有windows系统和Android系统的双系统电子设备为例,每个系统均可能需要通过外设接口与外设传输数据,目前通常在外设接口与两个操作系统之间设置有切换器,在需要时将外设接口从其中一个操作系统的通道切换到另一个操作系统的通道。Taking the current common dual-system electronic equipment with windows system and Android system as an example, each system may need to transmit data with the peripheral device through the peripheral interface. At present, a switcher is usually set between the peripheral interface and the two operating systems , to switch the peripheral interface from one operating system's channel to another operating system's channel when needed.
由于windows系统一些功能是基于Android系统来驱动的,例如屏幕显示数据的功能,需要Android系统始终处于运行状态,windows系统才能实现显示功能。但是Android系统经常需要接入加密外设(例如加密狗)对系统进行解密,当window系统需要连接外设时,切换器会将连接加密狗的通道切换到window系统的通道,导致Android系统被锁定,从而整机被锁定无法使用。Because some functions of the windows system are driven based on the Android system, such as the function of displaying data on the screen, the Android system needs to be running all the time, so that the windows system can realize the display function. However, the Android system often needs to access encrypted peripherals (such as dongles) to decrypt the system. When the window system needs to connect peripherals, the switcher will switch the channel connecting the dongle to the channel of the window system, resulting in the Android system being locked. , so that the whole machine is locked and cannot be used.
发明内容Contents of the invention
有鉴于此,本申请提供一种电子设备、通道切换的控制方法及控制电路,旨在解决双系统电子设备中随系统切换的通道无法根据外设的实际使用需求进行切换的问题。In view of this, the present application provides an electronic device, a channel switching control method and a control circuit, aiming at solving the problem that the channels switched with the system in the dual-system electronic device cannot be switched according to the actual use requirements of the peripheral devices.
具体地,本申请是通过如下技术方案实现的:Specifically, this application is achieved through the following technical solutions:
一种电子设备,包括接口模块、与所述接口模块连接的切换模块、第一操作系统和第二操作系统,接口模块包括至少两个外设接口;所述切换模块用于根据所述第一操作系统的控制指令切换所述接口模块与第一操作系统或第二操作系统之间的通道;An electronic device, comprising an interface module, a switching module connected to the interface module, a first operating system and a second operating system, the interface module includes at least two peripheral interfaces; the switching module is used to The control instruction of the operating system switches the channel between the interface module and the first operating system or the second operating system;
所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并确定是否控制所述切换模块断开接口模块与本操作系统的通道。When the first operating system detects a connection request between the interface module and the second operating system when it is in communication with the interface module, it controls the switching module to connect the channel between the interface module and the second operating system, and determines whether to control the connection between the interface module and the second operating system. The switching module disconnects the channel between the interface module and the operating system.
一个实施例中,所述第一操作系统确定是否控制所述切换模块断开接口模块与本操作系统的通道的方式包括以下任一种:In one embodiment, the manner in which the first operating system determines whether to control the switching module to disconnect the channel between the interface module and the operating system includes any of the following:
所述第一操作系统若检测到与本操作系统连接的外设为解密外设,则控制切换模块不断开接口模块与本操作系统的通道;If the first operating system detects that the peripheral connected to the operating system is a decryption peripheral, the control switching module does not disconnect the channel between the interface module and the operating system;
所述第一操作系统若检测与本操作系统连接的外设处于持续通信状态,则控制切换模块不断开接口模块与本操作系统的通道。If the first operating system detects that the peripherals connected to the operating system are in a continuous communication state, the control switching module does not disconnect the channel between the interface module and the operating system.
一个实施例中,所述切换模块包括与单个外设接口连接的单端切换器、与多个单端切换器连接的多端切换器;所述单端切换器用于根据所述第一操作系统的控制指令连通外设接口与第一操作系统或多端切换器之间的通道,所述多端切换器用于根据所述第一操作系统的控制指令连通单端切换器与第一操作系统或第二操作系统之间的通道;In one embodiment, the switching module includes a single-ended switch connected to a single peripheral interface, and a multi-ended switch connected to a plurality of single-ended switches; the single-ended switch is used according to the first operating system The control instruction connects the channel between the peripheral interface and the first operating system or the multi-port switch, and the multi-port switch is used to connect the single-end switch with the first operating system or the second operating system according to the control instruction of the first operating system. channels between systems;
所述第一操作系统在检测到本操作系统与解密外设通过多端可切换通道连通时,控制切换模块连通解密外设与本操作系统之间的单端可切换通道;When the first operating system detects that the operating system and the decryption peripheral are connected through a multi-terminal switchable channel, the control switching module connects the single-terminal switchable channel between the decryption peripheral and the operating system;
所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与本操作系统的通道;When the first operating system detects a connection request between the interface module and the second operating system in the state of communicating with the interface module, it controls the switching module to connect the channel between the interface module and the second operating system, and controls the switching The module does not disconnect the channel between decryption peripherals, peripherals in continuous communication state and the operating system;
其中,所述单端可切换通道是不通过多端切换器建立的通信通道;所述多端可切换通道是通过多端切换器建立的通信通道。Wherein, the single-end switchable channel is a communication channel not established through a multi-terminal switch; the multi-terminal switchable channel is a communication channel established through a multi-terminal switch.
一个实施例中,所述切换模块包括与单个外设接口连接的单端切换器、与多个外设接口连接的多端切换器;所述单端切换器及多端切换器用于根据所述第一操作系统的控制指令切换接口模块与第一操作系统或第二操作系统之间的通道;In one embodiment, the switching module includes a single-ended switch connected to a single peripheral interface, and a multi-ended switch connected to multiple peripheral interfaces; the single-ended switch and the multi-ended switch are used to The control instruction of the operating system switches the channel between the interface module and the first operating system or the second operating system;
所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与本操作系统的通道。When the first operating system detects a connection request between the interface module and the second operating system in the state of communicating with the interface module, it controls the switching module to connect the channel between the interface module and the second operating system, and controls the switching The module does not disconnect the channel between decrypted peripherals, peripherals in continuous communication state and the operating system.
一个实施例中,所述切换模块包括与接口模块中单个外设接口连接的单端切换器,所述单端切换器用于根据所述第一操作系统的控制指令切换外设接口与第一操作系统或第二操作系统之间的通道;In one embodiment, the switching module includes a single-ended switch connected to a single peripheral interface in the interface module, and the single-ended switch is used to switch the peripheral interface and the first operating system according to the control instruction of the first operating system. a channel between systems or second operating systems;
所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与本操作系统的通道。When the first operating system detects a connection request between the interface module and the second operating system in the state of communicating with the interface module, it controls the switching module to connect the channel between the interface module and the second operating system, and controls the switching The module does not disconnect the channel between decrypted peripherals, peripherals in continuous communication state and the operating system.
本申请还公开了一种通道切换的控制方法,应用于电子设备中,所述电子设备包括第一操作系统及第二操作系统,包括以下步骤:The present application also discloses a control method for channel switching, which is applied to electronic equipment, and the electronic equipment includes a first operating system and a second operating system, including the following steps:
在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制切换模块连通所述接口模块与第二操作系统的通道;When the connection request between the interface module and the second operating system is detected when the first operating system is in communication with the interface module, the control switching module connects the channel between the interface module and the second operating system;
确定是否控制所述切换模块断开接口模块与第一操作系统的通道。Determine whether to control the switching module to disconnect the channel between the interface module and the first operating system.
一个实施例中,所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:In one embodiment, the step of determining whether to control the switching module to disconnect the channel between the interface module and the first operating system includes:
当与第一操作系统连接的外设为解密外设时,控制切换模块不断开接口模块与第一操作系统的通道;When the peripheral connected to the first operating system is a decrypted peripheral, the control switching module does not disconnect the channel between the interface module and the first operating system;
当与第一操作系统连接的外设处于持续通信状态时,控制切换模块不断开接口模块与第一操作系统的通道。When the peripheral connected to the first operating system is in a continuous communication state, the control switching module does not disconnect the channel between the interface module and the first operating system.
一个实施例中,所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:In one embodiment, the step of determining whether to control the switching module to disconnect the channel between the interface module and the first operating system includes:
当检测到第一操作系统与解密外设通过多端可切换通道连通时,控制切换模块连通解密外设与第一操作系统之间的单端可切换通道;When it is detected that the first operating system and the decryption peripheral are connected through a multi-terminal switchable channel, the control switching module connects the single-end switchable channel between the decryption peripheral and the first operating system;
在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与第一操作系统的通道;When the first operating system is in communication with the interface module, when a connection request between the interface module and the second operating system is detected, the switching module is controlled to communicate with the channel of the interface module and the second operating system, and the switching module is controlled to continuously Unlock and decrypt peripherals, peripherals in continuous communication state, and the channel of the first operating system;
其中,所述单端可切换通道是不通过多端切换器建立的通信通道;所述多端可切换通道是通过多端切换器建立的通信通道。Wherein, the single-end switchable channel is a communication channel not established through a multi-terminal switch; the multi-terminal switchable channel is a communication channel established through a multi-terminal switch.
一个实施例中,所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:In one embodiment, the step of determining whether to control the switching module to disconnect the channel between the interface module and the first operating system includes:
在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与第一操作系统的通道。When the first operating system is in communication with the interface module, when a connection request between the interface module and the second operating system is detected, the switching module is controlled to communicate with the channel of the interface module and the second operating system, and the switching module is controlled to continuously Open and decrypt the peripheral device, the peripheral device in continuous communication state and the channel of the first operating system.
本申请还公开了一种通道切换的控制电路,包括接口模块、与所述接口模块连接的切换模块、与所述切换模块连接的控制器,接口模块包括至少两个外设接口;The application also discloses a control circuit for channel switching, including an interface module, a switching module connected to the interface module, and a controller connected to the switching module, and the interface module includes at least two peripheral interfaces;
第一主板及第二主板通过切换模块与接口模块连接,控制器用于控制切换模块连通外设接口与第一主板或外设接口与第二主板之间的通道。The first main board and the second main board are connected to the interface module through the switching module, and the controller is used to control the switching module to connect the channel between the peripheral interface and the first main board or between the peripheral interface and the second main board.
一个实施例中,所述切换模块包括与单个外设接口连接的单端切换器、与多个单端切换器连接的多端切换器;In one embodiment, the switching module includes a single-ended switch connected to a single peripheral interface, and a multi-ended switch connected to multiple single-ended switches;
第一主板与单端切换器连接,第一主板及第二主板与多端切换器连接,单端切换器及多端切换器与控制器连接;The first mainboard is connected to the single-end switcher, the first mainboard and the second mainboard are connected to the multi-end switcher, and the single-end switcher and the multi-end switcher are connected to the controller;
控制器用于控制切换模块连通外设接口与第一主板间的多端可切换通道或单端可切换通道;The controller is used to control the switching module to connect the multi-end switchable channel or the single-end switchable channel between the peripheral interface and the first motherboard;
控制器用于控制切换模块连通外设接口与第二主板之间的多端可切换通道;The controller is used to control the switching module to communicate with the multi-terminal switchable channel between the peripheral interface and the second motherboard;
其中,所述单端可切换通道是不通过多端切换器建立的通信通道;所述多端可切换通道是通过多端切换器建立的通信通道。Wherein, the single-end switchable channel is a communication channel not established through a multi-terminal switch; the multi-terminal switchable channel is a communication channel established through a multi-terminal switch.
一个实施例中,所述切换模块包括与单个外设接口连接的单端切换器、与多个外设接口连接的多端切换器;In one embodiment, the switching module includes a single-ended switcher connected to a single peripheral interface, and a multi-ended switcher connected to multiple peripheral interfaces;
第一主板及第二主板与单端切换器连接,第一主板及第二主板与多端切换器连接,单端切换器及多端切换器与控制器连接;The first main board and the second main board are connected to the single-end switcher, the first main board and the second main board are connected to the multi-end switcher, and the single-end switcher and the multi-end switcher are connected to the controller;
控制器用于控制单端切换器连通第一主板/第二主板与外设接口之间的通道;The controller is used to control the single-ended switcher to communicate with the channel between the first motherboard/second motherboard and the peripheral interface;
控制器用于控制多端切换器连通第一主板/第二主板与外设接口之间的通道。The controller is used to control the multi-terminal switch to communicate with the channel between the first motherboard/second motherboard and the peripheral interface.
一个实施例中,所述切换模块包括与接口模块中单个外设接口连接的单端切换器,单端切换器与控制器连接;In one embodiment, the switching module includes a single-ended switcher connected to a single peripheral interface in the interface module, and the single-ended switcher is connected to the controller;
控制器用于控制单端切换器连通第一主板/第二主板与外设接口之间的通道。The controller is used to control the single-ended switcher to communicate with the channel between the first motherboard/second motherboard and the peripheral interface.
本发明的电子设备,外设可以择一的与第一操作系统或第二操作系统通信;所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并确定是否控制所述切换模块断开接口模块与本操作系统的通道;在进行系统切换时,通过判断外设与第一操作系统或第二操作系统的通信需求输出控制指令,从而能够根据外设的实际使用需求切换通信通道。In the electronic device of the present invention, the peripheral device can alternatively communicate with the first operating system or the second operating system; when the first operating system is in communication with the interface module, it detects the connection between the interface module and the second operating system When requesting, control the switching module to connect the channel of the interface module and the second operating system, and determine whether to control the switching module to disconnect the channel of the interface module and the operating system; The communication requirements of the first operating system or the second operating system output control commands, so that the communication channels can be switched according to the actual usage requirements of the peripherals.
附图说明Description of drawings
图1是一种现在双系统电子设备的结构示意图;Fig. 1 is a structural schematic diagram of a current dual-system electronic device;
图2是另一种现在双系统电子设备的结构示意图;FIG. 2 is a schematic structural diagram of another current dual-system electronic device;
图3a是本申请一示例性实施例示出的一种电子设备的结构示意图;Fig. 3a is a schematic structural diagram of an electronic device shown in an exemplary embodiment of the present application;
图3b是本申请另一示例性实施例示出的一种电子设备的结构示意图;Fig. 3b is a schematic structural diagram of an electronic device shown in another exemplary embodiment of the present application;
图4是本申请又一示例性实施例示出的一种电子设备的结构示意图;Fig. 4 is a schematic structural diagram of an electronic device shown in another exemplary embodiment of the present application;
图5是本申请的电子设备控制通道切换的操作流程示意图;FIG. 5 is a schematic diagram of the operation flow of the electronic device control channel switching of the present application;
图6是本申请又一示例性实施例示出的一种电子设备的结构示意图;Fig. 6 is a schematic structural diagram of an electronic device shown in another exemplary embodiment of the present application;
图7是本申请又一示例性实施例示出的一种电子设备的结构示意图;Fig. 7 is a schematic structural diagram of an electronic device shown in another exemplary embodiment of the present application;
图8是本申请一示例性实施例示出的一种通道切换的控制方法的流程图;Fig. 8 is a flowchart of a channel switching control method shown in an exemplary embodiment of the present application;
图9是本申请一示例性实施例示出的另一种通道切换的控制方法的流程图;FIG. 9 is a flow chart of another channel switching control method shown in an exemplary embodiment of the present application;
图10是本申请一示例性实施例示出的又一种通道切换的控制方法的流程图;Fig. 10 is a flowchart of another channel switching control method shown in an exemplary embodiment of the present application;
图11是本申请一示例性实施例示出的又一种通道切换的控制方法的流程图;Fig. 11 is a flowchart of another channel switching control method shown in an exemplary embodiment of the present application;
图12是本申请一示例性实施例示出的一种通道切换的控制电路的逻辑框图;Fig. 12 is a logical block diagram of a channel switching control circuit shown in an exemplary embodiment of the present application;
图13是本申请一示例性实施例示出的另一种通道切换的控制电路的逻辑框图;Fig. 13 is a logic block diagram of another channel switching control circuit shown in an exemplary embodiment of the present application;
图14是本申请一示例性实施例示出的又一种通道切换的控制电路的逻辑框图;Fig. 14 is a logical block diagram of another channel switching control circuit shown in an exemplary embodiment of the present application;
图15是本申请一示例性实施例示出的又一种通道切换的控制电路的逻辑框图。Fig. 15 is a logic block diagram of another channel switching control circuit shown in an exemplary embodiment of the present application.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in this application is for the purpose of describing particular embodiments only, and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present application, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."
本申请所涉及的电子设备具有两个操作系统,每个系统配置一个主板及中央处理器,因而两个操作系统能够同时运行。操作系统包括Windows系统、Unix系统、Netware系统、Linux系统、Mac系统、Android系统、iOS系统等,两个操作系统的类型可以相同也可以不同,本申请的电子设备通过提供两种操作系统,可以增加电子设备的适用性,每一操作系统可以为用户提供不同的应用环境。操作系统需要与外设连接时,一般是通过外设接口进行连接,由于每一操作系统具有独立的主板及中央处理器,因此,每一操作系统均有相应的接口用于连接外设。The electronic equipment involved in this application has two operating systems, and each system is equipped with a main board and a central processing unit, so the two operating systems can run simultaneously. The operating system includes Windows system, Unix system, Netware system, Linux system, Mac system, Android system, iOS system, etc. The types of the two operating systems can be the same or different. The electronic device of this application can provide two operating systems. To increase the applicability of electronic devices, each operating system can provide users with different application environments. When the operating system needs to be connected with the peripheral device, it is generally connected through the peripheral device interface. Since each operating system has an independent motherboard and central processing unit, each operating system has a corresponding interface for connecting the peripheral device.
如图1所示的电子设备100,第一操作系统110可以通过外设接口131与外设191连接,第二操作系统120可以通过外设接口132与外设192连接、通过外设接口133与外设193连接,当第二操作系统120中该类接口的数量有限,不能直接与外设接口132、外设接口133连接时,可以通过集线器141扩展接口数量。然而,该设计方式下,虽然电子设备100的接口模块130具备3个外设接口,但是,第一操作系统110只能使用外设接口131,第二操作系统120只能使用外设接口132、外设接口133。当用户在第一操作系统110使用外设191后,切换到第二操作系统120仍希望使用外设191时,需要手动将外设191插到外设接口132或外设接口133中,才能在第二操作系统120中使用外设191,接口模块130的利用率低,而且使用不便捷。As for the electronic device 100 shown in Figure 1, the first operating system 110 can be connected to the peripheral device 191 through the peripheral device interface 131, the second operating system 120 can be connected to the peripheral device 192 through the peripheral device interface 132, and connected to the peripheral device 192 through the peripheral device interface 133. Peripherals 193 are connected. When the number of such interfaces in the second operating system 120 is limited and cannot be directly connected to the peripherals 132 and 133 , the number of interfaces can be expanded through the hub 141 . However, in this design mode, although the interface module 130 of the electronic device 100 has three peripheral interfaces, the first operating system 110 can only use the peripheral interface 131, and the second operating system 120 can only use the peripheral interface 132, Peripheral interface 133 . After the user uses the peripheral device 191 in the first operating system 110, when switching to the second operating system 120 and still wants to use the peripheral device 191, the user needs to manually insert the peripheral device 191 into the peripheral device interface 132 or the peripheral device interface 133, in order to The peripheral device 191 is used in the second operating system 120, and the utilization rate of the interface module 130 is low, and it is inconvenient to use.
通过增加一个切换设备即可解决上述问题,如图2所示,与图1相比仅增加了1个多端切换器242,多端切换器242根据第一操作系统210的控制指令进行切换,在使用第一操作系统210时,多端切换器242连通接口模块230与第一操作系统210间的通道,切换系统到第二操作系统220时,多端切换器242连通接口模块230与第二操作系统220间的通道。然而,由于接口模块230中的外设接口231、外设接口232、外设接口233均与多端切换器242连接,多端切换器242每次切换都会同时改变外设接口231、外设接口232、外设接口233连通的通道,且第一操作系统210发送的用于控制多端切换器242切换的控制指令也简单,仅用于控制多端切换器242切换到与当前使用的操作系统连通,不能根据实际使用需求切换通道。例如,当用户从第一操作系统210发送数据到外设291中,未发送完毕时切换到第二操作系统220,多端切换器242随之切换,中断了外设291与第一操作系统210的通路,数据发送终止。The above problem can be solved by adding a switching device. As shown in FIG. 2, compared with FIG. When the first operating system 210 is used, the multiport switcher 242 connects the channel between the interface module 230 and the first operating system 210, and when the system is switched to the second operating system 220, the multiport switcher 242 connects the channel between the interface module 230 and the second operating system 220 channel. However, since the peripheral interface 231, the peripheral interface 232, and the peripheral interface 233 in the interface module 230 are all connected to the multi-terminal switcher 242, the multi-terminal switcher 242 will change the peripheral interface 231, the peripheral interface 232, The channel through which the peripheral interface 233 is connected, and the control command sent by the first operating system 210 for controlling the switching of the multi-terminal switch 242 is also simple, and is only used to control the switching of the multi-terminal switch 242 to communicate with the currently used operating system. The actual use needs to switch channels. For example, when the user sends data from the first operating system 210 to the peripheral device 291, and switches to the second operating system 220 when the transmission is not completed, the multiport switcher 242 switches thereupon, interrupting the connection between the peripheral device 291 and the first operating system 210. channel, data transmission is terminated.
图3a是本申请一示例性实施例示出的一种电子设备的结构示意图;如图3a所示,该电子设备300包括接口模块330、切换模块340、第一操作系统310和第二操作系统320,接口模块330通过切换模块340与第一操作系统310或第二操作系统320连接,切换模块340根据第一操作系统310的控制指令切换接口模块330与第一操作系统310或第二操作系统320之间的通道;Fig. 3a is a schematic structural diagram of an electronic device shown in an exemplary embodiment of the present application; as shown in Fig. 3a, the electronic device 300 includes an interface module 330, a switching module 340, a first operating system 310 and a second operating system 320 , the interface module 330 is connected to the first operating system 310 or the second operating system 320 through the switching module 340, and the switching module 340 switches the interface module 330 and the first operating system 310 or the second operating system 320 according to the control instruction of the first operating system 310 the channel between
第一操作系统310在与接口模块330连通的状态下,检测到接口模块330与第二操作系统320的连接请求时,控制切换模块340连通接口模块330与第二操作系统320的通道,并确定是否控制切换模块340断开接口模块330与本操作系统的通道。When the first operating system 310 detects a connection request between the interface module 330 and the second operating system 320 in the state of communicating with the interface module 330, the control switching module 340 communicates with the channel of the interface module 330 and the second operating system 320, and determines Whether to control the switching module 340 to disconnect the channel between the interface module 330 and the operating system.
接口模块330中外设接口的数量可以任意设置,为便于描述,本实施例中以接口模块330包含3个外设接口(外设接口331、外设接口332和外设接口333)为例进行说明。The number of peripheral interfaces in the interface module 330 can be set arbitrarily. For ease of description, in this embodiment, the interface module 330 includes 3 peripheral interfaces (peripheral interface 331, peripheral interface 332 and peripheral interface 333) as an example for illustration .
电子设备300开机时,第一操作系统310和第二操作系统320均启动运行,通常会设置开机默认使用的系统,或在开机时提供选择界面,根据用户的指令选择使用的系统。在当前使用的为第一操作系统310时,第一操作系统310与接口模块330连通,接口模块330与第二操作系统320的连接请求相当于用户要切换到第二操作系统320,第一操作系统310根据与接口模块330连接的外设的情况发送切换指令,以控制切换模块340连通接口模块330与第二操作系统320的通道,并确定是否控制切换模块340断开接口模块330与本操作系统的通道。显然,控制指令可以由第一操作系统310或第二操作系统320发出,或者由第一操作系统310和第二操作系统320共同控制切换模块340的切换,为了便于描述及控制方便,本实施例选择控制切换模块340进行切换的控制指令由第一操作系统310发出。可以直接由第一操作系统310控制切换模块340的切换,也可以如图3b所示,由控制器350根据第一操作系统310的控制指令控制切换模块340,由于电子设备300的开关机键(图中未示出)等是通过控制器350进行控制的,因此通过扩展原有控制器350的功能即可控制切换模块340,且切换模块340需要根据控制指令保持连接的状态,通过控制器350进行控制的方式能够极大的降低功耗,且无需增加元器件。When the electronic device 300 is turned on, both the first operating system 310 and the second operating system 320 are started to run. Usually, the default operating system is set, or a selection interface is provided when the electronic device is turned on, and the operating system is selected according to the user's instruction. When the first operating system 310 is currently used, the first operating system 310 communicates with the interface module 330, and the connection request between the interface module 330 and the second operating system 320 is equivalent to that the user wants to switch to the second operating system 320, and the first operation The system 310 sends a switching instruction according to the situation of the peripheral device connected to the interface module 330, to control the switching module 340 to connect the channel of the interface module 330 and the second operating system 320, and determine whether to control the switching module 340 to disconnect the interface module 330 from the operation system channel. Obviously, the control command can be issued by the first operating system 310 or the second operating system 320, or the switching of the switching module 340 can be jointly controlled by the first operating system 310 and the second operating system 320. For the convenience of description and control, this embodiment The control command for selecting the control switch module 340 to switch is sent by the first operating system 310 . The switching of the switching module 340 may be directly controlled by the first operating system 310, or as shown in FIG. Not shown in the figure), etc. are controlled by the controller 350, so the switching module 340 can be controlled by expanding the function of the original controller 350, and the switching module 340 needs to keep the connected state according to the control instruction, through the controller 350 The control method can greatly reduce power consumption without adding components.
第一操作系统310在检测到切换系统的指令时,需要控制切换模块340进行切换,以使接口模块330与第二操作系统320连通,但是,接口模块330与第一操作系统310是否能够断开还需要视情况而定,本申请一实施例中,第一操作系统310确定是否控制切换模块340断开接口模块330与本操作系统的通道的方式包括以下任一种:When the first operating system 310 detects an instruction to switch systems, it needs to control the switching module 340 to switch so that the interface module 330 communicates with the second operating system 320, but whether the interface module 330 and the first operating system 310 can be disconnected It also depends on the situation. In an embodiment of the present application, the first operating system 310 determines whether to control the switching module 340 to disconnect the channel of the interface module 330 and the operating system, including any of the following:
第一操作系统310若检测到与本操作系统连接的外设为解密外设,则控制切换模块340不断开接口模块330与本操作系统的通道;If the first operating system 310 detects that the peripheral connected to the operating system is a decryption peripheral, the control switching module 340 does not disconnect the channel between the interface module 330 and the operating system;
第一操作系统310若检测与本操作系统连接的外设处于持续通信状态,则控制切换模块340不断开接口模块330与本操作系统的通道。If the first operating system 310 detects that the peripheral device connected to the operating system is in a continuous communication state, it controls the switching module 340 not to disconnect the channel between the interface module 330 and the operating system.
如前所述,当第一操作系统310与外设391持续通信时通路断开,则通信终止,接收的数据可能不完整,因此,第一操作系统310发送的控制指令会保持处于持续通信状态的通道不断开,当然,还可以在持续通信结束时控制切换模块340切换通道使外设391与第二操作系统320连通。有些程序加密后需要连接解密外设(例如加密狗)才能正常运行,为了便于描述,此处以目前常见的具有windows系统(第二操作系统320)和Android系统(第一操作系统310)的电子设备300为例,由于windows系统一些功能是基于Android系统来驱动的,例如屏幕显示数据的功能,需要Android系统始终处于运行状态,windows系统才能实现显示功能。当电子设备300的Android系统加密后,只有在Android系统与解密外设连接时电子设备300才能正常使用,当外设接口332连接的外设392为解密外设时,第一操作系统310会控制外设接口332保持与本操作系统的通道连通,即便切换系统时也会控制切换模块340不断开接口模块330与本操作系统的通道,避免出现Android系统与解密外设断开后锁定导致整机锁定无法使用的情况。As mentioned above, when the first operating system 310 and the peripheral device 391 continue to communicate, the path is disconnected, the communication is terminated, and the received data may be incomplete. Therefore, the control command sent by the first operating system 310 will remain in the continuous communication state Of course, the switching module 340 can also be controlled to switch the channel so that the peripheral device 391 can communicate with the second operating system 320 at the end of the continuous communication. After some programs are encrypted, they need to be connected to decryption peripherals (such as dongles) to run normally. For the convenience of description, the current common electronic devices with windows system (second operating system 320) and Android system (first operating system 310) are used here. 300 as an example, because some functions of the windows system are driven based on the Android system, such as the function of displaying data on the screen, the Android system needs to be always running, and the windows system can realize the display function. After the Android system of the electronic device 300 is encrypted, the electronic device 300 can only be used normally when the Android system is connected to the decrypted peripheral. When the peripheral 392 connected to the peripheral interface 332 is a decrypted peripheral, the first operating system 310 will control The peripheral interface 332 remains connected to the channel of the operating system. Even when the system is switched, the switching module 340 will be controlled to not disconnect the channel of the interface module 330 and the operating system, so as to prevent the Android system from disconnecting from the decrypted peripherals and causing the whole machine to be locked. Locked out of use.
显然,要实现本申请的方案,需要切换模块340为不同的外设接口架设不同的通道,使接口模块330中的外设接口都能与第一操作系统310、第二操作系统320连通,又能独立对每一外设接口所处的通道进行切换。通道设计方案形式各异,只要能达到对每一外设接口所处的通道进行独立切换即可,接下来将具体介绍几种方案。Obviously, to realize the solution of the present application, the switch module 340 needs to set up different channels for different peripheral interfaces, so that the peripheral interfaces in the interface module 330 can communicate with the first operating system 310 and the second operating system 320, and The channel where each peripheral interface is located can be switched independently. The channel design schemes are in different forms, as long as the channel where each peripheral interface is located can be independently switched, several schemes will be introduced in detail next.
图4是本申请又一示例性实施例示出的一种电子设备400的结构示意图;切换模块440包括单端切换器441、442、443及多端切换器444,单端切换器441与外设接口431连接,单端切换器442与外设接口432连接,单端切换器443与外设接口433连接,第一操作系统410、多端切换器444均与单端切换器441、442、443连接;第一操作系统410、第二操作系统420均与多端切换器444连接;Fig. 4 is a schematic structural diagram of an electronic device 400 shown in another exemplary embodiment of the present application; a switching module 440 includes single-ended switches 441, 442, 443 and a multi-ended switch 444, and the single-ended switch 441 is connected to the peripheral interface 431 is connected, the single-ended switcher 442 is connected with the peripheral interface 432, the single-ended switcher 443 is connected with the peripheral interface 433, and the first operating system 410 and the multi-terminal switcher 444 are connected with the single-ended switcher 441, 442, 443; Both the first operating system 410 and the second operating system 420 are connected to the multiport switcher 444;
单端切换器441、442、443根据第一操作系统410的控制指令连通外设接口431、432、433与第一操作系统410或多端切换器444之间的通道,多端切换器444根据第一操作系统410的控制指令连通单端切换器441、442、443与第一操作系统410或第二操作系统420之间的通道;The single-ended switches 441, 442, 443 are connected to the channels between the peripheral interfaces 431, 432, 433 and the first operating system 410 or the multi-ported switcher 444 according to the control instruction of the first operating system 410, and the multi-ported switcher 444 is connected according to the first The control command of the operating system 410 connects the channels between the single-ended switches 441, 442, 443 and the first operating system 410 or the second operating system 420;
第一操作系统410在检测到本操作系统与解密外设通过多端可切换通道连通时,控制切换模块440连通解密外设与本操作系统之间的单端可切换通道;When the first operating system 410 detects that the operating system and the decrypted peripheral are connected through a multi-port switchable channel, the control switching module 440 is connected to the single-port switchable channel between the decrypted peripheral device and the operating system;
第一操作系统410在与接口模块430连通的状态下,检测到接口模块430与第二操作系统420的连接请求时,控制切换模块440连通接口模块430与第二操作系统420的通道,并控制切换模块440不断开解密外设、持续通信状态的外设与本操作系统的通道;When the first operating system 410 detects a connection request between the interface module 430 and the second operating system 420 in the state of communicating with the interface module 430, the control switching module 440 communicates with the channel of the interface module 430 and the second operating system 420, and controls The switching module 440 does not disconnect the channel of the decryption peripheral, the peripheral in continuous communication state, and the operating system;
其中,单端可切换通道是不通过多端切换器444建立的通信通道;多端可切换通道是通过多端切换器444建立的通信通道。Wherein, the single-end switchable channel is a communication channel not established through the multi-port switch 444 ; the multi-port switchable channel is a communication channel established through the multi-port switch 444 .
如图4所示,外设491通过外设接口431、单端切换器441、多端切换器444与第一操作系统410连接的通道为多端可切换通道,外设491通过外设接口431、单端切换器441与第一操作系统410连接的通道为单端可切换通道。As shown in Figure 4, the channel that the peripheral 491 connects with the first operating system 410 through the peripheral interface 431, the single-ended switch 441, and the multi-terminal switch 444 is a multi-terminal switchable channel, and the peripheral 491 passes the peripheral interface 431, the single-ended The channel connecting the end switcher 441 to the first operating system 410 is a single-end switchable channel.
如图5所示,当电子设备400开机时,若不需要连接解锁外设解锁时,第一操作系统410(Android系统)控制切换模块440连通接口模块430与当前使用的操作系统间的通道,若需要连接解锁外设解锁时,则控制接口模块430通过多端可切换通道与Android系统连通,当检测到外设接口431中插入了外设491时,判断该外设491是否为解锁外设,当该外设491是解锁外设时,电子设备400解锁,由于多端可切换通道还控制着其它外设接口的通道,为了不影响其它外设接口的正常使用,控制单端切换器441切换,使外设491通过单端可切换通道与Android系统连通,且在后续切换操作系统时,均控制单端切换器441保持当前通道不断开。As shown in FIG. 5, when the electronic device 400 is turned on, if there is no need to connect and unlock the peripheral device to unlock, the first operating system 410 (Android system) controls the switching module 440 to connect the channel between the interface module 430 and the currently used operating system, If it is necessary to connect and unlock the peripherals to be unlocked, the control interface module 430 is communicated with the Android system through a multi-terminal switchable channel, and when it is detected that the peripherals 491 are inserted into the peripherals interface 431, it is judged whether the peripherals 491 are unlocked peripherals, When the peripheral 491 is an unlocked peripheral, the electronic device 400 is unlocked. Since the multi-terminal switchable channel also controls the channels of other peripheral interfaces, in order not to affect the normal use of other peripheral interfaces, the single-ended switcher 441 is controlled to switch. The peripheral device 491 is connected to the Android system through a single-ended switchable channel, and when the operating system is subsequently switched, the single-ended switcher 441 is controlled to keep the current channel undisconnected.
由于解锁外设可能被插在外设接口431、432、433中的任意一个,若外设接口431、432、433没有可以区分位置的标志,则还需要通过判断解锁外设插入的是哪个外设接口,一实施例采用的方式是第一操作系统410通过控制器450依次向单端切换器441、442、443发送切换指令,当控制器450控制单端切换器441切换后,解锁外设即通过单端可切换通道与Android系统连通,即解锁外设与外设接口431连接,则无需再控制单端切换器442、443进行切换。Since the unlocked peripheral may be inserted into any one of the peripheral interfaces 431, 432, 433, if the peripheral interface 431, 432, 433 does not have a mark that can distinguish the position, it is also necessary to determine which peripheral is inserted into the unlocked peripheral. Interface, the method adopted in one embodiment is that the first operating system 410 sends switching instructions to the single-ended switches 441, 442, and 443 in sequence through the controller 450. After the controller 450 controls the switching of the single-ended switch 441, the peripheral device is unlocked. The single-ended switchable channel is connected to the Android system, that is, the unlocked peripheral is connected to the peripheral interface 431 , and there is no need to control the single-ended switcher 442 , 443 to switch.
外设接口432、433仍通过多端可切换通道与第一操作系统410连通,当切换到第二操作系统420时,控制切换模块440与第二操作系统420连通,当然,如果外设492和/或外设493与第一操作系统410处于持续通信状态,则先控制切换模块440不切换,直到外设492、493与第一操作系统410的持续通信状态结束时再切换;或者询问用户是否强制切换,根据用户触发的指令控制切换模块440是否切换。通过上述方式即可达到根据实际使用需求控制通道进行切换的目的,且可以独立控制各外设接口的通道。The peripheral interfaces 432, 433 are still in communication with the first operating system 410 through multi-port switchable channels. When switching to the second operating system 420, the control switching module 440 is in communication with the second operating system 420. Of course, if the peripherals 492 and/or Or the peripheral device 493 and the first operating system 410 are in a continuous communication state, then first control the switching module 440 not to switch, and then switch until the continuous communication state between the peripheral device 492, 493 and the first operating system 410 ends; or ask the user whether to force Switching is to control whether the switching module 440 is switching according to an instruction triggered by the user. Through the above method, the purpose of controlling channel switching according to actual usage requirements can be achieved, and the channels of each peripheral interface can be independently controlled.
图6是本申请又一示例性实施例示出的一种电子设备600的结构示意图;切换模块640包括与外设接口631连接的单端切换器641、与外设接口632、633连接的多端切换器642;第一操作系统610、第二操作系统620均与单端切换器641连接,第一操作系统610、第二操作系统620均与多端切换器642连接;Fig. 6 is a schematic structural diagram of an electronic device 600 shown in another exemplary embodiment of the present application; the switching module 640 includes a single-ended switcher 641 connected to the peripheral interface 631, a multi-terminal switch connected to the peripheral interfaces 632, 633 device 642; the first operating system 610 and the second operating system 620 are all connected to the single-ended switcher 641, and the first operating system 610 and the second operating system 620 are all connected to the multi-terminal switcher 642;
单端切换器641及多端切换器642根据第一操作系统610的控制指令切换接口模块630与第一操作系统610或第二操作系统620之间的通道;The single-end switcher 641 and the multi-end switcher 642 switch the channel between the interface module 630 and the first operating system 610 or the second operating system 620 according to the control instruction of the first operating system 610;
第一操作系统610在与接口模块630连通的状态下,检测到接口模块630与第二操作系统620的连接请求时,控制切换模块640连通接口模块630与第二操作系统620的通道,并控制切换模块640不断开解密外设、持续通信状态的外设与本操作系统的通道。When the first operating system 610 detects a connection request between the interface module 630 and the second operating system 620 in the state of communicating with the interface module 630, the control switching module 640 communicates with the channel of the interface module 630 and the second operating system 620, and controls The switching module 640 does not disconnect the channel of the decryption peripheral, the peripheral in continuous communication state, and the operating system.
外设接口631通过单端切换器641与第一操作系统610或第二操作系统620连通,外设接口632、633通过多端切换器642与第一操作系统610或第二操作系统620连通,单端切换器641、多端切换器642根据第一操作系统610的控制指令进行切换,如前所述,也可以将第一操作系统610的控制指令通过控制器650下发到单端切换器641、多端切换器642。接口模块630中的外设接口631、632、633均可与第一操作系统610或第二操作系统620连通,但是,单端切换器641仅用于切换外设接口631与第一操作系统610或第二操作系统620间的通道,因此,对于解密外设等可以通过外设接口631与第一操作系统610或第二操作系统620连接,从而对解密外设通道的切换不影响其它外设对通道的选择情况,本实施例在保持接口模块630中的外设接口631、632、633均可与第一操作系统610或第二操作系统620连通的情况下,还减少了单端切换器641及多端切换器642的数量,降低了成本。The peripheral interface 631 communicates with the first operating system 610 or the second operating system 620 through a single-ended switch 641, and the peripheral interfaces 632 and 633 communicate with the first operating system 610 or the second operating system 620 through a multi-port switch 642. The end switcher 641 and the multi-end switcher 642 switch according to the control instruction of the first operating system 610. As mentioned above, the control instruction of the first operating system 610 can also be sent to the single-end switcher 641, multiport switcher 642 . The peripheral interfaces 631, 632, and 633 in the interface module 630 can all communicate with the first operating system 610 or the second operating system 620, but the single-ended switcher 641 is only used to switch the peripheral interface 631 and the first operating system 610 Or the channel between the second operating system 620, therefore, for decrypting peripherals, etc., can be connected with the first operating system 610 or the second operating system 620 through the peripheral interface 631, so that the switching of the decrypting peripheral channel does not affect other peripherals For channel selection, this embodiment also reduces the number of single-ended switchers under the condition that the peripheral interfaces 631, 632, and 633 in the interface module 630 can all communicate with the first operating system 610 or the second operating system 620. 641 and the number of multi-terminal switchers 642 reduces the cost.
图7是本申请又一示例性实施例示出的一种电子设备700的结构示意图;切换模块740包括单端切换器741、742、743,单端切换器741与外设接口731连接,单端切换器742与外设接口732连接,单端切换器743与外设接口733连接,单端切换器741、742、743用于根据第一操作系统710的控制指令切换外设接口730与第一操作系统710或第二操作系统720之间的通道;7 is a schematic structural diagram of an electronic device 700 shown in another exemplary embodiment of the present application; the switching module 740 includes single-ended switches 741, 742, and 743, and the single-ended switch 741 is connected to the peripheral interface 731, and the single-ended The switch 742 is connected to the peripheral interface 732, the single-ended switch 743 is connected to the peripheral interface 733, and the single-ended switches 741, 742, 743 are used to switch the peripheral interface 730 and the first operating system 710 according to the control instruction of the first operating system. a channel between the operating system 710 or the second operating system 720;
第一操作系统710在与接口模块730连通的状态下,检测到接口模块730与第二操作系统720的连接请求时,控制切换模块740连通接口模块730与第二操作系统720的通道,并控制切换模块740不断开解密外设、持续通信状态的外设与本操作系统的通道。When the first operating system 710 detects a connection request between the interface module 730 and the second operating system 720 in the state of communicating with the interface module 730, the control switching module 740 communicates with the channel of the interface module 730 and the second operating system 720, and controls The switching module 740 does not disconnect the channel of the decryption peripheral, the peripheral in continuous communication state, and the operating system.
接口模块730中的每一个外设接口731、732、733都配置有一个单端切换器741、742、743,每一个单端切换器741、742、743均可与第一操作系统710或第二操作系统720连通,单端切换器741、742、743根据第一操作系统710的控制指令进行切换,如前所述,也可以将第一操作系统710的控制指令通过控制器750下发到单端切换器741、742、743。本实施例中每一个外设接口731、732、733均可独立的与第一操作系统710或第二操作系统720连通,提高了接口模块730中各外设接口731、732、733的使用灵活性。Each peripheral interface 731, 732, 733 in the interface module 730 is equipped with a single-ended switcher 741, 742, 743, and each single-ended switcher 741, 742, 743 can be connected with the first operating system 710 or the second operating system. The two operating systems 720 are connected, and the single-ended switches 741, 742, and 743 switch according to the control instructions of the first operating system 710. As mentioned above, the control instructions of the first operating system 710 can also be issued to the Single-ended switches 741 , 742 , 743 . In this embodiment, each peripheral interface 731, 732, 733 can be independently communicated with the first operating system 710 or the second operating system 720, which improves the flexibility of use of each peripheral interface 731, 732, 733 in the interface module 730 sex.
与前述电子设备的实施例相对应,本申请还提供了通道切换的控制方法的实施例。Corresponding to the aforementioned embodiments of the electronic device, the present application also provides embodiments of a channel switching control method.
请参考图8,图8是本申请一示例性实施例示出的一种通道切换的控制方法的流程图;该方法应用于电子设备中,所述电子设备包括第一操作系统及第二操作系统,包括以下步骤:Please refer to FIG. 8. FIG. 8 is a flowchart of a channel switching control method shown in an exemplary embodiment of the present application; the method is applied in electronic equipment, and the electronic equipment includes a first operating system and a second operating system , including the following steps:
步骤S810:在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制切换模块连通所述接口模块与第二操作系统的通道;Step S810: When the connection request between the interface module and the second operating system is detected when the first operating system is connected to the interface module, control the switching module to connect the channel between the interface module and the second operating system;
步骤S820:确定是否控制所述切换模块断开接口模块与第一操作系统的通道。Step S820: Determine whether to control the switching module to disconnect the channel between the interface module and the first operating system.
图9是本申请一示例性实施例示出的另一种通道切换的控制方法的流程图;所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:Fig. 9 is a flowchart of another channel switching control method shown in an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the channel of the interface module and the first operating system includes:
步骤S901:当与第一操作系统连接的外设为解密外设时,控制切换模块不断开接口模块与第一操作系统的通道;Step S901: When the peripheral connected to the first operating system is a decryption peripheral, control the switching module not to disconnect the channel between the interface module and the first operating system;
步骤S902:当与第一操作系统连接的外设处于持续通信状态时,控制切换模块不断开接口模块与第一操作系统的通道。Step S902: When the peripheral device connected to the first operating system is in a continuous communication state, control the switching module not to disconnect the channel between the interface module and the first operating system.
图10是本申请一示例性实施例示出的又一种通道切换的控制方法的流程图;所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:Fig. 10 is a flowchart of another channel switching control method shown in an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the channel of the interface module and the first operating system includes:
步骤S101:当检测到第一操作系统与解密外设通过多端可切换通道连通时,控制切换模块连通解密外设与第一操作系统之间的单端可切换通道;Step S101: When it is detected that the first operating system and the decryption peripheral are connected through a multi-port switchable channel, the control switching module connects the single-port switchable channel between the decryption peripheral and the first operating system;
步骤S102:在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与第一操作系统的通道;Step S102: When the connection request between the interface module and the second operating system is detected when the first operating system is connected to the interface module, control the switching module to connect the channel between the interface module and the second operating system, and control the The switching module does not disconnect the channel of the decryption peripheral, the peripheral in continuous communication state, and the first operating system;
其中,所述单端可切换通道是不通过多端切换器建立的通信通道;所述多端可切换通道是通过多端切换器建立的通信通道。Wherein, the single-end switchable channel is a communication channel not established through a multi-terminal switch; the multi-terminal switchable channel is a communication channel established through a multi-terminal switch.
图11是本申请一示例性实施例示出的又一种通道切换的控制方法的流程图;所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:Fig. 11 is a flowchart of another channel switching control method shown in an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the channel of the interface module and the first operating system includes:
步骤S111:在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与第一操作系统的通道。Step S111: In the state where the first operating system is connected to the interface module, when a connection request between the interface module and the second operating system is detected, control the switching module to connect the channel between the interface module and the second operating system, and control the The switching module does not disconnect the channel of the decryption peripheral, the peripheral in continuous communication state, and the first operating system.
上述方法中各步骤的功能和作用的实现过程具体详见上述电子设备中对应单元的实现过程,在此不再赘述。For the implementation process of the functions and effects of each step in the above method, refer to the implementation process of the corresponding unit in the above electronic device for details, and will not be repeated here.
进一步地,本申请还提供了通道切换的控制电路的实施例。Further, the present application also provides an embodiment of a control circuit for channel switching.
请参考图12,图12是本申请一示例性实施例示出的一种通道切换的控制电路130的逻辑框图;所述控制电路130包括接口模块132、与所述接口模块132连接的切换模块136、与所述切换模块136连接的控制器131,接口模块132包括至少两个外设接口133、134、135;Please refer to FIG. 12 , which is a logical block diagram of a control circuit 130 for channel switching shown in an exemplary embodiment of the present application; the control circuit 130 includes an interface module 132 and a switching module 136 connected to the interface module 132 . A controller 131 connected to the switching module 136, and the interface module 132 includes at least two peripheral interfaces 133, 134, 135;
第一主板231及第二主板232通过切换模块136与接口模块132连接,控制器131用于控制切换模块136连通外设接口133、134、135与第一主板231或外设接口133、134、135与第二主板232之间的通道。The first main board 231 and the second main board 232 are connected to the interface module 132 through the switching module 136, and the controller 131 is used to control the switching module 136 to connect the peripheral interfaces 133, 134, 135 with the first main board 231 or the peripheral interfaces 133, 134, 135 and the channel between the second motherboard 232.
图13是本申请一示例性实施例示出的另一种通道切换的控制电路140的逻辑框图;切换模块146包括与单个外设接口143、144、145连接的单端切换器147、148、149,与多个单端切换器147、148、149连接的多端切换器240;Fig. 13 is a logical block diagram of another control circuit 140 for channel switching shown in an exemplary embodiment of the present application; a switching module 146 includes single-ended switches 147, 148, 149 connected to a single peripheral interface 143, 144, 145 , a multi-terminal switcher 240 connected to a plurality of single-ended switchers 147, 148, 149;
第一主板241与单端切换器147、148、149连接,第一主板241及第二主板242与多端切换器240连接,单端切换器147、148、149及多端切换器240与控制器141连接;The first mainboard 241 is connected with the single-end switcher 147, 148, 149, the first mainboard 241 and the second mainboard 242 are connected with the multi-terminal switcher 240, the single-end switcher 147, 148, 149 and the multi-terminal switcher 240 are connected with the controller 141 connect;
控制器141用于控制切换模块146连通外设接口143、144、145与第一主板241间的多端可切换通道或单端可切换通道;The controller 141 is used to control the switching module 146 to communicate with the multi-end switchable channel or the single-end switchable channel between the peripheral interfaces 143, 144, 145 and the first motherboard 241;
控制器141用于控制切换模块146连通外设接口143、144、145与第二主板242之间的多端可切换通道;The controller 141 is used to control the switching module 146 to communicate with the multi-terminal switchable channels between the peripheral interfaces 143, 144, 145 and the second motherboard 242;
其中,所述单端可切换通道是不通过多端切换器240建立的通信通道;所述多端可切换通道是通过多端切换器240建立的通信通道。Wherein, the single-end switchable channel is a communication channel not established through the multi-terminal switch 240 ; the multi-terminal switchable channel is a communication channel established through the multi-terminal switch 240 .
图14是本申请一示例性实施例示出的又一种通道切换的控制电路150的逻辑框图;切换模块156包括与单个外设接口153连接的单端切换器157,与多个外设接口154、155连接的多端切换器158;Fig. 14 is the logical block diagram of another kind of channel switching control circuit 150 shown in an exemplary embodiment of the present application; the switching module 156 includes a single-ended switcher 157 connected to a single peripheral interface 153, and a plurality of peripheral interfaces 154 , 155 connected multi-terminal switcher 158;
第一主板251及第二主板252与单端切换器157连接,第一主板251及第二主板252与多端切换器158连接,单端切换器157及多端切换器158与控制器151连接;The first mainboard 251 and the second mainboard 252 are connected with the single-end switcher 157, the first mainboard 251 and the second mainboard 252 are connected with the multi-end switcher 158, and the single-end switcher 157 and the multi-end switcher 158 are connected with the controller 151;
控制器151用于控制单端切换器157连通第一主板251/第二主板252与外设接口153之间的通道;The controller 151 is used to control the single-ended switch 157 to communicate with the channel between the first main board 251/second main board 252 and the peripheral interface 153;
控制器151用于控制多端切换器158连通第一主板251/第二主板252与外设接口154、155之间的通道。The controller 151 is used to control the multi-terminal switch 158 to connect the channels between the first main board 251 / the second main board 252 and the peripheral interfaces 154 and 155 .
图15是本申请一示例性实施例示出的又一种通道切换的控制电路160的逻辑框图;切换模块166包括与接口模块162中单个外设接口163、164、165连接的单端切换器167、168、169,单端切换器167、168、169与控制器161连接;Fig. 15 is a logical block diagram of another channel switching control circuit 160 shown in an exemplary embodiment of the present application; the switching module 166 includes a single-ended switcher 167 connected to a single peripheral interface 163, 164, 165 in the interface module 162 , 168, 169, the single-ended switches 167, 168, 169 are connected to the controller 161;
控制器161用于控制单端切换器167、168、169连通第一主板261/第二主板262与外设接口163、164、165之间的通道。The controller 161 is used to control the single-ended switches 167 , 168 , 169 to connect the channels between the first motherboard 261 /second motherboard 262 and the peripheral interfaces 163 , 164 , 165 .
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the above-mentioned device, please refer to the implementation process of the corresponding steps in the above-mentioned method for details, and details will not be repeated here.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this application. It can be understood and implemented by those skilled in the art without creative effort.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above is only a preferred embodiment of the application, and is not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application should be included in the application. within the scope of protection.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710399082.5ACN107220192B (en) | 2017-05-31 | 2017-05-31 | Electronic equipment, control method and control circuit for channel switching |
| PCT/CN2017/104834WO2018218840A1 (en) | 2017-05-31 | 2017-09-30 | Electronic device, and method and circuit for controlling channel switching |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710399082.5ACN107220192B (en) | 2017-05-31 | 2017-05-31 | Electronic equipment, control method and control circuit for channel switching |
| Publication Number | Publication Date |
|---|---|
| CN107220192Atrue CN107220192A (en) | 2017-09-29 |
| CN107220192B CN107220192B (en) | 2020-08-14 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710399082.5AActiveCN107220192B (en) | 2017-05-31 | 2017-05-31 | Electronic equipment, control method and control circuit for channel switching |
| Country | Link |
|---|---|
| CN (1) | CN107220192B (en) |
| WO (1) | WO2018218840A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018218840A1 (en)* | 2017-05-31 | 2018-12-06 | 广州视源电子科技股份有限公司 | Electronic device, and method and circuit for controlling channel switching |
| CN110046108A (en)* | 2019-01-09 | 2019-07-23 | 阿里巴巴集团控股有限公司 | USB peripheral control device, system and its control method |
| CN110990321A (en)* | 2019-12-27 | 2020-04-10 | 歌尔科技有限公司 | Multi-operating system equipment |
| CN111142953A (en)* | 2019-12-27 | 2020-05-12 | 深圳市创维群欣安防科技股份有限公司 | External equipment switching circuit and conference tablet |
| CN111400009A (en)* | 2020-03-17 | 2020-07-10 | 广州视源电子科技股份有限公司 | A communication control method, device, intelligent interactive tablet and storage medium |
| CN111694779A (en)* | 2020-06-18 | 2020-09-22 | 京东方科技集团股份有限公司 | Interface switching device, communication equipment and interface switching method |
| CN112579497A (en)* | 2019-09-29 | 2021-03-30 | 杭州海康威视数字技术股份有限公司 | Universal serial bus interface circuit and method compatible with double operating systems |
| CN114157898A (en)* | 2021-11-15 | 2022-03-08 | 深圳市华胜软件技术有限公司 | Signal switching system and signal switching method |
| CN119960839A (en)* | 2024-12-13 | 2025-05-09 | 合肥联宝信息技术有限公司 | A control method and a control system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1776617A (en)* | 2004-11-16 | 2006-05-24 | 国际商业机器公司 | Method and syatem of mode switching for stating apparatus |
| CN101401069A (en)* | 2006-03-16 | 2009-04-01 | 株式会社Ntt都科摩 | Safe OS Switching |
| CN102831346A (en)* | 2012-07-31 | 2012-12-19 | 深圳市紫色力腾科技发展有限公司 | Method and system for file protection |
| CN103430185A (en)* | 2011-03-22 | 2013-12-04 | 瑞典爱立信有限公司 | Method for switching between virtualized and non-virtualized system operation |
| CN103744729A (en)* | 2014-01-24 | 2014-04-23 | 福州瑞芯微电子有限公司 | Computer system with operating systems switchable |
| CN104111849A (en)* | 2014-06-30 | 2014-10-22 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN106254551A (en)* | 2016-09-30 | 2016-12-21 | 北京珠穆朗玛移动通信有限公司 | The document transmission method of a kind of dual system and mobile terminal |
| CN106326782A (en)* | 2015-06-23 | 2017-01-11 | 联想(北京)有限公司 | Information processing method and electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101620471B (en)* | 2009-08-07 | 2011-06-15 | 福建升腾资讯有限公司 | Method for realizing single host computer with multiple systems |
| TWI544337B (en)* | 2012-10-25 | 2016-08-01 | 緯創資通股份有限公司 | Dual-operating-system architecture for sharing usb devices, and method for sharing usb devices in a dual-operating-system architecture |
| CN106548097A (en)* | 2015-09-23 | 2017-03-29 | 深圳市全智达科技有限公司 | The operation method and device of network device software |
| CN107220192B (en)* | 2017-05-31 | 2020-08-14 | 广州视源电子科技股份有限公司 | Electronic equipment, control method and control circuit for channel switching |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1776617A (en)* | 2004-11-16 | 2006-05-24 | 国际商业机器公司 | Method and syatem of mode switching for stating apparatus |
| CN101401069A (en)* | 2006-03-16 | 2009-04-01 | 株式会社Ntt都科摩 | Safe OS Switching |
| CN103430185A (en)* | 2011-03-22 | 2013-12-04 | 瑞典爱立信有限公司 | Method for switching between virtualized and non-virtualized system operation |
| CN102831346A (en)* | 2012-07-31 | 2012-12-19 | 深圳市紫色力腾科技发展有限公司 | Method and system for file protection |
| CN103744729A (en)* | 2014-01-24 | 2014-04-23 | 福州瑞芯微电子有限公司 | Computer system with operating systems switchable |
| CN104111849A (en)* | 2014-06-30 | 2014-10-22 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN106326782A (en)* | 2015-06-23 | 2017-01-11 | 联想(北京)有限公司 | Information processing method and electronic device |
| CN106254551A (en)* | 2016-09-30 | 2016-12-21 | 北京珠穆朗玛移动通信有限公司 | The document transmission method of a kind of dual system and mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018218840A1 (en)* | 2017-05-31 | 2018-12-06 | 广州视源电子科技股份有限公司 | Electronic device, and method and circuit for controlling channel switching |
| CN110046108A (en)* | 2019-01-09 | 2019-07-23 | 阿里巴巴集团控股有限公司 | USB peripheral control device, system and its control method |
| CN112579497A (en)* | 2019-09-29 | 2021-03-30 | 杭州海康威视数字技术股份有限公司 | Universal serial bus interface circuit and method compatible with double operating systems |
| CN110990321A (en)* | 2019-12-27 | 2020-04-10 | 歌尔科技有限公司 | Multi-operating system equipment |
| CN111142953A (en)* | 2019-12-27 | 2020-05-12 | 深圳市创维群欣安防科技股份有限公司 | External equipment switching circuit and conference tablet |
| CN111400009A (en)* | 2020-03-17 | 2020-07-10 | 广州视源电子科技股份有限公司 | A communication control method, device, intelligent interactive tablet and storage medium |
| CN111400009B (en)* | 2020-03-17 | 2024-05-14 | 广州视源电子科技股份有限公司 | Communication control method and device, intelligent interaction panel and storage medium |
| CN111694779A (en)* | 2020-06-18 | 2020-09-22 | 京东方科技集团股份有限公司 | Interface switching device, communication equipment and interface switching method |
| US11853247B2 (en) | 2020-06-18 | 2023-12-26 | Boe Technology Group Co., Ltd. | Interface switching apparatus, communication device, and interface switching method |
| CN114157898A (en)* | 2021-11-15 | 2022-03-08 | 深圳市华胜软件技术有限公司 | Signal switching system and signal switching method |
| CN119960839A (en)* | 2024-12-13 | 2025-05-09 | 合肥联宝信息技术有限公司 | A control method and a control system |
| Publication number | Publication date |
|---|---|
| CN107220192B (en) | 2020-08-14 |
| WO2018218840A1 (en) | 2018-12-06 |
| Publication | Publication Date | Title |
|---|---|---|
| CN107220192B (en) | Electronic equipment, control method and control circuit for channel switching | |
| JP6400714B2 (en) | Flexible mobile device connectivity with automotive systems with USB hubs | |
| US6600739B1 (en) | Method and apparatus for switching among a plurality of universal serial bus host devices | |
| US8706031B2 (en) | Method for switching the use of a shared set of wireless I/O devices between multiple computers | |
| US8195852B2 (en) | Configurable connector for system-level communication | |
| CA2793617C (en) | Dynamic configuration of connectors for system-level communications | |
| US20060106962A1 (en) | USB On-The-Go implementation | |
| US9244871B2 (en) | Method and apparatus for virtualizing hardware dongle over a wireless connection | |
| US10162788B2 (en) | USB on the go (OTG) multi-hub endpoint reflector hub | |
| US10248599B2 (en) | USB connections | |
| JP2017523509A (en) | Reversible connector for accessory devices | |
| CN107391419B (en) | Support general sequence busbar concentrator of many host computers and automobile-used host computer | |
| WO2018080432A1 (en) | Configuring docks | |
| JP2007026438A (en) | Communications system | |
| JP2009268044A (en) | Data transmission bridge device, control chip thereof and data transmission bridge method | |
| US10521385B2 (en) | Inter-device digital audio | |
| US20120036294A1 (en) | Computer integrated display integrated display and control method of the same | |
| US8954623B2 (en) | Universal Serial Bus devices supporting super speed and non-super speed connections for communication with a host device and methods using the same | |
| KR100346683B1 (en) | Peripheral device connecting apparatus and method in computer supporting IEEE1394 | |
| US20070155422A1 (en) | Method for controlling mobile data connection through USB Ethernet management of mobile station | |
| CN223229970U (en) | USB communication circuit and display device | |
| CN104396207B (en) | Method and device for realizing multi-display access | |
| KR20120019188A (en) | A multimedia system converting usb host and usb device | |
| KR200253014Y1 (en) | USB HUB with Switching Function | |
| US11176077B1 (en) | Console port for servers and storage arrays |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |