CN116800817A - Method, apparatus and computer readable storage medium for communication - Google Patents

Method, apparatus and computer readable storage medium for communication Download PDF

Info

Publication number
CN116800817A
CN116800817A CN202310849096.8A CN202310849096A CN116800817A CN 116800817 A CN116800817 A CN 116800817A CN 202310849096 A CN202310849096 A CN 202310849096A CN 116800817 A CN116800817 A CN 116800817A
Authority
CN
China
Prior art keywords
data
operating system
connection
request
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310849096.8A
Other languages
Chinese (zh)
Inventor
韩颜壕
沈昌和
沈峻
黎旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangxi Century Innovation Display Electronics Co Ltd
Original Assignee
Guangxi Century Innovation Display Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangxi Century Innovation Display Electronics Co Ltd filed Critical Guangxi Century Innovation Display Electronics Co Ltd
Priority to CN202310849096.8A priority Critical patent/CN116800817A/en
Publication of CN116800817A publication Critical patent/CN116800817A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application provides a communication method, a communication device and a computer readable storage medium, which are used for improving the data transmission efficiency between different operating systems on the premise of ensuring the communication safety 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; when the first data comprises a first request, sending a second request to the mobile operating system according to the first request, wherein the first request is used for requesting the desktop operating system to acquire the second data through a second connection, the second connection only supports the mobile operating system to transmit the data to the desktop operating system when receiving the data transmission request, and the transmission rate of the second connection is higher than that of the first wired connection, and the second request is used for requesting to acquire the second data; second data is obtained from the mobile operating system over a second connection.

Description

