CN104460660B - Remote debugger for remote debugging system - Google Patents
Remote debugger for remote debugging system Download PDFInfo
- Publication number
- CN104460660B CN104460660B CN201410738246.9A CN201410738246A CN104460660B CN 104460660 B CN104460660 B CN 104460660B CN 201410738246 A CN201410738246 A CN 201410738246A CN 104460660 B CN104460660 B CN 104460660B
- Authority
- CN
- China
- Prior art keywords
- pin
- resistance
- electric capacity
- interface
- remote
- 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.)
- Active
Links
- 239000013078 crystal Substances 0.000 claims description 42
- 238000004891 communication Methods 0.000 claims description 10
- 230000005611 electricity Effects 0.000 claims 3
- 238000012544 monitoring process Methods 0.000 abstract description 19
- 239000003990 capacitor Substances 0.000 description 90
- 238000010586 diagram Methods 0.000 description 21
- 238000007726 management method Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000000034 method Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
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
本发明公开了一种用于远程调试系统的远程调试器,包括一个网络通信器和多个执行器,所述多个执行器中的每一个执行器通过RS232总线和电源线连接一个被调试设备;所述网络通信器包括单片机U1、RS232接口电路、RS485接口电路、电源电路、用于控制执行器的电源通断的电源控制电路、IIC接口、RJ45接口和调试程序下载电路;执行器包括微处理器U9、串口导通控制电路、IIC接口、电源接口和被控设备电源控制电路。本发明的用于远程调试系统的远程调试器,具有可对设备进行远程停电复位和远程监控、实现设备的远程管理和状态监测、提升了企业安全指标,提高了工作效率等优点。
The invention discloses a remote debugger for a remote debugging system, comprising a network communicator and a plurality of executors, each of the plurality of executors is connected to a device to be debugged through an RS232 bus and a power line ; The network communicator includes a single-chip microcomputer U1, an RS232 interface circuit, an RS485 interface circuit, a power supply circuit, a power supply control circuit for controlling the on-off power supply of the actuator, an IIC interface, an RJ45 interface and a debugging program download circuit; the actuator includes a micro Processor U9, serial port conduction control circuit, IIC interface, power interface and controlled device power control circuit. The remote debugger for a remote debugging system of the present invention has the advantages of being able to perform remote power failure reset and remote monitoring of equipment, realize remote management and status monitoring of equipment, improve enterprise safety indicators, and improve work efficiency.
Description
技术领域technical field
本发明涉及一种用于远程调试系统的远程调试器。The invention relates to a remote debugger for a remote debugging system.
背景技术Background technique
目前在线运行的部分通信设备由于各种原因,存在死机现象,这部分设备一般具有232或485接口,但由于不具备网络远程操作功能,每次死机现象出现,工作人员必须赶赴现场对设备进行停电复位操作,如果碰到一些偏远站点,故障处理耗时较长,操作不便,影响企业安全指标,同时不利于工作效率的提高。At present, some communication devices running online have crashes due to various reasons. These devices generally have 232 or 485 interfaces, but because they do not have the function of network remote operation, every time a crash occurs, the staff must rush to the scene to cut off the power of the equipment For the reset operation, if you encounter some remote sites, the troubleshooting will take a long time and the operation will be inconvenient, which will affect the security indicators of the enterprise and is not conducive to the improvement of work efficiency.
发明内容Contents of the invention
本发明是为避免上述已有技术中存在的不足之处,提供一种用于远程调试系统的远程调试器,以对设备进行远程停电复位和远程监控、实现设备的远程管理和状态监测。The present invention provides a remote debugger for a remote debugging system in order to avoid the disadvantages of the above-mentioned prior art, so as to perform remote power failure reset and remote monitoring of equipment, and realize remote management and status monitoring of equipment.
本发明为解决技术问题采用以下技术方案。The present invention adopts the following technical solutions to solve the technical problems.
如图1所示,用于远程调试系统的远程调试器,其结构特点是,包括一个网络通讯器和多个执行器,所述多个执行器中的每一个执行器通过RS232总线和电源线连接一个被调试设备;As shown in Figure 1, the remote debugger for the remote debugging system is characterized in that it includes a network communicator and a plurality of executors, and each executor in the plurality of executors passes through the RS232 bus and the power line Connect a debugged device;
所述网络通讯器包括单片机U1、RS232接口电路、RS485接口电路、电源电路、用于控制执行器的电源通断的电源控制电路、IIC接口、RJ45接口和调试程序下载电路;执行器包括微处理器U9、串口导通控制电路、IIC接口、电源接口和被控设备电源控制电路;The network communicator includes a single-chip microcomputer U1, an RS232 interface circuit, an RS485 interface circuit, a power supply circuit, a power supply control circuit for controlling the power on and off of the actuator, an IIC interface, an RJ45 interface, and a debugging program download circuit; the actuator includes a microprocessor Device U9, serial port conduction control circuit, IIC interface, power interface and controlled device power control circuit;
所述网络通讯器通过所述RJ45接口与远程调试系统的主控计算机相连接;所述网络通讯器的电源控制电路与执行器的电源接口相连接;所述网络通讯器的IIC接口与执行器的IIC接口相连接,所述执行器的串口导通控制电路与网络通讯器的RS232或者RS485相连接。The network communicator is connected with the main control computer of the remote debugging system through the RJ45 interface; the power control circuit of the network communicator is connected with the power interface of the actuator; the IIC interface of the network communicator is connected with the actuator The IIC interface of the actuator is connected, and the serial port conduction control circuit of the actuator is connected with the RS232 or RS485 of the network communicator.
本发明的用于远程调试系统的远程调试器的结构特点也在于:The structural features of the remote debugger for the remote debugging system of the present invention also lie in:
所述执行器的被控设备电源控制电路包括有磁保持继电器RC01,所述主控计算机的投切操作模块与所述磁保持继电器RC01相连接,以使得能够通过主控计算机对远程调试器上的磁保持继电器RC01进行操作,达到控制被调试设备的电源的远程投切。The controlled device power supply control circuit of the actuator includes a magnetic latching relay RC01, and the switching operation module of the main control computer is connected with the magnetic latching relay RC01, so that the remote debugger can be controlled by the main control computer. The magnetic latching relay RC01 is operated to control the remote switching of the power supply of the equipment being debugged.
所述单片机U1上连接有内部时钟电路、外部时钟电路、复位电路和存储单元;所述内部时钟电路包括晶振Y1、电容C42、电容C43、电阻R36、电阻R37;所述外部时钟电路包括晶振Y2、电容C44、电容C45、电阻R52;所述复位电路包括电容C1、电阻R13和开关S5;所述存储单元包括存储芯片U10;The single-chip microcomputer U1 is connected with an internal clock circuit, an external clock circuit, a reset circuit and a storage unit; the internal clock circuit includes a crystal oscillator Y1, a capacitor C42, a capacitor C43, a resistor R36, and a resistor R37; the external clock circuit includes a crystal oscillator Y2 , a capacitor C44, a capacitor C45, and a resistor R52; the reset circuit includes a capacitor C1, a resistor R13, and a switch S5; the storage unit includes a memory chip U10;
所述电容C42通过所述电阻R36与单片机U1相连接,所述电容C43通过所述电阻R37与单片机U1相连接,所述晶振Y1的一端连接在电容C42和电阻R36之间,晶振Y1的另一端连接在电容C43和电阻R37之间;The capacitor C42 is connected to the single-chip microcomputer U1 through the resistor R36, the capacitor C43 is connected to the single-chip microcomputer U1 through the resistor R37, one end of the crystal oscillator Y1 is connected between the capacitor C42 and the resistor R36, and the other end of the crystal oscillator Y1 One end is connected between the capacitor C43 and the resistor R37;
所述晶振Y2与所述电阻R52相互并联连接后的两端均与所述单片机U1相连接,晶振Y2的一端通过电容C44接地,晶振Y2的另一端通过电容C45接地;Both ends of the crystal oscillator Y2 and the resistor R52 connected in parallel are connected to the microcontroller U1, one end of the crystal oscillator Y2 is grounded through a capacitor C44, and the other end of the crystal oscillator Y2 is grounded through a capacitor C45;
所述电阻R13的一端连接+3.3V电源,所述电阻R13的另一端与所述电容C1的一端连接后与所述单片机U1相连接,所述电容C1的另一端接地;所述开关S5的一端连接在所述电阻R13与所述电容C1之间,所述开关S5的另一端连接所述电容C1的接地一端;One end of the resistor R13 is connected to a +3.3V power supply, the other end of the resistor R13 is connected to one end of the capacitor C1 and then connected to the single-chip microcomputer U1, and the other end of the capacitor C1 is grounded; the switch S5 One end is connected between the resistor R13 and the capacitor C1, and the other end of the switch S5 is connected to the ground end of the capacitor C1;
所述存储芯片U10的与单片机U1相连接。The memory chip U10 is connected to the single chip microcomputer U1.
所述RS485接口电路包括RS485收发器U3、电阻R20、电容C3、电阻R23和接口P1;所述电阻R20、电容C3、电阻R23和接口P1均与所述RS485收发器U3相连接;所述RS485收发器U3与所述单片机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 The transceiver U3 is connected with the single-chip microcomputer U1;
所述RS232接口电路包括RS232收发器U5、电容C31、电容C33、电容C35、电容C37、电容C6、电阻R15、电阻R21、接口P2和9针接口CN5;所述电容C31、电容C33、电容C35、电容C37、电容C6、电阻R15、电阻R21、接口P2和9针接口CN5均与所述RS232收发器U5相连接;所述RS232收发器U5与所述单片机U1相连接。Described RS232 interface circuit comprises RS232 transceiver U5, capacitor C31, capacitor C33, capacitor C35, capacitor C37, capacitor C6, resistor R15, resistor R21, interface P2 and 9 needle interface CN5; Described capacitor C31, capacitor C33, capacitor C35 , capacitor C37, capacitor C6, resistor R15, resistor R21, interface P2 and 9-pin interface CN5 are all connected to the RS232 transceiver U5; the RS232 transceiver U5 is connected to the single chip microcomputer U1.
所述电源电路包括电源芯片ACDC1、电压调节器U11、电容C29、电容C50、电容C51、电容C30;所述电源芯片ACDC1通过接口P6连接外部电源并输出+9V电源,所述电容C29、电容C50均连接在所述电源芯片ACDC1和电压调节器U11之间,所述电源芯片ACDC1和电压调节器U11相连接;所述电容C51和电容C30相互并联后的一端连接在所述电压调节器U11的端子GND上,所述电容C51和电容C30相互并联后的另一端与所述电压调节器U11的端子VOUT和端子NC相连接,并作为电源输出端输出+3.3V电压。The power supply circuit includes a power chip ACDC1, a voltage regulator U11, a capacitor C29, a capacitor C50, a capacitor C51, and a capacitor C30; the power chip ACDC1 is connected to an external power supply through an interface P6 and outputs a +9V power supply, and the capacitor C29, capacitor C50 Both are connected between the power chip ACDC1 and the voltage regulator U11, the power chip ACDC1 is connected to the voltage regulator U11; one end of the capacitor C51 and the capacitor C30 connected in parallel to each other is connected to the voltage regulator U11 On the terminal GND, the other end of the parallel connection of the capacitor C51 and the capacitor C30 is connected with the terminal VOUT and the terminal NC of the voltage regulator U11, and outputs +3.3V voltage as the output terminal of the power supply.
所述执行器电源控制电路包括继电器K1、二极管D1、三极管Q1、电阻R17、电阻R18和电阻R19;所述电阻R18的一端连接单片机U1的管脚PD0,另一端连接三极管Q1的基极;电阻R17的两端分别连接在所述三极管Q1的基极和发射极上,三极管Q1的发射极接地;所述二极管的正极、继电器K1的一端均与所述三极管Q1的集电极相连接,所述二极管的负极、继电器K1的另一端均通过电阻R19连接+9V电源。The actuator power supply control circuit includes a relay K1, a diode D1, a transistor Q1, a resistor R17, a resistor R18 and a resistor R19; one end of the resistor R18 is connected to the pin PD0 of the single-chip microcomputer U1, and the other end is connected to the base of the transistor Q1; The two ends of R17 are respectively connected to the base and the emitter of the triode Q1, and the emitter of the triode Q1 is grounded; the anode of the diode and one end of the relay K1 are connected to the collector of the triode Q1, the The cathode of the diode and the other end of the relay K1 are both connected to the +9V power supply through the resistor R19.
所述调试程序下载电路包括JTAG接口芯片J1、电阻R1~R7;所述电阻R1~R7均与所述JTAG接口芯片J1相连接;所述JTAG接口芯片J1与所述单片机U1相连接。The debugging program downloading circuit includes a JTAG interface chip J1 and resistors R1-R7; the resistors R1-R7 are all connected to the JTAG interface chip J1; the JTAG interface chip J1 is connected to the single-chip microcomputer U1.
所述微处理器U9上连接有晶振单元、上电复位单元和拔码开关地址电路;The microprocessor U9 is connected with a crystal oscillator unit, a power-on reset unit and a dial switch address circuit;
所述晶振单元包括晶振Y3、电容C144、电容C145、电阻R152;所述晶振Y3与所述电阻R152相互并联连接后的两端均与所述微处理器U9相连接,晶振Y3的一端通过电容C144接地,晶振Y3的另一端通过电容C145接地;The crystal oscillator unit includes a crystal oscillator Y3, a capacitor C144, a capacitor C145, and a resistor R152; both ends of the crystal oscillator Y3 and the resistor R152 are connected in parallel to each other with the microprocessor U9, and one end of the crystal oscillator Y3 passes through a capacitor. C144 is grounded, and the other end of crystal oscillator Y3 is grounded through capacitor C145;
所述上电复位单元包括电阻R113、电容C14;所述电阻R113的一端连接+3.3V电源,所述电阻R113的另一端与所述电容C14的一端连接后与所述微处理器U9相连接,所述电容C14的另一端接地;The power-on reset unit includes a resistor R113 and a capacitor C14; one end of the resistor R113 is connected to a +3.3V power supply, and the other end of the resistor R113 is connected to one end of the capacitor C14 and then connected to the microprocessor U9 , the other end of the capacitor C14 is grounded;
所述拔码开关地址电路包括拔码开关S1、电阻R19~R22;所述拔码开关S1与所述微处理器U9相连接,所述电阻R19~电阻R22的一端连接+3.3V电源,另一端连接在拔码开关S1与所述微处理器U9之间。The address circuit of the dialing switch includes a dialing switch S1 and resistors R19 to R22; the dialing switch S1 is connected to the microprocessor U9, one end of the resistors R19 to R22 is connected to a +3.3V power supply, and the other One end is connected between the DIP switch S1 and the microprocessor U9.
所述串口导通控制电路包括接口P01、接口P3、继电器K01、二极管D01、三极管Q01、电阻R017、电阻R018和电阻R019;The serial port conduction control circuit includes an interface P01, an interface P3, a relay K01, a diode D01, a triode Q01, a resistor R017, a resistor R018 and a resistor R019;
所述电阻R018的一端连接微处理器U9的管脚PB8,另一端连接三极管Q01的基极;电阻R017的两端分别连接在所述三极管Q01的基极和发射极上,三极管Q01的发射极接地;所述二极管D01的正极、继电器K01的一端均与所述三极管Q01的集电极相连接,所述二极管D01的负极、继电器K01的另一端均通过电阻R019连接+9V电源;One end of the resistor R018 is connected to the pin PB8 of the microprocessor U9, and the other end is connected to the base of the triode Q01; grounding; the anode of the diode D01 and one end of the relay K01 are connected to the collector of the triode Q01, and the cathode of the diode D01 and the other end of the relay K01 are connected to a +9V power supply through a resistor R019;
所述三极管Q01的发射极与所述接口P3相连接;所述接口P01、接口P3连接在所述继电器K01的两端;当继电器K01导通时,接口P01、接口P3之间相连通。The emitter of the triode Q01 is connected to the interface P3; the interface P01 and the interface P3 are connected to both ends of the relay K01; when the relay K01 is turned on, the interface P01 and the interface P3 are connected.
所述被控设备电源控制电路包括继电器K2、二极管D2、三极管Q2、电阻R81、电阻R80、电阻R79、继电器K3、二极管D3、三极管Q3、电阻R82、电阻R77、电阻R78、电容C103、电阻R25、磁保持继电器RC01和接口P5;The controlled device power supply control circuit includes a relay K2, a diode D2, a transistor Q2, a resistor R81, a resistor R80, a resistor R79, a relay K3, a diode D3, a transistor Q3, a resistor R82, a resistor R77, a resistor R78, a capacitor C103, and a resistor R25 , Magnetic latching relay RC01 and interface P5;
所述电阻R80的一端连接微处理器U9的管脚PB9,另一端连接三极管Q2的基极;电阻R79的两端分别连接在所述三极管Q2的基极和发射极上,三极管Q2的发射极接地;所述二极管D2的正极、继电器K2的一端均与所述三极管Q2的集电极相连接,所述二极管D2的负极、继电器K2的另一端均通过电阻R81连接+9V电源;One end of the resistor R80 is connected to the pin PB9 of the microprocessor U9, and the other end is connected to the base of the transistor Q2; the two ends of the resistor R79 are respectively connected to the base and the emitter of the transistor Q2, and the emitter of the transistor Q2 grounding; the anode of the diode D2 and one end of the relay K2 are connected to the collector of the triode Q2, and the cathode of the diode D2 and the other end of the relay K2 are connected to a +9V power supply through a resistor R81;
所述电阻R78的一端连接微处理器U9的管脚PB10,另一端连接三极管Q3的基极;电阻R77的两端分别连接在所述三极管Q3的基极和发射极上,三极管Q3的发射极接地;所述二极管D3的正极、继电器K3的一端均与所述三极管Q3的集电极相连接,所述二极管D3的负极、继电器K3的另一端均通过电阻R82连接+9V电源;One end of the resistor R78 is connected to the pin PB10 of the microprocessor U9, and the other end is connected to the base of the transistor Q3; the two ends of the resistor R77 are respectively connected to the base and the emitter of the transistor Q3, and the emitter of the transistor Q3 grounding; the anode of the diode D3 and one end of the relay K3 are connected to the collector of the triode Q3, and the cathode of the diode D3 and the other end of the relay K3 are connected to a +9V power supply through a resistor R82;
所述继电器K2、继电器K3均与所述磁保持继电器RC01相连接,所述电阻R25与所述电容C103相互串联连接后连接在磁保持继电器RC01的引脚1和引脚2之间,电阻R25连接磁保持继电器RC01的引脚1,电容C103连接磁保持继电器RC01的引脚2;所述接口P5的引脚1和引脚2分别连接磁保持继电器RC01的引脚3和引脚4。Both the relay K2 and the relay K3 are connected to the magnetic latching relay RC01, the resistor R25 and the capacitor C103 are connected in series with each other and then connected between pin 1 and pin 2 of the magnetic latching relay RC01, and the resistor R25 Connect pin 1 of the magnetic latching relay RC01, capacitor C103 connects pin 2 of the magnetic latching relay RC01; pin 1 and pin 2 of the interface P5 are respectively connected to pin 3 and pin 4 of the magnetic latching relay RC01.
与已有技术相比,本发明有益效果体现在:Compared with the prior art, the beneficial effects of the present invention are reflected in:
本发明的用于远程调试系统的远程调试器,包括一台主控计算机和多个远程调试器;所述主控计算机上设置有网络连接模块、数据搬运模块、投切操作模块、主控RS232接口和主控RS485接口;所述主控计算机和所述远程调试器之间通过计算机网络通道相连通;所述远程调试器包括网络通讯器和执行器。The remote debugger for the remote debugging system of the present invention includes a main control computer and a plurality of remote debuggers; the main control computer is provided with a network connection module, a data handling module, a switching operation module, a main control RS232 interface and main control RS485 interface; the main control computer and the remote debugger are connected through a computer network channel; the remote debugger includes a network communicator and an executor.
通过远程控制,对站点中受控的设备进行远程停电复位和监测,实现对只具备当地监控功能的设备的远程管理和状态监测,操作方便,提升了企业安全指标,提高了工作效率。Through remote control, remote power failure reset and monitoring are performed on the controlled equipment in the site to realize remote management and status monitoring of equipment that only has local monitoring functions. It is easy to operate, improves enterprise security indicators, and improves work efficiency.
本发明的用于远程调试系统的远程调试器,具有可对设备进行远程停电复位和远程监控、实现设备的远程管理和状态监测、提升了企业安全指标,提高了工作效率等优点。The remote debugger for a remote debugging system of the present invention has the advantages of being able to perform remote power failure reset and remote monitoring of equipment, realize remote management and status monitoring of equipment, improve enterprise safety indicators, and improve work efficiency.
附图说明Description of drawings
图1为本发明的远程调试器的结构框图。FIG. 1 is a structural block diagram of the remote debugger of the present invention.
图2为设置了本发明的远程调试器的远程调试系统的结构框图。Fig. 2 is a structural block diagram of a remote debugging system provided with a remote debugger of the present invention.
图3为本发明的远程调试器的网络通讯器的单片机U1的电路图。FIG. 3 is a circuit diagram of the single-chip microcomputer U1 of the network communicator of the remote debugger of the present invention.
图4为本发明的远程调试器的网络通讯器的RS485接口电路的电路图。4 is a circuit diagram of the RS485 interface circuit of the network communicator of the remote debugger of the present invention.
图5为本发明的远程调试器的网络通讯器的RS232接口电路的电路图。5 is a circuit diagram of the RS232 interface circuit of the network communicator of the remote debugger of the present invention.
图6为本发明的远程调试器的网络通讯器的电源电路的电路图。FIG. 6 is a circuit diagram of the power supply circuit of the network communicator of the remote debugger of the present invention.
图7为本发明的远程调试器的网络通讯器的执行器电源控制电路的电路图。7 is a circuit diagram of the actuator power control circuit of the network communicator of the remote debugger of the present invention.
图8为本发明的远程调试器的网络通讯器的调试程序下载电路的电路图。FIG. 8 is a circuit diagram of the debugging program downloading circuit of the network communicator of the remote debugger of the present invention.
图9为本发明的远程调试器的执行器的微处理器U9的电路图。FIG. 9 is a circuit diagram of the microprocessor U9 of the actuator of the remote debugger of the present invention.
图10为本发明的远程调试器的执行器的串口导通控制电路的电路图。FIG. 10 is a circuit diagram of the serial port conduction control circuit of the actuator of the remote debugger of the present invention.
图11为本发明的远程调试器的执行器的被控设备电源控制电路的电路图。FIG. 11 is a circuit diagram of the controlled device power control circuit of the actuator of the remote debugger of the present invention.
图12为本发明的远程调试器的执行器的调试电路接口的电路图。FIG. 12 is a circuit diagram of the debugging circuit interface of the actuator of the remote debugger of the present invention.
以下通过具体实施方式,并结合附图对本发明作进一步说明。The present invention will be further described below through specific embodiments and in conjunction with the accompanying drawings.
具体实施方式detailed description
参见附图1-12,本发明的用于远程调试系统的远程调试器,如图1所示,包括一个网络通讯器和多个执行器,所述多个执行器中的每一个执行器通过RS232总线和电源线连接一个被调试设备;Referring to accompanying drawings 1-12, the remote debugger for the remote debugging system of the present invention, as shown in Figure 1, includes a network communicator and a plurality of executors, and each executor in the plurality of executors passes The RS232 bus and the power line are connected to a device to be debugged;
所述网络通讯器包括单片机U1、RS232接口电路、RS485接口电路、电源电路、用于控制执行器的电源通断的电源控制电路、IIC接口、RJ45接口和调试程序下载电路;执行器包括微处理器U9、串口导通控制电路、IIC接口、电源接口和被控设备电源控制电路;The network communicator includes a single-chip microcomputer U1, an RS232 interface circuit, an RS485 interface circuit, a power supply circuit, a power supply control circuit for controlling the power on and off of the actuator, an IIC interface, an RJ45 interface, and a debugging program download circuit; the actuator includes a microprocessor Device U9, serial port conduction control circuit, IIC interface, power interface and controlled device power control circuit;
所述网络通讯器通过所述RJ45接口与远程调试系统的主控计算机相连接;所述网络通讯器的电源控制电路与执行器的电源接口相连接;所述网络通讯器的IIC接口与执行器的IIC接口相连接,所述执行器的串口导通控制电路与网络通讯器的RS232或者RS485相连接。The network communicator is connected with the main control computer of the remote debugging system through the RJ45 interface; the power control circuit of the network communicator is connected with the power interface of the actuator; the IIC interface of the network communicator is connected with the actuator The IIC interface of the actuator is connected, and the serial port conduction control circuit of the actuator is connected with the RS232 or RS485 of the network communicator.
所述执行器的被控设备电源控制电路包括有磁保持继电器RC01,所述主控计算机的投切操作模块与所述磁保持继电器RC01相连接,以使得能够通过主控计算机对远程调试器上的磁保持继电器RC01进行操作,达到控制被调试设备的电源的远程投切。The controlled device power supply control circuit of the actuator includes a magnetic latching relay RC01, and the switching operation module of the main control computer is connected with the magnetic latching relay RC01, so that the remote debugger can be controlled by the main control computer. The magnetic latching relay RC01 is operated to control the remote switching of the power supply of the equipment being debugged.
所述单片机U1上连接有内部时钟电路、外部时钟电路、复位电路和存储单元;所述内部时钟电路包括晶振Y1、电容C42、电容C43、电阻R36、电阻R37;所述外部时钟电路包括晶振Y2、电容C44、电容C45、电阻R52;所述复位电路包括电容C1、电阻R13和开关S5;所述存储单元包括存储芯片U10;The single-chip microcomputer U1 is connected with an internal clock circuit, an external clock circuit, a reset circuit and a storage unit; the internal clock circuit includes a crystal oscillator Y1, a capacitor C42, a capacitor C43, a resistor R36, and a resistor R37; the external clock circuit includes a crystal oscillator Y2 , a capacitor C44, a capacitor C45, and a resistor R52; the reset circuit includes a capacitor C1, a resistor R13, and a switch S5; the storage unit includes a memory chip U10;
所述电容C42通过所述电阻R36与单片机U1相连接,所述电容C43通过所述电阻R37与单片机U1相连接,所述晶振Y1的一端连接在电容C42和电阻R36之间,晶振Y1的另一端连接在电容C43和电阻R37之间;The capacitor C42 is connected to the single-chip microcomputer U1 through the resistor R36, the capacitor C43 is connected to the single-chip microcomputer U1 through the resistor R37, one end of the crystal oscillator Y1 is connected between the capacitor C42 and the resistor R36, and the other end of the crystal oscillator Y1 One end is connected between the capacitor C43 and the resistor R37;
所述晶振Y2与所述电阻R52相互并联连接后的两端均与所述单片机U1相连接,晶振Y2的一端通过电容C44接地,晶振Y2的另一端通过电容C45接地;Both ends of the crystal oscillator Y2 and the resistor R52 connected in parallel are connected to the microcontroller U1, one end of the crystal oscillator Y2 is grounded through a capacitor C44, and the other end of the crystal oscillator Y2 is grounded through a capacitor C45;
所述电阻R13的一端连接+3.3V电源,所述电阻R13的另一端与所述电容C1的一端连接后与所述单片机U1相连接,所述电容C1的另一端接地;所述开关S5的一端连接在所述电阻R13与所述电容C1之间,所述开关S5的另一端连接所述电容C1的接地一端;One end of the resistor R13 is connected to a +3.3V power supply, the other end of the resistor R13 is connected to one end of the capacitor C1 and then connected to the single-chip microcomputer U1, and the other end of the capacitor C1 is grounded; the switch S5 One end is connected between the resistor R13 and the capacitor C1, and the other end of the switch S5 is connected to the ground end of the capacitor C1;
所述存储芯片U10的与单片机U1相连接。The memory chip U10 is connected to the single chip microcomputer U1.
如图3为本发明的远程调试系统的网络通讯器的单片机U1的电路图。其中,单片机U1是STM32F107VCT6单片机,Y2、C44、C45和R52组成U1的晶振单元,C1、R13和S5组成上电复位及手动复位单元,Y1、C42、C43、R36、R37组成U1的内部时钟基准晶振单元。所述单片机U1优选STM32F107VCT6。STM32系列基于专为要求高性能、低成本、低功耗的嵌入式应用专门设计的ARM Cortex-M内核,集成了各种高性能工业标准接口,且STM32不同型号产品在引脚和软件上具有完美的兼容性,可以轻松适应更多的应用。FIG. 3 is a circuit diagram of the single-chip microcomputer U1 of the network communicator of the remote debugging system of the present invention. Among them, the single-chip microcomputer U1 is a STM32F107VCT6 single-chip microcomputer, Y2, C44, C45 and R52 form the crystal oscillator unit of U1, C1, R13 and S5 form the power-on reset and manual reset unit, and Y1, C42, C43, R36, R37 form the internal clock reference of U1 Crystal unit. The SCM U1 is preferably STM32F107VCT6. The STM32 series is based on the ARM Cortex-M core specially designed for embedded applications requiring high performance, low cost, and low power consumption. Perfect compatibility, can easily adapt to more applications.
所述RS485接口电路包括RS485收发器U3、电阻R20、电容C3、电阻R23和接口P1;所述电阻R20、电容C3、电阻R23和接口P1均与所述RS485收发器U3相连接;所述RS485收发器U3与所述单片机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 The transceiver U3 is connected with the single-chip microcomputer U1;
所述RS232接口电路包括RS232收发器U5、电容C31、电容C33、电容C35、电容C37、电容C6、电阻R15、电阻R21、接口P2和9针接口CN5;所述电容C31、电容C33、电容C35、电容C37、电容C6、电阻R15、电阻R21、接口P2和9针接口CN5均与所述RS232收发器U5相连接;所述RS232收发器U5与所述单片机U1相连接。Described RS232 interface circuit comprises RS232 transceiver U5, capacitor C31, capacitor C33, capacitor C35, capacitor C37, capacitor C6, resistor R15, resistor R21, interface P2 and 9 needle interface CN5; Described capacitor C31, capacitor C33, capacitor C35 , capacitor C37, capacitor C6, resistor R15, resistor R21, interface P2 and 9-pin interface CN5 are all connected to the RS232 transceiver U5; the RS232 transceiver U5 is connected to the single chip microcomputer U1.
如图4为本发明的远程调试系统的网络通讯器的RS485接口电路的电路图。图5为本发明的远程调试系统的网络通讯器的RS232接口电路的电路图。其中,U3、R20、C3、R23组成485接口的485接口通讯电路。U5、C31、C33、C35、C37、C6、R15、R21组成232串口通讯电路。U3优选SP3485,SP3485是+3.3V电源的半双工收发器,符合RS-485和RS-422串行协议标准。SP3485采用差分输入、平衡输出方式,输出、输入共用一对线路,数据传输速率可高达10Mbps(带负载)。FIG. 4 is a circuit diagram of the RS485 interface circuit of the network communicator of the remote debugging system of the present invention. 5 is a circuit diagram of the RS232 interface circuit of the network communicator of the remote debugging system of the present invention. Among them, U3, R20, C3, and R23 form the 485 interface communication circuit of the 485 interface. U5, C31, C33, C35, C37, C6, R15, R21 form a 232 serial port communication circuit. U3 prefers SP3485, SP3485 is a half-duplex transceiver with +3.3V power supply, which conforms to RS-485 and RS-422 serial protocol standards. SP3485 adopts differential input and balanced output mode, the output and input share a pair of lines, and the data transmission rate can be as high as 10Mbps (with load).
U5优选MAX3232,MAX3232采用专有低压差发送器输出级,利用双电荷泵在3.0V至5.5V电源供电时能够实现真正的RS-232性能,器件仅需四个0.1uF的外部小尺寸电荷泵电容。max3232确保在120kbps数据速率,同时保持RS-232输出电平。U5 prefers MAX3232, MAX3232 uses a proprietary low-dropout transmitter output stage, and uses dual charge pumps to achieve true RS-232 performance when powered by a 3.0V to 5.5V power supply. The device only needs four 0.1uF external small-size charge pumps capacitance. The max3232 ensures data rates at 120kbps while maintaining RS-232 output levels.
所述电源电路包括电源芯片ACDC1、电压调节器U11、电容C29、电容C50、电容C51、电容C30;所述电源芯片ACDC1通过接口P6连接外部电源并输出+9V电源,所述电容C29、电容C50均连接在所述电源芯片ACDC1和电压调节器U11之间,所述电源芯片ACDC1和电压调节器U11相连接;所述电容C51和电容C30相互并联后的一端连接在所述电压调节器U11的端子GND上,所述电容C51和电容C30相互并联后的另一端与所述电压调节器U11的端子VOUT和端子NC相连接,并作为电源输出端输出+3.3V电压。The power supply circuit includes a power chip ACDC1, a voltage regulator U11, a capacitor C29, a capacitor C50, a capacitor C51, and a capacitor C30; the power chip ACDC1 is connected to an external power supply through an interface P6 and outputs a +9V power supply, and the capacitor C29, capacitor C50 Both are connected between the power chip ACDC1 and the voltage regulator U11, the power chip ACDC1 is connected to the voltage regulator U11; one end of the capacitor C51 and the capacitor C30 connected in parallel to each other is connected to the voltage regulator U11 On the terminal GND, the other end of the parallel connection of the capacitor C51 and the capacitor C30 is connected with the terminal VOUT and the terminal NC of the voltage regulator U11, and outputs +3.3V voltage as the output terminal of the power supply.
如图6为本发明的远程调试系统的网络通讯器的电源电路的电路图。其中,ACDC1、U11、C29、C50、C51、C30组成电源电路,P6连接外部220V市电交流电源,ACDC1是交流220V转直流电源模块,直接输出9V直流,U11产生第二个直流电源,输出3.3V,供系统中各芯片使用。U11优选LM1117-3.3,用于输出直流+3.3V电压。LM1117是一个低压差电压调节器系列。其压差在1.2V输出,负载电流为800mA时为1.2V。LM1117有可调电压的版本,通过2个外部电阻可实现1.25~13.8V输出电压范围。另外还有5个固定电压输出(1.8V、2.5V、2.85V、3.3V和5V)的型号。FIG. 6 is a circuit diagram of the power supply circuit of the network communicator of the remote debugging system of the present invention. Among them, ACDC1, U11, C29, C50, C51, and C30 form a power supply circuit, P6 is connected to an external 220V mains AC power supply, ACDC1 is an AC 220V to DC power supply module, and directly outputs 9V DC, and U11 generates a second DC power supply with an output of 3.3 V, used by each chip in the system. U11 is preferably LM1117-3.3, which is used to output DC +3.3V voltage. The LM1117 is a family of low dropout voltage regulators. Its dropout voltage is output at 1.2V, and it is 1.2V when the load current is 800mA. The LM1117 has an adjustable voltage version, which can achieve an output voltage range of 1.25 to 13.8V through 2 external resistors. There are also 5 fixed voltage output (1.8V, 2.5V, 2.85V, 3.3V and 5V) models.
所述执行器电源控制电路包括继电器K1、二极管D1、三极管Q1、电阻R17、电阻R18和电阻R19;所述电阻R18的一端连接单片机U1的管脚PD0,另一端连接三极管Q1的基极;电阻R17的两端分别连接在所述三极管Q1的基极和发射极上,三极管Q1的发射极接地;所述二极管的正极、继电器K1的一端均与所述三极管Q1的集电极相连接,所述二极管的负极、继电器K1的另一端均通过电阻R19连接+9V电源。The actuator power supply control circuit includes a relay K1, a diode D1, a transistor Q1, a resistor R17, a resistor R18 and a resistor R19; one end of the resistor R18 is connected to the pin PD0 of the single-chip microcomputer U1, and the other end is connected to the base of the transistor Q1; The two ends of R17 are respectively connected to the base and the emitter of the triode Q1, and the emitter of the triode Q1 is grounded; the anode of the diode and one end of the relay K1 are connected to the collector of the triode Q1, the The cathode of the diode and the other end of the relay K1 are both connected to the +9V power supply through the resistor R19.
图7为本发明的远程调试系统的网络通讯器的执行器的电源控制电路的电路图。K1、D1、Q1、R17、R18、R19组成对执行器的电源控制电路,当PD0为高电平时,K1继电器吸合,执行器电源导通。7 is a circuit diagram of the power control circuit of the actuator of the network communicator of the remote debugging system of the present invention. K1, D1, Q1, R17, R18, and R19 form the power control circuit for the actuator. When PD0 is at high level, the K1 relay pulls in and the actuator power is turned on.
所述调试程序下载电路包括JTAG接口芯片J1、电阻R1~R7;所述电阻R1~R7均与所述JTAG接口芯片J1相连接;所述JTAG接口芯片J1与所述单片机U1相连接。如图8为本发明的远程调试系统的网络通讯器的调试程序下载电路的电路图。J1、R1、R2、R3、R4、R5、R6、R7组成调试程序下载电路,用于程序的下载和调试。The debugging program downloading circuit includes a JTAG interface chip J1 and resistors R1-R7; the resistors R1-R7 are all connected to the JTAG interface chip J1; the JTAG interface chip J1 is connected to the single-chip microcomputer U1. FIG. 8 is a circuit diagram of the debugging program downloading circuit of the network communicator of the remote debugging system of the present invention. J1, R1, R2, R3, R4, R5, R6, R7 form a debugging program download circuit for program downloading and debugging.
网络通讯器的调试电路接口是J1接线端子,同时还接供一个RS232对外的调试端口,即图5的RS232接口电路中的CN5接线端子。网络通讯器与执行器的连接分二种情况,一种是被调试设备是RS232端口时,另一种是被调试器是RS485端口。若被调试设备是RS232端口,连接方式是网络通讯器的RS232接口电路的P2接线端子与执行器的串口导通控制电路(如图10)的P01接线端子连接。若被调试设备是RS485端口,连接方式是网络通讯器的RS485接口电路的接口P1接线端子与执行器的串口导通控制电路(如图10)的P01接线端子连接。The debugging circuit interface of the network communicator is the J1 terminal, and at the same time it is also connected to an RS232 external debugging port, that is, the CN5 terminal in the RS232 interface circuit in Figure 5. There are two cases for the connection between the network communicator and the actuator, one is when the debugged device is an RS232 port, and the other is when the debugged device is an RS485 port. If the device to be debugged is an RS232 port, the connection method is to connect the P2 terminal of the RS232 interface circuit of the network communicator to the P01 terminal of the serial port conduction control circuit of the actuator (as shown in Figure 10). If the device to be debugged is an RS485 port, the connection method is to connect the interface P1 terminal of the RS485 interface circuit of the network communicator to the P01 terminal of the serial port conduction control circuit of the actuator (as shown in Figure 10).
执行器与网络通讯器的连接是执行器的P01接线端子与网络通讯器的P1或P2接线端子连接,执行器的电源由P01接线端子引入。The connection between the actuator and the network communicator is that the P01 terminal of the actuator is connected with the P1 or P2 terminal of the network communicator, and the power supply of the actuator is introduced from the P01 terminal.
所述微处理器U9上连接有晶振单元、上电复位单元和拔码开关地址电路;The microprocessor U9 is connected with a crystal oscillator unit, a power-on reset unit and a dial switch address circuit;
所述晶振单元包括晶振Y3、电容C144、电容C145、电阻R152;所述晶振Y3与所述电阻R152相互并联连接后的两端均与所述微处理器U9相连接,晶振Y3的一端通过电容C144接地,晶振Y3的另一端通过电容C145接地;The crystal oscillator unit includes a crystal oscillator Y3, a capacitor C144, a capacitor C145, and a resistor R152; both ends of the crystal oscillator Y3 and the resistor R152 are connected in parallel to each other with the microprocessor U9, and one end of the crystal oscillator Y3 passes through a capacitor. C144 is grounded, and the other end of crystal oscillator Y3 is grounded through capacitor C145;
所述上电复位单元包括电阻R113、电容C14;所述电阻R113的一端连接+3.3V电源,所述电阻R113的另一端与所述电容C14的一端连接后与所述微处理器U9相连接,所述电容C14的另一端接地;The power-on reset unit includes a resistor R113 and a capacitor C14; one end of the resistor R113 is connected to a +3.3V power supply, and the other end of the resistor R113 is connected to one end of the capacitor C14 and then connected to the microprocessor U9 , the other end of the capacitor C14 is grounded;
所述拔码开关地址电路包括拔码开关S1、电阻R19~R22;所述拔码开关S1与所述微处理器U9相连接,所述电阻R19~电阻R22的一端连接+3.3V电源,另一端连接在拔码开关S1与所述微处理器U9之间。The address circuit of the dialing switch includes a dialing switch S1 and resistors R19 to R22; the dialing switch S1 is connected to the microprocessor U9, one end of the resistors R19 to R22 is connected to a +3.3V power supply, and the other One end is connected between the DIP switch S1 and the microprocessor U9.
如图9为本发明的远程调试系统的执行器的微处理器U9的电路图。微处理器U9采用的是STM32F101C6T6芯片,Y3、C144、C145、R152构成U9的晶振单元。R113、C14组成上电复位单元。S1、R19、R20、R21、R22组成拔码开关地址,用于设定执行器的地址。FIG. 9 is a circuit diagram of the microprocessor U9 of the actuator of the remote debugging system of the present invention. The microprocessor U9 uses the STM32F101C6T6 chip, and Y3, C144, C145, and R152 constitute the crystal oscillator unit of U9. R113 and C14 form a power-on reset unit. S1, R19, R20, R21, R22 form the address of the DIP switch, which is used to set the address of the actuator.
所述串口导通控制电路包括接口P01、接口P3、继电器K01、二极管D01、三极管Q01、电阻R017、电阻R018和电阻R019;The serial port conduction control circuit includes an interface P01, an interface P3, a relay K01, a diode D01, a triode Q01, a resistor R017, a resistor R018 and a resistor R019;
所述电阻R018的一端连接微处理器U9的管脚PB8,另一端连接三极管Q01的基极;电阻R017的两端分别连接在所述三极管Q01的基极和发射极上,三极管Q01的发射极接地;所述二极管D01的正极、继电器K01的一端均与所述三极管Q01的集电极相连接,所述二极管D01的负极、继电器K01的另一端均通过电阻R019连接+9V电源;One end of the resistor R018 is connected to the pin PB8 of the microprocessor U9, and the other end is connected to the base of the triode Q01; grounding; the anode of the diode D01 and one end of the relay K01 are connected to the collector of the triode Q01, and the cathode of the diode D01 and the other end of the relay K01 are connected to a +9V power supply through a resistor R019;
所述三极管Q01的发射极与所述接口P3相连接;所述接口P01、接口P3连接在所述继电器K01的两端;当继电器K01导通时,接口P01、接口P3之间相连通。The emitter of the triode Q01 is connected to the interface P3; the interface P01 and the interface P3 are connected to both ends of the relay K01; when the relay K01 is turned on, the interface P01 and the interface P3 are connected.
如图10为本发明的远程调试系统的执行器的串口导通控制电路的电路图。K01、D01、Q01、R017、R018、R019、P3、P01组成串口导通电路,当执行器接收到上位机,要求将被控设备的串口与网络通讯器直连时,U9的PB8输出高电平,K01继电器吸合,P3的1、2端口与P01的5、6端口对应导通,将被控设备的串口与网络通讯器直连,完成串口通讯导通工作。FIG. 10 is a circuit diagram of the serial port conduction control circuit of the actuator of the remote debugging system of the present invention. K01, D01, Q01, R017, R018, R019, P3, and P01 form a serial port conduction circuit. When the actuator receives the upper computer and requests to directly connect the serial port of the controlled device to the network communicator, PB8 of U9 outputs a high power Ping, the K01 relay pulls in, the 1 and 2 ports of P3 and the 5 and 6 ports of P01 are correspondingly conducted, and the serial port of the controlled device is directly connected with the network communicator to complete the serial communication conduction work.
所述被控设备电源控制电路包括继电器K2、二极管D2、三极管Q2、电阻R81、电阻R80、电阻R79、继电器K3、二极管D3、三极管Q3、电阻R82、电阻R77、电阻R78、电容C103、电阻R25、磁保持继电器RC01和接口P5;The controlled device power supply control circuit includes a relay K2, a diode D2, a transistor Q2, a resistor R81, a resistor R80, a resistor R79, a relay K3, a diode D3, a transistor Q3, a resistor R82, a resistor R77, a resistor R78, a capacitor C103, and a resistor R25 , Magnetic latching relay RC01 and interface P5;
所述电阻R80的一端连接微处理器U9的管脚PB9,另一端连接三极管Q2的基极;电阻R79的两端分别连接在所述三极管Q2的基极和发射极上,三极管Q2的发射极接地;所述二极管D2的正极、继电器K2的一端均与所述三极管Q2的集电极相连接,所述二极管D2的负极、继电器K2的另一端均通过电阻R81连接+9V电源;One end of the resistor R80 is connected to the pin PB9 of the microprocessor U9, and the other end is connected to the base of the transistor Q2; the two ends of the resistor R79 are respectively connected to the base and the emitter of the transistor Q2, and the emitter of the transistor Q2 grounding; the anode of the diode D2 and one end of the relay K2 are connected to the collector of the triode Q2, and the cathode of the diode D2 and the other end of the relay K2 are connected to a +9V power supply through a resistor R81;
所述电阻R78的一端连接微处理器U9的管脚PB10,另一端连接三极管Q3的基极;电阻R77的两端分别连接在所述三极管Q3的基极和发射极上,三极管Q3的发射极接地;所述二极管D3的正极、继电器K3的一端均与所述三极管Q3的集电极相连接,所述二极管D3的负极、继电器K3的另一端均通过电阻R82连接+9V电源;One end of the resistor R78 is connected to the pin PB10 of the microprocessor U9, and the other end is connected to the base of the transistor Q3; the two ends of the resistor R77 are respectively connected to the base and the emitter of the transistor Q3, and the emitter of the transistor Q3 grounding; the anode of the diode D3 and one end of the relay K3 are connected to the collector of the triode Q3, and the cathode of the diode D3 and the other end of the relay K3 are connected to a +9V power supply through a resistor R82;
所述继电器K2、继电器K3均与所述磁保持继电器RC01相连接,所述电阻R25与所述电容C103相互串联连接后连接在磁保持继电器RC01的引脚1和引脚2之间,电阻R25连接磁保持继电器RC01的引脚1,电容C103连接磁保持继电器RC01的引脚2;所述接口P5的引脚1和引脚2分别连接磁保持继电器RC01的引脚3和引脚4。Both the relay K2 and the relay K3 are connected to the magnetic latching relay RC01, the resistor R25 and the capacitor C103 are connected in series with each other and then connected between pin 1 and pin 2 of the magnetic latching relay RC01, and the resistor R25 Connect pin 1 of the magnetic latching relay RC01, capacitor C103 connects pin 2 of the magnetic latching relay RC01; pin 1 and pin 2 of the interface P5 are respectively connected to pin 3 and pin 4 of the magnetic latching relay RC01.
K2、D2、Q2、R81、R80、R79、K3、D3、Q3、R82、R77、R78、C103、R25、RC01、P5组成对被控设备(即被调试设备)的交流电源的控制电路,用于为被控设备提供电源。当U9的PB9发一高电平(此时U9的PB10必须是低电平)脉冲时,K2做一次吸合动作,RC01的3、4脚吸合,被控设备的交流电源接通,当U9的PB9是低电平,而PB10发一高电平脉冲后,K3做一次吸合动作,RC01的3、4脚被打开,被控设备的交流电源被关断。K2, D2, Q2, R81, R80, R79, K3, D3, Q3, R82, R77, R78, C103, R25, RC01, P5 form a control circuit for the AC power of the controlled device (that is, the device to be debugged). To provide power to the controlled device. When PB9 of U9 sends a high-level pulse (at this time, PB10 of U9 must be low level), K2 performs a pull-in action, and pins 3 and 4 of RC01 pull in, and the AC power of the controlled device is turned on. PB9 of U9 is at low level, and after PB10 sends a high level pulse, K3 performs a pull-in action, 3 and 4 pins of RC01 are opened, and the AC power of the controlled device is turned off.
执行器为被调试设备提供交流电源接入,连接方式为:执行器接线端子P5的1脚接交流输入电源的地线,P5的2脚接交流输入电源的火线,被调试设备的交流电源输入分别接至执行器接线端子P5的1脚和3脚。执行器通过接线端子P5的1脚和2脚引入交流电源,再通过接线端子P5的1脚和3脚输出交流电源至被调试设备上。The actuator provides AC power access for the equipment to be debugged. The connection method is: pin 1 of the actuator terminal P5 is connected to the ground wire of the AC input power supply, pin 2 of P5 is connected to the live wire of the AC input power supply, and the AC power input of the equipment to be debugged Connect them to pin 1 and pin 3 of the actuator terminal P5 respectively. The actuator introduces AC power through pin 1 and pin 2 of terminal P5, and then outputs AC power to the device to be debugged through pin 1 and pin 3 of terminal P5.
执行器与被调试设备的串口连接:执行器上的P3接线端子与被调试设备的RS485或者RS232接口相连接(485连接时用P3的1、2脚,232连接时用P3的1、2、3脚)。执行器的调试电路接口是J2接线端子。The actuator is connected to the serial port of the device to be debugged: the P3 terminal on the actuator is connected to the RS485 or RS232 interface of the device to be debugged (use 1, 2 pins of P3 for 485 connection, use 1, 2, 2 pins of P3 for 232 connection) 3 feet). The debugging circuit interface of the actuator is the J2 terminal.
执行器的调试电路接口的电路图如图12所示,包括JTAG接口芯片J2、电阻R01~R07。所述电阻R01~R07均与所述JTAG接口芯片J2相连接;所述JTAG接口芯片J2与所述微处理器U9相连接。J2、R01~R07组成执行器的调试电路接口,用于程序的下载和调试。The circuit diagram of the debugging circuit interface of the actuator is shown in Figure 12, including the JTAG interface chip J2 and resistors R01-R07. The resistors R01-R07 are all connected to the JTAG interface chip J2; the JTAG interface chip J2 is connected to the microprocessor U9. J2, R01~R07 form the debugging circuit interface of the actuator, which is used for program download and debugging.
如图2所示,远程调试系统,包括一台主控计算机和多个本发明的远程调试器;所述主控计算机上设置有网络连接模块、数据搬运模块、投切操作模块、主控RS232接口和主控RS485接口;所述主控计算机和所述远程调试器之间通过计算机网络通道相连通;所述远程调试器包括网络通讯器和多个执行器,可监控多个设备,且有较长的响应时间。所述网络连接模块用于为主控计算机与被调设备对应的远程调试器建立网络连接;所述数据搬运模块用于读取调试设备串口所发出的数据并存储至缓冲区,然后将缓冲区内存储的数据发送至网口,延长数据传输距离,实现远程监控;所述投切操作模块用于发送投切等操作指令。网络通道为企业内部网络,用于为主控计算机与远程调试器提供传输通道。As shown in Figure 2, the remote debugging system includes a main control computer and a plurality of remote debuggers of the present invention; the main control computer is provided with a network connection module, a data transfer module, a switching operation module, a main control RS232 interface and the main control RS485 interface; the main control computer and the remote debugger are connected through a computer network channel; the remote debugger includes a network communicator and a plurality of executors, which can monitor multiple devices and have Long response time. The network connection module is used to establish a network connection between the main control computer and the remote debugger corresponding to the adjusted device; the data transfer module is used to read the data sent by the serial port of the debugging device and store it in the buffer, and then store the data in the buffer The data stored in the internal storage is sent to the network port to extend the data transmission distance and realize remote monitoring; the switching operation module is used to send operation commands such as switching. The network channel is the internal network of the enterprise, and is used to provide a transmission channel between the main control computer and the remote debugger.
通过主控计算机的232端口(或485端口)可远程监控远方被控设备的232端口(或485端口),并根据监控设备的端口类型实现远程监控,能够远程控制电源开关,可监测被控设备的带电状态。该发明通过远程控制,对站点中受控的设备进行远程复位、监测和投切控制,实现对只具备当地监控功能的设备的远程管理和状态监测。Through the 232 port (or 485 port) of the main control computer, the 232 port (or 485 port) of the remote controlled device can be remotely monitored, and the remote monitoring can be realized according to the port type of the monitoring device, and the power switch can be controlled remotely, and the controlled device can be monitored charged state. The invention performs remote reset, monitoring and switching control on the controlled equipment in the site through remote control, and realizes remote management and status monitoring of the equipment that only has the local monitoring function.
调试器具备RJ45或485方式联网功能,可远程控制监控设备的电源开关,实行主控计算机与现场设备一对一的监控,经过一个远程调试器中的232接口与被调试设备联接。The debugger has RJ45 or 485 network function, which can remotely control the power switch of the monitoring equipment, implement one-to-one monitoring between the main control computer and the field equipment, and connect with the debugged equipment through a 232 interface in the remote debugger.
(1)调试主机接入主控计算机的232接口,被调试设备接入远程调试器的232接口;(1) The debugging host is connected to the 232 interface of the main control computer, and the debugged device is connected to the 232 interface of the remote debugger;
(2)主控计算机通过网络连接模块与远程调试器建立通信联接,系统利用数据搬运模块通过透传将调试主机和被调试设备联接起来;(2) The main control computer establishes a communication connection with the remote debugger through the network connection module, and the system uses the data transfer module to connect the debugging host and the debugged device through transparent transmission;
(3)当调试主机发送命令后,命令发送至被调试设备的232接口中,被调试设备接到命令后,通过232接口返回响应帧,响应帧再传至调试主机的232接口上,从而实现调试主机与被调试设备的远程调试。(3) After the debugging host sends the command, the command is sent to the 232 interface of the debugged device. After the debugged device receives the command, it returns a response frame through the 232 interface, and the response frame is then transmitted to the 232 interface of the debugging host, thereby realizing Remote debugging between the debugging host and the device being debugged.
(4)操作者也可通过主控计算机对远程调试器上的磁保持继电器RC01的操作,达到控制被调试设备的电源远程投切,使被调试设备具备远程停电复位功能。(4) The operator can also operate the magnetic latching relay RC01 on the remote debugger through the main control computer to control the remote switching of the power supply of the debugged equipment, so that the debugged equipment has the function of remote power failure reset.
网络通讯器与主控计算机是通过RJ45网络接口连接,并将上位机指令转发给执行器。The network communicator is connected to the main control computer through the RJ45 network interface, and forwards the host computer instructions to the actuator.
本发明的用于远程调试系统的远程调试器,通过远程控制,对站点中受控的设备进行远程停电复位和监测,实现对只具备当地监控功能的设备的远程管理和状态监测,操作方便,提升了企业安全指标,提高了工作效率。The remote debugger used in the remote debugging system of the present invention performs remote power failure reset and monitoring on the controlled equipment in the site through remote control, realizes remote management and status monitoring of equipment with only local monitoring functions, and is easy to operate. Improve enterprise security indicators and improve work efficiency.
以上的实施例仅是对本发明的优选实施方式进行描述,并非对本发明的范围进行限定,在不脱离本发明设计精神的前提下,本领域普通工程技术人员对本发明的技术方案做出的各种变形和改进,均应落入本发明的权利要求书确定的保护范围内。The above embodiments are only descriptions of preferred implementations of the present invention, and are not intended to limit the scope of the present invention. On the premise of not departing from the design spirit of the present invention, various technical solutions of the present invention can be made by ordinary engineers and technicians in the field. Variations and improvements should fall within the scope of protection defined by the claims of the present invention.
Claims (8)
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 CN104460660A (en) | 2015-03-25 |
CN104460660B true 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) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105490746A (en) * | 2015-11-27 | 2016-04-13 | 国家电网公司 | Optical terminal equipment remote reset device |
CN108241562A (en) * | 2018-01-02 | 2018-07-03 | 郑州云海信息技术有限公司 | A Design Method of Remote Debugging Applied to Server |
CN109358550A (en) * | 2018-11-01 | 2019-02-19 | 广东粤迪厚创科技发展有限公司 | Detection device and detection method for communication equipment |
CN109739129A (en) * | 2018-12-29 | 2019-05-10 | 盛瑞传动股份有限公司 | Automatic transmission network administration apparatus and method |
Citations (6)
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 | 浙江大学 | Implementation method of KDWP communication connection agent 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 |
CN204215266U (en) * | 2014-12-05 | 2015-03-18 | 国家电网公司 | For the remote debugger of remote debugging system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
-
2014
- 2014-12-05 CN CN201410738246.9A patent/CN104460660B/en active Active
Patent Citations (6)
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 | 浙江大学 | Implementation method of KDWP communication connection agent 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 |
CN204215266U (en) * | 2014-12-05 | 2015-03-18 | 国家电网公司 | For the remote debugger of remote debugging system |
Non-Patent Citations (2)
Title |
---|
ARM嵌入式系统调试技术研究与实现;张群忠;《中国优秀硕士学位论文全文数据库信息科技辑》;20061115(第11期);I138-454 * |
基于网络的嵌入式系统远程调试技术研究;田同真;《中国优秀硕士学位论文全文数据库信息科技辑》;20101215(第12期);I137-27 * |
Also Published As
Publication number | Publication date |
---|---|
CN104460660A (en) | 2015-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN204215266U (en) | For the remote debugger of remote debugging system | |
CN104460660B (en) | Remote debugger for remote debugging system | |
CN204242390U (en) | An M-BUS host transceiver mechanism module | |
CN101587463B (en) | DeviceNet field bus I/O device with short-circuit protection and self-diagnosis function | |
CN102035679B (en) | Remote I/O module with short-circuit protection self-diagnosis function based on EtherNet/IP protocol | |
CN206235714U (en) | For the communication module of low-voltage circuit breaker detection | |
CN202076625U (en) | Intelligent socket | |
CN104460661B (en) | The remote debugging system of long-range turn-off reset and remote monitoring can be carried out | |
CN204241953U (en) | Remote debugging system capable of remote power failure reset and remote monitoring | |
CN101902078A (en) | Centralized monitoring device in direct-current power supply system | |
CN106291241A (en) | A kind of electric power cable intelligent fault warning system | |
CN206975450U (en) | A kind of mbus circuits of opto-electrical direct reader | |
CN110426980A (en) | PLC system based on Arduino | |
CN209118269U (en) | A kind of Mbus interface control circuit | |
CN203416276U (en) | General industrial remote monitoring terminal based on multiple communication modes | |
CN204855748U (en) | Treatment circuit is patrolled and examined to battery based on many channel switching of ARM platform | |
CN202120072U (en) | Intelligent switch with network control circuit | |
CN201662712U (en) | A smart home appliance control device | |
CN103259734A (en) | Router with remote control timing function | |
CN103475534B (en) | Based on the universal industrial remote monitoring terminal of multi-communication mode | |
CN203243352U (en) | Router with remote control and timing functions | |
CN207924448U (en) | A kind of intermittence electronic control switch | |
CN206698204U (en) | One kind control terminal and system | |
CN105866533A (en) | Multifunctional single-phase multi-rate electricity meter | |
CN216013996U (en) | Motor rotating speed monitoring and controlling device |
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 |