Nothing Special   »   [go: up one dir, main page]

WO2018218840A1 - Electronic device, and method and circuit for controlling channel switching - Google Patents

Electronic device, and method and circuit for controlling channel switching Download PDF

Info

Publication number
WO2018218840A1
WO2018218840A1 PCT/CN2017/104834 CN2017104834W WO2018218840A1 WO 2018218840 A1 WO2018218840 A1 WO 2018218840A1 CN 2017104834 W CN2017104834 W CN 2017104834W WO 2018218840 A1 WO2018218840 A1 WO 2018218840A1
Authority
WO
WIPO (PCT)
Prior art keywords
operating system
channel
module
interface module
peripheral
Prior art date
Application number
PCT/CN2017/104834
Other languages
French (fr)
Chinese (zh)
Inventor
陈俊伟
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2018218840A1 publication Critical patent/WO2018218840A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/124Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Definitions

  • the present application relates to the field of computer technology, and in particular, to an electronic device and a channel switching control technology.
  • Dual-system electronic devices Simultaneously running electronic devices (hereinafter referred to as dual-system electronic devices) to attract more users.
  • the current method is mainly to use two motherboards, one for each motherboard, because each system has a separate Central Processing Unit (CPU), so that two The system can run at the same time.
  • CPU Central Processing Unit
  • each system may need to transmit data through peripheral interfaces and peripherals.
  • a switcher is usually provided between the peripheral interface and the two operating systems. Switch the peripheral interface from the channel of one of the operating systems to the channel of the other operating system when needed.
  • the function of displaying data on the screen requires that the Android system is always in a running state, and the windows system can realize the display function.
  • Android systems often need to access encrypted peripherals (such as dongle) to decrypt the system.
  • peripherals such as dongle
  • the switch will switch the channel connecting the dongle to the channel of the window system, causing the Android system to be locked. Therefore, the whole machine is locked and cannot be used.
  • the present application provides an electronic device, a channel switching control method, and a control circuit, which are designed to solve the problem that a channel that is switched with a system in a dual-system electronic device cannot be switched according to actual usage requirements of the peripheral device.
  • An electronic device includes 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, and the switching module is configured to be according to the first Operating system control Commanding a switch between the interface module and the first operating system or the second operating system;
  • the first operating system When the first operating system detects the connection request between the interface module and the second operating system, the first operating system controls the switching module to connect the interface module with the channel of the second operating system, and determines whether to control the device.
  • the switching module disconnects the interface module from the channel of the operating system.
  • the manner in which the first operating system determines whether to control the switching module to disconnect the interface module from the operating system includes any one of the following:
  • the control switching module does not disconnect the interface between the interface module and the operating system
  • the control switching module does not disconnect the interface between the interface module and the operating system.
  • the switching module includes a single-ended switch connected to a single peripheral device, and a multi-terminal switch connected to the plurality of single-ended switches; the single-ended switch is configured according to the first operating system
  • the control instruction is connected to the channel between the peripheral interface and the first operating system or the multi-end switch, and the multi-end switch is configured to connect the single-ended switch with the first operating system or the second operation according to the control instruction of the first operating system a channel between systems;
  • the control switching module connects the single-ended switchable channel between the decryption peripheral and the operating system
  • the single-ended switchable channel is a communication channel that is not established by the multi-terminal switch; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch.
  • the switching module includes a single-ended switch connected to a single peripheral device, and a multi-terminal switch connected to a plurality of peripheral interfaces; the single-ended switch and the multi-end switch are used according to the first The control instruction of the operating system switches a channel between the interface module and the first operating system or the second operating system;
  • the switching module includes a single-ended switch that interfaces with a single peripheral in the interface module,
  • the single-ended switch is configured to switch a channel between the peripheral interface and the first operating system or the second operating system according to the control instruction of the first operating system;
  • the present application also discloses a method for controlling channel switching, which is applied to an electronic device, where the electronic device includes a first operating system and a second operating system, and includes the following steps:
  • the control switching module When the first operating system is in communication with the interface module, when the connection request between the interface module and the second operating system is detected, the control switching module is connected to the channel of the interface module and the second operating system;
  • the step of determining whether to control the switching module to disconnect the interface module from the first operating system comprises:
  • the control switching module does not disconnect the channel of the interface module from the first operating system
  • control switching module When the peripheral connected to the first operating system is in a continuous communication state, the control switching module does not disconnect the channel of the interface module from the first operating system.
  • the step of determining whether to control the switching module to disconnect the interface module from the first operating system comprises:
  • control switching module When detecting that the first operating system and the decryption peripheral are connected through the multi-terminal switchable channel, the control switching module is connected to the single-ended switchable channel between the decryption peripheral and the first operating system;
  • Controlling, by the first operating system and the interface module, a connection request between the interface module and the second operating system, and controlling the switching module to continuously control the connection between the interface module and the second operating system Decrypting peripherals, peripherals in continuous communication state, and channels of the first operating system;
  • the single-ended switchable channel is a communication channel that is not established by the multi-terminal switch; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch.
  • the step of determining whether to control the switching module to disconnect the interface module from the first operating system comprises:
  • the switching module When the first operating system is in communication with the interface module, detecting a connection request between the interface module and the second operating system And controlling, by the switching module, the channel of the interface module and the second operating system, and controlling the switching module not to disconnect the peripheral device of the decrypting peripheral, the continuous communication state, and the channel of the first operating system.
  • the step of determining whether to control the switching module to disconnect the interface module from the first operating system comprises:
  • the present application also discloses a channel switching control circuit, including an interface module, a switching module connected to the interface module, and a controller connected to the switching module, the interface module including at least two peripheral interfaces;
  • the first motherboard and the second motherboard are connected to the interface module through the switching module, and the controller is configured to control the channel between the switching module connecting the peripheral interface and the first motherboard or the peripheral interface and the second motherboard.
  • the switching module includes a single-ended switch connected to a single peripheral interface, and a multi-terminal switch connected to a plurality of single-ended switches;
  • the first motherboard is connected to the single-ended switch, the first motherboard and the second motherboard are connected to the multi-terminal switch, and the single-ended switch and the multi-terminal switch are connected to the controller;
  • the controller is configured to control the multi-terminal switchable channel or the single-ended switchable channel between the peripheral interface of the switching module and the first motherboard;
  • the controller is configured to control the multi-terminal switchable channel between the switching module connecting the peripheral interface and the second motherboard;
  • the single-ended switchable channel is a communication channel that is not established by the multi-terminal switch; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch.
  • the switching module includes a single-ended switch that interfaces with a single peripheral device, and a multi-terminal switch that interfaces with a plurality of peripheral devices;
  • the first motherboard and the second motherboard are connected to the single-ended switch, the first motherboard and the second motherboard are connected to the multi-terminal switch, and the single-ended switch and the multi-terminal switch are connected to the controller;
  • the controller is configured to control the channel between the single-ended switch and the first motherboard/second motherboard and the peripheral interface;
  • the controller is configured to control the channel between the multi-terminal switch and the first motherboard/second motherboard and the peripheral interface.
  • the switching module includes a single-ended switch that interfaces with a single peripheral in the interface module, single-ended The switch is connected to the controller;
  • the controller is configured to control the channel between the single-ended switch and the first motherboard/second motherboard and the peripheral interface.
  • the peripheral device can alternatively communicate with the first operating system or the second operating system; the first operating system detects the connection between the interface module and the second operating system in a state of being connected to the interface module.
  • the first operating system detects the connection between the interface module and the second operating system in a state of being connected to the interface module.
  • FIG. 1 is a schematic structural view of a present dual system electronic device
  • FIG. 2 is a schematic structural view of another present dual system electronic device
  • FIG. 3a is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
  • FIG. 3b is a schematic structural diagram of an electronic device according to another exemplary embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an electronic device according to still another exemplary embodiment of the present application.
  • FIG. 5 is a schematic diagram of an operation flow of an electronic device control channel switching according to the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device according to still another exemplary embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device according to still another exemplary embodiment of the present application.
  • FIG. 8 is a flowchart of a method for controlling channel switching according to an exemplary embodiment of the present application.
  • FIG. 9 is a flowchart of another method for controlling channel switching according to an exemplary embodiment of the present application.
  • FIG. 10 is a flowchart of still another method for controlling channel switching according to an exemplary embodiment of the present application.
  • FIG. 11 is a flowchart of still another method for controlling channel switching according to an exemplary embodiment of the present application.
  • FIG. 12 is a flowchart of still another method for controlling channel switching according to an exemplary embodiment of the present application.
  • FIG. 13 is a logic block diagram of a channel switching control circuit according to an exemplary embodiment of the present application.
  • FIG. 14 is a logic block diagram of another channel switching control circuit according to an exemplary embodiment of the present application.
  • FIG. 15 is a logic block diagram of still another channel switching control circuit according to an exemplary embodiment of the present application.
  • FIG. 16 is a logic block diagram of still another channel switching control circuit according to an exemplary embodiment of the present application.
  • first, second, third, etc. may be used to describe various information in this application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information without departing from the scope of the present application.
  • second information may also be referred to as the first information.
  • word "if” as used herein may be interpreted as "when” or “when” or “in response to a determination.”
  • the electronic device involved in the present application has two operating systems, each of which is configured with a main board and a central processing unit, so that the two operating systems can operate 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 may be the same or different.
  • the electronic device of the present application can provide two operating systems. Increasing the applicability of electronic devices, each operating system can provide users with different application environments. When the operating system needs to be connected to a peripheral device, it is usually connected through a peripheral interface. Since each operating system has a separate motherboard and a central processing unit, each operating system has a corresponding interface for connecting peripherals.
  • the first operating system 110 can be connected to the peripheral device 191 through the peripheral interface 131
  • the second operating system 120 can be connected to the peripheral device 192 through the peripheral interface 132 and through the peripheral interface 133 .
  • the peripheral device 193 is connected.
  • the peripheral 191 When the user uses the peripheral device 191 in the first operating system 110, When switching to the second operating system 120 still wants to use the peripheral 191, the peripheral 191 needs to be manually inserted into the peripheral interface 132 or the peripheral interface 133 to use the peripheral 191 in the second operating system 120, the interface module 130 The utilization rate is low and it is not easy to use.
  • the above problem can be solved by adding a switching device.
  • FIG. 2 only one multi-terminal switch 242 is added compared with FIG. 1, and the multi-end switch 242 switches according to the control command of the first operating system 210, and is in use.
  • the multi-end switch 242 is connected to the channel between the interface module 230 and the first operating system 210.
  • the multi-terminal switch 242 is connected between the interface module 230 and the second operating system 220. Channel.
  • the multi-terminal switch 242 changes the peripheral interface 231 and the peripheral interface 232 at the same time.
  • the channel of the peripheral interface 233 is connected, and the control command sent by the first operating system 210 for controlling the switching of the multi-end switch 242 is also simple, and is only used to control the multi-end switch 242 to switch to communicate with the currently used operating system, and cannot be based on Actually use the demand switching channel.
  • the multi-end switch 242 switches, interrupting the peripheral device 291 and the first operating system 210. Path, data transmission is terminated.
  • FIG. 3a is a schematic structural diagram of an electronic device according to 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.
  • the switching module 340 switches the interface module 330 to the first operating system 310 or the second operating system 320 according to the control instruction of the first operating system 310.
  • the control switching module 340 When the first operating system 310 is in communication with the interface module 330, when detecting the connection request of the interface module 330 and the second operating system 320, the control switching module 340 connects 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 interface module 330 from the channel of the operating system.
  • the number of the peripheral interfaces in the interface module 330 can be arbitrarily set.
  • the interface module 330 includes three peripheral interfaces (the peripheral interface 331, the peripheral interface 332, and the peripheral interface 333) as an example for description. .
  • the first operating system 310 and the second operating system 320 are all started to run.
  • the system used by the power-on default is set, or a selection interface is provided at the time of power-on, and the system used is selected according to the user's instruction.
  • the first operating system 310 is currently used, the first operating system 310 is in communication with the interface module 330, and the connection request of the interface module 330 and the second operating system 320 is equivalent to the user switching to the second operating system 320, 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 communicate 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 interface module 330 from the operation. systematic aisle.
  • the control instruction may be sent by the first operating system 310 or the second operating system 320, or the first operating system 310 and the second operating system 320 jointly control the switching of the switching module 340.
  • the control command that selects the control switching module 340 to perform the switching is issued by the first operating system 310.
  • the switching of the switching module 340 may be directly controlled by the first operating system 310. Alternatively, as shown in FIG.
  • the controller 350 controls the switching module 340 according to the control instruction of the first operating system 310, due to the switch button of the electronic device 300 (
  • the control unit 350 controls the switching module 340 by expanding the function of the original controller 350, and the switching module 340 needs to maintain the connected state according to the control command, and passes through the controller 350.
  • the way to control can greatly reduce power consumption without adding components.
  • the first operating system 310 When detecting the instruction of the switching system, the first operating system 310 needs to control the switching module 340 to perform switching so that the interface module 330 is in communication with the second operating system 320, but whether the interface module 330 and the first operating system 310 can be disconnected.
  • the manner in which the first operating system 310 determines whether to control the switching module 340 to disconnect the interface between the interface module 330 and the operating system includes any of the following:
  • the control switching module 340 does not disconnect the interface between the interface module 330 and the operating system;
  • the control switching module 340 does not disconnect the interface between the interface module 330 and the operating system.
  • 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 remains in the continuous communication state.
  • the channel is not disconnected.
  • the switching module 340 can also be controlled to switch the channel to allow the peripheral device 391 to communicate with the second operating system 320 at the end of the continuous communication.
  • Some programs need to be connected to a decryption peripheral (such as a dongle) to be able to run normally.
  • a decryption peripheral such as a dongle
  • the current common electronic devices with Windows system (second operating system 320) and Android system (first operating system 310) are used here.
  • the function of displaying data on the screen requires that the Android system is always in a running state, and the windows system can realize the display function.
  • the electronic device 300 can be used normally only when the Android system is connected to the decryption peripheral.
  • the peripheral device 392 connected to the peripheral interface 332 is a decrypting peripheral
  • the first operating system 310 controls.
  • the peripheral interface 332 is kept in communication with the channel of the operating system. Even when the system is switched, the switching module 340 is controlled to not disconnect the interface between the interface module 330 and the operating system, so as to avoid the locking of the Android system and the decrypting peripheral. Lock is not available.
  • the switching module 340 needs to set 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 Independently The channel in which each peripheral interface is located is switched.
  • the channel design schemes are different in form, as long as the channels in which each peripheral interface is located can be switched independently. Next, several schemes will be specifically introduced.
  • FIG. 4 is a schematic structural diagram of an electronic device 400 according to still another exemplary embodiment of the present application;
  • the switching module 440 includes a single-ended switch 441, 442, 443 and a multi-terminal switch 444, and the single-ended switch 441 and the peripheral interface 431 is connected, the single-ended switch 442 is connected to the peripheral interface 432, the single-ended switch 443 is connected to the peripheral interface 433, and the first operating system 410 and the multi-end switch 444 are connected to the single-ended switch 441, 442, 443;
  • the first operating system 410 and the second operating system 420 are both connected to the multi-end switch 444;
  • the single-ended switch 441, 442, 443 communicates the channel between the peripheral interface 431, 432, 433 and the first operating system 410 or the multi-end switch 444 according to the control instruction of the first operating system 410, and the multi-end switch 444 is according to the first
  • the control instruction of the operating system 410 connects the channel between the single-ended switch 441, 442, 443 and the first operating system 410 or the second operating system 420;
  • the first operating system 410 controls the switching module 440 to communicate with the single-ended switchable channel between the decryption peripheral and the operating system when detecting that the operating system and the decryption peripheral are connected through the multi-terminal switchable channel;
  • the control switching module 440 When the first operating system 410 is in communication with the interface module 430, when detecting the connection request of the interface module 430 and the second operating system 420, the control switching module 440 connects the channel of the interface module 430 and the second operating system 420, and controls The switching module 440 does not disconnect the peripherals of the peripheral device and the operating system that decrypt the peripheral device, the continuous communication state;
  • the single-ended switchable channel is a communication channel that is not established by the multi-terminal switch 444; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch 444.
  • the peripheral device 491 is connected to the first operating system 410 through the peripheral interface 431, the single-ended switch 441, and the multi-terminal switch 444, and the peripheral device 491 passes through the peripheral interface 431,
  • the channel connected to the first operating system 410 by the end switch 441 is a single-ended switchable channel.
  • the first operating system 410 controls the switching module 440 to communicate the channel between the interface module 430 and the currently used operating system. If the connection is required to unlock the peripheral, the control interface module 430 is connected to the Android system through the multi-terminal switchable channel.
  • the peripheral device 491 is inserted into the peripheral interface 431, it is determined whether the peripheral 491 is an unlocked peripheral. When the peripheral device 491 is an unlocked peripheral device, the electronic device 400 is unlocked. Since the multi-terminal switchable channel also controls the channels of other peripheral interfaces, the single-ended switch 441 is controlled to switch without affecting the normal use of other peripheral interfaces.
  • the peripheral device 491 is connected to the Android system through the single-ended switchable channel, and when the operating system is subsequently switched, the single-ended switch 441 is controlled to keep the current channel unbroken.
  • the unlocking peripheral may be inserted in any one of the peripheral interfaces 431, 432, and 433, if the peripheral interfaces 431, 432, and 433 have no distinguishable position flag, it is also necessary to determine which peripheral device is inserted by the unlocking peripheral.
  • the first operating system 410 sends a switching instruction to the single-ended switch 441, 442, 443 through the controller 450.
  • the controller 450 controls the single-ended switch 441 to switch, the peripheral 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, so that it is no longer necessary to control the single-ended switch 442, 443 to switch.
  • the peripheral interfaces 432, 433 are still in communication with the first operating system 410 through the multi-terminal switchable channel.
  • the control switching module 440 is in communication with the second operating system 420, of course, if the peripherals 492 and / Or the peripheral device 493 is in a continuous communication state with the first operating system 410, then the switching module 440 is first controlled not to switch until the peripherals 492, 493 and the first operating system 410 end the continuous communication state; or the user is asked whether to force Switching, according to the instruction triggered by the user, controls whether the switching module 440 switches.
  • the purpose of switching the control channel according to the actual use requirement can be achieved, and the channels of each peripheral interface can be independently controlled.
  • the switching module 640 includes a single-ended switch 641 connected to the peripheral interface 631, and a multi-terminal switch connected to the peripheral interfaces 632 and 633.
  • the first operating system 610 and the second operating system 620 are both connected to the single-ended switch 641, and the first operating system 610 and the second operating system 620 are both connected to the multi-end switch 642;
  • the single-ended switch 641 and the multi-end switch 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;
  • the control switching module 640 When the first operating system 610 is in communication with the interface module 630, when detecting the connection request of the interface module 630 and the second operating system 620, the control switching module 640 connects the channel of the interface module 630 and the second operating system 620, and controls The switching module 640 does not disconnect the peripherals of the peripheral device, the continuous communication state, and the channel of the operating system.
  • the peripheral interface 631 is connected to the first operating system 610 or the second operating system 620 through the single-ended switch 641, and the peripheral interfaces 632, 633 are connected to the first operating system 610 or the second operating system 620 through the multi-end switch 642.
  • the end switch 641 and the multi-end switch 642 are switched according to the control command of the first operating system 610. As described above, the control command of the first operating system 610 can be sent to the single-ended switch 641 through the controller 650. Multi-terminal switch 642.
  • the peripheral interfaces 631, 632, 633 in the interface module 630 can each be in communication with the first operating system 610 or the second operating system 620, but the single-ended switch 641 is only used to switch the peripheral interface 631 with the first operating system 610. Or a channel between the second operating system 620. Therefore, the decryption peripheral or the like can be connected to the first operating system 610 or the second operating system 620 through the peripheral interface 631, so that the switching of the decrypted peripheral channel does not affect other peripherals.
  • the single-ended switch is also reduced.
  • the number of 641 and multi-terminal switchers 642 reduces cost.
  • FIG. 7 is a schematic structural diagram of an electronic device 700 according to still 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.
  • the switch 742 is connected to the peripheral interface 732
  • the single-ended switch 743 is connected to the peripheral interface 733
  • the single-ended switch 741, 742, 743 is configured to switch the peripheral interface 730 and the first according to the control command of the first operating system 710. a channel between the operating system 710 or the second operating system 720;
  • the control switching module 740 connects the channel of the interface module 730 and the second operating system 720, and controls The switching module 740 does not disconnect the peripherals of the peripheral device and the operating system that decrypt the peripheral, the continuous communication state.
  • Each of the peripheral interfaces 731, 732, and 733 of the interface module 730 is configured with a single-ended switch 741, 742, 743, and each of the single-ended switches 741, 742, 743 can be associated with the first operating system 710 or the first
  • the second operating system 720 is connected to the controller 750, and the single-ended switch 741, 742, and 743 are switched according to the control command of the first operating system 710.
  • Single-ended switchers 741, 742, 743 are connected to the control command of the first operating system 710.
  • Each of the peripheral interfaces 731, 732, and 733 in the embodiment can be independently connected to the first operating system 710 or the second operating system 720, thereby improving the flexible use of the peripheral interfaces 731, 732, and 733 in the interface module 730. Sex.
  • the present application also provides an embodiment of a method of controlling channel switching.
  • FIG. 8 is a flowchart of a method for controlling channel switching according to an exemplary embodiment of the present application. The method is applied to an electronic device, where the electronic device includes a first operating system and a second operating system. , including the following steps:
  • Step S810 When the connection request between the interface module and the second operating system is detected in the state that the first operating system is in communication with the interface module, the control switching module connects the channel of the interface module and the second operating system;
  • Step S820 Determine whether to control the switching module to disconnect the channel of the interface module from the first operating system.
  • FIG. 9 is a flowchart of another method for controlling channel switching according to an exemplary embodiment of the present application.
  • the step of determining whether to control the switching module to disconnect the interface module from the first operating system includes:
  • Step S901 When the peripheral device connected to the first operating system is a decrypting peripheral device, the control switching module does not disconnect the interface between the interface module and the first operating system;
  • Step S902 When the peripheral connected to the first operating system is in a continuous communication state, the control switching module does not disconnect the interface of the interface module from the first operating system.
  • FIG. 10 is a flowchart of still another method for controlling channel switching according to an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the interface module from the first operating system includes:
  • Step S101 When it is detected that the first operating system and the decryption peripheral are connected through the multi-terminal switchable channel, the control switching module is connected to the single-ended switchable channel between the decryption peripheral and the first operating system;
  • Step S102 When the connection request between the interface module and the second operating system is detected in a state in which the first operating system is in communication with the interface module, control the channel of the switching module connecting the interface module and the second operating system, and control the The switching module does not disconnect the peripheral device of the decrypting peripheral, the continuous communication state, and the channel of the first operating system;
  • the single-ended switchable channel is a communication channel that is not established by the multi-terminal switch; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch.
  • FIG. 11 is a flowchart of still another method for controlling channel switching according to an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the interface module from the first operating system includes:
  • Step S111 When the connection request between the interface module and the second operating system is detected in a state in which the first operating system is in communication with the interface module, control the channel of the switching module to connect the interface module with the second operating system, and control the The switching module does not disconnect the peripherals that decrypt the peripheral, the continuous communication state, and the channel of the first operating system.
  • FIG. 12 is a flowchart of still another method for controlling channel switching according to an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the interface module from the first operating system includes:
  • Step S121 When the connection request between the interface module and the second operating system is detected in a state in which the first operating system is in communication with the interface module, the switching module is controlled to communicate with the channel of the second operating system, and the control is performed. The switching module does not disconnect the peripherals that decrypt the peripheral, the continuous communication state, and the channel of the first operating system.
  • the present application also provides an embodiment of a control circuit for channel switching.
  • FIG. 13 is a logic block diagram of a channel switching control circuit 130 according to 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.
  • the controller 131 connected to the switching module 136, the interface module 132 includes at least two peripheral interfaces 133, 134, 135;
  • the first motherboard 231 and the second motherboard 232 are connected to the interface module 132 through the switching module 136.
  • the controller 131 is configured to control the switching module 136 to communicate with the peripheral interfaces 133, 134, 135 and the first motherboard 231 or the peripheral interfaces 133, 134, A channel between the 135 and the second motherboard 232.
  • the switching module 146 includes single-ended switches 147, 148, 149 connected to a single peripheral interface 143, 144, 145. And more a single-ended switch 147, 148, 149 connected to the multi-terminal switch 240;
  • the first main board 241 is connected to the single-ended switchers 147, 148, and 149, the first main board 241 and the second main board 242 are connected to the multi-end switch 240, and the single-ended switchers 147, 148, and 149 and the multi-end switch 240 and the controller 141 are connected. connection;
  • the controller 141 is configured to control the switching module 146 to communicate with the multi-terminal switchable channel or the single-ended switchable channel between the peripheral interface 143, 144, 145 and the first motherboard 241;
  • the controller 141 is configured to control the switching module 146 to communicate with the multi-terminal switchable channel between the peripheral interfaces 143, 144, 145 and the second main board 242;
  • the single-ended switchable channel is a communication channel that is not established by the multi-terminal switch 240; the multi-terminal switchable channel is a communication channel established by the multi-end switch 240.
  • FIG. 15 is a logic block diagram of still another channel switching control circuit 150 according to an exemplary embodiment of the present application;
  • the switching module 156 includes a single-ended switch 157 connected to a single peripheral interface 153, and a plurality of peripheral interfaces 154. 155 connected multi-terminal switch 158;
  • the first main board 251 and the second main board 252 are connected to the single-ended switch 157, the first main board 251 and the second main board 252 are connected to the multi-end switch 158, and the single-ended switch 157 and the multi-end switch 158 are connected to the controller 151.
  • the controller 151 is configured to control the single-ended switch 157 to communicate with the channel between the first main board 251 / the second main board 252 and the peripheral interface 153;
  • the controller 151 is configured to control the multi-terminal switch 158 to communicate with the channel between the first main board 251 / the second main board 252 and the peripheral interfaces 154, 155.
  • the switching module 166 includes a single-ended switch 167 coupled to a single peripheral interface 163, 164, 165 in the interface module 162. , 168, 169, the single-ended switch 167, 168, 169 is connected to the controller 161;
  • the controller 161 is configured to control the single-ended switch 167, 168, 169 to communicate with the channel between the first main board 261 / the second main board 262 and the peripheral interfaces 163, 164, 165.
  • the device embodiment since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical. Units can be located in one place or distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present application. Those of ordinary skill in the art can understand and implement without any creative effort.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

An electronic device (300), and a method and circuit (130) for controlling channel switching. The electronic device (300) comprises an interface module (330), a switching module (340), a first operating system (310) and a second operating system (320), wherein the interface module (330) comprises at least two peripheral interfaces (331, 332, 333); the switching module (340) switches between a channel from the interface module (330) to the first operating system (310) and a channel from the interface module (330) to the second operating system (320) according to a control instruction of the first operating system (310); and when a system-switching instruction is detected, the switching module (340) is controlled such that same connects the channel between the interface module (330) and the second operating system (320), and whether to control the switching module (340) such that same disconnects the channel between the interface module (330) and the present operating system is determined; and the control instruction is output by means of determining a communication requirement between a peripheral and the first operating system (310) or the second operating system (320), so that communication channels can be switched according to the actual usage requirement of the peripheral.

Description

电子设备、通道切换的控制方法及控制电路Electronic device, channel switching control method and control circuit 技术领域Technical field
本申请涉及计算机技术领域,尤其涉及电子设备、通道切换的控制技术。The present application relates to the field of computer technology, and in particular, to an electronic device and a channel switching control technology.
背景技术Background technique
不同系统都有各自的优点,基于软件兼容、使用不同的系统等需求,越来越多的用户为电子设备安装双系统,厂商也积极研制生产具有双系统的电子设备,特别是两个系统能够同时运行的电子设备(以下简称双系统电子设备),以吸引更多用户。而要使两个系统能够同时运行,目前采用的方法主要是使用两个主板,每个主板安装一个系统,由于每个系统拥有一个独立的中央处理器(Central Processing Unit,CPU),从而两个系统能够同时运行。Different systems have their own advantages. Based on the requirements of software compatibility and different systems, more and more users install dual systems for electronic devices. Manufacturers also actively develop and produce electronic devices with dual systems, especially the two systems. Simultaneously running electronic devices (hereinafter referred to as dual-system electronic devices) to attract more users. To enable the two systems to run at the same time, the current method is mainly to use two motherboards, one for each motherboard, because each system has a separate Central Processing Unit (CPU), so that two The system can run at the same time.
以目前常见的具有windows系统和Android系统的双系统电子设备为例,每个系统均可能需要通过外设接口与外设传输数据,目前通常在外设接口与两个操作系统之间设置有切换器,在需要时将外设接口从其中一个操作系统的通道切换到另一个操作系统的通道。Taking the two-system electronic devices with Windows system and Android system as an example, each system may need to transmit data through peripheral interfaces and peripherals. Currently, a switcher is usually provided between the peripheral interface and the two operating systems. Switch the peripheral interface from the channel of one of the operating systems to the channel of the other operating system when needed.
由于windows系统一些功能是基于Android系统来驱动的,例如屏幕显示数据的功能,需要Android系统始终处于运行状态,windows系统才能实现显示功能。但是Android系统经常需要接入加密外设(例如加密狗)对系统进行解密,当window系统需要连接外设时,切换器会将连接加密狗的通道切换到window系统的通道,导致Android系统被锁定,从而整机被锁定无法使用。Since some functions of the windows system are driven based on the Android system, for example, the function of displaying data on the screen requires that the Android system is always in a running state, and the windows system can realize the display function. However, Android systems often need to access encrypted peripherals (such as dongle) to decrypt the system. When the window system needs to connect peripherals, the switch will switch the channel connecting the dongle to the channel of the window system, causing the Android system to be locked. Therefore, the whole machine is locked and cannot be used.
发明内容Summary of the invention
有鉴于此,本申请提供一种电子设备、通道切换的控制方法及控制电路,旨在解决双系统电子设备中随系统切换的通道无法根据外设的实际使用需求进行切换的问题。In view of this, the present application provides an electronic device, a channel switching control method, and a control circuit, which are designed to solve the problem that a channel that is switched with a system in a dual-system electronic device cannot be switched according to actual usage requirements of the peripheral device.
具体地,本申请是通过如下技术方案实现的:Specifically, the present application is implemented by the following technical solutions:
一种电子设备,包括接口模块、与所述接口模块连接的切换模块、第一操作系统和第二操作系统,接口模块包括至少两个外设接口;所述切换模块用于根据所述第一操作系统的控 制指令切换所述接口模块与第一操作系统或第二操作系统之间的通道;An electronic device includes 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, and the switching module is configured to be according to the first Operating system control Commanding a switch between the interface module and the first operating system or the second operating system;
所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并确定是否控制所述切换模块断开接口模块与本操作系统的通道。When the first operating system detects the connection request between the interface module and the second operating system, the first operating system controls the switching module to connect the interface module with the channel of the second operating system, and determines whether to control the device. The switching module disconnects the interface module from the channel of the operating system.
一个实施例中,所述第一操作系统确定是否控制所述切换模块断开接口模块与本操作系统的通道的方式包括以下任一种:In one embodiment, the manner in which the first operating system determines whether to control the switching module to disconnect the interface module from the operating system includes any one 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 interface between the interface module and the operating system;
所述第一操作系统若检测与本操作系统连接的外设处于持续通信状态,则控制切换模块不断开接口模块与本操作系统的通道。If the first operating system detects that the peripheral connected to the operating system is in a continuous communication state, the control switching module does not disconnect the interface between the interface module and the operating system.
一个实施例中,所述切换模块包括与单个外设接口连接的单端切换器、与多个单端切换器连接的多端切换器;所述单端切换器用于根据所述第一操作系统的控制指令连通外设接口与第一操作系统或多端切换器之间的通道,所述多端切换器用于根据所述第一操作系统的控制指令连通单端切换器与第一操作系统或第二操作系统之间的通道;In one embodiment, the switching module includes a single-ended switch connected to a single peripheral device, and a multi-terminal switch connected to the plurality of single-ended switches; the single-ended switch is configured according to the first operating system The control instruction is connected to the channel between the peripheral interface and the first operating system or the multi-end switch, and the multi-end switch is configured to connect the single-ended switch with the first operating system or the second operation according to the control instruction of the first operating system a channel between systems;
所述第一操作系统在检测到本操作系统与解密外设通过多端可切换通道连通时,控制切换模块连通解密外设与本操作系统之间的单端可切换通道;When the first operating system detects that the operating system and the decryption peripheral are connected through the multi-terminal switchable channel, the control switching module connects the single-ended switchable channel between the decryption peripheral and the operating system;
所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与本操作系统的通道;Controlling, by the first operating system, a connection request between the interface module and the second operating system when the first operating system is in communication with the interface module, controlling the switching module to connect the channel of the interface module with the second operating system, and controlling the switching The module does not disconnect the peripherals that decrypt the peripherals, the continuous communication state, and the channel of the operating system;
其中,所述单端可切换通道是不通过多端切换器建立的通信通道;所述多端可切换通道是通过多端切换器建立的通信通道。The single-ended switchable channel is a communication channel that is not established by the multi-terminal switch; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch.
一个实施例中,所述切换模块包括与单个外设接口连接的单端切换器、与多个外设接口连接的多端切换器;所述单端切换器及多端切换器用于根据所述第一操作系统的控制指令切换接口模块与第一操作系统或第二操作系统之间的通道;In one embodiment, the switching module includes a single-ended switch connected to a single peripheral device, and a multi-terminal switch connected to a plurality of peripheral interfaces; the single-ended switch and the multi-end switch are used according to the first The control instruction of the operating system switches a channel between the interface module and the first operating system or the second operating system;
所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与本操作系统的通道。Controlling, by the first operating system, a connection request between the interface module and the second operating system when the first operating system is in communication with the interface module, controlling the switching module to connect the channel of the interface module with the second operating system, and controlling the switching The module does not disconnect the peripherals of the peripherals, the continuous communication state, and the channel of the operating system.
一个实施例中,所述切换模块包括与接口模块中单个外设接口连接的单端切换器,所述 单端切换器用于根据所述第一操作系统的控制指令切换外设接口与第一操作系统或第二操作系统之间的通道;In one embodiment, the switching module includes a single-ended switch that interfaces with a single peripheral in the interface module, The single-ended switch is configured to switch a channel between the peripheral interface and the first operating system or the second operating system according to the control instruction of the first operating system;
所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与本操作系统的通道。Controlling, by the first operating system, a connection request between the interface module and the second operating system when the first operating system is in communication with the interface module, controlling the switching module to connect the channel of the interface module with the second operating system, and controlling the switching The module does not disconnect the peripherals of the peripherals, the continuous communication state, and the channel of the operating system.
本申请还公开了一种通道切换的控制方法,应用于电子设备中,所述电子设备包括第一操作系统及第二操作系统,包括以下步骤:The present application also discloses a method for controlling channel switching, which is applied to an electronic device, where the electronic device includes a first operating system and a second operating system, and includes the following steps:
在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制切换模块连通所述接口模块与第二操作系统的通道;When the first operating system is in communication with the interface module, when the connection request between the interface module and the second operating system is detected, the control switching module is connected to the channel of the interface module and the second operating system;
确定是否控制所述切换模块断开接口模块与第一操作系统的通道。Determining whether to control the switching module to disconnect the channel of the interface module from the first operating system.
一个实施例中,所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:In an embodiment, the step of determining whether to control the switching module to disconnect the interface module from the first operating system comprises:
当与第一操作系统连接的外设为解密外设时,控制切换模块不断开接口模块与第一操作系统的通道;When the peripheral connected to the first operating system is a decrypting peripheral, the control switching module does not disconnect the channel of the interface module from 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 of the interface module from the first operating system.
一个实施例中,所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:In an embodiment, the step of determining whether to control the switching module to disconnect the interface module from the first operating system comprises:
当检测到第一操作系统与解密外设通过多端可切换通道连通时,控制切换模块连通解密外设与第一操作系统之间的单端可切换通道;When detecting that the first operating system and the decryption peripheral are connected through the multi-terminal switchable channel, the control switching module is connected to the single-ended switchable channel between the decryption peripheral and the first operating system;
在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与第一操作系统的通道;Controlling, by the first operating system and the interface module, a connection request between the interface module and the second operating system, and controlling the switching module to continuously control the connection between the interface module and the second operating system Decrypting peripherals, peripherals in continuous communication state, and channels of the first operating system;
其中,所述单端可切换通道是不通过多端切换器建立的通信通道;所述多端可切换通道是通过多端切换器建立的通信通道。The single-ended switchable channel is a communication channel that is not established by the multi-terminal switch; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch.
一个实施例中,所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:In an embodiment, the step of determining whether to control the switching module to disconnect the interface module from the first operating system comprises:
在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求 时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与第一操作系统的通道。When the first operating system is in communication with the interface module, detecting a connection request between the interface module and the second operating system And controlling, by the switching module, the channel of the interface module and the second operating system, and controlling the switching module not to disconnect the peripheral device of the decrypting peripheral, the continuous communication state, and the channel of the first operating system.
一个实施例中,所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:In an embodiment, the step of determining whether to control the switching module to disconnect the interface module from the first operating system comprises:
在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与第一操作系统的通道。Controlling, by the first operating system and the interface module, a connection request between the interface module and the second operating system, and controlling the switching module to continuously control the connection between the interface module and the second operating system Open and decrypt peripherals, peripherals in continuous communication state, and channels of the first operating system.
本申请还公开了一种通道切换的控制电路,包括接口模块、与所述接口模块连接的切换模块、与所述切换模块连接的控制器,接口模块包括至少两个外设接口;The present application also discloses a channel switching control circuit, including an interface module, a switching module connected to the interface module, and a controller connected to the switching module, the interface module including at least two peripheral interfaces;
第一主板及第二主板通过切换模块与接口模块连接,控制器用于控制切换模块连通外设接口与第一主板或外设接口与第二主板之间的通道。The first motherboard and the second motherboard are connected to the interface module through the switching module, and the controller is configured to control the channel between the switching module connecting the peripheral interface and the first motherboard or the peripheral interface and the second motherboard.
一个实施例中,所述切换模块包括与单个外设接口连接的单端切换器、与多个单端切换器连接的多端切换器;In one embodiment, the switching module includes a single-ended switch connected to a single peripheral interface, and a multi-terminal switch connected to a plurality of single-ended switches;
第一主板与单端切换器连接,第一主板及第二主板与多端切换器连接,单端切换器及多端切换器与控制器连接;The first motherboard is connected to the single-ended switch, the first motherboard and the second motherboard are connected to the multi-terminal switch, and the single-ended switch and the multi-terminal switch are connected to the controller;
控制器用于控制切换模块连通外设接口与第一主板间的多端可切换通道或单端可切换通道;The controller is configured to control the multi-terminal switchable channel or the single-ended switchable channel between the peripheral interface of the switching module and the first motherboard;
控制器用于控制切换模块连通外设接口与第二主板之间的多端可切换通道;The controller is configured to control the multi-terminal switchable channel between the switching module connecting the peripheral interface and the second motherboard;
其中,所述单端可切换通道是不通过多端切换器建立的通信通道;所述多端可切换通道是通过多端切换器建立的通信通道。The single-ended switchable channel is a communication channel that is not established by the multi-terminal switch; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch.
一个实施例中,所述切换模块包括与单个外设接口连接的单端切换器、与多个外设接口连接的多端切换器;In one embodiment, the switching module includes a single-ended switch that interfaces with a single peripheral device, and a multi-terminal switch that interfaces with a plurality of peripheral devices;
第一主板及第二主板与单端切换器连接,第一主板及第二主板与多端切换器连接,单端切换器及多端切换器与控制器连接;The first motherboard and the second motherboard are connected to the single-ended switch, the first motherboard and the second motherboard are connected to the multi-terminal switch, and the single-ended switch and the multi-terminal switch are connected to the controller;
控制器用于控制单端切换器连通第一主板/第二主板与外设接口之间的通道;The controller is configured to control the channel between the single-ended switch and the first motherboard/second motherboard and the peripheral interface;
控制器用于控制多端切换器连通第一主板/第二主板与外设接口之间的通道。The controller is configured to control the channel between the multi-terminal switch and the first motherboard/second motherboard and the peripheral interface.
一个实施例中,所述切换模块包括与接口模块中单个外设接口连接的单端切换器,单端 切换器与控制器连接;In one embodiment, the switching module includes a single-ended switch that interfaces with a single peripheral in the interface module, single-ended The switch is connected to the controller;
控制器用于控制单端切换器连通第一主板/第二主板与外设接口之间的通道。The controller is configured to control the channel between the single-ended switch and 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; the first operating system detects the connection between the interface module and the second operating system in a state of being connected to the interface module. When requesting, controlling the switching module to connect the interface module with the channel of the second operating system, and determining whether to control the switching module to disconnect the interface module from the operating system; when performing system switching, determining the peripheral device and the The communication requirements of an operating system or a second operating system output control commands so that the communication channel can be switched according to the actual usage requirements of the peripheral device.
附图说明DRAWINGS
图1是一种现在双系统电子设备的结构示意图;1 is a schematic structural view of a present dual system electronic device;
图2是另一种现在双系统电子设备的结构示意图;2 is a schematic structural view of another present dual system electronic device;
图3a是本申请一示例性实施例示出的一种电子设备的结构示意图;FIG. 3a is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application; FIG.
图3b是本申请另一示例性实施例示出的一种电子设备的结构示意图;FIG. 3b is a schematic structural diagram of an electronic device according to another exemplary embodiment of the present application; FIG.
图4是本申请又一示例性实施例示出的一种电子设备的结构示意图;4 is a schematic structural diagram of an electronic device according to still another exemplary embodiment of the present application;
图5是本申请的电子设备控制通道切换的操作流程示意图;FIG. 5 is a schematic diagram of an operation flow of an electronic device control channel switching according to the present application; FIG.
图6是本申请又一示例性实施例示出的一种电子设备的结构示意图;6 is a schematic structural diagram of an electronic device according to still another exemplary embodiment of the present application;
图7是本申请又一示例性实施例示出的一种电子设备的结构示意图;FIG. 7 is a schematic structural diagram of an electronic device according to still another exemplary embodiment of the present application; FIG.
图8是本申请一示例性实施例示出的一种通道切换的控制方法的流程图;FIG. 8 is a flowchart of a method for controlling channel switching according to an exemplary embodiment of the present application; FIG.
图9是本申请一示例性实施例示出的另一种通道切换的控制方法的流程图;FIG. 9 is a flowchart of another method for controlling channel switching according to an exemplary embodiment of the present application; FIG.
图10是本申请一示例性实施例示出的又一种通道切换的控制方法的流程图;FIG. 10 is a flowchart of still another method for controlling channel switching according to an exemplary embodiment of the present application; FIG.
图11是本申请一示例性实施例示出的又一种通道切换的控制方法的流程图;FIG. 11 is a flowchart of still another method for controlling channel switching according to an exemplary embodiment of the present application; FIG.
图12是本申请一示例性实施例示出的又一种通道切换的控制方法的流程图;FIG. 12 is a flowchart of still another method for controlling channel switching according to an exemplary embodiment of the present application; FIG.
图13是本申请一示例性实施例示出的一种通道切换的控制电路的逻辑框图;FIG. 13 is a logic block diagram of a channel switching control circuit according to an exemplary embodiment of the present application; FIG.
图14是本申请一示例性实施例示出的另一种通道切换的控制电路的逻辑框图;FIG. 14 is a logic block diagram of another channel switching control circuit according to an exemplary embodiment of the present application; FIG.
图15是本申请一示例性实施例示出的又一种通道切换的控制电路的逻辑框图; FIG. 15 is a logic block diagram of still another channel switching control circuit according to an exemplary embodiment of the present application; FIG.
图16是本申请一示例性实施例示出的又一种通道切换的控制电路的逻辑框图。FIG. 16 is a logic block diagram of still another channel switching control circuit according to an exemplary embodiment of the present application.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with aspects of the present application as detailed in the appended claims.
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present application is for the purpose of describing particular embodiments, and is not intended to be limiting. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses 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 to describe various information in this application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information without departing from the scope of the present application. Similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to a determination."
本申请所涉及的电子设备具有两个操作系统,每个系统配置一个主板及中央处理器,因而两个操作系统能够同时运行。操作系统包括Windows系统、Unix系统、Netware系统、Linux系统、Mac系统、Android系统、iOS系统等,两个操作系统的类型可以相同也可以不同,本申请的电子设备通过提供两种操作系统,可以增加电子设备的适用性,每一操作系统可以为用户提供不同的应用环境。操作系统需要与外设连接时,一般是通过外设接口进行连接,由于每一操作系统具有独立的主板及中央处理器,因此,每一操作系统均有相应的接口用于连接外设。The electronic device involved in the present application has two operating systems, each of which is configured with a main board and a central processing unit, so that the two operating systems can operate 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 may be the same or different. The electronic device of the present application can provide two operating systems. Increasing the applicability of electronic devices, each operating system can provide users with different application environments. When the operating system needs to be connected to a peripheral device, it is usually connected through a peripheral interface. Since each operating system has a separate motherboard and a central processing unit, each operating system has a corresponding interface for connecting peripherals.
如图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 shown in FIG. 1 , the first operating system 110 can be connected to the peripheral device 191 through the peripheral interface 131 , and the second operating system 120 can be connected to the peripheral device 192 through the peripheral interface 132 and through the peripheral interface 133 . The peripheral device 193 is connected. When the number of such interfaces in the second operating system 120 is limited and cannot be directly connected to the peripheral interface 132 and the peripheral interface 133, the number of interfaces can be expanded by 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 first operating system 120 can only use the peripheral interface 132. Peripheral interface 133. When the user uses the peripheral device 191 in the first operating system 110, When switching to the second operating system 120 still wants to use the peripheral 191, the peripheral 191 needs to be manually inserted into the peripheral interface 132 or the peripheral interface 133 to use the peripheral 191 in the second operating system 120, the interface module 130 The utilization rate is low and it is not easy 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, only one multi-terminal switch 242 is added compared with FIG. 1, and the multi-end switch 242 switches according to the control command of the first operating system 210, and is in use. In the first operating system 210, the multi-end switch 242 is connected to the channel between the interface module 230 and the first operating system 210. When the system is switched to the second operating system 220, the multi-terminal switch 242 is connected 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 switch 242, the multi-terminal switch 242 changes the peripheral interface 231 and the peripheral interface 232 at the same time. The channel of the peripheral interface 233 is connected, and the control command sent by the first operating system 210 for controlling the switching of the multi-end switch 242 is also simple, and is only used to control the multi-end switch 242 to switch to communicate with the currently used operating system, and cannot be based on Actually use the demand switching channel. 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 multi-end switch 242 switches, interrupting the peripheral device 291 and the first operating system 210. Path, data transmission is terminated.
图3a是本申请一示例性实施例示出的一种电子设备的结构示意图;如图3a所示,该电子设备300包括接口模块330、切换模块340、第一操作系统310和第二操作系统320,接口模块330通过切换模块340与第一操作系统310或第二操作系统320连接,切换模块340根据第一操作系统310的控制指令切换接口模块330与第一操作系统310或第二操作系统320之间的通道;3a is a schematic structural diagram of an electronic device according to 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. The switching module 340 switches the interface module 330 to the first operating system 310 or the second operating system 320 according to the control instruction of the first operating system 310. Channel between
第一操作系统310在与接口模块330连通的状态下,检测到接口模块330与第二操作系统320的连接请求时,控制切换模块340连通接口模块330与第二操作系统320的通道,并确定是否控制切换模块340断开接口模块330与本操作系统的通道。When the first operating system 310 is in communication with the interface module 330, when detecting the connection request of the interface module 330 and the second operating system 320, the control switching module 340 connects 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 interface module 330 from the channel of the operating system.
接口模块330中外设接口的数量可以任意设置,为便于描述,本实施例中以接口模块330包含3个外设接口(外设接口331、外设接口332和外设接口333)为例进行说明。The number of the peripheral interfaces in the interface module 330 can be arbitrarily set. For convenience of description, in the embodiment, the interface module 330 includes three peripheral interfaces (the peripheral interface 331, the peripheral interface 332, and the peripheral interface 333) as an example for description. .
电子设备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 powered on, the first operating system 310 and the second operating system 320 are all started to run. Usually, the system used by the power-on default is set, or a selection interface is provided at the time of power-on, and the system used is selected according to the user's instruction. When the first operating system 310 is currently used, the first operating system 310 is in communication with the interface module 330, and the connection request of the interface module 330 and the second operating system 320 is equivalent to the user switching to the second operating system 320, 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 communicate 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 interface module 330 from the operation. systematic aisle. Obviously, the control instruction may be sent by the first operating system 310 or the second operating system 320, or the first operating system 310 and the second operating system 320 jointly control the switching of the switching module 340. For convenience of description and control, the embodiment The control command that selects the control switching module 340 to perform the switching is issued by the first operating system 310. The switching of the switching module 340 may be directly controlled by the first operating system 310. Alternatively, as shown in FIG. 3b, the controller 350 controls the switching module 340 according to the control instruction of the first operating system 310, due to the switch button of the electronic device 300 ( The control unit 350 controls the switching module 340 by expanding the function of the original controller 350, and the switching module 340 needs to maintain the connected state according to the control command, and passes through the controller 350. The way to control can greatly reduce power consumption without adding components.
第一操作系统310在检测到切换系统的指令时,需要控制切换模块340进行切换,以使接口模块330与第二操作系统320连通,但是,接口模块330与第一操作系统310是否能够断开还需要视情况而定,本申请一实施例中,第一操作系统310确定是否控制切换模块340断开接口模块330与本操作系统的通道的方式包括以下任一种:When detecting the instruction of the switching system, the first operating system 310 needs to control the switching module 340 to perform switching so that the interface module 330 is in communication with the second operating system 320, but whether the interface module 330 and the first operating system 310 can be disconnected. The manner in which the first operating system 310 determines whether to control the switching module 340 to disconnect the interface between the interface module 330 and the operating system includes any of the following:
第一操作系统310若检测到与本操作系统连接的外设为解密外设,则控制切换模块340不断开接口模块330与本操作系统的通道;If the first operating system 310 detects that the peripheral connected to the operating system is a decrypted peripheral, the control switching module 340 does not disconnect the interface between the interface module 330 and the operating system;
第一操作系统310若检测与本操作系统连接的外设处于持续通信状态,则控制切换模块340不断开接口模块330与本操作系统的通道。When the first operating system 310 detects that the peripheral connected to the operating system is in a continuous communication state, the control switching module 340 does not disconnect the interface 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 described above, when the first operating system 310 and the peripheral device 391 are continuously communicating, 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 remains in the continuous communication state. The channel is not disconnected. Of course, the switching module 340 can also be controlled to switch the channel to allow the peripheral device 391 to communicate with the second operating system 320 at the end of the continuous communication. Some programs need to be connected to a decryption peripheral (such as a dongle) to be able 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. For example, since some functions of the windows system are driven by the Android system, for example, the function of displaying data on the screen requires that the Android system is always in a running state, 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 be used normally only when the Android system is connected to the decryption peripheral. When the peripheral device 392 connected to the peripheral interface 332 is a decrypting peripheral, the first operating system 310 controls. The peripheral interface 332 is kept in communication with the channel of the operating system. Even when the system is switched, the switching module 340 is controlled to not disconnect the interface between the interface module 330 and the operating system, so as to avoid the locking of the Android system and the decrypting peripheral. Lock is not available.
显然,要实现本申请的方案,需要切换模块340为不同的外设接口架设不同的通道,使接口模块330中的外设接口都能与第一操作系统310、第二操作系统320连通,又能独立对 每一外设接口所处的通道进行切换。通道设计方案形式各异,只要能达到对每一外设接口所处的通道进行独立切换即可,接下来将具体介绍几种方案。Obviously, to implement the solution of the present application, the switching module 340 needs to set 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 Independently The channel in which each peripheral interface is located is switched. The channel design schemes are different in form, as long as the channels in which each peripheral interface is located can be switched independently. Next, several schemes will be specifically introduced.
图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 according to still another exemplary embodiment of the present application; the switching module 440 includes a single-ended switch 441, 442, 443 and a multi-terminal switch 444, and the single-ended switch 441 and the peripheral interface 431 is connected, the single-ended switch 442 is connected to the peripheral interface 432, the single-ended switch 443 is connected to the peripheral interface 433, and the first operating system 410 and the multi-end switch 444 are connected to the single-ended switch 441, 442, 443; The first operating system 410 and the second operating system 420 are both connected to the multi-end switch 444;
单端切换器441、442、443根据第一操作系统410的控制指令连通外设接口431、432、433与第一操作系统410或多端切换器444之间的通道,多端切换器444根据第一操作系统410的控制指令连通单端切换器441、442、443与第一操作系统410或第二操作系统420之间的通道;The single-ended switch 441, 442, 443 communicates the channel between the peripheral interface 431, 432, 433 and the first operating system 410 or the multi-end switch 444 according to the control instruction of the first operating system 410, and the multi-end switch 444 is according to the first The control instruction of the operating system 410 connects the channel between the single-ended switch 441, 442, 443 and the first operating system 410 or the second operating system 420;
第一操作系统410在检测到本操作系统与解密外设通过多端可切换通道连通时,控制切换模块440连通解密外设与本操作系统之间的单端可切换通道;The first operating system 410 controls the switching module 440 to communicate with the single-ended switchable channel between the decryption peripheral and the operating system when detecting that the operating system and the decryption peripheral are connected through the multi-terminal switchable channel;
第一操作系统410在与接口模块430连通的状态下,检测到接口模块430与第二操作系统420的连接请求时,控制切换模块440连通接口模块430与第二操作系统420的通道,并控制切换模块440不断开解密外设、持续通信状态的外设与本操作系统的通道;When the first operating system 410 is in communication with the interface module 430, when detecting the connection request of the interface module 430 and the second operating system 420, the control switching module 440 connects the channel of the interface module 430 and the second operating system 420, and controls The switching module 440 does not disconnect the peripherals of the peripheral device and the operating system that decrypt the peripheral device, the continuous communication state;
其中,单端可切换通道是不通过多端切换器444建立的通信通道;多端可切换通道是通过多端切换器444建立的通信通道。The single-ended switchable channel is a communication channel that is not established by the multi-terminal switch 444; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch 444.
如图4所示,外设491通过外设接口431、单端切换器441、多端切换器444与第一操作系统410连接的通道为多端可切换通道,外设491通过外设接口431、单端切换器441与第一操作系统410连接的通道为单端可切换通道。As shown in FIG. 4, the peripheral device 491 is connected to the first operating system 410 through the peripheral interface 431, the single-ended switch 441, and the multi-terminal switch 444, and the peripheral device 491 passes through the peripheral interface 431, The channel connected to the first operating system 410 by the end switch 441 is a single-ended 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 powered on, if the connection unlocking peripheral is not required to be unlocked, the first operating system 410 (Android system) controls the switching module 440 to communicate the channel between the interface module 430 and the currently used operating system. If the connection is required to unlock the peripheral, the control interface module 430 is connected to the Android system through the multi-terminal switchable channel. When the peripheral device 491 is inserted into the peripheral interface 431, it is determined whether the peripheral 491 is an unlocked peripheral. When the peripheral device 491 is an unlocked peripheral device, the electronic device 400 is unlocked. Since the multi-terminal switchable channel also controls the channels of other peripheral interfaces, the single-ended switch 441 is controlled to switch without affecting the normal use of other peripheral interfaces. The peripheral device 491 is connected to the Android system through the single-ended switchable channel, and when the operating system is subsequently switched, the single-ended switch 441 is controlled to keep the current channel unbroken.
由于解锁外设可能被插在外设接口431、432、433中的任意一个,若外设接口431、432、433没有可以区分位置的标志,则还需要通过判断解锁外设插入的是哪个外设接口,一实施例采用的方式是第一操作系统410通过控制器450依次向单端切换器441、442、443发送切换指令,当控制器450控制单端切换器441切换后,解锁外设即通过单端可切换通道与Android系统连通,即解锁外设与外设接口431连接,则无需再控制单端切换器442、443进行切换。Since the unlocking peripheral may be inserted in any one of the peripheral interfaces 431, 432, and 433, if the peripheral interfaces 431, 432, and 433 have no distinguishable position flag, it is also necessary to determine which peripheral device is inserted by the unlocking peripheral. In an embodiment, the first operating system 410 sends a switching instruction to the single-ended switch 441, 442, 443 through the controller 450. When the controller 450 controls the single-ended switch 441 to switch, the peripheral 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, so that it is no longer necessary to control the single-ended switch 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 the multi-terminal switchable channel. 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 the peripheral device 493 is in a continuous communication state with the first operating system 410, then the switching module 440 is first controlled not to switch until the peripherals 492, 493 and the first operating system 410 end the continuous communication state; or the user is asked whether to force Switching, according to the instruction triggered by the user, controls whether the switching module 440 switches. Through the above manner, the purpose of switching the control channel according to the actual use requirement 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连接;6 is a schematic structural diagram of an electronic device 600 according to still another exemplary embodiment of the present application; the switching module 640 includes a single-ended switch 641 connected to the peripheral interface 631, and a multi-terminal switch connected to the peripheral interfaces 632 and 633. The first operating system 610 and the second operating system 620 are both connected to the single-ended switch 641, and the first operating system 610 and the second operating system 620 are both connected to the multi-end switch 642;
单端切换器641及多端切换器642根据第一操作系统610的控制指令切换接口模块630与第一操作系统610或第二操作系统620之间的通道;The single-ended switch 641 and the multi-end switch 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 is in communication with the interface module 630, when detecting the connection request of the interface module 630 and the second operating system 620, the control switching module 640 connects the channel of the interface module 630 and the second operating system 620, and controls The switching module 640 does not disconnect the peripherals of the peripheral device, the continuous communication state, and the channel of 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 is connected to the first operating system 610 or the second operating system 620 through the single-ended switch 641, and the peripheral interfaces 632, 633 are connected to the first operating system 610 or the second operating system 620 through the multi-end switch 642. The end switch 641 and the multi-end switch 642 are switched according to the control command of the first operating system 610. As described above, the control command of the first operating system 610 can be sent to the single-ended switch 641 through the controller 650. Multi-terminal switch 642. The peripheral interfaces 631, 632, 633 in the interface module 630 can each be in communication with the first operating system 610 or the second operating system 620, but the single-ended switch 641 is only used to switch the peripheral interface 631 with the first operating system 610. Or a channel between the second operating system 620. Therefore, the decryption peripheral or the like can be connected to the first operating system 610 or the second operating system 620 through the peripheral interface 631, so that the switching of the decrypted peripheral channel does not affect other peripherals. For the selection of the channel, in this embodiment, when the peripheral interfaces 631, 632, and 633 in the interface module 630 can be connected to the first operating system 610 or the second operating system 620, the single-ended switch is also reduced. The number of 641 and multi-terminal switchers 642 reduces cost.
图7是本申请又一示例性实施例示出的一种电子设备700的结构示意图;切换模块740包括单端切换器741、742、743,单端切换器741与外设接口731连接,单端切换器742与外设接口732连接,单端切换器743与外设接口733连接,单端切换器741、742、743用于根据第一操作系统710的控制指令切换外设接口730与第一操作系统710或第二操作系统720之间的通道;FIG. 7 is a schematic structural diagram of an electronic device 700 according to still 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. 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 switch 741, 742, 743 is configured to switch the peripheral interface 730 and the first according to the control command of the first operating system 710. 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 the connection request of the interface module 730 and the second operating system 720 in the state of being connected to the interface module 730, the control switching module 740 connects the channel of the interface module 730 and the second operating system 720, and controls The switching module 740 does not disconnect the peripherals of the peripheral device and the operating system that decrypt the peripheral, the continuous communication state.
接口模块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 of the peripheral interfaces 731, 732, and 733 of the interface module 730 is configured with a single-ended switch 741, 742, 743, and each of the single-ended switches 741, 742, 743 can be associated with the first operating system 710 or the first The second operating system 720 is connected to the controller 750, and the single-ended switch 741, 742, and 743 are switched according to the control command of the first operating system 710. Single-ended switchers 741, 742, 743. Each of the peripheral interfaces 731, 732, and 733 in the embodiment can be independently connected to the first operating system 710 or the second operating system 720, thereby improving the flexible use of the peripheral interfaces 731, 732, and 733 in the interface module 730. Sex.
与前述电子设备的实施例相对应,本申请还提供了通道切换的控制方法的实施例。Corresponding to the foregoing embodiment of the electronic device, the present application also provides an embodiment of a method of controlling channel switching.
请参考图8,图8是本申请一示例性实施例示出的一种通道切换的控制方法的流程图;该方法应用于电子设备中,所述电子设备包括第一操作系统及第二操作系统,包括以下步骤:Please refer to FIG. 8. FIG. 8 is a flowchart of a method for controlling channel switching according to an exemplary embodiment of the present application. The method is applied to an electronic device, where the electronic device 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 in the state that the first operating system is in communication with the interface module, the control switching module connects the channel of the interface module and the second operating system;
步骤S820:确定是否控制所述切换模块断开接口模块与第一操作系统的通道。Step S820: Determine whether to control the switching module to disconnect the channel of the interface module from the first operating system.
图9是本申请一示例性实施例示出的另一种通道切换的控制方法的流程图;所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:FIG. 9 is a flowchart of another method for controlling channel switching according to an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the interface module from the first operating system includes:
步骤S901:当与第一操作系统连接的外设为解密外设时,控制切换模块不断开接口模块与第一操作系统的通道;Step S901: When the peripheral device connected to the first operating system is a decrypting peripheral device, the control switching module does not disconnect the interface between the interface module and the first operating system;
步骤S902:当与第一操作系统连接的外设处于持续通信状态时,控制切换模块不断开接口模块与第一操作系统的通道。Step S902: When the peripheral connected to the first operating system is in a continuous communication state, the control switching module does not disconnect the interface of the interface module from the first operating system.
图10是本申请一示例性实施例示出的又一种通道切换的控制方法的流程图;所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括: FIG. 10 is a flowchart of still another method for controlling channel switching according to an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the interface module from the first operating system includes:
步骤S101:当检测到第一操作系统与解密外设通过多端可切换通道连通时,控制切换模块连通解密外设与第一操作系统之间的单端可切换通道;Step S101: When it is detected that the first operating system and the decryption peripheral are connected through the multi-terminal switchable channel, the control switching module is connected to the single-ended 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 in a state in which the first operating system is in communication with the interface module, control the channel of the switching module connecting the interface module and the second operating system, and control the The switching module does not disconnect the peripheral device of the decrypting peripheral, the continuous communication state, and the channel of the first operating system;
其中,所述单端可切换通道是不通过多端切换器建立的通信通道;所述多端可切换通道是通过多端切换器建立的通信通道。The single-ended switchable channel is a communication channel that is not established by the multi-terminal switch; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch.
图11是本申请一示例性实施例示出的又一种通道切换的控制方法的流程图;所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:FIG. 11 is a flowchart of still another method for controlling channel switching according to an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the interface module from the first operating system includes:
步骤S111:在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与第一操作系统的通道。Step S111: When the connection request between the interface module and the second operating system is detected in a state in which the first operating system is in communication with the interface module, control the channel of the switching module to connect the interface module with the second operating system, and control the The switching module does not disconnect the peripherals that decrypt the peripheral, the continuous communication state, and the channel of the first operating system.
图12是本申请一示例性实施例示出的又一种通道切换的控制方法的流程图;所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:FIG. 12 is a flowchart of still another method for controlling channel switching according to an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the interface module from the first operating system includes:
步骤S121:在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与第一操作系统的通道。Step S121: When the connection request between the interface module and the second operating system is detected in a state in which the first operating system is in communication with the interface module, the switching module is controlled to communicate with the channel of the second operating system, and the control is performed. The switching module does not disconnect the peripherals that decrypt the peripheral, the continuous communication state, and the channel of the first operating system.
上述方法中各步骤的功能和作用的实现过程具体详见上述电子设备中对应单元的实现过程,在此不再赘述。The implementation process of the functions and functions of the steps in the foregoing methods is specifically described in the implementation process of the corresponding unit in the foregoing electronic device, and details are not described herein again.
进一步地,本申请还提供了通道切换的控制电路的实施例。Further, the present application also provides an embodiment of a control circuit for channel switching.
请参考图13,图13是本申请一示例性实施例示出的一种通道切换的控制电路130的逻辑框图;所述控制电路130包括接口模块132、与所述接口模块132连接的切换模块136、与所述切换模块136连接的控制器131,接口模块132包括至少两个外设接口133、134、135;Please refer to FIG. 13. FIG. 13 is a logic block diagram of a channel switching control circuit 130 according to 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. The controller 131 connected to the switching module 136, 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 motherboard 231 and the second motherboard 232 are connected to the interface module 132 through the switching module 136. The controller 131 is configured to control the switching module 136 to communicate with the peripheral interfaces 133, 134, 135 and the first motherboard 231 or the peripheral interfaces 133, 134, A channel between the 135 and the second motherboard 232.
图14是本申请一示例性实施例示出的另一种通道切换的控制电路140的逻辑框图;切换模块146包括与单个外设接口143、144、145连接的单端切换器147、148、149,与多 个单端切换器147、148、149连接的多端切换器240;14 is a logic block diagram of another channel switching control circuit 140 shown in an exemplary embodiment of the present application; the switching module 146 includes single-ended switches 147, 148, 149 connected to a single peripheral interface 143, 144, 145. And more a single-ended switch 147, 148, 149 connected to the multi-terminal switch 240;
第一主板241与单端切换器147、148、149连接,第一主板241及第二主板242与多端切换器240连接,单端切换器147、148、149及多端切换器240与控制器141连接;The first main board 241 is connected to the single-ended switchers 147, 148, and 149, the first main board 241 and the second main board 242 are connected to the multi-end switch 240, and the single-ended switchers 147, 148, and 149 and the multi-end switch 240 and the controller 141 are connected. connection;
控制器141用于控制切换模块146连通外设接口143、144、145与第一主板241间的多端可切换通道或单端可切换通道;The controller 141 is configured to control the switching module 146 to communicate with the multi-terminal switchable channel or the single-ended switchable channel between the peripheral interface 143, 144, 145 and the first motherboard 241;
控制器141用于控制切换模块146连通外设接口143、144、145与第二主板242之间的多端可切换通道;The controller 141 is configured to control the switching module 146 to communicate with the multi-terminal switchable channel between the peripheral interfaces 143, 144, 145 and the second main board 242;
其中,所述单端可切换通道是不通过多端切换器240建立的通信通道;所述多端可切换通道是通过多端切换器240建立的通信通道。The single-ended switchable channel is a communication channel that is not established by the multi-terminal switch 240; the multi-terminal switchable channel is a communication channel established by the multi-end switch 240.
图15是本申请一示例性实施例示出的又一种通道切换的控制电路150的逻辑框图;切换模块156包括与单个外设接口153连接的单端切换器157,与多个外设接口154、155连接的多端切换器158;FIG. 15 is a logic block diagram of still another channel switching control circuit 150 according to an exemplary embodiment of the present application; the switching module 156 includes a single-ended switch 157 connected to a single peripheral interface 153, and a plurality of peripheral interfaces 154. 155 connected multi-terminal switch 158;
第一主板251及第二主板252与单端切换器157连接,第一主板251及第二主板252与多端切换器158连接,单端切换器157及多端切换器158与控制器151连接;The first main board 251 and the second main board 252 are connected to the single-ended switch 157, the first main board 251 and the second main board 252 are connected to the multi-end switch 158, and the single-ended switch 157 and the multi-end switch 158 are connected to the controller 151.
控制器151用于控制单端切换器157连通第一主板251/第二主板252与外设接口153之间的通道;The controller 151 is configured to control the single-ended switch 157 to communicate with the channel between the first main board 251 / the second main board 252 and the peripheral interface 153;
控制器151用于控制多端切换器158连通第一主板251/第二主板252与外设接口154、155之间的通道。The controller 151 is configured to control the multi-terminal switch 158 to communicate with the channel between the first main board 251 / the second main board 252 and the peripheral interfaces 154, 155.
图16是本申请一示例性实施例示出的又一种通道切换的控制电路160的逻辑框图;切换模块166包括与接口模块162中单个外设接口163、164、165连接的单端切换器167、168、169,单端切换器167、168、169与控制器161连接;16 is a logic block diagram of yet another channel switching control circuit 160, shown in an exemplary embodiment of the present application; the switching module 166 includes a single-ended switch 167 coupled to a single peripheral interface 163, 164, 165 in the interface module 162. , 168, 169, the single-ended switch 167, 168, 169 is connected to the controller 161;
控制器161用于控制单端切换器167、168、169连通第一主板261/第二主板262与外设接口163、164、165之间的通道。The controller 161 is configured to control the single-ended switch 167, 168, 169 to communicate with the channel between the first main board 261 / the second main board 262 and the peripheral interfaces 163, 164, 165.
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。The implementation process of the function and the function of each unit in the foregoing device is specifically described in the implementation process of the corresponding steps in the foregoing method, and details are not described herein again.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理 单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical. Units can be located in one place or distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present application. Those of ordinary skill in the art can understand and implement without any creative effort.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。 The above is only the preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., which are made within the spirit and principles of the present application, should be included in the present application. Within the scope of protection.

Claims (14)

  1. 一种电子设备,其特征在于,包括接口模块、与所述接口模块连接的切换模块、第一操作系统和第二操作系统,接口模块包括至少两个外设接口;所述切换模块用于根据所述第一操作系统的控制指令切换所述接口模块与第一操作系统或第二操作系统之间的通道;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 comprising at least two peripheral interfaces; the switching module is configured according to The control instruction of the first operating system switches a channel between the interface module and the first operating system or the second operating system;
    所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并确定是否控制所述切换模块断开接口模块与本操作系统的通道。When the first operating system detects the connection request between the interface module and the second operating system, the first operating system controls the switching module to connect the interface module with the channel of the second operating system, and determines whether to control the device. The switching module disconnects the interface module from the channel of the operating system.
  2. 如权利要求1所述的电子设备,其特征在于,所述第一操作系统确定是否控制所述切换模块断开接口模块与本操作系统的通道的方式包括以下任一种:The electronic device according to claim 1, wherein the manner in which the first operating system determines whether to control the switching module to disconnect the interface module from the operating system includes any one 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 interface between the interface module and the operating system;
    所述第一操作系统若检测与本操作系统连接的外设处于持续通信状态,则控制切换模块不断开接口模块与本操作系统的通道。If the first operating system detects that the peripheral connected to the operating system is in a continuous communication state, the control switching module does not disconnect the interface between the interface module and the operating system.
  3. 如权利要求2所述的电子设备,其特征在于,所述切换模块包括与单个外设接口连接的单端切换器、与多个单端切换器连接的多端切换器;所述单端切换器用于根据所述第一操作系统的控制指令连通外设接口与第一操作系统或多端切换器之间的通道,所述多端切换器用于根据所述第一操作系统的控制指令连通单端切换器与第一操作系统或第二操作系统之间的通道;The electronic device according to claim 2, wherein said switching module comprises a single-ended switch connected to a single peripheral device, a multi-terminal switch connected to a plurality of single-ended switches; said single-ended switch The channel between the peripheral interface and the first operating system or the multi-end switch is connected according to the control instruction of the first operating system, and the multi-end switch is configured to connect the single-ended switch according to the control instruction of the first operating system a channel between the first operating system or the second operating system;
    所述第一操作系统在检测到本操作系统与解密外设通过多端可切换通道连通时,控制切换模块连通解密外设与本操作系统之间的单端可切换通道;When the first operating system detects that the operating system and the decryption peripheral are connected through the multi-terminal switchable channel, the control switching module connects the single-ended switchable channel between the decryption peripheral and the operating system;
    所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与本操作系统的通道;Controlling, by the first operating system, a connection request between the interface module and the second operating system when the first operating system is in communication with the interface module, controlling the switching module to connect the channel of the interface module with the second operating system, and controlling the switching The module does not disconnect the peripherals that decrypt the peripherals, the continuous communication state, and the channel of the operating system;
    其中,所述单端可切换通道是不通过多端切换器建立的通信通道;所述多端可切换通道是通过多端切换器建立的通信通道。The single-ended switchable channel is a communication channel that is not established by the multi-terminal switch; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch.
  4. 如权利要求2所述的电子设备,其特征在于,所述切换模块包括与单个外设接口连接的单端切换器、与多个外设接口连接的多端切换器;所述单端切换器及多端切换器用于根据所述第一操作系统的控制指令切换接口模块与第一操作系统或第二操作系统之间的通道;The electronic device according to claim 2, wherein the switching module comprises a single-ended switch connected to a single peripheral device, a multi-terminal switch connected to a plurality of peripheral interfaces; the single-ended switch and The multi-end switch is configured to switch a channel between the interface module and the first operating system or the second operating system according to the control instruction of the first operating system;
    所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与本操作系统的通道。 Controlling, by the first operating system, a connection request between the interface module and the second operating system when the first operating system is in communication with the interface module, controlling the switching module to connect the channel of the interface module with the second operating system, and controlling the switching The module does not disconnect the peripherals of the peripherals, the continuous communication state, and the channel of the operating system.
  5. 如权利要求2所述的电子设备,其特征在于,所述切换模块包括与接口模块中单个外设接口连接的单端切换器,所述单端切换器用于根据所述第一操作系统的控制指令切换外设接口与第一操作系统或第二操作系统之间的通道;The electronic device of claim 2, wherein the switching module comprises a single-ended switch that interfaces with a single peripheral in the interface module, the single-ended switch for controlling according to the first operating system Instructing to switch a channel between the peripheral interface and the first operating system or the second operating system;
    所述第一操作系统在与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与本操作系统的通道。Controlling, by the first operating system, a connection request between the interface module and the second operating system when the first operating system is in communication with the interface module, controlling the switching module to connect the channel of the interface module with the second operating system, and controlling the switching The module does not disconnect the peripherals of the peripherals, the continuous communication state, and the channel of the operating system.
  6. 一种通道切换的控制方法,应用于电子设备中,所述电子设备包括第一操作系统及第二操作系统,其特征在于,包括以下步骤:A method for controlling channel switching is applied to an electronic device, where the electronic device includes a first operating system and a second operating system, and the method includes the following steps:
    在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制切换模块连通所述接口模块与第二操作系统的通道;When the first operating system is in communication with the interface module, when the connection request between the interface module and the second operating system is detected, the control switching module is connected to the channel of the interface module and the second operating system;
    确定是否控制所述切换模块断开接口模块与第一操作系统的通道。Determining whether to control the switching module to disconnect the channel of the interface module from the first operating system.
  7. 如权利要求6所述的通道切换的控制方法,其特征在于,所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:The method of controlling the channel switching according to claim 6, wherein the step of determining whether to control the switching module to disconnect the interface module from the first operating system comprises:
    当与第一操作系统连接的外设为解密外设时,控制切换模块不断开接口模块与第一操作系统的通道;When the peripheral connected to the first operating system is a decrypting peripheral, the control switching module does not disconnect the channel of the interface module from 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 of the interface module from the first operating system.
  8. 如权利要求7所述的通道切换的控制方法,其特征在于,所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:The method of controlling the channel switching according to claim 7, wherein the step of determining whether to control the switching module to disconnect the interface module from the first operating system comprises:
    当检测到第一操作系统与解密外设通过多端可切换通道连通时,控制切换模块连通解密外设与第一操作系统之间的单端可切换通道;When detecting that the first operating system and the decryption peripheral are connected through the multi-terminal switchable channel, the control switching module is connected to the single-ended switchable channel between the decryption peripheral and the first operating system;
    在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与第一操作系统的通道;Controlling, by the first operating system and the interface module, a connection request between the interface module and the second operating system, and controlling the switching module to continuously control the connection between the interface module and the second operating system Decrypting peripherals, peripherals in continuous communication state, and channels of the first operating system;
    其中,所述单端可切换通道是不通过多端切换器建立的通信通道;所述多端可切换通道是通过多端切换器建立的通信通道。The single-ended switchable channel is a communication channel that is not established by the multi-terminal switch; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch.
  9. 如权利要求7所述的通道切换的控制方法,其特征在于,所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:The method of controlling the channel switching according to claim 7, wherein the step of determining whether to control the switching module to disconnect the interface module from the first operating system comprises:
    在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与第一操作系统的通道。 Controlling, by the first operating system and the interface module, a connection request between the interface module and the second operating system, and controlling the switching module to continuously control the connection between the interface module and the second operating system Open and decrypt peripherals, peripherals in continuous communication state, and channels of the first operating system.
  10. 如权利要求7所述的通道切换的控制方法,其特征在于,所述确定是否控制所述切换模块断开接口模块与第一操作系统的通道的步骤包括:The method of controlling the channel switching according to claim 7, wherein the step of determining whether to control the switching module to disconnect the interface module from the first operating system comprises:
    在第一操作系统与接口模块连通的状态下,检测到接口模块与第二操作系统的连接请求时,控制所述切换模块连通接口模块与第二操作系统的通道,并控制所述切换模块不断开解密外设、持续通信状态的外设与第一操作系统的通道。Controlling, by the first operating system and the interface module, a connection request between the interface module and the second operating system, and controlling the switching module to continuously control the connection between the interface module and the second operating system Open and decrypt peripherals, peripherals in continuous communication state, and channels of the first operating system.
  11. 一种通道切换的控制电路,其特征在于,包括接口模块、与所述接口模块连接的切换模块、与所述切换模块连接的控制器,接口模块包括至少两个外设接口;A channel switching control circuit, comprising: an interface module, a switching module connected to the interface module, and a controller connected to the switching module, the interface module includes at least two peripheral interfaces;
    第一主板及第二主板通过切换模块与接口模块连接,控制器用于控制切换模块连通外设接口与第一主板或外设接口与第二主板之间的通道。The first motherboard and the second motherboard are connected to the interface module through the switching module, and the controller is configured to control the channel between the switching module connecting the peripheral interface and the first motherboard or the peripheral interface and the second motherboard.
  12. 如权利要求11所述的通道切换的控制电路,其特征在于,所述切换模块包括与单个外设接口连接的单端切换器、与多个单端切换器连接的多端切换器;The channel switching control circuit of claim 11 , wherein the switching module comprises a single-ended switch connected to a single peripheral device, and a multi-terminal switch connected to the plurality of single-ended switches;
    第一主板与单端切换器连接,第一主板及第二主板与多端切换器连接,单端切换器及多端切换器与控制器连接;The first motherboard is connected to the single-ended switch, the first motherboard and the second motherboard are connected to the multi-terminal switch, and the single-ended switch and the multi-terminal switch are connected to the controller;
    控制器用于控制切换模块连通外设接口与第一主板间的多端可切换通道或单端可切换通道;The controller is configured to control the multi-terminal switchable channel or the single-ended switchable channel between the peripheral interface of the switching module and the first motherboard;
    控制器用于控制切换模块连通外设接口与第二主板之间的多端可切换通道;The controller is configured to control the multi-terminal switchable channel between the switching module connecting the peripheral interface and the second motherboard;
    其中,所述单端可切换通道是不通过多端切换器建立的通信通道;所述多端可切换通道是通过多端切换器建立的通信通道。The single-ended switchable channel is a communication channel that is not established by the multi-terminal switch; the multi-terminal switchable channel is a communication channel established by the multi-terminal switch.
  13. 如权利要求11所述的通道切换的控制电路,其特征在于,所述切换模块包括与单个外设接口连接的单端切换器、与多个外设接口连接的多端切换器;The control circuit for channel switching according to claim 11, wherein the switching module comprises a single-ended switch connected to a single peripheral interface, and a multi-terminal switch connected to a plurality of peripheral interfaces;
    第一主板及第二主板与单端切换器连接,第一主板及第二主板与多端切换器连接,单端切换器及多端切换器与控制器连接;The first motherboard and the second motherboard are connected to the single-ended switch, the first motherboard and the second motherboard are connected to the multi-terminal switch, and the single-ended switch and the multi-terminal switch are connected to the controller;
    控制器用于控制单端切换器连通第一主板/第二主板与外设接口之间的通道;The controller is configured to control the channel between the single-ended switch and the first motherboard/second motherboard and the peripheral interface;
    控制器用于控制多端切换器连通第一主板/第二主板与外设接口之间的通道。The controller is configured to control the channel between the multi-terminal switch and the first motherboard/second motherboard and the peripheral interface.
  14. 如权利要求11所述的通道切换的控制电路,其特征在于,所述切换模块包括与接口模块中单个外设接口连接的单端切换器,单端切换器与控制器连接;The control circuit for channel switching according to claim 11, wherein the switching module comprises a single-ended switch connected to a single peripheral interface in the interface module, and the single-ended switch is connected to the controller;
    控制器用于控制单端切换器连通第一主板/第二主板与外设接口之间的通道。 The controller is configured to control the channel between the single-ended switch and the first motherboard/second motherboard and the peripheral interface.
PCT/CN2017/104834 2017-05-31 2017-09-30 Electronic device, and method and circuit for controlling channel switching WO2018218840A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710399082.5 2017-05-31
CN201710399082.5A CN107220192B (en) 2017-05-31 2017-05-31 Electronic equipment, channel switching control method and control circuit

Publications (1)

Publication Number Publication Date
WO2018218840A1 true WO2018218840A1 (en) 2018-12-06

Family

ID=59946957

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/104834 WO2018218840A1 (en) 2017-05-31 2017-09-30 Electronic device, and method and circuit for controlling channel switching

Country Status (2)

Country Link
CN (1) CN107220192B (en)
WO (1) WO2018218840A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220192B (en) * 2017-05-31 2020-08-14 广州视源电子科技股份有限公司 Electronic equipment, channel switching control method and control circuit
CN110046108A (en) * 2019-01-09 2019-07-23 阿里巴巴集团控股有限公司 USB peripheral control device, system and its control method
CN112579497B (en) * 2019-09-29 2023-04-25 杭州海康威视数字技术股份有限公司 Universal serial bus interface circuit compatible with dual operating systems and method
CN111142953A (en) * 2019-12-27 2020-05-12 深圳市创维群欣安防科技股份有限公司 External equipment switching circuit and conference tablet
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
CN114157898A (en) * 2021-11-15 2022-03-08 深圳市华胜软件技术有限公司 Signal switching system and signal switching method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620471A (en) * 2009-08-07 2010-01-06 福建升腾资讯有限公司 Method for realizing single host computer with multiple systems
CN103778079A (en) * 2012-10-25 2014-05-07 纬创资通股份有限公司 Dual operating system architecture capable of sharing USB device and sharing method
CN106548095A (en) * 2015-09-23 2017-03-29 深圳市全智达科技有限公司 External equipment connects control method and device
CN107220192A (en) * 2017-05-31 2017-09-29 广州视源电子科技股份有限公司 Electronic equipment, channel switching control method and control circuit

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7366890B2 (en) * 2004-11-16 2008-04-29 International Business Machines Corporation Method for switching to a service mode of operation in response to detecting a device connected to an I/O port of the system
US7950020B2 (en) * 2006-03-16 2011-05-24 Ntt Docomo, Inc. Secure operating system switching
CN103430185B (en) * 2011-03-22 2016-10-26 瑞典爱立信有限公司 For the method for switching between virtualization system operation and non-virtualized system operation
CN102831346B (en) * 2012-07-31 2015-09-02 深圳市紫色力腾科技发展有限公司 A kind of file protecting system carries out the method for file encryption-decryption
CN103744729B (en) * 2014-01-24 2017-03-29 福州瑞芯微电子股份有限公司 The computer system of system capable of switching operation
CN104111849A (en) * 2014-06-30 2014-10-22 联想(北京)有限公司 Information processing method and electronic equipment
CN106326782B (en) * 2015-06-23 2019-07-26 联想(北京)有限公司 A kind of 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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620471A (en) * 2009-08-07 2010-01-06 福建升腾资讯有限公司 Method for realizing single host computer with multiple systems
CN103778079A (en) * 2012-10-25 2014-05-07 纬创资通股份有限公司 Dual operating system architecture capable of sharing USB device and sharing method
CN106548095A (en) * 2015-09-23 2017-03-29 深圳市全智达科技有限公司 External equipment connects control method and device
CN107220192A (en) * 2017-05-31 2017-09-29 广州视源电子科技股份有限公司 Electronic equipment, channel switching control method and control circuit

Also Published As

Publication number Publication date
CN107220192B (en) 2020-08-14
CN107220192A (en) 2017-09-29

Similar Documents

Publication Publication Date Title
WO2018218840A1 (en) Electronic device, and method and circuit for controlling channel switching
US8213463B2 (en) Location-based sharing of multimedia control resources
US9256393B2 (en) Method for remote desktop control by remote host input devices
AU2011240960B2 (en) Dynamic configuration of connectors for system level communications
US8706031B2 (en) Method for switching the use of a shared set of wireless I/O devices between multiple computers
JP6603240B2 (en) Power management contract for accessory equipment
US8504823B2 (en) Dynamic configuration of connectors for system-level communications
JP2017523509A (en) Reversible connector for accessory devices
US9979798B2 (en) Thin/zero client provisioning and management using centralized management software
US20080005262A1 (en) Peripheral Sharing USB Hub for a Wireless Host
TW201433137A (en) Host device, client device and method for wireless docking in a dynamic environment for multiple clients
GB2445665A (en) Method for configuring power supply units for a power supply grid
KR101996896B1 (en) Method for sharing resource using a virtual device driver and electronic device thereof
US20120324088A1 (en) Multi-service node management system, device and method
US11194374B2 (en) Systems and methods for waking an information handling system from a wireless peripheral device
CN108206842B (en) Cloud desktop remote access method and system
US11650948B2 (en) Server identification via a keyboard/video/mouse switch
CN115209962A (en) Transferring control elements for gaming sessions between devices
TWI482021B (en) Method for sharing peripheral devices in dual operating systems, and electronic device using the same
EP4020936B1 (en) Switchable communication transport for communication between primary devices and vehicle head units
WO2013152596A1 (en) Imaging device having information protection function
US12039342B2 (en) Electronic system and related method for providing multiple hosts with network connectivity and remote wake-up
KR101161474B1 (en) Network monitor system and the operating method
JP2008287560A (en) Home network system
JP6933224B2 (en) Information processing equipment, information processing methods, programs, and information processing systems

Legal Events

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

Ref document number: 17911872

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30.03.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17911872

Country of ref document: EP

Kind code of ref document: A1