CN110789580A - Communication detection method, equipment and system of train network control system - Google Patents

Communication detection method, equipment and system of train network control system Download PDF

Info

Publication number
CN110789580A
CN110789580A CN201810866816.0A CN201810866816A CN110789580A CN 110789580 A CN110789580 A CN 110789580A CN 201810866816 A CN201810866816 A CN 201810866816A CN 110789580 A CN110789580 A CN 110789580A
Authority
CN
China
Prior art keywords
communication
hdlc
equipment
data
master station
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.)
Pending
Application number
CN201810866816.0A
Other languages
Chinese (zh)
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.)
CRRC Dalian R&D Co Ltd
Original Assignee
CRRC Dalian R&D 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 CRRC Dalian R&D Co Ltd filed Critical CRRC Dalian R&D Co Ltd
Priority to CN201810866816.0A priority Critical patent/CN110789580A/en
Publication of CN110789580A publication Critical patent/CN110789580A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B61RAILWAYS
    • B61LGUIDING RAILWAY TRAFFIC; ENSURING THE SAFETY OF RAILWAY TRAFFIC
    • B61L27/00Central railway traffic control systems; Trackside control; Communication systems specially adapted therefor
    • B61L27/60Testing or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Train Traffic Observation, Control, And Security (AREA)

Abstract

The invention provides a communication detection method, equipment and a system of a train network control system, and the control equipment applied to a train comprises the following steps: and acquiring a communication test instruction, sending the communication test instruction to the HDLC equipment for controlling the high-level data link, wherein the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment, and receiving communication data returned by the HDLC equipment. And determining whether the communication between the master station of the HDLC equipment and the slave station of the HDLC equipment has a fault according to the HDLC protocol, the communication data and the test data. The control and monitoring system composed of the upper computer, the upper computer software and the communication board card reduces frequent manual operation, reduces time consumption and improves the reliability of detection results.

Description

Communication detection method, equipment and system of train network control system
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a communication detection method, equipment and a system of a train network control system.
Background
Most of the existing communication monitoring and detecting technologies of train communication networks are based on Controller Area Network (CAN) communication and ethernet, and monitoring and detecting technologies for High-level data Link Control (HDLC) are not commonly applied, and most of the existing HDLC communication monitoring and detecting devices record monitored data information and then perform comparative analysis manually; furthermore, most of the existing technologies write data such as test times, test data, sending and receiving delay, etc. into a program of a lower computer, and brush the data into the HDLC device for testing.
However, the bus data is recorded by monitoring and detecting, and then the manual comparison and analysis mode is adopted, so that the problems of long time consumption and low data analysis reliability exist.
Disclosure of Invention
The embodiment of the invention provides a communication detection method, equipment and a system of a train network control system, and aims to solve the problems that in the prior art, bus data monitored and detected is analyzed through manual comparison, so that the time consumption is long, and the reliability of data analysis is low.
In a first aspect, an embodiment of the present invention provides a communication detection method for a train network control system, which is applied to a control device in a train, and the method includes:
acquiring a communication test instruction, and sending the communication test instruction to a high-level data link control HDLC device; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
receiving communication data returned by the HDLC equipment;
and determining whether the communication between the master station of the HDLC equipment and the slave station of the HDLC equipment has a fault according to the HDLC protocol, the communication data and the test data.
Further, the determining whether there is a failure in the communication between the master station of the HDLC device and the slave station of the HDLC device according to the HDLC protocol, the communication data, and the test data includes:
comparing whether the communication data is consistent with the test data or not according to the HDLC protocol;
if the communication data are consistent with the test data, determining that no fault exists between the master station and the slave station;
and if the communication data is inconsistent with the test data, determining that a fault exists between the master station and the slave station.
Further, the method further comprises:
if the fact that a fault exists between the master station and the slave station is determined, pushing alarm information; the alarm information is used for indicating that a fault exists between the master station and the slave station.
In a second aspect, an embodiment of the present invention provides a communication detection method for a train network control system, which is applied to an HDLC device for controlling an advanced data link in a train, where the HDLC device includes a master station and a slave station, and the method includes:
receiving a communication test instruction sent by control equipment; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
according to the master station address, the communication test instruction is sent to a master station of the HDLC equipment, so that the master station sends the test data to a slave station of the HDLC equipment;
and acquiring communication data returned by the slave station of the HDLC equipment, and returning the communication data to the control equipment.
In a third aspect, an embodiment of the present invention provides a control apparatus, including:
the acquisition module is used for acquiring a communication test instruction and sending the communication test instruction to the HDLC equipment controlled by the high-level data link; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
the receiving module is used for receiving communication data returned by the HDLC equipment;
and the processing module is used for determining whether the communication between the master station of the HDLC equipment and the slave station of the HDLC equipment has a fault according to the HDLC protocol, the communication data and the test data.
In a fourth aspect, an embodiment of the present invention provides an HDLC apparatus, including:
the receiving module is used for receiving a communication test instruction sent by the control equipment; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
the sending module is used for sending the communication test instruction to a master station of the HDLC equipment according to the master station address so that the master station sends the test data to a slave station of the HDLC equipment;
the acquisition module is used for acquiring communication data returned by the slave station of the HDLC equipment;
the sending module is also used for returning the communication data to the control equipment.
In a fifth aspect, an embodiment of the present invention provides a control apparatus, including: the communication detection method of the train network control system comprises a processor, a memory for storing data and computer programs, a receiver and a transmitter, wherein the processor executes the computer programs stored in the memory to realize the communication detection method of the train network control system in any one implementation mode of the first aspect.
In a sixth aspect, an embodiment of the present invention provides an HDLC apparatus, including: the communication detection method of the train network control system comprises a processor, a memory for storing data and computer programs, a receiver and a transmitter, wherein the processor executes the computer programs stored in the memory to realize the communication detection method of the train network control system in any one implementation mode of the second aspect.
In a seventh aspect, an embodiment of the present invention further provides a readable storage medium, where a computer program is stored in the readable storage medium, and the computer program is used to implement the communication detection method of the train network control system in any implementation manner of the first aspect.
In an eighth aspect, an embodiment of the present invention further provides a readable storage medium, where the readable storage medium stores a computer program, and the computer program is used to implement the communication detection method of the train network control system in any implementation manner of the second aspect.
In a ninth aspect, an embodiment of the present invention provides a communication detection system for a train network control system, including: the control equipment of the train and the HDLC equipment are controlled by a high-level data link; the control equipment is connected with the HDLC equipment in a wireless or wired mode;
the control equipment is used for acquiring a communication test instruction and sending the communication test instruction to the HDLC equipment; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
the HDLC device is configured to:
receiving a communication test instruction sent by the control equipment; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
according to the master station address, the communication test instruction is sent to a master station of the HDLC equipment, so that the master station sends the test data to a slave station of the HDLC equipment;
communication data returned by a slave station of the HDLC equipment is obtained, and the communication data is returned to the control equipment;
the control device is further configured to:
receiving communication data returned by the HDLC equipment;
and determining whether the communication between the master station of the HDLC equipment and the slave station of the HDLC equipment has a fault according to the HDLC protocol, the communication data and the test data.
Furthermore, the control equipment comprises a control module and a communication board card; the control module is connected with the communication board card;
and the communication board card is used for sending the communication test instruction to the HDLC equipment.
Further, the HDLC device comprises a master station and a slave station, and the master station and the slave station establish data connection;
the master station is used for:
receiving a communication test instruction; the communication test instruction comprises test data and a slave station address;
and sending the test data to the slave station of the HDLC equipment according to the slave station address.
According to the communication detection method, the communication detection equipment and the communication detection system of the train network control system, the control equipment of a train acquires a communication test instruction and sends the communication test instruction to the HDLC equipment controlled by the high-level data link, and the communication test instruction comprises test data and the address of a master station and the address of a slave station of the HDLC equipment and receives communication data returned by the HDLC equipment. And determining whether the communication between the master station of the HDLC equipment and the slave station of the HDLC equipment has a fault according to the HDLC protocol, the communication data and the test data. The control and monitoring system composed of the upper computer, the upper computer software and the communication board card reduces frequent manual operation, reduces time consumption and improves the reliability of detection results.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is an application scenario diagram of a communication detection system between a control device and an HDLC device according to an embodiment of the present invention;
fig. 2 is an interaction flowchart of an embodiment of a communication detection method of a train network control system according to the present invention;
fig. 3 is a flowchart of an upper computer application of the train network control system according to the embodiment of the present invention;
fig. 4 is a flow chart of a lower computer application of the train network control system according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of an embodiment of a control device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an embodiment of an HDLC apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, bus data which are monitored and detected are recorded, and then the mode of manual comparative analysis is adopted, so that the problems of long time consumption and low reliability of data analysis exist. In addition, in the prior art, the software of an upper computer such as LabView and the like is not applied to the field of HDLC communication monitoring and detection, so that a test experiment is performed each time. The test program is modified again, for example, the cycle number of the test, the test data, the sending and receiving delays, etc. are modified, so that the modification and debugging of the test program not only consumes a lot of time, but also has high requirements on practitioners.
Aiming at the existing problems, the invention provides a communication detection method of a train network control system. The control and monitoring system composed of the upper computer, the upper computer software and the communication board card reduces frequent manual operation, reduces time consumption and improves the reliability of detection results. This scheme is illustrated in detail below by means of several specific examples.
Fig. 1 is a schematic diagram of a communication detection system of a train network control system according to an embodiment of the present invention, as shown in fig. 1, a control device of a train and a high-level data link control HDLC device; the control equipment is connected with the HDLC equipment in a wireless or wired mode;
the implementation subject of the scheme is a control device and an HDLC device.
The control apparatus includes: host computer, host computer software, communication integrated circuit board.
The HDLC device includes: HDLC master station, HDLC slave station, lower computer test software. The HDLC master station can also be called HDLC main equipment, or an HDLC communication master station, or an HDLC master station to be monitored; the HDLC slave station may also be called an HDLC slave, or an HDLC communicating slave, or an HDLC slave station to be monitored.
Specifically, the upper computer software is installed in the upper computer and forms control equipment together with the communication board card.
The control equipment comprises a control module and a communication board card; the control module is connected with the communication board card;
and the communication board card is used for sending the communication test instruction to the HDLC equipment.
The lower computer test software is installed in the HDLC communication equipment, HDLC communication is adopted between the HDLC main station and the HDLC slave station, and the upper computer is communicated with the HDLC equipment through the communication board card.
Optionally, the HDLC device master station and the slave station use half-duplex communication of the RS-485 standard on a physical layer, and use an HDLC communication protocol on a data link layer. HDLC communication may employ Normal Responses Mode (NRM) which is suitable for end-oriented point-to-point or point-to-multipoint links. The master station of the HDLC equipment is responsible for initialization of a data link, data flow control and link reset, and the slave station of the HDLC equipment sends out a response after receiving an instruction sent by the master station.
The development environment may be any programming environment, for example, a program in a block diagram form may be generated by using LabView graphical compilation software, which has advantages in human-computer interaction, and the present solution does not limit this.
Fig. 2 is an interaction flowchart of an embodiment of a communication detection method of a train network control system according to an embodiment of the present invention, and as shown in fig. 2, the scheme is applied to the communication detection system of the train network control system shown in fig. 1, and the communication detection method of the train network control system includes the following specific implementation steps:
s101: and acquiring a communication test instruction, and sending the communication test instruction to the HDLC equipment.
In this step, the communication test command includes the test data and the address of the master station and the address of the slave station of the HDLC device, and the communication test command is obtained by the upper computer and then sent to the communication board, the communication board completes protocol conversion on the test command, converts the test command into the HDLC protocol and sends the HDLC device, and the communication protocol of the test command received by the communication board may be any one, which is not limited in this scheme.
Optionally, the communication test instruction may be obtained through input of a user on the control interface, and the communication test instruction further includes a test frequency.
Optionally, the communication test instruction may be used for a single test or multiple cycle tests, the purpose of the test may be to detect a network fault of train sub-equipment, and the train sub-equipment may be any equipment on the train that needs to be monitored, such as an air conditioner or a door.
S102: and receiving a communication test instruction sent by the control equipment.
Specifically, the HDLC equipment receives a communication test instruction sent by the control equipment through the communication board card, and the communication test instruction comprises test data, and an HDLC master station address to be monitored and a slave station address. And sending a communication test instruction to the master station of the HDLC equipment to be monitored according to the address of the master station to be monitored so that the master station sends the test data to the slave station of the HDLC equipment to be monitored according to the address of the slave station to be monitored.
S103: communication data returned by a slave station of the HDLC device is acquired.
In this step, the HDLC device obtains communication data returned from the station, where the communication data is used to compare with the test data, and the result indicates whether a network fault exists in the detection result.
S104: and returning the communication data to the control equipment.
In the step, communication data returned by the HDLC equipment is received;
s105: and determining whether the communication between the master station of the HDLC equipment and the slave station of the HDLC equipment has a fault according to the HDLC protocol, the communication data and the test data.
In a specific implementation mode, whether the communication data and the test data are consistent or not is compared according to the HDLC protocol; if the communication data are consistent with the test data, determining that no fault exists between the master station and the slave station; and if the communication data is inconsistent with the test data, determining that a fault exists between the master station and the slave station.
Specifically, the HDLC communication protocol is a bit-oriented data link control protocol that does not rely on any one of the alphabet code sets; the data message can be transmitted transparently, and the '0 bit insertion method' for realizing transparent transmission is easy to realize by hardware; full duplex communication, higher data link transmission efficiency; all frames adopt CRC check, and the information frames are numbered sequentially, so that the missing or retransmission can be prevented, and the transmission reliability is high; the transmission control function is separated from the processing function, and the method has great flexibility.
Optionally, in another specific implementation manner, if a fault is determined to exist between the master station and the slave station, which may also be referred to as when the control system detects an error, the control system pushes alarm information; the alarm information is used for indicating that a fault exists between the master station and the slave station.
Optionally, the alarm information may be displayed through a display screen or played through a speaker, which is not limited in this case.
According to the communication detection method of the train network control system, a test instruction is obtained through an upper computer in the control device, the test instruction is sent to the HDLC device through the communication board card, the HDLC device sends test data and slave station addresses to the corresponding HDLC master station according to the master station address in the test instruction, the HDLC master station sends the test data to the HDLC slave stations, the HDLC slave stations return communication data to the HDLC master station, finally the HDLC device returns the communication data to the control device, the control device judges whether faults exist between the HDLC master station and the HDLC slave stations according to an HDLC communication protocol, the communication data and the test data, frequent manual operation can be reduced by adding the control system, time consumption is reduced, and reliability of a detection result is improved.
On the basis of the above embodiments, the method provided by the present invention is illustrated by a specific implementation manner.
Fig. 3 is a flowchart of an application of an upper computer of a train network control system according to an embodiment of the present invention, and as shown in fig. 3, the specific implementation steps of an upper computer program flow of a control device in the train network control system are as follows:
s201: and configuring HDLC communication read-write function.
In this step, the upper computer software in the control device configures the HDLC communication read-write function.
S202: the communication baud rate is initialized and configured.
In this step, the upper computer software completes in sequence: initializing an HDLC communication writing function and configuring a communication baud rate; and initializing the HDLC communication reading function and configuring the communication baud rate.
S203: and setting the test times and sending a test instruction to the HDLC equipment.
In this step, the test task setting is completed, that is, the task test times and the test instruction are set, and the test instruction includes test data, and the address of the master station and the address of the slave station of the HDLC device.
Optionally, the test task setting may be obtained through user input at the control interface.
Further, the data transmission process of the test instruction in the HDLC equipment comprises the following steps: 1. the HDLC main station transmits test data, waits for the transmission delay of the test data and confirms that the transmission of the test data is finished; 2. the HDLC slave station receives the test data, waits for the test data to be received for delay, and confirms that the test data is completely received; 3. and the HDLC slave station returns the communication data, waits for the transmission delay and confirms that the transmission of the communication data is finished.
S204: the HDLC device returns the monitoring data.
In this step, the HDLC device returns monitoring data, which includes communication data and test data.
S205: and judging whether the data conforms to the protocol.
In the step, whether the communication data is consistent with the test data is compared according to an HDLC protocol; if the communication data and the test data are consistent, determining that no fault exists between the HDLC master station and the HDLC slave station, namely the data conform to the protocol, and executing a step S206; if the communication data is inconsistent with the test data, it is determined that a fault exists between the master station and the slave station, that is, the data does not conform to the protocol, and step 208 is executed.
According to the determination result of S205, if the data conforms to the protocol, the following steps are performed:
s206: and judging whether the test times are less than the set test times.
In this step, comparing the number of times that the HDLC has completed testing with the set number of times, and if the number of times that the HDLC has completed testing is less than the set number of times, returning to S203 to execute the second round of testing; if not, the next step S207 is executed.
S207: and (4) the test is passed, the memory is released and the test is finished.
In this step, the upper computer program completes the test times and determines that the test is passed, and then the test is ended and the memory resource is released.
Optionally, the information that passes the test may be displayed on a display screen or played through a speaker, which is not limited in this case.
Secondly, according to the judgment result of the step S205, if the data does not conform to the protocol, the following steps are executed:
s208: and alarming to prompt wrong contents and push out a test.
In the step, the control system pushes alarm information; the alarm information is used for indicating that a fault exists between the master station and the slave station.
Optionally, the alarm information may be displayed through a display screen or played through a speaker, which is not limited in this case.
In the method for detecting the upper computer program of the control device in the train network control system, after the HDLC communication function and the baud rate are configured and initialized, the upper computer program obtains a test instruction and sends the test instruction to the HDLC device, the HDLC device sends test data and a slave station address to a corresponding HDLC master station according to a master station address in the test instruction, the HDLC master station sends the test data to an HDLC slave station, the HDLC slave station returns communication data to the HDLC master station, and finally the HDLC device returns the communication data to the control device.
Further, the transmission process of the test data and the communication data comprises waiting for data sending delay and waiting for data receiving delay.
Optionally, the upper computer software program may be written by LabView, or may be developed by using other programs, which is not limited in this embodiment.
On the basis of the embodiments of fig. 2 and 3, the method provided by the present invention is further illustrated by a specific implementation manner.
Fig. 4 is a flow chart of a lower computer application of a train network control system according to an embodiment of the present invention, and as shown in fig. 4, specific implementation steps of a lower computer program flow of a control device in the train network control system include:
s301: and (5) initializing the system.
In this step, the lower computer program in the HDLC device performs system initialization and configures the HDLC communication protocol.
Specifically, the HDLC communication protocol is a bit-oriented data link control protocol that does not rely on any one of the alphabet code sets; the data message can be transmitted transparently, and the '0 bit insertion method' for realizing transparent transmission is easy to realize by hardware; full duplex communication, higher data link transmission efficiency; all frames adopt CRC check, and the information frames are numbered sequentially, so that the missing or retransmission can be prevented, and the transmission reliability is high; the transmission control function is separated from the processing function, and the method has great flexibility.
S302: and waiting for a test instruction sent by the control equipment.
In this step, the lower computer program waits for receiving a test instruction sent from the control device, where the test instruction includes test data and addresses of a master station and a slave station of the HDLC device.
S303: and judging whether a test instruction sent by the control equipment is received.
In this step, the lower computer program judges whether a test instruction sent by the control device is received, if so, step S304 is executed, that is, a delay of receiving data is executed, and it is confirmed that all data are received; if not, executing step S302 to continue waiting for the control device to send the test command.
According to the determination result in step S303, if a test instruction sent by the control device is received, step S304 is executed, which specifically includes:
s304: and executing data receiving delay and confirming that all data are received.
In this step, the HDLC device performs a receive data delay and confirms that all data has been received.
Further, the data transmission process of the test instruction in the HDLC equipment comprises the following steps: 1. the HDLC main station transmits test data, waits for the transmission delay of the test data and confirms that the transmission of the test data is finished; 2. the HDLC slave station receives the test data, waits for the test data to be received for delay, and confirms that the test data is completely received; 3. and the HDLC slave station returns the communication data, waits for the transmission delay and confirms that the transmission of the communication data is finished.
S305: and returning the monitored HDLC communication data to the control equipment.
In this step, the HDLC device returns the communication data to the control device, and the lower computer program performs transmission delay to confirm that the transmission of the communication data is completed.
S306: and (5) finishing the test.
In this step, the lower computer program ends the test.
In the method for detecting the lower computer program of the control device in the train network control system, after the system is initialized, the lower computer program waits for a test instruction sent by the control device; judging whether a test instruction sent by the control equipment is received, if so, executing receiving delay and confirming that all data are received, and if not, continuing to wait for the control equipment to send the test instruction; the HDLC equipment receives all test instructions; the HDLC equipment executes the test and finally returns the communication data to the control equipment, so that the control equipment analyzes the data according to the HDLC communication protocol and confirms whether the equipment has faults or not.
Optionally, the upper computer software program may be written by LabView, or may be developed by using other programs, which is not limited in this embodiment.
Fig. 5 is a schematic structural diagram of an embodiment of a control device according to an embodiment of the present invention, and as shown in fig. 5, the control device 10 includes:
the acquisition module 11 is configured to acquire a communication test instruction and send the communication test instruction to the HDLC device for controlling the high-level data link; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
the receiving module 12 is configured to receive communication data returned by the HDLC device;
and the processing module 13 is configured to determine whether there is a failure in communication between the master station of the HDLC device and the slave station of the HDLC device according to the HDLC protocol, the communication data, and the test data.
The control device provided in this embodiment is configured to execute the technical solution on the control device side in any one of the foregoing embodiments, and when the obtaining module 11 of the control device obtains the communication test instruction, the communication test instruction is sent to the HDLC device through the communication board, and meanwhile, the HDLC device waits for the communication data to be returned; when the HDLC equipment returns the communication data, the receiving module 12 of the trigger control equipment receives the communication data. And a processing module 13 in the control device determines whether the communication between the master station of the HDLC device and the slave station of the HDLC device has a fault according to the HDLC protocol, the communication data and the test data.
On the basis of the foregoing embodiment, the processing module 13 is specifically configured to:
comparing whether the communication data is consistent with the test data or not according to the HDLC protocol;
if the communication data are consistent with the test data, determining that no fault exists between the master station and the slave station;
and if the communication data is inconsistent with the test data, determining that a fault exists between the master station and the slave station.
Optionally, the processing module 13 is further configured to:
if the fact that a fault exists between the master station and the slave station is determined, pushing alarm information; the alarm information is used for indicating that a fault exists between the master station and the slave station.
Optionally, the obtaining module 11 is specifically configured to:
receiving the communication test instruction input by a user through a control interface; the communication test instruction comprises test times.
The control device provided in any of the above embodiments is configured to execute the technical solution on the control device side in any of the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram of an embodiment of an HDLC apparatus according to an embodiment of the present invention, and as shown in fig. 6, the HDLC apparatus 20 includes:
the receiving module 21 is configured to receive a communication test instruction sent by the control device; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
a sending module 22, configured to send the communication test instruction to a master station of the HDLC device according to the master station address, so that the master station sends the test data to a slave station of the HDLC device;
an obtaining module 23, configured to obtain communication data returned by a slave station of the HDLC device;
optionally, the sending module 23 is further configured to return the communication data to the control device.
The HDLC device provided in this embodiment is configured to execute the technical solution on the HDLC device side in any of the foregoing embodiments, where a receiving module 21 of the HDLC device receives a communication test instruction sent by a control device; the sending module 22 of the HDLC device sends the communication test instruction to the master station of the HDLC device according to the master station address, so that the master station sends the test data to the slave station of the HDLC device; and finally, acquiring communication data returned by the slave station of the HDLC equipment through an acquisition module 23.
An embodiment of the present invention further provides a control device, including: the communication detection method of the train network control system of the embodiment of the method is realized by the processor, the memory for storing data and computer programs, the receiver and the transmitter, wherein the processor executes the computer programs stored in the memory.
An embodiment of the present invention provides an HDLC apparatus, including: the communication detection method of the train network control system in the embodiment of the method comprises a processor, a memory for storing data and computer programs, a receiver and a transmitter, wherein the processor executes the computer programs stored in the memory to realize the communication detection method of the train network control system in the embodiment of the method.
The embodiment of the invention also provides a readable storage medium, wherein a computer program is stored in the readable storage medium, and the computer program is used for realizing the communication detection method of the train network control system in the embodiment of the method.
The embodiment of the invention also provides a readable storage medium, wherein a computer program is stored in the readable storage medium, and the computer program is used for realizing the communication detection method of the train network control system for realizing any one of the above method embodiments in the second aspect.
In the above-mentioned specific implementation of the control device and the HDLC device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape, floppy disk, optical disk, and any combination thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: it is possible to modify the solution described in the preceding embodiments,
or the equivalent substitution of some or all of the technical characteristics; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A communication detection method of a train network control system is characterized by being applied to control equipment in a train, and the method comprises the following steps:
acquiring a communication test instruction, and sending the communication test instruction to a high-level data link control HDLC device; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
receiving communication data returned by the HDLC equipment;
and determining whether the communication between the master station of the HDLC equipment and the slave station of the HDLC equipment has a fault according to the HDLC protocol, the communication data and the test data.
2. The method of claim 1, wherein determining whether there is a failure in communication between the master station of the HDLC device and the slave station of the HDLC device according to the HDLC protocol, the communication data, and the test data comprises:
comparing whether the communication data is consistent with the test data or not according to the HDLC protocol;
if the communication data are consistent with the test data, determining that no fault exists between the master station and the slave station;
and if the communication data is inconsistent with the test data, determining that a fault exists between the master station and the slave station.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
if the fact that a fault exists between the master station and the slave station is determined, pushing alarm information; the alarm information is used for indicating that a fault exists between the master station and the slave station.
4. The method according to claim 1 or 2, wherein the obtaining of the communication test command comprises:
receiving the communication test instruction input by a user through a control interface; the communication test instruction comprises test times.
5. A communication detection method of a train network control system is characterized in that the communication detection method is applied to a high-level data link control HDLC device in a train, the HDLC device comprises a master station and a slave station, and the method comprises the following steps:
receiving a communication test instruction sent by control equipment; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
according to the master station address, the communication test instruction is sent to a master station of the HDLC equipment, so that the master station sends the test data to a slave station of the HDLC equipment;
and acquiring communication data returned by the slave station of the HDLC equipment, and returning the communication data to the control equipment.
6. A control apparatus, characterized by comprising:
the acquisition module is used for acquiring a communication test instruction and sending the communication test instruction to the HDLC equipment controlled by the high-level data link; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
the receiving module is used for receiving communication data returned by the HDLC equipment;
and the processing module is used for determining whether the communication between the master station of the HDLC equipment and the slave station of the HDLC equipment has a fault according to the HDLC protocol, the communication data and the test data.
7. An HDLC device, comprising:
the receiving module is used for receiving a communication test instruction sent by the control equipment; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
the sending module is used for sending the communication test instruction to a master station of the HDLC equipment according to the master station address so that the master station sends the test data to a slave station of the HDLC equipment;
the acquisition module is used for acquiring communication data returned by the slave station of the HDLC equipment;
the sending module is also used for returning the communication data to the control equipment.
8. A communication detection system of a train network control system is characterized by comprising: the control equipment of the train and the HDLC equipment are controlled by a high-level data link; the control equipment is connected with the HDLC equipment in a wireless or wired mode;
the control equipment is used for acquiring a communication test instruction and sending the communication test instruction to the HDLC equipment; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
the HDLC device is configured to:
receiving a communication test instruction sent by the control equipment; the communication test instruction comprises test data and a master station address and a slave station address of the HDLC equipment;
according to the master station address, the communication test instruction is sent to a master station of the HDLC equipment, so that the master station sends the test data to a slave station of the HDLC equipment;
communication data returned by a slave station of the HDLC equipment is obtained, and the communication data is returned to the control equipment;
the control device is further configured to:
receiving communication data returned by the HDLC equipment;
and determining whether the communication between the master station of the HDLC equipment and the slave station of the HDLC equipment has a fault according to the HDLC protocol, the communication data and the test data.
9. The system of claim 8, wherein the control device comprises a control module and a communication board card; the control module is connected with the communication board card;
and the communication board card is used for sending the communication test instruction to the HDLC equipment.
10. The system of claim 8 or 9, wherein the HDLC device comprises a primary station and a secondary station, the primary and secondary stations establishing a data connection;
the master station is used for:
receiving a communication test instruction; the communication test instruction comprises test data and a slave station address;
and sending the test data to the slave station of the HDLC equipment according to the slave station address.
CN201810866816.0A 2018-08-01 2018-08-01 Communication detection method, equipment and system of train network control system Pending CN110789580A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810866816.0A CN110789580A (en) 2018-08-01 2018-08-01 Communication detection method, equipment and system of train network control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810866816.0A CN110789580A (en) 2018-08-01 2018-08-01 Communication detection method, equipment and system of train network control system

