Vehicle-mounted equipment maintenance method and system and storage medium

By modifying the description file model of the vehicle equipment and generating operation command messages by the upper computer, the problem of modifying the underlying code during the maintenance of the vehicle equipment software is solved, and the effect of simplifying the maintenance process and saving time is achieved.

CN119814810APending Publication Date: 2025-04-11CRRC ZHUZHOU ELECTRIC LOCOMOTIVE RESEARCH INSTITUTE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311307652.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-10
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

If new functions or modifications are required during vehicle equipment software maintenance, the underlying maintenance software code needs to be modified, resulting in complex and time-consuming maintenance process.

Method used

The upper computer receives equipment maintenance instructions, obtains the description file model of the vehicle equipment, modifys the model, and generates operation command messages to the lower computer. The lower computer maintains the vehicle equipment software according to the instructions.

Benefits of technology

Reduces the complexity of the maintenance process and saves a lot of maintenance time. Even if the functions change, the underlying maintenance programs and code do not need to change accordingly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814810A_ABST
    Figure CN119814810A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle-mounted equipment maintenance method and system and a storage medium, and the method comprises the following steps: an upper computer receives an equipment maintenance instruction, and obtains a description file model of vehicle-mounted equipment corresponding to the equipment maintenance instruction; the upper computer modifies the description file model according to the equipment maintenance instruction; the upper computer sends connection request information to the lower computer according to the equipment maintenance instruction; the lower computer establishes a TCP server and receives the connection request information through the TCP server; the lower computer establishes communication connection with the upper computer based on the connection request information; the upper computer generates an operation instruction message based on the modified description file model and transmits the operation instruction message to the lower computer; the lower computer receives the operation instruction message and extracts a maintenance operation instruction in the operation instruction message; and the lower computer maintains vehicle-mounted equipment software in the train according to a software maintenance instruction in the maintenance operation instruction. The method has the effects of reducing the complexity of the maintenance process of the vehicle-mounted equipment and saving a lot of maintenance time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of equipment maintenance, and in particular relates to a vehicle-mounted equipment maintenance method, system and storage medium. Background Art

[0002] With the development of the urban rail transit industry, the functions of on-board equipment are becoming increasingly complex, and the difficulty of software maintenance is also increasing. The core on-board equipment includes network control systems, transmission control systems, human-computer interaction systems, on-board logic control units, safety monitoring systems, etc. During software upgrade maintenance and fault log downloading, maintenance personnel are required to request operating time and then get on the vehicle to perform related operations. Both developers and after-sales personnel hope to solve the maintenance work of on-board equipment with less manpower and more efficient methods.

[0003] As the application of industrial Ethernet in the train field, train on-board Ethernet has become the mainstream technical development direction of current train network technology. When the on-board equipment of the train needs to be updated and maintained, a computer or mobile device can be used to access the train on-board network through wired or wireless means. Through Ethernet, the on-board equipment can be easily and efficiently upgraded for software, data downloads, and some other necessary maintenance operations. At present, regarding the software maintenance of on-board equipment, there are different upper computer tool software for different on-board equipment. Each tool can realize the functions of software update and data download, but in the actual maintenance and update process, if a new function needs to be added or some functions need to be modified, the underlying maintenance software needs to be modified and released again. The overall maintenance process is complicated and time-consuming. Summary of the invention

[0004] The present invention provides a vehicle-mounted equipment maintenance method, system and storage medium to solve the problem that when the vehicle-mounted equipment software needs to add new functions or modify functions, it is necessary to modify the underlying maintenance software code, which makes the overall maintenance process complicated and time-consuming.

[0005] In a first aspect, the present invention provides a vehicle-mounted equipment maintenance method, which is applied to a vehicle-mounted equipment maintenance system, wherein the vehicle-mounted equipment maintenance system comprises a lower computer arranged in a train and an upper computer running maintenance tool software, and the method comprises the following steps:

[0006] The host computer receives the device maintenance instruction and obtains a description file model of the vehicle-mounted device corresponding to the device maintenance instruction;

[0007] The host computer modifies the description file model according to the device maintenance instruction;

[0008] The upper computer sends a connection request message to the lower computer according to the equipment maintenance instruction;

[0009] The lower computer establishes a TCP server and receives the connection request information through the TCP server;

