CN107220192B - Electronic equipment, channel switching control method and control circuit - Google Patents

Electronic equipment, channel switching control method and control circuit Download PDF

Info

Publication number
CN107220192B
CN107220192B CN201710399082.5A CN201710399082A CN107220192B CN 107220192 B CN107220192 B CN 107220192B CN 201710399082 A CN201710399082 A CN 201710399082A CN 107220192 B CN107220192 B CN 107220192B
Authority
CN
China
Prior art keywords
operating system
channel
peripheral
interface module
module
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201710399082.5A
Other languages
Chinese (zh)
Other versions
CN107220192A (en
Inventor
陈俊伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710399082.5A priority Critical patent/CN107220192B/en
Publication of CN107220192A publication Critical patent/CN107220192A/en
Priority to PCT/CN2017/104834 priority patent/WO2018218840A1/en
Application granted granted Critical
Publication of CN107220192B publication Critical patent/CN107220192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

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)
  • Telephonic Communication Services (AREA)
  • Information Transfer Systems (AREA)

Abstract

The application provides an electronic device, which comprises an interface module, a switching module, a first operating system and a second operating system, wherein the interface module comprises at least two peripheral interfaces; the switching module switches 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; when a system switching instruction is detected, the switching module is controlled to be communicated with the channel of the interface module and the channel of the second operating system, whether the switching module is controlled to be disconnected with the channel of the operating system is determined, and the control instruction is output by judging the communication requirement between the peripheral and the first operating system or the second operating system, so that the communication channel can be switched according to the actual use requirement of the peripheral. The application also provides a control method and a control circuit for channel switching.

Description

