CPC G06F 13/4022 (2013.01) [G06F 2213/0042 (2013.01)] | 20 Claims |
1. An electronic apparatus, comprising:
a first control component corresponding to a first operating system;
a second control component corresponding to a second operating system;
a USB interface; and
a universal serial bus (USB) interface switching circuit;
wherein the USB interface switching circuit is configured to connect the USB interface to the first control component or the second control component;
the first control component is configured to detect a data transmission state between the USB interface and the first control component;
the second control component is configured to detect a data transmission state between the USB interface and the second control component; and
the first control component and/or the second control component is further configured to:
after switching an operating system corresponding to an operating interface of the electronic apparatus, determine a data transmission state between the USB interface and a control component corresponding to an operating system before switching; and
when it is determined that the data transmission state between the USB interface and the control component corresponding to the operating system before switching is that no data is being transmitted, control the USB interface switching circuit to make the USB interface be switched to be connected to a control component corresponding to an operating system after switching.
|