[0010] The lower computer establishes a communication connection with the upper computer based on the connection request information;

[0011] The upper computer generates an operation instruction message based on the modified description file model, and transmits the operation instruction message to the lower computer;

[0012] The lower computer receives the operation instruction message and extracts the maintenance operation instruction in the operation instruction message;

[0013] The lower computer maintains the on-board equipment software in the train according to the software maintenance instructions in the maintenance operation instructions.

[0014] Optionally, the method further comprises the following steps:

[0015] The lower computer reads the authentication information in the connection request information;

[0016] The lower computer determines whether the information format of the authentication information conforms to a preset format;

[0017] If the lower computer determines that the information format does not conform to the preset format, the lower computer does not establish a communication connection with the upper computer, and the lower computer enters a listening request state to listen to the connection request information of the upper computer;

[0018] If the lower computer determines that the information format conforms to the preset format, the lower computer establishes a communication connection with the upper computer based on the connection request information.

[0019] Optionally, the lower computer establishing a communication connection with the upper computer based on the connection request information comprises the following steps:

[0020] The lower computer determines whether the TCP server is in a busy state;

[0021] If the lower computer determines that the TCP server is in the busy state, the lower computer sends a server busy message to the upper computer;

[0022] If the lower computer determines that the TCP server is not in the busy state, the lower computer sends an ACK message to the upper computer through the TCP server;

[0023] The host computer receives the ACK message and initiates a connection establishment request to the TCP server of the slave computer;

[0024] The lower computer establishes a communication connection with the upper computer through the TCP server at every preset connection interval until the TCP server successfully establishes a connection with the upper computer or the number of communication connections established exceeds a preset number threshold.

[0025] Optionally, the upper computer generates an operation instruction message based on the modified description file model, and transmits the operation instruction message to the lower computer, including the following steps:

[0026] The host computer identifies the last X bits of the ACK message, where X<N, and N is the total number of bits of the ACK message;

[0027] The host computer selects a corresponding target encryption method from a preset encryption method list based on the value of the last bit of the ACK message;

[0028] The host computer extracts a first key from the device maintenance instruction, and uses the last X bits of the ACK message as a second key;

[0029] The host computer combines the first key and the second key and encrypts the modified description file model into an encrypted file model using the target encryption method;

[0030] The upper computer generates an operation instruction message in combination with the encrypted file model and the first key, and transmits the operation instruction message to the lower computer.

[0031] Optionally, the lower computer receiving the operation instruction message and extracting the maintenance operation instruction in the operation instruction message comprises the following steps:

[0032] The lower computer receives the operation instruction message and parses it to obtain the first key;

[0033] The lower computer cuts the last X bits of the ACK message, and selects a corresponding target decryption method from a preset decryption method list based on the value of the last bit of the ACK message;

[0034] The lower computer combines the first key and the last X bits of the ACK message and decrypts the operation instruction message using the target decryption method;

[0035] The lower computer identifies and extracts the maintenance operation instruction from the decrypted operation instruction message.

[0036] Optionally, the operation instruction message includes an encryption key, an operation function name, an operation target file name, operation target file storage location information, an operation instruction function interface, a rollback flag and an operation target file backup path.

[0037] Optionally, the method further comprises the following steps:

[0038] The lower computer determines whether the operation function name in the operation instruction message is an update operation and whether there is a rollback flag in the operation instruction message;

[0039] If the lower computer determines that the operation function name is an update operation and the rollback flag exists in the operation instruction message, the lower computer determines whether the backup needs to be updated according to the rollback flag;

[0040] If the lower computer determines that the backup needs to be updated according to the rollback flag, the lower computer backs up the target file corresponding to the operation target file name from the operation target file storage location information to the operation target file backup path.

[0041] Optionally, the method further comprises the following steps:

[0042] The lower computer receives the operation instruction message and extracts the display instruction in the operation instruction message;

[0043] The lower computer obtains the device information and software version information of the vehicle-mounted device based on the display instruction;

[0044] The lower computer sends the device information and the software version information to the upper computer so that the upper computer displays the device information and the software version information through an interactive interface.

[0045] In a second aspect, the present invention further provides a vehicle-mounted equipment maintenance system, the vehicle-mounted equipment maintenance system comprising a lower computer arranged in a train and an upper computer running maintenance tool software, wherein:

[0046] The upper computer is used to receive the device maintenance instruction, obtain the description file model of the vehicle-mounted device corresponding to the device maintenance instruction, modify the description file model according to the device maintenance instruction, and send connection request information to the lower computer according to the device maintenance instruction;

[0047] The lower computer is used to establish a TCP server and receive the connection request information through the TCP server, and establish a communication connection with the upper computer based on the connection request information;

[0048] After the lower computer and the upper computer establish a communication connection, the upper computer is further used to generate an operation instruction message based on the modified description file model, and transmit the operation instruction message to the lower computer;

[0049] After the lower computer and the upper computer establish a communication connection, the lower computer is further used to receive the operation instruction message and extract the maintenance operation instruction in the operation instruction message, and maintain the on-board equipment software in the train according to the software maintenance instruction in the maintenance operation instruction.

[0050] In a third aspect, the present invention further provides a readable storage medium having instructions stored thereon, the instructions being used to enable a machine to execute the vehicle-mounted equipment maintenance method described in the first aspect of the present application.

[0051] The beneficial effects of the present invention are:

[0052] The host computer receives the equipment maintenance instruction and obtains the description file model of the on-board equipment corresponding to the equipment maintenance instruction. A description file model with a unified format is designed for each on-board equipment that needs to be maintained to describe the files, steps, modes, methods and other information involved in the maintenance. The description file model can be adjusted later according to application requirements. The host computer also models this description file. The purpose of modeling is that the host computer can easily identify and extract the corresponding information in the description file, such as the file name, the location where the file is stored, the operation interface, etc. The host computer modifies the description file model according to the equipment maintenance instruction. After the host computer establishes a communication connection with the lower computer, the host computer generates an operation instruction message based on the modified description file model, and transmits the operation instruction message to the lower computer. The lower computer receives the operation instruction message and extracts the maintenance operation instruction in the operation instruction message. The lower computer then maintains the on-board equipment software in the train according to the software maintenance instruction in the maintenance operation instruction. Therefore, even if there is a need to add new functions or modify the software of the lower-level vehicle equipment, it is only necessary to change the description file model through the upper computer, and the underlying maintenance procedures and codes do not need to change with the changes in requirements, which reduces the complexity of the maintenance process and saves a lot of maintenance time. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a flow chart of the vehicle-mounted equipment maintenance method of the present invention.

[0054] Figure 2 It is a schematic diagram of the contents of the description file in the present invention. DETAILED DESCRIPTION

[0055] The invention discloses a vehicle-mounted equipment maintenance method.

[0056] Reference Figure 1 The vehicle-mounted equipment maintenance method is applied to a vehicle-mounted equipment maintenance system, the vehicle-mounted equipment maintenance system includes a lower computer arranged in a train and an upper computer running maintenance tool software, and the method includes the following steps:

[0057] The host computer receives the equipment maintenance instruction and obtains the description file model of the vehicle-mounted equipment corresponding to the equipment maintenance instruction;

[0058] The host computer modifies the description file model according to the equipment maintenance instruction;

[0059] The upper computer sends a connection request message to the lower computer according to the equipment maintenance instruction;

[0060] The lower computer establishes a TCP server and receives connection request information through the TCP server;

[0061] The lower computer establishes a communication connection with the upper computer based on the connection request information;

[0062] The upper computer generates an operation instruction message based on the modified description file model, and transmits the operation instruction message to the lower computer;

[0063] The lower computer receives the operation instruction message and extracts the maintenance operation instruction in the operation instruction message;

[0064] The lower computer maintains the on-board equipment software in the train according to the software maintenance instructions in the maintenance operation instructions.

[0065] In this embodiment, the lower computer set in the train included in the on-board equipment maintenance system can be the control system of the on-board equipment, and the upper computer can be the operation and maintenance system of the train itself, or it can be an intelligent device running maintenance tool software carried by the maintenance personnel. The upper computer first receives the equipment maintenance instruction input by the maintenance personnel. Since the equipment maintenance instruction contains the unique name or number of the on-board equipment to be maintained, the description file model of the corresponding on-board equipment can be retrieved from the preset model database according to the equipment maintenance instruction. The preset model database pre-stores the description file models of all on-board equipment.

[0066] Reference Figure 2 The contents contained in the description file include maintenance functions such as update, download, display, rollback, backup, and identity recognition. It also includes the target file name, the file storage location of the target file, the relevant instructions corresponding to the maintenance function, the instruction function interface, the rollback flag, the file backup path of the target file, and the file function description of the target file. The host computer can model all description files in advance, obtain the description file model of all vehicle-mounted equipment and store it in the model database. For some key information in the modeled description file model, maintenance personnel can directly enter it in the host computer, or click to select, modify, delete, etc. in the form of a dialog box.

[0067] After modifying and adjusting the description file model, the upper computer sends a connection request message to the corresponding lower computer based on the equipment maintenance instruction. The communication interaction between the lower computer and the upper computer can adopt a method similar to the three-way handshake of the TCP protocol. The lower computer establishes a TCP server through Socket and listens to the connection request of the upper computer. After receiving the connection request message, the lower computer establishes a communication connection with the upper computer. At this time, data can be exchanged between the upper computer and the lower computer. The upper computer generates an operation instruction message based on the modified description file model and transmits the operation instruction message to the lower computer. Specifically, the upper computer uploads the operation instruction message to the specific folder of the lower computer on-board equipment through the SFTP protocol. The data transmission adopts the SFTP protocol with higher security. Finally, the lower computer receives the operation instruction message and extracts the maintenance operation instruction in the operation instruction message, and then maintains the on-board equipment software in the train according to the software maintenance instruction in the maintenance operation instruction.

[0068] The implementation principle of this embodiment is:

[0069] The host computer receives the equipment maintenance instruction and obtains the description file model of the on-board equipment corresponding to the equipment maintenance instruction. A description file model with a unified format is designed for each on-board equipment that needs to be maintained to describe the files, steps, modes, methods and other information involved in the maintenance. The description file model can be adjusted later according to application requirements. The host computer also models this description file. The purpose of modeling is that the host computer can easily identify and extract the corresponding information in the description file, such as the file name, the location where the file is stored, the operation interface, etc. The host computer modifies the description file model according to the equipment maintenance instruction. After the host computer establishes a communication connection with the lower computer, the host computer generates an operation instruction message based on the modified description file model, and transmits the operation instruction message to the lower computer. The lower computer receives the operation instruction message and extracts the maintenance operation instruction in the operation instruction message. The lower computer then maintains the on-board equipment software in the train according to the software maintenance instruction in the maintenance operation instruction. Therefore, even if there is a need to add new functions or modify the software of the lower-level vehicle equipment, it is only necessary to change the description file model through the upper computer, and the underlying maintenance procedures and codes do not need to change with the changes in requirements, which reduces the complexity of the maintenance process and saves a lot of maintenance time.

[0070] In one embodiment, the vehicle-mounted equipment maintenance method further includes the following steps:

[0071] The lower computer reads the authentication information in the connection request information;

[0072] The lower computer determines whether the information format of the authentication information conforms to the preset format;

[0073] If the lower computer determines that the information format does not conform to the preset format, the lower computer does not establish a communication connection with the upper computer, and the lower computer enters the listening request state to listen to the connection request information of the upper computer;

[0074] If the lower computer determines that the information format conforms to the preset format, the lower computer establishes a communication connection with the upper computer based on the connection request information.

[0075] In this embodiment, an authentication link for the host computer is added during the maintenance process to ensure that only the host computer running specific maintenance tool software can connect to the vehicle-mounted equipment. The specific method is that each time the host computer initiates a connection request, it needs to send a specific format of authentication information to the lower computer, such as ICSP_MS. After receiving this specific authentication information, the lower computer determines whether the information format of the authentication information conforms to the preset format; if the lower computer determines that the information format does not conform to the preset format, the lower computer does not establish a communication connection with the host computer, and the lower computer enters the listening request state to listen to the connection request information of the upper computer; if the lower computer determines that the information format conforms to the preset format, the lower computer establishes a communication connection with the upper computer based on the connection request information.

[0076] In one embodiment, the lower computer establishes a communication connection with the upper computer based on the connection request information, including the following steps:

[0077] The lower computer determines whether the TCP server is busy;

[0078] If the lower computer determines that the TCP server is busy, it sends a server busy message to the upper computer;

[0079] If the lower computer determines that the TCP server is not busy, the lower computer sends an ACK message to the upper computer through the TCP server;

[0080] The upper computer receives the ACK message and initiates a connection request to the TCP server of the lower computer;

[0081] The lower computer establishes a communication connection with the upper computer through the TCP server at every preset connection interval until the TCP server successfully establishes a connection with the upper computer or the number of established communication connections exceeds a preset number threshold.

[0082] In this embodiment, due to the communication restrictions of the TCP server, it is necessary to determine whether the server is in a busy state before formally establishing a communication connection with the host computer. If the lower computer determines that the TCP server is in a busy state, the lower computer sends a server busy message to the upper computer. If the lower computer determines that the TCP server is not in a busy state, the lower computer sends an ACK message to the upper computer through the TCP server. The upper computer receives the ACK message and initiates a connection establishment request to the TCP server of the lower computer. The lower computer establishes a communication connection with the upper computer through the TCP server at every preset connection interval until the TCP server successfully establishes a connection with the host computer or the number of times the communication connection is established exceeds the preset number threshold. The number threshold is usually preset to 3 times, and a maximum of 3 attempts to establish a connection are made. After 3 failed attempts, the process ends directly.

[0083] In one implementation manner, the upper computer generates an operation instruction message based on the modified description file model, and transmits the operation instruction message to the lower computer, including the following steps:

[0084] The host computer identifies the last X bits of the ACK message, X<N, N is the total number of bits in the ACK message;

[0085] The host computer selects the corresponding target encryption method from the preset encryption method list based on the value of the last bit of the ACK message;

[0086] The host computer extracts the first key from the device maintenance instruction and uses the last X bits of the ACK message as the second key;

[0087] The host computer combines the first key and the second key and encrypts the modified description file model into an encrypted file model through a target encryption method;

[0088] The upper computer generates an operation instruction message in combination with the encrypted file model and the first key, and transmits the operation instruction message to the lower computer.

[0089] In this embodiment, the ACK (Acknowledge character) message is a confirmation character. In data communication, a transmission control character sent by the receiving station to the sending station. It indicates that the data sent has been confirmed to be received correctly. If the receiving party successfully receives the data, it will reply with an ACK data. Usually the ACK signal has its own fixed format and length, and is replied by the receiving party to the sending party. In order to ensure the security of the data transmission process, the data needs to be encrypted. The upper computer extracts the first key from the equipment maintenance instruction, and the first key can be pre-set by the maintenance personnel. The ACK message is a confirmation message sent by the lower computer to the upper computer. The upper computer can identify the last X bits of the ACK message data as the second key, and the generation of the second key will not be subject to human intervention. The maintenance personnel can set the size of X in advance to adjust the complexity of data encryption. The larger the X, the higher the complexity, but the numerical value of X cannot exceed the total number of bits N of the ACK message.

[0090] On the other hand, in order to further enhance the security of the data transmission process, the corresponding target encryption method can also be selected from the preset encryption method list according to the last digit of the ACK message data. For example, the preset encryption method list includes 1. RSA encryption method; 2. ECC encryption method; 3. Symmetric encryption / asymmetric encryption combined encryption method; 4. Diffie-Hellman key exchange encryption method. When it is recognized that the last digit of the ACK message data is 2, the ECC encryption method is selected as the target encryption method. Therefore, the effect of data encryption can be significantly enhanced through dual keys, the randomness of the second key, the indefinite length of the second key, and the randomness of the encryption method, which effectively reduces the possibility of encrypted data being brute-force cracked and improves the security of data transmission.

[0091] In one embodiment, the lower computer receives the operation instruction message and extracts the maintenance operation instruction in the operation instruction message, including the following steps:

[0092] The lower computer receives the operation instruction message and parses it to obtain the first key;

[0093] The lower computer cuts the last X bits of the ACK message, and selects the corresponding target decryption method from the preset decryption method list based on the value of the last bit of the ACK message;

[0094] The lower computer combines the first key and the last X bits of the ACK message and decrypts the operation instruction message using the target decryption method;

[0095] The lower computer identifies and extracts the maintenance operation instruction from the decrypted operation instruction message.

[0096] In this embodiment, since the first key belongs to a public key, the lower computer can directly parse and obtain the first key after receiving the operation instruction message. The lower computer also cuts the last X bits of the ACK message according to the size of X set in advance to obtain the private key. At the same time, based on the value of the last bit of the ACK message, the corresponding target decryption method is selected from the preset decryption method list. The preset decryption method list is in a one-to-one correspondence with the methods in the preset encryption method list. For example, the encryption method with sequence number 1 in the encryption method list is the RSA encryption method, and the decryption method with sequence number 1 in the decryption method list is the RSA decryption method.

[0097] In one implementation manner, the operation instruction message includes an encryption key, an operation function name, an operation target file name, operation target file storage location information, an operation instruction function interface, a rollback flag, and an operation target file backup path.

[0098] In this embodiment, the vehicle-mounted equipment maintenance method further includes the following steps:

[0099] The lower computer determines whether the operation function name in the operation command message is an update operation and whether there is a rollback flag in the operation command message;

[0100] If the lower computer determines that the operation function name is an update operation and there is a rollback flag in the operation instruction message, the lower computer determines whether the backup needs to be updated based on the rollback flag;

[0101] If the lower computer determines that the backup needs to be updated according to the rollback flag, the lower computer backs up the target file corresponding to the operation target file name from the operation target file storage location information to the operation target file backup path.

[0102] In this embodiment, the rollback flag is mainly used to trigger the software rollback function, for example, when the rollback flag is TRUE, the rollback function is enabled, and when the rollback flag is FALSE, the rollback function is not enabled. The software rollback function can realize the rollback of a specific software or file to the version before the update when the program file is incorrectly or failed to be brushed. For some key programs or configuration files in the lower computer, it is necessary to have the function of rolling back to the previous version. For these files, the upper computer will carry the rollback flag information when sending the operation instruction message, and the lower computer will parse the received operation instruction message. If there is a rollback flag, when executing the update operation, the currently running program and related files will be backed up to the specified backup folder first, and the backup process will ensure the integrity of the file, and then the update operation will be executed. If there are abnormal problems such as update failure after the update, the lower computer will enable the rescue system, and the rescue system can be connected to the upper computer normally. The upper computer can send a rollback command to the rescue system to roll back the program or file corresponding to the lower computer to the previous version.

[0103] In one embodiment, the vehicle-mounted equipment maintenance method further includes the following steps:

[0104] The lower computer receives the operation instruction message and extracts the display instruction in the operation instruction message;

[0105] The lower computer obtains the device information and software version information of the vehicle-mounted device based on the display instruction;

[0106] The lower computer sends the device information and software version information to the upper computer so that the upper computer displays the device information and software version information through an interactive interface.

[0107] In this embodiment, the display instruction is mainly used to obtain the device information and software version information of the lower-level vehicle-mounted equipment, where the device information includes information such as the device name, device number, and device status, and the software version information includes information such as the firmware, application, and configuration file running in the device, and the device information and software version information are sent to the upper computer to be displayed to the maintenance personnel through the maintenance tool software.

[0108] The present invention also discloses a vehicle-mounted equipment maintenance system, which includes a lower computer arranged in a train and an upper computer running maintenance tool software, wherein:

[0109] The upper computer is used to receive the equipment maintenance instruction, obtain the description file model of the vehicle-mounted equipment corresponding to the equipment maintenance instruction, modify the description file model according to the equipment maintenance instruction, and send connection request information to the lower computer according to the equipment maintenance instruction;

[0110] The lower computer is used to establish a TCP server and receive connection request information through the TCP server, and establish a communication connection with the upper computer based on the connection request information;

[0111] After the lower computer and the upper computer establish a communication connection, the upper computer is further used to generate an operation instruction message based on the modified description file model and transmit the operation instruction message to the lower computer;

[0112] After the lower computer and the upper computer establish a communication connection, the lower computer is also used to receive the operation instruction message and extract the maintenance operation instruction in the operation instruction message, and maintain the on-board equipment software in the train according to the software maintenance instruction in the maintenance operation instruction.

[0113] The implementation principle of this embodiment is:

