Method, apparatus and computer readable storage medium for communication

By introducing an IC chip for interface conversion between operating systems and using a second connection based on the MTP protocol, the problem of low data transmission efficiency between operating systems is solved, achieving efficient and secure data transmission.

CN116800817BActive Publication Date: 2026-03-27GUANGXI CENTURY INNOVATION DISPLAY ELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-11
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, data transmission efficiency between operating systems is relatively low. Improving transmission efficiency while ensuring security is an urgent problem to be solved.

Method used

By introducing an IC chip for interface conversion in the wired connection and using a second connection with the MTP protocol for data transmission, efficient data transmission is achieved.

Benefits of technology

It improves the data transfer rate between operating systems, while enhancing data transfer security and reducing the probability of data leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116800817B_ABST
    Figure CN116800817B_ABST
Patent Text Reader

Abstract

The application provides a method, device and computer readable storage medium for communication, which is used for improving the data transmission efficiency between different operating systems under the premise of ensuring the communication security between multiple systems. When the method is applied to a desktop operating system, the method comprises the following steps: receiving first data sent by a mobile operating system through a first wired connection; in the case that the first data comprises a first request, sending a second request to the mobile operating system according to the first request, the first request being used for requesting the desktop operating system to acquire second data through a second connection, the second connection only supporting the mobile operating system to transmit data to the desktop operating system in the case that a data transmission request is received, the transmission rate of the second connection being higher than that of the first wired connection, and the second request being used for requesting to acquire the second data; and acquiring the second data from the mobile operating system through the second connection.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronic technology, in particular to a communication method, device and computer readable storage medium. BACKGROUND

[0002] With the development of computer technology, more and more operating systems are born and upgraded, and the operating system has obviously become the most important software to support the use of computers. Due to the frequent data communication at present, in practical applications, there is often a certain data communication demand between operating systems.

[0003] In order to realize the secure communication between multiple operating systems, the current user usually adopts the communication mode of wired connection with high security performance. However, the transmission efficiency of this communication mode is low, and how to improve the transmission efficiency between different operating systems under the premise of ensuring security is a problem to be solved at present. SUMMARY

[0004] The present application provides a communication method for improving the data transmission efficiency between different operating systems under the premise of ensuring the security of communication between multiple systems.

[0005] In a first aspect, a communication method is provided, applied to a desktop operating system, comprising: receiving first data sent by a mobile operating system through a first wired connection; in the case that the first data includes a first request, sending a second request to the mobile operating system according to the first request, the first request being used to request the desktop operating system to obtain second data through a second connection, the second connection only supporting the mobile operating system to transmit data to the desktop operating system in the case that a data transmission request is received, the transmission rate of the second connection being higher than that of the first wired connection, the second request being used to request to obtain the second data; obtaining the second data from the mobile operating system through the second connection.

[0006] In the above method, when the desktop operating system needs to receive the data sent by the mobile operating system, a second connection is provided to complete the data transmission, and the transmission rate of the second connection is higher than that of the first wired connection, which can quickly realize the data transmission between multiple operating systems. In addition, it can be understood that the data transmission realized through the wired connection has high security, the first request triggering the second data transmission is transmitted in the first wired connection, which can reduce the probability of leakage of the first request, the first request and the second request have an association relationship, and if a third-party system sends a request to obtain the second data to the mobile operating system without obtaining the first request, the mobile operating system can identify that the request is an illegal request, thereby improving the security of data transmission.

[0007] Optionally, the first wired connection includes an integrated circuit (IC) chip, the IC chip is connected with the desktop operating system through a first type interface, and the IC chip is connected with the mobile operating system through a second type interface; or the IC chip is connected with the desktop operating system through the second type interface, and the IC chip is connected with the mobile operating system through the first type interface; wherein the transmission rate of the first type interface is higher than that of the second type interface; and the second connection is a connection using a media transfer protocol (MTP).

[0008] In the embodiment, the IC chip is included in the first wired connection, which can solve the inconsistency of the external interfaces of the mobile operating system and the desktop operating system. For example, the external interface of one of the operating systems is the first type interface, and the external interface of the other operating system is the second type interface. At this time, the IC chip can act as a transfer module of the first type interface and the second type interface, realize the conversion of different types of data, and complete the corresponding data transmission.

[0009] On the other hand, in the first wired connection, at least one end of the external connection interface of the mobile operating system and the desktop operating system is the first type interface, for example, a USB interface. In the conventional setting of data transmission through the USB interface, data can only be actively sent from the established master to the established slave, and the slave cannot actively send data to the master, that is, the two operating systems in the wired connection cannot realize bidirectional data communication at this time. However, in the embodiment, after the IC chip establishes a connection with the master, the IC chip has a response channel to "respond" to the master; after receiving the request sent by the slave, the IC chip can forward the "response" to the master through the response channel, and after the master receives the "response", it confirms that it is a "predefined request" sent by the slave, and can make corresponding feedback or action. The "defined request" can be a user's personalized setting or a system preset.

[0010] In addition, the second connection is a connection using MTP, and the transmission speed of data is fast. In the embodiment, after receiving the first request, the desktop operating system can send a second request to the mobile operating system as the MTP response end, and the mobile operating system responds to the second request and completes the data transmission according to the second connection. After receiving the first request transmitted through the first wired connection with high security, the second data transmission is completed according to the MTP protocol, which can ensure data security and improve data transmission efficiency.

[0011] The IC chip used in the embodiment needs one end to be the first type interface and the other end to be the second type interface. This type of IC chip is widely produced and has a wide selection range, which can effectively control the production cost and quality. Moreover, due to the existence of the first type interface, the data transmission rate is faster.

[0012] Optionally, the first data further comprises part of the second data, and the obtaining the second data from the mobile operating system through the second connection comprises: obtaining the remaining part of the second data from the mobile operating system through the second connection.

[0013] In this embodiment, the first data supports carrying part of the second data, which can reduce the data transmission amount of the second data transmitted through the second connection in the future, reduce the transmission time, and further improve the speed of the desktop operating system obtaining the second data.

[0014] Optionally, the method further comprises: feeding back an acknowledgement identifier of the second data to the mobile operating system; wherein the acknowledgement identifier is used to instruct the mobile operating system to delete the second data.

[0015] In this embodiment, the mobile operating system has a disaster recovery mechanism when it needs to send data. That is, during the process of executing data sending, the data that has been sent and the data to be sent are locally cached, and if an unexpected situation occurs, the data can be timely reshipped or resent. After the desktop operating system confirms that the second data has been received, the relevant cache about the second data in the mobile operating system is redundant data, and at this time, after receiving the acknowledgement identifier fed back by the desktop operating system, the foregoing redundant data is deleted, the memory occupation is reduced, and the performance of the system is improved.

[0016] Optionally, the second connection is a wired connection.

[0017] In this embodiment, the second connection is a wired connection between the desktop operating system and the mobile operating system, which not only transmits data fast, but also has high data transmission security of the wired connection, further improving the security of data transmission between the two systems.

[0018] In a second aspect, a communication method is provided, applied to a mobile operating system, comprising: sending first data to a desktop operating system through a first wired connection; in the case that the first data comprises a first request, receiving a second request sent by the desktop operating system according to the first request, the first request being used to request the desktop operating system to obtain second data through a second connection, the second connection only supporting the mobile operating system to transmit data to the desktop operating system in the case that a data transmission request is received, the transmission rate of the second connection being higher than that of the first wired connection, the second request being used to request to obtain the second data; and sending the second data to the desktop operating system through the second connection.

[0019] In the embodiment, when the mobile operating system needs to send data to the desktop operating system, a second connection is provided to complete the data transmission, the transmission rate of the second connection is higher than that of the first wired connection, and the data transmission between the multiple operating systems can be quickly realized. In addition, it can be understood that the data transmission realized through the wired connection has high security. In the embodiment, the desktop operating system receives the first request in the first wired connection, and then triggers the mobile operating system to obtain the data, the first request of triggering the second data transmission is transmitted in the first wired connection, the probability of the first request being leaked can be reduced, the first request and the second request have an association relationship, if a third-party system sends a request for obtaining the second data to the mobile operating system without obtaining the first request, the mobile operating system can identify that the request is an illegal request, and thus the security of the data transmission can be improved.

[0020] Optionally, the first wired connection includes an integrated circuit (IC) chip, the IC chip is connected to the desktop operating system through a first type of interface, and the IC chip is connected to the mobile operating system through a second type of interface; or the IC chip is connected to the desktop operating system through the second type of interface, and the IC chip is connected to the mobile operating system through the first type of interface; the transmission rate of the first type of interface is higher than that of the second type of interface; and the second connection is a connection using a media transmission protocol (MTP).

[0021] In the embodiment, the first wired connection includes an IC chip, which can solve the problem of inconsistent external interfaces of the mobile operating system and the desktop operating system. For example, the external interface of one of the operating systems is a first type of interface, and the external interface of the other operating system is a second type of interface. At this time, the IC chip can act as a transfer module of the first type of interface and the second type of interface, realize the conversion of different types of data, and complete the corresponding data transmission. The bidirectional data transmission can also be ensured.

[0022] Optionally, the first data further includes part of the second data, and the sending of the second data to the desktop operating system through the second connection includes: sending the remaining part of the second data to the desktop operating system through the second connection.

[0023] In the embodiment, the first data supports carrying part of the second data, which can reduce the data transmission amount of the second data transmitted through the second connection subsequently, reduce the transmission time, and further improve the speed of the mobile operating system sending the second data to the desktop operating system.

[0024] Optionally, after the sending of the second data to the desktop operating system through the second connection, the method further includes: receiving an acknowledgement identifier of the second data fed back by the desktop operating system; and deleting the second data according to the acknowledgement identifier.

[0025] In this embodiment, the mobile operating system has a disaster recovery mechanism when data transmission is required. That is, during the process of performing data transmission, the data that has been transmitted and the data to be transmitted are locally cached, and if an unexpected situation occurs, the data can be timely retransmitted or retransmitted. After the desktop operating system confirms that the second data has been received, the second data related cache in the mobile operating system is redundant data, at which time after receiving the acknowledgment identifier fed back by the desktop operating system, the foregoing redundant data is deleted, reducing the memory occupation and improving the performance of the system.

[0026] In a third aspect, an apparatus is provided, including means for performing any of the methods in the first aspect or the second aspect. The apparatus can be a terminal device, or a chip in the terminal device. The apparatus can include an input unit, a transmission unit, or a communication unit and a processing unit.

