CN111417216B - Application program cross-system communication method and related device - Google Patents

Application program cross-system communication method and related device Download PDF

Info

Publication number
CN111417216B
CN111417216B CN202010097809.6A CN202010097809A CN111417216B CN 111417216 B CN111417216 B CN 111417216B CN 202010097809 A CN202010097809 A CN 202010097809A CN 111417216 B CN111417216 B CN 111417216B
Authority
CN
China
Prior art keywords
android
application program
socket
cross
systems
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.)
Active
Application number
CN202010097809.6A
Other languages
Chinese (zh)
Other versions
CN111417216A (en
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.)
Pateo Connect and Technology Shanghai Corp
Original Assignee
Pateo Connect and Technology Shanghai Corp
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 Pateo Connect and Technology Shanghai Corp filed Critical Pateo Connect and Technology Shanghai Corp
Priority to CN202010097809.6A priority Critical patent/CN111417216B/en
Publication of CN111417216A publication Critical patent/CN111417216A/en
Application granted granted Critical
Publication of CN111417216B publication Critical patent/CN111417216B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/44Star or tree networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a cross-system communication method and a related device for application programs, wherein the method comprises the following steps: virtual multiple android systems are realized through a virtualization technology, and the multiple android systems correspond to the multiple system positions one by one; starting a cross-system communication service of each android system in the plurality of android systems; a socket communication network of a star topology structure is formed according to a plurality of android systems and a plurality of system positions; binding a plurality of application programs in each android system with a cross-system communication service of each android system; and when detecting that the application program A needs to send the target communication data to the application program B in the other android system, sending the target communication data from the application program A to the application program B through a socket communication network. By adopting the embodiment of the application program cross-system communication method and device, the communication efficiency of the application program cross-system communication is improved, and meanwhile, the communication load of the application program cross-system communication is reduced.

Description

Application program cross-system communication method and related device
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method and an apparatus for cross-system communication of an application program.
Background
At present, the process of cross-system communication of application programs is as follows: and each android system in the plurality of android systems is provided with a plurality of application programs, any two application programs in different android systems are required to establish a wireless socket communication link, and a certain application program in one android system sends communication data to a certain application program in the other android system through the corresponding wireless socket communication link. Because a large number of wireless socket communication links are established, port use conflicts easily occur, and the communication efficiency of the application program cross-system communication is low; meanwhile, a large number of wireless socket communication links are established, so that the communication load of the application program for cross-system communication is increased.
Disclosure of Invention
The embodiment of the application program cross-system communication method and the related device are used for improving the communication efficiency of the application program cross-system communication and reducing the communication load of the application program cross-system communication.
In a first aspect, an embodiment of the present application provides a method for cross-system communication of an application program, including:
virtual multiple android systems are realized through a virtualization technology, and the multiple android systems correspond to the multiple system positions one by one;
Starting a cross-system communication service of each android system in the plurality of android systems;
a socket communication network of a star topology structure is formed according to a plurality of android systems and a plurality of system positions;
binding a plurality of application programs in each android system with a cross-system communication service of each android system;
and when detecting that the application program A needs to send the target communication data to the application program B in the other android system, sending the target communication data from the application program A to the application program B through a socket communication network.
In a second aspect, embodiments of the present application provide an application cross-system communication device, including:
the virtual unit is used for virtualizing a plurality of android systems through a virtualization technology, and the android systems correspond to the system positions one by one;
the starting unit is used for starting a cross-system communication service of each android system in the plurality of android systems;
the system comprises a construction unit, a control unit and a control unit, wherein the construction unit is used for constructing a socket communication network with a star topology structure according to a plurality of android systems and a plurality of system positions;
the binding unit is used for binding a plurality of application programs in each android system with the cross-system communication service of each android system;
And the sending unit is used for sending the target communication data from the application program A to the application program B through the socket communication network when the application program A needs to send the target communication data to the application program B in the other android system.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing part or all of the steps in the method as in the first aspect of embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program, where the computer program is executed by a processor to implement some or all of the steps described in the method of the first aspect of embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the method of the first aspect of embodiments of the present application. The computer program product may be a software installation package.
As can be seen, port usage conflicts are likely to occur compared to establishing a large number of wireless socket communication links, resulting in lower communication efficiency for application program cross-system communication; meanwhile, a large number of wireless socket communication links are established, so that the communication load of cross-system communication of application programs is increased, and in the embodiment of the application, a socket communication network with a star topology structure is formed based on a plurality of android systems and a plurality of system positions, and a plurality of application programs in each of the plurality of android systems are bound with the cross-system communication service of each of the android systems, so that target communication data can be sent from one application program in one of the android systems to one application program in the other android system through the socket communication network. Because communication data transmitted through a socket communication network cannot collide, communication efficiency of cross-system communication of application programs is facilitated; because any two application programs in different android systems can transmit communication data through a socket communication network, a large number of wireless socket communication links are prevented from being established, and the communication load of cross-system communication of the application programs is reduced.
Drawings
In order to more clearly describe the technical solutions in the embodiments or the background of the present application, the following description will describe the drawings that are required to be used in the embodiments or the background of the present application.
FIG. 1 is a schematic architecture diagram of an application cross-system communication system according to an embodiment of the present application;
FIG. 2A is a flow chart of a method for cross-system communication of an application according to an embodiment of the present application;
fig. 2B is a schematic diagram of a socket communication network according to an embodiment of the present application;
FIG. 3 is a flow chart of another method of cross-system communication of applications provided in an embodiment of the present application;
FIG. 4 is a functional block diagram of an application cross-system communication device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.
The electronic device may include various handheld devices, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of User Equipment (UE), mobile Station (MS), terminal Device (TD), etc. with wireless communication capabilities.
The embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic architecture diagram of an application cross-system communication system provided in an embodiment of the present application, where the application cross-system communication system includes a processor, and where:
the processor is used for virtualizing a plurality of android systems through a virtualization technology, and the android systems correspond to the system positions one by one;
The processor is also used for starting a cross-system communication service of each android system in the plurality of android systems;
the processor is also used for forming a socket communication network with a star topology structure according to the plurality of android systems and the plurality of system positions;
the processor is also used for binding a plurality of application programs in each android system with a cross-system communication service of each android system;
the processor is further configured to send the target communication data from the application program a to the application program B through the socket communication network when it is detected that the application program a needs to send the target communication data to the application program B in another android system.
Referring to fig. 2A, fig. 2A is a flowchart of an application cross-system communication method provided in an embodiment of the present application, where the application cross-system communication method includes steps 201 to 205, specifically as follows:
201. the application program virtualizes a plurality of android systems through a virtualization technology across the system communication device, and the android systems correspond to the system positions one by one.
The android systems are virtual systems; the system position is a hard disk where the android system is located; the android systems are in one-to-one correspondence with the touch display screens, which can be configured by a vehicle.
202. An application program cross-system communication device initiates a cross-system communication service for each of a plurality of android systems.
In some possible embodiments, the application cross-system communication device initiates a cross-system communication service for each of the plurality of android systems, comprising:
the application program cross-system communication device judges whether each android system in the plurality of android systems receives a startup broadcast or not;
if yes, the application program cross-system communication device switches the cross-system communication service of each android system in the plurality of android systems from an unactuated state to an actuated state in a serial mode;
or if so, the application program cross-system communication device switches the cross-system communication service of each android system in the plurality of android systems from the non-started state to the started state in a parallel mode.
The application cross-system communication device may also switch the cross-system communication service of each of the plurality of android systems from an inactive state to an active state in other feasible manners.
203. And the application program cross-system communication device forms a socket communication network with a star topology structure according to the android systems and the system positions.
In a star topology, nodes in the network are connected in a point-to-point fashion to a central node, which transmits information to a destination node.
In some possible embodiments, the number of the plurality of android systems is N, where N is an integer greater than 1, and the application cross-system communication device forms a socket communication network with a star topology according to the plurality of android systems and the plurality of system locations, including:
if the android system C is determined to be a central control system according to the system position corresponding to the android system C, creating a socket server by an application program across a system communication device, wherein the android system C is one of N android systems;
if the android system D is determined to be a non-central control system according to the operating system corresponding to the android system D, creating a socket client by an application program across a system communication device, wherein the android system D is any one of N android systems except the android system C;
and the application program cross-system communication device connects the (N-1) socket clients with the socket server to form a socket communication network with a star topology structure.
The application program cross-system communication device can determine a target partition corresponding to the target system position according to the pre-stored mapping relation between the system position and the partition, and determine a target control system corresponding to the target partition according to the pre-stored mapping relation between the partition and the control system.
The mapping relationship between the system position and the partition is pre-stored in the application program cross-system communication device, and the mapping relationship between the system position and the partition is shown in the following table 1:
TABLE 1
System location Partition(s)
First hard disk Main partition
Second hard disk First expansion partition
Third hard disk Second expansion partition
…… ……
The system positions are in one-to-one correspondence with the partitions; if the system position is the first hard disk, the partition is a main partition; if the system position is the second hard disk, the partition is a first expansion partition; if the system position is the third hard disk, the partition is a second expansion partition.
The mapping relationship between the partition and the control system is shown in the following table 2:
TABLE 2
Partition(s) Control system
Main partition Central control system
First expansion partition First non-central control system
Second expansion partition Second non-central control system
…… ……
The partitions are in one-to-one correspondence with the control systems; if the partition is the main partition, the control system is a central control system; if the partition is a first expansion partition, the control system is a first non-central control system; if the partition is a second expansion partition, the control system is a second non-central control system.
The application program establishes wireless socket communication links between each non-central control system in the (N-1) non-central control systems and the central control system across the system communication devices to obtain (N-1) wireless socket communication links; the application program cross-system communication device connects (N-1) socket clients with a socket server through (N-1) wireless socket communication links to form a socket communication network with a star topology structure.
For example, as shown in fig. 2B, fig. 2B is a schematic diagram of a socket communication network provided in the embodiment of the present application, where the socket communication network includes a central control system and four non-control systems (a first non-central control system, a second non-central control system, a third non-central control system and a fourth non-central control system), a socket client of the first non-control system is connected to a socket server of the central control system, a socket client of the second non-control system is connected to a socket server of the central control system, a socket client of the third non-control system is connected to a socket server of the central control system, and a socket client of the fourth non-control system is connected to a socket server of the central control system.
204. The application cross-system communication device binds a plurality of applications within each of the plurality of android systems with a cross-system communication service of each of the android systems.
In some possible embodiments, the application cross-system communication device binds a plurality of applications within each of a plurality of android systems with a cross-system communication service of each of the android systems, comprising:
the method comprises the steps that an application program cross-system communication device obtains a plurality of AIDL interface identifiers of Android interface definition languages, and the AIDL interface identifiers are in one-to-one correspondence with a plurality of Android systems;
The application program cross-system communication device obtains a plurality of AIDL interface protocols according to the plurality of AIDL interface identifiers;
and the application program cross-system communication device calls a plurality of AIDL interfaces according to a plurality of AIDL interface protocols, and binds a plurality of application programs in each android system in the plurality of android systems with the cross-system communication service of each android system.
205. When it is detected that the application program a needs to send target communication data to the application program B in another android system, the application program cross-system communication device sends the target communication data from the application program a to the application program B through a socket communication network.
As can be seen, port usage conflicts are likely to occur compared to establishing a large number of wireless socket communication links, resulting in lower communication efficiency for application program cross-system communication; meanwhile, a large number of wireless socket communication links are established, so that the communication load of cross-system communication of application programs is increased, and in the embodiment of the application, a socket communication network with a star topology structure is formed based on a plurality of android systems and a plurality of system positions, and a plurality of application programs in each of the plurality of android systems are bound with the cross-system communication service of each of the android systems, so that target communication data can be sent from one application program in one of the android systems to one application program in the other android system through the socket communication network. Because communication data transmitted through a socket communication network cannot collide, communication efficiency of cross-system communication of application programs is facilitated; because any two application programs in different android systems can transmit communication data through a socket communication network, a large number of wireless socket communication links are prevented from being established, and the communication load of cross-system communication of the application programs is reduced.
In some possible embodiments, the application cross-system communication device sending the target communication data from application a to application B through the socket communication network includes:
the method comprises the steps that an application program cross-system communication device obtains a first ID of an application program B and a second ID of an android system where the application program B is located;
if the android system where the application program B is located is determined to be the central control system according to the second ID, the application program cross-system communication device sends target communication data from a socket client of the android system where the application program A is located to a socket server;
and the application program cross-system communication device sends the target communication data to the application program corresponding to the first ID through the socket server.
The application cross-system communication device may determine a target control system corresponding to the target system ID according to a mapping relationship between the pre-stored system ID and the control system.
The mapping relationship between the system ID and the control system is shown in table 3 below:
TABLE 3 Table 3
System ID Control system
First System ID Central control system
Second System ID First non-central control system
Third System ID Second non-central control system
…… ……
The system IDs are in one-to-one correspondence with the control systems; if the system ID is the first system ID, the control system is a central control system; if the system ID is the second system ID, the control system is a first non-central control system; if the system ID is the third system ID, the control system is the second non-central control system.
It can be seen that, in this example, if a certain application program a in a non-control system sends communication data to a certain application program B in a central control system, the communication data is sent from a socket client of the android system where the application program a is located to a socket server of the central control system, and the communication data is sent to the corresponding application program B through the socket server of the central control system. Because communication data transmitted through a socket communication network cannot collide, communication efficiency of cross-system communication of application programs is facilitated; because any two application programs in different android systems can transmit communication data through a socket communication network, a large number of wireless socket communication links are prevented from being established, and the communication load of cross-system communication of the application programs is reduced.
In some possible embodiments, the application cross-system communication device sending the target communication data from application a to application B through the socket communication network includes:
the application program cross-system communication device acquires a third ID of the application program B and a fourth ID of an android system where the application program B is located;
if the android system where the application program B is located is determined to be a non-central control system according to the fourth ID, the application program cross-system communication device sends target communication data from a socket client of the android system where the application program A is located to a socket server;
The application program cross-system communication device sends the target communication data to a socket client of the android system corresponding to the fourth ID through a socket server;
and the application program cross-system communication device sends the target communication data to the application program corresponding to the third ID through the socket client of the android system corresponding to the fourth ID.
In this example, if an application program a in one non-central control system sends communication data to an application program B in another non-central control system, the communication data is sent from a socket client of the android system where the application program a is located to a socket server of the central control system, the communication data is sent to the socket client of the android system where the application program B is located through the socket server, and the communication data is sent to the corresponding application program B through the socket client of the android system where the application program B is located. Because communication data transmitted through a socket communication network cannot collide, communication efficiency of cross-system communication of application programs is facilitated; because any two application programs in different android systems can transmit communication data through a socket communication network, a large number of wireless socket communication links are prevented from being established, and the communication load of cross-system communication of the application programs is reduced.
In accordance with the embodiment shown in fig. 2A, please refer to fig. 3, fig. 3 is a flow chart of another method for cross-system communication of an application provided in an embodiment of the present application, where the method for cross-system communication of an application includes steps 301 to 311, which are specifically as follows:
301. the application program virtualizes a plurality of android systems through a virtualization technology across the system communication device, and the android systems correspond to the system positions one by one.
302. And the application program cross-system communication device judges whether each android system in the plurality of android systems receives the startup broadcast.
303. If yes, the application program cross-system communication device switches the cross-system communication service of each of the android systems from an unactuated state to an actuated state in a serial mode or a parallel mode, wherein the number of the android systems is N, and N is an integer larger than 1.
304. If the android system C is determined to be the central control system according to the system position corresponding to the android system C, the application program creates a socket server across the system communication device, and the android system C is one of N android systems.
305. If the android system D is determined to be a non-central control system according to the operating system corresponding to the android system D, creating a socket client by the application program across the system communication device, wherein the android system D is any one of the N android systems except the android system C.
306. And the application program cross-system communication device connects the (N-1) socket clients with the socket server to form a socket communication network with a star topology structure.
307. The application cross-system communication device binds a plurality of applications in each of the N android systems with a cross-system communication service of each of the android systems.
308. When detecting that the application program A needs to send target communication data to the application program B in another android system, the application program cross-system communication device acquires a third ID of the application program B and a fourth ID of the android system where the application program B is located.
309. If the android system where the application program B is located is determined to be a non-central control system according to the fourth ID, the application program cross-system communication device sends target communication data from a socket client of the android system where the application program A is located to a socket server.
310. And the application program cross-system communication device sends the target communication data to a socket client of the android system corresponding to the fourth ID through a socket server.
311. And the application program cross-system communication device sends the target communication data to the application program corresponding to the third ID through the socket client of the android system corresponding to the fourth ID.
It should be noted that, the specific implementation process of each step of the method shown in fig. 3 may refer to the specific implementation process of the above method, which is not described herein.
The foregoing embodiments mainly describe the solutions of the embodiments of the present application from the point of view of the method-side execution procedure. It will be appreciated that the application cross-system communication device, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples 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 embodiment of the application may divide the functional units of the application across the system communication device according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
The following is an embodiment of the apparatus, which is configured to execute a method implemented by an embodiment of the method of the present application. Referring to fig. 4, fig. 4 is a functional unit block diagram of an application cross-system communication device according to an embodiment of the present application, where the application cross-system communication device 400 includes:
a virtual unit 401, configured to virtualize a plurality of android systems through a virtualization technology, where the plurality of android systems are in one-to-one correspondence with the plurality of system positions;
a starting unit 402, configured to start a cross-system communication service of each of the plurality of android systems;
a constructing unit 403, configured to construct a socket communication network with a star topology according to a plurality of android systems and a plurality of system locations;
a binding unit 404, configured to bind a plurality of applications in each of the plurality of android systems with a cross-system communication service of each of the android systems;
a sending unit 405, configured to send, when it is detected that the application a needs to send the target communication data to the application B in another android system, the target communication data from the application a to the application B through the socket communication network.
As can be seen, port usage conflicts are likely to occur compared to establishing a large number of wireless socket communication links, resulting in lower communication efficiency for application program cross-system communication; meanwhile, a large number of wireless socket communication links are established, so that the communication load of cross-system communication of application programs is increased, and in the embodiment of the application, a socket communication network with a star topology structure is formed based on a plurality of android systems and a plurality of system positions, and a plurality of application programs in each of the plurality of android systems are bound with the cross-system communication service of each of the android systems, so that target communication data can be sent from one application program in one of the android systems to one application program in the other android system through the socket communication network. Because communication data transmitted through a socket communication network cannot collide, communication efficiency of cross-system communication of application programs is facilitated; because any two application programs in different android systems can transmit communication data through a socket communication network, a large number of wireless socket communication links are prevented from being established, and the communication load of cross-system communication of the application programs is reduced.
In some possible embodiments, in terms of starting a cross-system communication service of each of the plurality of android systems, the starting unit 402 is specifically configured to:
judging whether each android system in the plurality of android systems receives a startup broadcast or not;
if yes, switching the cross-system communication service of each android system in the plurality of android systems from an unactuated state to an actuated state in a serial mode;
or if so, switching the cross-system communication service of each android system in the plurality of android systems from the non-started state to the started state in a parallel mode.
In some possible embodiments, the number of the plurality of android systems is N, where N is an integer greater than 1, and in terms of a socket communication network configured according to a star topology according to the plurality of android systems and the plurality of system locations, the configuring unit 403 is specifically configured to:
if the android system C is determined to be a central control system according to the system position corresponding to the android system C, a socket server is created, and the android system C is one of N android systems;
if the android system D is determined to be a non-central control system according to the operating system corresponding to the android system D, a socket client is created, and the android system D is any one of the N android systems except the android system C;
And (3) connecting the (N-1) socket clients with a socket server to form a socket communication network with a star topology structure.
In some possible embodiments, in binding the plurality of applications in each of the plurality of android systems with the cross-system communication service of each of the android systems, the binding unit 404 is specifically configured to:
acquiring a plurality of AIDL interface identifiers of Android interface definition languages, wherein the AIDL interface identifiers are in one-to-one correspondence with a plurality of Android systems;
obtaining a plurality of AIDL interface protocols according to the plurality of AIDL interface identifiers;
and calling a plurality of AIDL interfaces according to a plurality of AIDL interface protocols, and binding a plurality of application programs in each android system in the plurality of android systems with a cross-system communication service of each android system.
In some possible embodiments, the sending unit 405 is specifically configured to, in sending the target communication data from the application a to the application B through the socket communication network:
acquiring a first ID of an application program B and a second ID of an android system where the application program B is located;
if the android system where the application program B is located is determined to be the central control system according to the second ID, the target communication data is sent to a socket server from a socket client of the android system where the application program A is located;
And sending the target communication data to the application program corresponding to the first ID through the socket server.
In some possible embodiments, the sending unit 405 is specifically configured to, in sending the target communication data from the application a to the application B through the socket communication network:
acquiring a third ID of the application program B and a fourth ID of an android system where the application program B is located;
if the android system where the application program B is located is determined to be a non-central control system according to the fourth ID, sending target communication data from a socket client of the android system where the application program A is located to a socket server;
the target communication data is sent to a socket client of the android system corresponding to the fourth ID through a socket server;
and sending the target communication data to the application program corresponding to the third ID through the socket client of the android system corresponding to the fourth ID.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, where the electronic device 500 includes a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps:
Virtual multiple android systems are realized through a virtualization technology, and the multiple android systems correspond to the multiple system positions one by one;
starting a cross-system communication service of each android system in the plurality of android systems;
a socket communication network of a star topology structure is formed according to a plurality of android systems and a plurality of system positions;
binding a plurality of application programs in each android system with a cross-system communication service of each android system;
and when detecting that the application program A needs to send the target communication data to the application program B in the other android system, sending the target communication data from the application program A to the application program B through a socket communication network.
As can be seen, port usage conflicts are likely to occur compared to establishing a large number of wireless socket communication links, resulting in lower communication efficiency for application program cross-system communication; meanwhile, a large number of wireless socket communication links are established, so that the communication load of cross-system communication of application programs is increased, and in the embodiment of the application, a socket communication network with a star topology structure is formed based on a plurality of android systems and a plurality of system positions, and a plurality of application programs in each of the plurality of android systems are bound with the cross-system communication service of each of the android systems, so that target communication data can be sent from one application program in one of the android systems to one application program in the other android system through the socket communication network. Because communication data transmitted through a socket communication network cannot collide, communication efficiency of cross-system communication of application programs is facilitated; because any two application programs in different android systems can transmit communication data through a socket communication network, a large number of wireless socket communication links are prevented from being established, and the communication load of cross-system communication of the application programs is reduced.
In some possible embodiments, in terms of starting a cross-system communication service for each of a plurality of android systems, the program comprises instructions specifically for:
judging whether each android system in the plurality of android systems receives a startup broadcast or not;
if yes, switching the cross-system communication service of each android system in the plurality of android systems from an unactuated state to an actuated state in a serial mode;
or if so, switching the cross-system communication service of each android system in the plurality of android systems from the non-started state to the started state in a parallel mode.
In some possible embodiments, the number of the plurality of android systems is N, where N is an integer greater than 1, and in terms of a socket communication network that forms a star topology according to the plurality of android systems and the plurality of system locations, the program includes instructions specifically for performing the steps of:
if the android system C is determined to be a central control system according to the system position corresponding to the android system C, a socket server is created, and the android system C is one of N android systems;
if the android system D is determined to be a non-central control system according to the operating system corresponding to the android system D, a socket client is created, and the android system D is any one of the N android systems except the android system C;
And (3) connecting the (N-1) socket clients with a socket server to form a socket communication network with a star topology structure.
In some possible embodiments, in binding a plurality of applications within each of the plurality of android systems with a cross-system communication service of each of the android systems, the program comprises instructions specifically for:
acquiring a plurality of AIDL interface identifiers of Android interface definition languages, wherein the AIDL interface identifiers are in one-to-one correspondence with a plurality of Android systems;
obtaining a plurality of AIDL interface protocols according to the plurality of AIDL interface identifiers;
and calling a plurality of AIDL interfaces according to a plurality of AIDL interface protocols, and binding a plurality of application programs in each android system in the plurality of android systems with a cross-system communication service of each android system.
In some possible embodiments, in sending the target communication data from application a to application B over the socket communication network, the above-described program includes instructions specifically for performing the steps of:
acquiring a first ID of an application program B and a second ID of an android system where the application program B is located;
if the android system where the application program B is located is determined to be the central control system according to the second ID, the target communication data is sent to a socket server from a socket client of the android system where the application program A is located;
And sending the target communication data to the application program corresponding to the first ID through the socket server.
In some possible embodiments, in sending the target communication data from application a to application B over the socket communication network, the above-described program includes instructions specifically for performing the steps of:
acquiring a third ID of the application program B and a fourth ID of an android system where the application program B is located;
if the android system where the application program B is located is determined to be a non-central control system according to the fourth ID, sending target communication data from a socket client of the android system where the application program A is located to a socket server;
the target communication data is sent to a socket client of the android system corresponding to the fourth ID through a socket server;
and sending the target communication data to the application program corresponding to the third ID through the socket client of the android system corresponding to the fourth ID.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program that causes a computer to perform part or all of the steps of any one of the methods described in the method embodiments above, the computer including an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have varying points in specific implementation and application scope in light of the ideas of the present application, the above description should not be construed as limiting the present application.

