Background technology
The LONWORKS Control Network is one of current comparatively popular fieldbus, and it is to be released and advocated jointly with Motorola, Toshiba company by U.S. Echelon company, forms in formal announcements in 1992.Its network chip Neuron chip is integrated (the International Standard Organization of International Standards Organization; Be called for short ISO)/Open Systems Interconnection (Open System Interconnection; Abbreviation OSI) whole seven layer protocols have communication and controlled function simultaneously, and 34 kinds of common I/O (Input/Output are provided; Be called for short I/O) controlling object, operating temperature range wide (40 ℃~85 ℃).
The signal transmission medium of LONWORKS Control Network can be twisted-pair feeder, power line, wireless, infrared ray, optical cable; Network topology forms such as supporting bus type, ring-like, free topological type; Network transceivers has direct driving, EIA-422 type, three kinds of forms of transformer coupled interface; Satisfied demands of different, transmission signals adopts Differential Manchester Encoding simultaneously, makes network have very strong antijamming capability.Direct communication distance when employing twisted-pair feeder, baud rate are the communication network of 78 bits per seconds (bps) can reach 2700 meters (m), adds the hardware supports that it is powerful, makes to be easy in certain spatial dimension, constitute the various system of function.
Medium accesses control (the Media Access Control of LONWORKS Control Network; Be called for short MAC) adopted measurable P to adhere to (Predictive P-Persistent) Carrier Sense Multiple Access (Carrier Sense Multiple Access; Be called for short CSMA), make when network overload, still to keep very high throughput; Network configuration can adopt master-slave mode and to equality.Have development of equipments, debugging and erection units such as supporting node, router, gateway, integrated development environment makes that the developing and debugging of system is simple, can realize the off-line of network, online design, on-line debugging or the remote debugging through IP network.
Object Oriented method has been adopted in the network service of LONWORKS Control Network, need not take time during application programming and consider the loaded down with trivial details programming of communications portion; And it has integrated development environment, is easy to exploitation, installs and debugging.
Just because of the above-mentioned advantage of LONWORKS Control Network, a lot of network equipments all have been equipped with the LONWORKS EBI.In addition, the RS422 interface also is a common interfaces of the network equipment.But, also can't realize the intercommunication of LONWORKS EBI and RS422 interface in the prior art.
The utility model content
The utility model embodiment provides a kind of gateway, is used to realize the intercommunication of LONWORKS EBI and RS422 interface.
The utility model embodiment provides a kind of gateway, comprising:
Be used to connect the LONWORKS EBI of outside LONWORKS bus;
Be used for the transceiver of protocol conversion and signal format conversion, be connected with said LONWORKS EBI;
Be used for the RS422 interface of electrical characteristic conversion, be connected with said transceiver.
Also comprise: memory is connected with said transceiver.
Said gateway also comprises:
The RS232 interface that is used for serial monitoring and data configuration is connected with said transceiver.
Said RS422 interface specifically comprises:
The electrical isolation circuit is connected with said transceiver;
The RS422 protocol controller is connected with said buffer circuit;
The RS422 connector is connected with said RS422 protocol controller.
Said LONWORKS EBI comprises chip FT-X2, and the pin one of said chip FT-X2 is connected outside LONWORKS bus with pin two;
Said transceiver comprises chip FT3150, and the pin two 8 of said chip FT3150 connects the pin 5 of said chip FT-X2, and the pin two 9 of said chip FT3150 connects the pin 6 of said chip FT-X2;
Said electrical isolation circuit comprises two optical coupler HCPL-0661, and the pin 4 of one of them optical coupler HCPL-0661 connects the pin one 6 of said chip FT3150, and the pin 6 of another optical coupler HCPL-0661 connects the pin one 4 of said chip FT3150;
Said RS422 protocol controller comprises chip MAX488, and the pin 3 of said chip MAX488 connects the pin 6 of a said optical coupler HCPL-0661, and the pin two of said chip MAX488 connects the pin 4 of said another optical coupler HCPL-0661;
Said RS422 connector comprises connector J390, and the pin two of said connector J390 is connected with the pin 7,8 of said chip MAX488 respectively, and the pin 4 of said connector J390 is connected with the pin 5,6 of said chip MAX488 respectively.
Said memory comprises chip 29C512; The data wire pin of said chip 29C512 is connected with the address wire pin with the data wire pin of said chip FT3150 with the address wire pin, and the write signal of said chip 29C512, enable signal, chip selection signal pin are connected with read-write, enable signal, the address signal pin of said chip FT3150 respectively.
Said RS232 interface specifically comprises:
Chip MAX232, the pin one 2 of said chip MAX232 connects the pin two of said chip FT3150, and the pin one 1 of said chip MAX232 connects the pin 3 of said chip FT3150;
Serial ports RS232, the pin two of said serial ports RS232 connect the pin one 3 of said chip MAX232, and the pin 3 of said serial ports RS232 connects the pin one 4 of said chip MAX232.
Said transceiver also comprises:
The chip DS1233Z-5 that is used to monitor, the reseting pin of said chip DS1233Z-5 is connected with the reseting pin of said chip FT3150;
Memory interface circuit is connected with the power pin of said chip FT3150;
The data acquisition interface circuit is connected with clock pin, service pin, the reseting pin of said chip FT3150.
Said LONWORKS EBI also comprises: eight diode BAV99, and wherein four diode BAV99 connect the pin 5 and pin 6 of said chip FT-X2 respectively, and four diode BAV99 connect pin one and the pin two of said chip FT-X2 respectively in addition.
The utility model embodiment has adopted through the RS422 interface circuit and has carried out electrical characteristic conversion between RS422 signal and the RS422 physical signalling; Through the technological means that transceiver carries out protocol conversion and the signal format conversion between RS422 signal and the LONWORKS bus signals, can realize transmitting the intercommunication of LONWORKS EBI with the RS422 interface that transmits the RS422 physical signalling of LONWORKS bus signals.
Embodiment
For the purpose, technical scheme and the advantage that make the utility model embodiment clearer; To combine the accompanying drawing among the utility model embodiment below; Technical scheme among the utility model embodiment is carried out clear, intactly description; Obviously, described embodiment is the utility model part embodiment, rather than whole embodiment.Based on the embodiment in the utility model, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the utility model protection.
The structural representation of a kind of gateway that Fig. 1 provides for the utility model embodiment three.As shown in Figure 1, this gateway comprises:
Be used to connect the LONWORKS EBI 31 of outside LONWORKS bus;
Be used for the transceiver 32 of protocol conversion and signal format conversion, be connected with LONWORKS EBI 31;
Be used for the RS422 interface 33 of electrical characteristic conversion, be connected with transceiver 32.
Particularly, this gateway can connect outside LONWORKS bus through inner LONWORKS EBI 31, and is connected to outside LONWORKS EBI through outside LONWORKS bus.Gateway can also connect outside RS422 interface through inner RS422 interface 33.
When RS422 interface 33 received outside RS422 physical signalling, 33 pairs of said RS422 physical signallings of RS422 interface carried out the electrical characteristic conversion, generate the RS422 signal; 32 pairs of said RS422 signals of transceiver carry out protocol conversion and signal format conversion, generate the LONWORKS bus signals; LONWORKS EBI 31 sends to the LONWORKS bus signals on the outside LONWORKS bus.
Here; The RS422 physical signalling is the signal that satisfies the RS422 physical electric performance, and the agreement of LONWORKS bus signals and RS422 signal is all different with signal format, particularly; The LONWORKS bus signals is followed the LonTalk agreement, and the RS422 signal is followed the agreement of application layer.The said LONWORKS bus signals that the conversion back generates carries and the same information of said RS422 signal.
When LONWORKS EBI 3 received the LONWORKS bus signals of outside LONWORKS bus transmission, 32 pairs of said LONWORKS bus signals of transceiver carried out protocol conversion and signal format conversion, generate the RS422 signal; 33 pairs of said RS422 signals of RS422 interface carry out the electrical characteristic conversion, generate the RS422 physical signalling, and send.
Here, the said RS422 signaling bearer and the same information of said LONWORKS bus signals of the generation of conversion back.
In order to preserve the dynamic data that transceiver 32 produces when carrying out the conversion of protocol conversion and signal format, in one of the utility model optional embodiment, this gateway also comprises: memory 34 is connected with transceiver 32.
For gateway is monitored and data configuration, in the another optional embodiment of the utility model, this gateway also comprises:
The RS232 interface 35 that is used for serial monitoring and data configuration is connected with transceiver 32.
Particularly, gateway can be connected to management server through RS232 interface 35, and the keeper can carry out data configuration to gateway through management server, and its operating state is monitored, and in time finds fault.
In the another optional embodiment of the utility model, RS422 interface 33 specifically comprises:
The electrical isolation circuit is connected with transceiver 32;
The RS422 protocol controller is connected with said buffer circuit;
The RS422 connector is connected with said RS422 protocol controller.
In the practical application, the above-mentioned part of gateway has multiple way of realization respectively.For instance; The LONWORKS EBI adopts chip FT-X2 chip to realize, transceiver adopts chip FT3150 realization etc., and the electrical isolation circuit adopts optical coupler HCPL-0661 to realize; The RS422 protocol controller adopts chip MAX488 to realize, the RS422 connector adopts connector J390 to realize.
Particularly, LONWORKS EBI 31 comprises chip FT-X2, and the pin one of said chip FT-X2 is connected outside LONWORKS bus with pin two;
Transceiver 32 comprises chip FT3150, and the pin two 8 of said chip FT3150 connects the pin 5 of said chip FT-X2, and the pin two 9 of said chip FT3150 connects the pin 6 of said chip FT-X2;
Said electrical isolation circuit comprises two optical coupler HCPL-0661, and the pin 4 of one of them optical coupler HCPL-0661 connects the pin one 6 of said chip FT3150, and the pin 6 of another optical coupler HCPL-0661 connects the pin one 4 of said chip FT3150;
Said RS422 protocol controller comprises chip MAX488, and the pin 3 of said chip MAX488 connects the pin 6 of a said optical coupler HCPL-0661, and the pin two of said chip MAX488 connects the pin 4 of said another optical coupler HCPL-0661;
Said RS422 connector comprises connector J390, and the pin two of said connector J390 is connected with the pin 7,8 of said chip MAX488 respectively, and the pin 4,5 of said connector J390 is connected with the pin 5 of said chip MAX488 respectively.
LONWORKS EBI 31 can also comprise:
Eight diode BAV99, wherein four diode BAV99 connect the pin 5 and pin 6 of said chip FT-X2 respectively, and four diode BAV99 connect pin one and the pin two of said chip FT-X2 respectively in addition.
Transceiver 32 can also comprise:
The chip DS1233Z-5 that is used to monitor, the reseting pin of said chip DS1233Z-5 is connected with the reseting pin of said chip FT3150;
Memory interface circuit is connected with the power pin of said chip FT3150;
The data acquisition interface circuit is connected with clock pin, service pin, the reseting pin of said chip FT3150.
Memory 34 comprises chip 29C512; The data wire pin of said chip 29C512 is connected with the address wire pin with the data wire pin of said chip FT3150 with the address wire pin, and the write signal of said chip 29C512, enable signal, chip selection signal pin are connected with read-write, enable signal, the address signal pin of said chip FT3150 respectively.
RS232 interface 35 specifically comprises:
Chip MAX232, the pin one 2 of said chip MAX232 connects the pin two of said chip FT3150, and the pin one 1 of said chip MAX232 connects the pin 3 of said chip FT3150;
Serial ports RS232, the pin two of said serial ports RS232 connect the pin one 3 of said chip MAX232, and the pin 3 of said serial ports RS232 connects the pin one 4 of said chip MAX232.
Fig. 2 is a kind of circuit diagram of LONWORKS EBI; Fig. 3 is a kind of circuit diagram of transceiver; Fig. 4 is a kind of circuit diagram of RS422 interface; Fig. 5 is a kind of circuit diagram of memory; Fig. 6 is a kind of circuit diagram of RS232 interface.
Shown in Fig. 2~6; Pin one 4 and the pin one 6 of FT3150; As the Data Receiving and the data transmitting pin of serial communication, the pin one 4 of FT3150 is connected to the pin 6 of optical coupler HCPL-0661, and the data on the universal serial bus receive through the pin two of connector J390; Be processed into the RS422 signal of the electrical characteristic that satisfies FT3150 through the MAX488 inner transformation, deliver to FT3150 by the pin two of MAX488 through optical coupler HCPL-0661 and handle; The pin one 6 of FT3150 is connected to the pin 4 of another optical coupler HCPL-0661; Serial ports sends data and sends to the pin 4 of another optical coupler HCPL-0661 through the pin one 6 of FT3150, becomes to satisfy that the pin 4 through connector J390 sends behind the electrical characteristic signal of demand on the actual serial ports physical bus through MAX488 chip internal conversion process.
FT-X2 is the communication transformer of LONWORKS EBI, in order to improve the bus Electro Magnetic Compatibility, can also add additional device BAV99, electric capacity, the piezo-resistance that prevents overtension on the bus on the communication line.
FT3150 also can accomplish simple data acquisition function as processor simultaneously except satisfying basic LONWORKS communication need, and the periphery of FT3150 mainly comprises monitoring chip DS1233Z-5, memory interface, data acquisition interface etc.DS1233Z-5 is used for monitoring power voltage, and FT3150 resets after supply voltage is lower than the certain amplitude of FT3150 supply power voltage.
The data wire pin of 29C512 directly is connected with the address wire pin with the corresponding data wire pin of FT3150 with the address wire pin; The pin 31 of 29C512, pin two 4, pin two 2 are respectively write signal, enable signal, chip selection signal, and the logical relation of these signals is based on that logic OR and the non-conversion of logical AND of the read-write of FT3150, enable signal, address signal come out.
Chip MAX488 accomplishes the RS422 link layer functionality, supports the TIA/EIA-422-A standard; The electrical isolation circuit is a core with optical coupler HCPL-0661, and differential signal carried out electrical isolation.The RS422 interface carries out electric signal through the electrical isolation circuit and isolates adjustment, transforms electric differential signal through the RS422 protocol controller again, and the RS422 network is operated
In the another optional embodiment of the utility model, gateway (being also referred to as integrated circuit board) comprises one road RS232 interface, LONWORKS EBI, memory, LONWORKS smart transceiver (being transceiver 32) and 6 road RS422 interfaces.Running state information when one road RS232 interface is used for the monitor board card start-up with work, configuration integrated circuit board operational factor.Memory is used for integrated circuit board and deposits the operation configuration parameter.This integrated circuit board has the LONWORKS EBI, and communications protocol is LonTalk.The LONWORKS smart transceiver of this integrated circuit board simultaneously also can be as processor except satisfying basic LONWORKS communication need.
The utility model embodiment has adopted through the RS422 interface and has carried out electrical characteristic conversion between RS422 signal and the RS422 physical signalling; Through the technological means that transceiver carries out protocol conversion and the signal format conversion between RS422 signal and the LONWORKS bus signals, can realize transmitting the intercommunication of LONWORKS EBI with the RS422 interface that transmits the RS422 physical signalling of LONWORKS bus signals.
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 scope of each embodiment technical scheme of essence disengaging the utility model of relevant art scheme.