Electronic equipment, channel switching control method and control circuit
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an electronic device, a method for controlling channel switching, and a control circuit.
Background
Different systems have respective advantages, more and more users install dual systems for electronic equipment based on requirements of software compatibility, use of different systems and the like, and manufacturers also actively develop and produce electronic equipment with dual systems, particularly electronic equipment with two systems capable of running simultaneously (hereinafter referred to as dual-system electronic equipment) so as to attract more users. In order to enable the two systems to operate simultaneously, the currently adopted method mainly uses two main boards, each main board is provided with one system, and each system is provided with an independent Central Processing Unit (CPU), so that the two systems can operate simultaneously.
Taking a currently common dual-system electronic device with a windows system and an Android system as an example, each system may need to transmit data with a peripheral device through a peripheral interface, and a switch is usually arranged between the peripheral interface and two operating systems at present to switch the peripheral interface from a channel of one operating system to a channel of another operating system when needed.
Because some functions of the windows system are driven based on the Android system, for example, a function of displaying data on a screen, the windows system can realize a display function only when the Android system is in a running state all the time. However, the Android system often needs to access an encryption peripheral (e.g., a dongle) to decrypt the system, and when the window system needs to connect the peripheral, the switch switches the channel connected with the dongle to the channel of the window system, so that the Android system is locked, and the whole machine is locked and cannot be used.
Disclosure of Invention
In view of this, the present application provides an electronic device, a method for controlling channel switching, and a control circuit, which are used to solve the problem that a channel switched with a system in a dual-system electronic device cannot be switched according to the actual use requirement of an external device.
Specifically, the method is realized through the following technical scheme:
an electronic device comprises an interface module, a switching module connected with the interface module, a first operating system and a second operating system, wherein the interface module comprises at least two peripheral interfaces; the switching module is used for switching a channel between the interface module and the first operating system or the second operating system according to a control instruction of the first operating system;
and when the first operating system detects a connection request between the interface module and the second operating system in a state of being communicated with the interface module, the first operating system controls the switching module to communicate the channel between the interface module and the second operating system, and determines whether to control the switching module to disconnect the channel between the interface module and the operating system.
In one embodiment, the manner for the first operating system to determine whether to control the switching module to disconnect the channel between the interface module and the operating system includes any one of the following:
if the first operating system detects that the peripheral connected with the operating system is a decryption peripheral, controlling the switching module not to disconnect the channel between the interface module and the operating system;
and if the first operating system detects that the peripheral connected with the operating system is in a continuous communication state, controlling the switching module not to disconnect the channel between the interface module and the operating system.
In one embodiment, the switching module comprises a single-ended switch connected to a single peripheral interface, a multi-ended switch connected to a plurality of single-ended switches; the single-ended switch is used for communicating a channel between a peripheral interface and a first operating system or a multi-ended switch according to a control instruction of the first operating system, and the multi-ended switch is used for communicating a channel between the single-ended switch and the first operating system or a second operating system according to the control instruction of the first operating system;
when the first operating system detects that the operating system is communicated with the decryption peripheral through the multi-end switchable channel, the first operating system controls the switching module to be communicated with the single-end switchable channel between the decryption peripheral and the operating system;
when the first operating system detects a connection request of the interface module and the second operating system in a state of being communicated with the interface module, the first operating system controls the switching module to communicate the channel of the interface module and the channel of the second operating system, and controls the switching module not to disconnect the channel of the decryption peripheral, the peripheral in a continuous communication state and the channel of the operating system;
wherein the single-ended switchable channel is a communication channel that is not established through a multi-ended switch; the multi-port switchable channel is a communication channel established by a multi-port switch.
In one embodiment, the switching module comprises a single-ended switch connected to a single peripheral interface, a multi-ended switch connected to a plurality of peripheral interfaces; the single-end switcher and the multi-end switcher are used for switching channels between the interface module and the first operating system or the second operating system according to the control instruction of the first operating system;
when the first operating system detects a connection request between the interface module and the second operating system in a state of being communicated with the interface module, the first operating system controls the switching module to communicate the channel between the interface module and the second operating system, and controls the switching module not to disconnect the channel between the decryption peripheral and the peripheral in a continuous communication state and the channel between the local operating system and the switching module.
In one embodiment, the switching module comprises a single-ended switch connected with a single peripheral interface in the interface module, and the single-ended switch is used for switching channels between the peripheral interface and the first operating system or the second operating system according to a control instruction of the first operating system;
when the first operating system detects a connection request between the interface module and the second operating system in a state of being communicated with the interface module, the first operating system controls the switching module to communicate the channel between the interface module and the second operating system, and controls the switching module not to disconnect the channel between the decryption peripheral and the peripheral in a continuous communication state and the channel between the local operating system and the switching module.
The application also discloses a channel switching control method, which is applied to electronic equipment, wherein the electronic equipment comprises a first operating system and a second operating system, and the method comprises the following steps:
when a connection request of the interface module and a second operating system is detected in a state that the first operating system is communicated with the interface module, controlling a switching module to communicate channels of the interface module and the second operating system;
determining whether to control the switching module to disconnect the channel of the interface module and the first operating system.
In one embodiment, the step of determining whether to control the switching module to disconnect the channel of the interface module and the first operating system includes:
when the peripheral connected with the first operating system is a decryption peripheral, controlling the switching module not to disconnect the channel between the interface module and the first operating system;
and when the peripheral connected with the first operating system is in a continuous communication state, controlling the switching module not to disconnect the channel between the interface module and the first operating system.
In one embodiment, the step of determining whether to control the switching module to disconnect the channel of the interface module and the first operating system includes:
when the first operating system is detected to be communicated with the decryption peripheral through the multi-end switchable channel, the control switching module is communicated with the single-end switchable channel between the decryption peripheral and the first operating system;
when a connection request of the interface module and the second operating system is detected in a state that the first operating system is communicated with the interface module, controlling the switching module to communicate the channels of the interface module and the second operating system, and controlling the switching module to not disconnect the channels of the decryption peripheral, the peripheral in a continuous communication state and the first operating system;
wherein the single-ended switchable channel is a communication channel that is not established through a multi-ended switch; the multi-port switchable channel is a communication channel established by a multi-port switch.
In one embodiment, the step of determining whether to control the switching module to disconnect the channel of the interface module and the first operating system includes:
and under the condition that the first operating system is communicated with the interface module, when a connection request of the interface module and the second operating system is detected, controlling the switching module to communicate the channels of the interface module and the second operating system, and controlling the switching module not to disconnect the channels of the decryption peripheral, the peripheral in a continuous communication state and the first operating system.
The application also discloses a channel switching control circuit, which comprises an interface module, a switching module connected with the interface module and a controller connected with the switching module, wherein the interface module comprises at least two peripheral interfaces;
the first mainboard and the second mainboard are connected with the interface module through the switching module, and the controller is used for controlling the switching module to communicate a channel between the peripheral interface and the first mainboard or between the peripheral interface and the second mainboard.
In one embodiment, the switching module comprises a single-ended switch connected to a single peripheral interface, a multi-ended switch connected to a plurality of single-ended switches;
the first main board is connected with the single-end switcher, the first main board and the second main board are connected with the multi-end switcher, and the single-end switcher and the multi-end switcher are connected with the controller;
the controller is used for controlling the switching module to be communicated with a multi-end switchable channel or a single-end switchable channel between the peripheral interface and the first main board;
the controller is used for controlling the switching module to be communicated with a multi-end switchable channel between the peripheral interface and the second main board;
wherein the single-ended switchable channel is a communication channel that is not established through a multi-ended switch; the multi-port switchable channel is a communication channel established by a multi-port switch.
In one embodiment, the switching module comprises a single-ended switch connected to a single peripheral interface, a multi-ended switch connected to a plurality of peripheral interfaces;
the first main board and the second main board are connected with the single-end switcher, the first main board and the second main board are connected with the multi-end switcher, and the single-end switcher and the multi-end switcher are connected with the controller;
the controller is used for controlling the single-ended switcher to be communicated with a channel between the first mainboard/the second mainboard and the peripheral interface;
the controller is used for controlling the multi-port switcher to be communicated with a channel between the first main board/the second main board and the peripheral interface.
In one embodiment, the switching module comprises a single-ended switch connected with a single peripheral interface in the interface module, and the single-ended switch is connected with the controller;
the controller is used for controlling the single-ended switcher to be communicated with a channel between the first mainboard/the second mainboard and the peripheral interface.
According to the electronic equipment, the peripheral equipment can select one of the first operating system and the second operating system to communicate; when the first operating system detects a connection request between the interface module and the second operating system in a state of being communicated with the interface module, the first operating system controls the switching module to communicate the channel between the interface module and the second operating system, and determines whether to control the switching module to disconnect the channel between the interface module and the operating system; when the system is switched, the control instruction is output by judging the communication requirement between the peripheral and the first operating system or the second operating system, so that the communication channel can be switched according to the actual use requirement of the peripheral.
Drawings
FIG. 1 is a schematic diagram of a present dual system electronic device;
FIG. 2 is a schematic diagram of another present dual-system electronic device;
FIG. 3a is a schematic diagram of an electronic device according to an exemplary embodiment of the present application;
FIG. 3b is a schematic diagram of an electronic device according to another exemplary embodiment of the present application;
FIG. 4 is a schematic diagram of an electronic device according to yet another exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of an operation flow of the electronic device to control channel switching according to the present application;
FIG. 6 is a schematic diagram of an electronic device according to yet another exemplary embodiment of the present application;
FIG. 7 is a schematic diagram of an electronic device according to yet another exemplary embodiment of the present application;
FIG. 8 is a flow chart illustrating a method for controlling channel switching in accordance with an exemplary embodiment of the present application;
fig. 9 is a flowchart illustrating another control method for channel switching according to an exemplary embodiment of the present application;
fig. 10 is a flowchart illustrating a control method for channel switching according to an exemplary embodiment of the present application;
fig. 11 is a flowchart illustrating a control method for channel switching according to an exemplary embodiment of the present application;
FIG. 12 is a logic block diagram of a control circuit for channel switching in accordance with an exemplary embodiment of the present application;
FIG. 13 is a logic block diagram of another channel switch control circuit shown in an exemplary embodiment of the present application;
FIG. 14 is a logic block diagram of a control circuit for switching channels according to an exemplary embodiment of the present application;
fig. 15 is a logic block diagram of a control circuit for switching channels according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. 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 is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The electronic equipment provided by the application is provided with two operating systems, and each system is provided with a mainboard and a central processing unit, so that the two operating systems can run simultaneously. The operating systems comprise a Windows system, a Unix system, a Netware system, a Linux system, a Mac system, an Android system, an iOS system and the like, the types of the two operating systems can be the same or different, the electronic equipment can increase the applicability of the electronic equipment by providing the two operating systems, and each operating system can provide different application environments for users. When the operating systems need to be connected with the peripheral, the operating systems are generally connected through peripheral interfaces, and each operating system is provided with an independent mainboard and a central processing unit, so that each operating system is provided with a corresponding interface for connecting the peripheral.
As shown in the electronic device 100 of fig. 1, the first operating system 110 may be connected to the peripheral 191 through the peripheral interface 131, the second operating system 120 may be connected to the peripheral 192 through the peripheral interface 132 and the peripheral 193 through the peripheral interface 133, and 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 may be expanded through the hub 141. However, in this design, although the interface module 130 of the electronic device 100 includes 3 peripheral interfaces, the first operating system 110 can use only the peripheral interface 131, and the second operating system 120 can use only the peripheral interface 132 and the peripheral interface 133. When the user switches to the second operating system 120 to still want to use the peripheral 191 after the first operating system 110 uses 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, and the utilization rate of the interface module 130 is low and the use is inconvenient.
The above problem can be solved by adding one switching device, as shown in fig. 2, only 1 multi-port switch 242 is added compared to fig. 1, the multi-port switch 242 switches according to the control command of the first os 210, when the first os 210 is used, the multi-port switch 242 communicates the channel between the interface module 230 and the first os 210, and when the system is switched to the second os 220, the multi-port switch 242 communicates the channel between the interface module 230 and the second os 220. However, since the peripheral interfaces 231, 232 and 233 in the interface module 230 are all connected to the multi-port switch 242, the multi-port switch 242 changes the channels through which the peripheral interfaces 231, 232 and 233 communicate at the same time each time the multi-port switch 242 switches, and the control command sent by the first operating system 210 for controlling the multi-port switch 242 to switch is also simple, and is only used for controlling the multi-port switch 242 to switch to communicate with the currently used operating system, and the channels cannot be switched according to the actual use requirement. For example, when the user sends data from the first operating system 210 to the peripheral 291 and does not finish sending the data, the multi-port switch 242 switches to the second operating system 220, the path between the peripheral 291 and the first operating system 210 is interrupted, and the data sending is terminated.
FIG. 3a is a schematic 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, and the switching module 340 switches a channel between the interface module 330 and the first operating system 310 or the second operating system 320 according to a control instruction of the first operating system 310;
when the first operating system 310 detects a connection request between the interface module 330 and the second operating system 320 in a state where the first operating system 310 is in communication with the interface module 330, the switching module 340 is controlled to connect the channels between the interface module 330 and the second operating system 320, and to determine whether to control the switching module 340 to disconnect the channels between the interface module 330 and the present operating system.
The number of the peripheral interfaces in the interface module 330 can be set arbitrarily, and for convenience of description, in this embodiment, the interface module 330 includes 3 peripheral interfaces (the peripheral interface 331, the peripheral interface 332, and the peripheral interface 333) as an example for description.
When the electronic device 300 is powered on, the first operating system 310 and the second operating system 320 are both started to run, and usually a default system for use is set for powering on, or a selection interface is provided during powering on, and a system for use is selected according to a user instruction. When the currently used operating system is the first operating system 310, the first operating system 310 communicates with the interface module 330, a connection request of the interface module 330 and the second operating system 320 is equivalent to a user switching to the second operating system 320, and the first operating system 310 sends a switching instruction according to a condition of a peripheral connected with the interface module 330, so as to control the switching module 340 to communicate channels of the interface module 330 and the second operating system 320, and determine whether to control the switching module 340 to disconnect the channels of the interface module 330 and the operating system. Obviously, the control instruction may be issued 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, and for convenience of description and control, the control instruction for selectively controlling the switching module 340 to perform switching is issued by the first operating system 310 in this embodiment. The switching of the switching module 340 may be directly controlled by the first operating system 310, or, as shown in fig. 3b, the switching module 340 may be controlled by the controller 350 according to a control instruction of the first operating system 310, since a power on/off key (not shown) of the electronic device 300 is controlled by the controller 350, the switching module 340 may be controlled by expanding the original function of the controller 350, and the switching module 340 needs to maintain a connection state according to the control instruction, and the power consumption may be greatly reduced by controlling through the controller 350 without adding components.
When the first operating system 310 detects an instruction of switching the system, it needs to control the switching module 340 to switch so that the interface module 330 is connected to the second operating system 320, but it is also necessary to determine whether the interface module 330 and the first operating system 310 can be disconnected, and in an embodiment of the present application, the manner for the first operating system 310 to determine whether to control the switching module 340 to disconnect the channel between the interface module 330 and the present operating system includes any of the following:
if the first operating system 310 detects that the peripheral connected to the operating system is a decryption peripheral, the switching module 340 is controlled not to disconnect the channel between the interface module 330 and the operating system;
if the first operating system 310 detects that the peripheral connected to the operating system is in the continuous communication state, the switching module 340 is controlled not to disconnect the channel between the interface module 330 and the operating system.
As mentioned above, when the first os 310 and the peripheral 391 are in continuous communication, the communication is terminated and the received data may not be complete, so that the control command sent by the first os 310 will keep the channel in the continuous communication state from being disconnected, and of course, the switching module 340 may be controlled to switch the channel to connect the peripheral 391 and the second os 320 when the continuous communication is terminated. For convenience of description, a currently common electronic device 300 having a windows system (the second operating system 320) and an Android system (the first operating system 310) is taken as an example, and since some functions of the windows system are driven based on the Android system, for example, a function of displaying data on a screen, the Android system needs to be always in a running state, and the windows system can realize a display function. After the Android system of the electronic device 300 is encrypted, the electronic device 300 can be normally used only when the Android system is connected with a decryption peripheral, and when the peripheral 392 connected with the peripheral interface 332 is a decryption peripheral, the first operating system 310 controls the peripheral interface 332 to be communicated with a channel of the operating system, and even if the system is switched, the switching module 340 is controlled not to disconnect the channel between the interface module 330 and the operating system, so that the situation that the whole machine cannot be used due to locking after the Android system is disconnected from the decryption peripheral is avoided.
Obviously, to implement the solution of the present application, the switching module 340 needs to set up different channels for different peripheral interfaces, so that the peripheral interfaces in the interface module 330 can be both communicated with the first operating system 310 and the second operating system 320, and the channel where each peripheral interface is located can be independently switched. The channel design schemes are different in form, and only the channel where each peripheral interface is located can be independently switched, and several schemes will be specifically described below.
FIG. 4 is a schematic diagram of an electronic device 400 shown in accordance with yet another exemplary embodiment of the present application; the switch module 440 includes single-ended switches 441, 442, 443 and a multi-ended switch 444, the single-ended switch 441 is connected to the peripheral interface 431, 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 os 410 and the multi-ended switch 444 are connected to the single-ended switches 441, 442, 443; the first operating system 410 and the second operating system 420 are both connected to the multi-port switch 444;
the single-ended switches 441, 442, 443 communicate with the channels between the peripheral interfaces 431, 432, 433 and the first operating system 410 or the multi-ended switch 444 according to the control command of the first operating system 410, and the multi-ended switch 444 communicates with the channels between the single-ended switches 441, 442, 443 and the first operating system 410 or the second operating system 420 according to the control command of the first operating system 410;
when the first operating system 410 detects that the operating system is communicated with the decryption peripheral through the multi-end switchable channel, the control switching module 440 is communicated with the single-end switchable channel between the decryption peripheral and the operating system;
when the first operating system 410 detects a connection request between the interface module 430 and the second operating system 420 in a state of being communicated with the interface module 430, the switching module 440 is controlled to communicate the channels of the interface module 430 and the second operating system 420, and the switching module 440 is controlled not to disconnect the channels of the decryption peripheral, the peripheral in a continuous communication state and the operating system;
wherein the single-ended switchable channel is a communication channel not established through the multi-ended switch 444; the multi-port switchable channel is a communication channel established through the multi-port switch 444.
As shown in fig. 4, the channel of the peripheral 491 connected to the first operating system 410 through the peripheral interface 431, the single-ended switch 441 and the multi-ended switch 444 is a multi-ended switchable channel, and the channel of the peripheral 491 connected to the first operating system 410 through the peripheral interface 431 and the single-ended switch 441 is a single-ended switchable channel.
As shown in fig. 5, when the electronic device 400 is turned on, if the connection and unlocking of the peripheral device is not required, the first operating system 410(Android system) controls the switching module 440 to connect the channel between the interface module 430 and the currently used operating system, and if the connection and unlocking of the peripheral device is required, the control interface module 430 communicates with the Android system through a multi-port switchable channel, when the peripheral 491 is detected to be inserted into the peripheral interface 431, it is determined whether the peripheral 491 is an unlocked peripheral, and when the peripheral 491 is an unlocked peripheral, the electronic device 400 is unlocked, since the multi-end switchable channel also controls the channels of other peripheral interfaces, in order to not affect the normal use of other peripheral interfaces, the single-end switch 441 is controlled to switch, so that the peripheral 491 is communicated with the Android system through the single-end switchable channel, and when the operating system is switched subsequently, the single-ended switch 441 is controlled to keep the current channel not disconnected.
Since the unlocking peripheral may be inserted into any one of the peripheral interfaces 431, 432, 433, if the peripheral interfaces 431, 432, 433 do not have a mark capable of distinguishing a location, it is further necessary to determine which peripheral interface the unlocking peripheral is inserted into, in an embodiment, the first operating system 410 sequentially sends a switching instruction to the single-ended switches 441, 442, 443 through the controller 450, and after the controller 450 controls the single-ended switch 441 to switch, the unlocking peripheral is communicated with the Android system through the single-ended switchable channel, that is, the unlocking peripheral is connected to the peripheral interface 431, it is not necessary to control the single-ended switches 442, 443 to switch.
The peripheral interfaces 432 and 433 are still connected to the first os 410 through the multi-port switchable channel, and when the peripheral device 492 and/or the peripheral device 493 are in the continuous communication state with the first os 410, the switching module 440 is controlled to be connected to the second os 420, and of course, if the peripheral device 492 and/or the peripheral device 493 are in the continuous communication state with the first os 410, the peripheral device 492 and/or the peripheral device 493 are not switched until the continuous communication state of the peripheral devices 492 and 493 with the first os 410 is over; or inquiring whether the user forces switching, and controlling whether the switching module 440 switches according to the instruction triggered by the user. The purpose of switching the channels according to actual use requirements can be achieved by the mode, and the channels of the peripheral interfaces can be independently controlled.
FIG. 6 is a schematic diagram of an electronic device 600 according to yet 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-ended switch 642 connected to the peripheral interfaces 632 and 633; the first operating system 610 and the second operating system 620 are connected to the single-ended switch 641, and the first operating system 610 and the second operating system 620 are connected to the multi-ended switch 642;
the single-ended switch 641 and the multi-ended switch 642 switch channels between the interface module 630 and the first os 610 or the second os 620 according to the control command of the first os 610;
when the first operating system 610 detects a connection request between the interface module 630 and the second operating system 620 in a state of being communicated with the interface module 630, the switching module 640 is controlled to communicate the channels between the interface module 630 and the second operating system 620, and the switching module 640 is controlled not to disconnect the channels between the decryption peripheral and the peripheral in a continuous communication state and the operating system.
The peripheral interface 631 is connected to the first os 610 or the second os 620 through the single-ended switch 641, the peripheral interfaces 632 and 633 are connected to the first os 610 or the second os 620 through the multi-port switch 642, and the single-ended switch 641 and the multi-port switch 642 are switched according to the control command of the first os 610, as mentioned above, the control command of the first os 610 can also be issued to the single-ended switch 641 and the multi-port switch 642 through the controller 650. The peripheral interfaces 631, 632, 633 in the interface module 630 may all communicate with the first operating system 610 or the second operating system 620, but the single-ended switch 641 is only used to switch the channels between the peripheral interface 631 and the first operating system 610 or the second operating system 620, and therefore, for a decryption peripheral, etc., the decryption peripheral may be connected to the first operating system 610 or the second operating system 620 through the peripheral interface 631, so that the channel selection of other peripherals is not affected by the switching of the channel of the decryption peripheral, in this embodiment, under the condition that the peripheral interfaces 631, 632, 633 in the interface module 630 may all communicate with the first operating system 610 or the second operating system 620, the number of the single-ended switch 641 and the multi-ended switch 642 is also reduced, and the cost is reduced.
FIG. 7 is a schematic diagram of an electronic device 700 shown in accordance with yet another exemplary embodiment of the present application; the switching module 740 includes single-ended switches 741, 742, 743, the single-ended switch 741 is connected to the peripheral interface 731, the single-ended switch 742 is connected to the peripheral interface 732, the single-ended switch 743 is connected to the peripheral interface 733, and the single-ended switches 741, 742, 743 are configured to switch a channel between the peripheral interface 730 and the first operating system 710 or the second operating system 720 according to a control instruction of the first operating system 710;
when the first operating system 710 detects a connection request between the interface module 730 and the second operating system 720 in a state of being communicated with the interface module 730, the switching module 740 is controlled to communicate the channels between the interface module 730 and the second operating system 720, and the switching module 740 is controlled not to disconnect the channels between the decryption-capable peripheral and the peripheral in the continuous communication state and the operating system.
Each of the peripheral interfaces 731, 732, 733 of the interface module 730 is configured with a single-ended switch 741, 742, 743, each of the single-ended switches 741, 742, 743 can communicate with the first os 710 or the second os 720, and the single-ended switches 741, 742, 743 switch according to a control command of the first os 710, as mentioned above, the control command of the first os 710 can also be issued to the single-ended switches 741, 742, 743 through the controller 750. In this embodiment, each of the peripheral interfaces 731, 732, 733 can independently communicate with the first operating system 710 or the second operating system 720, so that the flexibility of the peripheral interfaces 731, 732, 733 in the interface module 730 is improved.
Corresponding to the embodiment of the electronic device, the application also provides an embodiment of a control method for channel switching.
Referring to fig. 8, fig. 8 is a flowchart illustrating a method for controlling channel switching according to an exemplary embodiment of the present application; the method is applied to electronic equipment, wherein the electronic equipment comprises a first operating system and a second operating system, and the method comprises the following steps:
step S810: when a connection request of the interface module and a second operating system is detected in a state that the first operating system is communicated with the interface module, controlling a switching module to communicate channels of the interface module and the second operating system;
step S820: determining whether to control the switching module to disconnect the channel of the interface module and the first operating system.
Fig. 9 is a flowchart illustrating another control method for channel switching according to an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the channel of the interface module and the first operating system includes:
step S901: when the peripheral connected with the first operating system is a decryption peripheral, controlling the switching module not to disconnect the channel between the interface module and the first operating system;
step S902: and when the peripheral connected with the first operating system is in a continuous communication state, controlling the switching module not to disconnect the channel between the interface module and the first operating system.
Fig. 10 is a flowchart illustrating a control method for channel switching according to an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the channel of the interface module and the first operating system includes:
step S101: when the first operating system is detected to be communicated with the decryption peripheral through the multi-end switchable channel, the control switching module is communicated with the single-end switchable channel between the decryption peripheral and the first operating system;
step S102: when a connection request of the interface module and the second operating system is detected in a state that the first operating system is communicated with the interface module, controlling the switching module to communicate the channels of the interface module and the second operating system, and controlling the switching module to not disconnect the channels of the decryption peripheral, the peripheral in a continuous communication state and the first operating system;
wherein the single-ended switchable channel is a communication channel that is not established through a multi-ended switch; the multi-port switchable channel is a communication channel established by a multi-port switch.
Fig. 11 is a flowchart illustrating a control method for channel switching according to an exemplary embodiment of the present application; the step of determining whether to control the switching module to disconnect the channel of the interface module and the first operating system includes:
step S111: and under the condition that the first operating system is communicated with the interface module, when a connection request of the interface module and the second operating system is detected, controlling the switching module to communicate the channels of the interface module and the second operating system, and controlling the switching module not to disconnect the channels of the decryption peripheral, the peripheral in a continuous communication state and the first operating system.
The implementation process of the functions and actions of the steps in the method is specifically detailed in the implementation process of the corresponding unit in the electronic device, and is not described herein again.
Further, the present application also provides an embodiment of a control circuit for channel switching.
Referring to fig. 12, fig. 12 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 comprises an interface module 132, a switching module 136 connected to the interface module 132, and a controller 131 connected to the switching module 136, wherein the interface module 132 comprises at least two peripheral interfaces 133, 134, 135;
the first main board 231 and the second main board 232 are connected to the interface module 132 through the switching module 136, and the controller 131 is configured to control the switching module 136 to communicate with channels between the peripheral interfaces 133, 134, 135 and the first main board 231 or between the peripheral interfaces 133, 134, 135 and the second main board 232.
FIG. 13 is a logic block diagram of another channel switch control circuit 140 shown in an exemplary embodiment of the present application; the switch module 146 includes single-ended switches 147, 148, 149 connected to a single peripheral interface 143, 144, 145, a multi-ended switch 240 connected to a plurality of single-ended switches 147, 148, 149;
the first main board 241 is connected to the single-ended switches 147, 148, 149, the first main board 241 and the second main board 242 are connected to the multi-port switch 240, and the single-ended switches 147, 148, 149 and the multi-port switch 240 are connected to the controller 141;
the controller 141 is configured to control the switching module 146 to communicate with a multi-port switchable channel or a single-port switchable channel between the peripheral interfaces 143, 144, 145 and the first motherboard 241;
the controller 141 is used for controlling the switching module 146 to communicate with multi-port switchable channels between the peripheral interfaces 143, 144, 145 and the second main board 242;
wherein the single-ended switchable channel is a communication channel that is not established by the multi-ended switch 240; the multi-port switchable channel is a communication channel established through the multi-port switch 240.
FIG. 14 is a logic block diagram of a control circuit 150 for switching channels according to an exemplary embodiment of the present application; the switch module 156 includes a single-ended switch 157 coupled to a single peripheral interface 153, a multi-ended switch 158 coupled to a plurality of peripheral interfaces 154, 155;
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-port switch 158, and the single-ended switch 157 and the multi-port switch 158 are connected to the controller 151;
the controller 151 is configured to control the single-ended switch 157 to communicate with the channels between the first main board 251/the second main board 252 and the peripheral interface 153;
the controller 151 is used for controlling the multi-port switch 158 to communicate the channels between the first main board 251/second main board 252 and the peripheral interfaces 154, 155.
FIG. 15 is a logic block diagram of a control circuit 160 for switching channels according to an exemplary embodiment of the present application; the switching module 166 includes single-ended switches 167, 168, 169 connected to the individual peripheral interfaces 163, 164, 165 in the interface module 162, the single-ended switches 167, 168, 169 being connected to the controller 161;
the controller 161 is used to control the single-ended switches 167, 168, 169 to communicate the channels between the first main board 261/the second main board 262 and the peripheral interfaces 163, 164, 165.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1. An electronic device is characterized by comprising an interface module, a switching module connected with the interface module, a first operating system and a second operating system, wherein the interface module comprises at least two peripheral interfaces; the switching module comprises a single-ended switch connected with a single peripheral interface and a multi-ended switch connected with a plurality of single-ended switches; the single-ended switch is used for communicating a channel between a peripheral interface and a first operating system or a multi-ended switch according to a control instruction of the first operating system, and the multi-ended switch is used for communicating a channel between the single-ended switch and the first operating system or a second operating system according to the control instruction of the first operating system;
and when the first operating system detects a connection request between the interface module and the second operating system in a state of being communicated with the interface module, the first operating system controls the switching module to communicate the channel between the interface module and the second operating system, and determines whether to control the switching module to disconnect the channel between the interface module and the operating system.
2. The electronic device of claim 1, wherein the manner in which the first operating system determines whether to control the switch module to disconnect the channel of the interface module from the operating system comprises any one of:
if the first operating system detects that the peripheral connected with the operating system is a decryption peripheral, controlling the switching module not to disconnect the channel between the interface module and the operating system;
and if the first operating system detects that the peripheral connected with the operating system is in a continuous communication state, controlling the switching module not to disconnect the channel between the interface module and the operating system.
3. The electronic device of claim 2,
when the first operating system detects that the operating system is communicated with the decryption peripheral through the multi-end switchable channel, the first operating system controls the switching module to be communicated with the single-end switchable channel between the decryption peripheral and the operating system;
when the first operating system detects a connection request of the interface module and the second operating system in a state of being communicated with the interface module, the first operating system controls the switching module to communicate the channel of the interface module and the channel of the second operating system, and controls the switching module not to disconnect the channel of the decryption peripheral, the peripheral in a continuous communication state and the channel of the operating system;
wherein the single-ended switchable channel is a communication channel that is not established through a multi-ended switch; the multi-port switchable channel is a communication channel established by a multi-port switch.
4. A control method of channel switching is applied to an electronic device, the electronic device comprises a first operating system and a second operating system, and is characterized by further comprising a switching module, wherein the switching module comprises a single-ended switch connected with a single peripheral interface and a multi-ended switch connected with a plurality of single-ended switches; the single-ended switch is used for communicating a channel between a peripheral interface and a first operating system or a multi-ended switch according to a control instruction of the first operating system, and the multi-ended switch is used for communicating a channel between the single-ended switch and the first operating system or a second operating system according to the control instruction of the first operating system; the control method comprises the following steps:
when a connection request of the interface module and a second operating system is detected in a state that the first operating system is communicated with the interface module, controlling a switching module to communicate channels of the interface module and the second operating system;
determining whether to control the switching module to disconnect the channel of the interface module and the first operating system.
5. The method of controlling channel switching according to claim 4, wherein the step of determining whether to control the switching module to disconnect the channel of the interface module from the first operating system comprises:
when the peripheral connected with the first operating system is a decryption peripheral, controlling the switching module not to disconnect the channel between the interface module and the first operating system;
and when the peripheral connected with the first operating system is in a continuous communication state, controlling the switching module not to disconnect the channel between the interface module and the first operating system.
6. The method of controlling channel switching according to claim 5, wherein the step of determining whether to control the switching module to disconnect the channel of the interface module from the first operating system comprises:
when the first operating system is detected to be communicated with the decryption peripheral through the multi-end switchable channel, the control switching module is communicated with the single-end switchable channel between the decryption peripheral and the first operating system;
when a connection request of the interface module and the second operating system is detected in a state that the first operating system is communicated with the interface module, controlling the switching module to communicate the channels of the interface module and the second operating system, and controlling the switching module to not disconnect the channels of the decryption peripheral, the peripheral in a continuous communication state and the first operating system;
wherein the single-ended switchable channel is a communication channel that is not established through a multi-ended switch; the multi-port switchable channel is a communication channel established by a multi-port switch.
7. A control circuit for channel switching is characterized by comprising an interface module, a switching module connected with the interface module and a controller connected with the switching module, wherein the interface module comprises at least two peripheral interfaces; the switching module comprises a single-ended switch connected with a single peripheral interface and a multi-ended switch connected with a plurality of single-ended switches;
the first main board is connected with the single-end switcher, the first main board and the second main board are connected with the multi-end switcher, and the single-end switcher and the multi-end switcher are connected with the controller;
the first mainboard and the second mainboard are connected with the interface module through the switching module, and the controller is used for controlling the switching module to communicate a channel between the peripheral interface and the first mainboard or between the peripheral interface and the second mainboard.
8. The channel switching control circuit of claim 7,
the controller is used for controlling the switching module to be communicated with a multi-end switchable channel or a single-end switchable channel between the peripheral interface and the first main board;
the controller is used for controlling the switching module to be communicated with a multi-end switchable channel between the peripheral interface and the second main board;
wherein the single-ended switchable channel is a communication channel that is not established through a multi-ended switch; the multi-port switchable channel is a communication channel established by a multi-port switch.
CN201710399082.5A 2017-05-31 2017-05-31 Electronic equipment, channel switching control method and control circuit Active CN107220192B (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN107220192A CN107220192A (en) 2017-09-29
CN107220192B true CN107220192B (en) 2020-08-14

Family

ID=59946957

Family Applications (1)

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

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 (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1776617A (en) * 2004-11-16 2006-05-24 国际商业机器公司 Method and syatem of mode switching for stating apparatus
CN101401069A (en) * 2006-03-16 2009-04-01 株式会社Ntt都科摩 Secure operating system switching
CN102831346A (en) * 2012-07-31 2012-12-19 深圳市紫色力腾科技发展有限公司 Method and system for file protection
CN103430185A (en) * 2011-03-22 2013-12-04 瑞典爱立信有限公司 Method for switching between virtualized and non-virtualized system operation
CN103744729A (en) * 2014-01-24 2014-04-23 福州瑞芯微电子有限公司 Computer system with operating systems switchable
CN104111849A (en) * 2014-06-30 2014-10-22 联想(北京)有限公司 Information processing method and electronic equipment
CN106254551A (en) * 2016-09-30 2016-12-21 北京珠穆朗玛移动通信有限公司 The document transmission method of a kind of dual system and mobile terminal
CN106326782A (en) * 2015-06-23 2017-01-11 联想(北京)有限公司 Information processing method and electronic device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620471B (en) * 2009-08-07 2011-06-15 福建升腾资讯有限公司 Method for realizing single host computer with multiple systems
TWI544337B (en) * 2012-10-25 2016-08-01 緯創資通股份有限公司 Dual-operating-system architecture for sharing usb devices, and method for sharing usb devices in a dual-operating-system architecture
CN106548097A (en) * 2015-09-23 2017-03-29 深圳市全智达科技有限公司 The operation method and device of network device software
CN107220192B (en) * 2017-05-31 2020-08-14 广州视源电子科技股份有限公司 Electronic equipment, channel switching control method and control circuit

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1776617A (en) * 2004-11-16 2006-05-24 国际商业机器公司 Method and syatem of mode switching for stating apparatus
CN101401069A (en) * 2006-03-16 2009-04-01 株式会社Ntt都科摩 Secure operating system switching
CN103430185A (en) * 2011-03-22 2013-12-04 瑞典爱立信有限公司 Method for switching between virtualized and non-virtualized system operation
CN102831346A (en) * 2012-07-31 2012-12-19 深圳市紫色力腾科技发展有限公司 Method and system for file protection
CN103744729A (en) * 2014-01-24 2014-04-23 福州瑞芯微电子有限公司 Computer system with operating systems switchable
CN104111849A (en) * 2014-06-30 2014-10-22 联想(北京)有限公司 Information processing method and electronic equipment
CN106326782A (en) * 2015-06-23 2017-01-11 联想(北京)有限公司 Information processing method and electronic device
CN106254551A (en) * 2016-09-30 2016-12-21 北京珠穆朗玛移动通信有限公司 The document transmission method of a kind of dual system and mobile terminal

Also Published As

Publication number Publication date
CN107220192A (en) 2017-09-29
WO2018218840A1 (en) 2018-12-06

Similar Documents

Publication Publication Date Title
CN107220192B (en) Electronic equipment, channel switching control method and control circuit
US6308239B1 (en) Interface switching apparatus and switching control method
CA2537571C (en) Standard configurable universal serial bus (usb) device identifier
US7228345B2 (en) Server with LAN switch that connects ports based on boot progress information
US20040073712A1 (en) Server with LAN switch that connects ports based on connection information received from first and second LANs
JP2017523509A (en) Reversible connector for accessory devices
CN104380702A (en) Host device, client device and method for wireless docking in a dynamic environment for multiple clients
US20060064509A1 (en) Control system for controlling a plurality of target computers
KR20070009250A (en) Communication system
KR20010071639A (en) Communication bus system and apparatus for use in a communication bus system
CN108399136B (en) Control method and device of serial interface and host
CN104038803A (en) Modularized smart television and interactive method applied to same
CN103561087A (en) Equipment interconnection method and device
US7609153B2 (en) Control apparatus, security-supported device, power source control method for security-supported device and program
US7236143B2 (en) System, apparatus and method for configuring identification of a display
US20080270512A1 (en) Virtual network projection system supporting multiple projection sources and method thereof
CN108055212B (en) Method and device compatible with PSE chip
JP2006217327A (en) Radio communications device and communication system
CN105760770A (en) Information processing method and electronic device
CN105760334B (en) Universal serial bus hub, method for operating the same and display
CN114610668B (en) Method and device for interaction between intelligent serial port screen and BMC
KR100369728B1 (en) Multi LAN card
CN116701270A (en) Communication circuit, server, method, device, and storage medium
KR20170059212A (en) A USB hub device capable of self-controlling power ON/OFF of each USB port and the control method thereof
CN116095192A (en) Message processing method, system and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant