A method and device for realizing non-standard functions based on vehicle-mounted application system
By designing the business customization layer and application business layer in the vehicle application system, and detecting and integrating code modules, the problem of repeated development when non-standard functions are reproduced on devices at different levels is solved, and efficiency and reusability are improved.
Patent Information
- Application Number
- CN202410813982.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-24
AI Technical Summary
When non-standard functions are reproduced on on-board equipment of train operation control systems at different levels, repeated development is required in each equipment environment, resulting in time consumption and increased system complexity.
Design a non-standard function implementation method based on vehicle application systems. Through the business customization layer, application business layer and general business layer, the designated code modules and standard code modules are detected and integrated to realize the reuse of non-standard functions.
It avoids repeated development, saves time, reduces system complexity, and improves code reusability and implementation efficiency of non-standard functions.
Smart Images

Figure CN118372856B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of railway and computer technology, and in particular to a method and device for realizing non-standard functions based on a vehicle-mounted application system. Background Art
[0002] The functions currently available in the onboard equipment of the train operation control system are standard functions set according to relevant industry standards. However, specific train operation requirements may require the addition of some non-standard functions in addition to these standard functions to meet unique train operation requirements.
[0003] In order to realize these non-standard functions, the current practice is to first determine the on-board equipment of the relevant level of train operation control system to be utilized in the train operation requirements, and then develop the non-standard functions defined in the train operation requirements in the environment of the on-board equipment of this level.
[0004] However, due to the functional and technical differences between the on-board devices of different levels of train operation control systems, there are incompatibilities. Therefore, when trying to reproduce these non-standard functions on other levels of on-board devices, they must be redeveloped for the on-board device environment of other levels. This method is not only time-consuming, but also increases the overall complexity of the system. Summary of the invention
[0005] In view of the above problems, the present invention provides a method and device for realizing non-standard functions based on a vehicle-mounted application system, the main purpose of which is to solve the problem of repeated development in various environments when reproducing the same non-standard function on various levels of vehicle-mounted devices.
[0006] In order to solve the above technical problems, the present invention proposes the following solutions:
[0007] In a first aspect, the present invention provides a method for implementing a non-standard function based on an in-vehicle application system, wherein the in-vehicle application system includes a service customization layer, an application service layer, and a general service layer, and the method includes:
[0008] Acquiring train operation requirements, wherein the train operation requirements include target level information indicating a target onboard device and information on a target non-standard function to be added in the target onboard device;
[0009] Detecting, according to the information of the target non-standard function, whether there is a designated code module in the service customization layer that can implement the target non-standard function;
[0010] If it exists, then pull the specified code module, and pull the standard code module corresponding to the standard function in the target vehicle-mounted device in the application service layer and the general service layer according to the target layer information;
[0011] The designated code module is integrated with the code in the standard code module to obtain a target code module, so as to utilize the code in the target code module to meet the train operation requirements.
[0012] In a second aspect, the present invention provides a non-standard function implementation device based on an in-vehicle application system, wherein the in-vehicle application system includes a service customization layer, an application service layer, and a general service layer, and the device includes:
[0013] A demand acquisition unit, used to acquire train operation demand, wherein the train operation demand includes target level information indicating a target on-board device and information indicating a target non-standard function to be added in the target on-board device;
[0014] An information detection unit, configured to detect whether there is a designated code module in the business customization layer that can realize the target non-standard function according to the information of the target non-standard function in the train operation requirement acquired by the requirement acquisition unit;
[0015] An information pulling unit, configured to pull the designated code module if the information detection unit detects that the designated code module exists, and pull the standard code module corresponding to the standard function in the target vehicle-mounted device in the application service layer and the general service layer according to the target layer information;
[0016] The information integration unit is used to integrate the designated code module pulled by the information pulling unit with the code in the standard code module to obtain a target code module, so as to utilize the code in the target code module to meet the train operation requirements.
[0017] In order to achieve the above-mentioned purpose, according to the third aspect of the present invention, a storage medium is provided, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the non-standard function implementation method based on the vehicle-mounted application system of the above-mentioned first aspect.
[0018] In order to achieve the above objective, according to a fourth aspect of the present invention, a processor is provided, the processor being used to run a program, wherein when the program is run, the method for implementing non-standard functions based on an in-vehicle application system according to the first aspect is executed.
[0019] By means of the above technical scheme, the present invention provides a method and device for realizing non-standard functions based on an on-board application system. The method is realized based on an on-board application system, and the on-board application system includes a business customization layer, an application business layer and a general business layer. Among them, the business customization layer is used to configure, store and manage code modules corresponding to non-standard functions. The application business layer and the general business layer are responsible for managing and maintaining code modules corresponding to standard functions in on-board devices at various levels. In the actual train operation requirements, the target level information of the required target on-board equipment and the target non-standard function information to be added are first clarified. Subsequently, the system will detect whether there is a pre-configured designated code module matching the target non-standard function in the business customization layer. If it exists, the code module is directly extracted for use. Then, according to the target level information, the code modules corresponding to the standard functions in the target on-board equipment are extracted in the application business layer and the general business layer respectively. Finally, the extracted standard function code module is integrated with the designated code module to meet the specific requirements of train operation. In summary, this system uniformly maintains the standard function codes of each level of vehicle-mounted equipment in the application business layer and the general business layer, and maintains the codes of non-standard functions in the business customization layer. Compared with the prior art, when the same non-standard function needs to be reproduced on vehicle-mounted equipment at different levels, the present invention does not need to rewrite the code in the vehicle-mounted equipment at each level, but only needs to pull the code module from the corresponding layer for integration and compilation. This design greatly improves the reusability of the code and significantly improves the efficiency of implementing non-standard functions.
[0020] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0022] Figure 1 A flow chart of a method for implementing a non-standard function based on a vehicle-mounted application system provided by an embodiment of the present invention is shown;
[0023] Figure 2 A flow chart of another method for implementing a non-standard function based on a vehicle-mounted application system provided by an embodiment of the present invention is shown;
[0024] Figure 3A block diagram showing a composition of a non-standard function implementation device based on a vehicle-mounted application system provided by an embodiment of the present invention;
[0025] Figure 4 A block diagram showing the composition of another device for realizing non-standard functions based on a vehicle-mounted application system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0027] In order to solve the problem of repeated development in various environments when reproducing the same non-standard function on various levels of vehicle-mounted devices, the inventor proposed a modular design scheme. The scheme includes designing a business customization layer in the vehicle-mounted application system to maintain the code module of non-standard functions, and designing an application business layer and a general business layer to respectively maintain the standard function codes corresponding to each level of vehicle-mounted devices. Through this design, when multiple levels of vehicle-mounted devices need to implement the same non-standard function, the system can directly pull the non-standard function code from the corresponding business customization layer, and pull the standard function code of the required level of vehicle-mounted devices from the application business layer and the general business layer. Then, these codes are integrated and compiled to implement non-standard functions on the corresponding level of vehicle-mounted devices. This method not only avoids repeated development and saves time, but also reduces the overall complexity of the system, improves the reusability of the code and the efficiency of implementing non-standard functions.
[0028] Based on the above, it can be known that the execution subject of the present invention is the vehicle-mounted application system. Before explaining the non-standard function implementation method based on the vehicle-mounted application system provided by the present invention, it is necessary to further explain the environment on which the vehicle-mounted application system depends:
[0029] The vehicle-mounted application system is applied on an underlying platform, which is mainly responsible for data communication with vehicle-mounted equipment, reading related configuration files, running the vehicle-mounted application system and building system hardware.
[0030] The above-mentioned underlying platform includes multiple hardware boards with different functions, among which the boards in the underlying platform include but are not limited to: PPU board (Power Processing Unit, PPU), MPU board (Main Processing Unit or Micro Processor Unit, MPU), GWU board (Gateway Unit, GWU), VIU board (Vehicle Interface Unit, VIU), VOU board (Video Over IP Unit, VOU), AIOU board (Analog Input and Output Unit, AIOU), BTM board (Brake Test Monitoring, BTM), NCU board (Network Control Unit, NCU) and other types.
[0031] The boards exchange data through the Time-Sensitive Networking (TSN) bus. It should be noted that, depending on the project, when facing different application scenarios of different vehicle-mounted projects, the required functions can be achieved through the combination of different types and numbers of boards and components.
[0032] Among them, the PPU board is responsible for power supply and processing, including voltage conversion, current control, and power protection functions, ensuring that other components of the system can obtain the required power stably.
[0033] As the core processing unit of the system, the MPU board is responsible for running the operating system and applications, processing various control instructions and data, and is the center of system calculation and logical decision-making. The above-mentioned vehicle application system runs on this MPU board.
[0034] In addition, other boards are responsible for communicating with various modules in the vehicle-mounted equipment to collect information, such as communicating with the human-machine interface unit (Driver Machine Interface, DMI) and radio and other equipment, collecting information from sensors such as wheel axle speed transmission accelerometers, interacting with the vehicle interface to input and output relay information, receiving transponder messages, receiving satellite information, etc., which are not listed here one by one, but are all within the scope of the present invention.
[0035] Among them, the on-board equipment mentioned above is divided into three parts: on-board host, on-board peripheral equipment and on-board equipment external interface. Among them, the on-board host mainly includes speed and distance measurement unit, ATP main control unit, ATO main control unit, track circuit information receiving unit, transponder information receiving unit, satellite receiving unit, maintenance data recording unit, train interface unit, radio station, etc.; on-board peripheral equipment mainly includes human-machine interface unit DMI, speed sensor, transponder information receiving antenna, Long-Term Evolution (LTE) antenna / satellite antenna, track circuit reader (TCR) antenna, etc.; on-board equipment external interface mainly includes locomotive, power supply, dynamic monitoring, transponder, track circuit, radio block center (RBC), etc.
[0036] In summary, the dependent environment of the vehicle-mounted application system of the present invention is an underlying platform, which is composed of a plurality of boards that can be flexibly combined. These boards cooperate with each other and with each module in the vehicle-mounted equipment to form a functional system that meets the needs of train operation.
[0037] After explaining the environment on which the execution subject of the present invention depends, the execution subject of the present invention, namely, the vehicle-mounted application system, is further explained:
[0038] The vehicle-mounted application system, as the upper-layer software, runs on the MCU board in the above-mentioned underlying platform, and is mainly responsible for realizing the operation control logic of the train ATP and ATO functions (based on this, it can be known that the ATO application and ATP application in the present invention correspond to an MPU board respectively). This is also the technical solution of the present invention.
[0039] That is, the non-standard functions and standard functions executed by the on-board application system in the present invention refer to the related functions of the Automatic Train Protection (ATP) system and the Automatic Train Operation (ATO) system.
[0040] For example, if you want to use the onboard equipment of the Chinese Train Control System Level 2 (CTCS-2) to implement the automatic return function in ATO, since the CTCS-2 onboard equipment does not have the automatic return function, in this case, the automatic return is a non-standard function. The CTCS-2 onboard equipment originally has the standard function.
[0041] It should be clear that the target non-standard functions specified in the train operation requirements obtained by the present invention refer to the target non-standard functions that are not originally available for the target on-board equipment of the target level specified in the requirements. If these target non-standard functions are already part of the target on-board equipment, then there is no need to specifically point them out in the train operation requirements. Therefore, the present invention is aimed at those functions that need to be added to specific on-board equipment and are not available in the specific on-board equipment to meet specific train operation requirements.
[0042] The vehicle application system is divided into the business customization layer, application business layer, general business layer and platform interface layer. R&D personnel can configure code modules of non-standard functions in the business customization layer and manage the code modules, such as code modules corresponding to functions such as level conversion, mode conversion, satellite positioning, train integrity check, automatic return, and door control management.
[0043] The application business layer can store and manage the unique functions of vehicle-mounted devices at each level, and the general business layer can store and manage the same functions between vehicle-mounted devices at each level, such as speed measurement and distance measurement. The general business layer abstracts and encapsulates the same functions between vehicle-mounted devices at each level, greatly increasing the reusability of the code.
[0044] The platform interface layer mainly includes public functions and data structure definitions, underlying platform interfaces and other functions.
[0045] Among them, public functions are the implementation of a series of common functions, such as data processing, error checking, logging, etc. These functions may be frequently used between different service layers. By defining public functions, you can avoid repetitive writing of similar code, improve the standardization and reusability of the code, reduce errors, and simplify development and maintenance.
[0046] In addition, the data structure definition provides a unified format and specification for data exchange between different service layers, so that data can be transmitted in a way that both parties can understand. This helps to ensure the accuracy and integrity of the data and simplify cross-module integration. In other words, the data structure definition defines the standard format for data transmission and data storage in each service layer within the system.
[0047] Finally, as part of the underlying platform interface, the public function and data structure definitions provide a clear abstraction layer to the outside world and hide the implementation details. In this way, upper-level application developers do not need to care about the specific implementation of the underlying layer, but only need to know how to call the underlying platform interface and process the returned data structure, thereby reducing the complexity of the system and improving development efficiency. In other words, the underlying platform interface serves as a channel for data interaction between the outside world and the internal vehicle application system.
[0048] Finally, the vehicle-mounted application system may also include a comprehensive management layer for interacting with each service layer to implement the non-standard function implementation method based on the vehicle-mounted application system of the present invention.
[0049] In other words, the present invention adopts a layered design method at the application software level, abstracting and encapsulating the common functions between vehicle-mounted devices at each level, the unique functions of vehicle-mounted devices at each level, and non-standard functions customized according to specific business needs. This design greatly improves the reusability of the code.
[0050] After explaining the execution subject of the present invention, namely, the vehicle-mounted application system, Figure 1 The present invention provides a method for implementing a non-standard function based on a vehicle-mounted application system, and the specific execution steps are as follows: Figure 1 As shown, including:
[0051] 101. Obtain train operation requirements, where the train operation requirements include target level information indicating target onboard equipment and information on target non-standard functions to be added in the target onboard equipment.
[0052] 102. Detect whether there is a designated code module in the business customization layer that can implement the target non-standard function according to the information of the non-standard function.
[0053] When a user proposes a train operation requirement, the train operation requirement can be parsed first to clarify the target level information used to indicate the target on-board equipment in the train operation requirement and the information of the target non-standard functions to be added in the target on-board equipment.
[0054] Next, the system will check whether there is a code module that implements the target non-standard function in the business customization layer according to the information of the non-standard function. If such a code module already exists, the system will execute step 103; if not, the system will need to configure a code module corresponding to the target non-standard function in the business customization layer.
[0055] Exemplarily, the target vehicle-mounted device may be a CTCS-2 level vehicle-mounted device, the target level information may be a CTCS-2 level, and the target non-standard function may be an automatic return function.
[0056] 103. Pull out the designated code module, and pull out the standard code module corresponding to the standard function in the target vehicle-mounted device in the application business layer and the general business layer according to the target layer information.
[0057] 104. Integrate the codes in the designated code module and the standard code module to obtain a target code module, so as to utilize the codes in the target code module to meet the train operation requirements.
[0058] If it is detected in step 102 that the service customization layer already contains a designated code module corresponding to the target non-standard function, then in step 103 the module may be directly extracted from the service customization layer.
[0059] At the same time, according to the target level information, the system should also extract the code modules corresponding to the standard unique functions of the target vehicle-mounted equipment in the application business layer, and extract the code modules corresponding to the standard general functions in the general business layer.
[0060] After completing these extraction operations, the system will integrate the codes in the code modules corresponding to the standard unique functions and the standard common functions to generate a complete standard code module corresponding to the standard functions in the target vehicle-mounted equipment.
[0061] Finally, the system (vehicle application system) will integrate and compile the extracted specified code modules and standard code modules to generate target code modules. This integration process can occur at a specified location in the integrated management layer to ensure effective merging and management of the code.
[0062] It should be clarified that the "pull" operation mentioned in the embodiments of the present invention actually refers to "copying" rather than "cutting". This means that after the required code module is copied from the corresponding service layer, the corresponding code module in the original service layer is still retained and will not be deleted. Such an operation ensures that the original version of the code module remains unchanged, and at the same time, the necessary integration and application can be performed in other locations.
[0063] Based on the above Figure 1It can be seen from the implementation method that the present invention provides a method for implementing non-standard functions based on an on-board application system. The method is implemented based on an on-board application system, and the on-board application system includes a business customization layer, an application business layer, and a general business layer. Among them, the business customization layer is used to configure, store and manage code modules corresponding to non-standard functions. The application business layer and the general business layer are responsible for managing and maintaining the code modules corresponding to standard functions in on-board equipment at each level. In the actual train operation requirements, the target level information of the required target on-board equipment and the target non-standard function information to be added are first clarified. Subsequently, the system will detect whether the business customization layer already has a pre-configured specified code module that matches the target non-standard function. If it exists, the code module is directly extracted for use. Then, according to the target level information, the code modules corresponding to the standard functions in the target on-board equipment are extracted in the application business layer and the general business layer respectively. Finally, the extracted standard function code module is integrated with the specified code module to meet the specific needs of train operation. In summary, this system uniformly maintains the standard function codes of each level of vehicle-mounted equipment in the application business layer and the general business layer, and maintains the codes of non-standard functions in the business customization layer. Compared with the prior art, when the same non-standard function needs to be reproduced on vehicle-mounted equipment at different levels, the present invention does not need to rewrite the code in the vehicle-mounted equipment at each level, but only needs to pull the code module from the corresponding layer for integration and compilation. This design greatly improves the reusability of the code and significantly improves the efficiency of implementing non-standard functions.
[0064] Furthermore, as a Figure 1 The embodiment shown in the figure is refined and expanded. The embodiment of the present invention also provides another method for realizing non-standard functions based on the vehicle-mounted application system, such as Figure 2 As shown, the specific steps are as follows:
[0065] 201. Obtain train operation requirements, where the train operation requirements include target level information indicating target onboard equipment and information on target non-standard functions to be added in the target onboard equipment.
[0066] Among them, the implementation method of step 201 is the same as that of step 101, and can achieve the same technical effect and solve the same technical problem, and will not be repeated here.
[0067] 202. Detect, based on the information about the non-standard function, whether there is a designated code module in the business customization layer that can implement the target non-standard function.
[0068] In this step, the information of the target non-standard function may be further parsed, and the information of the target non-standard function may include a function tag corresponding to the target non-standard function.
[0069] At the same time, the business customization layer, application business layer and general business layer all maintain their own code bases.
[0070] In the business customization layer, each code module in the code base is equipped with a corresponding function label and version identifier. These labels and identifiers are used to indicate the specific functions that the code module can achieve and the version information of the module itself. This design enables the system to quickly identify and retrieve the required code modules, and also facilitates version control and function management.
[0071] Based on the above, it can be known that in the code base of the business customization layer, the function label of the target non-standard function can be used as a keyword to search whether there is a code module that can implement the target non-standard function in the code base. If it exists, the code module corresponding to the function label can be determined as the designated code module, and step 203 is executed. If it does not exist, step 205 can be executed.
[0072] Of course, when compiling the code modules corresponding to the non-standard functions, the developers may make multiple updates. Therefore, if there are code modules corresponding to the function labels of the target non-standard functions, it is also necessary to determine the number of code modules corresponding to the function labels of the target non-standard functions in order to select the correct version for compilation and integration.
[0073] When there are multiple code modules corresponding to the function labels of the target non-standard functions in the system, the latest version of the code module can be determined by comparing the version identification of each code module.
[0074] The version identifier of a code module is a timestamp identifier, that is, each time a code module is updated, the update time is recorded as the version identifier of the code module. Therefore, by comparing these timestamps, the code module closest to the current time can be identified. This module is the latest version of the code module and should be determined as the designated code module.
[0075] 203 . Pull out a designated code module, and pull out a standard code module corresponding to a standard function in the target vehicle-mounted device in the application business layer and the general business layer according to the target layer information.
[0076] Among them, the implementation method of step 203 is the same as that of step 202, and can achieve the same technical effect and solve the same technical problem, and will not be repeated here.
[0077] It should be further explained that the application business layer and the general business layer each maintain an independent code base.
[0078] In the code base of the application business layer, since the functions unique to the vehicle-mounted devices at each level are maintained, each code module can be associated with its corresponding level information and stored in the code base. This information is used to indicate the vehicle-mounted device level to which each code module belongs.
[0079] However, since the common business layer is responsible for storing common functions across all levels, it is unnecessary to associate level information for each code module in its code base. Instead, the code base of the common business layer directly associates each code module with the corresponding function label to facilitate quick retrieval and calling according to functional requirements.
[0080] Therefore, when obtaining the standard code modules corresponding to the standard functions of the target vehicle-mounted device, the code modules corresponding to the standard unique functions in the target vehicle-mounted device can be pulled from the code library of the application business layer according to the target hierarchical information; and the code modules corresponding to the standard general functions in the target vehicle-mounted device can be pulled from the code library of the general business layer.
[0081] Since the code modules in the code base of the general business layer correspond to different general functions of the vehicle-mounted equipment, all code modules in this layer can be obtained by default without any specific requirements. This approach ensures that the vehicle-mounted equipment can access all necessary general functions to meet potential operation requirements.
[0082] Finally, the codes in the code modules corresponding to the standard unique functions and the code modules corresponding to the standard common functions may be integrated to obtain the standard code modules corresponding to the standard functions in the target vehicle-mounted device.
[0083] It should be pointed out that the code modules in the code base in the general business layer and the application business layer can also be equipped with version identifiers, but it is also possible to choose to only retain the latest version of the code module corresponding to each function.
[0084] The difference between the application business layer and the business customization layer and the general business layer lies not only in the associated storage of the code modules and the hierarchical information of the vehicle equipment, but also in that each code module in the application business layer corresponds to all the standard and unique functions of the vehicle equipment at each level. In contrast, each code module in the business customization layer and the general business layer corresponds to a specific function.
[0085] It can be seen that the embodiment of the present invention maintains a code base and strategically stores code modules in the code base according to the characteristics of each service layer, thereby facilitating rapid retrieval of corresponding code modules. In addition, the present invention manages and stores codes in the form of code modules, thereby improving the reusability of the code and the flexibility of the system.
[0086] 204. Integrate the codes in the designated code module and the standard code module to obtain a target code module, so as to utilize the codes in the target code module to meet the train operation requirements.
[0087] Among them, the implementation method of step 204 is the same as that of step 104, and can achieve the same technical effect and solve the same technical problem, and will not be repeated here.
[0088] 205. Configure a code module of a target non-standard function in the business customization layer.
[0089] If the function label of the target non-standard function is used as a keyword and the code module that can realize the target non-standard function cannot be found in the code library, a code configuration prompt information can be sent to the display terminal, so that the staff can configure the code module of the target non-standard function in the business customization layer according to the code configuration prompt information. Subsequently, a version identifier can be assigned to the code module, and the function label of the target non-standard function and the assigned version identifier are associated with the code module and stored in the code library of the business customization layer.
[0090] It should be noted that before associating the function label and version identifier of the target non-standard function with the configured code module and storing it in the code library of the business customization layer, it is necessary to first execute the test process of the code in the code module to verify whether the code in the code module can meet the preset performance standards.
[0091] When the preset performance standard is not met, the code in the code module can be adjusted according to the test results until the code in the code module can meet the preset performance standard. Finally, the code module that meets the preset performance standard is associated with the function label and version identifier of the target non-standard function and stored in the code library of the business customization layer.
[0092] Furthermore, as a response to the above Figure 1 In order to realize the method shown in the figure, the embodiment of the present invention also provides a non-standard function realization device based on the vehicle-mounted application system, which is used for the above Figure 1 The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 3 As shown, the device comprises:
[0093] A demand acquisition unit 301 is used to acquire train operation demand, wherein the train operation demand includes target level information indicating a target on-board device and information indicating a target non-standard function to be added in the target on-board device;
[0094] An information detection unit 302 is used to detect whether there is a designated code module that can realize the target non-standard function in the business customization layer according to the information of the target non-standard function in the train operation requirement obtained by the requirement acquisition unit 301;
[0095] The information pulling unit 303 is used to pull the specified code module if the information detection unit 302 detects that it exists, and pull the standard code module corresponding to the standard function in the target vehicle-mounted device in the application service layer and the general service layer according to the target layer information;
[0096] The information integration unit 304 is used to integrate the designated code module pulled by the information pulling unit 303 with the code in the standard code module to obtain a target code module, so as to utilize the code in the target code module to meet the train operation requirements.
[0097] Furthermore, as a response to the above Figure 2 In addition to the implementation of the method shown in the figure, the embodiment of the present invention also provides another non-standard function implementation device based on the vehicle-mounted application system, which is used for the above Figure 2 The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 4 As shown, the device comprises:
[0098] A demand acquisition unit 301 is used to acquire train operation demand, wherein the train operation demand includes target level information indicating a target on-board device and information indicating a target non-standard function to be added in the target on-board device;
[0099] An information detection unit 302 is used to detect whether there is a designated code module that can realize the target non-standard function in the business customization layer according to the information of the target non-standard function in the train operation requirement obtained by the requirement acquisition unit 301;
[0100] The information pulling unit 303 is used to pull the specified code module if the information detection unit 302 detects that it exists, and pull the standard code module corresponding to the standard function in the target vehicle-mounted device in the application service layer and the general service layer according to the target layer information;
[0101] The information integration unit 304 is used to integrate the designated code module pulled by the information pulling unit 303 with the code in the standard code module to obtain a target code module, so as to utilize the code in the target code module to meet the train operation requirements.
[0102] In an optional implementation manner, the information detection unit 302 includes:
[0103] An information parsing module 3021 is used to parse the information of the target non-standard function to obtain a function label corresponding to the target non-standard function;
[0104] The information detection module 3022 is used to detect whether there is a code module corresponding to the function tag parsed by the information parsing module 3021 in the code library of the business customization layer, wherein each code module in the code library of the business customization layer has a corresponding function tag and a version identifier, and the version identifier is a timestamp identifier;
[0105] The information determination module 3023 is used to determine the code module corresponding to the function tag as the designated code module if the information detection module 3022 detects the existence.
[0106] In an optional implementation manner, the information determination module 3023 is specifically used to:
[0107] If there are multiple code modules corresponding to the function tag, determining the latest version of the code module among the multiple code modules according to the version identifiers of the multiple code modules;
[0108] The code module of the latest version is determined as the designated code module corresponding to the function tag.
[0109] In an optional implementation manner, the information pulling unit 303 includes:
[0110] A first pulling module 3031 is used to pull, according to the target hierarchical information, a code module corresponding to a standard unique function in the target vehicle-mounted device from the code library of the application business layer, wherein the standard unique function is a standard function not available in vehicle-mounted devices of other hierarchical levels, wherein each code module in the code library of the application business layer has corresponding hierarchical information;
[0111] A second pulling module 3032 is used to pull the code module corresponding to the standard general function in the target vehicle-mounted device from the code library of the general business layer, wherein the standard general function is the same standard function between the target vehicle-mounted device and vehicle-mounted devices of other levels, wherein each code module in the code library of the general business layer has a corresponding function tag;
[0112] The first information integration module 3033 is used to integrate the code module corresponding to the standard unique function pulled by the first pulling module 3031 with the code module corresponding to the standard common function pulled by the second pulling module 3032 to obtain the standard code module corresponding to the standard function in the target vehicle-mounted device.
[0113] In an optional implementation, if the information detection module 3022 detects that there is no code module corresponding to the function tag in the code library of the business customization layer, the device further includes a code configuration unit 305, and the code configuration unit 305 includes:
[0114] The information sending module 3051 is used to send code configuration prompt information to the display terminal, so that the staff can configure the code module of the target non-standard function in the business customization layer according to the code configuration prompt information;
[0115] An identification allocation module 3052, used to allocate a version identification to the code module;
[0116] The first information storage module 3053 is used to associate the function label of the target non-standard function and the version identifier assigned by the identifier assignment module 3052 with the code module obtained by the information sending module 3051 and store them in the code library of the business customization layer.
[0117] In an optional implementation, before the first information storage module 3053 associates the function label of the target non-standard function and the assigned version identifier with the code module and stores them in the code library of the business customization layer, the device further includes a code verification unit 306, and the code verification unit 306 includes:
[0118] The test execution module 3061 is used to execute the test process of the code in the code module to verify whether the code in the code module can meet the preset performance standard;
[0119] The code adjustment module 3062 is used to adjust the code in the code module according to the test result if the test result of the test execution module 3061 is not acceptable, until the code in the code module can reach the preset performance standard;
[0120] The second information storage module 3063 is used to associate the code module adjusted by the code adjustment module 3062 and meeting the preset performance standard with the function label of the target non-standard function and the assigned version identifier and store them in the code library of the business customization layer.
[0121] Furthermore, an embodiment of the present invention further provides a storage medium, wherein the storage medium is used to store a computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the above Figure 1-2 The non-standard function implementation method based on the vehicle application system described in.
[0122] Furthermore, an embodiment of the present invention further provides a processor, the processor is used to run a program, wherein the program executes the above Figure 1-2 The non-standard function implementation method based on the vehicle application system described in.
[0123] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0124] It is understandable that the related features in the above methods and devices can be referenced to each other. In addition, the "first", "second" and the like in the above embodiments are used to distinguish the embodiments, but do not represent the advantages and disadvantages of the embodiments.
[0125] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0126] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
[0127] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0128] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0129] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0130] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0131] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0132] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0133] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0134] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0135] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0136] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0137] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for implementing non-standard functions based on an in-vehicle application system, characterized in that: The vehicle-mounted application system includes a service customization layer, an application service layer and a general service layer, and the method includes: Acquiring train operation requirements, wherein the train operation requirements include target level information indicating a target onboard device and information on a target non-standard function to be added in the target onboard device; Detecting, according to the information of the target non-standard function, whether there is a designated code module in the service customization layer that can implement the target non-standard function; If it exists, the specified code module is pulled, and the standard code module corresponding to the standard function in the target vehicle-mounted device is pulled in the application service layer and the general service layer according to the target level information, including: According to the target hierarchical information, a code module corresponding to a standard unique function in the target vehicle-mounted device is pulled from the code library of the application business layer, wherein the standard unique function is a standard function not available in vehicle-mounted devices of other hierarchical levels, wherein each code module in the code library of the application business layer has corresponding hierarchical information; Pulling out a code module corresponding to a standard universal function in the target vehicle-mounted device from the code library of the universal service layer, wherein the standard universal function is a standard function common to the target vehicle-mounted device and vehicle-mounted devices at other levels, wherein each code module in the code library of the universal service layer has a corresponding function tag; Integrate the code in the code module corresponding to the standard unique function and the code in the code module corresponding to the standard common function to obtain a standard code module corresponding to the standard function in the target vehicle-mounted device; The designated code module is integrated with the code in the standard code module to obtain a target code module, so as to utilize the code in the target code module to meet the train operation requirements.
2. The method according to claim 1, characterized in that Detecting whether there is a designated code module that can implement the target non-standard function in the service customization layer according to the information of the target non-standard function includes: Parsing the information of the target non-standard function to obtain a function label corresponding to the target non-standard function; Detecting whether there is a code module corresponding to the function tag in the code library of the business customization layer, wherein each code module in the code library of the business customization layer has a corresponding function tag and a version identifier, and the version identifier is a timestamp identifier; If so, the code module corresponding to the function tag is determined as the designated code module.
3. The method according to claim 2, characterized in that Determining a code module corresponding to the function tag as a designated code module includes: If there are multiple code modules corresponding to the function tag, determining the latest version of the code module among the multiple code modules according to the version identifiers of the multiple code modules; The code module of the latest version is determined as the designated code module corresponding to the function tag.
4. The method according to claim 2, characterized in that: If there is no code module corresponding to the function tag in the code library of the business customization layer, the method further includes: Sending code configuration prompt information to the display terminal so that the staff can configure the code module of the target non-standard function in the business customization layer according to the code configuration prompt information; Assigning a version identifier to the code module; The function label of the target non-standard function and the assigned version identifier are associated with the code module and stored in the code library of the business customization layer.
5. The method according to claim 4, characterized in that Before associating the function label of the target non-standard function and the assigned version identifier with the code module and storing them in the code library of the business customization layer, the method further includes: Execute a test process of the code in the code module to verify whether the code in the code module can meet the preset performance standard; If not, adjusting the code in the code module according to the test result until the code in the code module can reach the preset performance standard; The code module that meets the preset performance standard is associated with the function label of the target non-standard function and the assigned version identifier and stored in the code library of the business customization layer.
6. A vehicle-mounted application system, characterized in that: The system comprises: Business customization layer, which is used to configure, store and manage the code modules of non-standard functions required for train operation; The application business layer is used to store and manage the code modules corresponding to the standard and unique functions in the vehicle-mounted devices at each level; The general business layer is used to store and manage the code modules corresponding to the standard general functions in the vehicle-mounted equipment at each level; The integrated management layer is used to interact with the business customization layer, the application business layer and the general business layer to execute the non-standard function implementation method based on the vehicle-mounted application system as described in any one of claims 1-5, so that the vehicle-mounted application system implements the non-standard function.
7. A non-standard function implementation device based on a vehicle-mounted application system, characterized in that: The vehicle-mounted application system includes a service customization layer, an application service layer and a general service layer, and the device includes: A demand acquisition unit, used to acquire train operation demand, wherein the train operation demand includes target level information indicating a target on-board device and information indicating a target non-standard function to be added in the target on-board device; An information detection unit, configured to detect whether there is a designated code module in the business customization layer that can realize the target non-standard function according to the information of the target non-standard function in the train operation requirement acquired by the requirement acquisition unit; An information pulling unit is used to pull the specified code module if the information detection unit detects that it exists, and pull the standard code module corresponding to the standard function in the target vehicle-mounted device in the application service layer and the general service layer according to the target level information, and the information pulling unit includes: A first pulling module is used to pull, according to the target hierarchical information, a code module corresponding to a standard unique function in the target vehicle-mounted device from a code library of the application business layer, wherein the standard unique function is a standard function not available in vehicle-mounted devices of other hierarchical levels, wherein each code module in the code library of the application business layer has corresponding hierarchical information; A second pulling module is used to pull the code module corresponding to the standard universal function in the target vehicle-mounted device from the code library of the universal business layer, wherein the standard universal function is the same standard function between the target vehicle-mounted device and the vehicle-mounted devices of other levels, wherein each code module in the code library of the universal business layer has a corresponding function tag; a first information integration module, configured to integrate the code in the code module corresponding to the standard unique function pulled by the first pulling module and the code in the code module corresponding to the standard general function pulled by the second pulling module, so as to obtain a standard code module corresponding to the standard function in the target vehicle-mounted device; The information integration unit is used to integrate the designated code module pulled by the information pulling unit with the code in the standard code module to obtain a target code module, so as to utilize the code in the target code module to meet the train operation requirements.
8. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the non-standard function implementation method based on the vehicle-mounted application system as described in any one of claims 1 to 5.
9. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the non-standard function implementation method based on the vehicle-mounted application system as described in any one of claims 1 to 5.
