Railway power telecontrol terminal device and data communication method thereof
By using Ethernet switches and CAN-FD buses in railway power remote control terminal devices, combined with automated communication address addressing and flexible system backplane design, the problems of low communication efficiency and inflexible hardware configuration in the existing technology are solved, achieving It provides efficient and intelligent communication management and simplified installation process.
Patent Information
- Application Number
- CN202410925755.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-18
AI Technical Summary
The communication efficiency of existing railway power remote control terminal devices is low, system communication is prone to blockage, and the hardware configuration is inflexible, debugging and installation are cumbersome, and adaptability is poor.
Ethernet switches and CAN-FD buses are used for data communication. Data interaction between functional boards and communication with the communication management unit are realized through the communication board. Automated communication address addressing and flexible system backplane design are used to improve communication. efficiency and hardware configuration flexibility.
It improves the communication efficiency between the remote terminal unit and the communication management unit, avoids communication blockage, simplifies the debugging and installation steps, and enhances the intelligence of communication management and the flexibility of hardware configuration.
Smart Images

Figure CN118801570A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of rail transportation, and in particular relates to a railway electric telecontrol terminal device and a data communication method thereof. Background Art
[0002] The railway power telecontrol terminal device is a general term for the communication management unit and the telecontrol terminal unit (RTU) of the power controlled station of the railway power supply dispatching and control (SCADA) system. The telecontrol terminal unit is used to realize the remote control, telesignaling, and telemetering of the on-site power supply and distribution equipment and communicate with the communication management unit.
[0003] At present, the railway electric telecontrol terminal unit adopts the form of built-in functional boards in a standard 6U chassis. The boards in the chassis communicate with the communication management unit through the CAN bus to complete the basic three remote functions. For details of the system block diagram, see Figure 1 .
[0004] With the rapid development of the rail transit industry, the demand for data acquisition in railway power box-type substations and low-voltage substations is increasing. Sometimes, the number of three remote channels provided by a fully equipped telecontrol terminal unit is far from meeting the actual needs on site, and multiple cascades are often required to meet the requirements. The boards in the existing telecontrol terminal unit communicate directly with the upper-level communication management unit. Due to the original system architecture and communication methods, the communication efficiency of the entire system is relatively low. The situation is not bad in the application scenario of a single device or a small amount of communication data. Once the number of three remote channels increases, the communication data suddenly surges, or the number of cascades increases, it is easy to cause system communication blockage and untimely information transmission.
[0005] The board with communication function in the existing remote terminal unit chassis requires an independent communication address when communicating with the communication management unit. The implementation method is that the debugging and maintenance personnel manually set the communication address through the Console (maintenance) interface provided by the board. If the board is replaced during the later maintenance process, it needs to be set again, which makes the debugging and maintenance work cumbersome and inefficient.
[0006] In addition, the functions implemented by the boards in the chassis are relatively scattered, interdependent, and the logical functions are not independent. The same function requires the cooperation of multiple boards to complete. For example, the telemetry function requires the cooperation of the A / D (analog-to-digital conversion) processing board and the CTPT (voltage and current sampling) board; the remote control function requires the cooperation of the I / O processing board and the DO (remote control output) board; the remote signaling function requires the cooperation of the I / O processing board and the DI (remote signaling sampling) board. In addition, the installation positions of these boards in the chassis are fixed and cannot be flexibly configured, and the system adaptability is relatively poor. Summary of the invention
[0007] The purpose of the present invention is to overcome the defects of the prior art. The present invention provides a railway electric telecontrol terminal device and a data communication method thereof. The present invention can improve the communication efficiency between the telecontrol terminal unit and the communication management unit, avoid communication jams, increase the flexibility of the hardware configuration of the telecontrol terminal unit, simplify the debugging and installation steps, and enhance the intelligence of communication management.
[0008] In order to achieve the expected effect, the present invention adopts the following technical solutions:
[0009] The invention discloses a railway electric telecontrol terminal device, comprising:
[0010] A communication management unit, used for data communication with the telecontrol terminal unit via an Ethernet switch;
[0011] Ethernet switch, used to support the communication management unit and the telecontrol terminal unit to communicate;
[0012] A plurality of telecontrol terminal units, each of which includes a chassis and a plurality of functional boards, each of which exchanges data via a CAN-FD bus, and the telecontrol terminal unit communicates with a communication management unit via a switch.
[0013] Further, the functional board includes: at least one of a communication board, a CTPT telemetry board, a DI telemetering board, a DO remote control board, and a power supply board;
[0014] The communication board includes Ethernet and CAN-FD communication interfaces for communicating data;
[0015] The CTPT telemetry board includes an onboard MCU, a voltage and current sampling circuit, and an A / D analog-to-digital conversion circuit, which is used to directly convert the voltage and current analog signals into digital signals, and send the converted digital signals to the communication board through the CAN-FD bus as required;
[0016] The DI remote signal board includes an onboard MCU and a switch quantity sampling circuit. The onboard MCU forwards the switch quantity signal state collected and input in real time to the communication board through the CAN-FD communication interface;
[0017] The DO remote control board includes an onboard MCU, which receives remote control instructions forwarded by the communication board through the CAN-FD communication interface and performs relay opening and closing actions according to the instructions;
[0018] The power board is used to convert the input AC 220V power into target power for use by other functional boards.
[0019] Furthermore, the communication board periodically sends link test messages to other functional boards in the chassis through the CAN-FD bus interface to count the status of all functional boards, add functional boards with corresponding addresses to the communication queue, and kick functional boards with non-existent corresponding addresses out of the communication queue.
[0020] Furthermore, after the communication board detects that a board is inserted into the slot of the corresponding address through the link test message, it sends a board type acquisition command to the current address board. After receiving the command, the functional board sends its type code and number of input / output channels to the communication board. The communication board parses the received data to identify the specific board type.
[0021] Furthermore, after the communication board obtains the board configuration status in the chassis of the telecontrol terminal unit, it sends the configuration information to the communication management unit via Ethernet.
[0022] Furthermore, the CAN-FD bus includes two buses, CAN-FD0 and CAN-FD1, which adopt a dual redundant design and are used for data communication of various functional boards.
[0023] Furthermore, the function board comprises a function board plug, and a signal definition of the function board plug is consistent with a slot on a system backplane.
[0024] Furthermore, the MCU on the functional board reads the level state of the address pin to obtain the communication address code.
[0025] The present invention also discloses a data communication method for a railway electric telecontrol terminal device. The method is based on any of the above-mentioned railway electric telecontrol terminal devices, and the method comprises:
[0026] After receiving the TCP data packet sent by the communication management unit, the communication board of the telecontrol terminal unit first parses out the specific function board address and valid data, and then forms the data into a CAN-FD data frame and sends it to the internal CAN-FD bus. The destination address of the CAN-FD data frame is the function board address in the chassis.
[0027] After receiving the CAN-FD data frame, the functional board of the telecontrol terminal unit first parses out the valid data and then makes further responses based on its content.
[0028] Furthermore, the method further comprises:
[0029] The function board of the telecontrol terminal unit composes the data to be uploaded into a CAN-FD data frame and sends it to the communication board of the telecontrol terminal unit, wherein the address field is divided into a source address and a destination address, the destination address is the communication board address, and the source address is the sending function board address;
[0030] After receiving the CAN-FD data, the communication board of the telecontrol terminal unit parses the source address and valid data, and then composes the data into a TCP data packet. The destination address of the TCP data packet is the IP address of the communication management unit, and the source address includes the address of the communication board and the corresponding functional board.
[0031] After receiving the TCP data packet, the communication management unit parses out the communication board address of the remote terminal unit and the corresponding functional board address in turn, and then makes further processing according to the valid data content.
[0032] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention provides a railway electric telecontrol terminal device and a data communication method thereof, which can improve the communication efficiency between the telecontrol terminal unit and the communication management unit, avoid communication jams, increase the flexibility of the hardware configuration of the telecontrol terminal unit, simplify the debugging and installation steps, and enhance the intelligence of communication management. The present invention utilizes 100Base-TX Ethernet and CAN-FD bus communication technology, uses a flexibly designed system backplane, independent intelligent functional panels, and highly automated communication management software protocols to achieve an efficient, flexibly configured, and intelligent remote terminal unit. Compared with the prior art, the present invention has a short communication time and higher efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 The present invention provides a block diagram of the structure of an existing railway electric telecontrol terminal system.
[0035] Figure 2 The present invention provides a novel railway electric telecontrol terminal system structure block diagram.
[0036] Figure 3 It is a schematic diagram of a communication address encoding principle provided by an embodiment of the present invention.
[0037] Figure 4 The present invention provides a flow chart of board status and type detection. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] See also Figures 1 to 4 The present invention discloses a railway electric telecontrol terminal device, comprising:
[0040] A communication management unit, used for data communication with the telecontrol terminal unit via an Ethernet switch;
[0041] Ethernet switch, used to support the communication management unit and the telecontrol terminal unit to communicate;
[0042] A plurality of telecontrol terminal units, each of which includes a chassis and a plurality of functional boards, each of which exchanges data via a CAN-FD bus, and the telecontrol terminal unit communicates with a communication management unit via a switch.
[0043] Further, the functional board includes: at least one of a communication board, a CTPT telemetry board, a DI telemetering board, a DO remote control board, and a power supply board;
[0044] The communication board includes Ethernet and CAN-FD communication interfaces for communicating data. Specifically, the communication board acts as a connecting bridge in the communication process of this system architecture. It has both Ethernet and CAN-FD communication interfaces and is equipped with a high-performance MCU that can quickly process large amounts of communication data. The communication board plays the role of a host inside the communication management unit. The difference from other functional boards is that it has no internal communication address identification circuit (the default internal communication address is 0), and has a chassis address setting circuit, which is used for the communication management unit to identify different remote terminal units when multiple remote terminal units are cascaded.
[0045] The CTPT telemetry board includes an onboard MCU, a voltage and current sampling circuit, and an A / D analog-to-digital conversion circuit, which are used to directly convert the voltage and current analog signals into digital signals, and send the converted digital signals to the communication board through the CAN-FD bus as required. Specifically, the CTPT telemetry board has a voltage and current sampling circuit and an A / D analog-to-digital conversion circuit, which can directly convert the voltage and current analog signals into digital signals. The CTPT telemetry board acts as a slave during internal communication, and the onboard MCU sends the collected information to the communication board through the CAN-FD communication interface.
[0046] The DI telemetering board includes an onboard MCU and a switch quantity sampling circuit. The onboard MCU forwards the real-time collected input switch quantity signal status to the communication board through the CAN-FD communication interface. Specifically, the DI telemetering board collects the input switch quantity signal status in real time. The telemetering board acts as a slave during internal communication, and the onboard MCU sends the collected information to the communication board through the CAN-FD communication interface.
[0047] The DO remote control board includes an onboard MCU, which receives the remote control instructions forwarded by the communication board through the CAN-FD communication interface, and performs relay opening and closing actions according to the instructions. Specifically, the onboard MCU of the DO remote control board receives the remote control instructions forwarded by the communication board through the CAN-FD communication interface, and performs relay opening and closing actions according to the instructions. The remote communication board acts as a slave during internal communication.
[0048] The power board is used to convert the input AC 220V power into a target power for use by other functional boards. Specifically, the power board converts the input AC 220V power into a DC 24V power for use by other boards. The power board has an overvoltage and undervoltage detection circuit that can monitor the AC 220V input status in real time. The onboard MCU reports the overvoltage and undervoltage fault message to the communication board through the CAN-FD communication interface, and then the communication board forwards it upward to the communication management unit.
[0049] Specifically, the functional boards are divided and integrated according to logical business, and each functional board independently implements a function, which is divided into five types: power board, communication board, CTPT telemetry board, DI telemetering board, and DO remote control board. Each type of board is equipped with an MCU and a communication interface, which can communicate with the communication board. The functional board receives data / instructions forwarded by the communication board through the internal CAN-FD bus or uploads various types of collected data to the communication board. In addition, each type of functional board (except the communication board) is also designed with a communication address identification circuit, which can read and identify the communication address set in the slot, and use it as its own communication address to communicate data with the communication board.
[0050] Furthermore, the communication board periodically sends link test messages to other functional boards in the chassis through the CAN-FD bus interface to count the status of all functional boards, add functional boards with corresponding addresses to the communication queue, and kick functional boards with non-existent corresponding addresses out of the communication queue.
[0051] Furthermore, after the communication board detects that a board is inserted into the slot of the corresponding address through the link test message, it sends a board type acquisition command to the current address board. After receiving the command, the functional board sends its type code and number of input / output channels to the communication board. The communication board parses the received data and identifies the specific board type.
[0052] Specifically, the communication board periodically sends link test messages to the internal CAN-FD bus, and the communication address starts from the lowest bit. If there is a message reply to the current address, it means that there is a board inserted in the slot corresponding to the current address, otherwise there is no board inserted. Then the communication address is incremented until the link test message is sent to the maximum address. After a round of link testing, the communication board can count the status of the boards in all address slots, add the boards with the corresponding addresses to the communication queue, and kick the boards without the corresponding addresses out of the communication queue in time, reducing invalid communication time and improving communication efficiency.
[0053] After the communication board detects that a board is inserted into the slot of the corresponding address by sending a link test message, it sends a board type acquisition command to the board at that address. After receiving the command, the functional board sends its type code and the number of input / output channels to the communication board. After parsing the received data, the communication board can identify the specific board type.
[0054] After the communication board automatically obtains the board configuration in the current chassis, it sends this hardware configuration information to the communication management unit via Ethernet. The communication management unit can automatically generate communication configuration parameters for the entire system operation based on this.
[0055] Furthermore, after the communication board obtains the board configuration status in the chassis of the telecontrol terminal unit, it sends the configuration information to the communication management unit via Ethernet.
[0056] Furthermore, the CAN-FD bus includes two buses, CAN-FD0 and CAN-FD1, which adopt a dual redundant design and are used for data communication of various functional boards.
[0057] Furthermore, the function board comprises a function board plug, and a signal definition of the function board plug is consistent with a slot on a system backplane.
[0058] Furthermore, the MCU on the functional board reads the level state of the address pin to obtain the communication address code.
[0059] The communication management unit of the present invention no longer communicates directly with the boards in the telecontrol terminal unit, but establishes a connection through a special communication board. The new architecture divides the communication network into two different internal and external communication networks on the basis of taking into account load balancing and data timeliness. The communication board is responsible for protocol parsing and data forwarding between the two networks. The telecontrol terminal unit communicates with the communication management unit externally through Ethernet. Ethernet communication is fast and efficient, and the network topology is flexible and simple, which is convenient for cascading and expanding the use of telecontrol terminal units. The CAN-FD bus is used for local data communication between the communication board and each functional board in the chassis. CAN-FD inherits the technical characteristics of the CAN bus, improves the network communication bandwidth of the CAN bus, improves the error frame leakage detection rate, and reduces the communication delay. These new features are very suitable for the rapid exchange of large amounts of data in a small local area, and fully meet the internal communication needs of the telecontrol terminal unit.
[0060] The system backplane of the present invention is used to carry functional boards in the telecontrol terminal unit, and the functional boards are installed in the chassis through the chassis rails and the slots on the system backplane. The new architecture of the telecontrol terminal unit system backplane adopts a unified interface definition design, reasonably arranges the slot positions, and adds a communication address setting feature, which can realize the flexible installation and configuration of functional boards and the automatic setting of communication addresses, as follows:
[0061] The system backplane is designed with a fixed number of slots, and the pin function definition of each slot is the same, providing power and communication interfaces. The PCB circuit on the backplane connects the communication interface pins and power pins with the same definition on the slots in series, so that the installation position of the board is no longer fixed and can be adjusted as needed.
[0062] Each slot on the system backplane has special communication address setting pins. These pins can configure the communication address of the functional board installed in this slot through the address setting circuit on the backplane. The functional board has an address recognition circuit. Through this hardware feature, the functional board can automatically complete the communication address setting function without manual setting.
[0063] Specifically, the system backplane is a standard 19-inch 6U chassis size double-layer PCB, with a specific size of 195x409mm. A total of 10 slots are set, and a maximum of 10 6U boards can be installed. The slot is a 48-pin Harding connector female socket, and the pins are arranged in 3 rows and 3 columns. The specific definition is shown in Table 1. Except for the address setting pin on the slot, the other pins with the same function are connected together through PCB lines. Among them, the CAN-FD0 and CAN-FD1 buses are designed as active and standby redundancy for each other, and are used for data communication between boards in the chassis. The 24V power supply is used to power the boards in the chassis.
[0064] Table 1
[0065] A B C 1 A3 A2 GND 2 A1 A0 GND 3 4 5 6 7 8 CAN-FD0_L CAN-FD0_L CAN-FD0_L 9 CAN-FD0_H CAN-FD0_H CAN-FD0_H 10 CAN-FD1_L CAN-FD1_L CAN-FD1_L 11 CAN-FD1_H CAN-FD1_H CAN-FD1_H 12 13 +24V +24V +24V 14 24VG 24VG 24VG 15 16 PG PG PG
[0066] The internal functional board of the communication management unit can realize the automatic addressing function of the communication address through the backplane slot address setting circuit and the onboard address recognition circuit. The specific implementation method is as follows:
[0067] The system backplane has 10 slots in total, which can accommodate up to 10 boards.
[0068] Each slot has 5 pins specifically used to set the address, namely A0, A1, A2, A3 and GND. The states of pins A0, A1, A2, A3 correspond to the binary address bits ADDR_BIT[0], ADDR_BIT[1], ADDR_BIT[2], ADDR_BIT[3] respectively.
[0069] The plug that matches the function board and the backplane slot also has 5 corresponding address identification pins, namely A0, A1, A2, A3 and GND. And the A0, A1, A2, A3 pins are connected to the 3.3V power supply on the function board through a 4.7K pull-up resistor, and the GND pin is connected to the GND of the 3.3V power supply on the function board.
[0070] If the An pin on the backplane slot is left floating, the An pin on the function board is at a high level due to the pull-up resistor, and the corresponding ADDR_BITn is logic "1"; if the An pin on the backplane slot is connected to GND, the An pin on the function board is at a low level, and the corresponding ADDR_BITn is logic "0". For details on the address addressing principle, see the attached Figure 3 .
[0071] The MCU on the functional board can obtain the address code by reading the level status of the A0, A1, A2, and A3 pins. The corresponding relationship between the connection configuration of the An pin and the address code is shown in Table 2.
[0072] Table 2
[0073]
[0074] The backplane slot address range is 1 to 10, address 0 is the default address of the communication board, and the communication board is no longer designed with an address identification circuit.
[0075] The novel railway electric telecontrol terminal device provided by the present invention has the capability of automatic communication management, including board status detection, board type detection, automatic communication addressing, and communication link establishment and maintenance.
[0076] At the software protocol level, the communication board periodically sends link test messages to all slot addresses in turn to detect whether there is a board inserted in the slot corresponding to the current address. If a board is detected to be inserted, a board type acquisition message is further sent to the current board. Through the above two steps, the communication board can realize board status detection and type automatic identification, and establish a communication connection.
[0077] The communication address is a key element in realizing multi-machine communication. Before multiple devices communicate, they need to be assigned different communication addresses. In the new system architecture provided by the present invention, the system backplane slot is designed with an address setting circuit, and the function board is designed with an address recognition circuit. When the function board is inserted into the backplane slot, the communication address can be automatically assigned without manual setting.
[0078] The new telecontrol terminal unit system architecture provided by the present invention adopts two communication networks, Ethernet and CAN-FD, and abandons the original single communication mode, which not only balances the communication load, but also improves the communication efficiency and is more convenient for cascade networking. The functional board adopts the design of unified external interface and onboard MCU, so that a single board can independently complete the functions that can only be achieved by the cooperation of multiple boards, and the installation position in the chassis is no longer fixed, which simplifies the system structure and increases the flexibility of equipment configuration. The automatic addressing function of the communication address contained in the new architecture (implemented by hardware) no longer requires debugging and maintenance personnel to manually set the communication address one by one. The functional board can automatically establish a communication connection for data communication when it is installed in the slot and works normally. This feature greatly simplifies the installation and debugging steps, reduces the workload of personnel, and improves the efficiency of equipment installation and deployment. In summary, the telecontrol terminal unit of the new architecture has a huge improvement and improvement in data communication efficiency, hardware configuration expansion and automation innovation compared with the original architecture, and the replacement advantage is significant.
[0079] The present invention also discloses a data communication method for a railway electric telecontrol terminal device. The method is based on any of the above-mentioned railway electric telecontrol terminal devices, and the method comprises:
[0080] After receiving the TCP data packet sent by the communication management unit, the communication board of the telecontrol terminal unit first parses out the specific function board address and valid data, and then forms the data into a CAN-FD data frame and sends it to the internal CAN-FD bus. The destination address of the CAN-FD data frame is the function board address in the chassis.
[0081] After receiving the CAN-FD data frame, the functional board of the telecontrol terminal unit first parses out the valid data and then makes further responses based on its content.
[0082] Specifically, the downlink data flow: the downlink communication data flow direction of the telecontrol terminal unit is communication management unit->Ethernet->telecontrol terminal unit communication board->CAN-FD bus->telecontrol terminal unit function board (telesignaling / remote control / telemetry). The specific business process is as follows:
[0083] The communication management unit sends the data / instructions into a TCP data packet to the Ethernet. The IP address is the communication board address of the communication management unit. The TCP data packet also contains the specific board address.
[0084] After the communication board network interface of the communication management unit receives the TCP data packet, it first parses out the specific board address and valid data / instructions, and then composes the data / instructions into a CAN-FD data frame and sends it to the internal CAN-FD bus. The destination address of the CAN-FD data frame is the board address.
[0085] After receiving the CAN-FD data frame, the telecontrol terminal unit function board first parses out the valid data / instructions, and then makes further responses based on its content.
[0086] Furthermore, the method further comprises:
[0087] The function board of the telecontrol terminal unit composes the data to be uploaded into a CAN-FD data frame and sends it to the communication board of the telecontrol terminal unit, wherein the address field is divided into a source address and a destination address, the destination address is the communication board address, and the source address is the sending function board address;
[0088] After receiving the CAN-FD data, the communication board of the telecontrol terminal unit parses the source address and valid data, and then composes the data into a TCP data packet. The destination address of the TCP data packet is the IP address of the communication management unit, and the source address includes the address of the communication board and the corresponding functional board.
[0089] After receiving the TCP data packet, the communication management unit parses out the communication board address of the remote terminal unit and the corresponding functional board address in turn, and then makes further processing according to the valid data content.
[0090] Specifically, the upstream data flow: the upstream communication data flow direction of the telecontrol terminal unit is the telecontrol terminal function board (telesignaling / remote control / telemetry) -> CAN-FD bus -> telecontrol terminal unit communication board -> Ethernet -> communication management unit. The specific business process is as follows:
[0091] The function board in the remote terminal unit organizes the data to be uploaded into a CAN-FD data frame, in which the address field is divided into two parts: source address and destination address. The source address is the function board address, and the destination address is the communication board address.
[0092] After the communication board of the communication management unit receives the CAN-FD data, it parses the source address and valid data, and then assembles the data into a TCP data packet. The destination address of the TCP data packet is the IP address of the communication management unit, and the source address is the IP address of the communication board; the valid data includes the address of the internal function board.
[0093] After receiving the TCP data packet, the communication management unit parses out the communication board address and function board address of the remote terminal unit in turn, and then makes further processing according to the valid data content.
[0094] The method embodiments can be implemented one-to-one with the aforementioned system embodiments, and will not be described in detail here.
[0095] Based on the same inventive concept, the present invention also discloses an electronic device, which may include: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus. The processor may call the logic instructions in the memory to execute a data communication method for a railway electric telecontrol terminal device, the method being based on any of the above-mentioned railway electric telecontrol terminal devices, the method comprising:
[0096] After receiving the TCP data packet sent by the communication management unit, the communication board of the telecontrol terminal unit first parses out the specific function board address and valid data, and then forms the data into a CAN-FD data frame and sends it to the internal CAN-FD bus. The destination address of the CAN-FD data frame is the function board address in the chassis.
[0097] After receiving the CAN-FD data frame, the functional board of the telecontrol terminal unit first parses out the valid data and then makes further responses based on its content.
[0098] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0099] On the other hand, an embodiment of the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute a data communication method for a railway electric telecontrol terminal device provided by each of the above method embodiments, the method is based on any of the above railway electric telecontrol terminal devices, the method comprising:
[0100] After receiving the TCP data packet sent by the communication management unit, the communication board of the telecontrol terminal unit first parses out the specific function board address and valid data, and then forms the data into a CAN-FD data frame and sends it to the internal CAN-FD bus. The destination address of the CAN-FD data frame is the function board address in the chassis.
[0101] After receiving the CAN-FD data frame, the functional board of the telecontrol terminal unit first parses out the valid data and then makes further responses based on its content.
[0102] In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for data communication of a railway electric telecontrol terminal device provided in the above embodiments is implemented, and the method is based on any of the above railway electric telecontrol terminal devices, and the method includes:
[0103] After receiving the TCP data packet sent by the communication management unit, the communication board of the telecontrol terminal unit first parses out the specific function board address and valid data, and then forms the data into a CAN-FD data frame and sends it to the internal CAN-FD bus. The destination address of the CAN-FD data frame is the function board address in the chassis.
[0104] After receiving the CAN-FD data frame, the functional board of the telecontrol terminal unit first parses out the valid data and then makes further responses based on its content.
[0105] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0106] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A railway electric telecontrol terminal device, characterized in that: include: A communication management unit, used for data communication with the telecontrol terminal unit via an Ethernet switch; Ethernet switch, used to support the communication management unit and the telecontrol terminal unit to communicate; A plurality of telecontrol terminal units, each of which includes a chassis and a plurality of functional boards, each of which exchanges data via a CAN-FD bus, and the telecontrol terminal unit communicates with a communication management unit via a switch.
2. The system according to claim 1, characterized in that: The functional board includes: at least one of a communication board, a CTPT telemetry board, a DI telemetering board, a DO remote control board, and a power supply board; The communication board includes Ethernet and CAN-FD communication interfaces for communicating data; The CTPT telemetry board includes an onboard MCU, a voltage and current sampling circuit, and an A / D analog-to-digital conversion circuit, which is used to directly convert the voltage and current analog signals into digital signals, and send the converted digital signals to the communication board through the CAN-FD bus as required; The DI remote signal board includes an onboard MCU and a switch quantity sampling circuit. The onboard MCU forwards the switch quantity signal state collected and input in real time to the communication board through the CAN-FD communication interface; The DO remote control board includes an onboard MCU, which receives remote control instructions forwarded by the communication board through the CAN-FD communication interface and performs relay opening and closing actions according to the instructions; The power board is used to convert the input AC 220V power into target power for use by other functional boards.
3. The system according to claim 2, characterized in that: The communication board periodically sends link test messages to other functional boards in the chassis through the CAN-FD bus interface to count the status of all functional boards, add the functional boards with corresponding addresses to the communication queue, and kick the functional boards with non-existent addresses out of the communication queue.
4. The system according to claim 2, characterized in that: After the communication board detects that a board is inserted into the slot of the corresponding address through the link test message, it sends a board type acquisition command to the current address board. After receiving the command, the functional board sends its type code and number of input / output channels to the communication board. The communication board parses the received data to identify the specific board type.
5. The system according to claim 2, characterized in that: After the communication board obtains the board configuration in the chassis of the telecontrol terminal unit, it sends the configuration information to the communication management unit via Ethernet.
6. The system according to claim 1, characterized in that: The CAN-FD bus includes two buses, CAN-FD0 and CAN-FD1, which adopt a dual redundant design and are used for data communication of various functional boards.
7. The system according to claim 1, characterized in that: The function board comprises a function board plug, and the signal definition of the function board plug is consistent with the slot on the system backplane.
8. The system according to claim 7, characterized in that: The MCU on the functional board reads the level status of the address pin to obtain the communication address code.
9. A data communication method for a railway electric telecontrol terminal device, characterized in that: The method is based on the railway electric telecontrol terminal device according to any one of claims 1 to 8, and the method comprises: After receiving the TCP data packet sent by the communication management unit, the communication board of the telecontrol terminal unit first parses out the specific function board address and valid data, and then forms the data into a CAN-FD data frame and sends it to the internal CAN-FD bus. The destination address of the CAN-FD data frame is the function board address in the chassis. After receiving the CAN-FD data frame, the functional board of the telecontrol terminal unit first parses out the valid data and then makes further responses based on its content.
10. The method according to claim 9, characterized in that The method further includes: The function board of the telecontrol terminal unit composes the data to be uploaded into a CAN-FD data frame and sends it to the communication board of the telecontrol terminal unit, wherein the address field is divided into a source address and a destination address, the destination address is the communication board address, and the source address is the sending function board address; After receiving the CAN-FD data, the communication board of the telecontrol terminal unit parses the source address and valid data, and then composes the data into a TCP data packet. The destination address of the TCP data packet is the IP address of the communication management unit, and the source address includes the address of the communication board and the corresponding functional board. After receiving the TCP data packet, the communication management unit parses out the communication board address of the remote terminal unit and the corresponding functional board address in turn, and then makes further processing according to the valid data content.
