Multi-functional
Vehicle bus device address collocation method
Technical field
The present invention relates to a kind of address configuration method, be specifically related to a kind of MVB device address collocation method.It is applied to railway systems based on TCN(Train
Communication Network, train communication network) MVB(Multifunction Vehicle Bus, MVB) device address collocation method.
Background technology
MVB (MVB), it is a part of train communication network TCN, and TCN network is made up of MVB+WTB, and it is the serial data communications busses that one is mainly used between (but being also not fully dedicated to) interconnection equipment to having interoperability and interchangeability to require.
The address configuration method of existing train apparatus includes address configuration means, described address configuration means includes master board, MVB board and host computer, concrete address configuration method is to need to utilize the host computer being connected with MVB board to be programmed configuration, finally downloads in MVB board with the form of database program.Owing to multiple equipment have different device addresses, therefore, host computer will have multitype database program, the MVB board connected on distinct device can not directly be exchanged, configuration underaction, to the maintenance in later stage, more change jobs and Field Force will reaffirm and on-demand be downloaded configuration work so that this work is wasted time and energy, and operating efficiency is the lowest.
Summary of the invention
It is an object of the invention to: provide one not only allocative efficiency high, time saving and energy saving, and the MVB device address collocation method of stability and high efficiency.
In order to achieve the above object, the technical scheme is that a kind of MVB device address collocation method, device is configured including device address, described device address configuration device includes MVB board, and the master board electrically connected with equipment, described master board includes that master controller, memory module and communication module, described memory module and communication module electrically connect with master controller respectively, and described MVB board is electrically connected with master controller by communication module;Its innovative point is: described device address configuration device also includes that multichannel toggle switch, described multichannel toggle switch electrically connect with master controller;Comprising the concrete steps that of its device address configuration:
Step a, being arranged device address M1 by described multichannel toggle switch, the most described master controller reads the device address M1 that multichannel toggle switch is arranged;
Step b, described memory module have device address M2 in advance, and the most described master controller reads the device address M2 of memory module storage;
The information content of step c, the described master controller device address M1 to reading and the information content of device address M2 compare:
If the information content of step c1 device address M1 is identical with the information content of device address M2, the most described master controller reads the device address M3 that MVB board has in advance;By described master controller, the information content of the information content of device address M1 or the information content of device address M2 with device address M3 is compared, if it is identical, the most described MVB board is without reconfiguring device address, equipment starts properly functioning, if different, the information content of device address M1 or the information content of device address M2 are configured in MVB board by the most described master controller;
If the information content of step c2 device address M1 differs with the information content of device address M2, the information content of device address M1 is directly configured in MVB board by the most described master controller;
In step c3, described step c1 and step c2, the communications protocol between described MVB board and master board is the TCN RTP message data management agreement of uneven transmission based on EN60870 serial communication host-host protocol;
Step d, inspection device address configure the most successful, if device address configuration successful, then equipment starts properly functioning, if device address configuration failure, then re-execute device address configuration.
In technique scheme, in described step d during device address configuration failure number of times >=3, described master controller report an error, and point out artificial treatment.
In technique scheme, described communication module is serial RS485 communication module, or serial RS232 communication module.
The good effect that the present invention is had is: after using the MVB device address collocation method of the present invention, and described device address configuration device also includes that multichannel toggle switch, described multichannel toggle switch are connected with master controller communication;Comprising the concrete steps that of its device address configuration: step a, arranged device address M1 by described multichannel toggle switch, the most described master controller reads the device address M1 that multichannel toggle switch is arranged;Step b, described memory module have device address M2 in advance, and the most described master controller reads the device address M2 of memory module storage;The information content of step c, the described master controller device address M1 to reading compares with the information content of device address M2: if the information content of step c1 device address M1 is identical with the information content of device address M2, and the most described master controller reads the device address M3 that MVB board has in advance;By described master controller, the information content of the information content of device address M1 or the information content of device address M2 with device address M3 is compared, if it is identical, the most described MVB board is without reconfiguring device address, equipment starts properly functioning, if different, the information content of device address M1 or the information content of device address M2 are configured in MVB board by the most described master controller;If the information content of step c2 device address M1 differs with the information content of device address M2, the information content of device address M1 is directly configured in MVB board by the most described master controller;In step c3, described step c1 and step c2, the communications protocol between described MVB board and master board is the TCN RTP message data management agreement of uneven transmission based on EN60870 serial communication host-host protocol;Step d, inspection device address configure the most successful, if device address configuration successful, then equipment starts properly functioning, if device address configuration failure, then re-execute device address configuration.Present invention have the advantage that first, to change the device address of equipment, only need to change multichannel toggle switch during device powers down, it is no longer necessary to additionally MVB board being carried out manual configuration, when equipment is once again powered up, system can be automatically performed the configuration of device address;Second, such as MVB board to be changed, after having changed, also it is no longer necessary to additionally MVB board be carried out the configuration of device address, such MVB board just can be general;3rd, when the master controller of the present invention and the mutual communication of MVB board, employ the TCN RTP message data management agreement of uneven transmission based on EN60870 serial communication host-host protocol, stability and high efficiency.It is high, time saving and energy saving that the present invention has not only allocative efficiency, and the advantages such as stability and high efficiency.
Accompanying drawing explanation
Fig. 1 is the structural representation of the device address configuration device of the present invention;
Fig. 2 is the program flow diagram of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing and the embodiment that is given, the present invention is further illustrated, but is not limited thereto.
As shown in Figure 1, 2, a kind of MVB device address collocation method, device is configured including device address, described device address configuration device includes MVB board 2, and the master board 1 electrically connected with equipment, described master board 1 includes that master controller 1-1, memory module 1-2 and communication module 1-3, described memory module 1-2 and communication module 1-3 electrically connect with master controller 1-1 respectively, and described MVB board 2 is electrically connected with master controller 1-1 by communication module 1-3;Described device address configuration device also includes that multichannel toggle switch 3, described multichannel toggle switch 3 electrically connect with master controller 1-1;Comprising the concrete steps that of its device address configuration:
Step a, arranged by described multichannel toggle switch 3 device address M1, the most described master controller 1-1 read multichannel toggle switch 3 arrange device address M1;
Step b, described memory module 1-2 have device address M2, the most described master controller 1-1 in advance and read the device address M2 of memory module 1-2 storage;
The information content of step c, the information content of the described master controller 1-1 device address M1 to reading and device address M2 compares:
If the information content of step c1 device address M1 is identical with the information content of device address M2, the most described master controller 1-1 reads the device address M3 that MVB board 2 has in advance;By described master controller 1-1, the information content of the information content of device address M1 or the information content of device address M2 with device address M3 is compared, if it is identical, the most described MVB board 2 is without reconfiguring device address, equipment starts properly functioning, if different, the information content of device address M1 or the information content of device address M2 are configured in MVB board 2 by the most described master controller 1-1;
If the information content of step c2 device address M1 differs with the information content of device address M2, the information content of device address M1 is directly configured in MVB board 2 by the most described master controller 1-1;
In step c3, described step c1 and step c2, the communications protocol between described MVB board 2 and master board 1 is the TCN RTP message data management agreement of uneven transmission based on EN60870 serial communication host-host protocol;
Step d, inspection device address configure the most successful, if device address configuration successful, then equipment starts properly functioning, if device address configuration failure, then re-execute device address configuration.
In step d of the present invention during device address configuration failure number of times >=3, described master controller 1-1 report an error, and point out artificial treatment.
Communication module 1-3 of the present invention is serial RS485 communication module, or serial RS232 communication module.
The MVB device address collocation method of the present invention, the method namely carrying out address configuration for the equipment being connected with master board 1.MVB board 2 of the present invention is inserted in master board 1, and described MVB board 2 is connected with master board 1 communication by communication module 1-3;MVB board 2 is the carrier of the device address information content, and it can be directly connected to wagon control network system interaction data and instruction.When equipment normally works, described master controller 1-1 and MVB board 2 interaction data and the order from vehicle control system, its agreement is the TCN RTP process data management agreement of uneven transmission based on EN60870 serial communication host-host protocol.When configuring in device address, described master controller 1-1 reads device address information from MVB board 2 by the way of communication or by device address information configuration to MVB board 2, communications protocol is the TCN RTP message data management agreement of uneven transmission based on EN60870 serial communication host-host protocol.
Memory module 1-2 of the present invention is also used for storing the address information content of current device in addition to the service data of storage device, its role is to change MVB board 2 in the case of multichannel toggle switch 3 not variation, the device address information of the device address information read from MVB board 2 with the storage of memory module 1-2 can be contrasted by master controller 1-1, if it find that both do not mate, then can be automatically by the device address information configuration of storage to the new MVB board 2 changed, therefore, described MVB board just can be exchanged, and without configuring MVB board either manually or by host computer again.
Master controller 1-1 of the present invention can be the types of electronic devices such as DSP, single-chip microcomputer, FPGA or CPLD;Described memory module 1-2 uses nonvolatile memory, preferably Nonvolatile ferroelectric medium read-write memory FRAM, and such as the model of Ramtron company of U.S. production be FM25C160 or model is the memory module of FM25V02;Described MVB board 2 can select SAIRA
The MVB board that model is MVBRSG-EMD-000 or model is MVBRSG-ESO-000 that ELECTRONICS company produces;Described multichannel toggle switch 3 can select the 4 passage toggle switch 78RB04ST or the multichannel toggle switch of 8 passage toggle switch 78RB08ST that Grayhill company of the U.S. produces.
Present invention have the advantage that first, to change the device address of equipment, only need to change multichannel toggle switch during device powers down, it is no longer necessary to additionally MVB board being carried out manual configuration, when equipment is once again powered up, system can be automatically performed the configuration of device address;Second, such as MVB board to be changed, after having changed, also it is no longer necessary to additionally MVB board be carried out the configuration of device address, such MVB board just can be general;3rd, when the master controller of the present invention and the mutual communication of MVB board, employ the TCN RTP message data management agreement of uneven transmission based on EN60870 serial communication host-host protocol, stability and high efficiency.It is high, time saving and energy saving that the present invention has not only allocative efficiency, and the advantages such as stability and high efficiency.