CN115114214A - Multi-system all-in-one machine, file sharing method and storage medium - Google Patents

Multi-system all-in-one machine, file sharing method and storage medium Download PDF

Info

Publication number
CN115114214A
CN115114214A CN202110289109.1A CN202110289109A CN115114214A CN 115114214 A CN115114214 A CN 115114214A CN 202110289109 A CN202110289109 A CN 202110289109A CN 115114214 A CN115114214 A CN 115114214A
Authority
CN
China
Prior art keywords
host
usb
transmission port
communication connection
switch 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.)
Pending
Application number
CN202110289109.1A
Other languages
Chinese (zh)
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 Xicoo Medical Technology Co ltd
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Xicoo Medical Technology Co ltd
Guangzhou Shiyuan Electronics Thecnology 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 Xicoo Medical Technology Co ltd, Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Xicoo Medical Technology Co ltd
Priority to CN202110289109.1A priority Critical patent/CN115114214A/en
Publication of CN115114214A publication Critical patent/CN115114214A/en
Pending legal-status Critical Current

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/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4286Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Abstract

The application provides a multi-system all-in-one machine, a file sharing method and a storage medium. This many all-in-one of system includes: the system comprises a first host, a second host, a control module and a switch module, wherein the first host is provided with a first operating system, the second host is provided with a second operating system, and the switch module is respectively connected with the control module, the first host and the second host; the control module is used for controlling the on-off of the switch module, wherein when the switch module is in an on state, the first host and the second host establish USB communication connection; the first host is used for sharing files based on the USB communication connection between the first host and the second host according to an operation instruction for sharing files executed on a display interface controlled by the first host by a user when the switch module is in a conducting state. The multi-system all-in-one machine can reduce the cost of file sharing, avoid the phenomenon of error in file transmission and improve the accuracy of file sharing.

Description