[0027] When the apparatus is a terminal device, the terminal device can further include a memory for storing computer program code, which, when executed by the processor, causes the terminal device to perform any of the methods in the first aspect.

[0028] When the apparatus is a chip in a terminal device, the chip can further include a memory, which can be a memory (e.g., a register, a cache, etc.) in the chip or a memory (e.g., a read-only memory, a random access memory, etc.) outside the chip; the memory is used to store computer program code, which, when executed by the processor, causes the chip to perform any of the methods in the first aspect.

[0029] In a fourth aspect, a computer-readable storage medium is provided, which stores computer program code, which, when executed by the apparatus, causes the apparatus to perform any of the methods in the first aspect or the second aspect. BRIEF DESCRIPTION OF DRAWINGS

[0030] Figure 1 is a schematic diagram of the method for communication provided by the present application and applied to a desktop operating system;

[0031] Figure 2 is a schematic diagram of a connection mode provided by the present application;

[0032] Figure 3 is a schematic diagram of the method for communication provided by the present application and applied to a mobile operating system;

[0033] Figure 4 is a schematic diagram of the apparatus provided by the present application;

[0034] Figure 5 is another schematic diagram of the apparatus provided by the present application;

[0035] Figure 6 is a schematic diagram of an electronic device provided by the present application. DETAILED DESCRIPTION

[0036] The technical solutions in the present application will be described below with reference to the drawings.

[0037] Currently, most of the desktop interactive all-in-one machines on the market are configured with a single windows operating system, and only a few are configured with a dual system. However, even if the device itself or when connected with other external devices has a dual system, how to combine the intercommunication between the two systems and the user experience is a problem that needs to be solved. When multiple systems are connected through a network to realize data intercommunication, the communicated data content is easy to be stolen or damaged. To this end, some existing technologies realize data intercommunication between dual systems through a hardware connection channel. For example, in a hospital system, the data system in the hospital is usually closed to the outside. In order to meet the requirement of data security, communication with the external network is prohibited.

[0038] However, the hardware connection method in the related art has low data transmission efficiency. Therefore, it is necessary to provide a method for improving the data transmission efficiency between multiple systems while ensuring data security.

[0039] Next, the method for communication provided by the present application will be described in detail with reference to the drawings.

[0040] It should be noted that in the present application, the words "first", "second", etc. are used to distinguish different individuals in the same type of objects, for example, the first data and the second data represent two different data that need to be transmitted in the current method, and there is no other limitation other than this.

[0041] The present application provides a method 100 for communication, which is applied to a desktop operating system. The method 100 can be executed by the device shown in Figure 4 As shown in Figure 1 The method 100 includes the following contents.

[0042] S110, receiving first data sent by a mobile operating system through a first wired connection.

[0043] The mobile operating system and the desktop operating system have a first wired connection, which has high security and supports active data interaction between the two systems to realize data intercommunication.

[0044] The mobile operating system is, for example, an Android operating system, a MAC operating system, a Windows operating system or a Linux operating system, and the desktop operating system is, for example, an Android operating system, a MAC operating system, a Windows operating system or a Linux operating system.

[0045] Optionally, the first wired connection includes an integrated circuit (IC) chip, and the first wired connection includes: connection between the IC chip and the desktop operating system through a first type of interface, and connection between the IC chip and the mobile operating system through a second type of interface; or connection between the IC chip and the desktop operating system through the second type of interface, and connection between the IC chip and the mobile operating system through the first type of interface; wherein the transmission rate of the first type of interface is higher than that of the second type of interface.

[0046] The first type of interface is, for example, a universal serial bus (USB) interface type, and the second type of interface is, for example, a universal asynchronous receiver / transmitter (UART) interface type, an Inter-Integrated Circuit (I2C) interface type or a serial peripheral interface (SPI) interface type. The data transmission rate of the first type of interface is higher than that of the second type of interface.

[0047] Specifically, the IC chip is connected to the mobile operating system and the desktop control system through the first type of interface and the second type of interface respectively to realize data transmission. The selection of the two interfaces of the IC chip in the first wired connection for connecting the mobile operating system and the desktop control system supports multiple cases, for example, both are the first type of interface (the IC chip is connected to the mobile operating system through the first type of interface, and the IC chip is connected to the terminal operating system through the first type of interface), both are the second type of interface (the IC chip is connected to the mobile operating system through the first type of interface, and the IC chip is connected to the terminal operating system through the first type of interface), or one end of the interface for connecting the IC chip is the first type of interface and the other end is the second type of interface.

[0048] For the IC chip, on the one hand, the IC chip can solve the problem of inconsistency of external interfaces of the mobile operating system and the desktop operating system, for example, as a transfer module of the first type of interface and the second type of interface, to realize different types of data conversion to complete corresponding data transmission.

[0049] On the other hand, in the first wired connection, if at least one end of the external connection interface of the mobile operating system and the desktop operating system is an interface of a certain type, such as a USB interface, in the conventional setting of data transmission via the USB interface, data can only be actively sent from the designated master end to the designated slave end. The slave end cannot actively send data to the master end. That is, the two operating systems in the wired connection cannot achieve bidirectional data communication. However, in this embodiment, after the IC chip establishes a connection with the master end, the IC chip has a response channel that can "respond" to the master end. Upon receiving a request sent by the slave end, it can forward it to the master end in the form of a "response" through the response channel. After receiving the "response," the master end confirms that it is a "predefined request" sent by the slave end and can then take corresponding feedback or action. The specific "predefined request" can be a user-customized setting or a system preset.

