Board card upgrading method and system of rail transit signal system security product
By automatically identifying and judging serial port logs, the problems of low success rate and efficiency in rail transit signal system board upgrades are solved, and an efficient and reliable board upgrade process is achieved.
Patent Information
- Application Number
- CN202510650503.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2025-10-10
AI Technical Summary
In the existing technology, during the upgrade process of rail transit signal system boards, the upgrade success rate and efficiency are low, making it difficult to improve both at the same time.
The board type is automatically identified through the first serial port log and preset rules. During the programming process, it is determined whether the second serial port log contains preset tags, and the operation process is automatically triggered, avoiding manual judgment and scene uncertainty.
It significantly improves the upgrade success rate and efficiency, reduces dependence on professionals, and reduces subjective uncertainty and resource waste.
Smart Images

Figure CN120762684A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rail transit signal systems, and in particular to a board upgrade method and system for rail transit signal system safety products. Background Art
[0002] With the rapid development of electronic technology and computer technology, in order to improve the overall performance of the signal system, the board technology used in the rail transit signal system is also constantly updated. The existing technology mainly improves the overall performance and reliability of the signal system by upgrading the board in the form of replacing the board. For example, the automatic protection system and on-board control equipment of the train with patent publication number CN116373947A, which is installed on the base frame, cooperates with multiple functional boards and the first main board to realize the complete functions of the automatic protection system. When a function in the automatic protection system fails or needs to be upgraded, only the corresponding functional board needs to be replaced, and the other functional boards can continue to be used. However, when replacing a board, the user needs to verify the current board type by looking at the board silkscreen. In some complex scenarios, accurate identification of the board using the silkscreen alone is difficult, resulting in a low upgrade success rate. To improve this, existing technologies also use serial port logs generated during board upgrades to identify the board type. However, only professionals can identify the board type from the serial port logs and perform the corresponding upgrade operations. Furthermore, because the upgrade process involves multiple commands, professionals are required to determine the next upgrade command based on the feedback from the lower computer after each command is sent. This high reliance on professionals results in low upgrade efficiency. Therefore, improving upgrade success rates while simultaneously increasing upgrade efficiency is a pressing technical issue. Summary of the Invention
[0003] To address the technical problem that existing technologies have difficulty improving upgrade success rates while also increasing upgrade efficiency, the present invention provides a board upgrade method and system for rail transit signal system safety products. This method automatically identifies and obtains the board type based on the first serial port log and preset rules, avoiding the uncertainty of manual judgment and scenario uncertainty, thereby significantly improving the upgrade success rate. Furthermore, during the programming process, the method automatically determines whether the acquired second serial port log contains a preset tag indicating the next upgrade command, and triggers the corresponding operation process based on the automatic judgment result. This eliminates the need for professionals to analyze feedback information line by line to determine subsequent operations during the upgrade process, thereby significantly improving upgrade efficiency. This overcomes the technical problem that existing technologies have difficulty improving upgrade success rates while also increasing upgrade efficiency.
[0004] To solve the above technical problems, the present invention provides a board upgrade method for a rail transit signal system safety product, comprising the following steps: S1: Send the upgrade command to the offline position and obtain the first serial port log generated by the offline position; S2: Identify the board and obtain the board type based on the first serial port log and preset rules; S3: Fill in the corresponding programming mode according to the board type, and use the upgrade command to program the board in the corresponding programming mode; S4: During the programming process, the second serial port log generated by the offline device is obtained, and it is determined whether the obtained second serial port log contains a preset tag. If it is determined that the second serial port log contains the preset tag, the programming is continued, and S4 is executed in a loop until the programming is completed. Otherwise, it indicates that the upgrade has failed.
[0005] After adopting the above technical solution, the present invention has the following advantages: Automatically identifying the board and obtaining the board type based on the first serial port log and preset rules avoids the uncertainty of manual judgment and the uncertainty of the scenario, thereby significantly improving the upgrade success rate. At the same time, during the burning process, by automatically judging whether the obtained second serial port log contains a preset tag indicating the continuation of the next upgrade command, and triggering the corresponding operation process based on the automatic judgment result, the upgrade process does not need to rely on professionals to analyze feedback information one by one to determine subsequent operations, thereby significantly improving the upgrade efficiency. At the same time, it also avoids the subjective uncertainty of professionals in the analysis process, further improving the upgrade success rate, and overcoming the technical problem in the existing technology that it is difficult to improve the upgrade success rate while improving the upgrade efficiency; By filling in the corresponding programming mode according to the board type, professionals do not need to perform manual configuration during each upgrade, further improving the upgrade efficiency.
[0006] Preferably, in S2, the board types include VC1 board, VC2 board, VC3 board and VC5 board.
[0007] Preferably, the S2 further includes: When the board card identification is unsuccessful and the number of unsuccessful board card identification is less than the preset number, the information of unsuccessful board card identification is sent to the lower computer, prompting the lower computer to generate a third serial port log, and perform board card identification according to the third serial port log and the preset rules to obtain the board card type; When the board card identification is unsuccessful and the number of unsuccessful board card identification attempts is greater than or equal to a preset number, the same information in the first serial port log and the third serial port log is extracted, and after the preset rules are updated with the same information, the board card identification is performed according to the third serial port log and the preset rules to obtain the board card type.
[0008] In this solution, when the number of unsuccessful board card identification attempts is less than a preset number, it indicates that the first serial port log is erroneous or has been tampered with by the outside world. Therefore, the lower computer is prompted to generate a third serial port log to obtain the board card type, thereby reducing the error recognition rate caused by environmental noise or external tampering. In addition, when the number of unsuccessful board card identification attempts is greater than or equal to the preset number, it indicates that the rule corresponding to the board card does not exist in the preset rules. Therefore, when the number is greater than or equal to the preset number, the preset rules are updated with the same information in the first serial port log and the third serial port log, and the board card type is obtained again. By performing corresponding operations by comparing with the preset number of times, the characteristics of the board card type that does not exist in the preset rules can be self-learned, and its characteristics can be added to the preset rules for subsequent board card type identification, thereby improving the flexibility of the preset rules and the accuracy of board card type identification.
[0009] Preferably, the S4 further includes: Extract the start time of the board programming and the serial port time of the second serial port log. When the absolute difference between the serial port time and the start time is less than the preset difference, determine whether the obtained second serial port log contains a preset tag. When the absolute difference between the serial port time and the start time is greater than or equal to the preset difference, it indicates that the upgrade failed.
[0010] In this solution, when the absolute difference is greater than or equal to the preset difference, it indicates that a timeout has occurred. When a timeout occurs, it is unclear whether the extracted serial port time is the serial port time of the second serial port log corresponding to the current upgrade command or the serial port time of the second serial port log corresponding to another upgrade command. Therefore, when the absolute difference is greater than or equal to the preset difference, it indicates that the upgrade has failed, avoiding the waste of computing resources caused by processing error logs and improving the success rate of the upgrade.
[0011] Preferably, before S1, the step further includes: configuring the burning directory and the network card corresponding to the board.
[0012] Beneficial effects of this program: Automatically identifying the board and obtaining the board type based on the first serial port log and preset rules avoids the uncertainty of manual judgment and the uncertainty of the scenario, thereby significantly improving the upgrade success rate. At the same time, during the burning process, by automatically judging whether the obtained second serial port log contains a preset tag indicating the continuation of the next upgrade command, and triggering the corresponding operation process based on the automatic judgment result, the upgrade process does not need to rely on professionals to analyze feedback information one by one to determine subsequent operations, thereby significantly improving the upgrade efficiency. At the same time, it also avoids the subjective uncertainty of professionals in the analysis process, further improving the upgrade success rate, and overcoming the technical problem in the existing technology that it is difficult to improve the upgrade success rate while improving the upgrade efficiency; Fill in the corresponding programming mode according to the board type, so professionals do not need to manually configure each upgrade process, further improving the upgrade efficiency; When the number of unsuccessful board card identification attempts is less than a preset number, the lower computer is prompted to generate a third serial port log to obtain the board card type, thereby reducing the error recognition rate caused by environmental noise or external tampering. In addition, when the number of unsuccessful board card identification attempts is greater than or equal to a preset number, the preset rules are updated using the same information in the first and third serial port logs, and the board card type is obtained again. By performing corresponding operations based on the comparison with the preset number of times, the characteristics of the board card type that does not exist in the preset rules can be self-learned and added to the preset rules for subsequent board card type identification, thereby improving the flexibility of the preset rules and the accuracy of board card type identification. When the absolute difference is greater than or equal to the preset difference, it indicates that a timeout has occurred. Therefore, when it is greater than or equal to the preset difference, it indicates that the upgrade has failed, avoiding the waste of computing resources caused by processing error logs and improving the success rate of the upgrade.
[0013] The present invention also provides a board upgrade system for a rail transit signal system safety product, which is applicable to the board upgrade method for the rail transit signal system safety product, and includes a burning mode acquisition module, a burning module, and a state control module; The burn mode acquisition module is used to send the upgrade command to the offline position, and obtain the first serial port log generated by the offline position, perform board identification based on the first serial port log and preset rules to obtain the board type, and fill in the corresponding burn mode according to the board type; In the corresponding programming mode, the programming module is used to program the board through the upgrade command, and during the programming process, it prompts the status control module to work; The status control module is used to obtain the second serial port log generated by the offline machine, and determine whether the obtained second serial port log contains a preset tag. When it is determined that the second serial port log contains the preset tag, the working state is maintained until the burning is completed, otherwise an upgrade failure message is generated.
[0014] Preferably, it also includes a display module for displaying the burning process.
[0015] Preferably, it also includes an IP clearing module for clearing the newly added IP configuration during the burning process.
[0016] Beneficial effects of this program: Automatically identifying the board and obtaining the board type based on the first serial port log and preset rules avoids the uncertainty of manual judgment and the uncertainty of the scenario, thereby significantly improving the upgrade success rate. At the same time, during the burning process, by automatically judging whether the obtained second serial port log contains a preset tag indicating the continuation of the next upgrade command, and triggering the corresponding operation process based on the automatic judgment result, the upgrade process does not need to rely on professionals to analyze feedback information one by one to determine subsequent operations, thereby significantly improving the upgrade efficiency. At the same time, it also avoids the subjective uncertainty of professionals in the analysis process, further improving the upgrade success rate, and overcoming the technical problem in the existing technology that it is difficult to improve the upgrade success rate while improving the upgrade efficiency; Fill in the corresponding programming mode according to the board type, so professionals do not need to manually configure each upgrade process, further improving the upgrade efficiency; By displaying the programming steps, users can quickly locate the location of any faults during the programming process, improving troubleshooting efficiency. The IP clearing module clears newly added IP configurations during the programming process, eliminating the impact of the newly added IP on network performance, avoiding the risk of IP conflicts, and improving upgrade stability and reliability.
[0017] The present invention also provides a computer device comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor and the memory communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the board upgrade method for the rail transit signal system safety product.
[0018] The present invention also provides a computer-readable medium having a non-volatile program code executable by a processor, wherein the program code enables the processor to execute the steps of the board upgrade method of the rail transit signal system safety product. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Other features, objects, and advantages of the present invention will become more apparent upon reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are provided for the purpose of illustrating preferred embodiments only and are not to be construed as limiting the present invention. Like reference characters are used throughout the drawings to designate like parts.
[0020] Figure 1 Schematic diagram of the process of upgrading the board of a rail transit signal system safety product of the present invention; Figure 2 This is a schematic diagram of the first interface of the board upgrade system of the rail transit signal system safety product of the present invention; Figure 3The second interface schematic diagram of the board card upgrading system of the rail transit signal system safety product of the application. DETAILED DESCRIPTION
[0021] To make the objects, technical solutions and advantages of the present application clearer, further detailed description will be given to the present application in combination with the drawings and examples. It should be understood that the specific embodiments described herein are only the best mode of the present application, which are used to explain the present application and do not limit the protection scope of the present application. All other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the present application.
[0022] Before discussing the example embodiments in more detail, it should be mentioned that some example embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of the operations (or steps) can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The processes can be terminated when their operations are completed, but can also have additional steps not included in the drawings; the processes can correspond to methods, functions, procedures, subroutines, subprograms, etc.
[0023] Embodiment 1 As shown in the figure, the board card upgrading method of the rail transit signal system safety product comprises the following steps: Figure 1 S1: sending an upgrading command to a lower machine position and obtaining a first serial port log generated by the lower machine position. S1: sending an upgrading command to a lower machine position and obtaining a first serial port log generated by the lower machine position.
[0024] In this embodiment, the upper machine position and the lower machine position communicate through a serial communication protocol. After the upper machine position sends the upgrading command to the lower machine position, the lower machine position downloads the file to be burned from the TFTP server of the upper machine position and returns the first serial port log to the upper machine position. The upgrading command is composed of multiple single board upgrading commands. The first serial port log includes the board card identity of the current board card to be upgraded, state information and environmental parameters.
[0025] S2: identifying the board card type according to the first serial port log and a preset rule.
[0026] Specifically, in S2, the board card type includes VC1 board card, VC2 board card, VC3 board card and VC5 board card.
[0027] In the embodiment, the preset rule is specifically: when the first serial port log includes the string "MPC8349", it represents the VC1 board card; when the first serial port log includes the string "MV78200", it represents the VC2 board card; when the first serial port log includes the string "Board:Xilinx ZynqMP", it represents the VC3 board card; and when the first serial port log includes the string "kunlun D9 REF Board", it represents the VC5 board card. The string in the preset rule is taken as a benchmark to traverse the first serial port log to obtain the board card type, thereby avoiding the uncertainty of human judgment and the uncertainty of the scene, and significantly improving the upgrade success rate.
[0028] As a preferred embodiment, the S2 further includes: When the board card recognition is not successful, and the number of times of unsuccessful board card recognition is less than the preset number of times, information of the unsuccessful board card recognition is sent to the lower machine position, the lower machine generates a third serial port log, and the board card type is obtained by performing board card recognition according to the third serial port log and the preset rule; When the board card recognition is not successful, and the number of times of unsuccessful board card recognition is greater than or equal to the preset number of times, the same information in the first serial port log and the third serial port log is extracted, the preset rule is updated through the same information, and the board card type is obtained by performing board card recognition according to the third serial port log and the preset rule.
[0029] In the embodiment, the preset number of times is flexibly set according to the upgrade requirement. Specifically, the preset number of times corresponding to the upgrade requirement for maximizing the upgrade success rate is greater than the preset number of times corresponding to the upgrade requirement for improving the upgrade efficiency. The third serial port log includes the board card identity of the current board card to be upgraded, state information, and environmental parameters. When the number of times of unsuccessful board card recognition is less than the preset number of times, it indicates that the first serial port log is incorrect or tampered with by the outside world, so the lower machine is continuously prompted to generate a third serial port log to obtain the board card type, thereby reducing the error recognition rate caused by environmental noise or tampering by the outside world. When the number of times of unsuccessful board card recognition is greater than or equal to the preset number of times, it indicates that there is no rule corresponding to the board card in the preset rule. At this time, the state information and the environmental parameters in the serial port log obtained at different times will change accordingly, while the board card identity of the same board card type remains unchanged. Therefore, the same information in the first serial port log and the third serial port log can be extracted to update the preset rule. The characteristics of the board card type that does not exist in the preset rule are added to the preset rule through self-learning, so as to facilitate subsequent board card type recognition, thereby improving the flexibility of the preset rule and the accuracy of the board card type recognition.
[0030] S3: Fill in the corresponding programming mode according to the board type. In the corresponding programming mode, the board is programmed through the upgrade command. Filling in the corresponding programming mode according to the board type eliminates the need for professionals to manually configure each upgrade process, further improving upgrade efficiency.
[0031] S4: During the programming process, the second serial port log generated by the offline device is obtained, and it is determined whether the obtained second serial port log contains a preset tag. If it is determined that the second serial port log contains the preset tag, the programming is continued, and S4 is executed in a loop until the programming is completed. Otherwise, it indicates that the upgrade has failed.
[0032] In this embodiment, when the second serial port log contains success, it means that a preset tag is included. It should be noted that in the process of looping S4 for burning, the upgrade command executed is a single board upgrade command, which is executed in sequence according to the order of the single board upgrade commands, and each loop of burning executes a single board upgrade command. When all the single board upgrade commands are executed, it means that the burning is completed, and the loop is stopped at this time, otherwise it means that the upgrade has failed. After the upgrade fails, the user can choose whether to continue burning. If you choose to continue burning, it will switch to the backup burning mode and determine whether the last burning was debug. If it is debug, it will wait for the user to manually power off and restart the board, send the upgrade command to interrupt and enter the uboot mode, and the user will continue the burning steps after clicking to start burning. During the programming process, the system automatically determines whether the acquired second serial port log contains a preset tag indicating the next upgrade command. Based on the automatic determination result, the corresponding operation process is triggered. This eliminates the need for professionals to analyze feedback information piece by piece to determine subsequent operations. This significantly improves upgrade efficiency and avoids subjective uncertainty during analysis, further increasing the success rate of upgrades.
[0033] As a preferred embodiment, the S4 further includes: Extract the start time of the board programming and the serial port time of the second serial port log. When the absolute difference between the serial port time and the start time is less than the preset difference, determine whether the obtained second serial port log contains a preset tag. When the absolute difference between the serial port time and the start time is greater than or equal to the preset difference, it indicates that the upgrade failed.
[0034] It is understandable that the preset difference value changes continuously with the number of cycles. For example, if the extracted start time is 9:00 and the extracted serial port time is 9:01, the absolute difference value is 0.01. If the preset difference value is 0.02, the absolute difference value is less than the preset difference value. It is determined whether the second serial port log obtained contains the preset tag. If it does, the flashing process continues. At this time, since the start time remains unchanged while the extracted serial port time has changed, the preset difference value will also be sent and changed accordingly. By comparing with the preset difference value, any timeout can be discovered in a timely manner, avoiding the waste of computing resources caused by processing error logs, and also improving the success rate of the upgrade. In this embodiment, after the upgrade fails, the user can choose whether to continue flashing. If the user chooses to continue flashing, the system switches to the standby flashing mode and determines whether the last flashing was debug. If it was debug, the system waits for the user to manually power off and restart the board, sends the upgrade command to interrupt and enter uboot mode, and then continues the flashing process after the user clicks to start flashing.
[0035] Before S1, the process also includes: configuring the burning directory and network card corresponding to the board.
[0036] In this embodiment, after the user selects the single-board burning tab page, the user first performs the configuration process of the configuration items, selects the burning folder, selects the network card and clicks the "OK" button to automatically configure the network card IP and routing, checks the "Delete this newly added IP after burning is completed" / "Format Flash" / "Show Log" checkboxes as needed, selects the serial port for burning, clicks the "Open Serial Port" button, and the "Serial Port Status Light" displays green, indicating that the serial port has been opened. After receiving the serial port log, it is considered that the serial port communication is normal and the "Connection Status Light" is displayed as green. The user can now power off and restart the board, automatically identify the board type based on the serial port log and preset rules, and send a command to interrupt the restart process and enter UBOOT. After successful entry, the "Has entered UBOOT status light" is displayed as green. Depending on the board type, the optional options for the burning mode are filled in. Further, the user selects the burning mode and clicks the "Start Burning" button to start the upgrade.
[0037] Example 2: This embodiment also provides a board upgrade system for a rail transit signal system safety product, which is applicable to the board upgrade method for the rail transit signal system safety product, and includes a burning mode acquisition module, a burning module, and a status control module; The burn mode acquisition module is used to send the upgrade command to the offline position, and obtain the first serial port log generated by the offline position, perform board identification based on the first serial port log and preset rules to obtain the board type, and fill in the corresponding burn mode according to the board type; In the corresponding burning mode, the burning module is used to burn the board through the upgrade command, and during the burning process, it prompts the status control module to work; The status control module is used to obtain the second serial port log generated by the offline machine, and determine whether the obtained second serial port log contains a preset tag. When it is determined that the second serial port log contains the preset tag, the working state is maintained until the burning is completed, otherwise an upgrade failure message is generated.
[0038] like Figure 2 As shown in the figure, the board upgrade system for rail transit signal system safety products is specifically the BiSTAR burning tool. The upper and lower units communicate via a serial communication protocol. After the upper unit sends the upgrade command to the lower unit, the lower unit downloads the burning file from the upper unit's TFTP server and returns the first serial port log to the upper unit. The upgrade command consists of multiple single-board upgrade commands. The first serial port log contains the card identity, status information, and environmental parameters of the board currently being upgraded.
[0039] In this embodiment, the preset rule specifies that the string "MPC8349" in the first serial port log indicates a VC1 board; the string "MV78200" in the first serial port log indicates a VC2 board; the string "Board:Xilinx ZynqMP" in the first serial port log indicates a VC3 board; and the string "kunlun D9 REF Board" in the first serial port log indicates a VC5 board. Using the strings in the preset rule as a reference, the first serial port log is traversed to determine the board type, eliminating the uncertainty of manual judgment and scenario uncertainty, significantly improving the upgrade success rate.
[0040] In this embodiment, when the second serial port log contains success, it means that a preset tag is included. It should be noted that in the process of looping S4 for burning, the upgrade command executed is a single board upgrade command, which is executed in sequence according to the order of the single board upgrade commands, and each loop of burning executes a single board upgrade command. When all the single board upgrade commands are executed, it means that the burning is completed, and the loop is stopped at this time, otherwise it means that the upgrade has failed. After the upgrade fails, the user can choose whether to continue burning. If you choose to continue burning, it will switch to the backup burning mode and determine whether the last burning was debug. If it is debug, it will wait for the user to manually power off and restart the board, send the upgrade command to interrupt and enter the uboot mode, and the user will continue the burning steps after clicking to start burning. During the programming process, the system automatically determines whether the acquired second serial port log contains a preset tag indicating the next upgrade command. Based on the automatic determination result, the corresponding operation process is triggered. This eliminates the need for professionals to analyze feedback information piece by piece to determine subsequent operations. This significantly improves upgrade efficiency and avoids subjective uncertainty during analysis, further increasing the success rate of upgrades.
[0041] As a preferred embodiment, Figure 3 As shown, the device also includes a display module for displaying the programming process. By displaying the programming steps, it can help users quickly locate the location of the fault in the programming process, thereby improving the efficiency of troubleshooting.
[0042] As a preferred embodiment, Figure 3 As shown, it also includes an IP clearing module for clearing the newly added IP configuration during the burning process.
[0043] In this embodiment, the IP clearing module is displayed as a checkbox for the user to select. The checkbox is named "Delete newly added IPs after programming is complete." This module clears the newly added IP configurations during the programming process, eliminating the impact of the newly added IPs on network performance and avoiding the risk of IP conflicts, thereby improving the stability and reliability of the upgrade.
[0044] In another embodiment, Figure 3As shown, it also includes drop-down boxes for selecting the burning directory, the network card to be burned, the serial port to be burned, and the burning mode, so that users can perform visual burning configuration, which improves the convenience of burning configuration. The specific configuration is: after the user selects the single-board burning tab page, first configure the configuration items, select the burning folder, select the network card and click the "OK" button to automatically configure the network card IP and routing. As needed, check the "Delete newly added IP after burning is completed" / "Format Flash" / "Show log" checkboxes, select the serial port to be burned, and click the "Open Serial Port" button. If the "Serial Port Status Light" shows green, it means that the serial port has been opened. After receiving the serial port log, it is considered that the serial port communication is normal and the "Connection Status Light" shows green. The user can now power off and restart the board. The board type will be automatically identified based on the serial port log and preset rules. A command will be sent to interrupt the restart process and enter UBOOT. After successful entry, the "Has entered UBOOT status light" will be displayed as green. Depending on the board type, the optional options for the burning mode will be filled in. Further, the user selects the burning mode and clicks the "Start Burning" button to start the upgrade.
[0045] Example 3: This embodiment also provides a computer device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor and the memory communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the board upgrade method of the rail transit signal system safety product.
[0046] Example 4: This embodiment also provides a computer-readable medium having a non-volatile program code executable by a processor, wherein the program code enables the processor to execute the steps of the board upgrade method for a rail transit signal system safety product.
[0047] The specific implementation method described above is a preferred implementation method and system for the board card upgrade method and system of the rail transit signal system safety product of the present invention, and is not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to this specific implementation method. Any equivalent changes made in accordance with the shape and structure of the present invention are within the scope of protection of the present invention.
Claims
1. A board upgrade method for a rail transit signal system safety product, characterized in that: The following steps are involved: S1: Send the upgrade command to the offline position and obtain the first serial port log generated by the offline position; S2: Identify the board and obtain the board type based on the first serial port log and preset rules; S3: Fill in the corresponding programming mode according to the board type, and use the upgrade command to program the board in the corresponding programming mode; S4: During the programming process, the second serial port log generated by the offline device is obtained, and it is determined whether the obtained second serial port log contains a preset tag. If it is determined that the second serial port log contains the preset tag, the programming is continued, and S4 is executed in a loop until the programming is completed. Otherwise, it indicates that the upgrade has failed.
2. The board upgrade method for a rail transit signal system safety product according to claim 1, characterized in that: In S2, the board types include VC1 board, VC2 board, VC3 board and VC5 board.
3. The board upgrade method for a rail transit signal system safety product according to claim 1, characterized in that: Said S2 further comprises: When the board card identification is unsuccessful and the number of unsuccessful board card identification is less than the preset number, the information of unsuccessful board card identification is sent to the lower computer, prompting the lower computer to generate a third serial port log, and perform board card identification according to the third serial port log and the preset rules to obtain the board card type; When the board card identification is unsuccessful and the number of unsuccessful board card identification attempts is greater than or equal to a preset number, the same information in the first serial port log and the third serial port log is extracted, and after the preset rules are updated with the same information, the board card identification is performed according to the third serial port log and the preset rules to obtain the board card type.
4. The board upgrade method for a rail transit signal system safety product according to claim 1, characterized in that: Said S4 further comprises: Extract the start time of the board programming and the serial port time of the second serial port log. When the absolute difference between the serial port time and the start time is less than the preset difference, determine whether the obtained second serial port log contains a preset tag. When the absolute difference between the serial port time and the start time is greater than or equal to the preset difference, it indicates that the upgrade failed.
5. The board upgrade method for a rail transit signal system safety product according to claim 1, characterized in that: Before S1, the process also includes: configuring the burning directory and network card corresponding to the board.
6. A board upgrade system for a rail transit signal system safety product, applicable to the board upgrade method for a rail transit signal system safety product according to any one of claims 1 to 5, characterized in that: Including burning mode acquisition module, burning module and status control module; The burn mode acquisition module is used to send the upgrade command to the offline position, and obtain the first serial port log generated by the offline position, perform board identification based on the first serial port log and preset rules to obtain the board type, and fill in the corresponding burn mode according to the board type; In the corresponding burning mode, the burning module is used to burn the board through the upgrade command, and during the burning process, it prompts the status control module to work; The status control module is used to obtain the second serial port log generated by the offline machine, and determine whether the obtained second serial port log contains a preset tag. When it is determined that the second serial port log contains the preset tag, the working state is maintained until the burning is completed, otherwise an upgrade failure message is generated.
7. The board upgrade system for rail transit signal system safety products according to claim 6, characterized in that: It also includes a display module for displaying the burning process.
8. The board upgrade system for rail transit signal system safety products according to claim 6, characterized in that: It also includes an IP clearing module, which is used to clear the newly added IP configuration during the burning process.
9. A computer device comprising: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor and the memory communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the board upgrade method for a rail transit signal system safety product as described in any one of claims 1 to 5 above.
10. A computer-readable medium having a non-volatile program code executable by a processor, characterized in that The program code enables the processor to execute the steps of the board upgrade method for a rail transit signal system safety product as described in any one of claims 1 to 5 above.
Citation Information
Patent Citations
Automatic protection system of train and vehicle-mounted control equipment
CN116373947A