A method and system for automatically registering multiple vehicles
Through the automatic registration method and system of multiple vehicles, the application message subsystem and the protocol interface subsystem are used to automatically process the registration of multiple vehicles, which solves the workload and equipment occupation problems of individually controlling the vehicles in the TSRS test, and improves the test efficiency.
Patent Information
- Application Number
- CN202210784927.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-05
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-07-05
AI Technical Summary
In TSRS testing, technicians need to perform separate control operations on each physical vehicle to establish a communication session, which results in increased workload and reduced test efficiency. Multiple physical vehicle occupancy devices need to be set up, further reducing test efficiency.
Provide a method and system for automatically registering multiple vehicles, including an application message subsystem and a protocol interface subsystem, which are triggered by the automatic registration of multiple vehicles instructions, generate and send application message packages to request TSRS to establish a communication session, and test communication based on feedback messages Session success status.
It realizes the automatic registration of multiple target simulation vehicles through one automatic registration multi-vehicle command, which simplifies the operation process, improves the test efficiency of TSRS, and reduces equipment occupation.
Smart Images

Figure CN115242694B
Abstract
Description
Technical Field
[0001] The present application relates to the field of TSRS testing technology, and in particular to a method and system for automatically registering multiple vehicles. Background Art
[0002] With the development of railway technology, CTCS (China Train Control System) can realize the automatic driving function of trains, which can reduce the labor intensity of drivers. TSRS is an important part of CTCS. Before TSRS is put into use, according to relevant technical specifications, it is necessary to ensure that TSRS can connect to at least 60 physical vehicles and communicate with the vehicles normally.
[0003] In the related art, in order to test whether TSRS can communicate normally with at least 60 physical vehicles, TSRS needs to establish communication sessions with multiple physical vehicles. In the process of establishing communication sessions between TSRS and multiple physical vehicles, technicians control each physical vehicle so that each physical vehicle establishes a communication session with TSRS, thereby testing whether TSRS can communicate normally with at least 60 physical vehicles.
[0004] In the above process, the technician needs to perform a separate control operation on each physical vehicle to control each physical vehicle to establish a communication session with TSRS. The technician's separate operation on each physical vehicle will increase the technician's workload and reduce the test efficiency of TSRS. At the same time, multiple physical vehicles need to be set up for testing, which occupies more equipment and further reduces the test efficiency of TSRS. Summary of the invention
[0005] In view of this, the present application provides a method and system for automatically registering multiple vehicles, which can improve the testing efficiency of TSRS.
[0006] In order to achieve the above objectives, this application mainly provides the following technical solutions:
[0007] In a first aspect, the present application provides a system for automatically registering multiple vehicles, the system being divided into an application message subsystem and a protocol interface subsystem, the application message subsystem comprising an application communication module and a human-computer interaction module, the protocol interface subsystem comprising an AtoS communication module, an AtoS storage module, an AtoS forwarding module and a security layer communication module, wherein:
[0008] An application communication module, configured to, when an automatic registration of multiple vehicles instruction is triggered in the application message subsystem, send application message packets to corresponding AtoS communication modules through the application communication modules on at least a preset number of target simulation vehicles indicated by the instruction, respectively, wherein the application message packets are used to request to establish a communication session with the TSRS;
[0009] An AtoS communication module, used to receive the application message packet sent by the application communication module, and send the application message packet to the AtoS storage module for storage;
[0010] An AtoS storage module, used for receiving an application message packet sent by the AtoS communication module, wherein the application message packet includes a CTCSID corresponding to a target simulation vehicle;
[0011] An AtoS forwarding module is used to read the application message packet stored in the AtoS storage module, and determine the security layer communication module corresponding to the application message packet according to the CTCSID in the read application message packet, and send the application message packet to the corresponding security layer communication module;
[0012] The security layer communication module is used to encrypt the received application message packet, obtain an automatic registration message that complies with the security communication protocol, and send the automatic registration message to the TSRS;
[0013] The human-computer interaction module is used to count the number of communication sessions established between the TSRS and the target simulated vehicles according to the automatic registration result fed back by the TSRS, and display the count so as to test whether the TSRS has established communication sessions with at least a preset number of target simulated vehicles according to the count, wherein the automatic registration result is used to indicate whether the TSRS has established communication sessions with the target simulated vehicles.
[0014] In a second aspect, the present application provides a method for automatically registering multiple vehicles, the method comprising:
[0015] When an automatic registration of multiple vehicles instruction is received in the application message subsystem, obtaining at least a preset number of target simulated vehicles indicated by the automatic registration of multiple vehicles instruction;
[0016] Determine the automatic registration message corresponding to each target simulated vehicle according to the configuration data corresponding to each target simulated vehicle;
[0017] Sending the automatic registration message corresponding to each target simulated vehicle to the TSRS to obtain a feedback message from the TSRS;
[0018] According to the feedback message of the TSRS, it is tested whether the TSRS has established communication sessions with at least a preset number of target simulated vehicles.
[0019] In a third aspect, the present application provides a terminal for running a program, wherein the terminal executes the method for automatically registering multiple vehicles described in the second aspect when running.
[0020] In a fourth aspect, the present application provides a storage medium for storing a computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the method for automatically registering multiple vehicles described in the second aspect.
[0021] By means of the above technical solution, the present application provides a method and system for automatically registering multiple vehicles. When the automatic registration of multiple vehicles instruction is triggered in the application message subsystem, at least a preset number of target simulated vehicles indicated by the automatic registration of multiple vehicles instruction are obtained; according to the configuration data corresponding to each target simulated vehicle, an automatic registration message corresponding to each target simulated vehicle is generated, and then the automatic registration message corresponding to each target simulated vehicle is sent to TSRS, so that TSRS registers each target simulated vehicle and establishes a communication connection. In this way, it is realized that at least a preset number of target simulated vehicles are automatically registered through an automatic registration of multiple vehicles instruction, which is simple and convenient. At the same time, according to the feedback message of TSRS, it is tested whether TSRS has established a communication session with at least a preset number of target simulated vehicles. In this way, it is possible to determine whether TSRS has successfully registered at least a preset number of target simulated vehicles according to the feedback message of TSRS, and then test whether TSRS has established a communication session with at least a preset number of target simulated vehicles by simulating the vehicle.
[0022] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 This is a schematic diagram of the structure of a device for automatically registering multiple vehicles disclosed in this application;
[0025] Figure 2 A diagram of a human-computer interaction interface of an application message subsystem of a device for automatically registering multiple vehicles disclosed in the present application;
[0026] Figure 3 A flowchart of a method for automatically registering multiple vehicles disclosed in this application;
[0027] Figure 4This is a flow chart of another method for automatically registering multiple vehicles disclosed in this application. DETAILED DESCRIPTION
[0028] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0029] With the development of railway technology, CTCS (China Train Control System) can realize the automatic driving function of trains, which can reduce the labor intensity of drivers. TSRS is an important part of CTCS. Before TSRS is put into use, according to relevant technical specifications, it is necessary to ensure that TSRS can connect to at least 60 physical vehicles and communicate with the vehicles normally.
[0030] In the related art, in order to test whether TSRS can communicate normally with at least 60 physical vehicles, TSRS needs to establish communication sessions with multiple physical vehicles. In the process of establishing communication sessions between TSRS and multiple physical vehicles, technicians control each physical vehicle so that each physical vehicle establishes a communication session with TSRS, thereby testing whether TSRS can communicate normally with at least 60 physical vehicles.
[0031] In the above process, the technician needs to perform a separate control operation on each physical vehicle to control each physical vehicle to establish a communication session with TSRS. The technician's separate operation on each physical vehicle will increase the technician's workload and reduce the test efficiency of TSRS. At the same time, multiple physical vehicles need to be set up for testing, which occupies more equipment and further reduces the test efficiency of TSRS.
[0032] In order to solve the above problems, the embodiment of the present application provides a system for automatically registering multiple vehicles, which is divided into an application message subsystem and a protocol interface subsystem. The application message subsystem includes an application communication module and a human-computer interaction module. The protocol interface subsystem includes an AtoS communication module, an AtoS storage module, an AtoS forwarding module and a security layer communication module, as well as an StoA communication module, an StoA storage module, and an StoA forwarding module. Figure 1 As shown, including:
[0033] The application communication module is used to send application message packets to the corresponding AtoS communication modules respectively through the application communication modules on at least a preset number of target simulation vehicles indicated by the instruction when the automatic registration of multiple vehicles is triggered in the application message subsystem. The application message packets are used to request to establish a communication session with TSRS.
[0034] The test TSRS system includes an application message subsystem and a protocol interface subsystem. The application message subsystem is used to provide the protocol interface subsystem with a target simulated vehicle-mounted application message package. The protocol interface subsystem has a message interaction function. The application message subsystem can be set in the same device as the protocol interface subsystem, or in a different device, which is not limited in this application.
[0035] In implementation, the application message subsystem includes an application communication module, each simulated vehicle corresponds to an application communication module, and each application communication module stores an application message package corresponding to the simulated vehicle. The application message subsystem also includes a configuration data processing module. The configuration data processing module is used to process configuration data. In this way, when the application message subsystem is turned on, the human-computer interaction module can read the configuration data containing multiple simulated vehicles from the configuration data processing module, and generate corresponding application message packages based on these configuration data, and then display all simulated vehicle IDs and corresponding application message packages on the automatic registration page, and provide each simulated vehicle with a train sequence value TrainIndex in the display order.
[0036] The above automatic registration page also displays a variety of registration modes, such as automatic registration of a single simulated vehicle mode, automatic registration of multiple simulated vehicle modes, and manual trigger message mode. In this way, after receiving a click instruction for the button corresponding to the automatic registration of multiple simulated vehicle modes, that is, after receiving a click instruction for the button corresponding to the automatic registration of multiple vehicles, it is detected whether a click instruction for the sequence value by the user is received within a preset time. If a click instruction for the sequence value by the user is detected within the preset time, the sequence value corresponding to the target simulated vehicle is determined based on the sequence value clicked by the user and at least a preset number of sequence values thereafter, and then the ID of the target simulated vehicle is determined based on the correspondence between the sequence value and the ID, and then the automatic registration of multiple vehicles instruction is generated based on these IDs. If a click instruction for the sequence value by the user is not detected within the preset time, the IDs of the simulated vehicles corresponding to these sequence values are determined based on sequence value 1 and at least a preset number of sequence values thereafter, and then the automatic registration of multiple vehicles instruction is generated based on these IDs.
[0037] In this way, the application communication modules corresponding to these IDs can be determined according to the IDs in the automatic registration multi-vehicle instruction, so that the application communication modules corresponding to these target simulated vehicles send application message packets to the corresponding AtoS communication modules. The above ID can be CTCSID.
[0038] The automatic registration page will also display the automatic registration of a single simulated vehicle mode. The automatic registration of a single simulated vehicle mode is a button "Automatically register this vehicle" that can trigger the automatic registration of a simulated vehicle on the human-computer interaction interface. This button corresponds to the automatic registration of a single simulated vehicle mode. The operation method is: the first step is to click the simulated vehicle on the left to determine the TrainIndex and CTCSID of the simulated vehicle; the second step is to click "Automatically register this vehicle". The manual trigger message mode is a mode for registering a manually selected simulated vehicle, that is, manually triggering messages such as M155 and M159 to establish a communication session with TSRS.
[0039] The AtoS communication module is used to receive the application message packet sent by the application communication module, and send the application message packet to the AtoS storage module for storage.
[0040] Each simulated vehicle has an application communication module and an AtoS communication module connected to the application communication module. The AtoS communication module is used to receive an application message packet sent by the application communication module corresponding to the simulated vehicle.
[0041] After the application message subsystem and the protocol interface subsystem are turned on, when the application communication module in the application message subsystem sends an application message packet, the AtoS communication module in the protocol interface subsystem can receive and forward the application message packet sent by each application communication module, and send the application message packet to the AtoS storage module for storage.
[0042] It should be noted that each AtoS communication module is only connected to the corresponding application layer communication module on the same simulated vehicle, and is not connected to the application layer communication modules on other simulated vehicles, thereby avoiding the configuration data in the application layer communication modules on other simulated vehicles being sent to the AtoS communication module, thereby causing data transmission errors.
[0043] The AtoS storage module is used to receive the application message packet sent by the AtoS communication module.
[0044] The application message packet includes the CTCSID of the corresponding target simulated vehicle. Each simulated vehicle has a unique corresponding CTCSID.
[0045] In implementation, the AtoS storage module stores application message packets corresponding to multiple target simulated vehicles, and these application message packets need to be sent out one by one. When an application message packet corresponding to a target simulated vehicle has not yet been sent, the AtoS forwarding module cannot forward the application message packet. The AtoS storage module needs to be stored first so that when it needs to be forwarded, it can be directly obtained from the AtoS storage module.
[0046] For example, the AtoS storage module stores three application message packets, and the AtoS forwarding module forwards the first application message packet to the security layer communication module, and enables the security layer communication module to generate a corresponding automatic registration message based on the application message packet and send it out. When the AtoS forwarding module detects that the automatic registration message corresponding to the first application message packet is sent out, the AtoS forwarding module finds and forwards the second application message packet in the AtoS storage module. When the AtoS forwarding module detects that the automatic registration message corresponding to the second application message packet is sent out, the AtoS forwarding module forwards the third application message packet.
[0047] The AtoS forwarding module is used to read the application message packet stored in the AtoS storage module, and determine the security layer communication module corresponding to the application message packet according to the CTCSID in the read application message packet, and send the application message packet to the corresponding security layer communication module.
[0048] Among them, CTCSID is the unique identifier of the simulated vehicle.
[0049] In implementation, the AtoS forwarding module obtains the CTCSID in the AtoS storage module. In this way, the AtoS forwarding module can determine the security layer communication module corresponding to each application message packet according to the CTCSID in each application message packet, and then send the application message packet to the corresponding security layer communication module.
[0050] The security layer communication module is used to encrypt the received application message packet, obtain the automatic registration message that complies with the security communication protocol, and send the automatic registration message to the TSRS.
[0051] In implementation, the encryption methods stored in each security layer communication module may be the same or different. After a security layer communication module receives an application message packet, it encrypts the received application message packet to obtain an automatic registration message and sends it to the TSRS.
[0052] The human-computer interaction module is used to count the number of communication sessions established between the TSRS and the target simulated vehicles according to the automatic registration result fed back by the TSRS, and display the count so as to test whether the TSRS has established communication sessions with at least a preset number of target simulated vehicles according to the count, wherein the automatic registration result is used to indicate whether the TSRS has established communication sessions with the target simulated vehicles.
[0053] In implementation, the manual interaction module determines that the number of automatic registration results is the same as the number of automatic registration messages sent, and each registration result is a successful registration. If so, it is determined that the TSRS can establish a communication session with at least a preset number of target simulated vehicles. If not, it is determined that the TSRS cannot establish a communication session with at least a preset number of target simulated vehicles.
[0054] In an embodiment of the present application, when an automatic registration instruction for multiple vehicles is received in the application message subsystem, the application message packets corresponding to at least a preset number of target simulated vehicles indicated by the instruction are determined, and then the automatic registration message corresponding to each application message packet is obtained, which is sent to TSRS to establish a communication session between TSRS and each target simulated vehicle, thereby testing whether TSRS can establish a communication session with at least a preset number of target simulated vehicles based on the number of target simulated vehicles that establish a communication session with TSRS. This avoids the problem in the prior art that technicians need to perform control operations on each physical vehicle, thereby improving the testing efficiency of TSRS. In addition, there is no need to set up multiple physical vehicles in the present application, which further improves the testing efficiency of TSRS.
[0055] The human-computer interaction module is also used to display the registration result of the Nth target simulated vehicle when the automatic registration of the Nth target simulated vehicle is completed, and automatically start registering the N+1th target simulated vehicle until the automatic registration process of at least the preset number of target simulated vehicles is completed. Based on the registration result of each target simulated vehicle, the number of communication sessions established between TSRS and the target simulated vehicle is counted and displayed.
[0056] When the registration result of each target simulated vehicle is successful, it is determined that TSRS has established a communication session with at least a preset number of target simulated vehicles. When the registration result of at least one target simulated vehicle is not successful, it is determined that TSRS cannot establish a communication session with at least a preset number of target simulated vehicles.
[0057] Furthermore, the system also includes a human-computer interaction module, which is also used to obtain at least a preset number of target simulated vehicles according to preset rules when receiving a click instruction corresponding to the automatic registration of multiple vehicles button displayed on the application message subsystem, and generate an automatic registration of multiple vehicles instruction based on the target simulated vehicles; the AtoS communication module is also used to receive the automatic registration of multiple vehicles instruction sent by the human-computer interaction module.
[0058] In implementation, each simulated vehicle corresponds to a sequence value. The human-computer interaction module displays the sequence value corresponding to each simulated vehicle on the automatic registration page. After receiving a click instruction corresponding to the automatic registration of multiple simulated vehicle modes, and detecting a click instruction of the user on the sequence value within a preset time, the preset rule is determined to determine the sequence value clicked by the user and at least a preset number of sequence values thereafter as the sequence value corresponding to the target simulated vehicle. When no click instruction of the user on the sequence value is detected within the preset time, the preset rule is determined to determine sequence value 1 and at least a preset number of sequence values thereafter as the sequence value corresponding to the target simulated vehicle. The above-mentioned preset rules may also be other rules that can determine at least a preset number of target simulated vehicles, and this is not limited to this.
[0059] Afterwards, the human-computer interaction module will send the automatic registration of multiple vehicles instructions to the AtoS communication module. Specifically, the human-computer interaction module can send the automatic registration of multiple vehicles instructions to the AtoS communication module separately. When the AtoS communication module detects that the target simulated vehicle in the automatic registration of multiple vehicles instructions includes the simulated vehicle corresponding to the AtoS communication module, it generates a corresponding application message package based on the pre-stored configuration data.
[0060] Furthermore, the system also includes a security layer communication module, which is also used to decrypt the feedback message of the corresponding target simulated vehicle, obtain the decrypted data, and send the decrypted data to the StoA forwarding module. The StoA forwarding module is used to forward the decrypted data to the StoA storage module. The StoA communication module is used to find the decrypted data corresponding to the StoA communication module in the StoA storage module according to the CTCSID corresponding to the StoA communication module, obtain the corresponding decrypted data, and send the decrypted data corresponding to the target simulated vehicle to the application communication module. The application communication module is also used to obtain the automatic registration result based on the decrypted data and send it to the human-computer interaction module. The human-computer interaction module is also used to display the automatic registration result corresponding to the target simulated vehicle.
[0061] In implementation, in order to prevent malicious users from modifying the content of the message fed back by TSRS, TSRS will encrypt the feedback message. In this case, when obtaining the content in the feedback message, the security layer communication module needs to decrypt the feedback message first. After the security layer communication module decrypts the feedback message corresponding to the target simulated vehicle, it sends it to the StoA forwarding module, so that the StoA forwarding module sends the decrypted data to the StoA storage module for storage. The StoA communication module finds the decrypted data corresponding to the simulated vehicle of the StoA communication module in the StoA storage module, and sends it to the application communication module. The application communication module obtains the automatic registration result based on the decrypted data, and sends it to the human-computer interaction display, and then displays the automatic registration result. Among them, the automatic registration result is used to indicate whether the automatic registration process is successful, that is, whether the communication session is successfully established.
[0062] Furthermore, the application communication module is also used to generate a corresponding simulated vehicle-mounted registration log according to the received automatic registration result.
[0063] In order to store the automatic registration result corresponding to each target simulated vehicle, after the application communication module receives the automatic registration result, a registration log of the corresponding simulated vehicle is generated.
[0064] Furthermore, the human-computer interaction module is also used to determine whether a user's selection operation on the sequence value is detected within a preset time after receiving a click instruction corresponding to the automatic registration of multiple vehicles button. If so, determine at least a preset number of sequence values based on the sequence value selected by the user, and generate an automatic registration of multiple vehicles instruction based on the target simulated vehicles indicated by at least the preset number of sequence values, wherein the sequence value and the target simulated vehicle are in a one-to-one correspondence.
[0065] During implementation, when the human-computer interaction module receives a click instruction corresponding to the automatic registration of multiple simulated vehicle modes, it detects the user's click instruction on the sequence value within a preset time, determines at least a preset number of sequence values from the sequence value clicked by the user, and generates an automatic registration of multiple vehicles instruction based on the ID of the target simulated vehicle indicated by at least a preset number of sequence values.
[0066] Furthermore, the human-computer interaction module is also used to, if not, determine at least a preset number of sequence values from sequence value 1, and generate automatic registration of multiple vehicles instructions according to the target simulated vehicles indicated by at least the preset number of sequence values.
[0067] Further, in Figure 1 Based on the above embodiments, the present application embodiment provides a method for automatically registering multiple vehicles. The execution subject of the method can be a test device or other electronic devices, which is not limited here. The specific execution steps are as follows: Figure 3 As shown, including:
[0068] Step 301 : when an automatic registration of multiple vehicles instruction is received in the application message subsystem, it is determined that the automatic registration of multiple vehicles instruction indicates at least a preset number of target simulated vehicles.
[0069] The test device can be any device in a TSRS cabinet or a PC, and the specific form of the test device is not limited here. The target simulated vehicle is the simulated vehicle to which the test message is to be sent. The automatic registration of multiple vehicles instruction is used to instruct the automatic registration of at least a preset number of target simulated vehicles.
[0070] In a specific implementation of this step, when the test device receives the automatic registration of multiple vehicles command, it can obtain the simulated vehicle IDs carried in the automatic registration of multiple vehicles command, and determine the target simulated vehicle indicated by the automatic registration of multiple vehicles command based on these IDs. The above ID can be a CTCSID.
[0071] Specifically, after the user turns on the application message subsystem, the sequence value corresponding to each simulated vehicle is displayed on the automatic registration page. After receiving a click instruction corresponding to the automatic registration of multiple vehicles button on the automatic registration page, it is detected whether the user's click instruction on the sequence value is received within the preset time. If the user's click instruction on the sequence value is detected within the preset time, the sequence value corresponding to the target simulated vehicle is determined based on the sequence value clicked by the user and at least the preset number of sequence values thereafter, and then the ID of the target simulated vehicle is determined, and then the automatic registration of multiple vehicles instruction is generated based on these IDs. If the user's click instruction on the sequence value is not detected within the preset time, the IDs of the simulated vehicles corresponding to these sequence values are determined based on sequence value 1 and at least the preset number of sequence values thereafter, and then the automatic registration of multiple vehicles instruction is generated based on these IDs.
[0072] Step 302: Determine the automatic registration message corresponding to each target simulated vehicle according to the configuration data corresponding to each target simulated vehicle.
[0073] In a specific implementation of this step, according to the ID carried in the automatic registration of multiple vehicles instruction, the application message package corresponding to each ID is determined, the application message package of each target simulated vehicle is encrypted, and the automatic registration message corresponding to each target simulated vehicle is determined.
[0074] Specifically, the human-computer interaction module can read the configuration data containing multiple simulated vehicles from the configuration data processing module, generate corresponding application message packets based on these configuration data, and send the application message packets on the target simulated vehicle to the corresponding application communication module. The AtoS communication module receives the application message packets sent by the application communication module, and sends the application message packets to the AtoS storage module for storage. The AtoS storage module receives the application message packets sent by the AtoS communication module, and is used by the AtoS forwarding module to read the application message packets from the AtoS storage module and send them to the security layer communication module. The AtoS forwarding module reads the application message packets stored in the AtoS storage module, and determines the security layer communication module corresponding to the application message packet based on the CTCSID in the application message packet, and sends the application message packet to the corresponding security layer communication module. The security layer communication module encrypts the received application message packet, obtains an automatic registration message that complies with the security communication protocol, and sends it to the TSRS.
[0075] Step 303: Send the automatic registration message corresponding to each target simulated vehicle to TSRS to obtain a feedback message from TSRS.
[0076] Step 304: According to the feedback message of the TSRS, test whether the TSRS has established communication sessions with at least a preset number of target simulated vehicles.
[0077] Since TSRS needs to establish communication sessions with at least 60 target simulated vehicles, the preset number may be 60.
[0078] In a specific implementation of this step, the feedback message of the TSRS is decrypted to obtain the automatic registration result corresponding to each feedback message, and it is determined whether all the automatic registration results are successful registrations. If yes, it is determined that the TSRS has established communication sessions with at least a preset number of target simulated vehicles. If not, it is determined that the TSRS has not established communication sessions with at least a preset number of target simulated vehicles.
[0079] Specifically, it includes decrypting the feedback message of the corresponding target simulated vehicle, obtaining the decrypted data, and sending the decrypted data to the StoA forwarding module. The StoA forwarding module forwards the decrypted data to the StoA storage module. The StoA communication module finds the data corresponding to the simulated vehicle corresponding to the StoA communication module according to the CTCSID in the StoA storage module, obtains the corresponding decrypted data, and sends the decrypted data corresponding to the target simulated vehicle to the application communication module. The application communication module obtains the automatic registration result based on the decrypted data and sends it to the human-computer interaction module. The human-computer interaction module displays the automatic registration result corresponding to the target simulated vehicle.
[0080] In an embodiment of the present application, when an automatic registration of multiple vehicles instruction is triggered in the application message subsystem, at least a preset number of target simulated vehicles indicated by the automatic registration of multiple vehicles instruction are obtained; according to the configuration data corresponding to each target simulated vehicle, an automatic registration message corresponding to each target simulated vehicle is generated, and then the automatic registration message corresponding to each target simulated vehicle is sent to TSRS, so that TSRS registers each target simulated vehicle and establishes a communication connection. In this way, it is realized that at least a preset number of target simulated vehicles are automatically registered through an automatic registration of multiple vehicles instruction, which is simple and convenient. At the same time, according to the feedback message of TSRS, it is tested whether TSRS has established a communication session with at least a preset number of target simulated vehicles. In this way, it is possible to determine whether TSRS has successfully registered at least a preset number of target simulated vehicles based on the feedback message of TSRS, and then simulate the vehicle to test whether TSRS has established a communication session with at least a preset number of target simulated vehicles.
[0081] Furthermore, the present application embodiment provides a method for multiple simulated vehicle registrations, specifically as follows: Figure 4 As shown, specifically: first Figure 2 On the automatic registration page shown, press the value of TrainIndex to start automatic vehicle registration. The value of TrainIndex is the value of TrainIndex corresponding to the simulated vehicle selected by clicking the mouse. If the simulated vehicle is not selected, the value of TrainIndex is 1, that is, registration starts from the first simulated vehicle in the list. Afterwards, according to the selected TrainIndex, its corresponding simulated vehicle is determined, and then the application message communication module of the corresponding simulated vehicle is controlled to start sending application message packets. After receiving the application message packet, the AtoS communication module of vehicle i stores it in the AtoS storage module (the AtoS storage module records the CTCSID and communication socketid of the simulated vehicle when storing. For different simulated vehicles, the CTCSID and communication socketid are different). The AtoS forwarding module sends the data to the corresponding security layer communication module of the simulated vehicle according to the CTCSID of the simulated vehicle, and the security layer communication module of the simulated vehicle sends the data to the temporary speed limit server.
[0082] In the device under test TSRS: reply to the corresponding message according to the message received from the multi-simulation vehicle system. The security layer communication module of the simulation vehicle i receives data from the temporary speed limit server and stores it in the StoA storage module; the StoA communication module of vehicle i finds the data of the vehicle from the StoA storage module and sends it to the vehicle i application message communication module of the application message layer. After the security layer communication module of the simulation vehicle receives data from the temporary speed limit server, it writes the data to the StoA storage module through the StoA forwarding module (the data recorded in the StoA storage module contains the simulated vehicle CTCSID and the communication socketid with the application message communication module of the application message layer. For different simulation vehicles, the CTCSID and the communication socketid are different). Whether the message received by vehicle i is a message8 train data confirmation package. If not, determine the type of message to be replied based on the received message, and send it by the application message communication module of vehicle i. If yes, determine whether all simulation vehicles have been registered. If not, automatically start the automatic registration of the next vehicle. If not, control the application message communication module of the i-th vehicle to start sending the application message package, and repeat the subsequent process until all simulation vehicles have completed automatic registration. If the multi-simulation vehicle registration is completed, the multi-simulation vehicle registration process ends.
[0083] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0084] It is understandable that the related features in the above methods and devices can be referenced to each other. In addition, the "first", "second" and the like in the above embodiments are used to distinguish the embodiments, but do not represent the advantages and disadvantages of the embodiments.
[0085] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be described one by one here.
[0086] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the application is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the application described herein, and the description of the specific language above is for the purpose of disclosing the best mode of implementation of the application.
[0087] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0088] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0089] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0090] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0091] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0092] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0093] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0094] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0095] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0096] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0097] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A system for automatically registering multiple vehicles, characterized in that: The system is divided into an application message subsystem and a protocol interface subsystem. The application message subsystem includes an application communication module and a human-computer interaction module. The protocol interface subsystem includes an AtoS communication module, an AtoS storage module, an AtoS forwarding module and a security layer communication module, wherein: An application communication module, configured to, when an automatic registration of multiple vehicles instruction is triggered in the application message subsystem, send application message packets to corresponding AtoS communication modules through the application communication modules on at least a preset number of target simulation vehicles indicated by the instruction, respectively, wherein the application message packets are used to request to establish a communication session with the TSRS; An AtoS communication module, used to receive the application message packet sent by the application communication module, and send the application message packet to the AtoS storage module for storage; An AtoS storage module, used for receiving an application message packet sent by the AtoS communication module, wherein the application message packet includes a CTCSID corresponding to a target simulation vehicle; An AtoS forwarding module is used to read the application message packet stored in the AtoS storage module, and determine the security layer communication module corresponding to the application message packet according to the CTCSID in the read application message packet, and send the application message packet to the corresponding security layer communication module; The security layer communication module is used to encrypt the received application message packet, obtain an automatic registration message that complies with the security communication protocol, and send the automatic registration message to the TSRS; The human-computer interaction module is used to count the number of communication sessions established between the TSRS and the target simulated vehicles according to the automatic registration result fed back by the TSRS, and display the count so as to test whether the TSRS has established communication sessions with at least a preset number of target simulated vehicles according to the count, wherein the automatic registration result is used to indicate whether the TSRS has established communication sessions with the target simulated vehicles.
2. The system according to claim 1, characterized in that The human-computer interaction module is also used to display the registration result of the Nth target simulated vehicle when the automatic registration of the Nth target simulated vehicle is completed, and automatically start registering the N+1th target simulated vehicle until the automatic registration process of at least a preset number of target simulated vehicles is completed. Based on the registration result of each target simulated vehicle, the number of communication sessions established between TSRS and the target simulated vehicle is counted and displayed.
3. The system according to claim 1, characterized in that The human-computer interaction module is further configured to, when receiving a click instruction corresponding to the automatic registration of multiple vehicles button displayed on the application message subsystem, obtain at least a preset number of target simulated vehicles according to a preset rule, and generate an automatic registration of multiple vehicles instruction according to the target simulated vehicles; The AtoS communication module is also used to receive the automatic registration of multiple vehicles instruction sent by the human-computer interaction module.
4. The system according to claim 1, characterized in that The security layer communication module is further used to decrypt the feedback message of the corresponding target simulated vehicle to obtain decrypted data, and send the decrypted data to the StoA forwarding module; The StoA forwarding module is used to forward the decrypted data to the StoA storage module; The StoA communication module is used to find the decrypted data corresponding to the StoA communication module in the StoA storage module according to the CTCSID corresponding to the StoA communication module; The application communication module is also used to obtain the automatic registration result according to the decrypted data and send it to the human-computer interaction module; The human-computer interaction module is also used to display the automatic registration result corresponding to the target simulated vehicle.
5. The system according to claim 1, characterized in that The application communication module is also used to generate a corresponding simulated vehicle-mounted registration log according to the obtained automatic registration result.
6. The system according to claim 3, characterized in that The human-computer interaction module is also used to determine whether a user's selection operation on the sequence value is detected within a preset time after receiving a click instruction corresponding to the automatic registration of multiple vehicles button. If so, determine at least a preset number of sequence values based on the sequence value selected by the user, and generate an automatic registration of multiple vehicles instruction based on the target simulated vehicles indicated by at least the preset number of sequence values, wherein the sequence value and the target simulated vehicle are in a one-to-one correspondence.
7. The system according to claim 6, characterized in that The human-computer interaction module is further used to, if not, determine at least a preset number of sequence values from sequence value 1, and generate an automatic registration multi-vehicle instruction according to the target simulated vehicles indicated by at least the preset number of sequence values.
8. A method for automatically registering multiple vehicles, characterized in that: The method is applied to the system according to any one of claims 1 to 5, comprising: When an automatic registration of multiple vehicles instruction is received in the application message subsystem, obtaining at least a preset number of target simulated vehicles indicated by the automatic registration of multiple vehicles instruction; Determine the automatic registration message corresponding to each target simulated vehicle according to the configuration data corresponding to each target simulated vehicle; Sending the automatic registration message corresponding to each target simulated vehicle to the TSRS to obtain a feedback message from the TSRS; According to the feedback message of the TSRS, it is tested whether the TSRS has established communication sessions with at least a preset number of target simulated vehicles.
9. A storage medium, characterized in that: The storage medium is used to store a computer program, wherein when the computer program is running, it controls the device where the storage medium is located to execute the method for automatically registering multiple vehicles as described in claim 8.
Citation Information
Patent Citations
Methods and systems for provisioning of certificates for vehicle-based communication
WO2020199134A1