[0050] The preferred first wired connection method is: one end of the IC chip has a Type II interface, and the other end has a Type I interface. This type of IC chip is widely available on the market, offering a wide range of choices and facilitating cost and quality control. Furthermore, because it includes a Type I interface, the transmission rate is fast.

[0051] For example, one end of an IC chip is a UART interface (a type of Type II interface), and the other end is a USB interface (a type of Type I interface). Figure 2 As shown, the mobile operating system connects to the IC chip via a UART interface for wired data transmission, and the IC chip in turn connects to the desktop operating system via a USB interface for wired data transmission. Alternatively, the mobile operating system connects to the IC chip via a USB interface for wired data transmission, and the IC chip in turn connects to the desktop operating system via a UART interface for wired data transmission. This implementation method can guarantee data transmission speed to a certain extent, and there are more types of IC chips with UART on one end and USB on the other, making the cost controllable. For example, the KT6740 IC chip, a touch IC chip, can be used.

[0052] S120, if the first data includes the first request, a second request is sent to the mobile operating system according to the first request. The first request is used to request the desktop operating system to obtain the second data through the second connection. The second connection only supports the mobile operating system to transmit data to the desktop operating system when it receives a data transmission request. The transmission rate of the second connection is higher than the transmission rate of the first wired connection. The second request is used to request the acquisition of the second data.

[0053] Specifically, after receiving the first request, the desktop operating system can acquire second data from the mobile operating system through the second connection. The second data is actual content that the user needs the mobile operating system to transmit to the desktop operating system, for example, a document, a video, an audio, a picture, or the like with a large data volume. Since the transmission rate of the second connection is faster than that of the first wired connection, the second data of the above types is transmitted through the second connection, which can improve the efficiency of data transmission from the mobile operating system to the desktop operating system.

[0054] In addition, the second connection only supports the mobile operating system to transmit data to the desktop operating system upon receiving a data transmission request. That is, the transmission feature of the second connection is limited, and only the desktop operating system can actively send data to the mobile operating system, and the mobile operating system cannot send data through the second connection.

[0055] In this case, when the mobile operating system needs to actively send data to the desktop operating system, it can only first send a first request through the first wired connection with high security level. After receiving the first request, the desktop operating system actively obtains second data from the mobile operating system. Specifically, the desktop operating system initiates a second request to the mobile operating system through the second connection and receives second data fed back by the mobile operating system according to the second request. Therefore, in the communication method provided in this embodiment, not only is the data transmission speed fast, but also the data transmission process is improved in security because the data sending process must be triggered by the transmission of the first wired connection with high security.

[0056] Optionally, the first data further includes part of the second data, and the second data is acquired from the mobile operating system through the second connection, including acquiring the remaining part of the second data from the mobile operating system through the second connection.

[0057] In this embodiment, when the mobile operating system needs to actively send data to the desktop operating system, it will first send first data through the first wired connection, regardless of whether the data transmission needs to be completed through the second connection. Therefore, part of the second data can be carried in the first data, reducing the amount of data that needs to be transmitted through the second connection, so as to improve the overall transmission rate.

[0058] Specifically, in some examples, if the data volume of the second data is small, such as text, pictures with small data volume, or the like, the first wired connection can be used to directly send the second data completely. The process of subsequently transmitting data through the second connection is not needed, the time of data transmission and reception is reduced, and the data transmission efficiency is further improved.

[0059] In some examples, the first data does not contain the first request, but only contains the second data. In this case, the desktop operating system does not receive the first request, and does not request the second data from the mobile operating system through the second connection, but only passively receives the second data through the first wired connection.

[0060] S130, obtaining the second data from the mobile operating system through the second connection.

[0061] Specifically, the data transmission speed of the second connection is faster, so that the desktop operating system can complete the reception of the second data faster, and improve the data transmission efficiency.

[0062] Optionally, the second connection is a media transmission protocol connection.

[0063] That is, the second connection can be an MTP connection, which has a faster transmission speed. The MTP protocol can complete data transmission through Bluetooth, IP / TCP, etc. It can be understood that when executing the transmission mode of Bluetooth, IP / TCP, etc., the physical transmission line of the wired connection does not need to be maintained, and it is more convenient to use and maintain. This transmission mode is also applicable to the case where the mobile operating system and the desktop operating system each have only one external interface, that is, when both ends of the operating system have only one external interface, the external interface can complete the first wired connection, and in this case, the second connection realizes data transmission through Bluetooth, IP / TCP, etc.

[0064] Optionally, the second connection is a wired connection. Not only the transmission speed is fast, but also the security of data transmission is improved.

[0065] In one example, the second connection can be a wired connection realized by the USB interface between the desktop operating system and the mobile operating system, and the USB channel supports data transmission using the MTP protocol. Among them, the data transmission is realized through the USB interface, for example, the interface of the second connection connected with the desktop operating system is a UBS Type-A (a kind of USB interface shape standard) interface, and the interface of the second connection connected with the mobile operating system is a USB Type-C (a kind of USB interface shape standard) interface. The data line with one end Type-A and the other end Type-C is commonly used in actual use, and has low cost.