Publications (1)

Publication Number Publication Date
CN110789580A true CN110789580A (en) 2020-02-14

Family

ID=69425594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810866816.0A Pending CN110789580A (en) 2018-08-01 2018-08-01 Communication detection method, equipment and system of train network control system

Country Status (1)

Country Link
CN (1) CN110789580A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079066A (en) * 2021-03-30 2021-07-06 江苏方天电力技术有限公司 Communication test system and test method for comprehensive protection measurement and control device
CN113259169A (en) * 2021-06-01 2021-08-13 武汉慧联无限科技有限公司 Data processing method and device, electronic equipment and storage medium
CN114760160A (en) * 2021-02-05 2022-07-15 广州汽车集团股份有限公司 Vehicle CAN bus penetration test method and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760160A (en) * 2021-02-05 2022-07-15 广州汽车集团股份有限公司 Vehicle CAN bus penetration test method and system
CN114760160B (en) * 2021-02-05 2023-01-06 广州汽车集团股份有限公司 Vehicle CAN bus penetration test method and system
CN113079066A (en) * 2021-03-30 2021-07-06 江苏方天电力技术有限公司 Communication test system and test method for comprehensive protection measurement and control device
CN113079066B (en) * 2021-03-30 2023-05-16 江苏方天电力技术有限公司 Communication test system and test method for comprehensive protection measurement and control device
CN113259169A (en) * 2021-06-01 2021-08-13 武汉慧联无限科技有限公司 Data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110789580A (en) Communication detection method, equipment and system of train network control system
US20100095159A1 (en) Apparatus and method for automatic testing of software or digital devices
EP2749848A1 (en) Firmware upgrade error detection and automatic rollback
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
WO2017072664A1 (en) System and method for establishing a trusted diagnosis/debugging agent over a closed commodity device
EP3675398A1 (en) Check code processing method, electronic device, and storage medium
CN103270497A (en) Method and system of live error recovery
CN103714029A (en) Novel two-line synchronous communication protocol and application
CN108399730A (en) Infrared signal receiver detection method and device
CN113672441B (en) Method and device for testing intelligent equipment
CN108052094A (en) A kind of extension card identification method, device and frequency converter
JPWO2014199559A1 (en) Relay device and control method of relay device
CN110244693A (en) Test macro, method, vehicle and the machine readable media of vehicle arrangement
WO2021134418A1 (en) Data checking method and apparatus
CN105446837A (en) Method, device and system for detecting whether IIC (inter-integrated circuit) interface device is connected
CN103401956A (en) Address assigning method, data transmission method, indoor unit, outdoor unit and air-conditioning system
CN209441385U (en) The communication detection system of train network control system
WO2011120387A1 (en) Reverse fault detecting method and network side device
CN103885441B (en) A kind of adaptive failure diagnostic method of controller local area network
CN113109643B (en) Automatic testing method and device for intelligent door lock
CN111371799B (en) Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller
CN109587409B (en) Video processor self-adaptive cascade method, device and system
CN108037942B (en) Adaptive data recovery and update method and device for embedded equipment
CN111930582A (en) System management bus detection platform, processor and system management bus detection method
WO2018113353A1 (en) Software upgrade method and device

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