Multi-system all-in-one machine, file sharing method and storage medium
Technical Field
The present application relates to computer technologies, and in particular, to a multi-system all-in-one machine, a file sharing method, and a storage medium.
Background
With the development of the technology, a multi-system all-in-one machine, in particular a multi-system all-in-one machine with a touch screen function, is more and more widely applied to the fields of medical treatment, teaching, meetings and the like due to the advantages of convenience and flexibility in use, strong functions and the like.
In an all-in-one device including two or more systems, a first host in which a first operating system is deployed and a second host in which a second operating system is deployed operate separately. When the two hosts share a file, data transmission is generally performed in a serial port or I2C (Inter-Integrated Circuit) manner. For example, the first host may send the data to be transmitted to the second host according to a preset transmission rate through a serial port or an I2C bus.
However, the above file sharing method has a slow data transmission rate, and data is prone to errors during the transmission process, so that not only the file sharing efficiency is low, but also the accuracy of the shared file is low.
Disclosure of Invention
The application provides a multi-system all-in-one machine, a file sharing method and a storage medium, which are used for solving the technical problems that the file sharing efficiency is low and the accuracy of the shared files is low.
In a first aspect, the present application provides a multi-system all-in-one machine, including: the system comprises a first host, a second host, a control module and a switch module, wherein the first host is provided with a first operating system, the second host is provided with a second operating system, and the switch module is respectively connected with the control module, the first host and the second host;
the control module is used for controlling the switch module to be switched on or switched off, wherein when the switch module is in a conducting state, the first host and the second host establish USB communication connection;
the first host is used for sharing files based on the USB communication connection between the first host and the second host according to an operation instruction of sharing files executed by the user on a display interface controlled by the first host when the switch module is in a conducting state.
In the scheme, the first host and the second host can directly share files based on the USB communication connection without other hardware equipment, so that the cost of file sharing can be reduced. In addition, the file sharing is carried out through the USB communication connection, so that the file sharing efficiency can be improved, the phenomenon of error in file transmission in the prior art can be avoided, and the accuracy of file sharing is improved.
Optionally, the first host includes a first USB transmission port, the second host includes a second USB transmission port, and the switch module is connected to the control module, the first USB transmission port, and the second USB transmission port, respectively.
In the scheme, the switch module can be directly connected with the first USB transmission port of the first host and the second USB transmission port of the second host to establish USB communication connection between the first host and the second host, so that the cost of file transmission can be reduced.
Optionally, the control module is further configured to control a second USB transmission port of the second host to be in a host mode when the switch module is in an off state, so that the second host and an external USB transmission port of the multi-system all-in-one machine establish a communication connection.
In the scheme, the second host and the external USB transmission port of the multi-system all-in-one machine are in communication connection, and one path of external USB signal input port can be added, so that the flexibility of file transmission is improved.
Optionally, the switch module includes an analog switch, a triode, or a transistor.
In a second aspect, the present application provides a file sharing method based on a multi-system all-in-one machine, which is applied to the multi-system all-in-one machine in the first aspect, and the method includes:
the control module responds to a first operation instruction which is executed on a first display interface by a user and used for requesting file sharing, and controls the switch module to be in a conducting state according to the first operation instruction so as to control the first host and the second host to establish USB communication connection; a first operating system is deployed in the first host, and a second operating system is deployed in the second host;
and the first host responds to a second operation instruction for performing file sharing executed by the user on a second display interface controlled by the first host, and performs file sharing based on the USB communication connection between the first host and the second host according to the second operation instruction.
In the scheme, the first host and the second host can directly share files based on the USB communication connection without other hardware equipment, so that the cost of file sharing can be reduced. In addition, the mode of sharing files based on the USB communication connection not only can improve the efficiency of sharing files, but also can avoid the phenomenon of errors in file transmission in the prior art and improve the accuracy of sharing files.
Optionally, the controlling the first host and the second host to establish a USB communication connection includes:
the control module controls a second USB transmission port of the second host to be in a USB device mode, and controls the first host and the second host to establish USB communication connection in the USB device mode.
In the scheme, when the switch module is in the on state, the second USB transmission port of the second host can be controlled to be in the USB device mode, and the first host and the second host are controlled to establish the USB communication connection in the USB device mode, so that the first host and the second host can share files through the USB communication connection, the file sharing efficiency can be improved, and the cost is reduced.
Optionally, in the device mode, controlling the first host and the second host to establish a USB communication connection includes:
under the USB equipment mode, the first host detects a first USB transmission port of the first host;
and if the first USB transmission port is detected to be communicated with the second USB transmission port, mounting the second host computer into the first host computer, so that the first host computer and the second host computer establish USB communication connection.
In the scheme, when the first USB transmission port is communicated with the second USB transmission port, the second host is mounted in the first host, so that the first host can access the content in the second host to achieve the purpose of file sharing, file transmission through an I2C or a serial port in the prior art can be avoided, and the efficiency and the accuracy of file sharing can be improved.
Optionally, the method further includes:
the control module responds to a third operation instruction which is executed on the first display interface by a user and used for requesting to stop file sharing, and controls the switch module to be in an off state according to the third operation instruction.
Optionally, the method further includes:
when the switch module is in an off state, the control module controls a second USB transmission port of the second host to be in a host mode, and the host mode is used for indicating that the second host and an external transmission port of the multi-system all-in-one machine establish USB communication connection.
In the scheme, when the switch module is in the off state, the second USB transmission port of the second host can be controlled to be in the host mode, so that the USB communication connection is established between the second host and the external transmission port of the multi-system all-in-one machine, the operating systems of the first host and the second host can be completely isolated, and the safety is improved. In addition, the second USB transmission port is used as an external USB signal input port, so that the flexibility of file transmission can be increased.
Optionally, before the first host responds to a second operation instruction for file sharing executed by the user on a second display interface controlled by the first host, the method further includes:
the control module responds to a fourth operation instruction which is executed on the first display interface by a user and used for requesting to switch the display interface, and switches the first display interface into a second display interface controlled by the first host according to the fourth operation instruction.
In the scheme, before file sharing is carried out, the display interface is switched, so that the operation of a user can be facilitated, and the user experience is improved.
In a third aspect, the present application provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the file sharing method based on the multi-system all-in-one machine according to the second aspect is implemented.
In a fourth aspect, the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the file sharing method based on a multi-system all-in-one machine according to the second aspect.
The multi-system all-in-one machine in the embodiment comprises a first host, a second host, a control module and a switch module respectively connected with the first host, the second host and the control module, wherein the control module is used for controlling the on-off of the switch module, if the switch module is in an on state, a USB communication connection can be established between the first host and the second host, and when the first host executes an operation instruction for file sharing according to a user, the file sharing is performed based on the USB communication connection between the first host and the second host. The first host and the second host can directly share files based on USB communication connection without other hardware equipment, so that the cost of file sharing can be reduced. In addition, the file sharing is carried out through the USB communication connection, so that the file sharing efficiency can be improved, the phenomenon of error in file transmission in the prior art can be avoided, and the accuracy of file sharing is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic structural diagram of a multisystem all-in-one machine according to an embodiment of the present disclosure;
fig. 2 is another schematic structural diagram of a multisystem all-in-one machine according to an embodiment of the present disclosure;
fig. 3 is another schematic structural diagram of a multisystem all-in-one machine according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a file sharing method based on a multi-system all-in-one machine according to an embodiment of the present application;
FIG. 5 is a schematic view of a first display interface;
FIG. 6 is a schematic diagram of a directory interface of the first host before the first host and the second host establish a USB communication connection;
FIG. 7 is a schematic diagram of a directory interface of the first host after the first host and the second host establish a USB communication connection;
FIG. 8 is a schematic diagram of a second display interface.
Specific embodiments of the present application have been shown by way of example in the drawings and will be described in more detail below. The drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the concepts of the application by those skilled in the art with reference to specific embodiments.
Detailed Description
The file sharing method based on the multi-system all-in-one machine is applied to a scene of file sharing or file transmission between two hosts in the multi-system all-in-one machine. The present multisystem all-in-one machine includes a first host and a second host, where the first host is deployed with a first operating system, the first operating system may be, for example, a Windows, linux, or Unix operating system, and the second host is deployed with a second operating system, which may be, for example, an Android operating system. The first host and the second host operate separately, but share some peripheral devices, such as an operating screen or a Micro Controller Unit (MCU).
In many scenarios, the first host and the second host need to perform file sharing, such as copying a file stored in the first host to the second host, or copying a file stored in the second host to the first host, and so on. At present, when a file is transferred, the file can be generally transferred in two ways:
the first method comprises the following steps: and carrying out file transmission through a network. Because the first host and the second host work separately, network cards can be installed in the first host and the second host, so that network connection is established between the first host and the second host through the network cards to realize file sharing.
And the second method comprises the following steps: file transfer is via serial port or I2C. Specifically, a host computer that needs to perform file transmission sends a file to be transmitted to another host computer according to a preset transmission rate.
In the first method, since the network cards need to be installed in the first host and the second host, the cost of file sharing is high. In the second mode, since the bytes are sequentially transmitted according to the transmission rate during file transmission, the transmission rate is low, and during the transmission of the bytes, a packet loss phenomenon is easily caused, which causes a file transmission error.
In view of the above problems, an embodiment of the present application provides a new multi-system all-in-one machine, where, in view of that an existing multi-system all-in-one machine includes a first host and a second host that work separately, if a Universal Serial Bus (USB) communication connection can be established between the first host and the second host when file transmission is performed, and the second host is directly mounted to the first host as an external device, file sharing between the first host and the second host can be quickly achieved. Based on this, in the multi-system all-in-one machine provided in the embodiment of the present application, on the basis of a current multi-system all-in-one machine, the multi-system all-in-one machine further includes a switch module, the switch module is respectively connected with the first host and the second host, when a user wants to share files between the two hosts, a control instruction can be sent to the control module to control the switch module to be turned on, so that the first host and the second host establish a USB communication connection, the second host is mounted to the first host as an external device, at this time, file sharing between the two hosts can be rapidly performed, not only can the cost of file sharing be reduced, but also the phenomenon of making mistakes during file transmission can be avoided, and the accuracy of file sharing is improved.
Fig. 1 is a schematic structural diagram of a multi-system all-in-one machine provided in an embodiment of the present application, and as shown in fig. 1, the multi-system all-in-one machine 10 includes a first host 12 deployed with a first operating system, a second host 14 deployed with a second operating system, a control module 11, and a switch module 13, where the switch module 13 is connected to the control module 11, the first host 12, and the second host 14, respectively. The control module 13 is configured to control the switch module 13 to be turned on or off, when the switch module 13 is in an on state, the first host 12 and the second host 14 establish a USB communication connection, and when the switch module 13 is in the on state, the first host 12 is configured to perform file sharing based on the USB communication connection between the first host 12 and the second host 14 according to an operation instruction for performing file sharing executed by a user on a display interface controlled by the first host.
Specifically, the first operating system and the second operating system may be different, for example, the first operating system deployed in the first host 12 may be a Windows, linux, or Unix operating system, and the second operating system deployed in the second host 14 may be an Android operating system. In addition, the first operating system and the second operating system may be the same, for example, both of the first operating system and the second operating system are Android systems.
It should be noted that, in the embodiments of the present application, a Windows operating system is deployed in a first host, and an Android system is deployed in a second host, as an example, the first host is a PC, the second host is an Android, for other operating systems, the specific structure of the multisystem all-in-one machine and the implementation manner of file sharing are similar to those when the first host is a PC and the second host is an Android, and details are not repeated here.
The first host 12 and the second host 14 operate separately, but share some peripheral devices, such as a switch module, an operation screen, and an MCU control unit, i.e., a display interface and a control module in the embodiment of the present application. The switch module 13 is connected to the first host 12, the second host 14, and the control module 11, respectively.
In addition, the multi-system all-in-one machine also comprises a controller used for controlling the display interface, and the controller controls whether the display interface is controlled by the first host computer or the second host computer or controlled by the first host computer and the second host computer simultaneously according to the operation of a user. When the display interface is controlled by the first host and the second host at the same time, the display interface may be divided according to a preset ratio, for example, the display interface is divided into a left part and a right part, where a left part is controlled by the first host, that is, displays the content or the file controlled by the first host, and a right part is controlled by the second host, that is, displays the content or the file controlled by the second host.
After receiving a first operation instruction, executed by a user on a first display interface, for requesting file sharing, the control module 11 sends a control signal to the switch module 13, and the switch module 13 controls itself to be in a conducting state according to the control signal, at this time, the first host 12 and the second host 14 establish USB communication connection.
In which the first host 12 and the second host 14 establish a USB communication connection, it can be understood that the second host 14 is mounted as an external device in the first host 12, and therefore, the drive letter information of the second host 14 can be detected in the first host 12.
When performing file sharing, a user may execute a second operation instruction, such as a copy instruction or a copy instruction of a file, on a second display interface controlled by the first host 12, and the first host 12 may copy the file in the first host 12 to the memory corresponding to the drive letter of the second host 14 or may copy the file in the memory corresponding to the drive letter of the second host 14 to the first host 12 based on the established USB communication connection with the second host 14.
The multi-system all-in-one machine in the embodiment comprises a first host, a second host, a control module and a switch module respectively connected with the first host, the second host and the control module, wherein the control module is used for controlling the state of the switch module, if the switch module is in a conducting state, USB communication connection can be established between the first host and the second host, and when the first host carries out an operation instruction for carrying out file sharing according to a user, file sharing is carried out based on the USB communication connection between the first host and the second host. The first host and the second host can directly share files based on USB communication connection without other hardware equipment, so that the cost of file sharing can be reduced. In addition, the file sharing is carried out through the USB communication connection, so that the file sharing efficiency can be improved, the phenomenon of error in file transmission in the prior art can be avoided, and the accuracy of file sharing is improved.
Illustratively, the first host includes a first USB transmission port, the second host includes a second USB transmission port, and the switch module 13 is connected to the control module 11, the first USB transmission port, and the second USB transmission port, respectively.
In this embodiment, the switch module may be directly connected to the first USB transmission port of the first host and the second USB transmission port of the second host to establish a USB communication connection between the first host and the second host, so that the cost of file transmission may be reduced.
It should be noted that, when the switch module 13 is in the on state, the control module 11 sets the second USB transmission port of the second host 14 to a USB device mode (USB device mode), so that the second host 14 is connected to the first host 12 as an external device, so as to achieve the purpose that the first host 12 can access the content of the second host 14.
Fig. 2 is another schematic structural diagram of the multisystem all-in-one machine according to the embodiment of the present application, and as shown in fig. 2, if a user triggers a third operation instruction on the first display interface, the third operation instruction being used for indicating that file sharing is not performed or stopping performing file sharing, the control module 11 controls the switch module 13 to be in an off state. When the switch module 13 is in the off state, the control module 11 controls the second USB transmission port of the second host 14 to be in the host mode, so that the second host 14 and the external USB transmission port 15 of the multi-system all-in-one machine 10 establish a communication connection.
Specifically, when the switch module 13 is in an off state, the control module 11 controls the second USB transmission port of the second host 14 to be switched to the external USB transmission port 15 of the multi-system all-in-one machine 10, and sets the second USB transmission port of the second host 14 to be in a host mode (host mode), so that one external USB signal input port can be added, and flexibility of file transmission is improved.
In addition, when the switch module 13 is in the off state, the first host 12 and the second host 14 are in a completely isolated state, so that the security of the system can be increased.
Illustratively, the switch module 13 may include an analog switch chip, a transistor, or a transistor to reduce the cost of file transfer.
Next, a specific structure of the multisystem all-in-one machine is described by taking the first host as a PC and the second host as an Android. Fig. 3 is another schematic structural diagram of the multi-system all-in-one machine provided in the embodiment of the present application, as shown in fig. 3, the switch module 13 may be an analog switch chip, a first end of the analog switch chip is connected to the control module 11, a second end of the analog switch chip is connected to the first end of the first resistor a _ R1277 and the first end of the first capacitor a _ C1212, respectively, the second end a _ VCC3V3_ SYS of the first resistor a _ R1277 is connected to the system power supply, and the second end of the first capacitor a _ C1212 is grounded. The third end and the fourth end of the analog switch chip are respectively connected with one ends of a second resistor A _ R1279 and a third resistor A _ R1278, and the other ends of the second resistor A _ R1279 and the third resistor A _ R1278 are connected with the first host 12. The fifth end and the sixth end of the analog switch chip are connected with an external USB transmission port 15, the seventh end and the eighth end are connected with a second host 14, and the enable end and the seventh end of the analog switch chip are grounded.
The second host 14 includes a microprocessor chip, and a first terminal and a second terminal of the microprocessor chip may be used as USB transmission ports of the second host, wherein the first terminal AG23 and the second terminal AH23 of the microprocessor chip are respectively connected to one terminals of the fourth resistor a _4R11 and the fifth resistor a _4R12, and the other terminals of the fourth resistor a _4R11 and the fifth resistor a _4R12 are connected to the seventh terminal and the eighth terminal of the analog switch chip. The third end AL30 of the microprocessor chip is connected with one end of a sixth resistor A _4R32, the other end of the sixth resistor A _4R32 is in a floating state, the fourth end AK30 of the microprocessor chip is connected with one end of a seventh resistor A _4R22, the other end of the seventh resistor A _4R22 is connected with a system power supply A _ VCC3V3_ S3, the fifth end AC31 of the microprocessor chip is connected with an eighth resistor A _4R1 and a ninth resistor A _4R2 which are connected in series, and the other end of the ninth resistor A _4R2 is grounded. The sixth end of the microprocessor chip is connected with one end of a tenth resistor A _4R23, the other end of the tenth resistor A _4R23 is connected with a system power supply A _ VCC3V3_ S3, the seventh end AC30 of the microprocessor chip is connected with an eleventh resistor A _4R3 and a twelfth resistor A _4R4 which are connected in series, the other end of the twelfth resistor A _4R4 is grounded, the eighth end V24, the ninth end U24 and the tenth end Y25 of the microprocessor chip are respectively connected with one ends of a second capacitor A _4C2, a third capacitor A _4C1 and a fourth capacitor A _4C3, and the other ends of the second capacitor A _4C2, the third capacitor A _4C1 and the fourth capacitor A _4C3 are grounded.
The capacitance values of the first capacitor a _ C1212, the second capacitor a _4C2, the third capacitor a _4C1 and the fourth capacitor a _4C3 may be, for example, 0.1 uF.
The control module 11 sends a control signal to the switch module 13 according to an operation instruction triggered by a user, so that the switch module 13 can be controlled to be turned on or off. When the switch module 13 is in the on state, the USB communication connection is established between the first host 12 and the second host 14, and the control module 11 may control the second host to set the USB transmission port to the USB device mode, so as to mount the second host as an external device in the first host 12, so that a user may copy or transfer files stored in the memory of the first host 12 to the memory of the second host 14 or copy or transfer files stored in the memory of the second host 14 to the memory of the first host 12 under the operating system of the first host 12, so as to implement file sharing between the first host 12 and the second host 14. On the other hand, when the switch module 13 is in the off state, complete isolation is realized between the first host 12 and the second host 14, and the control module 11 can control the second host to set the USB transmission port to the host mode, so as to establish USB communication connection between the second host and the external USB transmission port of the multi-system all-in-one machine, thereby realizing file transmission through the external USB transmission port, and improving flexibility of file transmission.
Fig. 4 is a schematic flowchart of a file sharing method based on a multi-system all-in-one machine according to an embodiment of the present application, and as shown in fig. 4, the method may be applied to the multi-system all-in-one machine according to any one of the embodiments, and the method includes the following steps:
step 401: the control module responds to a first operation instruction which is executed on a first display interface by a user and used for requesting file sharing, and controls the switch module to be in a conducting state according to the first operation instruction so as to control the first host and the second host to establish USB communication connection.
The first host is provided with a first operating system, and the second host is provided with a second operating system. The first operating system may be a Windows, linux, or Unix operating system, and the second operating system may be an Android operating system. In addition, the first operating system and the second operating system may be the same, for example, both the first operating system and the second operating system are Android operating systems.
In this step, in the multisystem all-in-one machine shown in fig. 1 to 3, the first host and the second host share the touch screen. When a user wants to share files between the first host and the second host, a first operation instruction is triggered through the first display interface, and the first operation instruction is used for indicating that file sharing is requested. The first display interface may be understood as a user advanced setting menu, which is an interface shared by the first host and the second host.
Fig. 5 is a schematic diagram of a first display interface, as shown in fig. 5, when a user selects an automatic control, a switch that determines whether to perform file sharing may appear in the first display interface, and if the user wants to perform file sharing, the user may click the switch corresponding to the file sharing to turn on the switch, and at this time, the user may send a first operation instruction for requesting file sharing to the control module through the first display interface.
After receiving a first operation instruction triggered by a user, the control module controls the switch module to be in a conducting state according to the first operation instruction so as to control the first host and the second host to establish USB communication connection.
In a possible implementation manner, the first host includes a first USB transmission port, and the second host includes a second USB transmission port, and when the switch module is turned on, the first USB transmission port and the second USB transmission port may be directly connected. When the first host and the second host are controlled to establish the USB communication connection, the control module may control the second USB transmission port of the second host to be in the device mode, and in the device mode, control the first host and the second host to establish the USB communication connection.
Specifically, the user may send different operation instructions to the control module by clicking the switch corresponding to the file sharing in fig. 5, and the control module may further control the second USB transmission port of the second host to be in different operation modes when controlling the on and off states of the switch module according to the different operation instructions. For example, when the switch module is in the on state, the control module controls the second USB transmission port of the second host to be connected with the first USB transmission port of the first host, that is, controls the USB channel of the second host to be switched to be connected with the first host, and at the same time, the control module controls the second USB transmission port of the second host to be set to a USB device mode (device mode), so that the second host is accessed to the first host as an external device, thereby achieving the purpose that the first host can access the content or file of the second host.
In this mode, when the switch module is in the on state, the second USB transmission port of the second host is controlled to be in the USB device mode, and in the USB device mode, the first host and the second host are controlled to establish the USB communication connection, so that the first host and the second host can share files through the USB communication connection, the file sharing efficiency can be improved, and the cost can be reduced.
Furthermore, when a second USB transmission port of the second host is in a USB device mode, the first host detects its own first USB transmission port, and if it is detected that the first USB transmission port is communicated with the second USB transmission port, the second host is mounted in the first host, so that the first host and the second host establish a USB communication connection.
Fig. 6 is a schematic diagram of a directory interface of the first host before the first host and the second host establish the USB communication connection, as shown in fig. 6, when the switch module is in the off state, because the USB communication connection is not established between the first host and the second host, the second host is not detected in the first host, and at this time, the file directory of the first host only includes the locally saved file or the locally installed disk.
Fig. 7 is a schematic view of a directory interface of the first host after the first host and the second host establish a USB communication connection, as shown in fig. 7, when the switch module is in a conducting state, the second USB transmission port of the second host is in a USB device mode, at this time, the first host may detect its own first USB transmission port to detect whether the first USB transmission port is connected with the second USB transmission port, if so, the second host is mounted in the first host, which is equivalent to directly accessing the second host to the first host as an external device, so that the USB communication connection is established between the first host and the second host. At this time, the file directory of the first host includes not only the locally saved file or the locally installed disk, but also identification information of the second host, such as displaying an AA drive letter.
The first USB transmission port is communicated with the second USB transmission port, which can be understood as the second USB transmission port of the second host is directly plugged into the first USB transmission port of the first host.
In this embodiment, when it is detected that the first USB transmission port is communicated with the second USB transmission port, the second host is mounted to the first host, so that the first host can access the content in the second host, and the purpose of file sharing is achieved.
In addition, when the user wants to stop the file sharing, a third operation instruction for requesting to stop the file sharing can be sent to the control module through the first display interface, and the control module can control the switch module to be switched off according to the third operation instruction.
Specifically, the user may click the switch corresponding to the file sharing in fig. 5 to send a third operation instruction for requesting to stop the file sharing to the control module, so that the control module is in an off state. When the switch module is in an off state, the control module sets a second USB transmission port of the second host to a host mode (host mode), and the host mode is used for indicating that the second host and an external transmission port of the multi-system all-in-one machine establish USB communication connection.
When the switch module is in an off state, the control module controls to switch the USB channel of the second host to the external USB transmission port, and simultaneously switches the second USB transmission port of the second host from a USB device mode to a host mode (host mode) to use the second USB transmission port as an external USB signal input port.
In this mode, when the switch module is in the off state, the second USB transmission port of the second host can be controlled to be in the host mode, so that the USB communication connection is established between the second host and the external transmission port of the multi-system all-in-one machine, and therefore complete isolation of the operating systems of the first host and the second host can be achieved, and safety is improved. In addition, the second USB transmission port is used as an external USB signal input port, so that the flexibility of file transmission can be increased.
Step 402: the first host responds to a second operation instruction for file sharing executed on a second display interface controlled by the first host by a user, and according to the second operation instruction, file sharing is carried out based on USB communication connection between the first host and the second host.
In this step, after the USB communication connection is established between the first host and the second host, the user may execute a second operation instruction on a second display interface controlled by the first host, where the second operation instruction is used to indicate that file sharing is performed. Fig. 8 is a schematic diagram of a second display interface, and as shown in fig. 7 and 8, a user may click on the local disk C to copy the file ggg in the local disk C to the second host, at this time, the user may click on the file ggg, or click on a control such as copy, cut, or send, to send a second operation instruction to the first host. The first host copies the file ggg to the second host based on the USB communication connection between the first host and the second host according to the received second operation instruction.
Similarly, as shown in fig. 7, the user may also click on the device AA to open the file in the second host, and according to the same operation as described above, the file in the second host may be copied to the first host, so as to implement file sharing.
For example, since the second display interface is an interface shared by the first host and the second host, when the file is shared, since the drive letter of the second host is displayed in the first host, the user needs to trigger a fourth operation instruction through the first display interface, where the fourth operation instruction is used to request to switch the display interfaces. The control module can switch the first display interface into a second display interface controlled by the first host according to the received fourth operation instruction.
Specifically, as shown in fig. 5, assuming that the first host is a PC with a Windows operating system deployed therein, and the second host is an Android with an Android operating system deployed therein, the user may click a "Windows" control (shown by a dotted line in fig. 5) in the first display interface to switch the first display interface to a second display interface controlled by the first host. After the display interfaces are switched, the first host carries out file sharing based on the USB communication connection between the first host and the second host according to a second operation instruction which is executed on a second display interface controlled by the first host by a user and carries out file sharing after receiving the second operation instruction.
In this embodiment, before the file sharing is performed, the display interface is switched first, so that the user operation can be facilitated, and the user experience can be improved.
According to the file sharing method based on the multi-system all-in-one machine, a control module responds to a first operation instruction which is executed by a user on a first display interface and used for requesting file sharing, and controls a switch module to be in a conducting state according to the first operation instruction so as to control a first host and a second host to establish USB communication connection, the first host responds to a second operation instruction which is executed by the user on a second display interface controlled by the first host and used for file sharing, and according to the second operation instruction, file sharing is carried out based on the USB communication connection between the first host and the second host. The first host and the second host can directly transmit and share files based on the internal USB of the multi-system all-in-one machine without other hardware equipment, so that the cost of file sharing can be reduced. In addition, the mode of sharing files based on the USB communication connection not only can improve the efficiency of sharing files, but also can avoid the phenomenon of errors in file transmission in the prior art and improve the accuracy of sharing files. In addition, the same file can be simultaneously opened and browsed in the window system and the Android system.
An embodiment of the present application further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the technical solution of the file sharing method based on the multiple all-in-one machine in any embodiment is implemented, and an implementation principle and beneficial effects of the implementation principle and the beneficial effects of the file sharing method based on the multiple all-in-one machine are similar to those of the file sharing method based on the multiple all-in-one machine, which can be referred to as the implementation principle and the beneficial effects of the file sharing method based on the multiple all-in-one machine, and are not described herein again.
The embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the technical solution of the file sharing method based on the multiple all-in-one machine in any embodiment is implemented, and the implementation principle and the beneficial effect of the computer program are similar to those of the file sharing method based on the multiple all-in-one machine, and reference may be made to the implementation principle and the beneficial effect of the file sharing method based on the multiple all-in-one machine, which is not described herein again.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (12)

