Communication construction method and device for system and interactive application, equipment and storage medium

Through the warehouse manager responding to the scheduling signal and dependent data link issuance interface, the automated communication link construction between the DMS system and interactive applications is realized, solving the problems of cumbersome communication construction and high error rate in the existing technology, and improving communication Fast response and stability of the link.

CN119201497AActive Publication Date: 2024-12-27CHENGDU CELIS TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411341901.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-27
Estimated Expiration
2044-09-25

AI Technical Summary

Technical Problem

The communication construction process between the existing DMS system and interactive applications is complicated, and the error rate occurs when updating the binder interface is high, and the jar package needs to be manually updated, resulting in the entire process being complex and error-prone.

Method used

The warehouse manager responds to the scheduling signal, determines the target preset method library corresponding to the version number, and issues a specified connection interface by relying on the data link, so that the interactive application and the system can establish cross-process communication links, realizing automated communication link construction .

Benefits of technology

The communication link between the DMS system and interactive applications can be quickly built without manual intervention, reducing the error rate and complexity, ensuring the automation of the communication link and the rapid response of version number updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201497A_ABST
    Figure CN119201497A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and discloses a system and interactive application communication construction method, device and equipment and a storage medium, the method is applied to a warehouse manager, and the method comprises the following steps: in response to a scheduling signal of an interactive application, determining a target preset method library corresponding to a version number specified by the scheduling signal; issuing a specified connection interface in the target preset method library to the interactive application through the dependent data link, so that the interactive application establishes a communication link with the system according to the specified connection interface to realize cross-process communication between the system and the interactive application; wherein the specified connection interface is an interface obtained by packaging a binder connection code between the system and the interactive application, the dependent data link is constructed based on a dependent code in a specified configuration file, and the specified configuration file comprises a version number corresponding to the target preset method library. According to the invention, the establishment of the communication link can be automatically completed without manual intervention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, equipment and storage medium for establishing communication between a system and an interactive application. Background Art

[0002] At present, the signal transmission method of the system depends on the interface. In particular, the DMS (Driver Monitoring System) is usually encapsulated in a binder through a jar package, and then the DMS and the DMS interactive application are integrated into the jar package, and then an interactive interface is built on each end for communication.

[0003] If the binder interface provided by DMS is updated every time, the corresponding interactive application also needs to update the jar package, which is generally updated manually, resulting in a high error rate and making the entire communication construction process very cumbersome. Summary of the invention

[0004] In view of the above problems, the present application provides a method, apparatus, device and storage medium for establishing communication between a system and an interactive application, which are used to quickly establish a communication link between a DMS system and its interactive application.

[0005] According to one aspect of the present application, a method for establishing communication between a system and an interactive application is provided, which is applied to a warehouse manager, and the method for establishing communication includes: in response to a scheduling signal of the interactive application, determining a target preset method library corresponding to a version number specified by the scheduling signal; sending a specified connection interface in the target preset method library to the interactive application through a dependency data link, so that the interactive application establishes a communication link with the system according to the specified connection interface, so as to realize cross-process communication between the system and the interactive application; wherein the specified connection interface is an interface encapsulated based on a binder connection code between the system and the interactive application, and the dependency data link is constructed based on a dependency code in a specified configuration file, and the specified configuration file includes a version number corresponding to the target preset method library.

[0006] In an optional manner, the dependent data link includes a first dependent data link and a second dependent data link, the first dependent data link is the link between the warehouse manager and the system, and the second dependent data link is the link between the warehouse manager and the interactive application; the communication construction method also includes: according to the dependent code set in the specified configuration file, constructing a dependent data link with the interactive application and the system, so that the system calls the target preset method library through the first dependent data link, and enables the interactive application to obtain the specified connection interface through the second dependent data link; wherein, the version number corresponding to the target preset method library is the same as the version number in the specified configuration file.

[0007] In an optional manner, the communication construction method also includes: encapsulating the connection code between the binder-client and the binder-server as a connection interface; defining an AIDL interaction interface for a specified signal, and exposing the AIDL interaction interface of the binder-client and the AIDL interaction interface of the binder-server.

[0008] In an optional manner, the communication construction method also includes: in response to an implementation signal of the system, sending the AIDL interaction interface of the binder-server to the system, so that the system acts as the server of the binder communication, so that the system implements the Stub object corresponding to the AIDL interaction interface.

[0009] In an optional manner, the communication construction method also includes: in response to an access signal of the interactive application, sending the AIDL interactive interface of the binder-client to the interactive application, so that the interactive application acts as a client of the binder communication, so that the interactive application obtains the specified signal.

[0010] In an optional manner, the communication construction method also includes: establishing a relationship with a preset method library, and storing each preset method library as a library file; wherein each preset method library includes the connection interface, the binder-client AIDL interaction interface, and the binder-server AIDL interaction interface; establishing a dependency relationship with the corresponding library file according to the dependency code in the configuration file, so as to call the corresponding library file based on the dependency code.

[0011] In an optional manner, determining the target preset method library corresponding to the version number specified by the scheduling signal further includes: matching the version number specified by the scheduling signal with the preset version number; wherein the specified version number is derived from a parameter in the current configuration file; if the match is successful, then using the preset method library corresponding to the successfully matched preset version number as the target preset method library.

[0012] According to another aspect of the present application, a communication construction device for a system and an interactive application is provided, which is applied to a warehouse manager, and the communication construction device includes: a scheduling response module, which is used to respond to a scheduling signal of the interactive application and determine a target preset method library corresponding to the version number specified by the scheduling signal; a communication construction module, which is used to send a specified connection interface in the target preset method library to the interactive application through a dependent data link, so that the interactive application establishes a communication link with the system according to the specified connection interface, so as to realize cross-process communication between the system and the interactive application; wherein the specified connection interface is an interface encapsulated based on the binder connection code between the system and the interactive application, and the dependent data link is constructed based on the dependent code in a specified configuration file, and the specified configuration file includes the version number corresponding to the target preset method library.

[0013] According to one aspect of the present application, an electronic device is provided, including: a controller; and a memory for storing one or more programs, which, when the one or more programs are executed by the controller, execute the above-mentioned communication establishment method.

[0014] According to one aspect of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned communication establishment method.

[0015] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned communication establishment method.

[0016] The warehouse manager of this application sends the specified connection interface corresponding to the specified version number to the interactive application, so that the interactive application can quickly build a communication link with the system according to the specified connection interface to achieve cross-process communication between the two. The entire process does not require human intervention and can automatically complete the construction of the communication link. At the same time, this application can accurately determine the target preset method library according to the version number, and even if the version number is updated, the corresponding target preset method library can be quickly determined.

[0017] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 It is a flowchart of a method for establishing communication between a system and an interactive application shown in an exemplary embodiment of the present application.

[0020] Figure 2 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for establishing communication between a system and an interactive application.

[0021] Figure 3 It is a data link dependent entity diagram shown in an exemplary embodiment of the present application.

[0022] Figure 4 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for establishing communication between a system and an interactive application.

[0023] Figure 5 It is a structural diagram of a communication construction device between a system and an interactive application shown in an exemplary embodiment of the present application.

[0024] Figure 6 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0025] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0026] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0027] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0028] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0029] The existing DMS (Driver Monitoring System) usually encapsulates the binder through a jar package, then integrates the DMS and the DMS interactive application into the jar package, and then builds interactive interfaces at both ends for communication.

[0030] If the binder interface provided by DMS is updated every time, the corresponding interactive application also needs to update the jar package, which is generally updated manually, resulting in a high error rate. At the same time, the interactive application requires corresponding interactive code, which requires manual adjustment, making the entire communication construction process very cumbersome.

[0031] To this end, one aspect of the present application provides a method for establishing communication between a system and an interactive application. Figure 1 , Figure 1 This is a flow chart of a method for establishing communication between a system and an interactive application, shown in an exemplary embodiment of the present application. The communication establishment method includes at least S110 to S120, and is applied to a warehouse manager, and is described in detail as follows:

[0032] S110: In response to a scheduling signal of the interactive application, determining a target preset method library corresponding to a version number specified by the scheduling signal.

[0033] The system of this embodiment is a DMS system, and the interactive application is a DMS interactive application, that is, an application program that can perform cross-process communication with the DMS system.

[0034] The warehouse manager responds to the dispatch signal and determines the version number specified by the dispatch signal, and determines the target preset method library through the version number. Exemplarily, the version number specified by the dispatch signal is matched with the preset version number; wherein the specified version number is derived from the parameter in the current configuration file; if the match is successful, the preset method library corresponding to the preset version number that successfully matches is used as the target preset method library.

[0035] Among them, different preset version numbers correspond to different preset method libraries. This embodiment can quickly determine the target preset method library corresponding to the DMS interactive application through the version number, so that the DMS interactive application calls the methods, interfaces and other parameters in the target preset method library.

[0036] S120: Send the specified connection interface in the target preset method library to the interactive application through the dependent data link, so that the interactive application establishes a communication link with the system according to the specified connection interface, so as to realize cross-process communication between the system and the interactive application; wherein, the specified connection interface is an interface encapsulated based on the binder connection code between the system and the interactive application, the dependent data link is constructed based on the dependent code in the specified configuration file, and the specified configuration file includes the version number corresponding to the target preset method library.

[0037] From the code level, binder is a class; from the perspective of IPC (inter-process communication), binder is a way of cross-process communication in Android; from the perspective of the application, binder is the medium between the client and the server.

[0038] The designated connection interface is the key interface for building the communication link between the DMS system and the DMS interactive application. Based on the designated connection interface, a binder communication mechanism can be built between the DMS system and the DMS interactive application.

[0039] This embodiment uses the encapsulated designated connection interface to build a binder communication mechanism between the DMS system and the DMS interactive application. The binder communication mechanism can be quickly built without manually writing code in the DMS interactive application, thereby speeding up the process of building a communication link between the two.

[0040] The dependent data link is a pre-set link. The dependent data link in S120 specifically refers to the data link between the warehouse manager and the DMS interactive application. The DMS interactive application obtains the specified connection interface through the dependent data link to build a communication link between it and the DMS system, thereby realizing cross-process communication between them.

[0041] The warehouse manager of this embodiment sends the specified connection interface corresponding to the specified version number to the interactive application, so that the interactive application can quickly build a communication link with the system according to the specified connection interface to achieve cross-process communication between the two. The entire process does not require manual intervention and can automatically complete the establishment of the communication link. At the same time, the application can accurately determine the target preset method library according to the version number, and even if the version number is updated, the corresponding target preset method library can be quickly determined.

[0042] In another exemplary embodiment of the present application, how to construct a dependent data link is described in detail. Figure 2 , Figure 2 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for establishing communication between a system and an interactive application. The communication establishment method is as follows Figure 1 On the basis of S110 to S120 shown, S210 is also included; wherein the dependent data link includes a first dependent data link and a second dependent data link, the first dependent data link is a link between the warehouse manager and the system, and the second dependent data link is a link between the warehouse manager and the interactive application, which are described in detail as follows:

[0043] S210: According to the dependency code set in the specified configuration file, construct dependency data links with the interactive application and the system, so that the system calls the target preset method library through the first dependency data link, and the interactive application obtains the specified connection interface through the second dependency data link; wherein the version number corresponding to the target preset method library is the same as the version number in the specified configuration file.

[0044] Exemplarily, the warehouse manager in this embodiment is the Nexus warehouse manager. In order to make DMS and DMS interactive applications depend on the Nexus warehouse manager, it is only necessary to add a line of code that depends on the method library in the build.gradle file of the code to optimize the tedious operation of manually copying the jar.

[0045] Among them, the Build.gradle file is a configuration file required by all Android programs. This configuration file contains which libraries need to be referenced for program compilation and also configures some necessary parameters for compiling code.

[0046] Code that relies on the default method library: Add api "com.seres.common-SNAPSHOT:dmsapi:1.0.3.16" in the Build.gradle file to successfully obtain the default DMS method library in the Nexus server (that is, the default method library of this application)

[0047] In some embodiments, the DMS system and the DMS interactive application are different from the dependent data links between the warehouse manager, see Figure 3 , Figure 3 This is a dependent data link entity diagram shown in an exemplary embodiment of the present application. Among them, the first dependent data link is the dependent data link between the DMS system and the warehouse manager. The DMS system calls the target preset method library through the first dependent data link to implement the Stub object corresponding to the corresponding interactive interface (AIDL interactive interface); the second dependent data link is the dependent data link between the DMS interactive application and the warehouse manager, so that the DMS interactive application can quickly obtain the specified connection interface.