[0114] The host computer receives the equipment maintenance instruction and obtains the description file model of the on-board equipment corresponding to the equipment maintenance instruction. A description file model with a unified format is designed for each on-board equipment that needs to be maintained to describe the files, steps, modes, methods and other information involved in the maintenance. The description file model can be adjusted later according to application requirements. The host computer also models this description file. The purpose of modeling is that the host computer can easily identify and extract the corresponding information in the description file, such as the file name, the location where the file is stored, the operation interface, etc. The host computer modifies the description file model according to the equipment maintenance instruction. After the host computer establishes a communication connection with the lower computer, the host computer generates an operation instruction message based on the modified description file model, and transmits the operation instruction message to the lower computer. The lower computer receives the operation instruction message and extracts the maintenance operation instruction in the operation instruction message. The lower computer then maintains the on-board equipment software in the train according to the software maintenance instruction in the maintenance operation instruction. Therefore, even if there is a need to add new functions or modify the software of the lower-level vehicle equipment, it is only necessary to change the description file model through the upper computer, and the underlying maintenance procedures and codes do not need to change with the changes in requirements, which reduces the complexity of the maintenance process and saves a lot of maintenance time.

[0115] The present invention also discloses a readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the vehicle-mounted equipment maintenance method described in any of the above-mentioned embodiments.

[0116] The implementation principle of this embodiment is:

[0117] Through the program call, the host computer receives the equipment maintenance instruction and obtains the description file model of the on-board equipment corresponding to the equipment maintenance instruction. A description file model with a unified format is designed for each on-board equipment that needs to be maintained to describe the files, steps, modes, methods and other information involved in the maintenance. The description file model can be adjusted according to the application requirements later. The host computer also models this description file. The purpose of modeling is that the host computer can easily identify and extract the corresponding information in the description file, such as the file name, the location where the file is stored, the operation interface, etc. The host computer modifies the description file model according to the equipment maintenance instruction. After the host computer establishes a communication connection with the lower computer, the host computer generates an operation instruction message based on the modified description file model, and transmits the operation instruction message to the lower computer. The lower computer receives the operation instruction message and extracts the maintenance operation instruction in the operation instruction message. The lower computer then maintains the on-board equipment software in the train according to the software maintenance instruction in the maintenance operation instruction. Therefore, even if there is a need to add new functions or modify the software of the lower-level vehicle equipment, it is only necessary to change the description file model through the upper computer, and the underlying maintenance procedures and codes do not need to change with the changes in requirements, which reduces the complexity of the maintenance process and saves a lot of maintenance time.

[0118] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of protection of the present application is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0119] One or more embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the present application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present application should be included in the protection scope of the present application.

Claims

1. A vehicle-mounted equipment maintenance method, applied to a vehicle-mounted equipment maintenance system, characterized in that: The vehicle-mounted equipment maintenance system comprises a lower computer arranged in a train and an upper computer running maintenance tool software, and the method comprises the following steps: The host computer receives the device maintenance instruction and obtains a description file model of the vehicle-mounted device corresponding to the device maintenance instruction; The host computer modifies the description file model according to the device maintenance instruction; The upper computer sends a connection request message to the lower computer according to the equipment maintenance instruction; The lower computer establishes a TCP server and receives the connection request information through the TCP server; The lower computer establishes a communication connection with the upper computer based on the connection request information; The upper computer generates an operation instruction message based on the modified description file model, and transmits the operation instruction message to the lower computer; The lower computer receives the operation instruction message and extracts the maintenance operation instruction in the operation instruction message; The lower computer maintains the on-board equipment software in the train according to the software maintenance instructions in the maintenance operation instructions.

2. The vehicle-mounted equipment maintenance method according to claim 1, characterized in that: The method further comprises the steps of: The lower computer reads the authentication information in the connection request information; The lower computer determines whether the information format of the authentication information conforms to a preset format; If the lower computer determines that the information format does not conform to the preset format, the lower computer does not establish a communication connection with the upper computer, and the lower computer enters a listening request state to listen to the connection request information of the upper computer; If the lower computer determines that the information format conforms to the preset format, the lower computer establishes a communication connection with the upper computer based on the connection request information.

3. The vehicle-mounted equipment maintenance method according to claim 1 or 2, characterized in that: The lower computer establishes a communication connection with the upper computer based on the connection request information, comprising the following steps: The lower computer determines whether the TCP server is in a busy state; If the lower computer determines that the TCP server is in the busy state, the lower computer sends a server busy message to the upper computer; If the lower computer determines that the TCP server is not in the busy state, the lower computer sends an ACK message to the upper computer through the TCP server; The host computer receives the ACK message and initiates a connection establishment request to the TCP server of the slave computer; The lower computer establishes a communication connection with the upper computer through the TCP server at every preset connection interval until the TCP server successfully establishes a connection with the upper computer or the number of communication connections established exceeds a preset number threshold.

