CN114443123A - Cross-platform implementation method and device of bracket electric control system, electronic equipment and storage medium - Google Patents

Cross-platform implementation method and device of bracket electric control system, electronic equipment and storage medium Download PDF

Info

Publication number
CN114443123A
CN114443123A CN202210112673.0A CN202210112673A CN114443123A CN 114443123 A CN114443123 A CN 114443123A CN 202210112673 A CN202210112673 A CN 202210112673A CN 114443123 A CN114443123 A CN 114443123A
Authority
CN
China
Prior art keywords
platform
api
file
electric control
control function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210112673.0A
Other languages
Chinese (zh)
Inventor
姚钰鹏
王建兵
冯银辉
刘清
林恩强
佟国勋
李殿鹏
张境麟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Meike Tianma Automation Technology Co Ltd
Beijing Tianma Intelligent Control Technology Co Ltd
Original Assignee
Beijing Meike Tianma Automation Technology Co Ltd
Beijing Tianma Intelligent Control Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Meike Tianma Automation Technology Co Ltd, Beijing Tianma Intelligent Control Technology Co Ltd filed Critical Beijing Meike Tianma Automation Technology Co Ltd
Priority to CN202210112673.0A priority Critical patent/CN114443123A/en
Publication of CN114443123A publication Critical patent/CN114443123A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a cross-platform implementation method and device of a bracket electric control system, electronic equipment and a storage medium, and relates to the field of electro-hydraulic control. The method comprises the following steps: determining API interface files, wherein each API interface in the API interface files is supported by at least one library file; the at least one library file corresponds to the at least one platform one by one and is used for carrying out different realization; determining a configuration file, wherein the configuration file corresponds to at least one platform and is used for selecting an API (application programming interface) and selecting a library file for supporting the API according to at least one bracket electric control function to be realized; and creating a cross-platform bracket electric control system according to the API interface file, the configuration file and at least one bracket electric control function to be realized. The configuration files and the API files in the created support electric control system can be suitable for various platforms, so that only one version of support electric control system can be developed for various platforms, development cost is low, and maintenance cost is low.

Description

Cross-platform implementation method and device of bracket electric control system, electronic equipment and storage medium
Technical Field
The application relates to the field of electro-hydraulic control, in particular to a cross-platform implementation method and device of a bracket electric control system, electronic equipment and a storage medium.
Background
The existing bracket electric control system is designed based on a specific platform, and the designed bracket electric control system can only adopt an integrated development environment supported by the corresponding platform to carry out compiling processing so as to generate an executable file. Therefore, different platforms need to design different versions of the rack electrical control system. The system development cost is high, and the maintenance cost is high.
Disclosure of Invention
The application provides a cross-platform implementation method and device of a support electric control system, electronic equipment and a storage medium, which are used for at least solving the problems of high development cost and high maintenance cost of the support electric control system in the related technology.
The technical scheme of the application is as follows:
determining API interface files, wherein each API interface in the API interface files is supported by at least one library file; the at least one library file corresponds to the at least one platform one by one and is used for carrying out different realization; determining a configuration file, wherein the configuration file corresponds to at least one platform and is used for selecting an API (application programming interface) and selecting a library file for supporting the API according to at least one bracket electric control function to be realized; and creating a cross-platform bracket electric control system according to the API interface file, the configuration file and at least one bracket electric control function to be realized.
As a first possible scenario of the embodiment of the present application, the determining a configuration file includes: for each platform and for each bracket electric control function, determining an API (application programming interface) corresponding to the bracket electric control function in the API file and a library file supporting the API in an integrated development environment supported by the platform; and determining the configuration file according to at least one API (application programming interface) corresponding to the bracket electric control function and library files supporting the API in an integrated development environment supported by at least one platform.
As a second possible case of the embodiment of the present application, before determining, for each platform, for each rack electronic control function, an API interface corresponding to the rack electronic control function in the API interface file, and a library file supporting the API interface in an integrated development environment supported by the platform, the method includes: determining a first support electric control function related to a platform and a second support electric control function unrelated to the platform in at least one support electric control function to be realized; the determining, for each platform and for each rack electronic control function, an API interface in the API interface file corresponding to the rack electronic control function and a library file supporting the API interface in an integrated development environment supported by the platform includes: for each platform, for each first support electrical control function, determining an API interface corresponding to the first support electrical control function in the API interface file, and a library file supporting the API interface in an integrated development environment supported in the platform.
As a third possible case of the embodiment of the present application, after creating a cross-platform rack electronic control system according to the API interface file, the configuration file, and at least one rack electronic control function to be implemented, the method further includes: determining a target platform to be loaded with the bracket electric control system; and selecting an API (application programming interface) according to the library file in the integrated development environment supported by the target platform and the configuration file, compiling the bracket electric control system, and generating a bracket electric control system executable file of the target platform.
As a fourth possible case of the embodiment of the present application, the type of the AI interface in the API interface file includes at least one of the following types: memory management, task management, semaphores, message queues, clocks, keyboards, sensing, display, file systems, communications.
According to a second aspect of the embodiments of the present application, there is provided a device for implementing a rack electronic control system across platforms, including: a first determining module, configured to determine API interface files, where each API interface in the API interface files is supported by at least one library file; the at least one library file corresponds to the at least one platform one by one and is used for carrying out different realization; the second determining module is used for determining a configuration file, wherein the configuration file corresponds to at least one platform and is used for selecting an API (application programming interface) and selecting a library file for supporting the API according to at least one bracket electronic control function to be realized; and the creating module is used for creating a cross-platform bracket electric control system according to the API interface file, the configuration file and at least one bracket electric control function to be realized.
As a first possible case of the embodiment of the present application, the second determining module includes: a first determination unit and a second determination unit; the first determining unit is used for determining an API (application programming interface) corresponding to the support electronic control function in the API file and a library file supporting the API in an integrated development environment supported by the platform aiming at each support electronic control function aiming at each platform; and the second determining unit is used for determining the configuration file according to at least one API (application programming interface) corresponding to the support electronic control function and the library file supporting the API in the integrated development environment supported by the at least one platform.
As a second possible case of the embodiment of the present application, the second determining module further includes: the third determining unit is used for determining a first support electric control function related to the platform and a second support electric control function unrelated to the platform in at least one support electric control function to be realized; correspondingly, the first determining unit is specifically configured to determine, for each platform and for each first rack electrical control function, an API interface corresponding to the first rack electrical control function in the API interface file, and a library file supporting the API interface in an integrated development environment supported by the platform.
As a third possible case of the embodiment of the present application, the apparatus further includes: a third determining module and a compiling processing module; the third determining module is used for determining a target platform to be loaded with the bracket electric control system; and the compiling processing module is used for selecting an API (application programming interface) according to the library file in the integrated development environment supported by the target platform and the configuration file, compiling the support electric control system and generating a support electric control system executable file of the target platform.
As a fourth possible case of the embodiment of the present application, the type of the AI interface in the API interface file includes at least one of the following types: memory management, task management, semaphores, message queues, clocks, keyboards, sensing, display, file systems, communications.
According to a third aspect of embodiments of the present application, there is provided an electronic apparatus, including: a processor; a memory for storing the processor-executable instructions; the processor is configured to execute the instructions to implement the method for implementing the cross-platform electronic control system of the rack provided in the embodiment of the first aspect of the present application.
According to a fourth aspect of the embodiments of the present application, there is provided a computer-readable storage medium, where instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method for implementing a rack electronic control system across platforms, which is provided in the embodiments of the first aspect of the present application.
According to a fifth aspect of the embodiments of the present application, there is provided a computer program product, which, when executed by a processor of an electronic device, enables the electronic device to execute the method for implementing a rack electronic control system across platforms, which is provided in the embodiments of the first aspect of the present application.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
determining an API interface file, wherein each API interface in the API interface file is supported by at least one library file; the at least one library file corresponds to the at least one platform one by one and is used for carrying out different realization; determining a configuration file, wherein the configuration file corresponds to at least one platform and is used for selecting an API (application programming interface) and selecting a library file for supporting the API according to at least one bracket electric control function to be realized; and creating a cross-platform bracket electric control system according to the API interface file, the configuration file and at least one bracket electric control function to be realized. The configuration files and the API files in the created support electric control system can be suitable for various platforms, so that only one version of support electric control system can be developed for various platforms, development cost is low, and maintenance cost is low.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application and are not to be construed as limiting the application.
FIG. 1 is a flow diagram illustrating a method for cross-platform implementation of a rack electrical control system in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating another method for cross-platform implementation of a rack electrical control system in accordance with an exemplary embodiment;
FIG. 3 is a schematic design diagram of the cradle electronic control system;
FIG. 4 is a block diagram of an apparatus for cross-platform implementation of a cradle electronic control system in accordance with an exemplary embodiment;
fig. 5 is a block diagram illustrating a functional electronic device for a cradle electronic control system cross-platform according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present application better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
The existing bracket electric control system is designed based on a specific platform, and the designed bracket electric control system can only adopt an integrated development environment supported by the corresponding platform to carry out compiling processing so as to generate an executable file. Therefore, different platforms need to design different versions of the rack electrical control system. The system development cost is high, and the maintenance cost is high.
The application mainly aims at the problems of high development cost and high maintenance cost of a bracket electric control system in the related technology, and provides a cross-platform implementation method of the bracket electric control system.
The method for realizing the cross-platform bracket electric control system comprises the steps of determining API interface files, wherein each API interface in the API interface files is supported by at least one library file; the at least one library file corresponds to the at least one platform one by one and is used for carrying out different realization; determining a configuration file, wherein the configuration file corresponds to at least one platform and is used for selecting an API (application programming interface) and selecting a library file for supporting the API according to at least one bracket electric control function to be realized; and creating a cross-platform bracket electric control system according to the API interface file, the configuration file and at least one bracket electric control function to be realized. The configuration files and the API files in the created support electric control system can be suitable for various platforms, so that only one version of support electric control system can be developed for various platforms, development cost is low, and maintenance cost is low.
The cross-platform implementation method of the rack electric control system provided by the embodiment of the application is described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a cross-platform implementation method of a cradle electronic control system according to an exemplary embodiment.
It should be noted that the execution main body of the implementation method of the cross-platform of the rack electronic control system in the embodiment of the present application may be an implementation device of the cross-platform of the rack electronic control system, and the implementation device of the cross-platform of the rack electronic control system may be configured in the electronic device to implement a function of the cross-platform of the rack electronic control system on the electronic device.
The electronic device may be any stationary or mobile computing device capable of performing data processing, for example, a mobile computing device such as a notebook computer and a wearable device, a stationary computing device such as a desktop computer, or other types of computing devices, which is not limited in this embodiment of the present application.
As shown in fig. 1, the method for implementing the cross-platform electrical control system of the rack may include the following steps 101-103.
In step 101, determining an API interface file, wherein each API interface in the API interface file is supported by at least one library file; at least one library file corresponds to at least one platform one to one for different implementations.
In the embodiment of the application, the platform refers to a platform for loading the bracket electric control system and operating the bracket electric control system to realize the bracket electric control function. A platform refers to a hardware device provided with an operating system. Different platforms may have different hardware devices or be provided with different operating systems. Wherein, different hardware devices and device driving modes may be different. Different operating systems, memory management may be different, or thread management may be different.
In the embodiment of the application, different support electric control functions correspond to different API interfaces. Thus, the types of API interfaces may include at least one of the following types: memory management, task management, semaphores, message queues, clocks, keyboards, sensing, display, file systems, communications. Among them, API (Application Programming Interface) is some predefined interfaces (e.g. function, HTTP Interface) for providing a set of routines that an Application can access based on certain software or hardware without accessing source code or understanding details of internal working mechanism.
In step 102, a configuration file is determined, wherein the configuration file corresponds to at least one platform and is used for selecting an API interface and selecting a library file supporting the API interface according to at least one bracket electronic control function to be implemented.
In step 103, a cross-platform bracket electric control system is created according to the API interface file, the configuration file, and at least one bracket electric control function to be realized.
In an embodiment of the present application, after step 103, the method further includes the steps of: determining a target platform of the bracket electric control system to be loaded; and selecting an API (application programming interface) according to library files and configuration files in an integrated development environment supported by a target platform, and compiling the support electric control system to generate a support electric control system executable file of the target platform.
The process of compiling the support electronic control system by the cross-platform implementation device of the support electronic control system may be, for example, selecting an API interface according to a library file and a configuration file in an integrated development environment supported by the support electronic control system and a target platform, and then compiling the support electronic control system by the integrated development environment according to the library file supporting the API interface to obtain an executable file. The electric control function of the support can be realized through the operation of the executable file.
In the embodiment of the application, the process of the bracket electric control system for realizing the bracket electric control function can be, for example, a shaft encoder arranged on the coal mining machine collects position signals and direction signals of the coal mining machine in the processes of lifting, walking and the like of the coal mining machine and transmits the position signals and the direction signals to the host; the host machine determines the current position and action of the coal mining machine according to the position signal and the direction signal of the coal mining machine, further determines the position relation between the coal mining machine and the hydraulic support, and further determines the target position and the target action of the hydraulic support; the host transmits the target position and the target action of the hydraulic support to the support electric control system, and the support electric control system sends an instruction to the driving equipment of the hydraulic support according to the target position, the target action, the current position and the current action of the hydraulic support so as to control the hydraulic support and realize the matching between the hydraulic support and the coal mining machine.
The method for realizing the cross-platform bracket electric control system comprises the steps of determining API interface files, wherein each API interface in the API interface files is supported by at least one library file; the at least one library file corresponds to the at least one platform one by one and is used for different realization; determining a configuration file, wherein the configuration file corresponds to at least one platform and is used for selecting an API (application programming interface) and selecting a library file for supporting the API according to at least one bracket electric control function to be realized; and creating a cross-platform bracket electric control system according to the API interface file, the configuration file and at least one bracket electric control function to be realized. The configuration files and the API files in the created support electric control system can be suitable for various platforms, so that only one version of support electric control system can be developed for various platforms, development cost is low, and maintenance cost is low.
In order to determine a configuration file that can be applied to a variety of platforms, a process of determining the configuration file in the method for implementing a rack electronic control system across platforms according to the embodiment of the present application is described below with reference to fig. 2.
Fig. 2 is a flowchart illustrating another cross-platform implementation method of a cradle electronic control system according to an exemplary embodiment.
As shown in fig. 2, the step 102 shown in fig. 1 may specifically include the following steps 201 and 202.
In step 201, for each platform and for each rack electronic control function, an API interface corresponding to the rack electronic control function in the API interface file and a library file supporting the API interface in the integrated development environment supported by the platform are determined.
In this embodiment of the present application, in order to achieve decoupling between the bracket electronic control function that is not dependent on the platform in part and other bracket electronic control functions, before step 201, the method may further include the following steps: determining a first bracket electric control function related to the platform and a second bracket electric control function unrelated to the platform in at least one bracket electric control function to be realized. Correspondingly, the process of the implementation apparatus of the rack electronic control system across platforms to execute step 201 may be, for example, to determine, for each platform and for each first rack electronic control function, an API interface in the API interface file corresponding to the first rack electronic control function, and a library file supporting the API interface in the integrated development environment supported in the platform.
Among them, an Integrated Development Environment (IDE) is an application program for providing a program Development Environment, and generally includes tools such as a code editor, a compiler, a debugger, and a graphical user interface. The library files of the integrated development environment are dynamic library files, are relatively independent dynamic file libraries, and correspond to different platforms to execute different library files.
The second support electronic control function irrelevant to the platform is generally an upper function of the first support electronic control function, and the second support electronic control function can be realized by calling one or more first support electronic control functions.
In step 202, a configuration file is determined according to an API interface corresponding to at least one rack electronic control function and a library file supporting the API interface in an integrated development environment supported by at least one platform.
In the embodiment of the application, different library files correspond to different library file resource calling modes.
In this embodiment of the application, the cross-platform implementation device of the rack electronic control system may determine the configuration file according to the library file supporting the API interface in the integrated development environment supported by at least one platform and the API interface corresponding to at least one rack electronic control function, and further may determine, for a specific platform, a calling mode of the library file resource on the platform according to the configuration, thereby implementing the rack electronic control function.
In the embodiment of the application, an API (application programming interface) corresponding to the support electric control function in an API file and a library file supporting the API in an integrated development environment supported by a platform are determined for each platform and each support electric control function; the configuration file is determined according to the API interface corresponding to the at least one support electronic control function and the library file supporting the API interface in the integrated development environment supported by the at least one platform, so that the cross-platform support electronic control system can be generated by combining the configuration file of the at least one platform and the library file of the API interface, and the development cost and the maintenance cost of the support electronic control system are reduced.
In order to make the present application more clear to those skilled in the art, the description will now be made by way of example.
For example, the design process of the cradle electronic control system may be as shown in fig. 3. Fig. 3 is a schematic design diagram of a bracket electronic control system. In fig. 3, firstly, a developer selects an integrated development environment according to a platform, and configures a corresponding project for the integrated development environment; controlling the integrated development environment to package library files of the corresponding platform; creating an API interface file of each integrated development environment access library file; and creating application files, namely adding the configuration files, library files supporting the API interface in the integrated development environment supported by the platform and the application files into the project of each integrated development environment, and compiling the application files to obtain the executable files of the bracket electric control system of the corresponding platform.
The process of creating the API interface file of each integrated development environment access library file comprises the steps of designing an API interface rule, and dividing the cross-platform rule into an operating system cross-platform rule and an equipment layer cross-platform rule; combing the functions of an operating system layer and an equipment layer under different platforms, and designing an API interface for the similar functions; inside the API interface, the macro definition of the special precompiled configuration is designed for different platforms; the API interface is open to the application for application file calls.
In order to implement the above embodiments, the embodiment of the present application provides a cross-platform implementation device for a rack electronic control system.
FIG. 4 is a block diagram of an apparatus for cross-platform implementation of a cradle electronic control system in accordance with an exemplary embodiment.
Referring to fig. 4, the apparatus 400 for implementing the cradle electronic control system cross-platform may include: a first determination module 410, a second determination module 420, and a creation module 430;
the first determining module 410 is configured to determine API interface files, where each API interface in the API interface files is supported by at least one library file; the at least one library file corresponds to the at least one platform one by one and is used for carrying out different realization;
a second determining module 420, configured to determine a configuration file, where the configuration file corresponds to at least one platform, and is configured to select an API interface and select a library file supporting the API interface according to at least one bracket electronic control function to be implemented;
and the creating module 430 is configured to create a cross-platform bracket electric control system according to the API interface file, the configuration file, and at least one bracket electric control function to be implemented.
In an exemplary embodiment, the second determining module includes: a first determination unit and a second determination unit; a first determining unit, configured to determine, for each platform and for each rack electronic control function, an API interface corresponding to the rack electronic control function in the API interface file, and a library file supporting the API interface in an integrated development environment supported by the platform; and the second determining unit is used for determining the configuration file according to at least one API (application programming interface) corresponding to the support electronic control function and the library file supporting the API in the integrated development environment supported by the at least one platform.
In an exemplary embodiment, the second determining module 420 further includes: the third determining unit is used for determining a first support electric control function related to the platform and a second support electric control function unrelated to the platform in at least one support electric control function to be realized; correspondingly, the first determining unit is specifically configured to determine, for each platform and for each first rack electrical control function, an API interface corresponding to the first rack electrical control function in the API interface file, and a library file supporting the API interface in an integrated development environment supported by the platform.
In an exemplary embodiment, the apparatus further comprises: a third determining module and a compiling processing module; the third determining module is used for determining a target platform to be loaded with the bracket electric control system; and the compiling processing module is used for selecting an API (application programming interface) according to the library file in the integrated development environment supported by the target platform and the configuration file, compiling the support electric control system and generating a support electric control system executable file of the target platform.
In an exemplary embodiment, the type of the AI interface in the API interface file includes at least one of the following types: memory management, task management, semaphores, message queues, clocks, keyboards, sensing, display, file systems, communications.
It should be noted that the cross-platform implementation device of the cradle electronic control system in the embodiment of the present application may execute the cross-platform implementation method of the cradle electronic control system in the foregoing embodiment, and the cross-platform implementation device of the cradle electronic control system may be an electronic device, and may also be configured in the electronic device, so as to implement a cross-platform implementation function of the cradle electronic control system in the electronic device.
The electronic device may be any stationary or mobile computing device capable of performing data processing, for example, a mobile computing device such as a notebook computer and a wearable device, a stationary computing device such as a desktop computer, or other types of computing devices, which is not limited in this embodiment of the present application.
It should be noted that, regarding the apparatus in the above embodiment, detailed descriptions of functions of the respective modules may refer to the above method embodiment, and will not be described in detail here.
The device for realizing the cross-platform bracket electric control system in the embodiment of the application determines API interface files, wherein each API interface in the API interface files is supported by at least one library file; the at least one library file corresponds to the at least one platform one by one and is used for carrying out different realization; determining a configuration file, wherein the configuration file corresponds to at least one platform and is used for selecting an API (application programming interface) and selecting a library file for supporting the API according to at least one bracket electric control function to be realized; and creating a cross-platform bracket electric control system according to the API interface file, the configuration file and at least one bracket electric control function to be realized. The configuration file and the API file in the created support electric control system can be suitable for various platforms, so that the support electric control system of one version can be developed for various platforms, the development cost is low, and the maintenance cost is low.
In order to implement the foregoing embodiment, an electronic device is further provided in the embodiment of the present application.
Wherein, the electronic device 200 includes:
a processor 220;
a memory 210 for storing instructions executable by processor 220;
wherein, the processor 220 is configured to execute the instructions to implement the method for implementing the rack electronic control system across platforms as described above.
As an example, fig. 5 is a block diagram illustrating an electronic device 200 for implementing a function of a cradle electronic control system across platforms according to an exemplary embodiment, where as shown in fig. 5, the electronic device 200 may further include:
a memory 210 and a processor 220, and a bus 230 connecting different components (including the memory 210 and the processor 220), wherein the memory 210 stores a computer program, and when the processor 220 executes the program, the method for implementing the cross-platform implementation of the rack electronic control system according to the embodiment of the present application is implemented.
Bus 230 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 200 typically includes a variety of computer-readable media. Such media may be any available media that is accessible by electronic device 200 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 210 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)240 and/or cache memory 250. The electronic device 200 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 260 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 230 by one or more data media interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 280 having a set (at least one) of program modules 270, including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment, may be stored in, for example, the memory 210. The program modules 270 generally perform the functions and/or methodologies of the embodiments described herein.
Electronic device 200 may also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), with one or more devices that enable a user to interact with electronic device 200, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 200 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 292. Also, the electronic device 200 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 293. As shown in FIG. 5, the network adapter 293 communicates with the other modules of the electronic device 200 via the bus 230. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 220 executes various functional applications and data processing by executing programs stored in the memory 210.
It should be noted that, for the implementation process and the technical principle of the electronic device in this embodiment, reference is made to the foregoing explanation of the cross-platform implementation method of the rack electronic control system in this embodiment, and details are not described here again.
According to the electronic equipment provided by the embodiment of the application, the API interface file is determined, wherein each API interface in the API interface file is supported by at least one library file; the at least one library file corresponds to the at least one platform one by one and is used for carrying out different realization; determining a configuration file, wherein the configuration file corresponds to at least one platform and is used for selecting an API (application programming interface) and selecting a library file for supporting the API according to at least one bracket electric control function to be realized; and creating a cross-platform bracket electric control system according to the API interface file, the configuration file and at least one bracket electric control function to be realized. The configuration files and the API files in the created support electric control system can be suitable for various platforms, so that only one version of support electric control system can be developed for various platforms, development cost is low, and maintenance cost is low.
In order to implement the foregoing embodiments, the present application further provides a computer-readable storage medium.
Wherein the instructions in the computer readable storage medium, when executed by the processor of the electronic device, enable the electronic device to perform the method for cross-platform implementation of the rack electronic control system as described above.
In order to implement the foregoing embodiments, the present application further provides a computer program product, which when executed by a processor of an electronic device, enables the electronic device to execute the cross-platform implementation method of the rack electronic control system as described above.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (13)