Method, apparatus and computer readable storage medium for communication
Technical Field
The present application relates to the field of electronic technology, and in particular, to a communication method, apparatus, and computer readable storage medium.
Background
With the development of computer technology, more and more operating systems are being created and upgraded, and the operating systems obviously become the most important software supporting the use of computers. Because of frequent data communication, in practical application, certain data communication requirements often exist between each operating system.
Currently, in order to realize secure communication between a plurality of operating systems, a communication mode of wired connection with higher security is generally adopted by a user. However, the transmission efficiency of this communication method is low, and how to improve the transmission efficiency between different operating systems on the premise of ensuring the security is a problem to be solved at present.
Disclosure of Invention
The application provides a communication method which is used for improving the data transmission efficiency between different operating systems on the premise of ensuring the communication safety between multiple systems.
In a first aspect, a communication method is provided, applied to a desktop operating system, including: receiving first data sent by a mobile operating system through a first wired connection; when the first data comprises a first request, sending a second request to the mobile operating system according to the first request, wherein the first request is used for requesting the desktop operating system to acquire the second data through a second connection, the second connection only supports the mobile operating system to transmit the data to the desktop operating system when receiving the data transmission request, and the transmission rate of the second connection is higher than that of the first wired connection, and the second request is used for requesting to acquire the second data; second data is obtained from the mobile operating system over a second connection.
In the method, when the desktop operating system needs to receive the data sent by the mobile operating system, the second connection is provided for completing data transmission, and the transmission rate of the second connection is higher than that of the first wired connection, so that the data transmission among multiple operating systems can be realized rapidly. In addition, it can be understood that the security of data transmission realized through the wired connection is higher, the first request for triggering the second data transmission is transmitted in the first wired connection, the probability of reducing the leakage of the first request can be improved, the first request and the second request have an association relationship, if the third party system sends the request for acquiring the second data to the mobile operating system under the condition that the first request is not acquired, the mobile operating system can identify that the request is an illegal request, and therefore the security of data transmission can be improved.
Optionally, the first wired connection includes an integrated circuit (Integrated Circuit, IC) chip, the IC chip is connected with the desktop operating system through a type of interface, and the IC chip is connected with the mobile operating system through a type of interface; or the IC chip is connected with the desktop operating system through a second type of interface, and the IC chip is connected with the mobile operating system through a first type of interface; wherein, the transmission rate of the first interface is higher than the transmission rate of the second interface; the second connection is a connection using a media transport protocol (MediaTransferProtocol, MTP).
In this embodiment, the first wired connection includes an IC chip, which can solve the problem that the external interfaces of the mobile operating system and the desktop operating system are inconsistent on the one hand. For example, the external interface of one operating system is a first-class interface, the external interface of the other operating system is a second-class interface, and at this time, the IC chip can be used as a transfer module of the first-class interface and the second-class interface to realize different types of data conversion so as to complete corresponding data transmission.
On the other hand, in the case that at least one end of the external connection interfaces of the mobile operating system and the desktop operating system in the first wired connection is one type of interface, for example, a USB interface, in the conventional setting of executing data transmission through the USB interface, data can only be actively transmitted from a given master end to a given slave end, and the slave end cannot actively transmit data to the master end, that is, two operating systems in the wired connection cannot realize bidirectional data communication at this time. However, in this embodiment, after the connection between the IC chip and the main terminal is established, the IC chip has a response channel for "responding" to the main terminal; the request sent by the slave terminal can be forwarded to the master terminal in the form of 'response' by using a response channel, and the master terminal confirms that the response is the 'predefined request' sent by the slave terminal after receiving the response, so that the corresponding feedback or action can be performed. The specific "defined request" may be a personalized setting or a system preset for the user.
In addition, the second connection is a connection using MTP, and the speed of transmitting data is high. In this embodiment, after receiving the first request, the desktop operating system may be used as the MTP initiating terminal to send a second request to the mobile operating system as the MTP responding terminal, where the mobile operating system responds to the second request and completes 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 can be completed according to the MTP protocol, so that the data security can be ensured, and the data transmission efficiency can be improved.
The IC chip used in this embodiment requires one type of interface at one end and two types of interfaces at the other end, and the type of IC chip is widely produced, has a wide selectable range, and can effectively control production cost and quality. And the data transmission rate is faster due to the existence of a type of interface.
Optionally, the first data further includes partial data of the second data, and the obtaining the second data from the mobile operating system through the second connection includes: the remaining portion of the second data is obtained from the mobile operating system over the second connection.
In this embodiment, the first data support carries part of the second data, so that the data transmission amount of the second data transmitted through the second connection in the following process can be reduced, the transmission time is reduced, and the speed of acquiring the second data by the desktop operating system is further improved.
Optionally, the method further comprises: feeding back an acknowledgment 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.
In this embodiment, the mobile operating system has a disaster recovery mechanism when data transmission is required. In other words, the data which is sent and to be sent is locally cached in the process of executing data sending, and if accidents occur, the data can be timely reissued or retransmitted. After the desktop operating system confirms that the second data is received, the relevant cache of the second data in the mobile operating system is redundant data, and at the moment, after the confirmation identification fed back by the desktop operating system is received, the redundant data is deleted, so that the memory occupation is reduced, and the performance of the system is improved.
Optionally, the second connection is a wired connection.
In this embodiment, the second connection is a wired connection between the desktop operating system and the mobile operating system, so that not only is data transmission fast, but also the data transmission security of the wired connection is high, and the data transmission security between the two systems is further improved.
In a second aspect, a communication method is provided, applied to a mobile operating system, including: sending first data to a desktop operating system through a first wired connection; receiving a second request sent by the desktop operating system according to the first request under the condition that the first data comprises the first request, wherein the first request is used for requesting the desktop operating system to acquire the second data through a second connection, the second connection only supports the mobile operating system to transmit the data to the desktop operating system under the condition that the mobile operating system receives the 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 for requesting to acquire the second data; and sending second data to the desktop operating system through the second connection.
In this embodiment, when the mobile operating system needs to send data to the desktop operating system, a second connection is provided for completing data transmission, and the transmission rate of the second connection is higher than that of the first wired connection, so that data transmission between multiple operating systems can be quickly realized. In addition, it may be understood that the security of data transmission implemented through the wired connection is higher, in the manner provided by the embodiment, only after the desktop operating system receives the first request in the first wired connection, the desktop operating system triggers to acquire data from the mobile operating system, the first request triggering the second data transmission is transmitted in the first wired connection, so that the probability of leakage of the first request can be improved and reduced, the first request and the second request have an association relationship, and if the third party system sends a request for acquiring the second data to the mobile operating system without acquiring the first request, the mobile operating system can identify that the request is an illegal request, thereby improving the security of data transmission.
Optionally, the first wired connection includes an integrated circuit IC chip, the IC chip is connected with the desktop operating system through a type of interface, and the IC chip is connected with the mobile operating system through a type of interface; or the IC chip is connected with the desktop operating system through a second type of interface, and the IC chip is connected with the mobile operating system through a first type of interface; wherein, the transmission rate of the first interface is higher than the transmission rate of the second interface; the second connection is a connection using the media transfer protocol MTP.
In this embodiment, the first wired connection includes an IC chip, which can solve the problem that the mobile operating system and the desktop operating system are inconsistent with the external interface. For example, the external interface of one operating system is a first-class interface, the external interface of the other operating system is a second-class interface, and at this time, the IC chip can be used as a transfer module of the first-class interface and the second-class interface to realize different types of data conversion so as to complete corresponding data transmission. And can ensure the completion of bidirectional data transmission.
Optionally, the first data further includes partial data of the second data, and sending the second data to the desktop operating system through the second connection includes: and sending the rest data of the second data to the desktop operating system through the second connection.
In this embodiment, the first data support carries part of the second data, so that the data transmission amount of the second data transmitted through the second connection in the following process can be reduced, the transmission time is reduced, and the speed of the mobile operating system for transmitting the second data to the desktop operating system is further improved.
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 identification.
In this embodiment, the mobile operating system has a disaster recovery mechanism when data transmission is required. In other words, the data which is sent and to be sent is locally cached in the process of executing data sending, and if accidents occur, the data can be timely reissued or retransmitted. After the desktop operating system confirms that the second data is received, the relevant cache of the second data in the mobile operating system is redundant data, and at the moment, after the confirmation identification fed back by the desktop operating system is received, the redundant data is deleted, so that the memory occupation is reduced, and the performance of the system is improved.
In a third aspect, there is provided an apparatus comprising means for performing any one of the methods of the first or second aspects. The device can be a terminal device or a chip in the terminal device. The apparatus may comprise an input unit conforming to the transmitting unit, or a communication unit and a processing unit.
When the apparatus is a terminal device, the terminal device may further comprise a memory for storing computer program code, which when executed by the processor causes the terminal device to perform any of the methods of the first aspect.
When the apparatus is a chip in a terminal device, the chip may further include a memory, where the memory may be a memory (e.g., a register, a cache, etc.) in the chip, or may be a memory (e.g., a read-only memory, a random access memory, etc.) located outside the chip; the memory is for storing computer program code which, when executed by the processor, causes the chip to perform any of the methods of the first aspect.
In a fourth aspect, there is provided a computer readable storage medium storing computer program code which, when run by an apparatus as described above, causes the apparatus to perform any one of the methods of the first or second aspects.
Drawings
FIG. 1 is a schematic diagram of a method of communication for a desktop operating system provided by the present application;
FIG. 2 is a schematic diagram of a connection scheme provided by the present application;
FIG. 3 is a schematic diagram of a method of communication applied to a mobile operating system provided by the present application;
FIG. 4 is a schematic illustration of an apparatus provided by the present application;
FIG. 5 is another schematic illustration of the apparatus provided by the present application;
Fig. 6 is a schematic diagram of an electronic device provided by the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings.
At present, most desktop interaction integrated machines in the market are configured by windows single operation systems, and the number of double systems is small, however, even if the desktop interaction integrated machines are connected with the desktop interaction integrated machines or other external devices, the problem to be solved is how to combine the two systems and the user experience. When the multi-system realizes data intercommunication through network connection, the data content of the communication is easy to be stolen or damaged, and in contrast, the data intercommunication between the two systems is realized through a hardware connection channel in some prior art. For example, in hospital systems, the data systems within the hospital are typically closed to the outside, prohibiting communication with the outside network for data security requirements.
However, the data transmission efficiency of the hardware connection mode in the related art is low, and a method needs to be provided to improve the data transmission efficiency between multiple systems on the premise of ensuring the data security.
The method of communication provided by the present application will be described in detail below with reference to the accompanying drawings.
It should be noted that, in the present application, terms such as "first", "second", and the like are used to distinguish different individuals in the same type of object, 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.
The application provides a communication method 100, which is applied to a desktop operating system. The method 100 may be performed by the apparatus shown in fig. 4. As shown in fig. 1, method 100 includes the following.
S110, receiving first data sent by the mobile operating system through a first wired connection.
The mobile operating system and the desktop operating system are connected in a first wired mode, the safety of the connection is high, data interaction between the two systems is actively supported, and data intercommunication is achieved.
Wherein the mobile operating system is for example: android operating systems, MAC operating systems, windows operating systems, linux operating systems, etc., commonly used Android operating systems, desktop operating systems, for example: android operating system, MAC operating system, windows operating system or Linux operating system, etc., which are commonly used.
Optionally, the first wired connection includes an integrated circuit IC chip, and the first wired connection includes: the IC chip is connected with the desktop operating system through a type-II interface, and the IC chip is connected with the mobile operating system through a type-II interface; or the IC chip is connected with the desktop operating system through a second type of interface, and the IC chip is connected with the mobile operating system through a first type of interface; wherein the transmission rate of the first type of interface is higher than the transmission rate of the second type of interface.
One type of interface is, for example, a universal serial bus USB (Universal Serial Bus, USB) interface type, and the second type of interface is, for example: a Universal Asynchronous Receiver Transmitter (UART) interface type, a bidirectional two-wire synchronous serial (Inter-Integrated Circuit, I2C) interface type, a serial peripheral (Serial Peripheral Interface, SPI) interface type, and the like. The data transmission rate of the first type of interface is higher than the transmission rate of the second type of interface.
Specifically, the IC chip is connected with the mobile operating system and the desktop control system through a first type interface and a second type interface respectively so as to realize data transmission. The selection of two interfaces in the first wired connection, in which the IC chip is connected to the mobile operating system and the desktop control system respectively, supports multiple situations, for example, the two interfaces are all one type of interfaces (the IC chip is connected to the mobile operating system through one type of interfaces and the IC chip is connected to the terminal operating system through one type of interfaces), the two types of interfaces (the IC chip is connected to the mobile operating system through one type of interfaces and the IC chip is connected to the terminal operating system through one type of interfaces) or the interface used for connecting the IC chip has one type of interfaces and the other end is two types of interfaces.
For the IC chip, on one hand, the IC chip can solve the problem that the mobile operating system and the desktop operating system are inconsistent with the external interfaces, for example, the IC chip is used as a transfer module of a first type interface and a second type interface, and different types of data conversion are realized so as to complete corresponding data transmission.
On the other hand, in the case that at least one end of the external connection interfaces of the mobile operating system and the desktop operating system in the first wired connection is one type of interface, for example, a USB interface, in the conventional setting of executing data transmission through the USB interface, data can only be actively transmitted from a given master end to a given slave end, and the slave end cannot actively transmit data to the master end, that is, two operating systems in the wired connection cannot realize bidirectional data communication at this time. However, in this embodiment, after the connection between the IC chip and the host is established, the IC chip has a response channel for "responding" to the host; the request sent by the slave terminal can be forwarded to the master terminal in the form of 'response' by using a response channel, and the master terminal confirms that the response is the 'predefined request' sent by the slave terminal after receiving the response, so that the corresponding feedback or action can be performed. The specific "defined request" may be a personalized setting or a system preset for the user.
The preferred first wired connection is: one end of the IC chip is a second type interface, the other end is a first type interface, the IC chip of the type has more markets, the selectable range is wide, and the cost and the quality control are convenient to carry out. And the transmission rate is high because of comprising one interface.
For example, one end of the IC chip is a UART interface in the two types of interfaces, and the other end is a USB interface in the one types of interfaces. As shown in fig. 2, the mobile operating system is connected with the IC chip by a UART interface in a wired manner to realize data transmission, and the IC chip is connected with the desktop operating system by a USB interface in a wired manner to realize data transmission. Or the mobile operating system is connected with the IC chip in a wired way through the USB interface to realize data transmission, and the IC chip is connected with the desktop operating system in a wired way through the UART interface to realize data transmission. In this embodiment, the data transmission speed can be guaranteed to a certain extent, and the types of the current IC chips with UART at one end and USB at the other end are more, so that the cost is controllable. For example: an IC chip of model KT6740, which is a touch IC chip, may be used.
And S120, sending a second request to the mobile operating system according to the first request under the condition that the first data comprises the first request, wherein the first request is used for requesting the desktop operating system to acquire the second data through a second connection, the second connection only supports the mobile operating system to transmit the data to the desktop operating system under the condition that the data transmission request is received, the transmission rate of the second connection is higher than that of the first wired connection, and the second request is used for requesting to acquire the second data.
Specifically, after receiving the first request, the desktop operating system may obtain second data from the mobile operating system through the second connection. The second data is actual content that the user needs to transfer to the desktop operating system, for example: documents, videos, audios, pictures, etc. with large data volume. The second data of the type is transmitted through the second connection because the transmission rate of the second connection is faster than that of the first wired connection, so that the efficiency of data transmission from the mobile operating system to the desktop operating system can be improved.
Furthermore, the second connection only supports the mobile operating system to transmit data to the desktop operating system upon receipt of the data transmission request. That is, the transmission characteristics of the second connection limit that the desktop operating system can actively transmit data to the mobile operating system only, and the mobile operating system cannot transmit data through the second connection.
In this case, when the mobile operating system needs to actively send data to the desktop operating system, the desktop operating system can only send a first request through a first wired connection with a high security level, and after receiving the first request, actively remove the mobile operating system to self-fetch second data, which specifically includes: and initiating a second request to the mobile operating system through a second connection, and receiving 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 the data transmission speed is fast, but also the security of the data transmission process can be improved because the data transmission process must be triggered by the first wired connection transmission mode with high security.
Optionally, the first data further includes partial data of the second data, and the obtaining the second data from the mobile operating system through the second connection includes: the remaining portion of the second data is obtained from the mobile operating system over the second connection.
In this embodiment, when the mobile operating system needs to actively send data to the desktop operating system, whether or not data transmission is required to be completed through the second connection, the first data is sent through the first wired connection. Therefore, part of the second data can be carried in the first data, so that the data quantity required to be transmitted through the second connection is reduced, and the overall transmission rate is improved.
Specifically, in some examples, if the data size of the second data is smaller, such as text, a picture with a small data size, etc., the second data may be directly sent only through the first wired connection. The subsequent process of data transmission through the second connection is not needed to be executed, so that the time for receiving and transmitting data is reduced, and the data transmission efficiency is further improved.
In some examples, there are also cases where the first data does not contain the first request, contains only the second data. At this time, the desktop operating system does not receive the first request, does not request the second data from the mobile operating system through the second connection, and only passively receives the second data through the first wired connection.
S130, acquiring second data from the mobile operating system through a second connection.
Specifically, the data transmission speed of the second connection is faster, so that the desktop operating system can complete the receiving of the second data faster, and the data transmission efficiency is improved.
Optionally, the second connection is a connection of a media transport protocol.
That is, the second connection may be an MTP connection, and the transmission speed is faster. The MTP protocol can complete data transmission in the forms of Bluetooth, IP/TCP and the like. It can be understood that the transmission modes such as bluetooth, IP/TCP and the like are performed without maintaining the physical transmission line of the wired connection, and the use and maintenance are more convenient. The transmission mode is also suitable for the situation that the mobile operating system and the desktop operating system only have one external interface, namely, when the double-end operating system only has one external interface, the external interfaces can finish the first wired connection, and at the moment, the second connection realizes data transmission through transmission modes such as Bluetooth, IP/TCP and the like.
Optionally, the second connection is a wired connection. The transmission speed is high, and the safety of data transmission can be improved.
In one example, the second connection may be a wired connection implemented by the desktop operating system and the mobile operating system through a USB interface, where the USB channel transmission supports the MTP protocol for completing data transmission. The data transmission is realized through the USB interface, for example, the interface of the second connection and the desktop operating system is a UBS Type-a (a USB interface external standard) interface, and the interface of the second connection and the mobile operating system is a USB Type-C (a USB interface external standard) interface. One end Type-A one end is the data line of Type-C comparatively commonly in the in-service use, and is with low costs.
It will be appreciated that in the case where both ends of the wired connection are of the USB interface type, data transfer is typically achieved via the MTP protocol. In the main implementation process of the MTP protocol, an Android system is usually a slave (passive), a Windows system is a master (active), and the direct connection of USB established between the Android system and the Windows system is implemented by taking the Android system as a passive party, so that the Android system cannot actively initiate communication. In the first wired connection, if the external interfaces of the desktop operating system and the mobile operating system are both USB types, data transmission is also required through the MTP protocol; at this time, an IC chip is present in the first wired connection, and the IC chip can adjust its own master-slave identity according to the master party of data transmission when the MTP protocol is executed according to the data transmission requirement, so that the first wired connection with the USB interface at both ends also supports the Android system to actively perform data transmission to the Windows system, for example, the first data transmission.
In addition, even though the first wired connection and the second connection are both data transmission through the USB interface, the IC chip in the first wired connection performs data processing, forwarding and other processing, so that the full-speed transmission speed of the USB direct connection cannot be achieved, and a certain transmission delay still exists compared with the second connection.
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 because the MTP requirements for the master and slave are defined. At this time, other protocols capable of achieving the transmission purpose may be selected to complete the second connection, or the data transmission may be achieved only through the first wired connection. For example, the first data includes all the second data, and does not include the first request.
Optionally, feeding back an acknowledgment 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.
Specifically, the acknowledgement identifier may be that the desktop operating system does not receive any data sent by the mobile operating system within a certain time threshold, and determines that the sending is completed. Or the first request carries the abstract of the second data, and the received second data accords with the content of the abstract in the first request received before.
In this embodiment, when the mobile operating system needs to perform data transmission, a disaster recovery mechanism exists, and in the process of performing data transmission, the data that has been transmitted and to be transmitted are locally cached, and if transmission abnormality occurs, reissue or retransmission can be performed. After the desktop operating system confirms that the second data is received, the relevant cache of the second data in the mobile operating system is redundant data, and at the moment, after the confirmation identification fed back by the desktop operating system is received, the deletion is carried out, so that the memory occupation is reduced, and the use performance of the system is improved.
The application provides a communication method 300 which is applied to a mobile operating system. The method 300 may be performed by the apparatus shown in fig. 5, as shown in fig. 3, the method 300 including the following.
And S310, sending first data to a desktop operating system through a first wired connection.
Specifically, when the mobile operating system needs to transmit data to the desktop operating system, first data is sent to the desktop operating system through a first wired connection with high confidentiality.
Optionally, the first wired connection includes an integrated circuit IC chip, the IC chip is connected with the desktop operating system through a type of interface, and the IC chip is connected with the mobile operating system through a type of interface; or the IC chip is connected with the desktop operating system through a second type interface; wherein the transmission rate of the first type of interface is higher than the transmission rate of the second type of interface.
Specifically, the IC chip is connected with the mobile operating system and the desktop control system through a first type interface and a second type interface respectively so as to realize data transmission. The selection of two interfaces in the first wired connection, in which the IC chip is connected to the mobile operating system and the desktop control system respectively, supports multiple situations, for example, the two interfaces are all one type of interfaces (the IC chip is connected to the mobile operating system through one type of interfaces and the IC chip is connected to the terminal operating system through one type of interfaces), the two types of interfaces (the IC chip is connected to the mobile operating system through one type of interfaces and the IC chip is connected to the terminal operating system through one type of interfaces) or the interface used for connecting the IC chip has one type of interfaces and the other end is two types of interfaces.
The preferred first wired connection is: one end of the IC chip is a second type interface, the other end is a first type interface, the IC chip of the type has more markets, the selectable range is wide, and the cost and the quality control are convenient to carry out. And the transmission rate is high because of comprising one interface.
In this embodiment, the security of the first wired connection is higher, the first data is used to start data transmission, and the security of the whole data transmission process can be improved by adopting the first wired connection.
And S320, receiving a second request sent by the desktop operating system according to the first request under the condition that the first data comprises the first request, wherein the first request is used for requesting the desktop operating system to acquire the second data through a second connection, the second connection only supports the mobile operating system to transmit the data to the desktop operating system under the condition that the data transmission request is received, the transmission rate of the second connection is higher than that of the first wired connection, and the second request is used for requesting to acquire the second data.
In this embodiment, when the desktop operating system receives the first request, the mobile operating system can be removed to self-fetch the second data. The method comprises the following steps: and sending a second request to the mobile operating system through the second connection, and sending second data to the desktop operating system by the mobile operating system in response to the second request.
The desktop operating system can be triggered to acquire the second data only when the first request is received through the first wired connection, so that the security of data transmission from the mobile operating system to the desktop operating system can be ensured. Meanwhile, the data transmission speed of the second connection is high, and the efficiency of the mobile operating system for transmitting data to the desktop operating system is improved.
Optionally, the first data further includes partial data of the second data, and sending the second data to the desktop operating system through the second connection includes: and sending the rest data of the second data to the desktop operating system through the second connection.
In this embodiment, when the mobile operating system needs to actively send data to the desktop operating system, whether or not data transmission is required to be completed through the second connection, the first data is sent through the first wired connection. Therefore, part of the second data can be carried in the first data, so that the data quantity required to be transmitted through the second connection is reduced, and the overall transmission rate is improved.
Specifically, in some examples, if the data size of the second data is smaller, such as text, a picture with a small data size, etc., the second data may be directly sent only through the first wired connection. The subsequent process of data transmission through the second connection is not needed to be executed, so that the time for receiving and transmitting data is reduced, and the data transmission efficiency is further improved.
S330, sending second data to the desktop operating system through the second connection.
Specifically, in the present embodiment, the transmission rate of the second connection is higher than that of the first wired connection, and therefore, the data transmission time can be reduced by completing the data transmission through the second connection. And the data transmission efficiency is improved.
Optionally, the second connection is a connection using MTP. That is, the second connection may be an MTP connection, and the transmission speed is faster. The MTP protocol can complete data transmission in the forms of Bluetooth, IP/TCP, wired connection and the like.
Optionally, the first data further includes partial data of the second data, and sending the second data to the desktop operating system through the second connection includes: and sending the rest data of the second data to the desktop operating system through the second connection.
In this embodiment, the remaining data of the second data is sent through the second connection, so that the time for sending the data through the second channel is reduced, and the data receiving and sending efficiency is improved.
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 identification.
In this embodiment, when the mobile operating system needs to perform data transmission, a disaster recovery mechanism exists, and in the process of performing data transmission, the data which has been transmitted and is to be transmitted is locally cached, and if an unexpected situation occurs, reissue or resend can be performed. After the desktop operating system confirms that the second data is received, the relevant cache of the second data in the mobile operating system is redundant data, and at the moment, after the confirmation identification fed back by the desktop operating system is received, the deletion is carried out, so that the memory occupation is reduced, and the use performance of the system is improved.
Examples of the method of communication provided by the present application are described in detail above. It is to be understood that the corresponding means, in order to carry out the functions described above, comprise corresponding hardware structures and/or software modules for carrying out the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The present application may divide the functional units of the apparatus according to the above-described method example, for example, each function may be divided into each functional unit, or two or more functions may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that the division of the units in the present application is illustrative, and is merely a logic function division, and other division manners may be implemented in practice.
Fig. 4 is a schematic structural view of an apparatus according to the present application. The apparatus 400 comprises a transmitting unit 410 and an input unit 420, wherein the input unit 420 is capable of performing the acquisition step under control of the transmitting unit 410. The apparatus 400 performs the method 100:
the input unit 420 is configured to: receiving first data sent by a mobile operating system through a first wired connection;
the transmitting unit 410 is configured to: when the first data comprises a first request, sending a second request to the mobile operating system according to the first request, wherein the first request is used for requesting the desktop operating system to acquire the second data through a second connection, the second connection only supports the mobile operating system to transmit the data to the desktop operating system when receiving the data transmission request, and the transmission rate of the second connection is higher than that of the first wired connection, and the second request is used for requesting to acquire the second data; second data is obtained from the mobile operating system over a second connection.
In this embodiment, when the desktop operating system needs to receive data sent by the mobile operating system, a second connection is provided for completing data transmission, and the transmission rate of the second connection is higher than that of the first wired connection, so that data transmission between multiple operating systems can be quickly realized. In addition, it can be understood that the security of data transmission realized through the wired connection is higher, and only the desktop operating system receives the first request in the first wired connection, the mode provided by the embodiment triggers to acquire data from the mobile operating system, so that the security of data transmission can be ensured on the basis of realizing rapid data transmission.
Optionally, the first wired connection includes an integrated circuit IC chip, data transmission is implemented between the IC chip and the desktop operating system through a first type interface or a second type interface, and data transmission is implemented between the IC chip and the mobile operating system through a first type interface or a second type interface; wherein, the transmission rate of the first interface is higher than the transmission rate of the second interface; the second connection is a connection using a media transport protocol (MediaTransferProtocol, MTP).
In this embodiment, the first wired connection includes an IC chip, which can solve the problem that the external interfaces of the mobile operating system and the desktop operating system are inconsistent on the one hand. On the other hand, the wired connection can be guaranteed to complete bidirectional communication. In addition, the second connection is an MTP protocol, and can transmit data at high speed.
Optionally, the first data further includes partial data of the second data, and the obtaining the second data from the mobile operating system through the second connection includes: the remaining portion of the second data is obtained from the mobile operating system over the second connection.
In this embodiment, the first data support carries part of the second data, so that the data transmission amount completed by the second connection in the following process can be reduced, and the speed of acquiring the second data by the desktop operating system is further improved.
Optionally, the mobile operating system feeds back an acknowledgment identifier of the second data; wherein the acknowledgement identifier is used to instruct the mobile operating system to delete the second data.
In this embodiment, the mobile operating system has a disaster recovery mechanism when data transmission is required. In other words, the data which is sent and to be sent is locally cached in the process of executing data sending, and if accidents occur, the data can be timely reissued or retransmitted. After the desktop operating system confirms that the second data is received, the relevant cache of the second data in the mobile operating system is redundant data, and at the moment, after the confirmation identification fed back by the desktop operating system is received, the redundant data is deleted, so that the memory occupation is reduced, and the use performance of the system is improved.
Optionally, the second connection is a wired connection.
In the embodiment, the second connection is a wired connection between the desktop operating system and the mobile operating system, so that data transmission is fast, and the data transmission safety of the wired connection is high, so that the data transmission safety between the two systems is further improved.
Fig. 5 is a schematic structural view of an apparatus according to the present application. The apparatus 500 comprises a processing unit 510 and a communication unit 520, wherein the communication unit 520 is capable of performing the transmitting step under control of the processing unit 510. The apparatus 500 performs the method 300:
the communication unit 520 is configured to: sending first data to a desktop operating system through a first wired connection;
the processing unit 510 is configured to: receiving a second request sent by the desktop operating system according to the first request under the condition that the first data comprises the first request, wherein the first request is used for requesting the desktop operating system to acquire the second data through a second connection, the second connection only supports the mobile operating system to transmit the data to the desktop operating system under the condition that the mobile operating system receives the 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 for requesting to acquire the second data; and sending second data to the desktop operating system through the second connection.
In this embodiment, when the mobile operating system needs to send data to the desktop operating system, a second connection is provided for completing data transmission, and the transmission rate of the second connection is higher than that of the first wired connection, so that data transmission between multiple operating systems can be quickly realized. In addition, it can be understood that the security of data transmission realized through the wired connection is higher, and only the desktop operating system receives the first request in the first wired connection, the mode provided by the embodiment triggers to acquire data from the mobile operating system, so that the security of data transmission can be ensured on the basis of realizing rapid data transmission.
Optionally, the first wired connection includes an integrated circuit IC chip, the IC chip is connected with the desktop operating system through a type of interface, and the IC chip is connected with the mobile operating system through a type of interface; or the IC chip is connected with the desktop operating system through a second type interface; wherein the transmission rate of the first type of interface is higher than the transmission rate of the second type of interface. The second connection is a connection using MTP.
Optionally, the first data further includes partial data of the second data, and sending the second data to the desktop operating system through the second connection includes: and sending the rest data of the second data to the desktop operating system through the second connection.
In this embodiment, the first data support carries part of the second data, so that the subsequent data transmission amount completed through the second connection can be reduced, and the speed of acquiring the second data by the desktop operating system is further improved.
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 identification.
In this embodiment, the mobile operating system has a disaster recovery mechanism when data transmission is required. In other words, the data which is sent and to be sent is locally cached in the process of executing data sending, and if accidents occur, the data can be timely reissued or retransmitted. After the desktop operating system confirms that the second data is received, the relevant cache of the second data in the mobile operating system is redundant data, and at the moment, after the confirmation identification fed back by the desktop operating system is received, the redundant data is deleted, so that the memory occupation is reduced, and the use performance of the system is improved.
The specific manner in which apparatus 400 and apparatus 500 perform the above-described methods and the resulting benefits may be found in the relevant descriptions of the method embodiments.
Fig. 6 shows a schematic structural diagram of an electronic device provided by the present application. The dashed line in fig. 6 indicates that the unit or the module is optional. The apparatus 600 may be used to implement the methods described in the method embodiments above. The device 600 may be a terminal device or a server or a chip.
The device 600 includes one or more processors 601, the one or more processors 601 may support the device 600 to implement the methods in the method embodiments. The processor 601 may be a general purpose processor or a special purpose processor. For example, the processor 601 may be a central processing unit (central processing unit, CPU), digital signal processor (digital signal processor, DSP), application specific integrated circuit (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA), or other programmable logic device such as discrete gates, transistor logic, or discrete hardware components.
The processor 601 may be used to control the device 600, execute software programs, and process data of the software programs. The device 600 may also include a communication module 605 to enable input (receiving) and output (transmitting) of signals.
For example, the device 600 may be a chip, the communication module 605 may be input and/or output circuitry of the chip, or the communication module 605 may be a communication interface of the chip, which may be part of a terminal device or a server or other electronic device.
For another example, the device 600 may be a terminal device or a server, the communication module 605 may be a transceiver of the terminal device or the server, or the communication module 605 may be a transceiver circuit of the terminal device or the server.
The device 600 may include one or more memories 602 having a program 604 stored thereon, the program 604 being executable by the processor 601 to generate instructions 603 such that the processor 601 performs the methods described in the method embodiments above according to the instructions 603. Optionally, the memory 602 may also have data stored therein. Alternatively, the processor 601 may also read data stored in the memory 602, which may be stored at the same memory address as the program 604, or which may be stored at a different memory address than the program 604.
The processor 601 and the memory 602 may be provided separately or may be integrated together, for example, on a System On Chip (SOC) of the terminal device.
The application also provides a computer program product which, when executed by the processor 601, implements the method of any of the method embodiments of the application.
The computer program product may be stored in the memory 602, for example, the program 604, and the program 604 is finally converted into an executable object file capable of being executed by the processor 601 through preprocessing, compiling, assembling, and linking.
The application also provides a computer readable storage medium having stored thereon a computer program which when executed by a computer implements the method of any of the method embodiments of the application. The computer program may be a high-level language program or an executable object program.
The computer-readable storage medium is, for example, memory 602. The memory 602 may be volatile memory or nonvolatile memory, or the memory 602 may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and direct memory bus RAM (DR RAM).
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working processes and technical effects of the apparatus and device described above may refer to corresponding processes and technical effects in the foregoing method embodiments, which are not described in detail herein.
In several embodiments provided by the present application, the disclosed systems, apparatuses, and methods may be implemented in other manners. For example, some features of the method embodiments described above may be omitted, or not performed. The above-described apparatus embodiments are merely illustrative, the division of units is merely a logical function division, and there may be additional divisions in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the elements or the coupling between the elements may be direct or indirect, including electrical, mechanical, or other forms of connection.
It should be understood that, in various embodiments of the present application, the size of the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In addition, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely one association relationship describing the associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
In summary, the foregoing description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method of communication, for use with 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 comprises a first request, sending a second request to the mobile operating system according to the first request, wherein the first request is used for requesting the desktop operating system to acquire second data through a second connection, the second connection only supports the mobile operating system to transmit data to the desktop operating system when receiving 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 for requesting to acquire the second data;
The second data is obtained from the mobile operating system through the second connection.
2. The method of claim 1, wherein the first wired connection comprises an integrated circuit, IC, chip connected to the desktop operating system via a class one interface, and connected to the mobile operating system via a class two interface; or the IC chip is connected with the desktop operating system through the second type of interface, and the IC chip is connected with the mobile operating system through the first type of interface; wherein, the transmission rate of the first class interface is higher than the transmission rate of the second class interface; the second connection is a connection using a media transport protocol.
3. The method of claim 1 or 2, wherein the first data further comprises partial data of the second data, the obtaining the second data from the mobile operating system over the second connection comprising:
and acquiring the rest data of the second data from the mobile operating system through the second connection.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
Feeding back an acknowledgment 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.
5. A method of communication, for use in a mobile operating system, comprising:
sending first data to a desktop operating system through a first wired connection;
receiving a second request sent by the desktop operating system according to the first request under the condition that the first data comprises the first request, wherein the first request is used for requesting the desktop operating system to acquire second data through a second connection, the second connection only supports the mobile operating system to transmit the data to the desktop operating system under the condition 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 for requesting to acquire the second data;
and sending the second data to the desktop operating system through the second connection.
6. The method of claim 5, wherein the first wired connection comprises an integrated circuit IC chip, the IC chip being connected to the desktop operating system through a type of interface, the IC chip being connected to the mobile operating system through a type of interface; or the IC chip is connected with the desktop operating system through the second type of interface, and the IC chip is connected with the mobile operating system through the first type of interface; wherein, the transmission rate of the first class interface is higher than the transmission rate of the second class interface; the second connection is a connection using a media transport protocol.
7. The method of claim 5 or 6, wherein the first data further comprises partial data of the second data, the sending the second data to the desktop operating system over the second connection comprising:
and sending the rest data of the second data to the desktop operating system through the second connection.
8. The method of claim 5 or 6, further comprising, after said sending said second data to said desktop operating system via said second connection:
receiving an acknowledgement identifier of the second data fed back by the desktop operating system;
and deleting the second data according to the acknowledgement identification.
9. An apparatus comprising a processor and a memory, the processor and the memory coupled, the memory to store a computer program that, when executed by the processor, causes the apparatus to perform the method of any one of claims 1 to 4 or perform 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, which when executed by a processor causes the processor to perform the method of any one of claims 1 to 4 or to perform the method of any one of claims 5 to 8.
CN202310849096.8A 2023-07-11 2023-07-11 Method, apparatus and computer readable storage medium for communication Pending CN116800817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310849096.8A CN116800817A (en) 2023-07-11 2023-07-11 Method, apparatus and computer readable storage medium for communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310849096.8A CN116800817A (en) 2023-07-11 2023-07-11 Method, apparatus and computer readable storage medium for communication