[0048] In another exemplary embodiment of the present application, how to construct a dependent data link is described in detail. Figure 4 , Figure 4 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for establishing communication between a system and an interactive application. The communication establishment method is as follows Figure 1 Based on the S110 to S120 shown, S410 to S420 are also included, which are described in detail as follows:

[0049] S410: Encapsulate the connection code between the binder-client and the binder-server as a connection interface.

[0050] This embodiment encapsulates the binder link, for example, encapsulates the binder connection code of the client (i.e., the DMS interactive application as the client) and the server (i.e., the DMS system as the server) into a connet() interface. The client can simply call the connect interface to realize the connection from the client to the server without writing a set of cumbersome binder link codes, thereby reducing the access cost of the interactive application.

[0051] S420: Define an AIDL interaction interface for a specified signal, and expose the AIDL interaction interface of the binder-client and the AIDL interaction interface of the binder-server.

[0052] The preset method library contains the AIDL interaction interface between the DMS system and the DMS interactive application, and the message communication between the DMS system and the DMS interactive application is realized through the AIDL interaction interface. The Binder-server AIDL interaction interface is exposed so that when the DMS system references the preset method library, the Stub object corresponding to AIDL is realized; the binder-client AIDL interaction interface is exposed so that the DMS interactive application can directly call the AIDL interface after integrating the method library to obtain the corresponding information.

[0053] In some embodiments, Figure 4 The communication construction method shown in the figure also includes at least S430 to illustrate the construction process of the binder communication mechanism on the system side, which is described in detail as follows:

[0054] S430: In response to the implementation signal of the system, the binder-server AIDL interaction interface is sent to the system, so that the system acts as the server of the binder communication, so that the system implements the stub object corresponding to the AIDL interaction interface.

[0055] In this embodiment, the warehouse manager can also respond to the implementation requirements of the DMS system, send the AIDL interactive interface of the binder-server to the DMS system, so that the DMS system implements the binder-service code and transmits the specified signal through callback. That is, the DMS system acts as the server of the binde communication, so that it implements the stub object corresponding to the AIDL interactive interface. The specified signal includes but is not limited to fatigue, distraction, dangerous driving and other signals.

[0056] In some embodiments, Figure 4 The communication construction method shown in the figure also includes at least S440 to illustrate the construction process of the binder communication mechanism of the interactive application end, which is described in detail as follows:

[0057] S440: In response to the access signal of the interactive application, the AIDL interactive interface of the binder-client is sent to the interactive application, so that the interactive application serves as a client of the binder communication, so that the interactive application obtains the designated signal.

[0058] The access signal represents that the DMS interactive application accesses the warehouse manager. In this embodiment, the warehouse manager responds to the access signal of the interactive application and sends the AIDL interactive interface of the binder-client. The DMS interactive application acts as the client of the binde communication, so that it can quickly obtain the specified signal through the AIDL interface, such as fatigue, distraction, dangerous driving and other signals.

[0059] In some embodiments, Figure 4 The communication construction method shown includes at least S450 to S460 to clarify the source of the preset method in the warehouse server, which is described in detail as follows:

[0060] S450: Establishing a relationship with a preset method library, and storing each preset method library as a library file; wherein each preset method library includes a connection interface, a binder-client AIDL interaction interface, and a binder-server AIDL interaction interface.

[0061] This embodiment is to simplify the communication process between the DMS system and the DMS interactive application and reduce the access cost of the interactive application. Figure 3 The preset method library shown presets the preset method in the preset method library, and deploys each preset method library as a library file to the warehouse manager, and manages each library file by version number.

[0062] S460: Establish a dependency relationship between the dependency code and the corresponding library file according to the dependency code in the configuration file, so as to call the corresponding library file based on the dependency code.

[0063] Exemplarily, the configuration file is a Build.gradle file, which is a configuration file required by all Android programs. This configuration file contains which libraries need to be referenced for program compilation and also configures some necessary parameters for compiling codes.

[0064] Add a line of code that depends on the method library in the build.gradle file of the code to optimize the tedious operation of manually copying the jar. By modifying the version number of the method library in the build.gradle file, the updated method library can be correctly found to avoid jar package replacement errors. The original purpose of replacing the jar package is to find the correct method library.

[0065] Sample code that relies on the preset method library: Add api "com.seres.common-SNAPSHOT:dmsapi:1.0.3.16" in the Build.gradle file to successfully get the corresponding library file in the warehouse manager, that is, the corresponding preset method library.