Claims (12)

1. A method of cross-system communication of applications, comprising:
a plurality of android systems are virtualized through a virtualization technology, the android systems correspond to the system positions one by one, the number of the android systems is N, and the N is an integer larger than 1;
Starting a cross-system communication service of each android system in the plurality of android systems;
if the android system C is determined to be a central control system according to the system position corresponding to the android system C, a socket server is created, and the android system C is one of N android systems;
if the android system D is determined to be a non-central control system according to the operating system corresponding to the android system D, a socket client is created, and the android system D is any one of the N android systems except the android system C;
connecting (N-1) socket clients with the socket server to form a socket communication network with a star topology structure;
binding a plurality of application programs in each android system in the plurality of android systems with a cross-system communication service of each android system;
and when detecting that the application program A needs to send target communication data to the application program B in the other android system, sending the target communication data from the application program A to the application program B through the socket communication network.
2. The method of claim 1, wherein the enabling of the cross-system communication service for each of the plurality of android systems comprises:
Judging whether each android system in the plurality of android systems receives a startup broadcast or not;
if yes, switching the cross-system communication service of each android system in the plurality of android systems from an unactuated state to an actuated state in a serial mode;
or if so, switching the cross-system communication service of each android system in the plurality of android systems from an inactive state to an active state in a parallel manner.
3. The method of claim 1 or 2, wherein the binding the plurality of applications within each of the plurality of android systems with the cross-system communication service of each of the android systems comprises:
acquiring a plurality of AIDL interface identifiers of Android interface definition languages, wherein the AIDL interface identifiers are in one-to-one correspondence with the Android systems;
obtaining a plurality of AIDL interface protocols according to the plurality of AIDL interface identifiers;
and calling a plurality of AIDL interfaces according to the plurality of AIDL interface protocols, and binding a plurality of application programs in each android system in the plurality of android systems with the cross-system communication service of each android system.
4. A method according to claim 3, wherein said transmitting said target communication data from said application a to said application B via said socket communication network comprises:
Acquiring a first ID of the application program B and a second ID of an android system where the application program B is located;
if the android system where the application program B is located is determined to be a central control system according to the second ID, the target communication data are sent to the socket server from a socket client of the android system where the application program A is located;
and sending the target communication data to the application program corresponding to the first ID through the socket server.
5. A method according to claim 3, wherein said transmitting said target communication data from said application a to said application B via said socket communication network comprises:
acquiring a third ID of the application program B and a fourth ID of an android system where the application program B is located;
if the android system where the application program B is located is determined to be a non-central control system according to the fourth ID, the target communication data are sent to the socket server from a socket client of the android system where the application program A is located;
the target communication data is sent to a socket client of the android system corresponding to the fourth ID through the socket server;
and sending the target communication data to the application program corresponding to the third ID through the socket client of the android system corresponding to the fourth ID.
6. An application cross-system communication device, comprising:
the virtual unit is used for virtualizing a plurality of android systems through a virtualization technology, the android systems are in one-to-one correspondence with the system positions, the number of the android systems is N, and the N is an integer larger than 1;
the starting unit is used for starting the cross-system communication service of each android system in the plurality of android systems;
the system comprises a constitution unit, a control unit and a control unit, wherein the constitution unit is used for establishing a socket server if the android system C is determined to be a central control system according to the system position corresponding to the android system C, and the android system C is one of N android systems; if the android system D is determined to be a non-central control system according to the operating system corresponding to the android system D, a socket client is created, and the android system D is any one of the N android systems except the android system C; connecting (N-1) socket clients with the socket server to form a socket communication network with a star topology structure;
the binding unit is used for binding a plurality of application programs in each android system with the cross-system communication service of each android system;
And the sending unit is used for sending the target communication data from the application program A to the application program B through the socket communication network when the application program A needs to send the target communication data to the application program B in the other android system.
7. The apparatus according to claim 6, wherein in terms of starting a cross-system communication service of each of the plurality of android systems, the starting unit is specifically configured to:
judging whether each android system in the plurality of android systems receives a startup broadcast or not;
if yes, switching the cross-system communication service of each android system in the plurality of android systems from an unactuated state to an actuated state in a serial mode;
or if so, switching the cross-system communication service of each android system in the plurality of android systems from an inactive state to an active state in a parallel manner.
8. The apparatus according to claim 6 or 7, wherein in binding a plurality of applications within each of the plurality of android systems with a cross-system communication service of said each of the android systems, the binding unit is specifically configured to:
Acquiring a plurality of AIDL interface identifiers of Android interface definition languages, wherein the AIDL interface identifiers are in one-to-one correspondence with the Android systems;
obtaining a plurality of AIDL interface protocols according to the plurality of AIDL interface identifiers;
and calling a plurality of AIDL interfaces according to the plurality of AIDL interface protocols, and binding a plurality of application programs in each android system in the plurality of android systems with the cross-system communication service of each android system.
9. The apparatus according to claim 8, wherein the transmitting unit is specifically configured to, in transmitting the target communication data from the application a to the application B through the socket communication network:
acquiring a first ID of the application program B and a second ID of an android system where the application program B is located;
if the android system where the application program B is located is determined to be a central control system according to the second ID, the target communication data are sent to the socket server from a socket client of the android system where the application program A is located;
and sending the target communication data to the application program corresponding to the first ID through the socket server.
10. The apparatus according to claim 8, wherein the transmitting unit is specifically configured to, in transmitting the target communication data from the application a to the application B through the socket communication network:
Acquiring a third ID of the application program B and a fourth ID of an android system where the application program B is located;
if the android system where the application program B is located is determined to be a non-central control system according to the fourth ID, the target communication data are sent to the socket server from a socket client of the android system where the application program A is located;
the target communication data is sent to a socket client of the android system corresponding to the fourth ID through the socket server;
and sending the target communication data to the application program corresponding to the third ID through the socket client of the android system corresponding to the fourth ID.
11. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing part or all of the steps of the method of any of claims 1-5.
12. A computer readable storage medium for storing a computer program for execution by a processor to implement the method of any one of claims 1-5.
CN202010097809.6A 2020-02-17 2020-02-17 Application program cross-system communication method and related device Active CN111417216B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010097809.6A CN111417216B (en) 2020-02-17 2020-02-17 Application program cross-system communication method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010097809.6A CN111417216B (en) 2020-02-17 2020-02-17 Application program cross-system communication method and related device