[0066] It can be understood that in the case of both ends of the wired connection are USB interface type, data transmission is usually realized through MTP protocol. In the main implementation process of MTP protocol, the Android system is usually the slave (passive) and the Windows system is the master (active), and the USB direct connection between the Android and Windows systems is executed with the Android system as the passive side, and the Android system cannot actively initiate communication. In the first wired connection described above, if the external interfaces of the desktop operating system and the mobile operating system are both USB type, data transmission also needs to be realized through the MTP protocol; at this time, there is an IC chip in the first wired connection, which can adjust its master-slave identity according to the active side of data transmission when the MTP protocol is executed, so that the first wired connection with both ends of USB interface also supports the Android system to actively send data to the Windows system, such as the sending of the first data.

[0067] In addition, at this time, even if the first wired connection and the second connection are both data transmission through USB interface, there is an IC chip in the first wired connection for data processing, forwarding and other processing, which cannot achieve the full-speed transmission speed of USB direct connection, and still has a certain transmission delay compared with the second connection.

[0068] In some examples, if the mobile operating system and the desktop operating system are both Windows, the second connection cannot be completed through the MTP protocol due to the definition of the requirements of the master and the slave of MTP. At this time, other protocols that can achieve the transmission purpose can be selected to complete the second connection, or only the first wired connection is used to realize data transmission. For example, the first data contains all the second data and does not contain the first request.

[0069] Optionally, the mobile operating system is fed back an acknowledgement identifier of the second data; wherein the acknowledgement identifier is used to instruct the mobile operating system to delete the second data.

[0070] Specifically, the acknowledgement identifier can be that the desktop operating system does not receive any data sent by the mobile operating system within a certain time threshold, and then it is judged that the sending is completed. Or the first request carries a digest of the second data, at this time the received second data conforms to the content of the digest in the first request received before.

[0071] In this embodiment, the mobile operating system has a disaster recovery mechanism when data transmission is required, and the data transmitted and to be transmitted is locally cached during the data transmission process. If an abnormal transmission occurs, the data can be retransmitted or retransmitted. After the desktop operating system confirms that the second data has been received, the second data related cache in the mobile operating system is redundant data. At this time, after receiving the acknowledgment identifier fed back by the desktop operating system, the foregoing is deleted, the memory occupation is reduced, and the use performance of the system is improved.

[0072] The application provides a communication method 300 applied to a mobile operating system. The method 300 can be executed by the device shown in the figure, and the device is shown in the figure. Figure 5 The method 300 includes the following contents. Figure 3 The method 300 includes the following contents.

[0073] S310, transmitting first data to the desktop operating system through a first wired connection.

[0074] Specifically, when the mobile operating system needs to transmit data to the desktop operating system, first, the first data is transmitted to the desktop operating system through the first wired connection with high security.

[0075] Optionally, the first wired connection includes an integrated circuit (IC) chip, the IC chip is connected with the desktop operating system through a first type interface, and the IC chip is connected with the mobile operating system through a second type interface; or the IC chip is connected with the desktop operating system through the second type interface; wherein the transmission rate of the first type interface is higher than that of the second type interface.

[0076] Specifically, the IC chip is connected with the mobile operating system and the desktop control system through the first type interface and the second type interface respectively to realize data transmission. The selection of the two interfaces through which the IC chip is connected with the mobile operating system and the desktop control system in the first wired connection supports multiple cases, for example, both are the first type interface (the IC chip is connected with the mobile operating system through the first type interface, and the IC chip is connected with the terminal operating system through the first type interface), both are the second type interface (the IC chip is connected with the mobile operating system through the first type interface, and the IC chip is connected with the terminal operating system through the first type interface), or one end of the interface used by the IC chip for connection is the first type interface and the other end is the second type interface.

[0077] The preferred first wired connection mode is that one end of the IC chip is the second type interface and the other end is the first type interface. This type of IC chip is more on the market, and the selection range is wide, which is convenient for cost and quality control. And because it contains a first type interface, the transmission rate is fast.

[0078] In this embodiment, the security of the first wired connection is higher, the first data is used to start data transmission, and the use of the first wired connection can improve the security of the whole data transmission process.

[0079] S320, in the case that the first data includes a first request, receiving a second request sent by the desktop operating system according to the first request, the first request is used to request the desktop operating system to obtain second data through a second connection, the second connection only supports the mobile operating system to transmit data to the desktop operating system in the case that the mobile operating system receives a data transmission request, the transmission rate of the second connection is higher than that of the first wired connection, and the second request is used to request to obtain the second data.

[0080] In this embodiment, the desktop operating system can obtain the second data from the mobile operating system in the case that the desktop operating system receives the first request. Specifically, the second request is sent to the mobile operating system through the second connection, and the mobile operating system responds to the second request and sends the second data to the desktop operating system.

[0081] Only when the first request is received through the first wired connection can the desktop operating system obtain the second data, which can ensure the security of the mobile operating system sending data to the desktop operating system. At the same time, the data transmission speed of the second connection is fast, which improves the efficiency of the mobile operating system transmitting data to the desktop operating system.

[0082] Optionally, the first data further includes part of the second data, and the second data is sent to the desktop operating system through the second connection, including: sending the remaining part of the second data to the desktop operating system through the second connection.

