RF-485 signal converter
Technical field
the utility model relates to communication technical field, specifically RF-485 signal converter.
Background technology
Informationization is that progress of human society develops into the new stage that certain phase produces.Informationization is based upon on the advanced technology bases such as computer technology, digitizing technique and biotechnology and produces.Informationization makes the mankind obtain and transmit in faster mode more easily all civilized achievements that the mankind create.In information-based this new stage, all fields of human survival, in politics, business, even in personal lifestyle, are all to obtain, process, transmit and be assigned as basis with information.Information must be accompanied by signal, digital signal, and analog signal, unlimited signal, wire signal etc., complicated signal will become usefully must be changed, process.Carry out remote data communication for the ease of being furnished with between computer, external equipment or the intelligent instrument of various criterion serial line interface, need to carry out the mutual conversion of standard serial interface.There are at present many DA-AD digital-to-analogues, modulus conversion chip, realize the conversion to signal properties, also have a lot of interface convertors, as 232-485 transducer, its compatible RS-232, RS-485 standard, can be converted to single-ended RS-232 signal the RS-485 signal of balanced differential.
Along with social development, various radio frequency signals enter system, and for convenience of debugging, engineers wishes the mutual mutual switching device of wireless signal and widely used wire signal.But, have no now corresponding device, also have no relevant report.
Utility model content
The purpose of this utility model is to overcome the deficiencies in the prior art, provides a kind of and can realize the RF-485 signal converter that wireless signal and wire signal are changed mutually.
The purpose of this utility model is achieved through the following technical solutions: RF-485 signal converter, comprise microprocessor, power transfer module, signaling module and wireless module, described microprocessor, signaling module and wireless module are all connected with power transfer module, and wireless module is connected with microprocessor; The optical coupler that described signaling module comprises 485 interface chips and is connected with 485 interface chips, described optical coupler is connected with microprocessor.When the utility model application, access direct current, direct current is microprocessor, signaling module and wireless module power supply after power transfer module step-down, 485 signals that signaling module receiving front-end device of the present utility model sends are by 485 interface chip conversions, enter again microprocessor processes, after the complete signal of microprocessor processes, send signal to wireless module by its I/O mouth, wireless module sends wireless signal again, when the utility model application, microprocessor also can receive the signal that wireless module sends, then is sent to fore device through signaling module.
Further, described signaling module also comprises absorption circuit, described absorption circuit comprises the first electric capacity, the second electric capacity, the first voltage-stabiliser tube, the second voltage-stabiliser tube and the 3rd voltage-stabiliser tube, described 485 interface chips comprise differential input end A and differential input end B, described the first voltage-stabiliser tube negative pole is all connected on the circuit that in 485 interface chips, differential input end B is connected with the second voltage-stabiliser tube negative pole, the second voltage-stabiliser tube is anodal to be connected on the circuit that in 485 interface chips, differential input end A is connected with the 3rd voltage-stabiliser tube negative pole, described the first electric capacity and the second electric capacity all have one end ground connection, the other end of the relative earth terminal of the first electric capacity is connected on the circuit of differential input end B connection, the other end of the relative earth terminal of the second electric capacity is connected on the circuit of differential input end B connection.
In order to reduce the reflection of signal transmission on circuit, further, described signaling module also comprises the second resistance, and the two ends of the second resistance are connected with differential input end A and differential input end B respectively.
Further, described power transfer module comprises power conversion chip and the 4th electric capacity, and described the 4th electric capacity one end is connected with power conversion chip input, its other end ground connection.Wherein, the 4th electric capacity makes electric current more stable as shunt capacitance for filtering ripple.
Further, described power transfer module also comprises polar capacitor, and described polar capacitor is anodal to be connected with power conversion chip output, its minus earth.Wherein, polar capacitor can carry out charging and discharging in the time of power on circuitry and power-off, plays buffering transition, avoids energising or power-off moment electric pulse to damage chip in the utility model.Due to engineering-environment more complicated, often there are various forms of interference sources at scene, and the utility model is protected 485 bus input ends by absorption circuit.
Indicate for the ease of the operating state to power transfer module, further, described power transfer module also comprises the first resistance and light-emitting diode, after the anodal serial connection of described light-emitting diode the first resistance, be connected with the output of power conversion chip, the power output end of power transfer module is connected on the circuit between power conversion chip output and the first resistance.
Further, the chip model that described power conversion chip adopts is MPC1700.
Further, the chip model that described wireless module adopts is JRF-P20TRX4.
Further, described microprocessor adopts single-chip microcomputer.
Further, the quantity of described optical coupler is three, and three optical couplers connect one to one with RX, TX and tri-pins of RD of microprocessor respectively.
Compared with prior art, the utlity model has following beneficial effect: (1) the utility model can be converted to more common RS485 signal the radio frequency signal receiving, equally, the various signals that system is sent become RS485 signal and also can become unlimited signal by the utility model and launch, and then make the utility model can realize the mutual conversion of wireless signal to wire signal.
(2) the utility model can be used as wireless signal receiver and reflector and reaches distant signal transmission in the situation that need not connecting up and can reach farthest more than 100 meters, the utility model in application system, change and the reliability of signal transmission high, under common environmental condition, start continuously in 24 hours, the communication of system is all the time in normal condition, and overall performance has met the needs of field engineering.
Accompanying drawing explanation
Fig. 1 is structural representation of the present utility model;
Fig. 2 is the structural representation of the structural representation power transfer module of signaling module in Fig. 1;
Fig. 3 is the structural representation of power transfer module in Fig. 1.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the utility model is described in further details, but execution mode of the present utility model is not limited to this.
Embodiment 1
As shown in Figures 1 and 2, RF-485 signal converter, comprise microprocessor, power transfer module, signaling module and wireless module, microprocessor, signaling module and wireless module are all connected with power transfer module, wireless module is connected with microprocessor, and signaling module comprises 485 interface chips and optical coupler.The microprocessor of the present embodiment adopts PIC16LF1936 single-chip microcomputer, and wireless module adopts JRF-P20TRX4 chip, and 485 interface chips adopt SP3485 chip.
In the present embodiment, the quantity of optical coupler is three, be respectively the first optical coupler QC1, the second optical coupler QC2 and the 3rd optical coupler QC3, wherein, the equal ground connection of 2 pin of 3 pins of the first optical coupler QC1 and the 3rd optical coupler, 2 pins of the first optical coupler QC1 are connected with the R pin of 485 interface chips, 4 pins of the first optical coupler QC1 connect the RX pin of microprocessor, 4 pins of the first optical coupler QC1 connect power supply after also connecting the 6th resistance R 6, after 1 pin of the first optical coupler connects the 3rd resistance R 3, connect power supply.After the 1 pin contact resistance R7 of the second optical coupler QC2, connect power supply, 2 pins of the second optical coupler QC2 are connected with the RD pin of microprocessor, 4 pins of the second optical coupler QC2 connect power supply, 3 pins of the second optical coupler QC2 are connected with the RE of 485 interface chips and two pins of DE, and 3 pins of the second optical coupler QC2 also connect the rear ground connection of the 4th resistance R 4.4 pins of the 3rd optical coupler QC3 connect power supply after connecing the 8th resistance R 8,3 pins of the 3rd optical coupler QC3 are connected with the TX pin of microprocessor, 1 pin of the 3rd optical coupler QC3 is connected with the D pin of 485 interface chips, and 1 pin of the 3rd optical coupler QC3 connects power supply after also connecting the 5th resistance R 5.In the present embodiment, the 3rd resistance R 3, the 4th resistance R 4 and the 5th resistance R 5 threes' resistance should be in suitable scope, the 3rd resistance R 3, the 4th resistance R 4 and the 5th resistance R 5 threes' resistance is larger, the first optical coupler QC1, the second optical coupler QC2 and the 3rd optical coupler QC3 three's luminous tube cut-off enters saturated slow, if the 3rd resistance R 3, the 4th resistance R 4 and the 5th resistance R 5 threes' resistance is less, the first optical coupler QC1, the second optical coupler QC2 and the 3rd optical coupler QC3 three's luminous tube exits saturated slow.The VCC pin of 485 interface chips connects power supply, the VCC pin of 485 interface chips is also connected with the 3rd capacitor C 3, the 3rd capacitor C 3 connects the other end ground connection of VCC pin end relatively, the differential input end A of 485 interface chips and differential input end B are for external front device, and 485 signals that front device sends are inputted by differential input end A and differential input end B.The power supply that in the present embodiment, in signaling module, each device connects is the direct current after power transfer module step-down.
The microprocessor of the present embodiment is the core of this transducer, carries out wireless signal and 485 signal analysis transmission.485 signals are entered by differential input end A and the differential input end B of 485 interface chips, and change digital signal into by 485 interface chips, pass through the first optical coupler OC1 to microcontroller, microcontroller is controlled wireless module after processing and is sent corresponding wireless signal again.State in scan for wireless signals always after the present embodiment energising, when receiving that wireless signal enters microprocessor by wireless module, by the 3rd optical coupler QC3, more outwards transmits by 485 interface chips after microprocessor processes.The present embodiment has been realized the mutual conversion of wireless signal to wire signal, can be used as wireless signal receiver and reflector and reach distant signal transmission in the situation that need not connecting up and can reach farthest more than 100 meters, the present embodiment in application system, change and the reliability of signal transmission high.
Embodiment 2
The present embodiment has been made following further restriction on the basis of embodiment 1: the present embodiment adopts the conversion core of SP3485 chip as 485 signals, realizes the conversion of digital signal and 485 signals.The characteristic of RS-485 chip, the detection sensitivity of receiver is ± 200mV, i.e. differential input end VA-VB >=+200mV, output logic 1, VA-VB≤-200mV, output logic 0.Signal is in like manner reverse.In the site operation of application system, because communications carrier is twisted-pair feeder, its characteristic impedance is 120 Ω left and right, so when line design, the second resistance R 2 is set between differential input end A and differential input end B, the two ends of the second resistance R 2 are connected with differential input end A and differential input end B respectively, to reduce the reflection of signal transmission on circuit.The design of output circuit will fully take into account various interference on circuit and the coupling of line characteristic impedance.Due to engineering-environment more complicated, often there are various forms of interference sources at scene, so the transmission ends of 485 buses must be added with safeguard measure.In circuit design, adopt the absorption circuit of the first capacitor C 1, the second capacitor C 2, the first voltage-stabiliser tube DW1, the second voltage-stabiliser tube DW2 and the 3rd voltage-stabiliser tube DW3 composition.485 interface chips are provided with differential input end A and differential input end B, the first voltage-stabiliser tube DW1 negative pole is all connected on the circuit that in 485 interface chips, differential input end B is connected with front device with the second voltage-stabiliser tube DW2 negative pole, the second voltage-stabiliser tube DW2 is anodal to be connected on the circuit that in 485 interface chips, differential input end A is connected with front device with the 3rd voltage-stabiliser tube DW3 negative pole, the first capacitor C 1 and the second capacitor C 2 all have one end ground connection, the other end of the first capacitor C 1 relative earth terminal is connected on the circuit that differential input end B is connected with front device, the other end of the second capacitor C 2 relative earth terminals is connected on the circuit that differential input end B is connected with front device.
Embodiment 3
As shown in Figure 3, for filtering ripple, make electric current more stable, the present embodiment has been made following further restriction on the basis of embodiment 1 or embodiment 2: the power transfer module of the present embodiment comprises power conversion chip and the 4th capacitor C 4, wherein, power conversion chip adopts MCP1700, and the 4th capacitor C 4 one end are connected with power conversion chip input, its other end ground connection.
Embodiment 4
The present embodiment has been made following further restriction on the basis of embodiment 3: the power transfer module of the present embodiment also comprises polar capacitor C5, and wherein, polar capacitor C5 is anodal to be connected with power conversion chip output, its minus earth.Wherein, polar capacitor C5 can carry out charging and discharging in the time of power on circuitry and power-off, plays buffering transition, and moment electric pulse possible while avoiding energising or power-off damages each chip in transducer.
Embodiment 5
The present embodiment has been made following further restriction on the basis of embodiment 3 or embodiment 4: indicate for the ease of the operating state to power transfer module, the power transfer module of the present embodiment also comprises the first resistance R 1 and LED 1, wherein, after anodal serial connection the first resistance R 1 of LED 1, be connected with the output of power conversion chip, the power output end of power transfer module is connected on the circuit between power conversion chip output and the first resistance R 1.
Above content is the further description of the utility model being done in conjunction with concrete preferred implementation, can not assert that embodiment of the present utility model is confined to these explanations.For the utility model person of an ordinary skill in the technical field, not departing from other execution modes that draw under the technical solution of the utility model, all should be included in protection range of the present utility model.