Publications (1)

Publication Number Publication Date
CN116800817A true CN116800817A (en) 2023-09-22

Family

ID=88042063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310849096.8A Pending CN116800817A (en) 2023-07-11 2023-07-11 Method, apparatus and computer readable storage medium for communication

Country Status (1)

Country Link
CN (1) CN116800817A (en)

Similar Documents

Publication Publication Date Title
CN109902053B (en) SPI communication method based on double controllers, terminal equipment and storage medium
US10394723B2 (en) Data accessing method and PCIe storage device
CN101304373B (en) Method and system for implementing high-efficiency transmission chunk data in LAN
EP2566286B1 (en) Wireless Internet Access Module, Communication Method for Host and Wireless Internet Access Module, and Data Card
CN108989432B (en) User-mode file sending method, user-mode file receiving method and user-mode file receiving and sending device
CN113806116A (en) Protocol stack data transmission method based on Linux system, computer equipment and storage medium
US11474853B2 (en) Storage device operation method and physical server
EP3159803A1 (en) Data storage method and network interface card
WO2019037458A1 (en) Communication method and apparatus
CN111447252B (en) Method and system for realizing interactive input based on websocket
CN103369034A (en) Method, system and device for sending photos to digital photo frames
KR20120072134A (en) Apparatus and method for accelerating virtual desktop
CN105939293A (en) SKB (Struct sk_buff) recycling method and device
CN116800817A (en) Method, apparatus and computer readable storage medium for communication
CN102937862A (en) System and method for managing mobile terminal by browser
CN111857546A (en) Method, network adapter and computer program product for processing data
CN110677465B (en) Control method and device of distributed lock
EP4105787A1 (en) Processor communication method and apparatus, electronic device, and computer-readable storage medium
EP2595420A1 (en) Method of sending a message to a secure element
CN113326151A (en) Inter-process communication method, device, equipment, system and storage medium
US9537968B1 (en) Communication of socket protocol based data over a storage protocol based interface
CN115065966B (en) Terminal and communication method
CN115982090B (en) Method and device for realizing remote memory access by cooperation of software and hardware
CN114978950B (en) Network algorithm calling method and system based on FPGA and CPU cooperation
CN113645014B (en) Data processing method and device based on intelligent security device and storage medium

Legal Events

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