1. A cross-platform implementation method of a support electric control system is characterized by comprising the following steps:
determining API interface files, wherein each API interface in the API interface files is supported by at least one library file; the at least one library file corresponds to the at least one platform one by one and is used for carrying out different realization;
determining a configuration file, wherein the configuration file corresponds to at least one platform and is used for selecting an API (application programming interface) and selecting a library file for supporting the API according to at least one bracket electric control function to be realized;
and creating a cross-platform bracket electric control system according to the API interface file, the configuration file and at least one bracket electric control function to be realized.
2. The method of claim 1, wherein determining the configuration file comprises:
for each platform and for each bracket electric control function, determining an API (application programming interface) corresponding to the bracket electric control function in the API file and a library file supporting the API in an integrated development environment supported by the platform;
and determining the configuration file according to at least one API (application programming interface) corresponding to the bracket electric control function and library files supporting the API in an integrated development environment supported by at least one platform.
3. The method of claim 2, prior to determining, for each platform, for each rack electrical control function, an API interface of the API interface files that corresponds to the rack electrical control function, and a library file supporting the API interface in an integrated development environment supported by the platform, the method comprising:
determining a first support electric control function related to a platform and a second support electric control function unrelated to the platform in at least one support electric control function to be realized;
the determining, for each platform and for each rack electronic control function, an API interface in the API interface file corresponding to the rack electronic control function and a library file supporting the API interface in an integrated development environment supported by the platform includes:
for each platform, for each first support electrical control function, determining an API interface corresponding to the first support electrical control function in the API interface file, and a library file supporting the API interface in an integrated development environment supported in the platform.
4. The method of claim 1, wherein after creating a cross-platform rack electrical control system from the API interface file, the configuration file, and at least one rack electrical control function to be implemented, the method further comprises:
determining a target platform to be loaded with the bracket electric control system;
and selecting an API (application programming interface) according to the library file in the integrated development environment supported by the target platform and the configuration file, compiling the bracket electric control system, and generating a bracket electric control system executable file of the target platform.
5. The method according to any one of claims 1 to 4, wherein the type of AI interface in the API interface file comprises at least one of the following types: memory management, task management, semaphores, message queues, clocks, keyboards, sensing, display, file systems, communications.
6. The utility model provides a support electrical system is cross platform's realization device which characterized in that includes:
a first determining module, configured to determine API interface files, where each API interface in the API interface files is supported by at least one library file; the at least one library file corresponds to the at least one platform one by one and is used for carrying out different realization;
the second determining module is used for determining a configuration file, wherein the configuration file corresponds to at least one platform and is used for selecting an API (application programming interface) and selecting a library file for supporting the API according to at least one bracket electronic control function to be realized;
and the creating module is used for creating a cross-platform bracket electric control system according to the API interface file, the configuration file and at least one bracket electric control function to be realized.
7. The apparatus of claim 6, wherein the second determining module comprises: a first determination unit and a second determination unit;
the first determining unit is used for determining an API (application programming interface) corresponding to the support electronic control function in the API file and a library file supporting the API in an integrated development environment supported by the platform aiming at each support electronic control function aiming at each platform;
and the second determining unit is used for determining the configuration file according to at least one API (application programming interface) corresponding to the support electronic control function and the library file supporting the API in the integrated development environment supported by the at least one platform.
8. The apparatus of claim 7, wherein the second determining module further comprises: the third determining unit is used for determining a first support electric control function related to the platform and a second support electric control function unrelated to the platform in at least one support electric control function to be realized;
correspondingly, the first determining unit is specifically configured to determine, for each platform and for each first rack electrical control function, an API interface corresponding to the first rack electrical control function in the API interface file, and a library file supporting the API interface in an integrated development environment supported by the platform.
9. The apparatus of claim 6, further comprising: a third determining module and a compiling processing module;
the third determining module is used for determining a target platform to be loaded with the bracket electric control system;
and the compiling processing module is used for selecting an API (application programming interface) according to the library file in the integrated development environment supported by the target platform and the configuration file, compiling the support electric control system and generating a support electric control system executable file of the target platform.
10. The apparatus according to any one of claims 6 to 9, wherein the type of AI interface in the API interface file comprises at least one of the following types: memory management, task management, semaphores, message queues, clocks, keyboards, sensing, display, file systems, communications.
11. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of cross-platform implementation of the rack electronic control system according to any one of claims 1 to 5.
12. A computer readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the method of cross-platform implementation of a rack electrical control system as claimed in any one of claims 1 to 5.
13. A computer program product comprising a computer program which, when executed by a processor of an electronic device, enables the electronic device to perform a method of cross-platform implementation of a cradle electronic control system as claimed in any one of claims 1 to 5.
CN202210112673.0A 2022-01-29 2022-01-29 Cross-platform implementation method and device of bracket electric control system, electronic equipment and storage medium Pending CN114443123A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210112673.0A CN114443123A (en) 2022-01-29 2022-01-29 Cross-platform implementation method and device of bracket electric control system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210112673.0A CN114443123A (en) 2022-01-29 2022-01-29 Cross-platform implementation method and device of bracket electric control system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114443123A true CN114443123A (en) 2022-05-06