1. A multi-system all-in-one machine, comprising: the system comprises a first host, a second host, a control module and a switch module, wherein the first host is provided with a first operating system, the second host is provided with a second operating system, and the switch module is respectively connected with the control module, the first host and the second host;
the control module is used for controlling the switch module to be switched on or switched off, wherein when the switch module is in a conducting state, the first host and the second host establish USB communication connection;
the first host is used for sharing files based on USB communication connection between the first host and the second host according to an operation instruction for sharing files executed by a user on a display interface controlled by the first host when the switch module is in a conducting state.
2. The multi-system all-in-one machine according to claim 1, wherein the first host comprises a first USB transmission port, the second host comprises a second USB transmission port, and the switch module is connected with the control module, the first USB transmission port and the second USB transmission port respectively.
3. The multi-system all-in-one machine according to claim 2, wherein the control module is further configured to control the second USB transmission port of the second host to be in a host mode when the switch module is in an off state, so that the second host and the external USB transmission port of the multi-system all-in-one machine establish a communication connection.
4. The multisystem all-in-one machine according to any one of claims 1 to 3, wherein the switch module comprises an analog switch, a triode or a transistor.
5. A file sharing method based on a multi-system all-in-one machine is applied to the multi-system all-in-one machine according to any one of claims 1-4, and the method comprises the following steps:
the control module responds to a first operation instruction which is executed on a first display interface by a user and used for requesting file sharing, and controls the switch module to be in a conducting state according to the first operation instruction so as to control the first host and the second host to establish USB communication connection; a first operating system is deployed in the first host, and a second operating system is deployed in the second host;
and the first host responds to a second operation instruction for performing file sharing executed by the user on a second display interface controlled by the first host, and performs file sharing based on the USB communication connection between the first host and the second host according to the second operation instruction.
6. The method of claim 5, wherein the controlling the first host and the second host to establish a USB communication connection comprises:
the control module controls a second USB transmission port of the second host to be in a USB device mode, and controls the first host and the second host to establish USB communication connection in the USB device mode.
7. The method according to claim 6, wherein the controlling the first host and the second host to establish a USB communication connection in the device mode comprises:
under the USB equipment mode, the first host detects a first USB transmission port of the first host;
and if the first USB transmission port is detected to be communicated with the second USB transmission port, mounting the second host computer into the first host computer, so that the first host computer and the second host computer establish USB communication connection.
8. The method according to any one of claims 5-7, further comprising:
the control module responds to a third operation instruction which is executed on the first display interface by a user and used for requesting to stop file sharing, and controls the switch module to be in an off state according to the third operation instruction.
9. The method of claim 8, further comprising:
when the switch module is in an off state, the control module controls a second USB transmission port of the second host to be in a host mode, and the host mode is used for indicating that the second host and an external transmission port of the multi-system all-in-one machine establish USB communication connection.
10. The method according to any one of claims 5-7, wherein the first host responds to a second operation instruction executed by the user on a second display interface controlled by the first host for file sharing, and the method further comprises:
the control module responds to a fourth operation instruction which is executed on the first display interface by a user and used for requesting to switch the display interface, and switches the first display interface into a second display interface controlled by the first host according to the fourth operation instruction.
11. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-readable storage medium implements the method for sharing files based on a multiple system all-in-one according to any one of claims 5 to 10.
12. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the multisystem all-in-one based file sharing method according to any one of claims 5 to 10.
CN202110289109.1A 2021-03-18 2021-03-18 Multi-system all-in-one machine, file sharing method and storage medium Pending CN115114214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110289109.1A CN115114214A (en) 2021-03-18 2021-03-18 Multi-system all-in-one machine, file sharing method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110289109.1A CN115114214A (en) 2021-03-18 2021-03-18 Multi-system all-in-one machine, file sharing method and storage medium

