CN115242694A - Method and system for automatically registering multiple vehicles - Google Patents

Method and system for automatically registering multiple vehicles Download PDF

Info

Publication number
CN115242694A
CN115242694A CN202210784927.3A CN202210784927A CN115242694A CN 115242694 A CN115242694 A CN 115242694A CN 202210784927 A CN202210784927 A CN 202210784927A CN 115242694 A CN115242694 A CN 115242694A
Authority
CN
China
Prior art keywords
vehicle
target simulation
tsrs
module
communication module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210784927.3A
Other languages
Chinese (zh)
Other versions
CN115242694B (en
Inventor
徐建华
徐东晖
张瑞
毕晋攀
宋青阳
陈莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casco Signal Beijing Ltd
Original Assignee
Casco Signal Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casco Signal Beijing Ltd filed Critical Casco Signal Beijing Ltd
Priority to CN202210784927.3A priority Critical patent/CN115242694B/en
Publication of CN115242694A publication Critical patent/CN115242694A/en
Application granted granted Critical
Publication of CN115242694B publication Critical patent/CN115242694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a method and a system for automatically registering multiple vehicles. The method comprises the following steps: when an automatic multi-vehicle registration instruction is received in the application message subsystem, at least a preset number of target simulation vehicle-mounted devices indicated by the automatic multi-vehicle registration instruction are obtained; determining an automatic registration message corresponding to each target simulation vehicle according to the configuration data corresponding to each target simulation vehicle; sending an automatic registration message corresponding to each target simulation vehicle to a TSRS (time series reporting System) to acquire a feedback message of the TSRS; and testing whether the TSRS establishes communication sessions with at least a preset number of target simulation vehicles or not according to the feedback message of the TSRS. The testing efficiency of the TSRS can be improved.

Description

Method and system for automatically registering multiple vehicles
Technical Field
The application relates to the technical field of TSRS (time series remote sensing) testing, in particular to a method and a system for automatically registering multiple vehicles.
Background
With the development of railway technology, the CTCS (China train control System) can realize the automatic driving function of the train, which can reduce the labor intensity of drivers, and the TSRS is an important component of the CTCS. Before the TSRS is put into use, according to relevant technical specifications, the TSRS is required to be ensured to be connected with at least 60 entity vehicles and to have normal communication function with the vehicles.
In the related art, in order to test that the TSRS is in normal communication with at least 60 entity vehicles, the TSRS needs to establish communication sessions with a plurality of entity vehicles. In the process of establishing communication sessions between the TSRS and a plurality of entity vehicles, technicians control each entity vehicle to establish the communication sessions between each entity vehicle and the TSRS, and then whether the TSRS is in normal communication with at least 60 entity vehicles is tested.
In the above process, the technician needs to perform an individual control operation on each entity vehicle to control each entity vehicle to establish a communication session with the TSRS, and the individual operation of the technician on each entity vehicle increases the workload of the technician and reduces the testing efficiency of the TSRS. Meanwhile, a plurality of entity vehicles are required to be arranged for testing, so that more devices are occupied, and the testing efficiency of the TSRS is further reduced.
Disclosure of Invention
In view of this, the present application provides a method and a system for automatically registering multiple vehicles, which can improve the testing efficiency of the TSRS.
In order to achieve the above purpose, the present application mainly provides the following technical solutions:
in a first aspect, the application provides a system for automatically registering multiple vehicles, the system is divided into an application message subsystem and a protocol interface subsystem, the application message subsystem comprises an application communication module and a human-computer interaction module, the protocol interface subsystem comprises an AtoS communication module, an AtoS storage module, an AtoS forwarding module and a safety layer communication module, wherein:
the system comprises an application communication module, a TSRS (traffic service System) and a plurality of target simulation vehicle-mounted application communication modules, wherein the application communication module is used for sending an application message packet to the corresponding AtoS communication modules respectively through at least a preset number of target simulation vehicle-mounted application communication modules indicated by an instruction when an automatic registration multi-vehicle instruction is triggered in an application message subsystem, and the application message packet is used for requesting to establish a communication session with the TSRS;
the AtoS communication module is used for receiving the application message packet sent by the application communication module and sending the application message packet to the AtoS storage module for storage;
the AtoS storage module is used for receiving an application message packet sent by the AtoS communication module, and the application message packet comprises the CTCSID of the corresponding target simulation vehicle;
the AtoS forwarding module is used for reading the application message packet stored by the AtoS storage module, determining a security layer communication module corresponding to the application message packet according to the read CTCSID in the application message packet, and sending the application message packet to the corresponding security layer communication module;
the system comprises a security layer communication module, a TSRS (secure transport layer) and a service layer communication module, wherein the security layer communication module is used for encrypting a received application message packet to obtain an automatic registration message which accords with a security communication protocol and sending the automatic registration message to the TSRS;
and the human-computer interaction module is used for counting the quantity of the communication sessions established between the TSRS and the target simulation vehicles according to the automatic registration result fed back by the TSRS, and displaying the quantity so as to test whether the TSRS establishes the communication sessions with at least a preset number of target simulation vehicles according to the quantity, wherein the automatic registration result is used for indicating whether the TSRS establishes the communication sessions with the target simulation vehicles.
In a second aspect, the present application provides a method of automatically registering multiple vehicles, the method comprising:
when an automatic multi-vehicle registration instruction is received in the application message subsystem, at least a preset number of target simulation vehicle-mounted devices indicated by the automatic multi-vehicle registration instruction are obtained;
determining an automatic registration message corresponding to each target simulation vehicle according to the configuration data corresponding to each target simulation vehicle;
sending an automatic registration message corresponding to each target simulation vehicle to a TSRS (time series reporting System) to acquire a feedback message of the TSRS;
and testing whether the TSRS establishes communication sessions with at least a preset number of target simulation vehicles or not according to the feedback message of the TSRS.
In a third aspect, the present application provides a terminal, configured to run a program, where the terminal executes the method for automatically registering multiple vehicles according to the second aspect when running.
In a fourth aspect, the present application provides a storage medium for storing a computer program, wherein the computer program controls a device on which the storage medium is located to execute the method for automatically registering multiple vehicles according to the second aspect when running.
By means of the technical scheme, the application provides a method and a system for automatically registering multiple vehicles, and when an automatic multi-vehicle registration instruction is triggered in an application message subsystem, at least a preset number of target simulation vehicle-mounted devices indicated by the automatic multi-vehicle registration instruction are obtained; and generating an automatic registration message corresponding to each target simulation vehicle according to the configuration data corresponding to each target simulation vehicle, and further sending the automatic registration message corresponding to each target simulation vehicle to the TSRS, so that the TSRS registers each target simulation vehicle and establishes communication connection. Therefore, the aim of automatically registering multiple vehicles is achieved, at least a preset number of target simulation vehicles are automatically registered, and the method is simple and convenient. And simultaneously, testing whether the TSRS establishes communication sessions with at least a preset number of target simulation vehicles according to the feedback message of the TSRS. Therefore, whether the TSRS successfully registers at least a preset number of target simulation vehicle-mounted devices can be determined according to the feedback message of the TSRS, and whether the simulated vehicle-mounted test TSRS establishes communication session with at least the preset number of target simulation vehicle-mounted devices or not is further simulated.
The above description is only an overview of the technical solutions of the present application, and the present application may be implemented in accordance with the content of the description so as to make the technical means of the present application more clearly understood, and the detailed description of the present application will be given below in order to make the above and other objects, features, and advantages of the present application more clearly understood.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an apparatus for automatically registering multiple vehicles according to the present disclosure;
FIG. 2 is a human-machine interface diagram of an application messaging subsystem of an apparatus for automatically registering multiple vehicles as disclosed herein;
FIG. 3 is a schematic flow chart diagram of a method for automatically registering multiple vehicles as disclosed herein;
FIG. 4 is a flow chart illustrating another method for automatically registering multiple vehicles disclosed herein.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
With the development of railway technology, the CTCS (China train control System) can realize the automatic driving function of the train, which can reduce the labor intensity of drivers, and the TSRS is an important component of the CTCS. Before the TSRS is put into use, according to relevant technical specifications, the TSRS is required to be at least connected with 60 entity vehicles and has normal communication function with the vehicles.
In the related art, in order to test that the TSRS is in normal communication with at least 60 entity vehicles, the TSRS needs to establish communication sessions with a plurality of entity vehicles. In the process of establishing communication sessions between the TSRS and a plurality of entity vehicles, technicians control each entity vehicle to establish the communication sessions between each entity vehicle and the TSRS, and then whether the TSRS is in normal communication with at least 60 entity vehicles is tested.
In the above process, the technician needs to perform individual control operation on each entity vehicle to control each entity vehicle to establish a communication session with the TSRS, and the individual operation of the technician on each entity vehicle increases the workload of the technician and reduces the testing efficiency of the TSRS. Meanwhile, a plurality of entity vehicles are required to be arranged for testing, so that more devices are occupied, and the testing efficiency of the TSRS is further reduced.
In order to solve the above problem, an embodiment of the present application provides a system for automatically registering multiple vehicles, where 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, and the protocol interface subsystem includes an AtoS communication module, an AtoS storage module, an AtoS forwarding module, a security layer communication module, a StoA storage module, and a StoA forwarding module, and specifically as shown in fig. 1, the system includes:
and the application communication module is used for sending application message packets to corresponding AtoS communication modules respectively through at least preset number of target simulation vehicle-mounted application communication modules indicated by the instruction when an automatic registration multi-vehicle instruction is triggered in the application message subsystem, and the application message packets are used for requesting to establish a communication session with the TSRS.
The TSRS testing system comprises an application message subsystem and a protocol interface subsystem. The application message subsystem is used for providing a target simulation vehicle-mounted application message packet for the protocol interface subsystem. The protocol interface subsystem has a message interaction function. The application message subsystem may be disposed in the same device as the protocol interface subsystem, or may be disposed in a different device.
In implementation, the application message subsystem includes application communication modules, each simulation vehicle-mounted application communication module corresponds to one application communication module, and each application communication module stores an application message packet corresponding to the simulation vehicle-mounted application communication module. The application message subsystem further includes a configuration data processing module. The configuration data processing module is used for processing configuration data. Thus, when the application message subsystem is started, the human-computer interaction module can read the configuration data containing a plurality of simulation vehicles from the configuration data processing module, generate corresponding application message packets based on the configuration data, further display all simulation vehicle IDs and corresponding application message packets on the automatic registration page, and provide the train sequence value TrainIndex for each simulation vehicle according to the display sequence.
The automatic registration page also displays a plurality of registration modes, such as an automatic registration of a single simulated vehicle-mounted mode, an automatic registration of a plurality of simulated vehicle-mounted modes and a manual trigger message mode. Thus, after the click commands of the buttons corresponding to the plurality of simulated vehicle-mounted modes are automatically registered, namely after the click commands corresponding to the buttons for automatically registering the plurality of simulated vehicle-mounted modes are received, whether the click commands of the user for the sequence values are received within the preset time is detected, if the click commands of the user for the sequence values are detected within the preset time, the sequence values corresponding to the target simulated vehicle-mounted modes are determined based on the sequence values clicked by the user and at least the preset number of sequence values behind the sequence values, further, the IDs of the target simulated vehicle-mounted modes are determined according to the corresponding relations between the sequence values and the IDs, and then the automatic multi-vehicle registration commands are generated according to the IDs. If the click command of the user on the sequence value is not detected within the preset time, the ID of the simulated vehicle corresponding to the sequence values is determined based on the sequence value 1 and at least a preset number of sequence values after the sequence value, and then the automatic registration multi-vehicle command is generated based on the ID.
Therefore, the application communication modules corresponding to the IDs can be determined according to the IDs in the automatic registration multi-vehicle instruction, and then the application communication modules corresponding to the target simulation vehicle-mounted application communication modules send the application message packets to the corresponding AtoS communication modules. Wherein the ID may be a CTCSID.
The automatic registration page can also display an automatic registration single simulation vehicle-mounted mode, and the automatic registration single simulation vehicle-mounted mode displays a button capable of triggering automatic registration of a simulation vehicle-mounted mode, namely 'automatically registering the vehicle', on the human-computer interaction interface, wherein the button corresponds to the automatic registration single simulation vehicle mode. The operation mode is as follows: the method comprises the following steps that firstly, a left simulation vehicle is clicked, and therefore the TrainIndex and the CTCSID of the simulation vehicle are determined; the second click "automatically register the car". The manual trigger message mode is a mode for registering the manually selected simulated vehicle, that is, a mode for manually triggering messages such as M155 and M159 to establish a communication session with the TSRS.
And the AtoS communication module is used for receiving the application message packet sent by the application communication module and sending the application message packet to the AtoS storage module for storage.
Wherein, each simulation vehicle-mounted corresponds to an application communication module and an AtoS communication module connected with the application communication module. The AtoS communication module is used for receiving an application message packet sent by the corresponding simulation vehicle-mounted application communication module.
After the application message subsystem and the protocol interface subsystem are started, when an 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.
It should be noted that each AtoS communication module is only connected with the corresponding same simulation vehicle-mounted application layer communication module, and is not connected with other simulation vehicle-mounted application layer communication modules, so that configuration data in other simulation vehicle-mounted application layer communication modules are prevented from being sent to the AtoS communication modules, and further data transmission errors are avoided.
And the AtoS storage module is used for receiving the application message packet sent by the AtoS communication module.
Wherein, the application message packet comprises the CTCSID corresponding to the target simulation vehicle. Each simulated vehicle has a unique corresponding CTCSID.
In implementation, a plurality of application message packets corresponding to the object simulation vehicle-mounted device are stored in the AtoS storage module, the application message packets need to be sent out one by one, when the application message packet corresponding to a certain object simulation vehicle-mounted device is not sent in turn, the AtoS forwarding module cannot forward the application message packet, and the AtoS storage module needs to be stored first, so that when the application message packet needs to be forwarded, the application message packet can be directly acquired at the AtoS storage module.
For example, the AtoS storage module stores 3 application message packets, and the AtoS forwarding module forwards the first application message packet to the security layer communication module, so that the security layer communication module generates a corresponding automatic registration message based on the application message packet and sends the automatic registration message. 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 out and forwards a second application message packet in the AtoS storage module. And 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 a third application message packet.
And the AtoS forwarding module is used for reading the application message packet stored by the AtoS storage module, determining the security layer communication module corresponding to the application message packet according to the CTCSID in the read application message packet, and sending the application message packet to the corresponding security layer communication module.
The CTCSID is a unique identification simulating vehicle-mounted identification.
In implementation, the AtoS forwarding module acquires the ctcsi d in the AtoS storage module, and thus, the AtoS forwarding module may determine the security layer communication module corresponding to each application message packet according to the ctcsi d in each application message packet, and further send the application message packet to the corresponding security layer communication module.
And the safety layer communication module is used for encrypting the received application message packet to obtain an automatic registration message which accords with a safety communication protocol and sending the automatic registration message to the TSRS.
In implementation, the encryption mode stored by each security layer communication module may be the same or different. And after a certain security layer communication module receives the application message packet, encrypting the received application message packet to obtain an automatic registration message, and sending the automatic registration message to the TSRS.
And the human-computer interaction module is used for counting the quantity of the communication sessions established between the TSRS and the target simulation vehicles according to the automatic registration result fed back by the TSRS, and displaying the quantity so as to test whether the TSRS establishes the communication sessions with at least a preset number of target simulation vehicles according to the quantity, wherein the automatic registration result is used for indicating whether the TSRS establishes the communication sessions with the target simulation vehicles.
In implementation, the manual interaction module judges that the number of the automatic registration results is the same as the number of the sent automatic registration messages, each registration result is successful in registration, if so, the TSRS is determined to be capable of establishing communication sessions with at least a preset number of target simulation vehicles, and if not, the TSRS is determined not to be capable of establishing communication sessions with at least the preset number of target simulation vehicles.
In the embodiment of the application, when an automatic registration multi-vehicle instruction is received in an application message subsystem, application message packets corresponding to at least a preset number of target simulation vehicles indicated by the instruction are determined, and then an automatic registration message corresponding to each application message packet is obtained and sent to a TSRS, so that a communication session between the TSRS and each target simulation vehicle is established, and whether the TSRS can establish the communication session with at least the preset number of target simulation vehicles is tested according to the number of the target simulation vehicles establishing the communication session with the TSRS. Therefore, the problem that technicians need to control each entity vehicle in the prior art is solved, and the testing efficiency of the TSRS is improved. And in this application, it is not necessary to set multiple vehicle-mounted entities, thereby further improving the testing efficiency of TSRS.
And the human-computer interaction module is also used for displaying the registration result of the Nth target simulation vehicle when the automatic registration of the Nth target simulation vehicle is finished in the process of automatically registering at least a preset number of target simulation vehicles, automatically starting to register the (N + 1) th target simulation vehicle until the automatic registration process of at least the preset number of target simulation vehicles is finished, counting the quantity of communication sessions established between the TSRS and the target simulation vehicles based on the registration result of each target simulation vehicle, and displaying the quantity.
And when the registration result of at least one target simulation vehicle is not successful, determining that the TSRS cannot establish the communication session with at least the preset number of target simulation vehicles.
Further, the system also comprises a man-machine interaction module, and the man-machine interaction module is used for acquiring at least a preset number of target simulation vehicle-mounted devices according to a preset rule when receiving a click instruction corresponding to the automatic registration multi-vehicle button displayed on the application message subsystem, and generating an automatic registration multi-vehicle instruction according to the target simulation vehicle-mounted devices; and the AtoS communication module is also used for receiving an automatic registration multi-vehicle instruction sent by the man-machine interaction module.
In implementation, each simulated vehicle carries a corresponding sequence value. The man-machine interaction module displays the sequence value corresponding to each simulated vehicle-mounted mode on an automatic registration page, detects the click command of the user on the sequence value within preset time after receiving the click command corresponding to a plurality of simulated vehicle-mounted modes which are automatically registered, and determines a preset rule as the sequence value clicked by the user and at least a preset number of sequence values behind the sequence value as the sequence value corresponding to the target simulated vehicle-mounted mode. When the click instruction of the user on the sequence value is not detected within the preset time, the preset rule is determined to be that the sequence value 1 and at least a preset number of sequence values behind the sequence value are determined to be the sequence value corresponding to the target simulation vehicle-mounted state. The preset rule may be other rules that can determine at least a preset number of target simulation vehicles, and the preset rule is not limited to this
And then, the man-machine interaction module sends the automatic registration multi-vehicle instruction to the AtoS communication module, specifically, the man-machine interaction module can respectively send the automatic registration multi-vehicle instruction to the AtoS communication module, and when the AtoS communication module detects that the target simulation vehicle-mounted data in the automatic registration multi-vehicle instruction comprises a simulation vehicle-mounted data corresponding to the AtoS communication module, a corresponding application message packet is generated based on the prestored configuration data.
Further, the system also comprises a security layer communication module which is used for decrypting the corresponding target simulation vehicle-mounted feedback message to obtain decrypted data and sending the decrypted data to the StoA forwarding module. And the StoA forwarding module is used for forwarding the decrypted data to the StoA storage module. And the StoA communication module is used for finding the decrypted data corresponding to the StoA communication module in the StoA storage module according to the CTCSID corresponding to the StoA communication module to obtain the corresponding decrypted data and sending the decrypted data corresponding to the target simulation vehicle-mounted to the application communication module. And the application communication module is also used for obtaining an automatic registration result according to the decrypted data and sending the automatic registration result to the human-computer interaction module. And the human-computer interaction module is also used for displaying the automatic registration result corresponding to the target simulation vehicle.
In implementation, in order to prevent a malicious user from modifying the content in the message fed back by the TSRS, the TSRS encrypts the fed-back message, and thus, when the content in the feedback message is obtained, the security layer communication module is required to decrypt the feedback message first. And after the safety layer communication module decrypts the feedback message corresponding to the target simulation vehicle, the feedback message is sent to the StoA forwarding module, so that the StoA forwarding module sends the decrypted data to the StoA storage module for storage. And the StoA communication module finds the decrypted data corresponding to the simulated vehicle corresponding to the StoA communication module in the StoA storage module and sends the decrypted data to the application communication module. And the application communication module obtains an automatic registration result according to the decrypted data, sends the automatic registration result to the human-computer interaction display, and further displays the automatic registration result. Wherein the auto-registration result is used to indicate whether the auto-registration procedure was successful, i.e. whether the communication session was successfully established.
Further, the communication module is used for generating a corresponding simulated vehicle-mounted registration log according to the received automatic registration result.
In order to store the automatic registration result corresponding to each target simulation vehicle, after the application communication module receives the automatic registration result, a registration log corresponding to the corresponding simulation vehicle is generated.
Further, the human-computer interaction module is further configured to, after a click instruction corresponding to the automatic multi-vehicle registration button is received, determine whether a selection operation of a user on sequence values is detected within a preset time, if yes, determine at least a preset number of sequence values according to the sequence values selected by the user, and generate an automatic multi-vehicle registration instruction according to target simulated vehicle-mounted data indicated by the at least preset number of sequence values, where the sequence values and the target simulated vehicle-mounted data are in a one-to-one correspondence relationship.
In implementation, after the human-computer interaction module receives click commands corresponding to a plurality of simulated vehicle-mounted modes which are automatically registered, the click commands of the user on the sequence values are detected within preset time, at least a preset number of sequence values are determined from the sequence values clicked by the user, and the automatic multi-vehicle registration command is generated according to the ID of the target simulated vehicle indicated by the at least preset number of sequence values.
Further, the human-computer interaction module is further configured to determine at least a preset number of sequence values from the sequence value 1 if the number of sequence values is not greater than the preset number, and generate an automatic multi-vehicle registration instruction according to the target simulation vehicle-mounted state indicated by the at least preset number of sequence values.
Further, on the basis of the embodiment shown in fig. 1, the embodiment of the present application provides a method for automatically registering multiple vehicles, where an execution subject of the method may be a test device, and may also be other electronic devices, and is not limited herein. The specific implementation steps are shown in fig. 3, and include:
step 301, when receiving an automatic multi-vehicle registration instruction in the application message subsystem, determining that at least a preset number of target simulation vehicles are indicated by the automatic multi-vehicle registration instruction.
The test device may be any one of a TSRS cabinet or a PC, and the specific form of the test device is not limited herein. The target simulation vehicle-mounted device is a simulation vehicle-mounted device for testing messages to be sent. The automatic registration multi-vehicle command is used for indicating that at least a preset number of target simulation vehicles are automatically registered.
In the specific implementation manner of this step, when the test device receives the automatic multi-vehicle registration instruction, the ID of the simulated vehicle carried in the automatic multi-vehicle registration instruction may be obtained, and according to the IDs, the target simulated vehicle indicated by the automatic multi-vehicle registration instruction is determined. Wherein the ID may be a CTCSID.
Specifically, after the application message subsystem is started by the user, the corresponding sequence value of each simulated vehicle is displayed on the automatic registration page. After a click command corresponding to an automatic registration multi-vehicle button is received on an automatic registration page, whether the click command of a user for a sequence value is received within preset time is detected, if the click command of the user for the sequence value is detected within the preset time, a sequence value corresponding to a target simulation vehicle-mounted vehicle is determined based on the sequence value clicked by the user and at least a preset number of sequence values behind the sequence value, an ID of the target simulation vehicle-mounted vehicle is further determined, and an automatic registration multi-vehicle command is generated according to the IDs. If the click command of the user on the sequence value is not detected within the preset time, the ID of the simulated vehicle corresponding to the sequence values is determined based on the sequence value 1 and at least a preset number of sequence values after the sequence value, and then the automatic registration multi-vehicle command is generated based on the ID.
Step 302, determining an automatic registration message corresponding to each target simulation vehicle according to the configuration data corresponding to each target simulation vehicle.
In a specific implementation manner of this step, according to the IDs carried in the auto registration multi-vehicle command, an application message packet corresponding to each ID is determined, the application message packet on each target simulation vehicle is encrypted, and the auto registration message corresponding to each target simulation vehicle is determined.
Specifically, the human-computer interaction module can read configuration data containing a plurality of simulation vehicles from the configuration data processing module, generate corresponding application message packets based on the configuration data, and send the application message packets of the target simulation vehicle to the corresponding application communication module. The AtoS communication module receives the application message packet sent by the application communication module and sends the application message packet to the AtoS storage module for storage. The AtoS storage module receives an application message packet sent by the AtoS communication module, and the AtoS forwarding module reads the application message packet from the AtoS storage module and sends the application message packet to the security layer communication module. And the AtoS forwarding module reads the application message packet stored by the AtoS storage module, determines a security layer communication module corresponding to the application message packet according to the CTCSID in the application message packet, and sends the application message packet to the corresponding security layer communication module. And the security layer communication module encrypts the received application message packet to obtain an automatic registration message which accords with a security communication protocol and sends the automatic registration message to the TSRS.
Step 303, sending the automatic registration message corresponding to each target simulation vehicle to the TSRS, so as to obtain a feedback message of the TSRS.
And step 304, testing whether the TSRS establishes communication sessions with at least a preset number of target simulation vehicles according to the feedback message of the TSRS.
Wherein, since the TSRS needs to establish a communication session with at least 60 target simulation vehicles, the preset number may be 60.
In the specific implementation manner of this step, the feedback messages of the TSRS are decrypted to obtain an automatic registration result corresponding to each feedback message, whether all the automatic registration results are successfully registered is determined, and if yes, it is determined that the TSRS establishes a communication session with at least a preset number of target simulation vehicles. If not, determining that the TSRS does not establish communication sessions with at least a preset number of target simulation vehicles.
The method specifically comprises the steps of decrypting the feedback message of the corresponding target simulation vehicle to obtain decrypted data, and sending the decrypted data to the StoA forwarding module. And the StoA forwarding module forwards the decrypted data to the StoA storage module. The StoA communication module finds data corresponding to the simulated vehicle-mounted corresponding to the StoA communication module in the StoA storage module according to the CTCSID to obtain corresponding decrypted data, and sends the decrypted data corresponding to the target simulated vehicle-mounted to the application communication module. And the application communication module obtains an automatic registration result according to the decrypted data and sends the automatic registration result to the human-computer interaction module. And the man-machine interaction module displays the corresponding automatic registration result of the target simulation vehicle.
In the embodiment of the application, when an automatic registration multi-vehicle instruction is triggered in an application message subsystem, at least a preset number of target simulation vehicle-mounted devices indicated by the automatic registration multi-vehicle instruction are obtained; and generating an automatic registration message corresponding to each target simulation vehicle according to the configuration data corresponding to each target simulation vehicle, and further sending the automatic registration message corresponding to each target simulation vehicle to the TSRS, so that the TSRS registers each target simulation vehicle and establishes communication connection. Therefore, the aim of automatically registering the target simulation vehicles with at least a preset number of vehicles is achieved through an automatic multi-vehicle registration instruction, and the method is simple and convenient. And simultaneously, testing whether the TSRS establishes communication sessions with at least a preset number of target simulation vehicles or not according to the feedback message of the TSRS. Therefore, whether the TSRS successfully registers at least a preset number of target simulation vehicle-mounted devices can be determined according to the feedback message of the TSRS, and whether the simulated vehicle-mounted test TSRS establishes communication session with at least the preset number of target simulation vehicle-mounted devices can be further determined.
Further, an embodiment of the present application provides a method for performing registration on multiple simulated vehicles, which is specifically as shown in fig. 4, and specifically includes: the automatic registration of the vehicle is started on the automatic registration page shown in fig. 2 according to the value of the TrainIndex, the value of the TrainIndex is the value of the TrainIndex corresponding to the simulated vehicle selected by clicking with a mouse, and if the simulated vehicle is not selected by clicking, the value of the TrainIndex is 1, that is, the registration is started from the 1 st simulated vehicle in the list. And then, determining the corresponding simulation vehicle according to the selected TrainIndex, and further controlling the application message communication module corresponding to the simulation vehicle to start sending the application message packet. After receiving the application message packet, the AtoS communication module of the vehicle i stores the application message packet into the AtoS storage module (the AtoS storage module records the CTCSID and the communication socket of the simulation vehicle during storage, and the CTCSID and the communication socket are different for different simulation vehicle-mounted vehicles). And the AtoS forwarding module sends the data to the corresponding safety layer communication module of the simulation vehicle according to the CTCSID of the simulation vehicle, and sends the data to the temporary speed limiting server by the safety layer communication module of the simulation vehicle.
After the device under test TSRS: and replying a corresponding message according to the message received from the multi-simulation vehicle system. The safety layer communication module of the simulation vehicle i receives data from the temporary speed limiting server and then stores the data in the StoA storage module; and the StoA communication module of the vehicle i finds the data of the vehicle from the StoA storage module and sends the data to the vehicle i application message communication module of the application message layer. After receiving data from the temporary speed limiting server, a safety layer communication module of the simulation vehicle writes the data into a StoA storage module through a StoA forwarding module, wherein the data recorded in the StoA storage module comprises a simulation vehicle-mounted CTCSID and a communication socket of an application message communication module of an application message layer, and the CTCSID and the communication socket are different for different simulation vehicle-mounted devices. And whether the message received by the train i is a message8 train data confirmation packet or not. If not, judging the type of the message needing to be replied according to the received message, and sending the message by the application message communication module of the vehicle i. If the simulation vehicle registration is finished, judging whether all the simulation vehicles are registered completely, if not, automatically starting the automatic registration of the next vehicle, if not, controlling the application message communication module of the ith vehicle to start sending the application message packet, and repeating the subsequent process until all the simulation vehicles finish the automatic registration. And if the multi-simulation vehicle registration is finished, ending the multi-simulation vehicle registration process.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described in detail herein.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, this application is not directed to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the present application as described herein, and any descriptions of specific languages are provided above to disclose the best modes of the present application.
In addition, the memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims (10)

1. The utility model provides a system for automatic register many cars which characterized in that, the system divide into application message subsystem and agreement interface subsystem, application message subsystem includes application communication module and human-computer interaction module, the agreement interface subsystem includes the ATOS communication module, ATOS storage module, ATOS and forwards module and security layer communication module, wherein:
the system comprises an application communication module, a TSRS (traffic service System) and a plurality of target simulation vehicle-mounted application communication modules, wherein the application communication module is used for sending application message packets to corresponding AtoS communication modules through at least a preset number of target simulation vehicle-mounted application communication modules indicated by an instruction when an automatic registration multi-vehicle instruction is triggered in an application message subsystem, and the application message packets are used for requesting to establish a communication session with the TSRS;
the AtoS communication module is used for receiving the application message packet sent by the application communication module and sending the application message packet to the AtoS storage module for storage;
the AtoS storage module is used for receiving an application message packet sent by the AtoS communication module, and the application message packet comprises CTCSID corresponding to a target simulation vehicle;
the AtoS forwarding module is used for reading the application message packet stored by the AtoS storage module, determining a security layer communication module corresponding to the application message packet according to the read CTCSID in the application message packet, and sending the application message packet to the corresponding security layer communication module;
the secure layer communication module is used for encrypting the received application message packet to obtain an automatic registration message which accords with a secure communication protocol and sending the automatic registration message to the TSRS;
and the human-computer interaction module is used for counting the quantity of the communication sessions established between the TSRS and the target simulation vehicles according to the automatic registration result fed back by the TSRS, and displaying the quantity so as to test whether the TSRS establishes the communication sessions with at least a preset number of target simulation vehicles according to the quantity, wherein the automatic registration result is used for indicating whether the TSRS establishes the communication sessions with the target simulation vehicles.
2. The system of claim 1, wherein the human-computer interaction module is further configured to, during the process of automatically registering at least a preset number of target simulation vehicles, when the automatic registration of the nth target simulation vehicle is completed, display a registration result of the nth target simulation vehicle, and automatically start to register the (N + 1) th target simulation vehicle until the automatic registration process of at least the preset number of target simulation vehicles is completed, and count and display the number of communication sessions established between the TSRS and the target simulation vehicle based on the registration result of each target simulation vehicle.
3. The system of claim 1, wherein the human-computer interaction module is further configured to, when a click instruction corresponding to an auto-registration multi-vehicle button displayed on the application message subsystem is received, obtain at least a preset number of target simulation vehicle-mounted devices according to a preset rule, and generate an auto-registration multi-vehicle instruction according to the target simulation vehicle-mounted devices;
the AtoS communication module is also used for receiving the automatic registration multi-vehicle instruction sent by the man-machine interaction module.
4. The system according to claim 1, wherein the security layer communication module is further configured to decrypt a feedback message of a corresponding target simulation vehicle, obtain decrypted data, and send the decrypted data to the StoA forwarding module;
the StoA forwarding module is used for forwarding the decrypted data to the StoA storage module;
the StoA communication module is used for finding 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 for obtaining an automatic registration result according to the decrypted data and sending the automatic registration result to the human-computer interaction module;
and the human-computer interaction module is also used for displaying the automatic registration result corresponding to the target simulation vehicle.
5. The system of claim 1, wherein the application communication module is further configured to generate a registration log corresponding to the simulated vehicle according to the obtained automatic registration result.
6. The system according to claim 3, wherein the human-computer interaction module is further configured to determine whether a user operation of selecting the sequence value is detected within a preset time after receiving a click command corresponding to the auto-register multi-vehicle button, determine at least a preset number of sequence values according to the sequence value selected by the user if the user operation of selecting the sequence value is detected, and generate the auto-register multi-vehicle command according to a target simulated vehicle-mounted state indicated by at least the preset number of sequence values, wherein the sequence values and the target simulated vehicle-mounted state are in a one-to-one correspondence relationship.
7. The system of claim 6, wherein the human-computer interaction module is further configured to determine at least a preset number of sequence values from the sequence value 1 if no, and generate an auto-registration multi-vehicle command according to a target simulated vehicle-mounted state indicated by the at least a preset number of sequence values.
8. A method for automatically registering multiple vehicles, the method being applied to the system of any one of claims 1 to 5, comprising:
when an automatic multi-vehicle registration instruction is received in the application message subsystem, at least a preset number of target simulation vehicle-mounted devices indicated by the automatic multi-vehicle registration instruction are obtained;
determining an automatic registration message corresponding to each target simulation vehicle according to the configuration data corresponding to each target simulation vehicle;
sending an automatic registration message corresponding to each target simulation vehicle to a TSRS (time series reporting System) to acquire a feedback message of the TSRS;
and testing whether the TSRS establishes communication sessions with at least a preset number of target simulation vehicles or not according to the feedback message of the TSRS.
9. A terminal, characterized in that the terminal is configured to run a program, wherein the terminal performs the method of automatically registering a plurality of vehicles according to claim 8 when running.
10. A storage medium storing a computer program, wherein the computer program is operable to control a device on which the storage medium is located to perform the method for automatically registering multiple vehicles according to claim 8.
CN202210784927.3A 2022-07-05 2022-07-05 Method and system for automatically registering multiple vehicles Active CN115242694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210784927.3A CN115242694B (en) 2022-07-05 2022-07-05 Method and system for automatically registering multiple vehicles

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210784927.3A CN115242694B (en) 2022-07-05 2022-07-05 Method and system for automatically registering multiple vehicles

Publications (2)

Publication Number Publication Date
CN115242694A true CN115242694A (en) 2022-10-25
CN115242694B CN115242694B (en) 2024-08-30

Family

ID=83670637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210784927.3A Active CN115242694B (en) 2022-07-05 2022-07-05 Method and system for automatically registering multiple vehicles

Country Status (1)

Country Link
CN (1) CN115242694B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020199134A1 (en) * 2019-04-02 2020-10-08 Qualcomm Incorporated Methods and systems for provisioning of certificates for vehicle-based communication
CN112118555A (en) * 2020-06-18 2020-12-22 上汽通用五菱汽车股份有限公司 Vehicle, inter-vehicle communication method, system, and computer storage medium
US20210409917A1 (en) * 2019-08-05 2021-12-30 Tencent Technology (Shenzhen) Company Limited Vehicle-road collaboration apparatus and method, electronic device, and storage medium
KR20220038614A (en) * 2021-05-14 2022-03-29 아폴로 인텔리전트 커넥티비티 (베이징) 테크놀로지 씨오., 엘티디. Vehicle communication method, device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020199134A1 (en) * 2019-04-02 2020-10-08 Qualcomm Incorporated Methods and systems for provisioning of certificates for vehicle-based communication
US20210409917A1 (en) * 2019-08-05 2021-12-30 Tencent Technology (Shenzhen) Company Limited Vehicle-road collaboration apparatus and method, electronic device, and storage medium
CN112118555A (en) * 2020-06-18 2020-12-22 上汽通用五菱汽车股份有限公司 Vehicle, inter-vehicle communication method, system, and computer storage medium
KR20220038614A (en) * 2021-05-14 2022-03-29 아폴로 인텔리전트 커넥티비티 (베이징) 테크놀로지 씨오., 엘티디. Vehicle communication method, device and electronic equipment

Also Published As

Publication number Publication date
CN115242694B (en) 2024-08-30

Similar Documents

Publication Publication Date Title
CN110176990B (en) Vehicle component replacement recognition method and device, computer equipment and storage medium
CN108366105B (en) Cross-block-chain data access method, device, system and computer readable medium
CN108923908B (en) Authorization processing method, device, equipment and storage medium
CN109471865B (en) Offline data management method, system, server and storage medium
US20190334700A1 (en) Method and system for managing decentralized data access permissions through a blockchain
CN111241569B (en) Information processing method, device and equipment
CN105490711A (en) Bluetooth automatic connection method, master device, slave device, and system
CN115002168A (en) Safety detection method for vehicle remote control and vehicle-mounted system
CN113204599A (en) Equipment monitoring method and device based on Internet of things, monitoring equipment and storage medium
CN112953802A (en) Data communication method and device
CN113965360A (en) Intelligent device cloud server access method, device, medium, device and system
CN103559430B (en) application account management method and device based on Android system
CN112905460A (en) Device and method for simulating three-party receipt by automatic interface test
CN115242694A (en) Method and system for automatically registering multiple vehicles
CN109542775B (en) Test script generation and execution method and device
CN115987821A (en) Gateway routing test method and device
CN110866229B (en) Multi-platform account authority unified management method and system
CN107172165B (en) Data synchronization method and device
CN112016336B (en) Method, device, equipment and storage medium for detecting copy card
CN113761478B (en) Authorization method and device for software product
CN113010587B (en) Data source configuration method, device, terminal, server and medium
CN114428955A (en) Method and system for judging abnormal risk based on operation information and electronic equipment
CN112685706A (en) Request authentication method and related equipment
CN108764899B (en) Digital asset management method and device based on cloud computing network and storage equipment
CN112468356A (en) Router interface testing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant