The utility model content
To the above-mentioned defective of prior art, the utility model embodiment provides a kind of RS422-CAN communication gate and rail vehicle control system.
The utility model provides a kind of RS422-CAN communication gate on the one hand, comprising:
According to the RS422-CAN translation-protocol form of the data-signal that receives is carried out the C8051F040 processor from the source protocol form to the target protocol format conversion, the CAN interface module of handling the RS422 interface module of mutual RS422 data-signal between said C8051F040 processor and the terminal equipment and handling mutual CAN data-signal between said C8051F040 processor and the control centre;
Wherein, said C8051F040 processor links to each other with said CAN interface module with said RS422 interface module respectively.
Aforesaid RS422-CAN communication gate also comprises:
Said CAN data-signal is carried out the photoelectricity isolating interface module of opto-electronic conversion, and said photoelectricity isolating interface module links to each other with said CAN interface module with said C8051F040 processor respectively.
Aforesaid RS422-CAN communication gate also comprises:
Said RS422 data-signal is carried out the photoelectricity isolating interface module of opto-electronic conversion, and said photoelectricity isolating interface module links to each other with said RS422 interface module with said C8051F040 processor respectively.
Aforesaid RS422-CAN communication gate also comprises:
Power module; Said power module carries out change in voltage to said photoelectricity isolating interface module for power supply through integrated circuit ZUS152405 module, and said ZUS152405 module is carried out change in voltage through integrated circuit AS1115M3 module and supplied power to said C8051F040 processor.
The utility model provides a kind of rail vehicle control system on the other hand, comprising:
Aforesaid RS422-CAN communication gate, and control centre and at least two terminal equipments, wherein, said RS422-CAN communication gate links to each other with the CAN bus with said terminal equipment respectively, and said CAN bus links to each other with said control centre.
RS422-CAN communication gate that the utility model provides and rail vehicle control system; According to the RS422-CAN translation-protocol RS422 data-signal or the CAN data-signal that receives converted to corresponding CAN data-signal or RS422 data-signal through the RS422-CAN communication gate; And outwards send through the interface of correspondence; Realized that control centre controls each terminal equipment in the rail vehicle based on the CAN bus; Avoided the drawback of many holding wires, improved the reliability and the flexibility of communication, and practiced thrift cost.
Embodiment
Fig. 1 is the structural representation of an embodiment of the utility model RS422-CAN communication gate, and is as shown in Figure 1, and this gateway comprises:
According to the RS422-CAN translation-protocol form of the data-signal that receives is carried out the C8051F040 processor 11 from the source protocol form to the target protocol format conversion; Handle RS 422 interface modules 12 of mutual RS422 data-signal between C8051F040 processor 11 and the terminal equipment, and the CAN interface module 13 of handling mutual CAN data-signal between C8051F 040 processor 11 and the control centre; Wherein, C8051F040 processor 11 links to each other with CAN interface module 13 with RS422 interface module 12 respectively.
Particularly, control centre (Controller Area Network, CAN) agreement can be monitored all terminal equipments that are articulated on the CAN bus based on controller local area network.The CAN bus has high transfer rate, and the message transmission rate up to 1Mbit/s can be provided within 40 meters, makes that therefore control becomes very easy in real time; The CAN bus has automatic error detection mechanism and automatic retransmitting function; Terminal equipment can withdraw from bus when mistake is serious, make network performance by bad node influence, and the CAN bus can the dynamic load node; Make whole system to shut down, can significantly reduce the loss of shutdown for single node.
Particularly, the kernel of C8051F040 processor 11 adopts the CIP-51 microcontroller, and it and MCS-51 instruction set are compatible fully, can use standard 803x/805x assembler and compiler to carry out software development.The CIP-51 kernel has all external components of standard 8052; Comprise counter/timer of 5 14, the I/O port of two full duplex UART serial line interfaces, 256 byte inner RAM, 128 byte special function register address spaces and 88 bit wides; Battery module; Timer; C8051F040 processor 11 links to each other with RS422 interface module 12 through UART1, and links to each other with CAN interface module 13 through UART2, wherein; The serial ports receiving terminal RX1 of UART1 links to each other with transmission interface circuit in the RS422 interface module 12 on the C8051F040 processor 11, the RS422 data-signal that C8051F040 processor 11 sends through the transmission interface circuit in the RS422 interface module 12 through the RX1 receiving terminal apparatus.The format conversion of the RS422 data-signal that the RS422-CAN translation-protocol that C8051F040 processor 11 embeds according to inside will receive through RX1 becomes the form of the CAN data-signal of correspondence; The last serial ports transmitting terminal TX2 of UART2 links to each other with receiving interface circuit in the CAN interface module 13, and the control centre that links to each other with the CAN bus receives the CAN data-signal that C8051F040 processor 11 sends through TX2 through the receiving interface circuit in the CAN interface module 13.The serial ports receiving terminal RX2 of UART2 links to each other with transmission interface circuit in the CAN interface module 13 on the C8051F040 processor 11; C8051F040 processor 11 receives the CAN data-signal that control centre sends through the transmission interface circuit in the CAN interface module 13 through RX2, and the format conversion of the CAN data-signal that C8051F040 processor 11 will receive through RX2 according to the RS422-CAN translation-protocol becomes the form of the RS422 data-signal of correspondence; The last serial ports transmitting terminal TX2 of UART2 links to each other with receiving interface circuit in the RS422 interface module 12, and terminal equipment receives C8051F040 through the receiving interface circuit in the RS422 interface module 12 and handles the RS422 data-signal that 1 device 11 sends through TX2.In above-mentioned concrete implementation process, C8051F040 processor 11 is monitored through dongle, so that executive program occurs the RS422-CAN communication gate being carried out automatic electrification reset when wrong, makes the gateway working stability reliable.
The RS422-CAN communication gate that present embodiment provides; According to the RS422-CAN translation-protocol RS422 data-signal or the CAN data-signal that receives converted to corresponding CAN data-signal or RS422 data-signal through the RS422-CAN communication gate; And outwards send through the interface of correspondence, realized that control centre controls each terminal equipment in the rail vehicle based on the CAN bus, avoided the drawback of many holding wires; Improve the reliability and the flexibility of communication, and practiced thrift cost.
Fig. 2 is the structural representation of another embodiment of the utility model RS422-CAN communication gate; As shown in Figure 2; Based on shown in Figure 1; This gateway also comprises: CAN data-signal and RS422 data-signal are carried out the photoelectricity isolating interface module 14 of opto-electronic conversion, and C8051F040 processor 11 links to each other with RS422 interface module 12 with CAN interface module 13 respectively through photoelectricity isolating interface module 14.
Since inevitably will long line transmission between measure and control device and the tested electronic installation, signal is vulnerable to disturb in transmission course very much, causes transmission signals to take place to distort or distortion; In addition, between the device of the apart from each other that connects through longer cable,, cause the ground loop current, circuit is formed common mode disturbance voltage often because of the ground wire potential difference between device.For guaranteeing the reliability of long line transmission, can adopt photoelectricity coupling quarantine measures, being electrically connected of two circuit separated, the loop that cut-out possibly form makes them separate, improves the interference free performance of Circuits System.
The realization principle of photoelectricity isolating interface module 14 fits together and is encapsulated in composition in the shell to light-emitting diode and phototriode.The light-emitting diode two ends are signal input part, and the phototriode collector and emitter is respectively as the output of photoelectrical coupler, and the signal transmission between them is to lean on light-emitting diode luminous under the control of signal voltage, pass to that phototriode accomplishes.When the signal of telecommunication was sent into the input of photoelectrical coupler, and luminous, light-sensitive element produced electric current after receiving illumination to light-emitting diode, circuit turn-on through electric current.When the input no signal, light-emitting diode does not work, and phototriode ends, and circuit ends.
Because photoelectricity isolating interface module 14 is sealed in the pipe fully, or by the press mold Plastic Package, so can not receive the interference of ambient light.Wherein, the resistance of light-emitting diode is very little, and the internal resistance of interference source is generally very big, and the interference signal that can be sent to the input of photoelectricity isolating interface module 14 just becomes very little; There is not electrical equipment to get in touch between the input circuit of photoelectricity isolating interface module 14 and the output loop; Between the electric capacity that distributes minimum and insulation resistance is very big; Therefore the various interference noises of loop one end all are difficult to pass to the other end, have avoided the generation of the interference signal of common-impedance coupling; The response speed of photoelectricity isolating interface module 14 is exceedingly fast, and its response time has only about 10 μ s, is suitable for the exigent occasion of response speed.
The RS422-CAN communication gate that present embodiment provides; Through photoelectricity isolating interface module data signals transmitted being carried out photoelectricity handles; Realized in transmission of data signals, suppressing spike and various noise jamming effectively, improved the antijamming capability of system.
Fig. 3 is the structural representation of another embodiment of the utility model RS422-CAN communication gate; As shown in Figure 2; Based on shown in Figure 1; This gateway also comprises: power module 15, power module 15 carries out change in voltage to 14 power supplies of photoelectricity isolating interface module through integrated circuit ZUS152405 module 16, and ZUS152405 module 16 is carried out change in voltage to 11 power supplies of C8051F040 processor through integrated circuit AS1115M3 module 17.
Preferably; Power module 15 external DC24V power supplys; Being converted into DC5V through integrated circuit ZUS152405 module 16 is 14 power supplies of photoelectricity isolating interface module; To be DC5V be converted into DC3.3V through integrated circuit AS1115M3 module 17 to ZUS152405 module 16 is 11 power supplies of C8051F040 processor, thereby the power supply in the C8051F040 processor 11 can be used as stand-by power supply.
Fig. 4 is the structural representation of an embodiment of the utility model rail vehicle control system; As shown in Figure 4; This system comprises: RS422-CAN communication gate 1; And control centre 2 and at least two terminal equipments 3, wherein, RS422-CAN communication gate 1 links to each other with control centre 2 with terminal equipment 3 respectively.Wherein, the RS422-CAN communication gate that RS422-CAN communication gate 1 can provide for the utility model embodiment, terminal equipment 3 is terminal equipment and a control centre related among the utility model embodiment with control centre 2.
The function and the handling process of each device can repeat no more referring to said apparatus embodiment here in the rail vehicle control system that present embodiment provides.
The rail vehicle control system that present embodiment provides; According to the RS422-CAN translation-protocol RS422 data-signal or the CAN data-signal that receives converted to corresponding CAN data-signal or RS422 data-signal through the RS422-CAN communication gate; And outwards send through the interface of correspondence, realized that control centre controls each terminal equipment in the rail vehicle based on the CAN bus, avoided the drawback of many holding wires; Improve the reliability and the flexibility of communication, and practiced thrift cost.
What should explain at last is: above embodiment is only in order to the technical scheme of explanation the utility model, but not to its restriction; Although the utility model has been carried out detailed explanation with reference to previous embodiment; Those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of each embodiment technical scheme of essence disengaging the utility model of relevant art scheme.