Publications (1)

Publication Number Publication Date
CN115114214A true CN115114214A (en) 2022-09-27

Family

ID=83324017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110289109.1A Pending CN115114214A (en) 2021-03-18 2021-03-18 Multi-system all-in-one machine, file sharing method and storage medium

Country Status (1)

Country Link
CN (1) CN115114214A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050221894A1 (en) * 2004-03-31 2005-10-06 Microsoft Corporation Multi-system game controller that operates in multiple USB modes
CN1987858A (en) * 2005-12-19 2007-06-27 国际商业机器公司 Method and equipment for sharing computer data among computers
US20140287685A1 (en) * 2013-03-20 2014-09-25 Research In Motion Limited Portable bridge device
CN105981338A (en) * 2013-12-08 2016-09-28 跨端口网路解决公司 Link system for establishing high speed network communications and file transfer between hosts using I/O device links
CN106528302A (en) * 2016-10-18 2017-03-22 广州视睿电子科技有限公司 File sharing method and apparatus for multi-system integrated machine
WO2018113377A1 (en) * 2016-12-20 2018-06-28 广州视源电子科技股份有限公司 Dual-system all-in-one computer with touch screen function, and communication method therefor
US20180275738A1 (en) * 2017-03-23 2018-09-27 Intel Corporation Apparatus, method, and system for dynamically controlling ports in different system states
CN111066306A (en) * 2018-03-27 2020-04-24 华为技术有限公司 Method for sharing data in local area network and electronic equipment
CN212364990U (en) * 2020-06-23 2021-01-15 广州视源电子科技股份有限公司 File storage system and intelligent device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050221894A1 (en) * 2004-03-31 2005-10-06 Microsoft Corporation Multi-system game controller that operates in multiple USB modes
CN1987858A (en) * 2005-12-19 2007-06-27 国际商业机器公司 Method and equipment for sharing computer data among computers
US20140287685A1 (en) * 2013-03-20 2014-09-25 Research In Motion Limited Portable bridge device
CN105981338A (en) * 2013-12-08 2016-09-28 跨端口网路解决公司 Link system for establishing high speed network communications and file transfer between hosts using I/O device links
CN106528302A (en) * 2016-10-18 2017-03-22 广州视睿电子科技有限公司 File sharing method and apparatus for multi-system integrated machine
WO2018113377A1 (en) * 2016-12-20 2018-06-28 广州视源电子科技股份有限公司 Dual-system all-in-one computer with touch screen function, and communication method therefor
US20180275738A1 (en) * 2017-03-23 2018-09-27 Intel Corporation Apparatus, method, and system for dynamically controlling ports in different system states
CN111066306A (en) * 2018-03-27 2020-04-24 华为技术有限公司 Method for sharing data in local area network and electronic equipment
CN212364990U (en) * 2020-06-23 2021-01-15 广州视源电子科技股份有限公司 File storage system and intelligent device