[0066] Another aspect of the present application also provides a communication construction device for a system and an interactive application, such as Figure 5 As shown, Figure 5 It is a structural diagram of a communication construction device for a system and an interactive application shown in an exemplary embodiment of the present application. The communication construction device 500 is applied to a warehouse manager, including: a scheduling response module 510, which is used to respond to the scheduling signal of the interactive application and determine the target preset method library corresponding to the version number specified by the scheduling signal; a communication construction 530, which is used to send the specified connection interface in the target preset method library to the interactive application through a dependent data link, so that the interactive application establishes a communication link with the system according to the specified connection interface, so as to realize cross-process communication between the system and the interactive application; wherein, the specified connection interface is an interface encapsulated based on the binder connection code between the system and the interactive application, and the dependent data link is constructed based on the dependent code in the specified configuration file, and the specified configuration file includes the version number corresponding to the target preset method library.

[0067] In another exemplary embodiment, the dependency data link includes a first dependency data link and a second dependency data link, the first dependency data link is a link between the warehouse manager and the system, and the second dependency data link is a link between the warehouse manager and the interactive application; the communication construction device 500 also includes: a dependency data link construction module, which is used to construct dependency data links with the interactive application and the system according to the dependency code set in the specified configuration file, so that the system calls the target preset method library through the first dependency data link, and enables the interactive application to obtain the specified connection interface through the second dependency data link; wherein, the version number corresponding to the target preset method library is the same as the version number in the specified configuration file.

[0068] In another exemplary embodiment, the communication construction device 500 also includes: an encapsulation module, which is used to encapsulate the connection code between the binder-client and the binder-server into a connection interface; a definition exposure module, which is used to define the AIDL interaction interface of the specified signal and expose the AIDL interaction interface of the binder-client and the AIDL interaction interface of the binder-server.

[0069] In another exemplary embodiment, the communication construction device 500 also includes: an implementation response module, which is used to respond to the system's implementation signal and send the binder-server AIDL interaction interface to the system, so that the system acts as the server of the binder communication, so that the system implements the stub object corresponding to the AIDL interaction interface.

[0070] In another exemplary embodiment, the communication construction device 500 also includes: an access response module, which is used to respond to the access signal of the interactive application and send the AIDL interactive interface of the binder-client to the interactive application, so that the interactive application acts as a client of the binder communication, so that the interactive application can obtain the specified signal.

[0071] In another exemplary embodiment, the communication construction device 500 also includes: a relationship construction module, which is used to establish a relationship with a preset method library and store each preset method library as a library file; wherein each preset method library includes a connection interface, a binder-client AIDL interaction interface, and a binder-server AIDL interaction interface; a dependency relationship establishment module, which is used to establish a dependency relationship with a corresponding library file according to a dependency code in a configuration file, so as to call the corresponding library file based on the dependency code.

[0072] In another exemplary embodiment, the scheduling response module 510 further includes: a matching module, used to match the version number specified by the scheduling signal with the preset version number; wherein the specified version number is derived from the parameters in the current configuration file; and a matching success module, used to use the preset method library corresponding to the successfully matched preset version number as the target preset method library if the match is successful.

[0073] The warehouse manager of this application sends the specified connection interface corresponding to the specified version number to the interactive application, so that the interactive application can quickly build a communication link with the system according to the specified connection interface to achieve cross-process communication between the two. The entire process does not require human intervention and can automatically complete the construction of the communication link. At the same time, this application can accurately determine the target preset method library according to the version number, and even if the version number is updated, the corresponding target preset method library can be quickly determined.

[0074] It should be noted that the communication establishment device provided in the above embodiment and the communication establishment method provided in the above embodiment belong to the same concept, and the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here.

[0075] Another aspect of the present application provides an electronic device, including: a controller; a memory for storing one or more programs, when the one or more programs are executed by the controller, to execute the above-mentioned communication construction method.

[0076] See also Figure 6 , Figure 6 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.

[0077] It should be noted that Figure 6 The computer system 600 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0078] like Figure 6As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603, such as executing the method in the above embodiment. In the RAM 603, various programs and data required for system operation are also stored. The CPU 601, ROM 602 and RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0079] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read therefrom is installed into the storage section 608 as needed.

[0080] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 609, and / or installed from a removable medium 611. When the computer program is executed by a central processing unit (CPU) 601, various functions defined in the system of the present application are executed.

[0081] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0082] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0083] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0084] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the communication construction method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0085] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the communication construction method provided in each of the above embodiments.

[0086] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0087] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0088] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A method for establishing communication between a system and an interactive application, characterized in that: Applied to a warehouse manager, the communication construction method includes: In response to a scheduling signal of the interactive application, determining a target preset method library corresponding to a version number specified by the scheduling signal; The specified connection interface in the target preset method library is sent to the interactive application through a dependent data link, so that the interactive application establishes a communication link with the system according to the specified connection interface, so as to realize cross-process communication between the system and the interactive application; wherein the specified connection interface is an interface encapsulated based on the binder connection code between the system and the interactive application, the dependent data link is constructed based on the dependent code in a specified configuration file, and the specified configuration file includes the version number corresponding to the target preset method library.

2. The communication establishment method according to claim 1, characterized in that: The dependent data link comprises a first dependent data link and a second dependent data link, the first dependent data link being a link between the warehouse manager and the system, and the second dependent data link being a link between the warehouse manager and the interactive application; The communication construction method also includes: According to the dependency code set in the specified configuration file, a dependency data link with the interactive application and the system is constructed, so that the system calls the target preset method library through the first dependency data link, and the interactive application obtains the specified connection interface through the second dependency data link; wherein the version number corresponding to the target preset method library is the same as the version number in the specified configuration file.

3. The communication establishment method according to claim 1, characterized in that: The communication construction method also includes: Encapsulate the connection code between the binder-client and the binder-server as a connection interface; Define the AIDL interaction interface of the specified signal, and expose the AIDL interaction interface of the binder-client and the AIDL interaction interface of the binder-server.

4. The communication establishment method according to claim 3, characterized in that: The communication construction method also includes: In response to the implementation signal of the system, the AIDL interaction interface of the binder-server is sent to the system, so that the system acts as the server of the binder communication, so that the system implements the Stub object corresponding to the AIDL interaction interface.

5. The communication establishment method according to claim 3, characterized in that: The communication construction method also includes: In response to the access signal of the interactive application, the AIDL interactive interface of the binder-client is sent to the interactive application, so that the interactive application serves as a client of the binder communication, so that the interactive application obtains the designated signal.

6. The communication establishment method according to claim 3, characterized in that: The communication construction method also includes: Establishing a relationship with a preset method library, and storing each preset method library as a library file; wherein each preset method library includes the connection interface, the binder-client AIDL interaction interface, and the binder-server AIDL interaction interface; A dependency relationship is established between the dependency code in the configuration file and the corresponding library file, so as to call the corresponding library file based on the dependency code.

7. The communication establishment method according to any one of claims 1 to 6, characterized in that: The step of determining the target preset method library corresponding to the version number specified by the scheduling signal further includes: Matching the version number specified by the scheduling signal with a preset version number; wherein the specified version number is derived from a parameter in the current configuration file; If the match is successful, the preset method library corresponding to the preset version number that is successfully matched is used as the target preset method library.

8. A communication construction device for a system and an interactive application, characterized in that: Applied to a warehouse manager, the communication construction device comprises: A scheduling response module, configured to respond to a scheduling signal of an interactive application and determine a target preset method library corresponding to a version number specified by the scheduling signal; A communication construction module is used to send the specified connection interface in the target preset method library to the interactive application through a dependent data link, so that the interactive application establishes a communication link with the system according to the specified connection interface, so as to realize cross-process communication between the system and the interactive application; wherein the specified connection interface is an interface encapsulated based on the binder connection code between the system and the interactive application, the dependent data link is constructed based on the dependent code in a specified configuration file, and the specified configuration file includes a version number corresponding to the target preset method library.

9. An electronic device, characterized in that: include: Controller; A memory for storing one or more programs, which, when executed by a controller, enables the controller to implement the communication establishment method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the communication establishment method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Cross-process communication interface routing method, device and system

    CN110377438A

  • Integration and tracing system and method for intelligent driving software

    CN111831266A

  • Rapid cross-process method and system based on in-vehicle infotainment system

    CN115145741A

  • Terminal apparatus, and control method for calling application program interface therefor

    WO2021190469A1