Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The schematic flow sheet of a kind of signal processing method that Fig. 1 provides for the embodiment of the invention one.As shown in Figure 1, the method comprises:
The LONWORKS bus signals that step 101, the outside LONWORKS bus of reception are transmitted;
For instance, the gateway that provides of the embodiment of the invention receives the LONWORKS bus signals that outside LONWORKS bus is transmitted.Particularly, this gateway can connect by the LONWORKS bus interface of inside outside LONWORKS bus, and is connected to outside LONWORKS bus interface by outside LONWORKS bus.
Step 102, described LONWORKS bus signals is carried out protocol conversion and Signal form translate, generate the RS485 signal;
The agreement of LONWORKS bus signals and RS485 signal is all different with signal format, and particularly, the LONWORKS bus signals is followed the LonTalk agreement, and the RS485 signal is followed the agreement of application layer.The information that the described RS485 signaling bearer that step 102 generates and described LONWORKS bus signals are same.
Step 103, described RS485 signal is carried out electrical characteristic conversion, generate the RS485 physical signalling, and send.
The RS485 physical signalling here is the signal that satisfies the RS485 physical electric performance.Particularly, gateway can send to outside RS485 interface with the RS485 physical signalling by the RS485 interface of inside.
The embodiment of the invention has adopted carries out protocol conversion and Signal form translate generation RS485 signal to the LONWORKS bus signals, the RS485 signal is carried out the technological means that the electrical characteristic conversion generates the RS485 physical signalling, can realize transmitting the LONWORKS bus interface of LONWORKS bus signals and the intercommunication of transmitting the RS485 interface of RS485 physical signalling.
The schematic flow sheet of a kind of signal processing method that Fig. 2 provides for the embodiment of the invention two.As shown in Figure 2, the method comprises:
Step 201, the outside RS485 physical signalling of reception carry out the electrical characteristic conversion to described RS485 physical signalling, generate the RS485 signal;
For instance, the gateway that provides of the embodiment of the invention receives outside RS485 physical signalling.Particularly, this gateway can connect outside RS485 interface by inner RS485 interface, and receives the RS485 physical signalling that outside RS485 interface sends.
Step 202, described RS485 signal is carried out protocol conversion and Signal form translate, generate the LONWORKS bus signals;
The agreement of LONWORKS bus signals and RS485 signal is all different with signal format, and particularly, the LONWORKS bus signals is followed the LonTalk agreement, and the RS485 signal is followed the agreement of application layer.The described LONWORKS bus signals carrying information same with described RS485 signal that step 102 generates.
Step 203, the LONWORKS bus signals is sent on the outside LONWORKS bus.
Particularly, gateway can send to the LONWORKS bus signals on the outside LONWORKS bus by the LONWORKS bus interface of inside.Usually, outside LONWORK bus also connects outside LONWORKS bus interface.
The embodiment of the invention has adopted carries out the electrical characteristic conversion to the RS485 physical signalling, generate the RS485 signal, the RS485 signal is carried out the technological means that protocol conversion and Signal form translate generate the LONWORKS bus signals, can realize transmitting the LONWORKS bus interface of LONWORKS bus signals and the intercommunication of transmitting the RS485 interface of RS485 physical signalling.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The structural representation of a kind of gateway that Fig. 3 provides for the embodiment of the invention three.As shown in Figure 3, this gateway comprises:
Be used for connecting the LONWORKS bus interface 31 of outside LONWORKS bus;
Be used for the transceiver 32 of protocol conversion and Signal form translate, be connected with LONWORKS bus interface 31;
Be used for the RS485 interface 33 of electrical characteristic conversion, be connected with transceiver 32.
The dynamic data that produces when carrying out protocol conversion and Signal form translate in order to preserve transceiver 32, in an optional embodiment of the present invention, this gateway also comprises: memory 34 is connected with transceiver 32.
For gateway is monitored and data configuration, in another alternative embodiment of the present invention, this gateway also comprises:
Be used for the RS232 interface 35 of serial monitoring and data configuration, be connected with transceiver 32.
Particularly, gateway can be connected to management server by RS232 interface 35, and the keeper can carry out data configuration to gateway by management server, and its operating state is monitored, and in time finds fault.
In another alternative embodiment of the present invention, RS485 interface 33 specifically comprises:
The logical signal translation circuit is connected with transceiver 32;
Be used for the interface circuit of electrical characteristic conversion and electrical isolation, be connected with the logical signal translation circuit;
The signal protection circuit is connected with described interface circuit.
In the practical application, the above-mentioned part of gateway has respectively multiple way of realization.For instance; the LONWORKS bus interface adopts chip FT-X2 chip to realize, transceiver adopts chip FT3150 realization etc., and the logical signal translation circuit adopts chip 74ABT04D to realize; interface circuit adopts chip MAX1480 to realize, the signal protection circuit adopts two diode P6KE15CA to realize.
Particularly, LONWORKS bus interface 31 comprises chip FT-X2, and the pin one of described chip FT-X2 is connected outside LONWORKS bus with pin two;
Transceiver 32 comprises chip FT3150, and the pin two 8 of described chip FT3150 connects the pin 5 of described chip FT-X2, and the pin two 9 of described chip FT3150 connects the pin 6 of described chip FT-X2;
Described logical signal translation circuit comprises chip 74ABT04D, the pin one of described chip 74ABT04D connects the pin one 6 of described chip FT3150, the pin 8 of described chip 74ABT04D connects the pin one 4 of described chip FT3150, and the pin 5 of described chip 74ABT04D connects the pin 4 of described chip FT3150;
Described interface circuit comprises chip MAX1480, the pin 9 of described chip MAX1480 connects the pin 4 of described chip 74ABT04D, the pin one 1 of described chip MAX1480 connects the pin 6 of described chip 74ABT04D, and the pin one 3 of described chip MAX1480 connects the pin 9 of described chip 74ABT04D;
Described signal protection circuit comprises two diode P6KE15CA; the anode of described two diode P6KE15CA all connects pin two 0 and the supervisor 16 of described chip MAX1480 by resistance; the negative electrode of one of them diode P6KE15CA connects the pin two 5 of described chip MAX1480 by resistance, and the negative electrode of another diode P6KE15CA connects the pin two 3 of described chip MAX1480 by resistance.
LONWORKS bus interface 31 can also comprise:
Eight diode BAV99, wherein four diode BAV99 connect respectively pin 5 and the pin 6 of described chip FT-X2, and four diode BAV99 connect respectively pin one and the pin two of described chip FT-X2 in addition.
Transceiver 32 can also comprise:
Be used for the chip DS1233Z-5 of monitoring, the reseting pin of described chip DS1233Z-5 is connected with the reseting pin of described chip FT3150;
Memory interface circuit is connected with the power pin of described chip FT3150;
The data acquisition interface circuit is connected with clock pins, service pin, the reseting pin of described chip FT3150.
Memory 34 comprises chip 29C512, the data wire pin of described chip 29C512 is connected with the address wire pin with the data wire pin of described chip FT3150 with the address wire pin, and the write signal of described chip 29C512, enable signal, chip selection signal pin are connected with read-write, enable signal, the address signal pin of described chip FT3150 respectively.
RS232 interface 35 specifically comprises:
Chip MAX232, the pin one 2 of described chip MAX232 connects the pin two of described chip FT3150, and the pin one 1 of described chip MAX232 connects the pin 3 of described chip FT3150;
Serial ports RS232, the pin two of described serial ports RS232 connect the pin one 3 of described chip MAX232, and the pin 3 of described serial ports RS232 connects the pin one 4 of described chip MAX232.
Fig. 4 is a kind of circuit diagram of LONWORKS bus interface; Fig. 5 is a kind of circuit diagram of transceiver; Fig. 6 is a kind of circuit diagram of RS485 interface; Fig. 7 is a kind of circuit diagram of memory; Fig. 8 is a kind of circuit diagram of RS232 interface.
Shown in Fig. 4~8, the pin one 4 of FT3150 and pin one 6, data receiver and data transmitting pin as serial communication, the pin one 4 of FT3150 is connected to the pin 8 of 74ABT04D, the pin two 3 or 25 that data communication device on the universal serial bus is crossed MAX1480 receives, be processed into the RS485 signal of the electrical characteristic that satisfies FT3150 by the MAX1480 inner transformation, deliver to FT3150 by the pin one 3 of MAX1480 through 74ABT04D and process; The pin one 6 of FT3150 is connected to the pin one of 74ABT04D, and serial ports sends data communication device and crosses the pin one that the pin one 6 of FT3150 sends to 74ABT04D, becomes to satisfy the electrical characteristic signal of demand on the actual serial ports physical bus by MAX1480 chip internal conversion process.
FT-X2 is the Telecommunication Transformers of LONWORKS bus interface, 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 at communication line.
FT3150 also can finish 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 is connected with the address wire pin and is connected with the address wire pin with the corresponding data wire pin of FT3150, 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 the logic OR of the read-write of FT3150, enable signal, address signal and the non-conversion of logical AND out.
When MAX1480 satisfies RS485 physical electrical characteristic, signal can be carried out electrical isolation, improve the noiseproof feature of gateway; P6KE15CA can suppress too high surge voltage in the signal protection circuit.
In another alternative embodiment of the present invention, gateway (being also referred to as integrated circuit board) comprises one road RS232 interface, LONWORKS bus interface, memory, LONWORKS smart transceiver (being transceiver 32) and 6 road RS485 interfaces.Running state information when one road RS232 interface is used for monitor board card start-up and 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 bus interface, 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 embodiment of the invention has adopted by the RS485 interface carries out electrical characteristic conversion between RS485 signal and the RS485 physical signalling, carry out protocol conversion between RS485 signal and the LONWORKS bus signals and the technological means of Signal form translate by transceiver, can realize transmitting the LONWORKS bus interface of LONWORKS bus signals and the intercommunication of transmitting the RS485 interface of RS485 physical signalling.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, 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 puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.