Similar Documents

Publication Publication Date Title
US6546450B1 (en) Method and apparatus for sharing a universal serial bus device among multiple computers by switching
US7921244B2 (en) Data sharing and transfer systems and methods
US6085265A (en) System for handling an asynchronous interrupt a universal serial bus device
US20060253639A1 (en) Control system for controlling a plurality of target computers through portable computer
US20100100652A1 (en) Kvm switch with pip functions using remote desktop sharing technique
CN107391419B (en) Support general sequence busbar concentrator of many host computers and automobile-used host computer
CN108170518B (en) Server management control system and method
US10042800B2 (en) Active USB device and switching method for operating mode thereof
US20190236045A1 (en) Virtual comport bridge supporting host-to-host usb transmission
CN115114214A (en) Multi-system all-in-one machine, file sharing method and storage medium
CN108959153B (en) All-in-one machine, data continuous transmission method, device, equipment and storage medium
CN204856476U (en) Interface arrangement and connecting device
CN110750475A (en) Method and device for sharing one physical serial port by multiple CPUs, embedded equipment and medium
US20120059969A1 (en) Non-invasive direct-mapping usb switching device
CN203204588U (en) Touch device capable of being switched between television and computer
EP2760157B1 (en) Method, device and system for backing up device information
CN212624021U (en) Switching system for multi-host multi-network shared display
CN212208279U (en) USB interface switching device and terminal equipment
CN109800198B (en) Circuit for realizing independent switching of hardware by connecting three devices through USB (universal serial bus) ports
CN109388247B (en) AUX automatic response device and method of KVM switcher
WO2001007984A9 (en) Universal serial bus adapter with automatic installation
CN108268407B (en) Processing method of access equipment and mobile terminal
CN104536932B (en) The universal communication method of dedicated low-speed USB devices
CN111142953A (en) External equipment switching circuit and conference tablet
CN113515347B (en) Dual-system data transmission method and device based on virtual machine

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