Publications (2)

Publication Number Publication Date
CN111417216A CN111417216A (en) 2020-07-14
CN111417216B true CN111417216B (en) 2023-04-28

Family

ID=71494068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010097809.6A Active CN111417216B (en) 2020-02-17 2020-02-17 Application program cross-system communication method and related device

Country Status (1)

Country Link
CN (1) CN111417216B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887401B (en) * 2021-01-25 2021-09-17 宁波均联智行科技股份有限公司 Network access method based on multiple operating systems and vehicle machine system
CN113849199B (en) * 2021-12-01 2022-03-08 北京鲸鲮信息***技术有限公司 Method and device for cross-system installation of application, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012012723A2 (en) * 2010-07-23 2012-01-26 Saudi Arabian Oil Company Machines, computer program products, and computer-implemented methods providing an integrated node for data acquisition and control
CN107959687A (en) * 2017-12-13 2018-04-24 上海曼恒数字技术股份有限公司 A kind of data processing method, system, equipment and storage medium
CN109254905A (en) * 2017-07-13 2019-01-22 北京航空航天大学 Distributed parallel automatization test system based on workflow
CN110504752A (en) * 2018-05-17 2019-11-26 天津大学(青岛)海洋工程研究院有限公司 A kind of intelligent building flexible load Energy Saving Control architecture design method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105981338B (en) * 2013-12-08 2019-10-08 跨端口网路解决公司 For using I/O device link to establish the chain-circuit system of high- speed network communication and file transmission between host
CN105630615B (en) * 2015-12-28 2019-05-07 北京元心科技有限公司 cross-system application control method and intelligent terminal
CN106453673A (en) * 2016-08-31 2017-02-22 腾讯科技(深圳)有限公司 Data transmission method and related equipment
CN107291336A (en) * 2017-07-13 2017-10-24 北京元心科技有限公司 Method and device for starting application programs among multiple systems and terminal equipment
CN107341407B (en) * 2017-07-26 2021-03-23 惠州Tcl移动通信有限公司 Multi-android system implementation method based on terminal, storage medium and terminal
CN108011886A (en) * 2017-12-13 2018-05-08 上海曼恒数字技术股份有限公司 A kind of cooperative control method, system, equipment and storage medium
CN109474912B (en) * 2018-04-10 2022-02-18 西南大学 Vehicle-mounted gateway system and monitoring method and device of vehicle-mounted subsystem
CN110675872B (en) * 2019-09-27 2023-09-01 海信视像科技股份有限公司 Voice interaction method based on multi-system display equipment and multi-system display equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012012723A2 (en) * 2010-07-23 2012-01-26 Saudi Arabian Oil Company Machines, computer program products, and computer-implemented methods providing an integrated node for data acquisition and control
CN109254905A (en) * 2017-07-13 2019-01-22 北京航空航天大学 Distributed parallel automatization test system based on workflow
CN107959687A (en) * 2017-12-13 2018-04-24 上海曼恒数字技术股份有限公司 A kind of data processing method, system, equipment and storage medium
CN110504752A (en) * 2018-05-17 2019-11-26 天津大学(青岛)海洋工程研究院有限公司 A kind of intelligent building flexible load Energy Saving Control architecture design method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Towards Adapting Parallel Programs to Different Platforms: Identifying Interaction Patterns;Bogdan Florin Cornea;;《2013 IEEE 10th International Conference on High Performance Computing and Communications & 2013 IEEE International Conference on Embedded and Ubiquitous Computing》;全文 *
高可用性企业数据交换平台的设计与实现;王铮钧;《现代电子技术》;全文 *