[0083] In this embodiment, when the mobile operating system needs to actively send data to the desktop operating system, whether it needs to complete data transmission through the second connection or not, it will first send the first data through the first wired connection. Therefore, part of the second data can be carried in the first data, reducing the amount of data that needs to be transmitted through the second connection, so as to improve the overall transmission rate.

[0084] Specifically, in some examples, if the amount of second data is small, such as text, small data amount pictures, etc., it can be completely sent only through the first wired connection. No need to perform the subsequent data transmission process through the second connection, reduce the data transmission time, further improve the data transmission efficiency.

[0085] S330, sending the second data to the desktop operating system through the second connection.

[0086] Specifically, in this embodiment, the transmission rate of the second connection is higher than that of the first wired connection, therefore, completing data transmission through the second connection can reduce the data transmission time. Improve data transmission efficiency.

[0087] Optionally, the second connection is a connection using MTP. That is, the second connection can be an MTP connection, which has a faster transmission speed. The MTP protocol can complete data transmission in the form of Bluetooth, IP / TCP, wired connection, etc.

[0088] Optionally, the first data further includes part of the second data, and sending the second data to the desktop operating system through the second connection includes: sending the remaining part of the second data to the desktop operating system through the second connection.

[0089] In this embodiment, the remaining part of the second data is sent through the second connection, which reduces the time for data transmission through the second channel and improves the data transmission efficiency.

[0090] Optionally, after sending the second data to the desktop operating system through the second connection, the method further includes: receiving an acknowledgement identifier of the second data fed back by the desktop operating system; and deleting the second data according to the acknowledgement identifier.

[0091] In this embodiment, the mobile operating system has a disaster recovery mechanism when it needs to send data, and locally caches the data that has been sent and the data to be sent during the data sending process. If an unexpected situation occurs, the data can be re-sent or re-sent. After the desktop operating system confirms that the second data has been received, the relevant cache of the second data in the mobile operating system is redundant data. At this time, after receiving the acknowledgement identifier fed back by the desktop operating system, the foregoing is deleted, reducing the memory occupation and improving the use performance of the system.

[0092] The above describes an example of the communication method provided by the present application. It can be understood that the corresponding device contains the corresponding hardware structure and / or software module for implementing the above functions. Those skilled in the art should easily realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in the present application can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0093] The present application can divide the functional units of the device according to the above method examples, for example, each function can be divided into a functional unit, or two or more functions can be integrated into one unit. The integrated unit can be realized in the form of hardware or software functional unit. It should be noted that the division of units in the present application is illustrative, and is only a logical function division. Actual implementation can have another division method.

[0094] Figure 4 is a structural schematic diagram of an apparatus provided in the present application. The apparatus 400 comprises a sending unit 410 and an input unit 420, wherein the input unit 420 is capable of performing the obtaining step under the control of the sending unit 410. The apparatus 400 performs the method 100 when:

[0095] The input unit 420 is configured to receive the first data sent by the mobile operating system through the first wired connection.

[0096] The sending unit 410 is configured to, in the case that the first data comprises a first request, send a second request to the mobile operating system according to the first request, the first request being used to request the desktop operating system to obtain the second data through a second connection, the second connection only supporting the mobile operating system to transmit data to the desktop operating system in the case that the mobile operating system receives a data transmission request, the transmission rate of the second connection being higher than that of the first wired connection, the second request being used to request to obtain the second data; and obtain the second data from the mobile operating system through the second connection.

[0097] In the embodiment, when the desktop operating system needs to receive the data sent by the mobile operating system, a second connection is provided to complete the data transmission, and the transmission rate of the second connection is higher than that of the first wired connection, so that the data transmission between the multiple operating systems can be quickly realized. In addition, it can be understood that the data transmission realized through the wired connection has higher security, and the method provided in the embodiment will trigger the obtaining of the data from the mobile operating system only when the desktop operating system receives the first request in the first wired connection, so that the security of the data transmission can be ensured on the basis of realizing the fast data transmission.

[0098] Optionally, the first wired connection comprises an integrated circuit (IC) chip, the IC chip and the desktop operating system realize data transmission through a first type of interface or a second type of interface, and the IC chip and the mobile operating system realize data transmission through the first type of interface or the second type of interface; wherein the transmission rate of the first type of interface is higher than that of the second type of interface; and the second connection is a connection using a media transfer protocol (MTP).

[0099] In the embodiment, the IC chip is included in the first wired connection, which can solve the inconsistency of the external interfaces of the mobile operating system and the desktop operating system on the one hand, and ensure that the wired connection completes the bidirectional communication on the other hand. In addition, the second connection is the MTP protocol, which can transmit data at a high speed.

[0100] Optionally, the first data further comprises part of the second data, and the obtaining of the second data from the mobile operating system through the second connection comprises: obtaining the remaining part of the second data from the mobile operating system through the second connection.

[0101] In this embodiment, the first data carries part of the second data, which can reduce the amount of data transmission completed through the second connection subsequently, and further improve the speed of the desktop operating system to obtain the second data.

[0102] Optionally, the mobile operating system feeds back an acknowledgement identifier of the second data; wherein the acknowledgement identifier is used to indicate that the mobile operating system deletes the second data.