Family

ID=81372144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210112673.0A Pending CN114443123A (en) 2022-01-29 2022-01-29 Cross-platform implementation method and device of bracket electric control system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114443123A (en)

Similar Documents

Publication Publication Date Title
CN110096338B (en) Intelligent contract execution method, device, equipment and medium
JP5602597B2 (en) Method, computer program, and system for memory optimization of virtual machine code by segmenting foreign information
US7086046B2 (en) Method and apparatus for displaying compiler-optimizated code
JP5415557B2 (en) User script code conversion for debugging
US10402208B2 (en) Adaptive portable libraries
KR101903805B1 (en) Method for checkpointing and restoring program state
CN102279765A (en) Pre-compiling hosted managed code
US20150278511A1 (en) Monitoring an application in a process virtual machine
CN106850650B (en) Method for accessing data by game client and client game system
CN103488466A (en) Method and device for executing application program
CN103443763A (en) ISA bridging including support for call to overidding virtual functions
CN111078412B (en) Method for performing resource management on GPU (graphics processing Unit) through API (application program interface) interception
CN113986402A (en) Function calling method and device, electronic equipment and storage medium
US20100058305A1 (en) Automatic Generation of Language Bindings for Libraries Using Data from Compiler Generated Debug Information
US8769498B2 (en) Warning of register and storage area assignment errors
CN111971655B (en) Native runtime techniques for hypertext markup language graphics content
CN111352644A (en) Applet updating method, device, server and storage medium
CN114443123A (en) Cross-platform implementation method and device of bracket electric control system, electronic equipment and storage medium
CN116051031A (en) Project scheduling system, medium and electronic equipment
CN111367799B (en) Method, device, medium and electronic equipment for locating source code breakdown position
CN113821219A (en) Method and system for realizing application program containerization
CN112379885A (en) Applet compiling method, device and equipment and readable storage medium
CN114253615B (en) Method and device for setting bootstrap program, electronic equipment and storage medium
US20240020133A1 (en) Systems and methods to bridge platforms
CN114327648B (en) Driving debugging method and device, electronic equipment and storage medium

Legal Events

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