Also Published As

Publication number Publication date
CN111417216A (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN111417216B (en) Application program cross-system communication method and related device
CN109672708B (en) Communication method, device and system
CN104812021B (en) A kind of method and device of AP access AC
CN104702665A (en) Information sharing method and information sharing device
CN107395473B (en) Networking method and device of household appliance and terminal equipment
JP2009141535A (en) Wireless lan system and its connection method
CN106101171B (en) Server connection method and device
CN110769033A (en) Intelligent networking method and system
EP3702915B1 (en) Data processing method and device, storage medium, processor, and system
CN110312266B (en) Method and device for realizing WIFI communication by multiple systems of terminal
CN104426816B (en) A kind of virtual machine communication method and device
CN104092661A (en) Serial port communication method and apparatus of virtual machines
US8984634B2 (en) Quarantine network system, server apparatus, and program
CN109219070B (en) Supplementary service configuration method and device and electronic equipment
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
CN107948002B (en) AP access control method and device
CN106803804B (en) Method and device for transmitting message
JP2017027166A (en) Operation management unit, operation management program, and information processing system
CN106330787B (en) Data packet transmission method, equipment and system
CN110119111B (en) Communication method and device, storage medium, and electronic device
CN114401218A (en) Bypass forwarding method and device for data message
CN106034344B (en) Data transmission method and device
CN113556373B (en) Proxy service method, device and system
KR102059372B1 (en) Method and device for enabling virtual docking in a wireless network

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 201821 room 208, building 4, No. 1411, Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai

Applicant after: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Address before: Room 208, building 4, 1411 Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai, 201800

Applicant before: SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 3701, No. 866 East Changzhi Road, Hongkou District, Shanghai, 200000

Patentee after: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Country or region after: China

Address before: 201821 room 208, building 4, No. 1411, Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai

Patentee before: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Country or region before: China