CN104460660A - Remote debugger for remote debugging system - Google Patents
Remote debugger for remote debugging system Download PDFInfo
- Publication number
- CN104460660A CN104460660A CN201410738246.9A CN201410738246A CN104460660A CN 104460660 A CN104460660 A CN 104460660A CN 201410738246 A CN201410738246 A CN 201410738246A CN 104460660 A CN104460660 A CN 104460660A
- Authority
- CN
- China
- Prior art keywords
- resistance
- electric capacity
- interface
- relay
- triode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a remote debugger for a remote debugging system. The remote debugger comprises a network communicator and multiple executors. Each executor is connected with a debugged device through an RS232 bus and a power line. The network communicator comprises a single chip microcomputer U1, an RS 232 interface circuit, an RS 485 interface circuit, a power circuit, a power control circuit, an IIC interface, an RJ45 interface and a debugging program download circuit, wherein the power control circuit is used for controlling switching-on and switching-off of a power source of the executors. Each executor comprises a microprocessor U9, a serial port switching-on control circuit, an IIC interface, a power interface and a power control circuit of a controlled device. The remote debugger for the remote debugging system has the advantages that the remote debugger can remotely reset power failures of a device and remotely monitor the device, remote management and state monitoring of the device are achieved, enterprise safety indexes are improved, and work efficiency is improved.
Description
Technical field
The present invention relates to a kind of remote debugger for remote debugging system.
Background technology
The section communication equipment of current on-line operation is due to a variety of causes, there is deadlock phenomenon, this part equipment generally has 232 or 485 interfaces, but owing to not possessing network remote operating function, each deadlock phenomenon occurs, staff must rush towards scene and carry out turn-off reset operation to equipment, if meet some remote websites, fault handling is consuming time longer, operation inconvenience, affect enterprise security index, be unfavorable for the raising of work efficiency simultaneously.
Summary of the invention
The present invention is for avoiding the weak point that exists in above-mentioned prior art, providing a kind of remote debugger for remote debugging system, to carry out long-range turn-off reset and remote monitoring, the telemanagement realizing equipment and status monitoring to equipment.
The present invention be technical solution problem by the following technical solutions.
As shown in Figure 1, for the remote debugger of remote debugging system, its design feature is, comprises a network communication device and multiple actuator, and each actuator in described multiple actuator is connected a debugged apparatus by RS232 bus with power lead;
Described network communication device comprise single-chip microcomputer U1, RS232 interface circuit, RS485 interface circuit, power circuit, for controlling the power control circuit of the on/off of actuator, IIC interface, RJ45 interface and debugged program download circuit; Actuator comprises microprocessor U9, serial ports turn-on control circuit, IIC interface, power interface and controlled device power control circuit;
Described network communication device is connected with the main control computer of remote debugging system by described RJ45 interface; The power control circuit of described network communication device is connected with the power interface of actuator; The IIC interface of described network communication device is connected with the IIC interface of actuator, and the serial ports turn-on control circuit of described actuator is connected with RS232 or RS485 of network communication device.
The design feature of the remote debugger for remote debugging system of the present invention is also:
The controlled device power control circuit of described actuator includes magnetic latching relay RC01, the switching operational module of described main control computer is connected with described magnetic latching relay RC01, to make it possible to be operated the magnetic latching relay RC01 on remote debugger by main control computer, reach the long-range switching of the power supply controlling debugged apparatus.
Described single-chip microcomputer U1 is connected with internal clock circuit, outer clock circuit, reset circuit and storage unit; Described internal clock circuit comprises crystal oscillator Y1, electric capacity C42, electric capacity C43, resistance R36, resistance R37; Described outer clock circuit comprises crystal oscillator Y2, electric capacity C44, electric capacity C45, resistance R52; Described reset circuit comprises electric capacity C1, resistance R13 and switch S 5; Described storage unit comprises storage chip U10;
Described electric capacity C42 is connected with single-chip microcomputer U1 by described resistance R36, described electric capacity C43 is connected with single-chip microcomputer U1 by described resistance R37, one end of described crystal oscillator Y1 is connected between electric capacity C42 and resistance R36, and the other end of crystal oscillator Y1 is connected between electric capacity C43 and resistance R37;
Two ends after described crystal oscillator Y2 is connected with described resistance R52 is parallel with one another are all connected with described single-chip microcomputer U1, and one end of crystal oscillator Y2 is by electric capacity C44 ground connection, and the other end of crystal oscillator Y2 is by electric capacity C45 ground connection;
One end of described resistance R13 connects+3.3V power supply, and the other end of described resistance R13 is connected with one end of described electric capacity C1 and is connected with described single-chip microcomputer U1 afterwards, the other end ground connection of described electric capacity C1; One end of described switch S 5 is connected between described resistance R13 and described electric capacity C1, and the other end of described switch S 5 connects ground connection one end of described electric capacity C1;
Described storage chip U10 is connected with single-chip microcomputer U1.
Described RS485 interface circuit comprises RS485 transceiver U3, resistance R20, electric capacity C3, resistance R23 and interface P1; Described resistance R20, electric capacity C3, resistance R23 and interface P1 are all connected with described RS485 transceiver U3; Described RS485 transceiver U3 is connected with described single-chip microcomputer U1;
Described RS232 interface circuit comprises RS232 transceiver U5, electric capacity C31, electric capacity C33, electric capacity C35, electric capacity C37, electric capacity C6, resistance R15, resistance R21, interface P2 and 9 needle interface CN5; Described electric capacity C31, electric capacity C33, electric capacity C35, electric capacity C37, electric capacity C6, resistance R15, resistance R21, interface P2 and 9 needle interface CN5 are all connected with described RS232 transceiver U5; Described RS232 transceiver U5 is connected with described single-chip microcomputer U1.
Described power circuit comprises power supply chip ACDC1, voltage regulator U11, electric capacity C29, electric capacity C50, electric capacity C51, electric capacity C30; Described power supply chip ACDC1 connects external power source by interface P6 and exports+9V power supply, and described electric capacity C29, electric capacity C50 are all connected between described power supply chip ACDC1 and voltage regulator U11, and described power supply chip ACDC1 is connected with voltage regulator U11; One end after described electric capacity C51 and electric capacity C30 is parallel with one another is connected on the terminal GND of described voltage regulator U11, the other end after described electric capacity C51 is parallel with one another with electric capacity C30 is connected with terminal NC with the terminal VOUT of described voltage regulator U11, and exports+3.3V voltage as power output end.
Described actuator power control circuit comprises relay K 1, diode D1, triode Q1, resistance R17, resistance R18 and resistance R19; One end of described resistance R18 connects the supervisor PD0 of single-chip microcomputer U1, the base stage of other end connecting triode Q1; On the base stage that the two ends of resistance R17 are connected to described triode Q1 and emitter, the grounded emitter of triode Q1; The positive pole of described diode, one end of relay J 1 are all connected with the collector of described triode Q1, and the negative pole of described diode, the other end of relay J 1 all connect+9V power supply by resistance R19.
Described debugged program download circuit comprises jtag interface chip J1, resistance R1 ~ R7; Described resistance R1 ~ R7 is all connected with described jtag interface chip J1; Described jtag interface chip J1 is connected with described single-chip microcomputer U1.
Described microprocessor U9 is connected with crystal oscillator unit, electrification reset unit and plucking number sign switch address circuit;
Described crystal oscillator unit comprises crystal oscillator Y3, electric capacity C144, electric capacity C145, resistance R152; Two ends after described crystal oscillator Y3 is connected with described resistance R152 is parallel with one another are all connected with described single-chip microcomputer U9, and one end of crystal oscillator Y3 is by electric capacity C144 ground connection, and the other end of crystal oscillator Y3 is by electric capacity C145 ground connection;
Described electrification reset unit comprises resistance R113, electric capacity C14; One end of described resistance R113 connects+3.3V power supply, and the other end of described resistance R113 is connected with one end of described electric capacity C14 and is connected with described single-chip microcomputer U9 afterwards, the other end ground connection of described electric capacity C14;
Described plucking number sign switch address circuit comprises plucking number sign switch S1, resistance R19 ~ R22; Described plucking number sign switch S1 is connected with described single-chip microcomputer U9, and one end of described resistance R19 ~ resistance R22 connects+3.3V power supply, and the other end is connected between plucking number sign switch S1 and described single-chip microcomputer U9.
Described serial ports turn-on control circuit comprises interface P01, interface P3, relay K 01, diode D01, triode Q01, resistance R017, resistance R018 and resistance R019;
One end of described resistance R018 connects the pin PB8 of single-chip microcomputer U9, the base stage of other end connecting triode Q01; On the base stage that the two ends of resistance R017 are connected to described triode Q01 and emitter, the grounded emitter of triode Q01; The positive pole of described diode D01, one end of relay K 01 are all connected with the collector of described triode Q01, and the negative pole of described diode D01, the other end of relay K 01 all connect+9V power supply by resistance R019;
The emitter of described triode Q01 is connected with described interface P3; Described interface P01, interface P3 are connected to the two ends of described relay K 01; When relay K 01 conducting, be connected between interface P01, interface P3.
Described controlled device power control circuit comprises relay K 2, diode D2, triode Q2, resistance R81, resistance R80, resistance R79, relay K 3, diode D3, triode Q3, resistance R82, resistance R77, resistance R78, electric capacity C103, resistance R25, magnetic latching relay RC01 and interface P5;
One end of described resistance R80 connects the pin PB9 of single-chip microcomputer U9, the base stage of other end connecting triode Q2; On the base stage that the two ends of resistance R79 are connected to described triode Q2 and emitter, the grounded emitter of triode Q2; The positive pole of described diode D2, one end of relay K 2 are all connected with the collector of described triode Q2, and the negative pole of described diode D2, the other end of relay K 2 all connect+9V power supply by resistance R81;
One end of described resistance R78 connects the pin PB10 of single-chip microcomputer U9, the base stage of other end connecting triode Q3; On the base stage that the two ends of resistance R77 are connected to described triode Q3 and emitter, the grounded emitter of triode Q3; The positive pole of described diode D3, one end of relay K 3 are all connected with the collector of described triode Q3, and the negative pole of described diode D3, the other end of relay K 3 all connect+9V power supply by resistance R82;
Described relay K 2, relay K 3 are all connected with described magnetic latching relay RC01, be connected between the pin 1 of magnetic latching relay RC01 and pin 2 after described resistance R25 and described electric capacity C103 is connected in series mutually, resistance R25 connects the pin 1 of magnetic latching relay RC01, and electric capacity C103 connects the pin 2 of magnetic latching relay RC01; Pin 1 and the pin 2 of described interface P5 are connected pin 3 and the pin 4 of magnetic latching relay RC01 respectively.
Compared with the prior art, beneficial effect of the present invention is embodied in:
Remote debugger for remote debugging system of the present invention, comprises a main control computer and multiple remote debugger; Described main control computer is provided with network connecting module, data transfer module, switching operational module, master control RS232 interface and master control RS485 interface; Be connected by computer network passage between described main control computer and described remote debugger; Described remote debugger comprises network communication device and actuator.
By Long-distance Control, long-range turn-off reset and monitoring are carried out to equipment controlled in website, realize the telemanagement to the equipment only possessing local monitoring function and status monitoring, easy to operate, improve enterprise security index, improve work efficiency.
Remote debugger for remote debugging system of the present invention, has and can carry out long-range turn-off reset and remote monitoring, the telemanagement realizing equipment and status monitoring, improve enterprise security index equipment, improve the advantages such as work efficiency.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of remote debugger of the present invention.
Fig. 2 is the structured flowchart of the remote debugging system being provided with remote debugger of the present invention.
Fig. 3 is the circuit diagram of the single-chip microcomputer U1 of the network communication device of remote debugger of the present invention.
Fig. 4 is the circuit diagram of the RS485 interface circuit of the network communication device of remote debugger of the present invention.
Fig. 5 is the circuit diagram of the RS232 interface circuit of the network communication device of remote debugger of the present invention.
Fig. 6 is the circuit diagram of the power circuit of the network communication device of remote debugger of the present invention.
Fig. 7 is the circuit diagram of the actuator power control circuit of the network communication device of remote debugger of the present invention.
Fig. 8 is the circuit diagram of the debugged program download circuit of the network communication device of remote debugger of the present invention.
Fig. 9 is the circuit diagram of the microprocessor U9 of the actuator of remote debugger of the present invention.
Figure 10 is the circuit diagram of the serial ports turn-on control circuit of the actuator of remote debugger of the present invention.
Figure 11 is the circuit diagram of the controlled device power control circuit of the actuator of remote debugger of the present invention.
Figure 12 is the circuit diagram of the debug circuit interface of the actuator of remote debugger of the present invention.
Below by way of embodiment, and the invention will be further described by reference to the accompanying drawings.
Embodiment
See accompanying drawing 1-12, remote debugger for remote debugging system of the present invention, as shown in Figure 1, comprise a network communication device and multiple actuator, each actuator in described multiple actuator is connected a debugged apparatus by RS232 bus with power lead;
Described network communication device comprise single-chip microcomputer U1, RS232 interface circuit, RS485 interface circuit, power circuit, for controlling the power control circuit of the on/off of actuator, IIC interface, RJ45 interface and debugged program download circuit; Actuator comprises microprocessor U9, serial ports turn-on control circuit, IIC interface, power interface and controlled device power control circuit;
Described network communication device is connected with the main control computer of remote debugging system by described RJ45 interface; The power control circuit of described network communication device is connected with the power interface of actuator; The IIC interface of described network communication device is connected with the IIC interface of actuator, and the serial ports turn-on control circuit of described actuator is connected with RS232 or RS485 of network communication device.
The controlled device power control circuit of described actuator includes magnetic latching relay RC01, the switching operational module of described main control computer is connected with described magnetic latching relay RC01, to make it possible to be operated the magnetic latching relay RC01 on remote debugger by main control computer, reach the long-range switching of the power supply controlling debugged apparatus.
Described single-chip microcomputer U1 is connected with internal clock circuit, outer clock circuit, reset circuit and storage unit; Described internal clock circuit comprises crystal oscillator Y1, electric capacity C42, electric capacity C43, resistance R36, resistance R37; Described outer clock circuit comprises crystal oscillator Y2, electric capacity C44, electric capacity C45, resistance R52; Described reset circuit comprises electric capacity C1, resistance R13 and switch S 5; Described storage unit comprises storage chip U10;
Described electric capacity C42 is connected with single-chip microcomputer U1 by described resistance R36, described electric capacity C43 is connected with single-chip microcomputer U1 by described resistance R37, one end of described crystal oscillator Y1 is connected between electric capacity C42 and resistance R36, and the other end of crystal oscillator Y1 is connected between electric capacity C43 and resistance R37;
Two ends after described crystal oscillator Y2 is connected with described resistance R52 is parallel with one another are all connected with described single-chip microcomputer U1, and one end of crystal oscillator Y2 is by electric capacity C44 ground connection, and the other end of crystal oscillator Y2 is by electric capacity C45 ground connection;
One end of described resistance R13 connects+3.3V power supply, and the other end of described resistance R13 is connected with one end of described electric capacity C1 and is connected with described single-chip microcomputer U1 afterwards, the other end ground connection of described electric capacity C1; One end of described switch S 5 is connected between described resistance R13 and described electric capacity C1, and the other end of described switch S 5 connects ground connection one end of described electric capacity C1;
Described storage chip U10 is connected with single-chip microcomputer U1.
It is the circuit diagram of the single-chip microcomputer U1 of the network communication device of remote debugging system of the present invention as Fig. 3.Wherein, single-chip microcomputer U1 is STM32F107VCT6 single-chip microcomputer, and Y2, C44, C45 and R52 form the crystal oscillator unit of U1, and C1, R13 and S5 form electrification reset and hand-reset unit, and Y1, C42, C43, R36, R37 form the internal clocking benchmark crystal oscillator unit of U1.The preferred STM32F107VCT6 of described single-chip microcomputer U1.STM32 series is based on aiming at the Embedded Application custom-designed ARM Cortex-M kernel requiring high-performance, low cost, low-power consumption, be integrated with various High performance industrial standard interface, and STM32 different model product has perfect compatibility on pin and software, can easily adapt to more application.
Described RS485 interface circuit comprises RS485 transceiver U3, resistance R20, electric capacity C3, resistance R23 and interface P1; Described resistance R20, electric capacity C3, resistance R23 and interface P1 are all connected with described RS485 transceiver U3; Described RS485 transceiver U3 is connected with described single-chip microcomputer U1;
Described RS232 interface circuit comprises RS232 transceiver U5, electric capacity C31, electric capacity C33, electric capacity C35, electric capacity C37, electric capacity C6, resistance R15, resistance R21, interface P2 and 9 needle interface CN5; Described electric capacity C31, electric capacity C33, electric capacity C35, electric capacity C37, electric capacity C6, resistance R15, resistance R21, interface P2 and 9 needle interface CN5 are all connected with described RS232 transceiver U5; Described RS232 transceiver U5 is connected with described single-chip microcomputer U1.
It is the circuit diagram of the RS485 interface circuit of the network communication device of remote debugging system of the present invention as Fig. 4.Fig. 5 is the circuit diagram of the RS232 interface circuit of the network communication device of remote debugging system of the present invention.Wherein, U3, R20, C3, R23 form 485 interface communication circuit of 485 interfaces.U5, C31, C33, C35, C37, C6, R15, R21 form 232 serial communication circuits.U3 preferred SP3485, SP3485 are the Half-duplex transceivers of+3.3V power supply, meet RS-485 and RS-422 serial protocol standard.SP3485 adopts Differential Input, Differential Output mode, and export, input shared a pair circuit, message transmission rate can up to 10Mbps (bringing onto load).
U5 preferred MAX3232, MAX3232 adopt proprietary low voltage difference transmitter output stage, utilize dual charge pump can realize real RS-232 performance when 3.0V to 5.5V Power supply, and device only needs the outside small size charge pump capacitor of four 0.1uF.Max3232 guarantees at 120kbps data rate, keeps RS-232 output level simultaneously.
Described power circuit comprises power supply chip ACDC1, voltage regulator U11, electric capacity C29, electric capacity C50, electric capacity C51, electric capacity C30; Described power supply chip ACDC1 connects external power source by interface P6 and exports+9V power supply, and described electric capacity C29, electric capacity C50 are all connected between described power supply chip ACDC1 and voltage regulator U11, and described power supply chip ACDC1 is connected with voltage regulator U11; One end after described electric capacity C51 and electric capacity C30 is parallel with one another is connected on the terminal GND of described voltage regulator U11, the other end after described electric capacity C51 is parallel with one another with electric capacity C30 is connected with terminal NC with the terminal VOUT of described voltage regulator U11, and exports+3.3V voltage as power output end.
It is the circuit diagram of the power circuit of the network communication device of remote debugging system of the present invention as Fig. 6.Wherein, ACDC1, U11, C29, C50, C51, C30 form power circuit, and P6 connects outside 220V mains ac power supply, ACDC1 is alternating current 220V DC power module, and directly export 9V direct current, U11 produces second direct supply, export 3.3V, for chip each in system.The preferred LM1117-3.3 of U11, for exporting direct current+3.3V voltage.LM1117 is a low difference voltage regulator series.Its pressure reduction exports at 1.2V, is 1.2V when load current is 800mA.LM1117 has the version of adjustable voltage, can realize 1.25 ~ 13.8V output voltage range by 2 non-essential resistances.5 fixed voltages are also had to export the model of (1.8V, 2.5V, 2.85V, 3.3V and 5V) in addition.
Described actuator power control circuit comprises relay K 1, diode D1, triode Q1, resistance R17, resistance R18 and resistance R19; One end of described resistance R18 connects the supervisor PD0 of single-chip microcomputer U1, the base stage of other end connecting triode Q1; On the base stage that the two ends of resistance R17 are connected to described triode Q1 and emitter, the grounded emitter of triode Q1; The positive pole of described diode, one end of relay J 1 are all connected with the collector of described triode Q1, and the negative pole of described diode, the other end of relay J 1 all connect+9V power supply by resistance R19.
Fig. 7 is the circuit diagram of the power control circuit of the actuator of the network communication device of remote debugging system of the present invention.The power control circuit of K1, D1, Q1, R17, R18, R19 composition to actuator, when PD0 is high level, the adhesive of K1 relay, the conducting of actuator power supply.
Described debugged program download circuit comprises jtag interface chip J1, resistance R1 ~ R7; Described resistance R1 ~ R7 is all connected with described jtag interface chip J1; Described jtag interface chip J1 is connected with described single-chip microcomputer U1.It is the circuit diagram of the debugged program download circuit of the network communication device of remote debugging system of the present invention as Fig. 8.J1, R1, R2, R3, R4, R5, R6, R7 form debugged program download circuit, for download and the debugging of program.
The debug circuit interface of network communication device is J1 connection terminal, also connects for the external debug port of a RS232 simultaneously, i.e. CN5 connection terminal in the RS232 interface circuit of Fig. 5.The connection of network communication device and actuator divides two kinds of situations, and one is debugged apparatus when being RS232 port, and another kind is debugged device is RS485 port.If debugged apparatus is RS232 port, connected mode is that the P2 connection terminal of the RS232 interface circuit of network communication device is connected with the P01 connection terminal of the serial ports turn-on control circuit (as Figure 10) of actuator.If debugged apparatus is RS485 port, connected mode is that the interface P1 connection terminal of the RS485 interface circuit of network communication device is connected with the P01 connection terminal of the serial ports turn-on control circuit (as Figure 10) of actuator.
The connection of actuator and network communication device is that the P01 connection terminal of actuator is connected with P1 or the P2 connection terminal of network communication device, and the power supply of actuator is introduced by P01 connection terminal.
Described microprocessor U9 is connected with crystal oscillator unit, electrification reset unit and plucking number sign switch address circuit;
Described crystal oscillator unit comprises crystal oscillator Y3, electric capacity C144, electric capacity C145, resistance R152; Two ends after described crystal oscillator Y3 is connected with described resistance R152 is parallel with one another are all connected with described single-chip microcomputer U9, and one end of crystal oscillator Y3 is by electric capacity C144 ground connection, and the other end of crystal oscillator Y3 is by electric capacity C145 ground connection;
Described electrification reset unit comprises resistance R113, electric capacity C14; One end of described resistance R113 connects+3.3V power supply, and the other end of described resistance R113 is connected with one end of described electric capacity C14 and is connected with described single-chip microcomputer U9 afterwards, the other end ground connection of described electric capacity C14;
Described plucking number sign switch address circuit comprises plucking number sign switch S1, resistance R19 ~ R22; Described plucking number sign switch S1 is connected with described single-chip microcomputer U9, and one end of described resistance R19 ~ resistance R22 connects+3.3V power supply, and the other end is connected between plucking number sign switch S1 and described single-chip microcomputer U9.
It is the circuit diagram of the microprocessor U9 of the actuator of remote debugging system of the present invention as Fig. 9.What single-chip microcomputer U9 adopted is STM32F101C6T6 chip, and Y3, C144, C145, R152 form the crystal oscillator unit of U9.R113, C14 form electrification reset unit.S1, R19, R20, R21, R22 form plucking number sign switch address, for setting the address of actuator.
Described serial ports turn-on control circuit comprises interface P01, interface P3, relay K 01, diode D01, triode Q01, resistance R017, resistance R018 and resistance R019;
One end of described resistance R018 connects the pin PB8 of single-chip microcomputer U9, the base stage of other end connecting triode Q01; On the base stage that the two ends of resistance R017 are connected to described triode Q01 and emitter, the grounded emitter of triode Q01; The positive pole of described diode D01, one end of relay K 01 are all connected with the collector of described triode Q01, and the negative pole of described diode D01, the other end of relay K 01 all connect+9V power supply by resistance R019;
The emitter of described triode Q01 is connected with described interface P3; Described interface P01, interface P3 are connected to the two ends of described relay K 01; When relay K 01 conducting, be connected between interface P01, interface P3.
It is the circuit diagram of the serial ports turn-on control circuit of the actuator of remote debugging system of the present invention as Figure 10.K01, D01, Q01, R017, R018, R019, P3, P01 form serial ports turning circuit, when actuator receives host computer, require by the serial ports of controlled device and network communication device direct-connected time, the PB8 of U9 exports high level, the adhesive of K01 relay, 1,2 ports of P3 and the corresponding conducting of 5,6 port of P01, by the serial ports of controlled device and network communication device direct-connected, complete serial communication ON operation.
Described controlled device power control circuit comprises relay K 2, diode D2, triode Q2, resistance R81, resistance R80, resistance R79, relay K 3, diode D3, triode Q3, resistance R82, resistance R77, resistance R78, electric capacity C103, resistance R25, magnetic latching relay RC01 and interface P5;
One end of described resistance R80 connects the pin PB9 of single-chip microcomputer U9, the base stage of other end connecting triode Q2; On the base stage that the two ends of resistance R79 are connected to described triode Q2 and emitter, the grounded emitter of triode Q2; The positive pole of described diode D2, one end of relay K 2 are all connected with the collector of described triode Q2, and the negative pole of described diode D2, the other end of relay K 2 all connect+9V power supply by resistance R81;
One end of described resistance R78 connects the pin PB10 of single-chip microcomputer U9, the base stage of other end connecting triode Q3; On the base stage that the two ends of resistance R77 are connected to described triode Q3 and emitter, the grounded emitter of triode Q3; The positive pole of described diode D3, one end of relay K 3 are all connected with the collector of described triode Q3, and the negative pole of described diode D3, the other end of relay K 3 all connect+9V power supply by resistance R82;
Described relay K 2, relay K 3 are all connected with described magnetic latching relay RC01, be connected between the pin 1 of magnetic latching relay RC01 and pin 2 after described resistance R25 and described electric capacity C103 is connected in series mutually, resistance R25 connects the pin 1 of magnetic latching relay RC01, and electric capacity C103 connects the pin 2 of magnetic latching relay RC01; Pin 1 and the pin 2 of described interface P5 are connected pin 3 and the pin 4 of magnetic latching relay RC01 respectively.
The control circuit of K2, D2, Q2, R81, R80, R79, K3, D3, Q3, R82, R77, R78, C3, R25, RC01, P5 composition to the AC power of controlled device (i.e. debugged apparatus), for providing power supply for controlled device.When the PB9 of U9 sends out a high level (now the PB10 of U9 must be low level) pulse, K2 does an adhesive action, 3, the 4 pin adhesives of RC01, the AC power of controlled device is connected, when the PB9 of U9 is low level, and after PB10 sends out a high level pulse, K3 does an adhesive action, 3,4 pin of RC01 are opened, and the AC power of controlled device is turned off.
Actuator provides AC power to access for debugged apparatus, connected mode is: 1 pin of actuator connection terminal P5 connects the ground wire of alternating current input power supplying, 2 pin of P5 connect the live wire of alternating current input power supplying, and the AC power input of debugged apparatus is connected to 1 pin and 3 pin of actuator connection terminal P5 respectively.Actuator introduces AC power by 1 pin of connection terminal P5 and 2 pin, then by 1 pin of connection terminal P5 and 3 pin output AC power sources on debugged apparatus.
Actuator is connected with the serial ports of debugged apparatus: the P3 connection terminal on actuator is connected with RS485 or the RS232 interface of debugged apparatus (1,2 pin of 485 P3 when being connected, 1,2,3 pin of 232 P3 when connecting).The debug circuit interface of actuator is J2 connection terminal.
The circuit diagram of the debug circuit interface of actuator as shown in figure 12, comprises jtag interface chip J2, resistance R01 ~ R07.Described resistance R01 ~ R07 is all connected with described jtag interface chip J2; Described jtag interface chip J2 is connected with described single-chip microcomputer U9.J2, R01 ~ R07 forms the debug circuit interface of actuator, for download and the debugging of program.
As shown in Figure 2, remote debugging system, comprises a main control computer and multiple remote debugger of the present invention; Described main control computer is provided with network connecting module, data transfer module, switching operational module, master control RS232 interface and master control RS485 interface; Be connected by computer network passage between described main control computer and described remote debugger; Described remote debugger comprises network communication device and multiple actuator, can monitor multiple equipment, and has the longer response time.Described network connecting module is set up network for the remote debugger corresponding with by tune equipment for main control computer and is connected; Described data transfer module is for the data that read commissioning device serial ports and send and be stored to buffer zone, then the data stored in buffer zone is sent to network interface, extends data transmission distance, realize remote monitoring; Described switching operational module is for sending the operational orders such as switching.Network channel is Intranet, for providing transmission channel for main control computer and remote debugger.
Can 232 ports (or 485 ports) of remote monitoring distant place controlled device by 232 ports (or 485 ports) of main control computer, and realize remote monitoring according to the port type of watch-dog, can remote control power switch, the electriferous state of controlled device can be monitored.This invention, by Long-distance Control, is carried out remote reset, monitoring and switching to equipment controlled in website and is controlled, realize the telemanagement to the equipment only possessing local monitoring function and status monitoring.
Debugger possesses RJ45 or 485 mode network savvies, the power switch of remote controlled watch-dog, and carry out main control computer and the man-to-man monitoring of field apparatus, 232 interfaces in a remote debugger connect with debugged apparatus.
(1) 232 interfaces of debug host access main control computer, 232 interfaces of debugged apparatus access remote debugger;
(2) main control computer is set up to communicate by network connecting module and remote debugger and is connected, and system utilizes data transfer module debug host and debugged apparatus to be linked up by transparent transmission;
(3) after debug host sends order, order is sent in 232 interfaces of debugged apparatus, after debugged apparatus receives order, returns response frame by 232 interfaces, response frame reaches on 232 interfaces of debug host again, thus realizes the remote debugging of debug host and debugged apparatus.
(4) operator is also by the operation of main control computer to the magnetic latching relay RC01 on remote debugger, reaches the long-range switching of power supply controlling debugged apparatus, makes debugged apparatus possess long-range turn-off reset function.
Network communication device and main control computer are connected by RJ45 network interface, and host computer instruction is transmitted to actuator.
Remote debugger for remote debugging system of the present invention, pass through Long-distance Control, long-range turn-off reset and monitoring are carried out to equipment controlled in website, realize the telemanagement to the equipment only possessing local monitoring function and status monitoring, easy to operate, improve enterprise security index, improve work efficiency.
Above embodiment is only be described the preferred embodiment of the present invention; not scope of the present invention is limited; under not departing from the present invention and designing the prerequisite of spirit; the various distortion that the common engineering technical personnel in this area make technical scheme of the present invention and improvement, all should fall in protection domain that claims of the present invention determine.
Claims (10)
1. for the remote debugger of remote debugging system, it is characterized in that, comprise a network communication device and multiple actuator, each actuator in described multiple actuator is connected a debugged apparatus by RS232 bus with power lead;
Described network communication device comprise single-chip microcomputer U1, RS232 interface circuit, RS485 interface circuit, power circuit, for controlling the power control circuit of the on/off of actuator, IIC interface, RJ45 interface and debugged program download circuit; Actuator comprises microprocessor U9, serial ports turn-on control circuit, IIC interface, power interface and controlled device power control circuit;
Described network communication device is connected with the main control computer of remote debugging system by described RJ45 interface; The power control circuit of described network communication device is connected with the power interface of actuator; The IIC interface of described network communication device is connected with the IIC interface of actuator, and the serial ports turn-on control circuit of described actuator is connected with RS232 or RS485 of network communication device.
2. the remote debugger for remote debugging system according to claim 1, it is characterized in that, the controlled device power control circuit of described actuator includes magnetic latching relay RC01, the switching operational module of described main control computer is connected with described magnetic latching relay RC01, to make it possible to be operated the magnetic latching relay RC01 on remote debugger by main control computer, reach the long-range switching of the power supply controlling debugged apparatus.
3. the remote debugger for remote debugging system according to claim 1, is characterized in that, described single-chip microcomputer U1 is connected with internal clock circuit, outer clock circuit, reset circuit and storage unit; Described internal clock circuit comprises crystal oscillator Y1, electric capacity C42, electric capacity C43, resistance R36, resistance R37; Described outer clock circuit comprises crystal oscillator Y2, electric capacity C44, electric capacity C45, resistance R52; Described reset circuit comprises electric capacity C1, resistance R13 and switch S 5; Described storage unit comprises storage chip U10;
Described electric capacity C42 is connected with single-chip microcomputer U1 by described resistance R36, described electric capacity C43 is connected with single-chip microcomputer U1 by described resistance R37, one end of described crystal oscillator Y1 is connected between electric capacity C42 and resistance R36, and the other end of crystal oscillator Y1 is connected between electric capacity C43 and resistance R37;
Two ends after described crystal oscillator Y2 is connected with described resistance R52 is parallel with one another are all connected with described single-chip microcomputer U1, and one end of crystal oscillator Y2 is by electric capacity C44 ground connection, and the other end of crystal oscillator Y2 is by electric capacity C45 ground connection;
One end of described resistance R13 connects+3.3V power supply, and the other end of described resistance R13 is connected with one end of described electric capacity C1 and is connected with described single-chip microcomputer U1 afterwards, the other end ground connection of described electric capacity C1; One end of described switch S 5 is connected between described resistance R13 and described electric capacity C1, and the other end of described switch S 5 connects ground connection one end of described electric capacity C1;
Described storage chip U10 is connected with single-chip microcomputer U1.
4. the remote debugger for remote debugging system according to claim 3, is characterized in that, described RS485 interface circuit comprises RS485 transceiver U3, resistance R20, electric capacity C3, resistance R23 and interface P1; Described resistance R20, electric capacity C3, resistance R23 and interface P1 are all connected with described RS485 transceiver U3; Described RS485 transceiver U3 is connected with described single-chip microcomputer U1;
Described RS232 interface circuit comprises RS232 transceiver U5, electric capacity C31, electric capacity C33, electric capacity C35, electric capacity C37, electric capacity C6, resistance R15, resistance R21, interface P2 and 9 needle interface CN5; Described electric capacity C31, electric capacity C33, electric capacity C35, electric capacity C37, electric capacity C6, resistance R15, resistance R21, interface P2 and 9 needle interface CN5 are all connected with described RS232 transceiver U5; Described RS232 transceiver U5 is connected with described single-chip microcomputer U1.
5. the remote debugger for remote debugging system according to claim 3, is characterized in that, described power circuit comprises power supply chip ACDC1, voltage regulator U11, electric capacity C29, electric capacity C50, electric capacity C51, electric capacity C30; Described power supply chip ACDC1 connects external power source by interface P6 and exports+9V power supply, and described electric capacity C29, electric capacity C50 are all connected between described power supply chip ACDC1 and voltage regulator U11, and described power supply chip ACDC1 is connected with voltage regulator U11; One end after described electric capacity C51 and electric capacity C30 is parallel with one another is connected on the terminal GND of described voltage regulator U11, the other end after described electric capacity C51 is parallel with one another with electric capacity C30 is connected with terminal NC with the terminal VOUT of described voltage regulator U11, and exports+3.3V voltage as power output end.
6. the remote debugger for remote debugging system according to claim 3, is characterized in that, described actuator power control circuit comprises relay K 1, diode D1, triode Q1, resistance R17, resistance R18 and resistance R19; One end of described resistance R18 connects the supervisor PD0 of single-chip microcomputer U1, the base stage of other end connecting triode Q1; On the base stage that the two ends of resistance R17 are connected to described triode Q1 and emitter, the grounded emitter of triode Q1; The positive pole of described diode, one end of relay J 1 are all connected with the collector of described triode Q1, and the negative pole of described diode, the other end of relay J 1 all connect+9V power supply by resistance R19.
7. the remote debugger for remote debugging system according to claim 3, is characterized in that, described debugged program download circuit comprises jtag interface chip J1, resistance R1 ~ R7; Described resistance R1 ~ R7 is all connected with described jtag interface chip J1; Described jtag interface chip J1 is connected with described single-chip microcomputer U1.
8. the remote debugger for remote debugging system according to claim 3, is characterized in that, described microprocessor U9 is connected with crystal oscillator unit, electrification reset unit and plucking number sign switch address circuit;
Described crystal oscillator unit comprises crystal oscillator Y3, electric capacity C144, electric capacity C145, resistance R152; Two ends after described crystal oscillator Y3 is connected with described resistance R152 is parallel with one another are all connected with described single-chip microcomputer U9, and one end of crystal oscillator Y3 is by electric capacity C144 ground connection, and the other end of crystal oscillator Y3 is by electric capacity C145 ground connection;
Described electrification reset unit comprises resistance R113, electric capacity C14; One end of described resistance R113 connects+3.3V power supply, and the other end of described resistance R113 is connected with one end of described electric capacity C14 and is connected with described single-chip microcomputer U9 afterwards, the other end ground connection of described electric capacity C14;
Described plucking number sign switch address circuit comprises plucking number sign switch S1, resistance R19 ~ R22; Described plucking number sign switch S1 is connected with described single-chip microcomputer U9, and one end of described resistance R19 ~ resistance R22 connects+3.3V power supply, and the other end is connected between plucking number sign switch S1 and described single-chip microcomputer U9.
9. the remote debugger for remote debugging system according to claim 3, it is characterized in that, described serial ports turn-on control circuit comprises interface P01, interface P3, relay K 01, diode D01, triode Q01, resistance R017, resistance R018 and resistance R019;
One end of described resistance R018 connects the pin PB8 of single-chip microcomputer U9, the base stage of other end connecting triode Q01; On the base stage that the two ends of resistance R017 are connected to described triode Q01 and emitter, the grounded emitter of triode Q01; The positive pole of described diode D01, one end of relay K 01 are all connected with the collector of described triode Q01, and the negative pole of described diode D01, the other end of relay K 01 all connect+9V power supply by resistance R019;
The emitter of described triode Q01 is connected with described interface P3; Described interface P01, interface P3 are connected to the two ends of described relay K 01; When relay K 01 conducting, be connected between interface P01, interface P3.
10. the remote debugger for remote debugging system according to claim 3, it is characterized in that, described controlled device power control circuit comprises relay K 2, diode D2, triode Q2, resistance R81, resistance R80, resistance R79, relay K 3, diode D3, triode Q3, resistance R82, resistance R77, resistance R78, electric capacity C103, resistance R25, magnetic latching relay RC01 and interface P5;
One end of described resistance R80 connects the pin PB9 of single-chip microcomputer U9, the base stage of other end connecting triode Q2; On the base stage that the two ends of resistance R79 are connected to described triode Q2 and emitter, the grounded emitter of triode Q2; The positive pole of described diode D2, one end of relay K 2 are all connected with the collector of described triode Q2, and the negative pole of described diode D2, the other end of relay K 2 all connect+9V power supply by resistance R81;
One end of described resistance R78 connects the pin PB10 of single-chip microcomputer U9, the base stage of other end connecting triode Q3; On the base stage that the two ends of resistance R77 are connected to described triode Q3 and emitter, the grounded emitter of triode Q3; The positive pole of described diode D3, one end of relay K 3 are all connected with the collector of described triode Q3, and the negative pole of described diode D3, the other end of relay K 3 all connect+9V power supply by resistance R82;
Described relay K 2, relay K 3 are all connected with described magnetic latching relay RC01, be connected between the pin 1 of magnetic latching relay RC01 and pin 2 after described resistance R25 and described electric capacity C103 is connected in series mutually, resistance R25 connects the pin 1 of magnetic latching relay RC01, and electric capacity C103 connects the pin 2 of magnetic latching relay RC01; Pin 1 and the pin 2 of described interface P5 are connected pin 3 and the pin 4 of magnetic latching relay RC01 respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410738246.9A CN104460660B (en) | 2014-12-05 | 2014-12-05 | Remote debugger for remote debugging system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410738246.9A CN104460660B (en) | 2014-12-05 | 2014-12-05 | Remote debugger for remote debugging system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104460660A true CN104460660A (en) | 2015-03-25 |
CN104460660B CN104460660B (en) | 2017-08-11 |
Family
ID=52906882
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410738246.9A Active CN104460660B (en) | 2014-12-05 | 2014-12-05 | Remote debugger for remote debugging system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104460660B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105490746A (en) * | 2015-11-27 | 2016-04-13 | 国家电网公司 | Far-end reset apparatus of optical terminal device |
CN108241562A (en) * | 2018-01-02 | 2018-07-03 | 郑州云海信息技术有限公司 | A kind of design method of remote debugging applied to server |
CN109358550A (en) * | 2018-11-01 | 2019-02-19 | 广东粤迪厚创科技发展有限公司 | A kind of detection device and detection method of communication apparatus |
CN109739129A (en) * | 2018-12-29 | 2019-05-10 | 盛瑞传动股份有限公司 | Automatic transmission network administration apparatus and method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0062871A1 (en) * | 1981-04-09 | 1982-10-20 | Westinghouse Electric Corporation | Load management terminal |
CN1825851A (en) * | 2005-02-25 | 2006-08-30 | 微软公司 | WINDOWS remote debugger service |
CN101349988A (en) * | 2008-09-18 | 2009-01-21 | 浙江大学 | Method for implementing KDWP communication connection proxy based on virtual machine KVM |
CN102547810A (en) * | 2010-12-25 | 2012-07-04 | 江苏联优信息科技有限公司 | Online debugging method of wireless sensor nodes |
CN102638824A (en) * | 2011-02-12 | 2012-08-15 | 苏州达联信息科技有限公司 | Remote debugging method and device for local railway track monitoring and sensing network |
JP2014160326A (en) * | 2013-02-19 | 2014-09-04 | Nec Corp | Device with supply power source switching function, supply power source switching method, and supply power source switching program |
CN204215266U (en) * | 2014-12-05 | 2015-03-18 | 国家电网公司 | For the remote debugger of remote debugging system |
-
2014
- 2014-12-05 CN CN201410738246.9A patent/CN104460660B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0062871A1 (en) * | 1981-04-09 | 1982-10-20 | Westinghouse Electric Corporation | Load management terminal |
CN1825851A (en) * | 2005-02-25 | 2006-08-30 | 微软公司 | WINDOWS remote debugger service |
CN101349988A (en) * | 2008-09-18 | 2009-01-21 | 浙江大学 | Method for implementing KDWP communication connection proxy based on virtual machine KVM |
CN102547810A (en) * | 2010-12-25 | 2012-07-04 | 江苏联优信息科技有限公司 | Online debugging method of wireless sensor nodes |
CN102638824A (en) * | 2011-02-12 | 2012-08-15 | 苏州达联信息科技有限公司 | Remote debugging method and device for local railway track monitoring and sensing network |
JP2014160326A (en) * | 2013-02-19 | 2014-09-04 | Nec Corp | Device with supply power source switching function, supply power source switching method, and supply power source switching program |
CN204215266U (en) * | 2014-12-05 | 2015-03-18 | 国家电网公司 | For the remote debugger of remote debugging system |
Non-Patent Citations (2)
Title |
---|
张群忠: "ARM嵌入式***调试技术研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
田同真: "基于网络的嵌入式***远程调试技术研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105490746A (en) * | 2015-11-27 | 2016-04-13 | 国家电网公司 | Far-end reset apparatus of optical terminal device |
CN108241562A (en) * | 2018-01-02 | 2018-07-03 | 郑州云海信息技术有限公司 | A kind of design method of remote debugging applied to server |
CN109358550A (en) * | 2018-11-01 | 2019-02-19 | 广东粤迪厚创科技发展有限公司 | A kind of detection device and detection method of communication apparatus |
CN109739129A (en) * | 2018-12-29 | 2019-05-10 | 盛瑞传动股份有限公司 | Automatic transmission network administration apparatus and method |
Also Published As
Publication number | Publication date |
---|---|
CN104460660B (en) | 2017-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN204215266U (en) | For the remote debugger of remote debugging system | |
CN104460660A (en) | Remote debugger for remote debugging system | |
CN104102161B (en) | Intelligent integral power switch amount monitoring module | |
CN203241986U (en) | Remote control device for domestic server | |
CN104460661A (en) | Remote debugging system capable of conducting remote outage resetting and remote monitoring | |
CN102751142A (en) | Power supply control circuit for relay driving module | |
CN106371346A (en) | NEXT system real-time monitoring system based on ARM | |
CN204241953U (en) | The remote debugging system of long-range turn-off reset and remote monitoring can be carried out | |
CN206003088U (en) | The multi-bus interface circuit of magnetostrictive displacement sensor | |
CN103872890B (en) | Switching power supply circuit with short-circuit protection function | |
CN204347524U (en) | Based on the embedded eight road remote controls of Ethernet | |
CN206975450U (en) | A kind of mbus circuits of opto-electrical direct reader | |
CN207117305U (en) | A kind of data acquisition equipment | |
CN104991198A (en) | Battery tour inspection processing circuit based on ARM platform multichannel switching | |
CN204695144U (en) | A kind of power equipment outdoor case environment real-time monitoring system | |
CN204425346U (en) | Optical fiber serial connection equipment Hot Spare protection system | |
CN203587764U (en) | Breaker monitoring device | |
CN102608994A (en) | Running state simulation circuit for transformer cooling device | |
CN108108318B (en) | TTL changes MBUS communication terminal | |
CN205790747U (en) | The supply socket of intelligentized control method | |
CN205158056U (en) | Wireless level output control terminal | |
CN218003551U (en) | Programmable controller with electric quantity metering and load identification functions | |
CN106600944A (en) | Remote meter reading system based on RS485 bus | |
CN204041249U (en) | Oil-fired power generating unit control gear | |
CN103364632A (en) | Intelligent digital display instrument |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |