CN112486037A - Communication matching method and system for train and zone controller in CBTC (communication based train control) simulation system - Google Patents

Communication matching method and system for train and zone controller in CBTC (communication based train control) simulation system Download PDF

Info

Publication number
CN112486037A
CN112486037A CN202011427134.3A CN202011427134A CN112486037A CN 112486037 A CN112486037 A CN 112486037A CN 202011427134 A CN202011427134 A CN 202011427134A CN 112486037 A CN112486037 A CN 112486037A
Authority
CN
China
Prior art keywords
message
train
zone controller
address
train simulation
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
CN202011427134.3A
Other languages
Chinese (zh)
Other versions
CN112486037B (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.)
Beijing Zhilian Yoodao Science And Technology Co ltd
Original Assignee
Beijing Zhilian Yoodao Science And Technology Co 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 Beijing Zhilian Yoodao Science And Technology Co ltd filed Critical Beijing Zhilian Yoodao Science And Technology Co ltd
Priority to CN202011427134.3A priority Critical patent/CN112486037B/en
Publication of CN112486037A publication Critical patent/CN112486037A/en
Application granted granted Critical
Publication of CN112486037B publication Critical patent/CN112486037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention relates to a communication matching method and a system of a train and a zone controller in a CBTC (communication based train control) simulation system, which belong to the technical field of communication, and are characterized in that an IP (Internet protocol) address and an available port of a train simulation end are obtained at the train simulation end; creating a first Socket object; sending a message to a regional controller based on the first Socket object; judging whether a reply message of the zone controller is received or not, if the reply message of the zone controller is received, verifying the reply message, and if the verification is passed, storing the port number and the address of the zone controller; acquiring an IP address of the zone controller at the zone controller, and creating a second Socket object based on the IP address of the zone controller and a preset fixed port; and judging whether the message from the train simulation end is received or not based on the second Socket object, and if the message from the train simulation end is received, sending a reply message to the train simulation end according to the message. The matching of the IP and the port is automatically obtained by the virtual train end and the zone controller, and the cushion is made for communication.

Description

Communication matching method and system for train and zone controller in CBTC (communication based train control) simulation system
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a communication matching method and system for a train and a zone controller in a CBTC (communication based train control) simulation system.
Background
The CBTC (Communication Based Train Control System) is a Communication technology-Based Train operation Control System that has been developed with the rapid development of Communication technologies, particularly radio technologies. In order to enable the target audience to better understand the CBTC system, understand the work flow and principle thereof, and improve the ability of fast integrating into the work environment, the target audience is usually required to learn in a real scene. However, due to the condition limitation of the real scene, the cognitive system that the target audience is personally on the scene cannot be provided, and the whole system operation process cannot be comprehensively observed, so a CBTC simulation system is usually set up. The communication mode of a train and a ZC (Zone Controller) of a CBTC (communication based train control) simulation system is similar to the interaction of a local area network client and a server, the train is each client, the ZC is a server, the client communicates with the server to intercommunicate data, the ZC obtains real-time data of the train to calculate the movement authorization of the train, and the train safely runs according to the information fed back by the ZC.
At present, most local area network client and server identification modes are realized by fixing an IP (Internet protocol) and a port of a server, so that the installation, deployment and debugging of later software are very inflexible and inconvenient; particularly, in a training room of a school, since a teacher and students have no clear concept of IP ports of a computer and do not know how to configure, in the course of installation and debugging and subsequent use of the training room of the school, frequent modification of software or IP addresses of the computer is required, thus increasing the workload of users virtually, bringing inconvenience to use, and meanwhile, the software is extremely low in maintainability.
Disclosure of Invention
In order to at least solve the problems in the prior art, the invention provides a communication matching method and system for a train and a zone controller in a CBTC (communication based train control) simulation system, so as to realize the automatic IP (Internet protocol) acquisition and port matching of a virtual train end and the zone controller and make a cushion for communication.
The technical scheme provided by the invention is as follows:
on one hand, the communication matching method of the train and the zone controller in the CBTC simulation system comprises the following steps:
the train simulation end acquires an IP address and an available port of the train simulation end; creating a first Socket object according to the IP address and the available port of the train simulation end; sending a message to a regional controller based on the first Socket object; judging whether a reply message of the zone controller is received or not, if the reply message of the zone controller is received, verifying the reply message, and if the verification is passed, storing the port number and the address of the zone controller;
the method comprises the steps that a regional controller obtains an IP address of the regional controller, and a second Socket object is created based on the IP address of the regional controller and a preset fixed port; and judging whether a message from the train simulation end is received or not based on the second Socket object, and if the message from the train simulation end is received, sending a reply message to the train simulation end according to the message.
Optionally, the acquiring the IP address and the available port of the train simulation end includes:
and if a plurality of network cards and IP addresses exist at the train simulation end, triggering to use the wired network card, and acquiring an idle port of the train simulation end.
The method of claim 1, wherein creating a second Socket object based on the IP address of the zone controller and a predetermined fixed port comprises:
judging whether a preset fixed port of the zone controller is available, and if not, updating the port; if so, a second Socket object is created.
Optionally, the sending a reply message to the train simulation end according to the message includes:
judging whether the message is a matching request message of a train simulation end;
and if the message is a matching request message of the train simulation end, sending a reply message to the train simulation end.
Optionally, the method further includes:
if the message is not the matching request message of the train simulation end, judging whether the message is the mobile authorization request message of the train simulation end;
if the message is not the mobile authorization request message of the train simulation end, completing matching; and if the message is a mobile authorization request message of the train simulation end, entering a simulated train mobile authorization flow.
Optionally, the creating a second Socket object based on the IP address of the zone controller and a preset fixed port includes:
and if the second Socket object is failed to be created, changing the fixed port, and creating the second Socket object again.
Optionally, the method further includes:
and if the second Socket object is not created again, revising the values of the two fixed ports in the configuration file.
Optionally, the receiving a message from the train simulation end, and sending a reply message to the train simulation end according to the message includes:
and storing the IP address corresponding to the train simulation end into a dictionary according to the ID of the train simulation end, and sending a reply message to the train simulation end.
In yet another aspect, a CBTC simulation system includes: a plurality of train simulation terminals and a zone controller; the train simulation ends are respectively connected with the zone controller;
the train simulation terminal is used for acquiring an IP address and an available port of the train simulation terminal; creating a first Socket object according to the IP address and the available port of the train simulation end; sending a message to a regional controller based on the first Socket object; judging whether a reply message of the zone controller is received or not, if the reply message of the zone controller is received, verifying the reply message, and if the verification is passed, storing the port number and the address of the zone controller;
the zone controller is used for acquiring the IP address of the zone controller and creating a second Socket object based on the IP address of the zone controller and a preset fixed port; and judging whether a message from the train simulation end is received or not based on the second Socket object, and if the message from the train simulation end is received, sending a reply message to the train simulation end according to the message.
Optionally, the area controller is configured to determine whether a preset fixed port of the area controller is available, and if the preset fixed port of the area controller is not available, update the port; if so, a second Socket object is created.
The invention has the beneficial effects that:
the embodiment of the invention provides a communication matching method and a communication matching system for a train and a zone controller in a CBTC (communication based train control) simulation system. The matching of the IP and the port is automatically obtained by the virtual train end and the zone controller, and the cushion is made for communication.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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 invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of an execution method of a train simulation end in a communication matching method of a train and a zone controller in a CBTC simulation system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an execution method of a zone controller in a communication matching method of a train and the zone controller in a CBTC simulation system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a CBTC simulation system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
In the communication matching scheme of the train and the zone controller in the CBTC simulation system in the prior art, generally, after-sales personnel set the IP of a zone controller server to be fixed, and set the IP of each client according to the network environment of a training room. The network environment of each training room or machine room of the local area network system is different and cannot be unified like an external network, and each set of software needs to be subjected to a series of complex network configurations after being installed, so that a set of special automatic identification and matching scheme is required.
Based on the above, the embodiment of the invention provides a communication matching method for a train and a zone controller in a CBTC (communication based train control) simulation system.
In the embodiment of the invention, when the communication of the train and the zone controller in the CBTC simulation system is matched, the simulated train and the zone controller need to execute corresponding operation steps. Fig. 1 is a schematic flow chart of an execution method of a train simulation end in a communication matching method of a train and a zone controller in a CBTC simulation system according to an embodiment of the present invention; fig. 2 is a schematic flow chart of an execution method of a zone controller in a communication matching method between a train and the zone controller in a CBTC simulation system according to an embodiment of the present invention. In order to explain the technical solution of the embodiment of the present invention, the execution processes of the analog train end and the zone controller are respectively explained.
Referring to fig. 1, the steps executed by the train simulation end in the embodiment of the present invention may include the following steps:
and S11, acquiring the IP address and the available port of the train simulation end.
In a specific implementation process, any CBTC simulation system may be defined to apply the communication matching method for the train and the zone controller provided in the embodiment of the present application to implement communication matching between the train simulation end and the zone server, which is not specifically limited herein.
In some embodiments, optionally, acquiring the IP address and the available port of the train simulation end includes: and if a plurality of network cards and IP addresses exist at the train simulation end, triggering to use the wired network card, and acquiring an idle port of the train simulation end.
For example, the train simulation terminal can realize the simulated driving of the train, and automatically acquire the IP address and the available port of the train simulation section after the train simulation terminal is started. If a plurality of network cards and IP addresses exist at the moment, the wired network card is used by default, and the idle port of the train simulation end is automatically acquired.
And S12, creating a first Socket object according to the IP address and the available port of the train simulation end.
For example, after the train simulation segment acquires the IP address and the port number of the available port, a Socket object is created, and for differentiation, the Socket object is named as a first Socket object. Where socket, also commonly referred to as "socket," is used to describe IP addresses and ports, and is a handle of a communication chain, an application typically sends requests to a network or responds to network requests through a "socket.
And S13, sending a message to the regional controller based on the first Socket object.
For example, after the first Socket object is created, a broadcast message may be sent to the local controller through 2 ports specified in the local area network in a UDP communication manner of the first Socket object, and the reception of the message may be started. UDP (User Datagram Protocol) supports a connectionless transport Protocol for an Internet Protocol set, and is called UDP, and provides a method for an application program to transmit an encapsulated IP packet without establishing a connection. The 2 ports designated in the local area network can be used as the ports for the zone controller system to listen to.
And S14, judging whether the reply message of the zone controller is received or not, if so, verifying the reply message, and if the verification is passed, storing the port number and the address of the zone controller.
For example, whether a reply message of the zone controller is received or not is judged, if not, the message is continuously sent to the zone controller in a local area network broadcasting mode, if the reply message is received, the message is verified, and the port number and the IP address of the zone controller are stored, so that matching is realized, and the matching is completed. That is, after receiving the reply message, the train simulation end stores the IP and the port of the zone controller into the configuration file of the local machine, simultaneously closes the broadcast communication of the train simulation end, opens a new socket object, and adopts a point-to-point communication mode.
In order to clearly explain the scheme of the present application, in the following embodiment, the execution process of the zone controller is explained.
Referring to fig. 2, the steps performed by the zone controller in the embodiment of the present invention may include the following steps:
and S21, acquiring the IP address of the regional controller.
And after the area server is started, acquiring the local IP address of the area server. When there are multiple network cards and IPs, the wired network card is used by default.
And S22, creating a second Socket object based on the IP address of the zone controller and the preset fixed port.
In some embodiments, optionally, creating the second Socket object based on the IP address of the zone controller and the preset fixed port includes: judging whether a preset fixed port of the regional controller is available, and if not, updating the port; if so, a second Socket object is created.
Optionally, a second Socket object is created based on the IP address of the zone controller and the preset fixed port, including: and if the second Socket object is failed to be created, changing the fixed port, and creating the second Socket object again.
In some embodiments, optionally, the method further includes: and if the second Socket object is not created again, revising the values of the two fixed ports in the configuration file.
For example, after the IP address of the zone controller is obtained, whether the current port is available may be checked, and if the current port is not available, the updated port is updated and then whether the updated port is available is checked. The checking method can be as follows: and creating a Socket object according to the acquired IP address of the regional controller and the fixed port A, wherein the Socket object is named as a second Socket object for convenience of description and distinction. At this time, if the creation fails, it is indicated that this port is occupied. The ports can be automatically updated, the socket object is created again through the port B, if 2 ports are failed to be created, the values of the 2 ports in the configuration file need to be modified, and generally, the modification is not needed.
And S23, judging whether a message from the train simulation end is received or not based on the second Socket object, and if the message from the train simulation end is received, sending a reply message to the train simulation end according to the message.
For example, after the second Socket object is successfully created, whether a message from the train simulation end is received or not is judged, and if the message of the coming train simulation end is not received, matching is completed; and if the message from the train simulation end is received, sending a reply message to the train simulation end, thereby completing matching.
In some embodiments, optionally, sending a reply message to the train simulation terminal according to the message includes: judging whether the message is a matching request message of a train simulation end; and if the message is the matching request message of the train simulation end, sending a reply message to the train simulation end.
For example, after receiving a message sent by the train simulation end, the content of the message can be judged, whether the message is a train matching request message is judged, and if so, the train simulation end is replied to complete matching.
In some embodiments, optionally, the method further includes: if the message is not the matching request message of the train simulation end, judging whether the message is a mobile authorization request message of the train simulation end; if the message is not the mobile authorization request message of the train simulation end, completing matching; if the message is a mobile authorization request message of the train simulation end, entering a simulated train mobile authorization process.
For example, if the message content is judged after the message sent by the train simulation end is received, whether the message is a train matching request message is judged, if not, whether the message is a train moving authorization request can be judged, if so, the matching is successful, at this time, the train simulation end sends out the train moving authorization request, and a train moving authorization process is performed according to the request, which is not specifically stated herein, and refer to the train moving authorization process in the prior art.
In some embodiments, optionally, if a message from the train simulator terminal is received, sending a reply message to the train simulator terminal according to the message, including: and storing the IP address corresponding to the train simulation end into a dictionary according to the ID of the train simulation end, and sending a reply message to the train simulation end.
For example, a broadcast message sent by the client is received, the IP address of the client is stored in a global dictionary cache according to the unique train ID of the client, and the message is replied to the client at the same time.
According to the communication matching method for the train and the zone controller in the CBTC simulation system, provided by the embodiment of the invention, the IP address and the available port of the train simulation end are obtained at the train simulation end; creating a first Socket object; sending a message to a regional controller based on the first Socket object; judging whether a reply message of the zone controller is received or not, if the reply message of the zone controller is received, verifying the reply message, and if the verification is passed, storing the port number and the address of the zone controller; acquiring an IP address of the zone controller at the zone controller, and creating a second Socket object based on the IP address of the zone controller and a preset fixed port; and judging whether the message from the train simulation end is received or not based on the second Socket object, and if the message from the train simulation end is received, sending a reply message to the train simulation end according to the message. The matching of the IP and the port is automatically obtained by the virtual train end and the zone controller, and the cushion is made for communication.
Based on a general inventive concept, an embodiment of the present invention further provides a CBTC simulation system.
Fig. 3 is a schematic structural diagram of a CBTC simulation system according to an embodiment of the present invention, referring to fig. 3, a device according to an embodiment of the present invention may include the following structures: a plurality of train simulation terminals 31 and a zone controller 32; the plurality of train simulation ends 31 are respectively connected with the area controller 32;
the train simulation terminal 31 is used for acquiring an IP address and an available port of the train simulation terminal; creating a first Socket object according to the IP address and the available port of the train simulation end; sending a message to a regional controller based on the first Socket object; judging whether a reply message of the zone controller is received or not, if the reply message of the zone controller is received, verifying the reply message, and if the verification is passed, storing the port number and the address of the zone controller;
the zone controller 32 is used for acquiring an IP address of the zone controller, and creating a second Socket object based on the IP address of the zone controller and a preset fixed port; and judging whether the message from the train simulation end is received or not based on the second Socket object, and if the message from the train simulation end is received, sending a reply message to the train simulation end according to the message.
Optionally, the area controller 32 is configured to determine whether a preset fixed port of the area controller is available, and if the preset fixed port of the area controller is not available, update the port; if so, a second Socket object is created.
With regard to the system in the above-described embodiment, the specific manner in which each part performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
The communication matching method of the train and the zone controller in the CBTC simulation system and the CBTC simulation system provided by the embodiment of the invention comprise the following steps: a plurality of train simulation terminals and a zone controller; a plurality of train simulation ends are respectively connected with the area controller; the train simulation terminal is used for acquiring the IP address and the available port of the train simulation terminal; creating a first Socket object according to the IP address and the available port of the train simulation end; sending a message to a regional controller based on the first Socket object; judging whether a reply message of the zone controller is received or not, if the reply message of the zone controller is received, verifying the reply message, and if the verification is passed, storing the port number and the address of the zone controller; the regional controller is used for acquiring the IP address of the regional controller and creating a second Socket object based on the IP address of the regional controller and a preset fixed port; and judging whether the message from the train simulation end is received or not based on the second Socket object, and if the message from the train simulation end is received, sending a reply message to the train simulation end according to the message. The matching of the IP and the port is automatically obtained by the virtual train end and the zone controller, and the cushion is made for communication.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A communication matching method for a train and a zone controller in a CBTC (communication based train control) simulation system is characterized by comprising the following steps:
the train simulation end acquires an IP address and an available port of the train simulation end; creating a first Socket object according to the IP address and the available port of the train simulation end; sending a message to a regional controller based on the first Socket object; judging whether a reply message of the zone controller is received or not, if the reply message of the zone controller is received, verifying the reply message, and if the verification is passed, storing the port number and the address of the zone controller;
the method comprises the steps that a regional controller obtains an IP address of the regional controller, and a second Socket object is created based on the IP address of the regional controller and a preset fixed port; and judging whether a message from the train simulation end is received or not based on the second Socket object, and if the message from the train simulation end is received, sending a reply message to the train simulation end according to the message.
2. The method of claim 1, wherein the obtaining the IP address and the available port of the train simulation terminal comprises:
and if a plurality of network cards and IP addresses exist at the train simulation end, triggering to use the wired network card, and acquiring an idle port of the train simulation end.
3. The method of claim 1, wherein creating a second Socket object based on the IP address of the zone controller and a predetermined fixed port comprises:
judging whether a preset fixed port of the zone controller is available, and if not, updating the port; if so, a second Socket object is created.
4. The method of claim 1, wherein said sending a reply message to said train analog end based on said message comprises:
judging whether the message is a matching request message of a train simulation end;
and if the message is a matching request message of the train simulation end, sending a reply message to the train simulation end.
5. The method of claim 4, further comprising:
if the message is not the matching request message of the train simulation end, judging whether the message is the mobile authorization request message of the train simulation end;
if the message is not the mobile authorization request message of the train simulation end, completing matching; and if the message is a mobile authorization request message of the train simulation end, entering a simulated train mobile authorization flow.
6. The method of claim 1, wherein creating a second Socket object based on the IP address of the zone controller and a predetermined fixed port comprises:
and if the second Socket object is failed to be created, changing the fixed port, and creating the second Socket object again.
7. The method of claim 6, further comprising:
and if the second Socket object is not created again, revising the values of the two fixed ports in the configuration file.
8. The method of claim 1, wherein the receiving the message from the train simulator terminal and sending a reply message to the train simulator terminal according to the message comprises:
and storing the IP address corresponding to the train simulation end into a dictionary according to the ID of the train simulation end, and sending a reply message to the train simulation end.
9. A CBTC simulation system, comprising: a plurality of train simulation terminals and a zone controller; the train simulation ends are respectively connected with the zone controller;
the train simulation terminal is used for acquiring an IP address and an available port of the train simulation terminal; creating a first Socket object according to the IP address and the available port of the train simulation end; sending a message to a regional controller based on the first Socket object; judging whether a reply message of the zone controller is received or not, if the reply message of the zone controller is received, verifying the reply message, and if the verification is passed, storing the port number and the address of the zone controller;
the zone controller is used for acquiring the IP address of the zone controller and creating a second Socket object based on the IP address of the zone controller and a preset fixed port; and judging whether a message from the train simulation end is received or not based on the second Socket object, and if the message from the train simulation end is received, sending a reply message to the train simulation end according to the message.
10. The system of claim 9, wherein the local controller is configured to determine whether a predetermined fixed port of the local controller is available, and if not, update the port; if so, a second Socket object is created.
CN202011427134.3A 2020-12-09 2020-12-09 Communication matching method and system for train and regional controller in CBTC simulation system Active CN112486037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011427134.3A CN112486037B (en) 2020-12-09 2020-12-09 Communication matching method and system for train and regional controller in CBTC simulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011427134.3A CN112486037B (en) 2020-12-09 2020-12-09 Communication matching method and system for train and regional controller in CBTC simulation system

Publications (2)

Publication Number Publication Date
CN112486037A true CN112486037A (en) 2021-03-12
CN112486037B CN112486037B (en) 2023-08-18

Family

ID=74940732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011427134.3A Active CN112486037B (en) 2020-12-09 2020-12-09 Communication matching method and system for train and regional controller in CBTC simulation system

Country Status (1)

Country Link
CN (1) CN112486037B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6064671A (en) * 1995-12-08 2000-05-16 Killian; Michael G. Multi-homed end system for increasing computers network bandwidth
CN102566442A (en) * 2011-12-29 2012-07-11 北京交控科技有限公司 CBTC (Communications Based Train Control) signal system simulation testing platform
CN103391163A (en) * 2013-07-15 2013-11-13 北京交大微联科技有限公司 Sending and receiving method and system for CBTC (Communications-Based Train Control) data with distributed fountain codes
CN103745624A (en) * 2013-12-26 2014-04-23 北京交控科技有限公司 Track traffic simulation system
CN104202224A (en) * 2014-09-11 2014-12-10 深圳市海派通讯科技有限公司 Automatic search controlling method, device and system of intelligent appliance
CN107733839A (en) * 2016-08-11 2018-02-23 北京百度网讯科技有限公司 Data transmission method and system
CN108200170A (en) * 2018-01-02 2018-06-22 武汉斗鱼网络科技有限公司 Message treatment method, device and readable storage medium storing program for executing
CN109995725A (en) * 2017-12-29 2019-07-09 中移(苏州)软件技术有限公司 A kind of implementation method and device of cloud computing status firewall
CN111225078A (en) * 2019-12-31 2020-06-02 北京安码科技有限公司 Socket technology-based method for rapidly acquiring KVM virtual machine address

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6064671A (en) * 1995-12-08 2000-05-16 Killian; Michael G. Multi-homed end system for increasing computers network bandwidth
CN102566442A (en) * 2011-12-29 2012-07-11 北京交控科技有限公司 CBTC (Communications Based Train Control) signal system simulation testing platform
CN103391163A (en) * 2013-07-15 2013-11-13 北京交大微联科技有限公司 Sending and receiving method and system for CBTC (Communications-Based Train Control) data with distributed fountain codes
CN103745624A (en) * 2013-12-26 2014-04-23 北京交控科技有限公司 Track traffic simulation system
CN104202224A (en) * 2014-09-11 2014-12-10 深圳市海派通讯科技有限公司 Automatic search controlling method, device and system of intelligent appliance
CN107733839A (en) * 2016-08-11 2018-02-23 北京百度网讯科技有限公司 Data transmission method and system
CN109995725A (en) * 2017-12-29 2019-07-09 中移(苏州)软件技术有限公司 A kind of implementation method and device of cloud computing status firewall
CN108200170A (en) * 2018-01-02 2018-06-22 武汉斗鱼网络科技有限公司 Message treatment method, device and readable storage medium storing program for executing
CN111225078A (en) * 2019-12-31 2020-06-02 北京安码科技有限公司 Socket technology-based method for rapidly acquiring KVM virtual machine address

Also Published As

Publication number Publication date
CN112486037B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN110032507B (en) Application program testing method, device and system, electronic equipment and storage medium
US20140343915A1 (en) Test environment configuration apparatus and method of operating network simulation apparatus using same
CN112988485B (en) Simulation test method and device for electric power Internet of things equipment
US11636016B2 (en) Cloud simulation and validation system
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
CN112860375B (en) Kubernetes-based containerized application request replication method, system, medium and device
CN104079571A (en) Method and device for recognizing Android simulator
CN108228444A (en) A kind of test method and device
CN106095676A (en) Method of testing that data report, Apparatus and system
US9800490B2 (en) Testing by simulation using variations of real-time traffic
CN106875765B (en) Electronic classroom implementation method and device based on VDI
CN110198222A (en) A kind of distribution power automation terminal plug and play test method and test main website
CN113704765A (en) Operating system identification method and device based on artificial intelligence and electronic equipment
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN112486037A (en) Communication matching method and system for train and zone controller in CBTC (communication based train control) simulation system
CN115098301B (en) Snapshot generation method and system for stateful application in cloud primary scene
CN114598680B (en) Domain name management method, device and storage medium
US9949046B2 (en) Automating repairs to audio systems
CN114461337A (en) Cloud simulation system and method, electronic equipment and storage medium
CN113961504A (en) Mobile terminal group control method, device, system, server and storage medium
CN111294250B (en) Pressure testing method, device and system
CN108628683B (en) Data transmission method and device
CN111082984A (en) Method and device for simulating login of network equipment to carry out command line interaction
CN114710432B (en) Vehicle-mounted Ethernet communication joint debugging method and system
CN117478570B (en) Equipment testing method and device based on containerization technology 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 102600 205, Floor 2, Building 2, No. A20, Jinyuan Road, Daxing District, Beijing

Applicant after: Youdao Technology Co.,Ltd.

Address before: 100089 Room 608, building 5, courtyard 38, Linfeng 2nd Road, Haidian District, Beijing

Applicant before: BEIJING ZHILIAN YOODAO SCIENCE AND TECHNOLOGY CO.,LTD.

GR01 Patent grant
GR01 Patent grant