[0103] In this embodiment, the mobile operating system has a disaster recovery mechanism when it needs to send data. That is, the data that has been sent and the data to be sent are locally cached during the process of executing data sending, and if an unexpected situation occurs, the data can be timely reshipped or resent. After the desktop operating system confirms that the second data has been received, the second data related cache in the mobile operating system is redundant data, and at this time, after receiving the acknowledgement identifier fed back by the desktop operating system, the foregoing redundant data is deleted, thereby reducing the memory occupation and improving the use performance of the system.

[0104] Optionally, the second connection is a wired connection.

[0105] In this embodiment, the second connection is a wired connection between the desktop operating system and the mobile operating system, the data transmission is fast, and the data transmission security of the wired connection is high, thereby further improving the security of the data transmission between the two systems.

[0106] Figure 5 FIG. 1 is a structural schematic diagram of an apparatus provided by the present application. The apparatus 500 includes a processing unit 510 and a communication unit 520, wherein the communication unit 520 can execute the sending step under the control of the processing unit 510. When the apparatus 500 executes the method 300:

[0107] The communication unit 520 is configured to send the first data to the desktop operating system through the first wired connection.

[0108] The processing unit 510 is configured to, in a case where the first data includes a first request, receive a second request sent by the desktop operating system according to the first request, the first request being used to request the desktop operating system to obtain the second data through a second connection, the second connection only supporting the mobile operating system to transmit data to the desktop operating system in a case where the mobile operating system receives a data transmission request, the transmission rate of the second connection being higher than that of the first wired connection, the second request being used to request to obtain the second data; and send the second data to the desktop operating system through the second connection.

[0109] In this embodiment, when the mobile operating system needs to send data to the desktop operating system, a second connection is provided to complete the data transmission, the transmission rate of the second connection is higher than that of the first wired connection, and the data transmission between the multiple operating systems can be quickly realized. In addition, it can be understood that the data transmission realized through the wired connection has high security. The method provided in this embodiment can only trigger the mobile operating system to obtain data when the desktop operating system receives the first request in the first wired connection, so that the security of data transmission can be ensured on the basis of realizing fast data transmission.

[0110] Optionally, the first wired connection includes an integrated circuit (IC) chip, the IC chip is connected to the desktop operating system through a first type of interface, and the IC chip is connected to the mobile operating system through a second type of interface; or the IC chip is connected to the desktop operating system through the second type of interface; wherein the transmission rate of the first type of interface is higher than that of the second type of interface. The second connection is a connection using MTP.

[0111] Optionally, the first data further includes part of the second data, and the sending of the second data to the desktop operating system through the second connection includes: sending the remaining part of the second data to the desktop operating system through the second connection.

[0112] In this embodiment, the first data supports carrying part of the second data, which can reduce the amount of data transmission completed through the second connection subsequently, and further improve the speed of the desktop operating system obtaining the second data.

[0113] Optionally, after the sending of the second data to the desktop operating system through the second connection, the method further includes: receiving an acknowledgement identifier of the second data fed back by the desktop operating system; and deleting the second data according to the acknowledgement identifier.

[0114] In this embodiment, the mobile operating system has a disaster recovery mechanism when it needs to send data. That is, the data that has been sent and the data to be sent are locally cached during the execution of the data sending process, and the data can be timely reshipped or resent in case of unexpected situations. After the desktop operating system confirms that the second data has been received, the relevant cache of the second data in the mobile operating system is redundant data. At this time, after receiving the acknowledgement identifier fed back by the desktop operating system, the foregoing redundant data is deleted, the memory occupation is reduced, and the use performance of the system is improved.

[0115] The specific manners in which the apparatus 400 and the apparatus 500 perform the above method and the beneficial effects produced thereby can be understood with reference to the related description in the method embodiment.

[0116] Figure 6 A structural schematic diagram of an electronic device provided in the present application is shown. Figure 6The dashed line in the figure indicates that the unit or the module is optional. The device 600 can be used to implement the methods described in the above method embodiments. The device 600 can be a terminal device or a server or a chip.

[0117] The device 600 includes one or more processors 601 that can support the device 600 to implement the methods in the method embodiments. The processor 601 can be a general-purpose processor or a dedicated processor. For example, the processor 601 can be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices such as discrete gates or transistor logic devices, or discrete hardware components.

[0118] The processor 601 can be used to control the device 600, execute software programs, and process data of the software programs. The device 600 can further include a communication module 605 to implement input (reception) and output (transmission) of signals.

[0119] For example, the device 600 can be a chip, and the communication module 605 can be an input and / or output circuit of the chip, or the communication module 605 can be a communication interface of the chip, and the chip can be a component of a terminal device or a server or other electronic devices.

[0120] For another example, the device 600 can be a terminal device or a server, and the communication module 605 can be a transceiver of the terminal device or the server, or the communication module 605 can be a transceiver circuit of the terminal device or the server.

[0121] The device 600 can include one or more memories 602, which have programs 604 stored thereon. The programs 604 can be run by the processor 601 to generate instructions 603, so that the processor 601 executes the methods described in the above method embodiments according to the instructions 603. Optionally, the memory 602 can also store data. Optionally, the processor 601 can also read the data stored in the memory 602. The data can be stored in the same storage address as the programs 604, or the data can be stored in different storage addresses from the programs 604.

[0122] The processor 601 and the memory 602 can be separately arranged or integrated together, for example, integrated on a system on chip (SOC) of a terminal device.

[0123] The application further provides a computer program product, which, when executed by the processor 601, implements the method of any method embodiment in the application.

[0124] The computer program product can be stored in the memory 602, for example, is a program 604, which is finally converted into an executable object file capable of being executed by the processor 601 through preprocessing, compiling, assembling and linking and other processing processes.

[0125] The application further provides a computer readable storage medium, which stores a computer program, and the computer program, when executed by a computer, implements the method of any method embodiment in the application. The computer program can be a high-level language program or an executable target program.

[0126] The computer readable storage medium is, for example, the memory 602. The memory 602 can be a volatile memory or a non-volatile memory, or the memory 602 can include both volatile memory and non-volatile memory. The non-volatile memory can be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically EPROM (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM) used as an external cache. By way of example, but not limitation, many forms of RAM can be used, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous dynamic RAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM) and direct rambus RAM (DR RAM).

[0127] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described apparatus and device and the resulting technical effects can refer to the corresponding processes and technical effects in the foregoing method embodiments, which will not be described here.

[0128] In several embodiments provided in the present application, the disclosed system, device and method can be implemented in other ways. For example, some features of the above-described method embodiments can be omitted or not performed. The above-described device embodiments are merely illustrative, and the division of units is merely a logical function division. In actual implementation, another division manner can be used, and multiple units or components can be combined or integrated into another system. In addition, the coupling between units or the coupling between components can be direct coupling or indirect coupling, and the above-mentioned coupling includes electrical, mechanical or other forms of connection.

[0129] It should be understood that, in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0130] In addition, the terms "system" and "network" are often used interchangeably in this paper. The term "and / or" in this paper is merely a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone. In addition, the character " / " in this paper generally represents that the front and rear associated objects are in an "or" relationship.

[0131] In summary, the above only describes the preferred embodiments of the technical solutions of the present application, and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A communication method, characterized in that, Applied to desktop operating systems, including: Receive first data sent by the mobile operating system via a first wired connection; If the first data includes a first request, a second request is sent to the mobile operating system according to the first request. The first request is used to request the desktop operating system to obtain second data from the mobile operating system through a second connection. The second connection only supports the mobile operating system to transmit data to the desktop operating system when it receives a data transmission request. The transmission rate of the second connection is higher than the transmission rate of the first wired connection. The second request is used to request the acquisition of the second data. The second data is the actual content that the user needs to transmit from the mobile operating system to the desktop operating system. The second data is obtained from the mobile operating system via the second connection; wherein the second connection is a connection using a media transmission protocol.

2. The method according to claim 1, characterized in that, The first wired connection includes an integrated circuit (IC) chip. The IC chip is connected to the desktop operating system via a type I interface, and the IC chip is connected to the mobile operating system via a type II interface; or, the IC chip is connected to the desktop operating system via the type II interface, and the IC chip is connected to the mobile operating system via the type I interface; wherein the transmission rate of the type I interface is higher than the transmission rate of the type II interface.

3. The method according to claim 1 or 2, characterized in that, The first data also includes a portion of the second data, and the step of obtaining the second data from the mobile operating system via the second connection includes: The remaining portion of the second data is obtained from the mobile operating system via the second connection.

4. The method according to claim 1 or 2, characterized in that, The method further includes: The mobile operating system is fed back a confirmation identifier for the second data; wherein the confirmation identifier is used to instruct the mobile operating system to delete the second data.

5. A communication method, characterized in that, Applied to mobile operating systems, including: Send the first data to the desktop operating system via the first wired connection; If the first data includes a first request, a second request is received from the desktop operating system based on the first request. The first request is used to request the desktop operating system to obtain second data from the mobile operating system through a second connection. The second connection only supports the mobile operating system to transmit data to the desktop operating system when it receives a data transmission request. The transmission rate of the second connection is higher than the transmission rate of the first wired connection. The second request is used to request the acquisition of the second data. The second data is the actual content that the user needs to transmit from the mobile operating system to the desktop operating system. The second data is sent to the desktop operating system via the second connection; wherein the second connection is a connection using a media transmission protocol.

6. The method according to claim 5, characterized in that, The first wired connection includes an integrated circuit (IC) chip. The IC chip is connected to the desktop operating system via a type I interface, and the IC chip is connected to the mobile operating system via a type II interface; or, the IC chip is connected to the desktop operating system via the type II interface, and the IC chip is connected to the mobile operating system via the type I interface; wherein the transmission rate of the type I interface is higher than the transmission rate of the type II interface.

7. The method according to claim 5 or 6, characterized in that, The first data also includes a portion of the second data, and sending the second data to the desktop operating system via the second connection includes: The remaining portion of the second data is sent to the desktop operating system via the second connection.

8. The method according to claim 5 or 6, characterized in that, After sending the second data to the desktop operating system via the second connection, the method further includes: Receive the receipt identifier of the second data fed back by the desktop operating system; The second data is deleted based on the receipt identifier.

9. A communication device, characterized in that, The device includes a processor and a memory coupled together, the memory being used to store a computer program that, when executed by the processor, causes the device to perform the method of any one of claims 1 to 4, or the method of any one of claims 5 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the method of any one of claims 1 to 4, or the method of any one of claims 5 to 8.

Citation Information

Patent Citations

  • Cross-operating-system data transmission method

    CN114285913A