Software deployment method and system for driver man-machine interface screen and medium

Through ICMP and TCP full connection scanning, DMI devices are automatically identified and connected, which solves the problem of cumbersome and error-prone DMI device deployment process, and achieves a more efficient and accurate software deployment process.

CN119484495APending Publication Date: 2025-02-18CASCO SIGNAL LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411655921.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the field of rail transit, the software deployment process of DMI equipment is cumbersome and error-prone, especially due to the wide variety of equipment, different initial IP addresses, and diverse supported terminal connections and file transfer protocols, which increases the operation difficulty and error rate.

Method used

Determine the device address of the DMI device through ICMP LAN host scan, use TCP full connection scan to sniff the available connection protocol, establish terminal control connection and file transfer connection, automatically identify the device model and operating system, select the correct software version, and use it File transfer connection uploads and sets up software and packets.

Benefits of technology

Reduces manual input and configuration steps, improves deployment accuracy and efficiency, reduces requirements for operator professional skills, and reduces the possibility of human error.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484495A_ABST
    Figure CN119484495A_ABST
Patent Text Reader

Abstract

The invention relates to a software deployment method and system for a driver man-machine interface screen and a medium, and the method comprises the following steps: scanning connected DMI equipment through an ICMP local area network host, and determining an equipment address; sniffing available connection protocols through TCP full connection scanning, and establishing terminal control connection and file transmission connection; identifying a device model and an operating system through terminal control connection, and determining a correct software version and a correct data version; and uploading and expanding the software package and the data package through the file transmission connection, setting an operating system according to the device address, and completing software deployment of the confirmed connected device. Compared with the prior art, the steps of manual input and configuration are reduced, the deployment accuracy and efficiency are improved, and the requirement for professional skills of operators is lowered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rail transportation, and in particular to a software deployment method, system and medium for a driver human-machine interface screen. Background Art

[0002] In the field of rail transit, the driver machine interface (DMI) screen is a key device for the interaction between onboard equipment and the driver. DMI usually consists of two parts: display hardware and supporting software, which together realize the display of driving information and the input of operating instructions.

[0003] At present, the software and data installation and deployment of DMI display screens are often carried out through Ethernet. However, there are many inconveniences and problems in this deployment process. During the first installation, the operator needs to get on the vehicle and manually install the software, deploy the data, and set up the system according to the specific model, operating system, and other information of the DMI device. This method is not only time-consuming and labor-intensive, but also requires high professional skills of the operator and is prone to errors.

[0004] To make matters more complicated, due to the particularity of the rail transit field, there are many types of DMI equipment, and they are often customized according to various actual needs. This customized production method leads to significant differences between different equipment, which are specifically manifested in the following aspects:

[0005] 1. Different initial IP addresses when leaving the factory: Different batches of DMI devices may be assigned different initial IP addresses when leaving the factory, which increases the complexity and error rate during installation and deployment.

[0006] 2. Different terminal connection and file transfer protocols: Different DMI devices may support different terminal connection (such as telnet, ssh) and file transfer (such as ftp, sftp) protocols, which requires operators to be proficient in the use of multiple protocols, increasing the difficulty of operation.

[0007] 3. Different software and data packages: Since DMI devices may run on different operating systems, or even if the operating system is the same, there may be differences in software and data packages due to factors such as dependency libraries. Such differences make software deployment complex and difficult to unify.

[0008] 4. Different system settings: For the same model of trains running on the same line, the system IP and routing settings of the DMI device may also be different depending on the train number. If the settings are wrong, the device will not be able to communicate with the on-board system, affecting the normal operation of the train. Summary of the invention

[0009] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a software deployment method, system and medium for a driver human-machine interface screen, which reduces the steps of manual input and configuration, improves the accuracy and efficiency of deployment, and reduces the requirements for the professional skills of operators.

[0010] The purpose of the present invention can be achieved by the following technical solutions:

[0011] A method for deploying software for a driver's human-machine interface screen, characterized in that it comprises the following steps:

[0012] Scan the connected DMI device through the ICMP local area network host to determine the device address of the connected DMI device;

[0013] Sniffing available connection protocols through TCP full connection scanning, establishing a terminal control connection and a file transfer connection for the connected DMI device;

[0014] Identify the device model and operating system of the connected DMI device through the terminal control connection, and determine the correct software version and data version;

[0015] The software package and the data package are uploaded through the file transfer connection, the operating system is set according to the device address, and the software deployment for the confirmed connected DMI device is completed.

[0016] Furthermore, the step of confirming the device address of the connected DMI device includes:

[0017] Construct an ICMP ECHO Request packet and send it to the initial IP address of each model of DMI device, and determine the device address of the connected DMI device according to the fed-back ICMP ECHO Reply packet.

[0018] Furthermore, the terminal control connection includes a telnet connection or an ssh connection.

[0019] Furthermore, the terminal control connection is realized through the telnetlib library and the Paramiko library.

[0020] Furthermore, the file transfer connection includes an ftp connection or an sftp connection.

[0021] Furthermore, the file transfer connection is realized through the ftplib library and the Paramiko library.

[0022] Furthermore, a TCP connection is performed on the port of the connected DMI device through the TCP full connection scan, and a terminal control connection and a file transfer connection of the connected DMI device are established according to the successfully connected port.

[0023] Furthermore, the steps of establishing the terminal control connection and the file transfer connection of the connected DMI device include:

[0024] Perform a TCP three-way handshake connection test on port 22 of the DMI device. If a connection can be established, use ssh and sftp to establish a terminal control connection and a file transfer connection.

[0025] If port 22 cannot be connected, test ports 20, 21 and 23, and perform TCP three-way handshake connection tests on ports 20, 21 and 23 respectively. When all three ports can establish connections, use telnet and ftp to establish terminal control connection and file transfer connection.

[0026] Furthermore, if the terminal control connection or the file transfer connection fails to be established, the corresponding port status and connection status information is given on the upper computer graphical interface.

[0027] Furthermore, the software version, data version and device model are displayed on the upper computer graphical interface, and the train number and the first and last end information of the connected DMI device are confirmed.

[0028] Furthermore, the step of identifying the device model and operating system of the connected device includes:

[0029] The uname command is sent through the terminal control connection to read the manufacturer information file content of each model of DMI device, and the specific device model and the running operating system are identified through keywords.

[0030] Furthermore, the operating system includes Windows, Linux or QNX.

[0031] Furthermore, when the operating system is set up, the tar package, tar.gz compressed package and zip compressed package are uploaded to a temporary folder through the file transfer connection and decompressed to the DMI path of the device root directory.

[0032] Furthermore, the operating system is configured to write commands for setting the device address and route into an operating system startup script and a network configuration file, and to send a software built-in setting script through the terminal control connection and execute to complete the operating system setting.

[0033] Furthermore, the operation results of each step of software deployment are displayed on the upper computer graphical interface.

[0034] Furthermore, for the steps whose operation results are failures, the upper computer graphical interface displays operation logs and error prompt information.

[0035] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the software deployment method of the driver human-machine interface screen can be implemented.

[0036] According to another aspect of the present invention, there is provided a software deployment system for a driver human-machine interface screen, comprising:

[0037] A device address determination module, used to scan the connected DMI device through the ICMP local area network host to determine the device address of the connected DMI device;

[0038] A connection establishment module, used to sniff available connection protocols and establish a terminal control connection and a file transfer connection for the connected device;

[0039] A version determination module, used to identify the device model and operating system of the connected DMI device through the terminal control connection, and select the correct software version and data version;

[0040] An operation confirmation module is used to display the software version, data version and device model on the upper computer graphical interface, and confirm the train number and the first and last end information of the connected DMI device;

[0041] The software deployment module is used to upload and expand the software package and data packet through the file transfer connection, perform operating system settings according to the device address, and complete the software deployment for the confirmed connected DMI device.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] 1. The present invention constructs an ICMP ECHO Request packet and sends it to the initial IP address of each model of DMI device through ICMP LAN host scanning and TCP full connection scanning, determines the device address of the connected DMI device according to the fed-back ICMP ECHO Reply packet, sniffs the available connection protocols through TCP full connection scanning, establishes the terminal control connection and file transfer connection of the connected DMI device, automatically discovers and identifies the connected device and the connection protocol it supports, and reduces the steps of manual input and configuration.

[0044] 2. The present invention sends the uname command through the terminal control connection, reads the manufacturer information file content of each model of DMI device, determines the specific device model and the running operating system through keyword recognition, and improves the accuracy and efficiency of software deployment.

[0045] 3. The present invention uploads tar packages, tar.gz compressed packages and zip compressed packages to a temporary folder through a file transfer connection and decompresses them to the DMI path of the device root directory, and executes system setting scripts in sequence, thereby realizing the automation of system settings and reducing the possibility of human errors.

[0046] 4. The present invention introduces a host computer graphical interface, displays the operation results on the host computer graphical interface, provides operation logs and error prompt information for failed steps, makes the operation process more intuitive and simple, and the operator only needs to select and confirm through the graphical interface, which helps the operator to quickly locate the problem and take corresponding solutions, reducing the requirements for professional skills. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic flow chart of a software deployment method for a driver human-machine interface screen proposed by the present invention;

[0048] Figure 2 This is a schematic diagram of the initial IP address confirmation interface;

[0049] Figure 3 Flowchart for sniffing and establishing connections for available connection protocols;

[0050] Figure 4 Flowchart for device model and operating system identification;

[0051] Figure 5 A schematic diagram of the interface for confirming the deployment information;

[0052] Figure 6 Flowchart for software, data, and system setup deployment. DETAILED DESCRIPTION

[0053] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0054] Abbreviations involved:

[0055] Driver Machine Interface: Driver Machine Interface, DMI

[0056] Internet Control Message Protocol: Internet Control Message Protocol, ICMP

[0057] Transmission Control Protocol: Transmission Control Protocol, TCP

[0058] Example 1

[0059] This embodiment provides a software deployment method for a driver human-machine interface screen, such as Figure 1 As shown, the following steps are included:

[0060] S1. Scan the connected DMI device through the ICMP LAN host to determine the device address of the connected DMI device.

[0061] The steps to confirm the device address of a connected DMI device include:

[0062] Enter the initial IP address range of the device or use the built-in IP address of the tool. The software automatically selects to construct an ICMPECHO Request packet and sends it to the initial IP address of each model of DMI device. Based on the feedback ICMP ECHO Reply packet, the device address of the connected DMI device is determined.

[0063] like Figure 2 As shown, the initial IP address is set in a wizard-like manner, including two modes: using the built-in IP table in the software configuration file or entering an IP address range, such as entering 10.92.1-86.146.

[0064] S2. Sniff the available connection protocols through TCP full connection scanning, and establish the terminal control connection and file transfer connection of the connected DMI device.

[0065] You can use the connection protocol sniffing to perform TCP connection to the port of the connected DMI device through TCP full connection scanning, and establish the terminal control connection and file transfer connection of the connected DMI device based on the successfully connected port. Figure 3 As shown in the figure, perform port tests on each host: first, perform a TCP three-way handshake connection test on port 22 of the target host. If the connection test is successful, use ssh and sftp to establish a terminal control connection and a file transfer connection. If port 22 cannot be connected, continue to perform TCP three-way handshake connection tests on ports 20, 21, and 23 respectively. If all three ports can establish connections, use telnet and ftp to establish a terminal control connection and a file transfer connection. If any connection fails to be established, the corresponding port status and connection status information will be given on the upper computer graphical interface.

[0066] The terminal control connection includes a telnet connection or an ssh connection, and the terminal control connection is implemented through the telnetlib library and the Paramiko library.

[0067] File transfer connections include ftp connections or sftp connections, which are implemented through the ftplib library and the Paramiko library.

[0068] S3. Identify the device model and operating system of the connected DMI device through the terminal control connection, and determine the correct software version and data version.

[0069] The DMI devices supported by the present invention can obtain specific model information in the device information. The device model and system identification process are as follows: Figure 4 As shown, first send the uname-s command provided by POSIX through the control connection. If the command is executed successfully, proceed to the next step according to the operating system name in the standard output stream. If the command fails, it means that the target host may be running the Windows operating system. The control connection sends the ver command to verify whether the target host is Windows. If the host is a Linux or QNX operating system, send the uname-r command and uname-n command through the control connection, and search for keywords of the model name in the standard output stream, such as TX2037, HTWY, etc., to determine the device model.

[0070] like Figure 5 As shown, the software version, data version, and DMI device model to be deployed are displayed on the upper computer graphical interface, and the operator selects the train number, the first and last ends of the train, and other information and confirms it again. If the information is confirmed to be incorrect, the operator can choose to deploy some devices or go back to the previous step and scan again.

[0071] S4. Upload and expand the software package and data packet through the file transfer connection, set the operating system according to the device address, and complete the software deployment for the confirmed connected DMI device.

[0072] When setting up the operating system, upload the tar package, tar.gz compressed package, and zip compressed package to a temporary folder through the file transfer connection and decompress it to the DMI path of the device root directory.

[0073] Write the commands for setting the device address and route into the operating system startup script and network configuration file, send the software's built-in setting script through the terminal control connection and execute it to complete the operating system setting.

[0074] The specific software deployment process in this embodiment is as follows Figure 6 As shown in the figure, the control connection sends the slay or killall command (depending on the operating system) to stop the application; upload the software and data packets to the temporary directory of the DMI device through the file transfer module; call the corresponding decompression command under the control connection to extract them to the root directory of the device; execute the corresponding system setting scripts in sequence. If the above steps are completed successfully, the deployment is successful. If a step fails, the execution stops, the deployment fails, and the execution print log is displayed.

[0075] The operation results of each step of software deployment are displayed on the upper computer graphical interface. For steps with failed operation results, the upper computer graphical interface will display the operation log and error prompt information, which will help operators quickly locate the problem and take corresponding solutions.

[0076] Example 2

[0077] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a software deployment method for a driver human-machine interface screen can be implemented.

[0078] The rest is the same as in Example 1.

[0079] Example 3

[0080] This embodiment provides a software deployment system for a driver human-machine interface screen, including:

[0081] The device address determination module is used to scan the connected DMI device through the ICMP local area network host and determine the device address of the connected DMI device;

[0082] A connection establishment module is used to sniff available connection protocols and establish terminal control connections and file transfer connections for connected devices;

[0083] A version determination module, used to identify the device model and operating system of the connected DMI device through the terminal control connection, and determine the correct software version and data version;

[0084] The software deployment module is used to upload software packages and data packets through a file transfer connection, set up the operating system according to the device address, and complete the software deployment for the confirmed connected DMI device.

[0085] The rest is the same as in Example 1.

[0086] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A software deployment method for a driver human-machine interface screen, characterized in that: The following steps are involved: Scan the connected DMI device through the ICMP local area network host to determine the device address of the connected DMI device; Sniffing available connection protocols through TCP full connection scanning, establishing a terminal control connection and a file transfer connection for the connected DMI device; Identify the device model and operating system of the connected DMI device through the terminal control connection, and determine the correct software version and data version; The software package and the data package are uploaded through the file transfer connection, the operating system is set according to the device address, and the software deployment for the confirmed connected DMI device is completed.

2. The software deployment method for the driver human-machine interface screen according to claim 1 is characterized in that: The step of confirming the device address of the connected DMI device includes: Construct an ICMP ECHO Request packet and send it to the initial IP address of each model of DMI device, and determine the device address of the connected DMI device according to the fed-back ICMP ECHO Reply packet.

3. The software deployment method for the driver human-machine interface screen according to claim 1 is characterized in that: The terminal control connection includes a telnet connection or an ssh connection.

4. The software deployment method for the driver human-machine interface screen according to claim 3 is characterized in that: The terminal control connection is realized by telnetlib library and Paramiko library.

5. The software deployment method for the driver human-machine interface screen according to claim 1 is characterized in that: The file transfer connection includes an FTP connection or an SFTP connection.

6. The software deployment method for the driver human-machine interface screen according to claim 5 is characterized in that: The file transfer connection is implemented through the ftplib library and the Paramiko library.

7. The software deployment method for the driver human-machine interface screen according to claim 1 is characterized in that: Through the TCP full connection scanning, a TCP connection is performed on the port of the connected DMI device, and a terminal control connection and a file transfer connection of the connected DMI device are established according to the successfully connected port.

8. The software deployment method for the driver human-machine interface screen according to claim 7 is characterized in that: The steps of establishing the terminal control connection and the file transfer connection of the connected DMI device include: Perform a TCP three-way handshake connection test on port 22 of the DMI device. If a connection can be established, use ssh and sftp to establish a terminal control connection and a file transfer connection. If port 22 cannot be connected, test ports 20, 21 and 23, and perform TCP three-way handshake connection tests on ports 20, 21 and 23 respectively. When all three ports can establish connections, use telnet and ftp to establish terminal control connection and file transfer connection.

9. The software deployment method for the driver human-machine interface screen according to claim 8, characterized in that: If the terminal control connection or the file transfer connection fails to be established, the corresponding port status and connection status information are given on the upper computer graphical interface.

10. The software deployment method for the driver human-machine interface screen according to claim 1, characterized in that: The software version, data version and device model are displayed on the upper computer graphical interface, and the train number and the first and last end information of the connected DMI device are confirmed.

11. The software deployment method for the driver human-machine interface screen according to claim 1, characterized in that: The step of identifying the device model and operating system of the connected device includes: The uname command is sent through the terminal control connection to read the manufacturer information file content of each model of DMI device, and the specific device model and the running operating system are identified through keywords.

12. The software deployment method for the driver human-machine interface screen according to claim 1, characterized in that: The operating system includes Windows, Linux or QNX.

13. The software deployment method for the driver human-machine interface screen according to claim 1, characterized in that: When the operating system is set up, the tar package, tar.gz compressed package and zip compressed package are uploaded to a temporary folder through the file transfer connection and decompressed to the DMI path of the device root directory.

14. The software deployment method for the driver human-machine interface screen according to claim 1, characterized in that: The operating system is configured to write commands for setting the device address and route into an operating system startup script and a network configuration file, and to send a built-in setting script in the software through the terminal control connection and execute the setting of the operating system.

15. The software deployment method for the driver human-machine interface screen according to claim 1, characterized in that: The operation results of each step of software deployment are displayed on the upper computer graphical interface.

16. The software deployment method for the driver human-machine interface screen according to claim 15, characterized in that: For the steps whose operation results are failures, the upper computer graphical interface displays the operation log and error prompt information.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it can implement the software deployment method for the driver human-machine interface screen as described in any one of claims 1 to 16.

18. A software deployment system for a driver human-machine interface screen, characterized in that: include: A device address determination module, used to scan the connected DMI device through the ICMP local area network host to determine the device address of the connected DMI device; A connection establishment module, used to sniff available connection protocols and establish a terminal control connection and a file transfer connection for the connected device; A version determination module, used to identify the device model and operating system of the connected DMI device through the terminal control connection, and select the correct software version and data version; The software deployment module is used to upload and expand the software package and data packet through the file transfer connection, perform operating system settings according to the device address, and complete the software deployment for the confirmed connected DMI device.