Rsu redundancy handover test method and system
By systematically testing the main equipment and backup equipment of the RSU redundant switching system, the problems of high manpower and time costs and low reliability of the existing testing methods were solved, an efficient and automated testing process was achieved, and the reliability of the RSU redundant switching system and the stability of the ETC gantry system were ensured.
Patent Information
- Application Number
- CN202211356626.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-01
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2042-11-01
AI Technical Summary
The existing RSU redundant switching system testing method consumes a lot of manpower and time costs, lacks systematic and complete testing rules, and leads to frequent missed tests, affecting the application reliability of the system and the operational stability of the ETC gantry system.
Provided is an RSU redundant switching test method. By establishing connections with the primary and backup devices in the RSU redundant switching system, a test is performed based on a preset redundant switching mechanism test scheme, including primary and backup switching, status information upload and consistency testing, power cutoff and restoration, connection cable disconnection and restoration, antenna head connection and disconnection, and other operations, and a test report is generated.
It improves test efficiency, automation, comprehensiveness and reliability, saves manpower and time costs, and ensures the effectiveness of the RSU redundant switching system and the operational stability of the ETC gantry system.
Smart Images

Figure CN115903447B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of roadside equipment (RSU), and in particular to an RSU redundant switching test method and system. Background Art
[0002] By constructing ETC gantry systems at locations where the high-speed driving path changes and vigorously building ETC toll lanes, the convenience and efficiency of high-speed ETC toll collection can be effectively improved. The roadside RSU (Road Side Unit) equipment of the ETC gantry system adopts a redundant configuration mode. The two sets of RSU controllers perform logical switching according to regulations based on different operating states to form an RSU redundant switching system. Figure 1 In order to ensure the effectiveness of the RSU redundant switching system, it is necessary to conduct regular operation tests on the RSU redundant switching system.
[0003] At present, the existing testing method for RSU redundant switching systems is usually for technicians to manually test each component in the RSU redundant switching system on a regular basis. This method not only consumes a lot of manpower and time costs, affecting the testing efficiency, but also lacks systematic and complete testing rules and insufficient personnel experience, which may lead to missed tests, affecting the application reliability of the RSU redundant switching system and further affecting the operating stability of the ETC gantry system. Summary of the Invention
[0004] In view of this, embodiments of the present application provide an RSU redundancy switching test method and system to eliminate or improve one or more defects in the prior art.
[0005] One aspect of the present application provides an RSU redundancy switching test method, including:
[0006] Establish connections with the first RSU controller currently serving as the master device and the second RSU controller currently serving as the backup device in the RSU redundant switching system, and test the current master device and backup device based on a preset redundant switching mechanism test plan;
[0007] Performing a master-slave switch between the first RSU controller and the second RSU controller so that the second RSU controller serves as the current master device, and then testing the current master device and the backup device based on a preset redundant switching mechanism test scheme;
[0008] Perform a master-slave switch between the second RSU controller and the first RSU controller so that the first RSU controller serves as the master device again.
[0009] In some embodiments of the present application, the redundant switching mechanism testing scheme includes:
[0010] Working status test of main equipment;
[0011] Simulated transaction status test of the master device;
[0012] Status information upload and consistency testing of main and backup equipment;
[0013] Power cut-off and restoration testing of standby equipment;
[0014] Disconnection and restoration test of the connection cable between the main equipment and the backup equipment;
[0015] Also, connection and disconnection testing between the master device and each RSU antenna head in the RSU redundant switching system.
[0016] In some embodiments of the present application, after restoring the first RSU controller and the second RSU controller to a primary device and a backup device respectively, the method further includes:
[0017] Performing a master-slave switching test on the first RSU controller and the second RSU controller after communication is disconnected;
[0018] The communication between the first RSU controller and the second RSU controller is restored, and the first RSU controller and the second RSU controller are restored to be the main device and the backup device respectively.
[0019] In some embodiments of the present application, after restoring the first RSU controller and the second RSU controller to a primary device and a backup device respectively, the method further includes:
[0020] Perform a firmware upgrade test on the first RSU controller and the second RSU controller.
[0021] In some embodiments of the present application, the testing of the current master device and the backup device based on the preset redundant switching mechanism testing scheme includes:
[0022] Performing a working status test on the current master device to determine whether the master device is in a normal working state;
[0023] Initializing a preset PSAM card and performing online authorization settings to enable the main device to enter a transaction mode, and performing a simulated transaction state test on the main device to determine whether the main device is in a normal transaction state;
[0024] Performing status information upload and consistency testing on the master device and the backup device to determine whether the master device and the backup device regularly upload their respective status information, and whether the status information of the master device and the backup device respectively meets their respective corresponding working states;
[0025] Performing a power cut-off and restoration test on the backup device to determine whether the primary device operates normally when the power to the backup device is cut off, and whether the backup device resumes normal operation after power is restored;
[0026] Performing a disconnection and restoration test on the connection cable between the master device and the backup device to determine whether the master device operates normally, whether the backup device is abnormal, and whether communication between the master device and the backup device is abnormal when the connection cable between the master device and the backup device is disconnected, and determining whether communication between the master device and the backup device is restored after the connection cable between the master device and the backup device is restored;
[0027] In addition, the connection and disconnection tests between the main device and each RSU antenna head in the RSU redundant switching system are performed to determine the number of RSU antennas configured by the main device when the main device is disconnected from the RSU antenna head, the number of normally connected RSU antennas and the antenna status information of each RSU antenna head, and determine whether the antenna status information meets the preset threshold.
[0028] In some embodiments of the present application, the performing of a working status test on the current master device includes:
[0029] Establish a TCP connection with the current master device and initialize the master device;
[0030] Receive the heartbeat information frame uploaded by the master device, and test whether the master device has entered the master device working state based on various fields of the heartbeat information frame.
[0031] In some embodiments of the present application, further comprising:
[0032] Record the test result data obtained after testing the current main device and backup device, and generate a corresponding test report based on the test result data;
[0033] The test report is output.
[0034] Another aspect of the present application further provides an RSU redundancy switching test system, comprising:
[0035] A primary test module is used to establish connections with the first RSU controller currently serving as the master device and the second RSU controller currently serving as the backup device in the RSU redundant switching system, and test the current master device and backup device based on a preset redundant switching mechanism test scheme;
[0036] A master-slave switching and secondary testing module is used to perform a master-slave switching between the first RSU controller and the second RSU controller so that the second RSU controller serves as the current master device, and then test the current master device and the backup device based on a preset redundant switching mechanism test scheme;
[0037] The master-slave recovery module is used to perform master-slave switching between the second RSU controller and the first RSU controller so that the first RSU controller serves as the master device again.
[0038] Another aspect of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the RSU redundant switching test method when executing the computer program.
[0039] Another aspect of the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the RSU redundancy switching test method when executed by a processor.
[0040] The RSU redundant switching test method provided in the present application establishes connections with the first RSU controller currently serving as the master device and the second RSU controller currently serving as the backup device in the RSU redundant switching system, and tests the current master device and backup device based on a preset redundant switching mechanism test scheme; performs master-slave switching on the first RSU controller and the second RSU controller to make the second RSU controller serve as the current master device, and then tests the current master device and backup device based on a preset redundant switching mechanism test scheme; performs master-slave switching on the second RSU controller and the first RSU controller to make the first RSU controller serve as the master device again, which can realize switching testing for the RSU redundant switching system, and can effectively improve the test efficiency, automation level, comprehensiveness, reliability and effectiveness of the test process, effectively save labor costs and time costs, and thus can effectively improve the application effectiveness and reliability of the RSU redundant switching system, and ensure the operational stability of the ETC gantry system adopting the RSU redundant switching system.
[0041] Additional advantages, purposes, and features of the present application will be described in part in the following description and will become apparent to those skilled in the art upon study of the following or may be learned from practice of the present application. The purposes and other advantages of the present application may be achieved and obtained by the structures specifically pointed out in the specification and drawings.
[0042] Those skilled in the art will understand that the purposes and advantages that can be achieved by the present application are not limited to the above specific description, and the above and other purposes that can be achieved by the present application will be more clearly understood based on the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings described herein are intended to provide a further understanding of the present application, constitute a part of the present application, and do not constitute a limitation of the present application. The components in the drawings are not drawn to scale, but are only for the purpose of illustrating the principles of the present application. In order to facilitate the illustration and description of some parts of the present application, the corresponding parts in the drawings may be enlarged, that is, they may become larger than other components in the exemplary device actually manufactured according to the present application. In the drawings:
[0044] Figure 1 The following is a schematic diagram showing an example structure of an RSU redundant switching system.
[0045] Figure 2 Schematic diagram of the overall process of the RSU redundancy switching test method in one embodiment of the present application.
[0046] Figure 3 The figure is a specific flow chart of the RSU redundancy switching test method in one embodiment of the present application.
[0047] Figure 4 This is a flowchart of a process of testing the current master device and backup device based on a preset redundant switching mechanism testing solution in an embodiment of the present application.
[0048] Figure 5 Schematic diagram of the structure of an RSU redundant switching test system in another embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail in conjunction with the embodiments and drawings. Here, the illustrative embodiments of this application and their descriptions are used to explain this application, but are not intended to limit this application.
[0050] It should also be noted here that in order to avoid obscuring the present application due to unnecessary details, the accompanying drawings only show structures and / or processing steps that are closely related to the scheme according to the present application, while other details that are not closely related to the present application are omitted.
[0051] It should be emphasized that the term "include / comprises" when used herein refers to the existence of features, elements, steps or components, but does not exclude the existence or addition of one or more other features, elements, steps or components.
[0052] It should also be noted that, unless otherwise specified, the term "connection" herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.
[0053] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.
[0054] Electronic Toll Collection (ETC) is an automated toll collection system for highways and bridges. It uses dedicated short-range communication between an electronic tag mounted on a vehicle's windshield and a microwave antenna in the ETC lane at a toll booth. Computer networking technology facilitates back-end settlement with banks, enabling vehicles to pay tolls without stopping at toll booths. ETC gantry systems are installed where highway routes change, and toll booths are expanding their ETC lanes. By the end of 2020, the ETC installation rate in some areas reached nearly 80%, and the ETC-based highway toll collection system has achieved widespread adoption.
[0055] The RSU redundant switching system of the ETC gantry system adopts a redundant configuration mode. The two sets of RSU equipment perform logical switching according to different operating states. Figure 1 , the specific description of the RSU redundant switching system is as follows:
[0056] On the ETC gantry: an RSU antenna is installed in the middle of each lane (including the emergency lane), and a redundant RSU antenna is installed at the junction of every two lanes (excluding the emergency lane). For example, 4 RSU antennas are used for 2+1 lanes (such as Figure 1 RSU antenna 1, RSU antenna 2, RSU antenna 3 and RSU antenna 4), 3+1 lane uses 6 RSU antennas.
[0057] The RSU controller consists of one master and one backup, which can be called the first RSU controller and the second RSU controller. They are redundant hot backups to each other. At a single time node, only one RSU controller is in working state, and the other is in a backup power-on standby state.
[0058] All RSU antennas are in a collaborative working state, and their operations are controlled by the RSU controller.
[0059] The active and standby RSU controllers use independent IP addresses to communicate with the ETC gantry system lane controller or background system.
[0060] The active and standby RSU controllers communicate with each other via a heartbeat line (serial line, network cable, etc.) to confirm each other's working status.
[0061] In addition, Figure 1 The device in the box is a device that can be deployed by the manufacturer. The RSU controller and RSU antenna in the box are connected using a network port. The data exchange device in the box is an industrial-grade switch. The industrial switch is a three-layer switch and does not have a stacking function.
[0062] Based on this, the redundant switching scheme of the above RSU redundant switching system is as follows:
[0063] 1) The active and standby RSU controllers use independent IP addresses to communicate with the ETC gantry system.
[0064] 2) The front-end system of the ETC gantry system only establishes a TCP connection with one RSU controller at the same time (the active and standby RSU controllers perform active and standby switching based on the TCP connection status). The active and standby RSU controllers only maintain one TCP connection. When a new TCP connection is received, the old connection is disconnected to accept the new connection.
[0065] 3) The active and standby RSU controllers must be able to exchange status information to determine each other's operating status (including but not limited to normal operation, abnormal operation, preparation for upgrade, upgrade success and upgrade failure).
[0066] 4) The primary RSU controller controls all RSU antennas and is responsible for summarizing the status of the RSU antennas and the backup controller, regularly uploading the device status to the ETC gantry system front-end system. The backup RSU controller is in an idle state and does not perform any transaction operations except for periodic status information exchange with the primary RSU controller.
[0067] 5) The RSU controllers that are both active and standby are initially in the idle state (i.e., standby state). The RSU controller that receives the latest TCP connection (or C0 frame) switches to the active state and notifies all RSU antennas and standby RSU controllers. All RSU antennas are initially in the idle state. After receiving the RSU controller notification, they switch to the active state and are defaulted to the RSU controller that sends the latest notification as the active RSU controller.
[0068] 6) When communication between the primary and backup RSU controllers is normal, if the primary RSU controller malfunctions (including equipment and network communication anomalies), the ETC gantry system front-end system disconnects the TCP connection with the primary RSU controller and establishes a TCP connection with the backup RSU controller. At this time, the original backup RSU controller switches to the primary state and notifies all RSU antennas and the original primary RSU controller. If the backup RSU controller malfunctions, no switching is required.
[0069] 7) When the communication between the active and standby RSU controllers is disconnected, if the active RSU controller works abnormally (including equipment abnormality and network communication abnormality), the ETC gantry system front-end system disconnects the TCP connection with the active RSU controller and establishes a TCP connection with the standby RSU controller. At this time, the original standby RSU controller switches to the active state and notifies all RSU antennas. After the original active RSU controller detects that the TCP connection is disconnected, it switches itself to the standby state.
[0070] 8) The primary and standby RSU controllers must report status information to the ETC gantry system backend system at regular intervals (tentatively every 5 minutes) and determine whether it is necessary to apply for downloading the software upgrade package based on the response information. For specific protocols, please refer to the "RSU Status and Upgrade Interface Protocol for the Cancellation of Provincial Boundary Toll Stations on Expressways Project".
[0071] 9) When the RSU device needs to upgrade its software, the backup RSU controller and the active RSU controller will upgrade their software in sequence. The active and standby controllers need to exchange status information before and after the software upgrade to determine each other's operating status.
[0072] Based on this, in order to realize switching testing for the RSU redundant switching system and effectively improve the test efficiency, automation level, comprehensiveness, reliability and effectiveness of the test process, the present application provides an embodiment of an RSU redundant switching test method, an RSU redundant switching test system for realizing the RSU redundant switching test method, an electronic device and an embodiment of a computer-readable storage medium.
[0073] The details are described in detail through the following examples.
[0074] Based on this, the embodiment of the present application provides an RSU redundancy switching test method that can be performed by the RSU redundancy switching test system, see Figure 2 The RSU redundancy switching test method specifically includes the following contents:
[0075] Step 100: Establish connections with the first RSU controller currently serving as the master device and the second RSU controller currently serving as the backup device in the RSU redundant switching system, and test the current master device and the backup device based on a preset redundant switching mechanism test solution.
[0076] In step 100, an RSU redundant switching test system suitable for the ETC gantry system can be developed based on the pre-acquired "ETC gantry system PC-RSU interface protocol", "ETC gantry system antenna equipment status and upgrade interface protocol" and the preset redundant switching mechanism test plan. The IP addresses of the first RSU controller as the main device and the second RSU controller as the backup device are set respectively. The test system is connected to the main and backup RSU controllers to simulate the actual system to build a test environment.
[0077] In one or more embodiments of the present application, the creation of the redundant switching mechanism test solution can effectively improve the effectiveness of the RSU redundant switching test process.
[0078] Step 200: Performing a master-slave switch between the first RSU controller and the second RSU controller to make the second RSU controller the current master device, and then testing the current master device and the backup device based on a preset redundant switching mechanism test solution.
[0079] In step 200, according to the test system prompts, the active and standby controllers are connected normally, the TCP connection to RSU controller B is disconnected, and a TCP connection with RSU controller A is reestablished, sending an initialization C0 frame. This restores the device to its original working state. By retesting the new master device after the active / standby switchover, the comprehensiveness of the RSU redundancy switchover test process can be effectively improved.
[0080] Step 300: Perform a master-slave switch between the second RSU controller and the first RSU controller so that the first RSU controller serves as the master device again.
[0081] In step 300, after completing the complete test, the original master-slave status is restored so that the entire test process can be completed without human intervention without affecting the subsequent normal operation of the RSU redundant switching test system, thereby effectively improving the automation and intelligence level of the RSU redundant switching test.
[0082] From the above description, it can be seen that the RSU redundant switching test method provided in the embodiment of the present application can realize the switching test for the RSU redundant switching system, and can effectively improve the test efficiency, automation level, comprehensiveness, reliability and effectiveness of the test process, effectively save labor costs and time costs, and thus can effectively improve the application effectiveness and reliability of the RSU redundant switching system, and ensure the operating stability of the ETC gantry system using the RSU redundant switching system.
[0083] In order to further improve the comprehensiveness and effectiveness of the RSU redundancy switching test, in an RSU redundancy switching test method provided in an embodiment of the present application, the redundant switching mechanism test solution in the RSU redundant switching test method specifically includes the following contents:
[0084] (1) Working status test of main equipment;
[0085] (2) Simulated transaction status test of the master device;
[0086] (3) Status information upload and consistency testing of the main equipment and backup equipment;
[0087] (4) Power cut-off and restoration testing of standby equipment;
[0088] (5) Disconnection and restoration test of the connection cable between the main equipment and the backup equipment;
[0089] (6) Connection and disconnection testing between the master device and each RSU antenna head in the RSU redundant switching system.
[0090] In order to further improve the application comprehensiveness and effectiveness of the RSU redundancy switching test, in an RSU redundancy switching test method provided in an embodiment of the present application, see Figure 3 The RSU redundancy switching test method further includes the following contents after step 300:
[0091] Step 400: Performing a master-slave switching test on the first RSU controller and the second RSU controller after communication is disconnected.
[0092] Specifically, according to the test system prompts, you can first disconnect the connection cable between the active and standby RSU controllers. Then the test system disconnects the TCP connection with RSU controller A and establishes a TCP connection with RSU controller B. Perform initialization and other operations, parse the B1 frame information uploaded by RSU controller B, and determine whether the active and standby switching is normal when the active and standby communication is disconnected, and whether controller B correctly takes over all RSU antennas and displays the corresponding working status. At this time, after detecting that the TCP connection is disconnected, RSU controller A should switch to the standby state and test the RSU controller status information received through the HTTP protocol service to verify.
[0093] Step 500: Restore the communication between the first RSU controller and the second RSU controller, and restore the first RSU controller and the second RSU controller to be the main device and the backup device respectively.
[0094] Specifically, according to the test system prompts, you can restore the cable connection between the active and standby RSU controllers, disconnect the TCP connection of RSU controller B, and re-establish the TCP connection with RSU controller A to complete initialization and other operations. This will restore the device to its original working state.
[0095] In order to further improve the application comprehensiveness and effectiveness of the RSU redundancy switching test, in an RSU redundancy switching test method provided in an embodiment of the present application, see Figure 3 The RSU redundancy switching test method further includes the following contents after step 300 or step 500:
[0096] Step 600: Perform a firmware upgrade test on the first RSU controller and the second RSU controller.
[0097] Specifically, the latest firmware upgrade package of the RSU controller can be configured according to the prompts of the test system. When the RSU controller (master and backup) uploads status information regularly through the HTTP protocol, the test system marks the upgrade package version information in the reply response data. The test system monitors whether the master and backup RSU controllers download and update the firmware upgrade package through the specified HTTP protocol interface, whether the backup RSU controller is prioritized for downloading and upgrading in the download and update procedure, and whether the backup RSU controller switches to the master working state after the upgrade is completed, so that the original master RSU controller switches to the backup to continue to complete the firmware download and upgrade operations.
[0098] In order to further improve the application comprehensiveness and effectiveness of the RSU redundancy switching test, in an RSU redundancy switching test method provided in an embodiment of the present application, see Figure 4 The process of testing the current master device and backup device based on the preset redundant switching mechanism test scheme in step 100 and step 200 of the RSU redundant switching test method specifically includes the following contents:
[0099] Step 010: Perform a working status test on the current master device to determine whether the master device is in a normal working state.
[0100] Step 020: Initialize the preset PSAM card and perform online authorization settings to enable the main device to enter the transaction mode, and perform a simulated transaction status test on the main device to determine whether the main device is in a normal transaction state.
[0101] Specifically, if both the active and standby RSU controllers are in normal operating mode, the test system proceeds to complete PSAM card initialization and PSAM card online authorization operations, and RSU controller A enters normal transaction mode. At this time, the test OBU / IC card combination is used to transact with the RSU device to determine its actual transaction mode status.
[0102] Step 030: Perform status information upload and consistency test on the master device and the backup device to determine whether the master device and the backup device regularly upload their respective status information, and whether the status information of the master device and the backup device meets their respective working status.
[0103] Specifically, you can start the HTTP protocol service, monitor whether the status information of RSU controller A and RSU controller B is uploaded regularly, and parse the uploaded JSON packages. The status information must be consistent with the working status of the current master and standby machines.
[0104] Step 040: Perform a power cut-off and restoration test on the backup device to determine whether the main device operates normally when the power of the backup device is cut off, and whether the backup device resumes normal operation after the power is restored.
[0105] Specifically, you can turn off the power of RSU controller B according to the prompts on the test system interface. The test system will automatically parse the B1 heartbeat information frame sent by the main RSU controller and record RSUControlStatus1 (should be 00H, indicating normal host), RSUControlStatus2 (should be 11H, indicating abnormal standby), and RSUControlStatus3 (should be 01H, indicating abnormal communication between the main and standby). Then, according to the prompts on the test system interface, turn on the power of controller B again. At this time, the corresponding fields of the B1 frame should return to normal.
[0106] Step 050: Perform a disconnection and recovery test on the connection cable between the main device and the backup device to determine whether the main device operates normally, whether the backup device is abnormal, and whether the communication between the main device and the backup device is abnormal when the connection cable between the main device and the backup device is disconnected, and determine whether the main device and the backup device resume communication after the connection cable between the main device and the backup device is restored.
[0107] Specifically, you can disconnect the communication cable between RSU controller A and RSU controller B according to the prompts on the test system interface. The test system will automatically parse the B1 heartbeat information frame sent by the master RSU controller and record RSUControlStatus1 (should be 00H for normal master), RSUControlStatus2 (should be 11H for abnormal standby), and RSUControlStatus3 (should be 01H for abnormal communication between master and standby). Then, reconnect the cable between the master and standby RSU controllers according to the prompts on the test system interface. At this time, the corresponding fields of the B1 frame should return to normal.
[0108] Step 060: Perform connection and disconnection tests on the master device and each RSU antenna head in the RSU redundant switching system to determine the number of RSU antennas configured on the master device when the master device is disconnected from the RSU antenna head, the number of normally connected RSU antennas, and the antenna status information of each RSU antenna head, and determine whether the antenna status information meets the preset threshold.
[0109] Specifically, according to the test system interface prompts, disconnect the cable connection between RSU controller A and RSU antenna head 1. The test system automatically parses the B1 heartbeat information frame sent by the RSU controller, records the values assigned to the RSUAntennaNum (number of configured antennas), RSUAntennaNum2 (number of normal connections), and RSUAntennaStatus (antenna status information statistics), and determines whether they are expected values. Then, according to the test system prompts, continue to disconnect the cables of RSU antenna heads 2-4 and repeat the recording and judgment work.
[0110] According to the test system prompts, restore the cable connections of RSU antenna heads 1-4 in sequence. The test system automatically parses the B1 heartbeat information frame sent by the RSU controller and repeats the recording and judgment work in step 7.
[0111] In order to further improve the application comprehensiveness and effectiveness of the RSU redundancy switching test, in an RSU redundancy switching test method provided in an embodiment of the present application, step 010 in the RSU redundancy switching test method specifically includes the following content:
[0112] Step 011: Establish a TCP connection with the current master device and initialize the master device;
[0113] Step 012: Receive the heartbeat information frame uploaded by the master device, and test whether the master device has entered the master device working state based on various fields of the heartbeat information frame.
[0114] Specifically, a TCP connection can be established with RSU controller A, and RSU controller A should be the master device. The test system sends a C0 data frame to RSU controller A for initialization. After the initialization is completed, the test system receives the heartbeat information frame (B1 frame) uploaded by RSU controller A, and intelligently analyzes each field of the B1 frame to determine whether it has entered the working state of the master device.
[0115] For example: According to the "PC-RSU Interface Protocol V3.5 for the ETC Gantry System of the Project of Cancelling Provincial Boundary Toll Stations on Expressways", the content of the B1 frame can be analyzed to see whether it meets the specification requirements, including: RSUControlStatus1 should be 00H (the host is normal), RSUControlStatus2 should be 10H (the standby is normal), RSUControlStatus3 should be 00H (communication between the master and standby machines is normal), and field information such as the number and status of PSAM cards, the number and status of RSU antennas, etc. should be consistent with the actual configuration.
[0116] In order to further improve the application comprehensiveness and effectiveness of the RSU redundancy switching test, in an RSU redundancy switching test method provided in an embodiment of the present application, see Figure 3 The RSU redundancy switching test method further includes the following contents after step 600:
[0117] Step 700: Record test result data obtained after testing the current master device and backup device, and generate a corresponding test report based on the test result data.
[0118] Step 800: Output the test report.
[0119] From the software level, the present application also provides an RSU redundant switching test system for executing all or part of the RSU redundant switching test method, see Figure 5 The RSU redundant switching test system specifically includes the following contents:
[0120] A primary test module 10 is configured to establish connections with a first RSU controller currently serving as a master device and a second RSU controller currently serving as a backup device in the RSU redundant switching system, and to test the current master device and backup device based on a preset redundant switching mechanism test scheme;
[0121] The master-slave switching and secondary testing module 20 is used to perform master-slave switching between the first RSU controller and the second RSU controller so that the second RSU controller serves as the current master device, and then test the current master device and the backup device based on a preset redundant switching mechanism test scheme;
[0122] The master-slave recovery module 30 is configured to perform a master-slave switch between the second RSU controller and the first RSU controller so that the first RSU controller serves as the master device again.
[0123] The embodiment of the RSU redundancy switching test system provided in this application can be specifically used to execute the processing flow of the embodiment of the RSU redundancy switching test method in the above embodiment. Its functions are not described in detail here, and reference can be made to the detailed description of the above RSU redundancy switching test method embodiment.
[0124] The part of the RSU redundant switching test system that performs the RSU redundant switching test can be executed in a server, such as an edge server, and in another practical application scenario, all operations can also be completed in the client device. The specific selection can be based on the processing capability of the client device and the limitations of the user's usage scenario. This application is not limited to this. If all operations are completed in the client device, the client device may also include a processor for specific processing of the RSU redundant switching test.
[0125] The client device may include a communication module (i.e., a communication unit) that can establish a communication connection with a remote server to implement data transmission with the server. The server may include a server on the task scheduling center side, and in other implementation scenarios, may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, a server cluster consisting of multiple servers, or a server structure of a distributed device.
[0126] The server and the client device may communicate using any suitable network protocol, including network protocols that have not yet been developed as of the filing date of this application. Examples of such network protocols include TCP / IP, UDP / IP, HTTP, and HTTPS. Furthermore, examples of such network protocols include RPC (Remote Procedure Call Protocol) and REST (Representational State Transfer) protocols, which are used on top of the aforementioned protocols.
[0127] From the above description, it can be seen that the RSU redundant switching test system provided in the embodiment of the present application can realize switching testing for the RSU redundant switching system, and can effectively improve the test efficiency, automation level, comprehensiveness, reliability and effectiveness of the test process, effectively save labor costs and time costs, and thus can effectively improve the application effectiveness and reliability of the RSU redundant switching system, and ensure the operating stability of the ETC gantry system using the RSU redundant switching system.
[0128] To further illustrate this solution, the present application also provides a specific application example of an RSU redundancy switching test method, which specifically includes the following steps:
[0129] 1. Construction of simulation test system:
[0130] Based on the "ETC gantry system PC-RSU interface protocol", "ETC gantry system antenna equipment status and upgrade interface protocol" and "redundant deployment and switching plan", the ETC gantry RSU equipment redundant switching test system was developed. The IP addresses of the primary and standby RSU controllers were set respectively, and the test system was connected to the primary and standby RSU controllers to simulate the actual system to build a test environment.
[0131] 2. Main RSU controller working status test:
[0132] The test system establishes a TCP connection with RSU controller A, and RSU controller A should be the master device. The test system sends a C0 data frame to RSU controller A for initialization. After the initialization is completed, the test system receives the heartbeat information frame (B1 frame) uploaded by RSU controller A, and intelligently analyzes each field of the B1 frame to determine whether it has entered the working state of the master device.
[0133] Specifically: According to the "PC-RSU Interface Protocol V3.5 of the ETC Gantry System for the Cancellation of Provincial Boundary Toll Stations on Expressways", analyze whether the content of the B1 frame meets the specification requirements, including: RSUControlStatus1 should be 00H (the host is normal), RSUControlStatus2 should be 10H (the standby machine is normal), RSUControlStatus3 should be 00H (the communication between the master and standby machines is normal), and the field information such as the number and status of PSAM cards, the number and status of RSU antennas, etc. should be consistent with the actual configuration.
[0134] 3. Transaction status test of the main RSU controller:
[0135] If both the active and standby RSU controllers are in normal working mode, the test system will continue to complete the PSAM card initialization and PSAM card online authorization operations. At this time, RSU controller A enters normal transaction mode. At this time, the test OBU / IC card combination is used to trade with the RSU device to determine the actual status of its transaction mode.
[0136] 4. Status information upload and consistency test of the active and standby RSU controllers:
[0137] The test system starts the HTTP protocol service, monitors whether the status information of RSU controller A and RSU controller B is uploaded regularly, and parses the uploaded JSON packages. The status information must be consistent with the working status of the current master and standby machines.
[0138] 5. Power cut-off and restoration test of standby RSU controller:
[0139] According to the prompts on the test system interface, turn off the power of RSU controller B. The test system automatically parses the B1 heartbeat information frame sent by the main RSU controller and records RSUControlStatus1 (should be 00H, indicating normal master), RSUControlStatus2 (should be 11H, indicating abnormal standby), and RSUControlStatus3 (should be 01H, indicating abnormal communication between the master and standby). Then, according to the prompts on the test system interface, turn on the power of controller B again. At this time, the corresponding fields of the B1 frame should return to normal.
[0140] 6. Communication cable disconnection and recovery test between the active and standby RSU controllers:
[0141] According to the prompts on the test system interface, disconnect the communication cable between RSU controller A and RSU controller B. The test system automatically parses the B1 heartbeat information frame sent by the master RSU controller and records RSUControlStatus1 (should be 00H, indicating the master is normal), RSUControlStatus2 (should be 11H, indicating the standby is abnormal), and RSUControlStatus3 (should be 01H, indicating communication abnormality between the master and standby). Then, according to the prompts on the test system interface, reconnect the cable between the master and standby RSU controllers. At this time, the corresponding fields of the B1 frame should return to normal.
[0142] 7. Connection and disconnection test between the main RSU controller and the RSU antenna head:
[0143] Following the test system's prompts, disconnect the cable between RSU controller A and RSU antenna head 1. The test system automatically parses the B1 heartbeat information frame sent by the RSU controller, records the values assigned to the RSUAntennaNum (number of configured antennas), RSUAntennaNum2 (number of normal connections), and RSUAntennaStatus (antenna status statistics), and determines whether they are the expected values. Then, following the test system's prompts, disconnect the cables from RSU antenna heads 2, 3, and 4, and repeat the recording and determination process.
[0144] According to the test system prompts, restore the cable connections of RSU antenna heads 1, 2, 3, and 4 in turn. The test system automatically parses the B1 heartbeat information frame sent by the RSU controller and repeats the recording and judgment work in step 7.
[0145] 8. Master / slave switch:
[0146] According to the test system prompts, keep the connection between the master and standby controllers normal. The test system actively disconnects the TCP connection with RSU controller A and establishes a TCP connection with RSU controller B. Repeat steps 2-7 to determine the operation status when RSU controller B is the master device and RSU controller A is the standby device.
[0147] 9. Actual working status restored:
[0148] According to the test system prompts, keep the connection between the active and standby controllers normal, disconnect the TCP connection of RSU controller B, re-establish the TCP connection with RSU controller A, and send the initialization C0 frame. This will restore the device to its original working state.
[0149] 10. Master-slave switchover test when master-slave communication is disconnected:
[0150] According to the test system prompts, first disconnect the connection cable between the active and standby RSU controllers. Then the test system disconnects the TCP connection with RSU controller A and establishes a TCP connection with RSU controller B. It performs initialization and other operations, parses the B1 frame information uploaded by RSU controller B, and determines whether the active and standby switching is normal when the active and standby communication is disconnected, and whether controller B correctly takes over all RSU antennas and displays the corresponding working status. At this time, after detecting that the TCP connection is disconnected, RSU controller A should switch to the standby state and test the RSU controller status information received through the HTTP protocol service to verify.
[0151] 11. Actual working status restored:
[0152] According to the test system prompts, restore the cable connection between the active and standby RSU controllers, disconnect the TCP connection of RSU controller B, and re-establish the TCP connection with RSU controller A to complete initialization and other operations. This will restore the device to its original working state.
[0153] 12. Firmware upgrade test:
[0154] According to the test system prompts, configure the latest firmware upgrade package of the RSU controller. When the RSU controller (primary and standby) uploads status information regularly through the HTTP protocol, the test system marks the upgrade package version information in the reply response data. The test system monitors whether the primary and standby RSU controllers download and update the firmware upgrade package through the specified HTTP protocol interface, whether the download and update procedure prioritizes the standby RSU controller for download and upgrade, and whether the standby RSU controller switches to the primary working state after the upgrade is completed, so that the original primary RSU controller switches to the standby to continue to complete the firmware download and upgrade operations.
[0155] 13. The test system records the test data and generates a test report.
[0156] The present application also provides an electronic device (i.e., an electronic device), such as a central server, which may include a processor, a memory, a receiver, and a transmitter. The processor is configured to execute the RSU redundant switching test method described in the above embodiment, wherein the processor and the memory may be connected via a bus or other means, with bus connection being used as an example. The receiver may be connected to the processor and the memory via a wired or wireless manner.
[0157] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0158] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as the program instructions / modules corresponding to the RSU redundancy switching test method in the embodiments of the present application. The processor executes the non-transitory software programs, instructions, and modules stored in the memory to perform various processor functions and data processing, thereby implementing the RSU redundancy switching test method in the above method embodiments.
[0159] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely located relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0160] The one or more modules are stored in the memory, and when executed by the processor, perform the RSU redundancy switching test method in the embodiment.
[0161] In some embodiments of the present application, the user equipment may include a processor, a memory and a transceiver unit, and the transceiver unit may include a receiver and a transmitter. The processor, memory, receiver and transmitter may be connected through a bus system. The memory is used to store computer instructions, and the processor is used to execute the computer instructions stored in the memory to control the transceiver unit to send and receive signals.
[0162] As an implementation method, the functions of the receiver and transmitter in this application can be considered to be implemented through a transceiver circuit or a dedicated transceiver chip, and the processor can be considered to be implemented through a dedicated processing chip, a processing circuit or a general-purpose chip.
[0163] As another implementation method, it is possible to use a general-purpose computer to implement the server provided in the embodiments of the present application. That is, the program code for implementing the functions of the processor, receiver, and transmitter is stored in a memory, and the general-purpose processor implements the functions of the processor, receiver, and transmitter by executing the code in the memory.
[0164] The present application also provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program implements the steps of the aforementioned RSU redundant switching test method. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the art.
[0165] It should be understood by those skilled in the art that the various exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is specifically performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of this application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.
[0166] It should be understood that the present application is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present application is not limited to the specific steps described and illustrated. Those skilled in the art can make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present application.
[0167] In this application, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with or replace features of other embodiments.
[0168] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Those skilled in the art will appreciate that various modifications and variations of the present embodiment are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A RSU redundancy switching test method, characterized in that: include: Establish connections with the first RSU controller currently serving as the master device and the second RSU controller currently serving as the backup device in the RSU redundant switching system, and test the current master device and backup device based on a preset redundant switching mechanism test plan; Performing a master-slave switch between the first RSU controller and the second RSU controller so that the second RSU controller serves as the current master device, and then testing the current master device and the backup device based on a preset redundant switching mechanism test scheme; Performing a master-slave switch between the second RSU controller and the first RSU controller so that the first RSU controller serves as the master device again; The redundant switching mechanism test solution includes: Working status test of main equipment; Simulated transaction status test of the master device; Status information upload and consistency testing of main and backup equipment; Power cut-off and restoration testing of standby equipment; Disconnection and restoration test of the connection cable between the main equipment and the backup equipment; and, connection and disconnection testing between the master device and each RSU antenna head in the RSU redundant switching system; The test scheme based on the preset redundant switching mechanism tests the current master device and the backup device, including: Performing a working status test on the current master device to determine whether the master device is in a normal working state; Initializing a preset PSAM card and performing online authorization settings to enable the main device to enter a transaction mode, and performing a simulated transaction state test on the main device to determine whether the main device is in a normal transaction state; Performing status information upload and consistency testing on the master device and the backup device to determine whether the master device and the backup device regularly upload their respective status information, and whether the status information of the master device and the backup device respectively meets their respective corresponding working states; Performing a power cut-off and restoration test on the backup device to determine whether the primary device operates normally when the power to the backup device is cut off, and whether the backup device resumes normal operation after power is restored; Performing a disconnection and restoration test on the connection cable between the master device and the backup device to determine whether the master device operates normally, whether the backup device is abnormal, and whether communication between the master device and the backup device is abnormal when the connection cable between the master device and the backup device is disconnected, and determining whether communication between the master device and the backup device is restored after the connection cable between the master device and the backup device is restored; In addition, the connection and disconnection tests between the main device and each RSU antenna head in the RSU redundant switching system are performed to determine the number of RSU antennas configured by the main device when the main device is disconnected from the RSU antenna head, the number of normally connected RSU antennas and the antenna status information of each RSU antenna head, and determine whether the antenna status information meets the preset threshold.
2. The RSU redundancy switching test method according to claim 1, characterized in that: After the first RSU controller and the second RSU controller are restored to a primary device and a backup device respectively, the method further includes: Performing a master-slave switching test on the first RSU controller and the second RSU controller after communication is disconnected; The communication between the first RSU controller and the second RSU controller is restored, and the first RSU controller and the second RSU controller are restored to be the main device and the backup device respectively.
3. The RSU redundancy switching test method according to claim 1, characterized in that: After the first RSU controller and the second RSU controller are restored to a primary device and a backup device respectively, the method further includes: Perform a firmware upgrade test on the first RSU controller and the second RSU controller.
4. The RSU redundancy switching test method according to claim 1, characterized in that: The performing of a working status test on the current master device includes: Establish a TCP connection with the current master device and initialize the master device; Receive the heartbeat information frame uploaded by the master device, and test whether the master device has entered the master device working state based on various fields of the heartbeat information frame.
5. The RSU redundancy switching test method according to any one of claims 1 to 4, characterized in that: Also includes: Record the test result data obtained after testing the current main device and backup device, and generate a corresponding test report based on the test result data; The test report is output.
6. An RSU redundant switching test system, characterized in that: include: A primary test module is used to establish connections with the first RSU controller currently serving as the master device and the second RSU controller currently serving as the backup device in the RSU redundant switching system, and test the current master device and backup device based on a preset redundant switching mechanism test scheme; A master-slave switching and secondary testing module is used to perform a master-slave switching between the first RSU controller and the second RSU controller so that the second RSU controller serves as the current master device, and then test the current master device and the backup device based on a preset redundant switching mechanism test scheme; an active / standby recovery module, configured to perform active / standby switching between the second RSU controller and the first RSU controller so that the first RSU controller serves as the active device again; The redundant switching mechanism test solution includes: Working status test of main equipment; Simulated transaction status test of the master device; Status information upload and consistency testing of main and backup equipment; Power cut-off and restoration testing of standby equipment; Disconnection and restoration test of the connection cable between the main equipment and the backup equipment; and, connection and disconnection testing between the master device and each RSU antenna head in the RSU redundant switching system; The test scheme based on the preset redundant switching mechanism tests the current master device and the backup device, including: Performing a working status test on the current master device to determine whether the master device is in a normal working state; Initializing a preset PSAM card and performing online authorization settings to enable the main device to enter a transaction mode, and performing a simulated transaction state test on the main device to determine whether the main device is in a normal transaction state; Performing status information upload and consistency testing on the master device and the backup device to determine whether the master device and the backup device regularly upload their respective status information, and whether the status information of the master device and the backup device respectively meets their respective corresponding working states; Performing a power cut-off and restoration test on the backup device to determine whether the primary device operates normally when the power to the backup device is cut off, and whether the backup device resumes normal operation after power is restored; Performing a disconnection and restoration test on the connection cable between the master device and the backup device to determine whether the master device operates normally, whether the backup device is abnormal, and whether communication between the master device and the backup device is abnormal when the connection cable between the master device and the backup device is disconnected, and determining whether communication between the master device and the backup device is restored after the connection cable between the master device and the backup device is restored; In addition, the connection and disconnection tests between the main device and each RSU antenna head in the RSU redundant switching system are performed to determine the number of RSU antennas configured by the main device when the main device is disconnected from the RSU antenna head, the number of normally connected RSU antennas and the antenna status information of each RSU antenna head, and determine whether the antenna status information meets the preset threshold.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the RSU redundancy switching test method according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the RSU redundancy switching test method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Road-side identification station and main and standby road-side unit (RSU) switching method
CN103124222A
Switching effect testing apparatus for dual-redundancy controller
CN204166382U
ETC control device, ETC control system and ETC portal system
CN211349100U