Multi-system integrated machine, file sharing method and storage medium
By using the control module and the switch module in the multi-system all-in-one machine to share files based on USB communication connections, the problem of low file sharing efficiency and accuracy in the existing technology is solved, efficient and accurate file transmission is achieved, and the cost is reduced. and improved system security.
Patent Information
- Application Number
- CN202110289109.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-18
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-03-18
AI Technical Summary
When existing multi-system all-in-one machines share files, the data transmission rate is slow and error-prone, resulting in low file sharing efficiency and accuracy.
By introducing the control module and the switch module into the multi-system all-in-one machine, the USB communication connection is used to realize file sharing between the first host and the second host, avoiding the need to rely on other hardware devices. The control module controls the switch module to turn on or off under user instructions. Power off to establish or disconnect USB connection.
It improves the efficiency and accuracy of file sharing, reduces costs, and increases system security and file transfer flexibility.
Smart Images

Figure CN115114214B
Abstract
Description
Technical Field
[0001] The present application relates to computer technology, and more particularly to a multi-system all-in-one machine, a file sharing method and a storage medium. Background Art
[0002] With the development of technology, multi-system all-in-one computers, especially those with touch screen functions, are increasingly widely used in medical, teaching, conference and other fields due to their convenience, flexibility and powerful functions.
[0003] In an integrated device including two or more systems, a first host with a first operating system and a second host with a second operating system work independently. When files are shared between the two hosts, data is usually transmitted through a serial port or I2C (Inter-Integrated Circuit). For example, the first host can send the data to be transmitted to the second host at a preset transmission rate through a serial port or an I2C bus.
[0004] However, the above-mentioned file sharing method has a slow data transmission rate and is prone to errors during data transmission, which not only leads to low file sharing efficiency but also low accuracy of shared files. Summary of the invention
[0005] The present application provides a multi-system all-in-one machine, a file sharing method and a storage medium, which are used to solve the technical problems of low file sharing efficiency and low accuracy of shared files.
[0006] In a first aspect, the present application provides a multi-system integrated machine, comprising: a first host deployed with a first operating system, a second host deployed with a second operating system, a control module and a switch module, wherein the switch module is respectively connected to the control module, the first host and the second host;
[0007] The control module is used to control the switch module to be turned on or off, wherein when the switch module is in the on state, the first host and the second host establish a USB communication connection;
[0008] The first host is used to share files based on the USB communication connection between the first host and the second host according to an operation instruction for file sharing executed by the user on a display interface controlled by the first host when the switch module is in an on state.
[0009] In this solution, since the first host and the second host can directly share files based on the USB communication connection without the need for other hardware devices, the cost of file sharing can be reduced. In addition, file sharing through the USB communication connection can not only improve the efficiency of file sharing, but also avoid the error phenomenon in file transmission in the prior art, and improve the accuracy of shared files.
[0010] 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.
[0011] In this solution, since the switch module can directly connect 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, the cost of file transmission can be reduced.
[0012] Optionally, the control module is further used to control the second USB transmission port of the second host to be in 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 integrated machine establish a communication connection.
[0013] In this solution, a communication connection is established between the second host and the external USB transmission port of the multi-system integrated machine, which can add an external USB signal input port, thereby improving the flexibility of file transfer. In addition, when the switch module is in the off state, the first host and the second host are in a completely isolated state, thereby increasing the security of the system.
[0014] Optionally, the switch module includes an analog switch, a triode or a transistor.
[0015] 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 described in the first aspect, and the method includes:
[0016] The control module responds to a first operation instruction executed by a user on a first display interface for requesting file sharing, and according to the first operation instruction, controls the switch module to be in a conducting state, so as to control the first host and the second host to establish a USB communication connection; a first operating system is deployed in the first host, and a second operating system is deployed in the second host;
[0017] 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, and performs file sharing based on a USB communication connection between the first host and the second host according to the second operation instruction.
[0018] In this solution, since the first host and the second host can directly share files based on the USB communication connection without the need for other hardware devices, the cost of file sharing can be reduced. In addition, the method of sharing files based on the USB communication connection can not only improve the efficiency of file sharing, but also avoid the phenomenon of errors in file transmission in the prior art, and improve the accuracy of shared files.
[0019] Optionally, controlling the first host and the second host to establish a USB communication connection includes:
[0020] The control module controls the second USB transmission port of the second host to be in USB device mode, and in the USB device mode, controls the first host and the second host to establish a USB communication connection.
[0021] In this solution, since the switch module is in the on state, the second USB transmission port of the second host can be controlled to be in USB device mode, and in the USB device mode, the first host and the second host are controlled to establish a USB communication connection, so that the first host and the second host can share files through the USB communication connection, thereby improving the efficiency of file sharing and reducing costs.
[0022] Optionally, in the device mode, controlling the first host and the second host to establish a USB communication connection includes:
[0023] In the USB device mode, the first host detects a first USB transmission port of the first host;
[0024] If it is detected that the first USB transmission port is connected to the second USB transmission port, the second host is mounted to the first host so that the first host and the second host establish a USB communication connection.
[0025] In this solution, when it is detected that the first USB transmission port is connected to 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 to achieve the purpose of file sharing. This method can avoid file transfer through I2C or serial port in the prior art, thereby improving the efficiency and accuracy of file sharing.
[0026] Optionally, the method further includes:
[0027] The control module responds to a third operation instruction executed by a user on the first display interface for requesting to stop file sharing, and controls the switch module to be in an off state according to the third operation instruction.
[0028] Optionally, the method further includes:
[0029] When the switch module is in the off state, the control module controls the second USB transmission port of the second host to be in the host mode, and the host mode is used to indicate that the second host and the external transmission port of the multi-system integrated machine establish a USB communication connection.
[0030] In this solution, since 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 as to establish a USB communication connection between the second host and the external transmission port of the multi-system integrated machine, so that the operating systems of the first host and the second host can be completely isolated, thereby increasing security. In addition, since the second USB transmission port is used as an external USB signal input port, the flexibility of file transmission can be increased.
[0031] 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:
[0032] The control module responds to a fourth operation instruction executed by a user on the first display interface for requesting display interface switching, and switches the first display interface to a second display interface controlled by the first host according to the fourth operation instruction.
[0033] In this solution, before sharing files, the display interface is switched first, so as to facilitate user operation and improve user experience.
[0034] In a third aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the file sharing method based on a multi-system all-in-one machine described in the second aspect above is implemented.
[0035] In a fourth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the file sharing method based on a multi-system all-in-one machine as described in the second aspect above.
[0036] The multi-system integrated machine in this embodiment includes a first host, a second host, a control module, and a switch module connected to the first host, the second host and the control module respectively. The control module is used to control the on or off of the switch module. If the switch module is in the on state, a USB communication connection will be established between the first host and the second host. The first host will share files based on the USB communication connection between the first host and the second host according to the operation instructions executed by the user for file sharing. Since the first host and the second host can directly share files based on the USB communication connection without the help of other hardware devices, the cost of file sharing can be reduced. In addition, file sharing through the USB communication connection can not only improve the efficiency of file sharing, but also avoid the phenomenon of errors in file transmission in the prior art, and improve the accuracy of shared files. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] 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 present application.
[0038] Figure 1 A schematic diagram of the structure of a multi-system all-in-one machine provided in an embodiment of the present application;
[0039] Figure 2 Another structural schematic diagram of the multi-system all-in-one machine provided in an embodiment of the present application;
[0040] Figure 3 Another structural schematic diagram of the multi-system all-in-one machine provided in an embodiment of the present application;
[0041] Figure 4 A flowchart of a file sharing method based on a multi-system all-in-one machine provided in an embodiment of the present application;
[0042] Figure 5 is a schematic diagram of a first display interface;
[0043] Figure 6 A schematic diagram of a directory interface of the first host before the first host and the second host establish a USB communication connection;
[0044] Figure 7 A schematic diagram of a directory interface of the first host after the first host and the second host establish a USB communication connection;
[0045] Figure 8 is a schematic diagram of the second display interface.
[0046] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0047] The file sharing method based on the multi-system integrated machine provided in the embodiment of the present application is applied to the scenario of file sharing or file transfer between two hosts in the multi-system integrated machine. The current multi-system integrated machine includes a first host and a second host, wherein a first operating system is deployed in the first host, and the first operating system can be, for example, a Windows, Linux or Unix operating system, and a second operating system is deployed in the second host, and the second operating system can be, for example, an Android operating system. The first host and the second host work separately, but share some peripheral devices, such as an operating screen or a microcontroller unit (MCU).
[0048] In many scenarios, the first host and the second host need to share files, such as copying files stored in the first host to the second host, or copying files stored in the second host to the first host, etc. Currently, when performing file transfer, it can usually be achieved in the following two ways:
[0049] The first method: file transfer via the network. Since the first host and the second host work independently, network cards can be installed in the first host and the second host, so that a network connection is established between the first host and the second host via the network cards to achieve file sharing.
[0050] The second method is to transfer files through a serial port or I2C. Specifically, a host that needs to transfer files sends the files to be transferred to another host at a preset transmission rate.
[0051] In the first method, the cost of file sharing is high because network cards need to be installed in the first host and the second host. In the second method, the transmission rate of this method is low because bytes are sent in sequence according to the transmission rate when the file is transferred, and packet loss is prone to occur during the byte transmission process, resulting in file transfer errors.
[0052] In the embodiment of the present application, the above-mentioned problems are taken into consideration, and a new multi-system integrated machine is proposed. Considering that the current multi-system integrated machine includes a first host and a second host working separately, if a Universal Serial Bus (USB) communication connection can be established between the first host and the second host during file transfer, and the second host is directly mounted as an external device in the first host, then file sharing between the first host and the second host can be quickly realized. Based on this, the multi-system integrated machine provided in the embodiment of the present application, on the basis of the current multi-system integrated machine, also includes a switch module, which is connected to the first host and the second host respectively. When the 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. In this way, the first host and the second host will establish a USB communication connection, and the second host will be mounted as an external device in the first host. At this time, file sharing between the two hosts can be quickly carried out, which can not only reduce the cost of file sharing, but also avoid the phenomenon of errors during file transfer, and improve the accuracy of shared files.
[0053] Figure 1 A schematic diagram of the structure of a multi-system integrated machine provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the multi-system integrated 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, and the switch module 13 is respectively connected to the control module 11, the first host 12 and the second host 14. Among them, the control module 13 is used to control the on or off of the switch module 13, and when the switch module 13 is in the on state, the first host 12 and the second host 14 establish a USB communication connection, and the first host 12 is used to perform file sharing based on the USB communication connection between the first host 12 and the second host 14 according to the operation instruction for file sharing executed by the user on the display interface controlled by the first host when the switch module 13 is in the on state.
[0054] 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, etc. In addition, the first operating system and the second operating system may also be the same, for example, both are Android systems.
[0055] It should be noted that the embodiments of the present application are described by taking the Windows operating system deployed in the first host and the Android system deployed in the second host as an example, that is, the first host is a PC and the second host is an Android machine. For other operating systems, the specific structure of the multi-system all-in-one machine and the implementation method of file sharing are similar to those when the first host is a PC and the second host is an Android machine, and will not be repeated here.
[0056] The first host 12 and the second host 14 work separately, but share some peripheral devices, such as a switch module, an operation screen, and an MCU control unit, that is, 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.
[0057] In addition, the multi-system integrated machine also includes a controller for controlling the display interface, and the controller controls whether the display interface is controlled by the first host, the second host, or the first host and the second host at the same time according to the user's operation. When the display interface is controlled by the first host and the second host at the same time, the display interface can be divided according to a preset ratio, such as dividing the display interface into left and right parts, the left part is controlled by the first host, that is, the content or file controlled by the first host is displayed, and the right part is controlled by the second host, that is, the content or file controlled by the second host is displayed.
[0058] After receiving the first operation instruction executed by the user on the first display interface to request file sharing, the control module 11 will send a control signal to the switch module 13. The switch module 13 controls itself to be in a conductive state according to the control signal. At this time, the first host 12 and the second host 14 will establish a USB communication connection.
[0059] The first host 12 and the second host 14 establish a USB communication connection, which can be understood as the second host 14 being mounted as an external device in the first host 12 . Therefore, the drive letter information of the second host 14 can be detected in the first host 12 .
[0060] When sharing files, the user can execute a second operation instruction on the second display interface controlled by the first host 12, such as a file copy instruction or a file replication instruction, etc. The first host 12 can copy the file in the first host 12 to the storage device corresponding to the drive letter of the second host 14 based on the established USB communication connection with the second host 14, or can copy the file in the storage device corresponding to the drive letter of the second host 14 to the first host 12.
[0061] The multi-system integrated machine in this embodiment includes a first host, a second host, a control module, and a switch module connected to the first host, the second host and the control module respectively. The control module is used to control the state of the switch module. If the switch module is in the on state, a USB communication connection will be established between the first host and the second host. The first host will share files based on the USB communication connection between the first host and the second host according to the operation instructions executed by the user for file sharing. Since the first host and the second host can directly share files based on the USB communication connection without the help of other hardware devices, the cost of file sharing can be reduced. In addition, file sharing through the USB communication connection can not only improve the efficiency of file sharing, but also avoid the phenomenon of errors in file transmission in the prior art, and improve the accuracy of shared files.
[0062] Exemplarily, 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.
[0063] In this embodiment, since the switch module can directly connect 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, the cost of file transmission can be reduced.
[0064] It should be noted that when the switch module 13 is in the on state, the control module 11 will set the second USB transmission port of the second host 14 to the USB device mode, thereby connecting the second host 14 to the first host 12 as an external device, so as to achieve the purpose of enabling the first host 12 to access the content of the second host 14.
[0065] Figure 2 Another structural diagram of the multi-system integrated machine provided in the embodiment of the present application is as follows Figure 2 As shown, if the user triggers the third operation instruction for indicating not to share files or to stop sharing files on the first display interface, the control module 11 will control the switch module 13 to be in the off state. When the switch module 13 is in the off state, the control module 11 will control 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.
[0066] Specifically, 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 switch and connect to the external USB transmission port 15 of the multi-system all-in-one machine 10, and at the same time sets the second USB transmission port of the second host 14 to the host mode, which can add an external USB signal input port, thereby improving the flexibility of file transfer.
[0067] 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, thereby increasing the safety of the system.
[0068] Exemplarily, the switch module 13 may include an analog switch chip, a triode or a transistor to reduce the cost of file transmission.
[0069] Below, taking the first host as a PC and the second host as an Android device as an example, the specific structure of the multi-system integrated machine is explained. Figure 3 Another structural diagram of the multi-system integrated machine provided in the embodiment of the present application is as follows Figure 3 As shown, the switch module 13 can be an analog switch chip, the first end of the analog switch chip is connected to the control module 11, the second end is respectively connected to the first end of the first resistor A_R1277 and the first end of the first capacitor A_C1212, 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 to one end of the second resistor A_R1279 and the third resistor A_R1278, and the other end of the second resistor A_R1279 and the third resistor A_R1278 is connected to the first host 12. The fifth end and the sixth end of the analog switch chip are connected to the external USB transmission port 15, the seventh end and the eighth end are connected to the second host 14, and the enable end and the seventh end of the analog switch chip are grounded.
[0070] The second host 14 includes a microprocessor chip, the first end and the second end of the microprocessor chip can be used as the USB transmission port of the second host, wherein the first end AG23 and the second end AH23 of the microprocessor chip are respectively connected to one end of the fourth resistor A_4R11 and the fifth resistor A_4R12, and the other end of the fourth resistor A_4R11 and the fifth resistor A_4R12 are connected to the seventh end and the eighth end of the analog switch chip. The third end AL30 of the microprocessor chip is connected to one end of the sixth resistor A_4R32, and the other end of the sixth resistor A_4R32 is in a suspended state, the fourth end AK30 of the microprocessor chip is connected to one end of the seventh resistor A_4R22, and the other end of the seventh resistor A_4R22 is connected to the system power supply A_VCC3V3_S3, the fifth end AC31 of the microprocessor chip is connected to the eighth resistor A_4R1 and the ninth resistor A_4R2 connected in series, and the other end of the ninth resistor A_4R2 is grounded. The sixth end of the microprocessor chip is connected to one end of the tenth resistor A_4R23, the other end of the tenth resistor A_4R23 is connected to the system power supply A_VCC3V3_S3, the seventh end AC30 of the microprocessor chip is connected to the eleventh resistor A_4R3 and the twelfth resistor A_4R4 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 to one end of the second capacitor A_4C2, the third capacitor A_4C1 and the 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.
[0071] The capacitance 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.
[0072] The control module 11 sends a control signal to the switch module 13 according to the operation instruction triggered by the user, so as to control the switch module 13 to be turned on or off. When the switch module 13 is in the on state, a USB communication connection is established 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 USB device mode, so as to mount the second host as an external device in the first host 12, so that the user can copy or transfer the files stored in the memory of the first host 12 to the memory of the second host 14, or copy or transfer the 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 realize 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, the first host 12 and the second host 14 will be completely isolated, and the control module 11 can control the second host to set the USB transmission port to the host mode, so as to establish a USB communication connection between the second host and the external USB transmission port of the multi-system integrated machine, so that the file transmission can be realized through the external USB transmission port, which improves the flexibility of file transmission.
[0073] Figure 4 A flowchart of a file sharing method based on a multi-system all-in-one machine is provided in an embodiment of the present application, such as Figure 4 As shown, the method can be applied to the multi-system integrated machine described in any of the above embodiments, and the method includes the following steps:
[0074] Step 401: The control module responds to a first operation instruction executed by a user on a first display interface for requesting file sharing. According to the first operation instruction, the control module controls the switch module to be in an on state to control the first host and the second host to establish a USB communication connection.
[0075] The first host is deployed with a first operating system, and the second host is deployed 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, etc. In addition, the first operating system and the second operating system may also be the same, for example, both are Android operating systems.
[0076] In this step, Figure 1-Figure 3 In the multi-system integrated machine shown, the first host and the second host share a touch screen. When the 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 to indicate a request for file sharing. The first display interface can be understood as a user advanced setting menu, which is an interface shared by the first host and the second host.
[0077] Figure 5 is a schematic diagram of the first display interface, such as Figure 5 As shown, when the user selects the automatic control, a toggle switch for whether to share files will appear in the first display interface. If the user wants to share files, the toggle switch corresponding to the file sharing can be turned on by clicking the toggle switch. At this time, the user can send a first operation instruction for requesting file sharing to the control module through the first display interface.
[0078] After receiving the first operation instruction triggered by the user, the control module will control 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 a USB communication connection.
[0079] In a possible implementation, the first host includes a first USB transmission port, and the second host includes a second USB transmission port. When the switch module is turned on, the first USB transmission port and the second USB transmission port can be directly connected. When controlling the first host and the second host to establish a USB communication connection, the control module can control the second USB transmission port of the second host to be in a device mode, and in the device mode, control the first host and the second host to establish a USB communication connection.
[0080] Specifically, users can click Figure 5 The switch corresponding to the file sharing in the control module sends different operation instructions to the control module. The control module controls the on and off states of the switch module according to the different operation instructions, and also controls the second USB transmission port of the second host to be in different operation modes. For example, when the switch module is in the on state, the control module will control the second USB transmission port of the second host to be connected to the first USB transmission port of the first host, that is, control the USB channel of the second host to be switched to connect to the first host. At the same time, the control module will control the second USB transmission port of the second host to be set to the USB device mode, so as to connect the second host to the first host as an external device, so as to achieve the purpose that the first host can access the content or files of the second host.
[0081] In this method, since the switch module is in the on state, the second USB transmission port of the second host can be controlled to be in USB device mode, and in the USB device mode, the first host and the second host are controlled to establish a USB communication connection, thereby enabling the first host and the second host to share files through the USB communication connection, thereby improving the efficiency of file sharing and reducing costs.
[0082] Furthermore, when the second USB transmission port of the second host is in USB device mode, the first host detects its own first USB transmission port. If it is detected that the first USB transmission port is connected to the second USB transmission port, the second host is mounted to the first host to establish a USB communication connection between the first host and the second host.
[0083] Figure 6 A schematic diagram of the directory interface of the first host before the first host and the second host establish a USB communication connection, such as Figure 6 As shown, when the switch module is in the off state, since no USB communication connection is established between the first host and the second host, the second host is not detected in the first host. At this time, the file directory of the first host only includes locally saved files or locally installed disks.
[0084] Figure 7 A schematic diagram of the directory interface of the first host after the first host and the second host establish a USB communication connection, such as Figure 7 As shown, when the switch module is in the on state, the second USB transmission port of the second host is in USB device mode. At this time, the first host will detect its own first USB transmission port to detect whether the first USB transmission port is connected to the second USB transmission port. If connected, the second host will be mounted to the first host, which is equivalent to directly connecting the second host to the first host as an external device, so that a 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 locally saved files or locally installed disks, but also the identification information of the second host, such as displaying the AA drive letter.
[0085] The first USB transmission port is connected to the second USB transmission port, which can be understood as the second USB transmission port of the second host is equivalent to being directly plugged into the first USB transmission port of the first host.
[0086] In this embodiment, when it is detected that the first USB transmission port is connected to 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 to achieve the purpose of file sharing. This method can avoid file transfer through I2C or serial port in the prior art, thereby improving the efficiency and accuracy of file sharing.
[0087] In addition, when the user wants to stop sharing the file, the user can send a third operation instruction for requesting to stop sharing the file to the control module through the first display interface, and the control module can control the switch module to turn off according to the third operation instruction.
[0088] Specifically, users can click Figure 5The switching switch corresponding to the file sharing in the multi-system integrated machine is used to send a third operation instruction for requesting to stop the file sharing to the control module, thereby controlling the switch module to be in the off state. When the switch module is in the off state, the control module sets the second USB transmission port of the second host to the host mode, and the host mode is used to indicate that the second host and the external transmission port of the multi-system integrated machine establish a USB communication connection.
[0089] When the switch module is in the off state, the control module controls the USB channel of the second host to be switched to the external USB transmission port, and at the same time switches the second USB transmission port of the second host from the USB device mode to the host mode, so as to use the second USB transmission port as an external USB signal input port.
[0090] In this manner, since 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 as to establish a USB communication connection between the second host and the external transmission port of the multi-system integrated machine, thereby completely isolating the operating systems of the first host and the second host, thereby increasing security. In addition, since the second USB transmission port is used as an external USB signal input port, the flexibility of file transmission can be increased.
[0091] Step 402: The first host responds to a second operation instruction for file sharing executed by a user on a second display interface controlled by the first host, and performs file sharing based on a USB communication connection between the first host and the second host according to the second operation instruction.
[0092] In this step, after the USB communication connection is established between the first host and the second host, the user can execute a second operation instruction on the second display interface controlled by the first host, and the second operation instruction is used to indicate file sharing. Figure 8 is a schematic diagram of the second display interface, such as Figure 7 and 8 As shown, the user can 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 can click on the file ggg, or click on controls such as copy, cut or send to to send the second operation instruction to the first host. The first host will copy 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.
[0093] Similar, such as Figure 7 As shown, the user can also click on device AA to open the file in the second host. According to the same operation as above, the file in the second host can be copied to the first host, thereby realizing file sharing.
[0094] Exemplarily, since the second display interface is an interface shared by the first host and the second host, when sharing files, since the drive letter of the second host is displayed in the first host, the user needs to trigger the fourth operation instruction through the first display interface, and the fourth operation instruction is used to request to switch the display interface. The control module can switch the first display interface to the second display interface controlled by the first host according to the received fourth operation instruction.
[0095] Specifically, Figure 5 As shown, assuming that the first host is a PC with a Windows operating system deployed, and the second host is an Android machine with an Android operating system deployed, the user can click the "Windows" control in the first display interface (such as Figure 5 The first host computer 100 may be connected to the second host computer 100 via a USB interface (shown by the dashed line in the middle) to switch the first display interface to the second display interface controlled by the first host computer. After the display interface is switched, upon receiving the second operation instruction for file sharing executed by the user on the second display interface controlled by the first host computer, the first host computer 100 may share files based on the USB communication connection between the first host computer and the second host computer according to the second operation instruction.
[0096] In this embodiment, before file sharing is performed, the display interface is switched first, thereby facilitating user operation and improving user experience.
[0097] The file sharing method based on the multi-system integrated machine provided in the embodiment of the present application is that the control module responds to the first operation instruction executed by the user on the first display interface for requesting file sharing, and according to the first operation instruction, the control switch module is in the on state to control the first host and the second host to establish a USB communication connection, and the first host responds to the second operation instruction executed by the user on the second display interface controlled by the first host for file sharing, and according to the second operation instruction, the file is shared based on the USB communication connection between the first host and the second host. Since the first host and the second host can directly transfer and share files based on the internal USB of the multi-system integrated machine without the need for other hardware devices, the cost of file sharing can be reduced. In addition, the method of sharing files based on the USB communication connection can not only improve the efficiency of file sharing, but also avoid the phenomenon of errors in file transfer in the prior art, and improve the accuracy of shared files. In addition, in the embodiment of the present application, it can also be achieved that the same file can be opened and browsed in the window system and the Android system at the same time.
[0098] An embodiment of the present application also provides a computer-readable storage medium, which stores computer executable instructions. When a processor executes the computer executable instructions, the technical solution of the file sharing method based on a multi-system all-in-one machine in any of the above embodiments is implemented. The implementation principle and beneficial effects are similar to those of the file sharing method based on a multi-system all-in-one machine. Please refer to the implementation principle and beneficial effects of the file sharing method based on a multi-system all-in-one machine, which will not be repeated here.
[0099] An embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the technical solution of the file sharing method based on a multi-system all-in-one machine in any of the above embodiments is implemented. The implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the file sharing method based on a multi-system all-in-one machine. Please refer to the implementation principle and beneficial effects of the file sharing method based on a multi-system all-in-one machine, which will not be repeated here.
[0100] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0101] It should be understood that the present application is not limited to the precise structures that have been 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 present application is limited only by the appended claims.
Claims
1. A multi-system integrated machine, characterized in that: include: A first host deployed with a first operating system, a second host deployed with a second operating system, a control module and a switch module, wherein the switch module is connected to the control module, the first host and the second host respectively; The control module is used to control the switch module to be turned on or off, wherein when the switch module is in the on state, the first host and the second host establish a USB communication connection; The first host is used to perform file sharing based on the USB communication connection between the first host and the second host according to an operation instruction for file sharing executed by a user on a display interface controlled by the first host when the switch module is in an on state; Wherein, the second host comprises a second USB transmission port; The control module is used to control the second USB transmission port of the second host to be set to USB device mode when the switch module is in the on state; the control module is also used to control the second USB transmission port of the second host to be in host mode when the switch module is in the 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.
2. The multi-system integrated machine according to claim 1, characterized in that: The first host includes a first 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.
3. The multi-system integrated machine according to claim 1 or 2, characterized in that: The switch module includes an analog switch, a triode or a transistor.
4. A file sharing method based on a multi-system integrated machine, characterized in that: Applied to the multi-system all-in-one machine according to any one of claims 1 to 3, the method comprises: The control module responds to a first operation instruction executed by a user on a first display interface 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 a USB communication connection; a first operating system is deployed in the first host, and a second operating system is deployed in the second host; wherein the first display interface is a user advanced setting menu, which is an interface shared by the first host and the second host; 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, and performs file sharing based on a USB communication connection between the first host and the second host according to the second operation instruction; The controlling the first host and the second host to establish a USB communication connection comprises: The control module controls the second USB transmission port of the second host to be in USB device mode, and in the USB device mode, controls the first host and the second host to establish a USB communication connection; When the switch module is in the off state, the control module controls the second USB transmission port of the second host to be in the host mode, and the host mode is used to indicate that the second host and the external transmission port of the multi-system integrated machine establish a USB communication connection.
5. The method according to claim 4, characterized in that In the USB device mode, controlling the first host and the second host to establish a USB communication connection includes: In the USB device mode, the first host detects a first USB transmission port of the first host; If it is detected that the first USB transmission port is connected to the second USB transmission port, the second host is mounted to the first host so that the first host and the second host establish a USB communication connection.
6. The method according to claim 4 or 5, characterized in that: The method further comprises: The control module responds to a third operation instruction executed by a user on the first display interface for requesting to stop file sharing, and controls the switch module to be in an off state according to the third operation instruction.
7. The method according to claim 4 or 5, characterized in that: 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 executed by a user on the first display interface for requesting display interface switching, and switches the first display interface to a second display interface controlled by the first host according to the fourth operation instruction.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the file sharing method based on the multi-system integrated machine as described in any one of claims 4 to 7 is implemented.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the file sharing method based on a multi-system integrated machine as described in any one of claims 4 to 7 is implemented.
Citation Information
Patent Citations
Link system for establishing high speed network communications and file transfer between hosts using I / O device links
CN105981338A
File sharing method and apparatus for multi-system integrated machine
CN106528302A
Method for sharing data in local area network and electronic device
CN111066306A
Method and equipment for sharing computer data among computers
CN1987858A
File storage system and intelligent equipment
CN212364990U