4. The vehicle-mounted equipment maintenance method according to claim 3, characterized in that: The upper computer generates an operation instruction message based on the modified description file model, and transmits the operation instruction message to the lower computer, including the following steps: The host computer identifies the last X bits of the ACK message, where X<N, and N is the total number of bits of the ACK message; The host computer selects a corresponding target encryption method from a preset encryption method list based on the value of the last bit of the ACK message; The host computer extracts a first key from the device maintenance instruction, and uses the last X bits of the ACK message as a second key; The host computer combines the first key and the second key and encrypts the modified description file model into an encrypted file model using the target encryption method; The upper computer generates an operation instruction message in combination with the encrypted file model and the first key, and transmits the operation instruction message to the lower computer.

5. The vehicle-mounted equipment maintenance method according to claim 4, characterized in that: The lower computer receives the operation instruction message and extracts the maintenance operation instruction in the operation instruction message, including the following steps: The lower computer receives the operation instruction message and parses it to obtain the first key; The lower computer cuts the last X bits of the ACK message, and selects a corresponding target decryption method from a preset decryption method list based on the value of the last bit of the ACK message; The lower computer combines the first key and the last X bits of the ACK message and decrypts the operation instruction message using the target decryption method; The lower computer identifies and extracts the maintenance operation instruction from the decrypted operation instruction message.

6. The vehicle-mounted equipment maintenance method according to claim 1, characterized in that: The operation instruction message includes an encryption key, an operation function name, an operation target file name, operation target file storage location information, an operation instruction function interface, a rollback flag, and an operation target file backup path.

7. The vehicle-mounted equipment maintenance method according to claim 6, characterized in that: The method further comprises the steps of: The lower computer determines whether the operation function name in the operation instruction message is an update operation and whether there is a rollback flag in the operation instruction message; If the lower computer determines that the operation function name is an update operation and the rollback flag exists in the operation instruction message, the lower computer determines whether the backup needs to be updated according to the rollback flag; If the lower computer determines that the backup needs to be updated according to the rollback flag, the lower computer backs up the target file corresponding to the operation target file name from the operation target file storage location information to the operation target file backup path.

8. The vehicle-mounted equipment maintenance method according to claim 1, characterized in that: The method further comprises the steps of: The lower computer receives the operation instruction message and extracts the display instruction in the operation instruction message; The lower computer obtains the device information and software version information of the vehicle-mounted device based on the display instruction; The lower computer sends the device information and the software version information to the upper computer so that the upper computer displays the device information and the software version information through an interactive interface.

9. A vehicle-mounted equipment maintenance system, characterized in that: The vehicle-mounted equipment maintenance system comprises a lower computer arranged in the train and an upper computer running maintenance tool software, wherein: The upper computer is used to receive the device maintenance instruction, obtain the description file model of the vehicle-mounted device corresponding to the device maintenance instruction, modify the description file model according to the device maintenance instruction, and send connection request information to the lower computer according to the device maintenance instruction; The lower computer is used to establish a TCP server and receive the connection request information through the TCP server, and establish a communication connection with the upper computer based on the connection request information; After the lower computer and the upper computer establish a communication connection, the upper computer is further used to generate an operation instruction message based on the modified description file model, and transmit the operation instruction message to the lower computer; After the lower computer and the upper computer establish a communication connection, the lower computer is further used to receive the operation instruction message and extract the maintenance operation instruction in the operation instruction message, and maintain the on-board equipment software in the train according to the software maintenance instruction in the maintenance operation instruction.

10. A readable storage medium having instructions stored thereon, characterized in that: The instruction is used to enable the machine to execute the vehicle-mounted equipment maintenance method described in any one of claims 1 to 8 of the present application.

Citation Information

Patent Citations

  • Internet of Vehicles safety communication method, vehicle-mounted terminal, server and system

    CN106453269A

  • Remote maintenance updating method and device for vehicle-mounted equipment application software of locomotive

    CN106897087A

  • Vehicle-mounted applet offline updating method and vehicle-mounted applet offline updating system

    CN114721680A

  • Vehicle data acquisition method, vehicle-mounted remote information processor and storage medium

    CN115225699A

  • Method and system for upgrading software

    WO2013078951A1