CN210835209U - Automatic switching device for metering protocol channel - Google Patents

Automatic switching device for metering protocol channel Download PDF

Info

Publication number
CN210835209U
CN210835209U CN201921536394.7U CN201921536394U CN210835209U CN 210835209 U CN210835209 U CN 210835209U CN 201921536394 U CN201921536394 U CN 201921536394U CN 210835209 U CN210835209 U CN 210835209U
Authority
CN
China
Prior art keywords
module
channel
serial port
path
grounded
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
Application number
CN201921536394.7U
Other languages
Chinese (zh)
Inventor
王兴权
蒋延华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangxi Xineng Automation Equipment Engineering Co ltd
Original Assignee
Guangxi Xineng Automation Equipment Engineering Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangxi Xineng Automation Equipment Engineering Co ltd filed Critical Guangxi Xineng Automation Equipment Engineering Co ltd
Priority to CN201921536394.7U priority Critical patent/CN210835209U/en
Application granted granted Critical
Publication of CN210835209U publication Critical patent/CN210835209U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The utility model relates to an electric energy measurement and electric energy management terminal protocol test technical field specifically are a measurement agreement passageway automatic switching control equipment, and the device includes box body, pilot lamp group, infrared emission hole and receiving hole, button switch, dial switch, USB interface and data line interface, is provided with signal processing module, lithium cell power module, the communication transmission channel module that goes upward more, the communication transmission channel module that goes downward more, voltage ADC collection module, system's power management module in the box body. The utility model discloses a maintainer of smart power grids equipment provides unified, convenient, safe, the smart machine channel interface testing arrangement of standard, has simple manufacture, testing arrangement variety is various, convenient to carry, stand-by time often and advantage such as with low costs, has effectively solved current equipment maintainer work efficiency low, extravagant a large amount of time cost and human cost scheduling problem.

Description

Automatic switching device for metering protocol channel
Technical Field
The utility model relates to an electric energy measurement and electric energy management terminal protocol test technical field specifically are a measurement agreement passageway automatic switching control equipment.
Background
The data transmission channels of the intelligent electric meter and various intelligent power terminal devices are mainly responsible for data acquisition and transmission of electric energy, so the integrity of the data acquisition and transmission of the electric energy is influenced by the quality of the channel interfaces, and once data is lost due to incomplete data acquisition or data transmission, the application of functions of the electric energy metering automation system such as customer settlement and line loss analysis is seriously influenced. With the increasing use of smart meters and various smart power terminal devices in smart grids, various smart power terminal devices have different data transmission channels and data transmission standards, so that the integrity of various smart power terminal device interfaces and the universality of software of various manufacturers are poor, and the smart power terminal devices do not have a multi-interface or multi-protocol mode.
For intelligent power terminal equipment maintainers, when fault maintenance and data analysis are carried out on equipment, the variety of test software and test hardware which need to be carried about is various, the portable tools are often found to be incapable of completing the equipment maintenance and analysis work after arriving at a field in actual work, the tools can only be returned to be taken again or maintained next time, the working efficiency is low, a large amount of time and labor cost are wasted, and meanwhile indirect loss is caused to power customers.
SUMMERY OF THE UTILITY MODEL
To the problem that exists, the utility model relates to a measurement agreement passageway automatic switching control equipment, after treating that order sending equipment sends the order to this device, through going upward the channel signal like USB channel signal, wireless bluetooth signal converts TTL serial port signal into, convert TTL serial port signal into RS485 differential signal again, RS232 serial port signal, wireless infrared signal, final transmission to smart power grids equipment, treat after smart power grids equipment carries out this order, again with the final answer command through foretell former passageway reverse return for order sending equipment, accomplish half duplex communication flow once. The utility model discloses only one set of device can realize the test equipment of different grade type like PC, notebook computer, cell-phone, handheld device etc. and the communication channel of the different grade type of smart power grids equipment is like all kinds of data half-duplex interaction of infrared signal transceiver channel, RS485 bus, RS232 serial ports etc. has advantages such as easy operation, test equipment are various, convenient to carry, has effectively solved above-mentioned problem.
The utility model adopts the technical proposal that:
the utility model provides a measurement agreement passageway automatic switching control equipment, includes the box body, its characterized in that: the top surface of the box body is provided with an indicator lamp group, an infrared signal transmitting hole, an infrared signal receiving hole and a button switch S1, the button switch S1 is covered with a cover, one side surface of the box body is provided with a dial switch and a USB interface, and the other side surface of the box body is provided with a data line interface; a signal processing module and a lithium battery power supply module are arranged in the box body, a first signal transceiving end of the signal processing module is connected with a signal transceiving end of the multi-uplink communication transmission channel module, the second signal receiving and transmitting end of the signal processing module is connected with the signal receiving and transmitting end of the multi-downlink communication transmission channel module, the power supply end of the lithium battery power supply module is respectively connected with the power supply end of the voltage ADC acquisition module and the power supply end of the system power supply management module, the signal output end of the voltage ADC acquisition module is connected with the signal acquisition end of the signal processing module, the power supply end of the system power management module is respectively connected with the power supply end of the signal processing module, the power supply end of the multi-uplink communication transmission channel module, the power supply end of the multi-downlink communication transmission channel module and the power supply end of the indicating lamp set, and the control end of the signal processing module is connected with the signal input end of the indicating lamp set; the multi-uplink communication transmission channel module comprises a USB-to-serial port channel module and a wireless Bluetooth serial port channel module, and the multi-downlink communication transmission channel module comprises an infrared signal receiving and transmitting channel module, an RS485 bus channel module and an RS232 serial port channel module.
After a user connects a multi-downlink communication transmission channel module of the device with tested smart grid equipment such as an electric energy meter, a copy controller and the like, then command sending equipment such as a PC (personal computer), a notebook computer, an android mobile phone and the like with a USB (universal serial bus) to serial port channel and a wireless Bluetooth serial port channel establishes a communication relationship with the device through the multi-uplink communication transmission channel module of the device, after the command sending equipment sends a command to the device, the device automatically switches channels to send the command from the multi-downlink communication transmission channel module used by the user to the smart grid equipment, the smart grid equipment executes the command after receiving the command, and reversely returns a final response command to the command sending equipment through an original channel, so that a one-time half-duplex communication process is completed.
Furthermore, the lithium battery power supply module comprises a lithium battery pack and a lithium battery pack electric quantity monitoring module, one path of a positive output end of the lithium battery pack is connected with a BAT end of the lithium battery pack electric quantity monitoring module, the other path of the positive output end of the lithium battery pack is connected with a SET2 end, a negative output end of the lithium battery pack is grounded, one path of a common end COM of the toggle switch is used as a first power output end VDD to output electric energy outwards, the other path of the common end COM of the toggle switch is grounded through a tenth capacitor C10, two ends of the tenth capacitor C10 are connected with an eleventh capacitor C11 in parallel, a SET1 end of the toggle switch is connected with a USB interface VBUS end through a test short circuit, one path of the USB interface VBUS end is connected with a CHRG end of the lithium battery pack electric quantity monitoring module through a second light emitting diode L2 and a sixth resistor R6, and the other path of the USB interface VBUS end is connected with a power supply end VCC of the lithium battery pack electric, the power supply terminal VCC of the lithium battery pack power monitoring module is grounded through a twelfth capacitor C12, the two ends of the twelfth capacitor C12 are connected with a thirteenth capacitor C13 in parallel, the PROG terminal of the lithium battery pack power monitoring module is grounded through a seventh resistor R7, and the ground terminal GND of the lithium battery pack power monitoring module is grounded.
The lithium battery pack electric quantity monitoring module adopts a resistance voltage division mode, inputs a VDD _ ADC signal quantity into an internal 10-bit ADC channel of the signal processing module, obtains a VDD voltage value through calculation, and finally monitors the voltage of the lithium battery according to the relation between the voltage value and a capacity curve of the lithium battery, and adopts a TP4054 linear lithium ion battery charging chip which is subjected to constructive integration, so that constant current/constant voltage charging of a single lithium ion battery is realized, and the charging current of 500mA is realized; the test short-circuit point is a common pad short-circuit point on the circuit board, wherein L2 is the power indicator, and when having outside USB to insert the USB interface, the lithium cell group is held from USB interface VBUS through lithium cell group electric quantity monitoring module and is got charging source.
Further, the system power management module comprises a first power management module and a second power management module, a first path of a voltage input terminal VIN of the first power management module is connected with a first power output terminal VDD, the second path of the voltage input terminal VIN of the first power management module is connected to the enable terminal EN of the first power management module through a second resistor R2, the third path of the voltage input end VIN of the first power management module is connected to the ground end GND of the first power management module through the second resistor R2 and the push-button switch S1, the ground end GND of the first power supply management module is grounded, one path of the voltage output end VOUT of the first power supply management module is used as a second power supply output end VCC _ MCU to externally output electric energy, the other path of the voltage output end VOUT of the first power management module is grounded through a fifth capacitor C5, and the BP end of the first power management module is grounded through a sixth capacitor C6;
the second power management module voltage input end VIN is connected with the first power output end VDD, the enable end EN of the second power management module is connected with the 8 th pin P1.7/ADC7/TXD _3/XTAL1 of the signal processing module through the third resistor R3, one path of the voltage output end VOUT of the second power management module is used as the third power output end VDD3.3v to output electric energy externally, the other path of the voltage output end VOUT of the second power management module is grounded through the seventh capacitor C7, the BP end of the second power management module is grounded through the eighth capacitor C8, and the grounding end GND of the second power management module is grounded.
The first power management module and the second power management module both output 3.3v of voltage outwards, wherein the first power management module is responsible for supplying power to the signal processing module, and the button switch S1 is used for controlling the power output of the first power management module and realizing cold start control when the signal processing module downloads a program; except the signal processing module, the second power management module is responsible for supplying power to other electric and electronic equipment.
Further, the voltage ADC collecting module includes a fourth resistor R4, one end of the fourth resistor R4 is connected to the first power output terminal VDD, the first path at the other end of the fourth resistor R4 is grounded via a fifth resistor R5, the second path at the other end of the fourth resistor R4 is grounded via a ninth capacitor C9, and the third path at the other end of the fourth resistor R4 is connected to the 4 th pin P1.3/ADC3/MOSI of the signal processing module.
The signal processing module obtains a current voltage value through the voltage ADC acquisition module, and because the standard voltage value of the USB is 5V, when the USB interface is not connected with a USB data line, the device is powered by a lithium battery, and the maximum voltage value of the device is 4.2V, the device determines whether the USB interface is connected with the USB data line through the voltage ADC acquisition module, namely when the current voltage value acquired by the voltage ADC acquisition module is more than 4.6V, the USB interface is connected with the USB data line, and when the current voltage value acquired by the voltage ADC acquisition module is less than or equal to 4.6V, the USB interface is not connected with the USB data line.
Further, the infrared signal transceiving channel module comprises an infrared transmitting circuit and an infrared receiving circuit, the infrared transmitting circuit comprises a nineteenth resistor R19, a first path at one end of the nineteenth resistor R19 is connected with a third power output end vdd3.3v, a second path at one end of the nineteenth resistor R19 is grounded via a seventeenth capacitor C17, a first path at the other end of the nineteenth resistor R19 is grounded via an eighteenth capacitor C18, a second path at the other end of the nineteenth resistor R19 is connected with an anode of a fifth light emitting diode L5, a cathode of the fifth light emitting diode L5 is connected with an emitter of a PNP type first transistor VT1, a collector of the PNP type first transistor VT1 is connected with an emitter of a PNP type second transistor VT2, a collector of the PNP type second transistor VT2 is grounded, a base of the PNP type first transistor VT1 is connected with a pin P0.1/1/AD 3 of the signal processing module via a twenty first resistor R21, the base electrode of the PNP type second triode VT2 is connected with the 17 th pin P3.4/T0/T1CLKO/ECI _2 of the signal processing module through a twentieth resistor R20;
the infrared receiving circuit comprises an infrared receiving module, one path of a signal output end OUT of the infrared receiving module is connected with a 29 th pin P0.0/AD0/RXD3 of the signal processing module, the other path of the signal output end OUT of the infrared receiving module is connected with a third power output end VDDD 3.3v through a seventeenth resistor R17, the first path of a power end VCC of the infrared receiving module is connected with the third power output end VDDD 3.3v through an eighteenth resistor R18, the second path of the power end VCC of the infrared receiving module is grounded through an eighteenth resistor R18 and a sixteenth capacitor C16, the third path of the power end VCC of the infrared receiving module is grounded through a fourteenth capacitor C14, two ends of the fourteenth capacitor C14 are connected with a fifteenth capacitor C15 in parallel, and a ground end GND of the infrared receiving module is grounded.
The infrared signal receiving and transmitting channel module converts TTL serial port signals output by the signal processing module into wireless infrared signals receivable by external electric energy equipment or converts wireless infrared signals sent by the external electric energy equipment into TTL serial port signals receivable by the signal processing module by using an infrared technology, and realizes half-duplex data interaction with equipment with infrared interfaces, such as a remote controller, an electronic electric energy meter, a handheld palm computer, a load control terminal, a distribution transformation terminal, a concentrator, a collector and the like.
Further, the RS485 bus channel module includes an RS485 bus channel, the first signal input terminal a of the RS485 bus channel is connected to the voltage terminal VBUS of the data line interface through a second fuse RT2, the other terminal of the first signal input terminal a of the RS485 bus channel is connected to the third power output terminal vdd3.3v through a fourteenth resistor R14, the second signal input terminal B of the RS485 bus channel is connected to the negative output terminal UD-of the data line interface through a first fuse RT1, the other terminal of the second signal input terminal B of the RS485 bus channel is grounded through a thirteenth resistor R13, a transient voltage suppression diode TVS1 is connected in series between the second signal input terminal B of the RS485 bus channel and the first signal input terminal a of the RS485 bus channel, the one terminal VDD of the RS485 bus channel is connected to the third power output terminal 3.3v, the terminal VDD of the RS485 bus channel is grounded through a twenty-fourth capacitor C24, the RO end of the RS485 bus channel is connected with a1 st pin P1.0/ADC0/CCP1/RXD2 of the signal processing module, the RE end of the RS485 bus channel is connected with a collector electrode of a PNP type third triode VT3, the collector electrode of the PNP type third triode VT3 is grounded through a twelfth resistor R12, a base electrode of the PNP type third triode VT3 is connected with a 2 nd pin P1.1/ADC1/CCP0/TXD2 of the signal processing module through an eleventh resistor R11, an emitter electrode of the PNP type third triode VT3 is connected with a third power output end VDD3.3v, a control end DE of the RS485 bus channel is connected with the RE end of the RS485 bus channel, a DI end of the RS485 bus channel is connected with the 2 nd pin P1.1/ADC1/CCP0/TXD2 of the signal processing module, and a ground end of the RS485 bus channel is grounded.
The RS485 bus channel module converts TTL serial port signals output by the signal processing module into RS485 differential signals which can be received by external electric energy equipment or converts RS485 differential signals sent by the external electric energy equipment into TTL serial port signals which can be received by the signal processing module through a two-wire RS485 differential signal transmission technology, and half-duplex data interaction with equipment with two-wire RS485 interfaces, such as an electronic electric energy meter, a handheld palm computer, a negative control terminal, a distribution transformer terminal, a concentrator, a collector and the like, is realized.
Further, the RS232 serial port channel module includes an RS232 serial port channel, one path of the power source terminal VCC of the RS232 serial port channel is connected with the second power source output terminal VCC _ MCU, the other path of the power source terminal VCC of the RS232 serial port channel is grounded via a twenty-first capacitor C21, a C1+ terminal of the RS232 serial port channel is connected with a C1-terminal of the RS232 serial port channel via a nineteenth capacitor C19, a C2+ terminal of the RS232 serial port channel is connected with a C2-terminal of the RS232 serial port channel via a twentieth capacitor C20, a positive voltage terminal V + of the RS232 serial port channel is grounded via a twenty-second capacitor C22, a negative voltage terminal V-of the RS232 serial port channel is grounded via a twenty-third capacitor C23, a T1IN terminal of the RS232 serial port channel is connected with a 14 th pin P3.1/TXD/T2 of the signal processing module, an R1OUT terminal of the RS232 serial port channel is connected with a13 th pin clkp 3.0/RXD 4/rxt 2 of the signal processing module, the R1IN end of the RS232 serial port channel is connected with the ground end GND of the data line interface through a sixteenth resistor R16, the T1OUT end of the RS232 serial port channel is connected with the positive output end UD + of the data line interface through a fifteenth resistor R15, and the ground end GND of the RS232 serial port channel is grounded.
The RS232 serial port channel module converts TTL level serial port signals output by the signal processing module into RS232 level serial port signals capable of being received by an external PC (personal computer) through a three-wire RS232 serial port communication transmission technology, or converts RS232 serial port signals output by the external PC into TTL serial port signals capable of being received by the signal processing module, and half-duplex data interaction with equipment with three-wire RS232 interfaces, such as a handheld palm computer, a negative control terminal, a distribution transformer terminal, a concentrator, a collector, a notebook computer, a serial server and the like, is realized. TTL serial port signals output by the signal processing module are input from a T1IN end, are converted into RS232 serial port signals through an RS232 serial port channel and then are output from a T1OUT end, RS232 serial port signals output by an external PC are input from an R1IN end, and are converted into TTL serial port signals through the RS232 serial port channel and then are output from the R1OUT end. And the RS485 bus channel and the RS232 serial port channel are in signal transmission with external electric energy equipment through data line interfaces.
Furthermore, the wireless Bluetooth serial port channel module comprises a Bluetooth serial port channel, one path of a power supply end VCC3.3v of the Bluetooth serial port channel is connected with a third power supply output end VDD3.3v, the other path of the power supply end VCC3.3v of the Bluetooth serial port channel is grounded through a third capacitor C3, a fourth capacitor C4 is connected in parallel at two ends of the third capacitor C3, a data transmitting terminal UART _ TX of the Bluetooth serial port channel is connected with a 31 th pin P0.2/AD2/RXD4 of the signal processing module, the data receiving end UART _ RX of the Bluetooth serial port channel is connected with the 32 th pin P0.3/AD3/TXD4 of the signal processing module, the 25 th pin P05 of the Bluetooth serial port channel is connected with the 24 th pin P2.3/A11/MOSI _2 of the signal processing module, the 24 th pin P12 of the Bluetooth serial port channel is grounded through a first light-emitting diode L1 and a first resistor R1, and the grounding end GND of the Bluetooth serial port channel is grounded.
The wireless Bluetooth serial port channel module uses a Bluetooth 3.0 SPP Bluetooth serial port technology, Bluetooth signals sent by uplink equipment such as a power grid mobile operation platform are converted into TTL serial port signals which can be received by a signal processing module, or the TTL serial port signals output by the signal processing module are converted into Bluetooth signals which can be received by the uplink equipment such as the power grid mobile operation platform, so that the device and the equipment with the wireless Bluetooth function such as an android mobile phone, a tablet personal computer and a notebook computer are half-duplex data interaction, wherein L1 is a Bluetooth indicator lamp.
Further, the USB to serial port channel module includes a USB to serial port channel, one path of the power source terminal VCC of the USB to serial port channel is connected to the VUBS terminal of the USB interface, the other path of the power source terminal VCC of the USB to serial port channel is grounded via a twenty-fifth capacitor C25, the data transmitting terminal TXD of the USB to serial port channel is connected to the cathode of a first diode D1, the anode of the first diode D1 is connected to the 13 th pin P3.0/RXD/INT4/T2CLK0 of the signal processing module, the data receiving terminal RXD of the USB to serial port channel is connected to the 14 th pin P3.1/TXD/T2 of the signal processing module via a twenty-second resistor R22, the V3 terminal of the USB to serial port channel is grounded via a twenty-sixth capacitor C26, the UD + terminal of the USB to serial port channel is connected to the D + terminal of the USB interface, and the serial port terminal of the USB to serial port channel is connected to the D-terminal of the USB interface, the ground end GND of the USB-to-serial port channel is grounded, the ground end GND of the USB interface is grounded, and the signal input end IN of the USB interface is vacant.
The USB-to-serial port channel module converts an uplink USB signal into a TTL serial port signal by using a CH340G chip, the converted TTL serial port signal is transmitted to the signal processing module, and the TTL serial port signal output by the signal processing module is converted into a signal which can be received by the uplink USB, so that half-duplex data interaction between the device and equipment with USB interfaces, such as a computer, a notebook computer and the like, is realized.
Further, the indicating lamp set comprises a third light emitting diode L3 and a fourth light emitting diode L4, wherein the anode of the third light emitting diode L3 is connected to the third power output terminal vdd3.3v, the cathode of the third light emitting diode L3 is connected to the 25 th pin P2.4/a12/ECI _3/SS _2 of the signal processing module through a ninth resistor R9, the anode of the fourth light emitting diode L4 is connected to the third power output terminal vdd3.3v, and the cathode of the fourth light emitting diode L4 is connected to the 26 th pin P2.5/a13/CCPO _3 of the signal processing module through a tenth resistor R10; the signal processing module power end VCC is connected with second power output VCC _ MCU through first electric capacity C1 all the way, first electric capacity C1 both ends have connect second electric capacity C2 in parallel, another way ground connection of signal processing module power end VCC, signal processing module ground terminal GND ground connection.
L3 is an uplink communication indicator light, i.e. flashing when there is data transmission, and often turning on when there is no data transmission, and L4 is a downlink communication indicator light, i.e. flashing when there is data transmission, and often turning on when there is no data transmission.
To sum up, owing to adopted above-mentioned technical scheme, the beneficial effects of the utility model are that:
the utility model relates to a measurement agreement passageway automatic switching control equipment, use the electronic integration technique, data transmission channel automatic switching method, concentrate the interface of the passageway commonly used of electric energy metering equipment data transmission and integrate on this device, make same set of device can realize the test equipment of different grade type such as PC, notebook computer, cell-phone, hand-held device etc., with the communication channel of the different grade type of smart grid equipment such as infrared signal receiving and dispatching passageway, RS485 bus, all kinds of data half-duplex interaction of RS232 serial ports etc., thoroughly change traditional test technique into simplely, thereby provide unified, convenient, safe, standard smart machine channel interface testing arrangement for the equipment maintainer, this device still has simple manufacture simultaneously, the test equipment is various, convenient to carry, stand-by time is often and advantage such as with low costs, effectively solved the low of current equipment maintainer work efficiency, Waste a large amount of time cost and labor cost, and the like.
Drawings
In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings required in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some examples of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive step.
FIG. 1 is a schematic structural diagram of an automatic switching device for metering protocol channels;
FIG. 2 is a block diagram of an internal circuit of an automatic switching device for metering protocol channels;
FIG. 3 is a schematic circuit diagram of a signal processing module;
FIG. 4 is a first power management module circuit schematic;
FIG. 5 is a second power management module circuit schematic;
FIG. 6 is a schematic circuit diagram of a lithium battery power module;
FIG. 7 is a schematic diagram of a voltage ADC acquisition module circuit;
FIG. 8 is a schematic diagram of an infrared transmission circuit;
FIG. 9 is a schematic diagram of an infrared receiving circuit;
FIG. 10 is a schematic circuit diagram of a wireless Bluetooth serial port channel module;
FIG. 11 is a schematic circuit diagram of an indicator light set;
FIG. 12 is a schematic diagram of a data line interface circuit;
FIG. 13 is a schematic circuit diagram of an RS232 serial port channel module;
FIG. 14 is a schematic circuit diagram of an RS485 bus channel module;
FIG. 15 is a schematic circuit diagram of a USB to serial port channel module;
in the attached drawing, 1-box body, 2-USB interface, 3-dial switch, 4-infrared signal transmitting hole, 5-data line interface, 6-infrared signal receiving hole, 7-indicator lamp group and 8-cover.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the examples of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative efforts belong to the protection scope of the present invention.
Example (b):
as shown in fig. 1 and 2, an automatic switching device for metering protocol channels comprises a box body, wherein the top surface of the box body is provided with an indicator lamp set, an infrared signal transmitting hole, an infrared signal receiving hole and a button switch S1, the button switch S1 is covered with a cover, one side surface of the box body is provided with a dial switch and a USB interface, and the other side surface of the box body is provided with a data line interface; a signal processing module and a lithium battery power supply module are arranged in the box body, a first signal transceiving end of the signal processing module is connected with a signal transceiving end of the multi-uplink communication transmission channel module, the second signal receiving and transmitting end of the signal processing module is connected with the signal receiving and transmitting end of the multi-downlink communication transmission channel module, the power supply end of the lithium battery power supply module is respectively connected with the power supply end of the voltage ADC acquisition module and the power supply end of the system power supply management module, the signal output end of the voltage ADC acquisition module is connected with the signal acquisition end of the signal processing module, the power supply end of the system power management module is respectively connected with the power supply end of the signal processing module, the power supply end of the multi-uplink communication transmission channel module, the power supply end of the multi-downlink communication transmission channel module and the power supply end of the indicating lamp set, and the control end of the signal processing module is connected with the signal input end of the indicating lamp set; the multi-uplink communication transmission channel module comprises a USB-to-serial port channel module and a wireless Bluetooth serial port channel module, and the multi-downlink communication transmission channel module comprises an infrared signal receiving and transmitting channel module, an RS485 bus channel module and an RS232 serial port channel module;
as shown in fig. 6, the lithium battery power supply module includes a lithium battery pack and a lithium battery pack power monitoring module, one path of a positive output end of the lithium battery pack is connected to a BAT end of the lithium battery pack power monitoring module, the other path of the positive output end of the lithium battery pack is connected to a SET dial switch SET2, a negative output end of the lithium battery pack is grounded, one path of a common end COM of the dial switch is used as a first power output end VDD to output power externally, the other path of the common end COM of the dial switch is grounded via a tenth capacitor C10, two ends of the tenth capacitor C10 are connected in parallel to an eleventh capacitor C11, the SET dial switch SET1 end is connected to a USB interface VBUS end via a test short-circuit point, one path of the USB interface VBUS end is connected to the battery pack power monitoring module CHRG end via a second light emitting diode L2 and a sixth resistor R6, and the other path of the USB interface VBUS end is connected to a lithium battery pack power monitoring module VCC via an eighth resistor R8, the power supply terminal VCC of the lithium battery pack electric quantity monitoring module is grounded through a twelfth capacitor C12, the two ends of the twelfth capacitor C12 are connected with a thirteenth capacitor C13 in parallel, the PROG terminal of the lithium battery pack electric quantity monitoring module is grounded through a seventh resistor R7, and the ground terminal GND of the lithium battery pack electric quantity monitoring module is grounded;
as shown in fig. 3, 4 and 5, the system power management module includes a first power management module and a second power management module, a first path of a voltage input terminal VIN of the first power management module is connected with a first power output terminal VDD, the second path of the voltage input terminal VIN of the first power management module is connected to the enable terminal EN of the first power management module through a second resistor R2, the third path of the voltage input end VIN of the first power management module is connected to the ground end GND of the first power management module through the second resistor R2 and the push-button switch S1, the ground end GND of the first power supply management module is grounded, one path of the voltage output end VOUT of the first power supply management module is used as a second power supply output end VCC _ MCU to externally output electric energy, the other path of the voltage output end VOUT of the first power management module is grounded through a fifth capacitor C5, and the BP end of the first power management module is grounded through a sixth capacitor C6; the voltage input end VIN of the second power management module is connected with the first power output end VDD, the enable end EN of the second power management module is connected with the 8 th pin P1.7/ADC7/TXD _3/XTAL1 of the signal processing module through a third resistor R3, one path of the voltage output end VOUT of the second power management module is used as a third power output end vdd3.3v to output electric energy to the outside, the other path of the voltage output end VOUT of the second power management module is grounded through a seventh capacitor C7, the BP end of the second power management module is grounded through an eighth capacitor C8, and the ground end GND of the second power management module is grounded;
as shown in fig. 3 and 7, the voltage ADC acquiring module includes a fourth resistor R4, one end of the fourth resistor R4 is connected to the first power output terminal VDD, a first path at the other end of the fourth resistor R4 is grounded via a fifth resistor R5, a second path at the other end of the fourth resistor R4 is grounded via a ninth capacitor C9, and a third path at the other end of the fourth resistor R4 is connected to the 4 th pin P1.3/ADC3/MOSI of the signal processing module;
as shown in fig. 3, 7 and 8, the infrared signal transceiving channel module includes an infrared transmitting circuit and an infrared receiving circuit, the infrared transmitting circuit includes a nineteenth resistor R19, a first path at one end of the nineteenth resistor R19 is connected to the third power output terminal vdd3.3v, a second path at one end of the nineteenth resistor R19 is grounded via a seventeenth capacitor C17, a first path at the other end of the nineteenth resistor R19 is grounded via an eighteenth capacitor C18, a second path at the other end of the nineteenth resistor R19 is connected to the anode of a fifth light emitting diode L5, the cathode of the fifth light emitting diode L5 is connected to the PNP VT1 emitter, the collector of the PNP VT 45 is connected to the emitter of the PNP VT2, the collector of the PNP VT2 is grounded, the base of the PNP 1 is connected to the txt 8238 of the signal processing module 30P 0.1/AD1 via a first resistor R21, the base electrode of the PNP type second triode VT2 is connected with the 17 th pin P3.4/T0/T1CLKO/ECI _2 of the signal processing module through a twentieth resistor R20; the infrared receiving circuit comprises an infrared receiving module, one path of a signal output end OUT of the infrared receiving module is connected with a 29 th pin P0.0/AD0/RXD3 of the signal processing module, the other path of the signal output end OUT of the infrared receiving module is connected with a third power output end VDDD 3.3v through a seventeenth resistor R17, the first path of a power supply end VCC of the infrared receiving module is connected with the third power output end VDDD 3.3v through an eighteenth resistor R18, the second path of the power supply end VCC of the infrared receiving module is grounded through an eighteenth resistor R18 and a sixteenth capacitor C16, the third path of the power supply end VCC of the infrared receiving module is grounded through a fourteenth capacitor C14, two ends of the fourteenth capacitor C14 are connected with a fifteenth capacitor C15 in parallel, and a grounding end GND of the infrared receiving module is grounded;
as shown in fig. 3, 12 and 14, the RS485 bus channel module includes an RS485 bus channel, a first signal input terminal a of the RS485 bus channel is connected to a voltage terminal VBUS of the data line interface via a second fuse RT2, another signal input terminal a of the RS485 bus channel is connected to a third power output terminal vdd3.3v via a fourteenth resistor R14, a second signal input terminal B of the RS485 bus channel is connected to a negative output terminal UD-of the data line interface via a first fuse RT1, another signal input terminal B of the RS485 bus channel is grounded via a thirteenth resistor R13, a transient voltage suppression diode TVS1 is connected in series between the second signal input terminal B of the RS485 bus channel and the first signal input terminal a of the RS485 bus channel, a VDD of the RS485 bus channel is connected to the third power output terminal 3.3v, another power terminal VDD of the RS485 bus channel is grounded via a twenty-fourth capacitor 24, the RO end of the RS485 bus channel is connected with a1 st pin P1.0/ADC0/CCP1/RXD2 of the signal processing module, the RE end of the RS485 bus channel is connected with a collector electrode of a PNP type third triode VT3, the collector electrode of the PNP type third triode VT3 is grounded through a twelfth resistor R12, a base electrode of the PNP type third triode VT3 is connected with a 2 nd pin P1.1/ADC1/CCP0/TXD2 of the signal processing module through an eleventh resistor R11, an emitter electrode of the PNP type third triode VT3 is connected with a third power output end VDD3.3v, a control end DE of the RS485 bus channel is connected with the RE end of the RS485 bus channel, a DI end of the RS485 bus channel is connected with the 2 nd pin P1.1/ADC1/CCP0/TXD2 of the signal processing module, and a ground end of the RS485 bus channel is grounded;
as shown in fig. 3, 12 and 13, the RS232 serial port channel module includes an RS232 serial port channel, one path of the power source terminal VCC of the RS232 serial port channel is connected to the second power source output terminal VCC _ MCU, the other path of the power source terminal VCC of the RS232 serial port channel is grounded via a twenty-first capacitor C21, the C1+ terminal of the RS232 serial port channel is connected to the C1-terminal of the RS232 serial port channel via a nineteenth capacitor C19, the C2+ terminal of the RS232 serial port channel is connected to the C2-terminal of the RS232 serial port channel via a twentieth capacitor C20, the positive voltage terminal V + of the RS232 serial port channel is grounded via a twenty-second capacitor C22, the negative voltage terminal V-of the RS232 serial port channel is grounded via a twenty-third capacitor C23, the T1IN terminal of the RS232 serial port channel is connected to the 14 th pin P3.1/TXD/T2 of the signal processing module, the R1OUT terminal of the RS232 serial port channel is connected to the signal processing module via the twenty-3.0/rxp 4/rxp 3/3, the R1IN end of the RS232 serial port channel is connected with the ground end GND of the data line interface through a sixteenth resistor R16, the T1OUT end of the RS232 serial port channel is connected with the positive output end UD + of the data line interface through a fifteenth resistor R15, and the ground end GND of the RS232 serial port channel is grounded;
as shown in fig. 3 and 10, the wireless bluetooth serial port module includes a bluetooth serial port, one path of a power supply end VCC3.3v of the Bluetooth serial port channel is connected with a third power supply output end VDD3.3v, the other path of the power supply end VCC3.3v of the Bluetooth serial port channel is grounded through a third capacitor C3, a fourth capacitor C4 is connected in parallel at two ends of the third capacitor C3, a data transmitting terminal UART _ TX of the Bluetooth serial port channel is connected with a 31 th pin P0.2/AD2/RXD4 of the signal processing module, the data receiving end UART _ RX of the Bluetooth serial port channel is connected with the 32 th pin P0.3/AD3/TXD4 of the signal processing module, the 25 th pin P05 of the Bluetooth serial port channel is connected with the 24 th pin P2.3/A11/MOSI _2 of the signal processing module, the 24 th pin P12 of the Bluetooth serial port channel is grounded through a first light-emitting diode L1 and a first resistor R1, and the ground end GND of the Bluetooth serial port channel is grounded;
as shown in fig. 3 and fig. 15, the USB to serial port channel module includes a USB to serial port channel, one path of the power source terminal VCC of the USB to serial port channel is connected to the VUBS terminal of the USB interface, the other path of the power source terminal VCC of the USB to serial port channel is connected to the ground via a twenty-fifth capacitor C25, the data sending terminal TXD of the USB to serial port channel is connected to the cathode of a first diode D1, the anode of the first diode D1 is connected to the 13 th pin P3.0/RXD/INT4/T2CLK0 of the signal processing module, the data receiving terminal RXD of the USB to serial port channel is connected to the 14 th pin P3.1/D/T2 of the signal processing module via a twenty-second resistor R22, the V3 terminal of the USB to serial port channel is connected to the ground via a twenty-sixth capacitor C26, the UD + terminal of the USB to serial port channel is connected to the D + terminal of the USB interface, the UD-terminal of the USB to serial port, the ground end GND of the USB-to-serial port channel is grounded, the ground end GND of the USB interface is grounded, and a signal input end IN of the USB interface is vacant;
as shown in fig. 3 and 11, the indicator light set includes a third light emitting diode L3 and a fourth light emitting diode L4, an anode of the third light emitting diode L3 is connected to the third power output vdd3.3v, a cathode of the third light emitting diode L3 is connected to the 25 th pin P2.4/a12/ECI _3/SS _2 of the signal processing module via a ninth resistor R9, an anode of the fourth light emitting diode L4 is connected to the third power output vdd3.3v, and a cathode of the fourth light emitting diode L4 is connected to the 26 th pin P2.5/a13/CCPO _3 of the signal processing module via a tenth resistor R10;
as shown in fig. 3, one path of the power supply terminal VCC of the signal processing module is connected to the second power supply output terminal VCC _ MCU via the first capacitor C1, the two ends of the first capacitor C1 are connected in parallel to the second capacitor C2, the other path of the power supply terminal VCC of the signal processing module is grounded, and the ground terminal GND of the signal processing module is grounded.
In this embodiment, the signal processing module adopts an STC15W4K60S4 processor, the lithium battery pack electric quantity monitoring module adopts a TP4054 chip, the first management power supply module and the second management power supply module both adopt RT9193-33GB chips, the USB serial port channel adopts a CH340G chip, the wireless bluetooth channel adopts a BK3231 chip, the infrared receiving module adopts an HS0038B chip, the RS485 bus channel adopts an SP3485 chip, and the RS232 serial port channel adopts an SP3232EEN chip.
The communication network of the present embodiment complies with the following specifications: an electronic electric energy meter communication protocol V3.0 of Guangxi power grid company, a multifunctional electric energy meter communication protocol (DLT 645-1997), a multifunctional electric energy meter communication protocol (DLT 645-2007), an expansion protocol of a DLT645-2007 multifunctional electric energy meter communication protocol, a Guangxi low-voltage electric power user centralized meter reading system concentrator data transmission uplink protocol, an electric energy metering automation power plant and substation electric energy remote data uplink transmission protocol of the Guangxi power grid company, the method comprises communication protocols (2007.10) such as a Guangxi power grid company power load management terminal, a distribution transformer monitoring automation terminal uplink communication protocol, a Q/GXD _ XX-2012_ electric energy metering automation system data transmission protocol, a Guangxi power grid power demand side management system data transmission protocol, a Guangxi power grid company power distribution monitoring and metering terminal and the like, and a southern China power grid finite responsibility company metering automation terminal uplink communication protocol.
The working process of the utility model is as follows:
use the utility model discloses, carry out functional test through the infrared interface of bluetooth mode to the electric energy meter, its step is as follows:
(1) connecting the electric energy meter to be tested with commercial power, and keeping the electric energy meter in a charged state;
(2) the dial switch is dialed to a starting position, the power indicator light L2 begins to flicker, when the uplink communication indicator light L3 and the downlink communication indicator light L4 flicker for 2 times respectively, the device is started, if the Bluetooth indicator light L1 is normally on, the wireless Bluetooth channel is abnormal, and whether the channel is damaged needs to be checked again;
(3) connecting a Bluetooth port of the android smart phone with a Bluetooth serial port of the device, opening a mobile operation and maintenance operation platform of a power grid company, connecting the device with the mobile operation and maintenance operation platform through a Bluetooth serial port, and when Bluetooth connection is successful, changing an original 800ms flashing state into a normally-on state by a Bluetooth indicator lamp L1, and simultaneously prompting that the Bluetooth connection is successful on the mobile operation and maintenance operation platform;
(4) and (3) channel quick selection: selecting and clicking a parameter list box of a test channel on a mobile operation and maintenance operation platform, then automatically issuing a channel automatic switching command (SetCOM HW _ IR, 01200, E End) by the mobile operation and maintenance operation platform, modifying a downlink data forwarding channel into an infrared interface, 1200 baud rate and even check mode by a signal processing module after receiving the command, sending a SetCOM OK command to respond to the mobile operation and maintenance operation platform by the device after the channel automatic switching is finished, prompting that the Bluetooth connection of the device is successful after the mobile operation and maintenance operation platform receives the command, and flashing an uplink communication indicator light L3 in the process;
(5) testing an infrared interface: the infrared receiving and sending hole of the device is basically aligned with the infrared interface of the electric energy meter, the electric energy meter function data needing to be read is selected on the mobile operation and maintenance operation platform APP of the android smart phone, and then the mobile operation and maintenance operation platform sends out the current forward active electric energy command: 6728341401010068010243C 34816, the order is received by this device's wireless bluetooth channel and is converted into TTL level signal and transmits for signal processing module through its serial ports, signal processing module transmits TTL level signal to infrared transmitting circuit again, infrared transmitting circuit converts TTL level signal into infrared carrier signal and sends to the infrared receiving tube of electric energy meter with wireless infrared mode again, the electric energy meter receives to copy and reads and answers the request order behind the data request, the answer message is: 6728341400010168810643C 353 CC 33335116. The response message is transmitted to an infrared receiving circuit of the device through an infrared transmitting pipe of the electric energy meter in the form of an infrared carrier signal, the infrared receiving circuit converts the infrared carrier signal into a TTL level signal and transmits the TTL level signal to a signal processing module, the signal processing module transmits the TTL level signal to a wireless Bluetooth channel, the wireless Bluetooth channel converts the TTL level signal into a Bluetooth signal and transmits the Bluetooth signal to a mobile operation and maintenance operation platform, the mobile operation and maintenance operation platform APP receives the response command and then analyzes the command and displays a test result that an infrared interface of the electric energy meter is normal, and meanwhile information such as a read request data result and the like is clearly displayed;
(6) in the testing process, if the time exceeds 3 seconds, the mobile operation and maintenance platform APP still does not receive the response command, and the response command is not received after multiple requests, the mobile operation and maintenance platform APP determines that the data is overtime, and can determine that the infrared interface of the tested electric energy meter is damaged, and when the infrared interface of the electric energy meter is normal in the testing process, the flashing sequence of the indicator lamps is that the uplink communication indicator lamp L3 flashes 1 time → the downlink communication indicator lamp L4 flashes 1 time → the downlink communication indicator lamp L4 flashes 1 time → the uplink communication indicator lamp L3 flashes 1 time, and in addition, the flashing forms of other indicator lamps are abnormal, namely the infrared interface of the tested electric energy meter is in an abnormal state;
(7) after the test is finished, the dial switch is dialed away from the starting position to turn off the power supply, if the power supply is forgotten to be turned off, the device can automatically turn off the system power supply after no command exceeds 3 minutes, and the whole device enters a low power consumption mode.
Use the utility model discloses, carry out functional test to the RS485 interface of electric energy meter through the bluetooth mode, its step is as follows:
(1) connecting the electric energy meter to be tested with commercial power, and keeping the electric energy meter in a charged state;
(2) the dial switch is dialed to a starting position, the power indicator light L2 begins to flicker, when the uplink communication indicator light L3 and the downlink communication indicator light L4 flicker for 2 times respectively, the device is started, if the Bluetooth indicator light L1 is normally on, the wireless Bluetooth channel is abnormal, and whether the channel is damaged needs to be checked again;
(3) connecting a Bluetooth port of the android smart phone with a Bluetooth serial port of the device, opening a mobile operation and maintenance operation platform of a power grid company, connecting the device with the mobile operation and maintenance operation platform through a Bluetooth serial port, and when Bluetooth connection is successful, changing an original 800ms flashing state into a normally-on state by a Bluetooth indicator lamp L1, and simultaneously prompting that the Bluetooth connection is successful on the mobile operation and maintenance operation platform;
(4) and (3) channel quick selection: selecting and clicking a parameter list frame of a test channel on a mobile operation and maintenance operation platform, then automatically issuing a channel automatic switching command (SetCOM RS485, 01200, E End) by the mobile operation and maintenance operation platform, modifying a downlink data forwarding channel into an RS485 interface, a 1200 baud rate and an even check mode by a signal processing module after receiving the command, sending a SetCOM OK command to respond to the mobile operation and maintenance operation platform by the device after the channel automatic switching is completed, prompting that the Bluetooth connection of the device is successful after the mobile operation and maintenance operation platform receives the command, and flashing an uplink communication indicator light L3 in the process;
(5) and (3) testing an RS485 interface: the VBUS end and the UD-end of the data line interface of the device, namely the A end and the B end of the RS485 bus channel, are connected with the A end and the B end of the RS485 interface of the electric energy meter respectively through a twisted pair, the electric energy meter functional data needing to be read is selected on a mobile operation and maintenance operation platform APP of an android smart phone, and then the mobile operation and maintenance operation platform sends a current forward active electric energy command: 6728341401010068010243C 34816, the order is received by this device's wireless bluetooth channel and is converted into TTL level signal and transmits for signal processing module through its serial ports, signal processing module transmits TTL level signal to RS485 bus channel again, RS485 bus channel converts TTL level signal to RS485 difference signal and transmits for electric energy meter RS485 interface through A, B twisted pair line, the electric energy meter receives to read and reply to this request order after the data request, the reply message is: 6728341400010168810643C 353 CC 33335116, a response message is transmitted to an RS485 bus channel of the device from an RS485 interface of the electric energy meter through a A, B twisted pair in the form of an RS485 differential signal, then the RS485 bus channel converts the RS485 differential signal into a TTL level signal and transmits the TTL level signal to a signal processing module, the signal processing module transmits the TTL level signal to a Bluetooth serial port channel, a wireless Bluetooth channel converts the TTL level signal into a Bluetooth signal and transmits the Bluetooth signal to a mobile operation and maintenance operation platform, the mobile operation and maintenance operation platform APP analyzes the command after receiving the response command and displays the test result that the RS485 interface of the electric energy meter is normal, and meanwhile clearly displays information such as a read request data result;
(6) in the test process, if the time exceeds 3 seconds, the mobile operation and maintenance platform APP still does not receive the response command, and the response command is not received after multiple requests, the mobile operation and maintenance platform APP determines that the data is overtime, and can determine that the RS485 interface of the electric energy meter is damaged, and when the RS485 interface of the electric energy meter is normal in the test process, the flashing sequence of the indicator lamps is that the uplink communication indicator lamp L3 flashes for 1 time → the downlink communication indicator lamp L4 flashes for 1 time → the downlink communication indicator lamp L4 flashes for 1 time → the uplink communication indicator lamp L3 flashes for 1 time, and the flashing forms of other indicator lamps are abnormal, namely the RS485 interface of the electric energy meter is tested to be in an abnormal state;
(7) after the test is finished, the dial switch is dialed away from the starting position to turn off the power supply, if the power supply is forgotten to be turned off, the device can automatically turn off the system power supply after no command exceeds 3 minutes, and the whole device enters a low power consumption mode.
Use the utility model discloses, carry out functional test to general RS232 interface through USB serial port mode, its step is as follows:
(1) connecting the RS232 end of the data line interface of the device with a general RS232 interface of a tested computer by using a standard RS232 data line, and then opening a computer serial port debugging assistant;
(2) the dial switch is dialed to a starting position, the power indicator light L2 begins to flicker, when the uplink communication indicator light L3 and the downlink communication indicator light L4 flicker for 2 times respectively, the device is started, if the Bluetooth indicator light L1 is normally on, the wireless Bluetooth channel is abnormal, and whether the channel is damaged needs to be checked again;
(3) the USB port of the mobile phone is connected with the USB interface of the device by using a USB data line, then the signal processing module acquires the current voltage value through the voltage ADC acquisition module, the standard voltage value of the USB is 5V, so that the acquired voltage value is certainly greater than 4.6V, when the voltage value is greater than 4.6V, the signal processing module switches the multi-uplink communication transmission channel from the wireless Bluetooth serial port channel to the USB-to-serial port channel, and meanwhile, the mobile phone connected with the USB interface of the device can add one CH341 virtual serial port number;
(4) selecting a virtual serial port number corresponding to a USB port of the mobile phone on a serial port debugging assistant of the mobile phone, opening a serial port, and inputting a channel switching command in a sending area: the SetCOM RS232,09600 and E End click to send a command, the signal processing module receives the command and then switches the multi-downlink communication transmission channel to an RS232 serial port channel with 9600 baud rate and an even check mode, and after the channel is automatically switched, the signal processing module sends a SetCOM OK command to answer the mobile phone;
(5) inputting a command in a sending area of the mobile phone serial port debugging assistant: 6828341401010068010243C 34816, selecting binary mode to send, the order is transmitted to USB transfer serial port channel through USB data line by USB interface, USB transfer serial port channel converts the order into TTL level signal and transmits to signal processing module, signal processing module transmits TTL level signal to RS232 serial port channel, RS232 serial port channel converts received TTL level signal into RS232 asynchronous transmission signal and transmits to general RS232 end of tested computer through three-wire system of TXD, RXD and GND, tested computer responds to the order, the response message is: 6828341400010168810643C 353 CC 335116, then the response command is sent to the RS232 serial port channel by the general RS232 end of the tested computer in the form of RS232 asynchronous transmission signal, the RS232 serial port channel converts the received RS232 asynchronous transmission signal into TTL level signal and transmits the TTL level signal to the signal processing module, the signal processing module transmits the received TTL level signal to the USB to serial port channel, the USB to serial port channel converts the TTL level signal into USB signal and transmits the USB signal to the mobile phone, the serial port debugging assistant of the mobile phone analyzes the command after receiving the response command, displays the test result as normal, and clearly displays the information such as the result of reading the request data;
(6) in the test process, if the response command is not received by the mobile phone and the response command is not received after multiple requests in excess of 3 seconds, the mobile phone serial port debugging assistant determines that the data is overtime, and can determine that the general RS232 interface of the tested computer is damaged, and in the test process, when the tested general RS232 interface is normal, the flashing sequence of the indicator lamps is that the uplink communication indicator lamp L3 flashes for 1 time → the downlink communication indicator lamp L4 flashes for 1 time → the downlink communication indicator lamp L4 flashes for 1 time → the uplink communication indicator lamp L3 flashes for 1 time, and the flashing forms of other indicator lamps are abnormal, namely the tested general RS232 interface is in an abnormal state;
(7) after the test is finished, the dial switch is dialed away from the starting position to turn off the power supply, if the power supply is forgotten to be turned off, the device can automatically turn off the system power supply after no command exceeds 3 minutes, and the whole device enters a low power consumption mode.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not intended to limit the present invention, and all modifications, equivalents, improvements and the like that are made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. The utility model provides a measurement agreement passageway automatic switching control equipment, includes box body (1), its characterized in that: the top surface of the box body (1) is provided with an indicator lamp group (7), an infrared signal transmitting hole (4), an infrared signal receiving hole (6) and a button switch S1, a cover (8) is covered on the button switch S1, one side surface of the box body (1) is provided with a dial switch (3) and a USB interface (2), and the other side surface of the box body (1) is provided with a data line interface (5); a signal processing module and a lithium battery power supply module are arranged in the box body (1), a first signal receiving and transmitting end of the signal processing module is connected with a signal receiving and transmitting end of the multi-uplink communication transmission channel module, the second signal receiving and transmitting end of the signal processing module is connected with the signal receiving and transmitting end of the multi-downlink communication transmission channel module, the power supply end of the lithium battery power supply module is respectively connected with the power supply end of the voltage ADC acquisition module and the power supply end of the system power supply management module, the signal output end of the voltage ADC acquisition module is connected with the signal acquisition end of the signal processing module, the power supply end of the system power management module is respectively connected with the power supply end of the signal processing module, the power supply end of the multi-uplink communication transmission channel module, the power supply end of the multi-downlink communication transmission channel module and the power supply end of the indicator lamp set (7), and the control end of the signal processing module is connected with the signal input end of the indicator lamp set (7); the multi-uplink communication transmission channel module comprises a USB-to-serial port channel module and a wireless Bluetooth serial port channel module, and the multi-downlink communication transmission channel module comprises an infrared signal receiving and transmitting channel module, an RS485 bus channel module and an RS232 serial port channel module.
2. The automatic switching device of metering protocol channel according to claim 1, characterized in that: the lithium battery power supply module comprises a lithium battery pack and a lithium battery pack electric quantity monitoring module, wherein one path of a positive output end of the lithium battery pack is connected with a BAT end of the lithium battery pack electric quantity monitoring module, the other path of the positive output end of the lithium battery pack is connected with a SET2 end of a dial switch (3), a negative output end of the lithium battery pack is grounded, one path of a common end COM of the dial switch (3) is used as a first power output end VDD to output electric energy outwards, the other path of the common end COM of the dial switch (3) is grounded through a tenth capacitor C10, two ends of the tenth capacitor C10 are connected with an eleventh capacitor C11 in parallel, the SET1 end of the dial switch is connected with a VBUS end of a USB interface (2) through a test short circuit, one path of the VBUS end of the USB interface (2) is connected with a CHRG end of the lithium battery pack electric quantity monitoring module through a second light-emitting diode L2 and a sixth resistor R6, and the other path of the VBUS end of the USB interface (2) is connected, the power supply terminal VCC of the lithium battery pack power monitoring module is grounded through a twelfth capacitor C12, the two ends of the twelfth capacitor C12 are connected with a thirteenth capacitor C13 in parallel, the PROG terminal of the lithium battery pack power monitoring module is grounded through a seventh resistor R7, and the ground terminal GND of the lithium battery pack power monitoring module is grounded.
3. The automatic switching device of metering protocol channel according to claim 1, characterized in that: the system power management module comprises a first power management module and a second power management module, wherein a first path of a voltage input end VIN of the first power management module is connected with a first power output end VDD, the second path of the voltage input terminal VIN of the first power management module is connected to the enable terminal EN of the first power management module through a second resistor R2, the third path of the voltage input end VIN of the first power management module is connected to the ground end GND of the first power management module through the second resistor R2 and the push-button switch S1, the ground end GND of the first power supply management module is grounded, one path of the voltage output end VOUT of the first power supply management module is used as a second power supply output end VCC _ MCU to externally output electric energy, the other path of the voltage output end VOUT of the first power management module is grounded through a fifth capacitor C5, and the BP end of the first power management module is grounded through a sixth capacitor C6; the second power management module voltage input end VIN is connected with the first power output end VDD, the enable end EN of the second power management module is connected with the 8 th pin P1.7/ADC7/TXD _3/XTAL1 of the signal processing module through the third resistor R3, one path of the voltage output end VOUT of the second power management module is used as the third power output end VDD3.3v to output electric energy externally, the other path of the voltage output end VOUT of the second power management module is grounded through the seventh capacitor C7, the BP end of the second power management module is grounded through the eighth capacitor C8, and the grounding end GND of the second power management module is grounded.
4. The automatic switching device of metering protocol channel according to claim 1, characterized in that: the voltage ADC acquisition module comprises a fourth resistor R4, one end of the fourth resistor R4 is connected with a first power output end VDD, a first path at the other end of the fourth resistor R4 is grounded through a fifth resistor R5, a second path at the other end of the fourth resistor R4 is grounded through a ninth capacitor C9, and a third path at the other end of the fourth resistor R4 is connected with a 4 th pin P1.3/ADC3/MOSI of the signal processing module.
5. The automatic switching device of metering protocol channel according to claim 1, characterized in that: the infrared signal transceiving channel module comprises an infrared transmitting circuit and an infrared receiving circuit, the infrared transmitting circuit comprises a nineteenth resistor R19, a first path at one end of the nineteenth resistor R19 is connected with a third power output end VDD3.3v, a second path at one end of the nineteenth resistor R19 is grounded through a seventeenth capacitor C17, a first path at the other end of the nineteenth resistor R19 is grounded through an eighteenth capacitor C18, a second path at the other end of the nineteenth resistor R19 is connected with an anode of a fifth light emitting diode L5, a cathode of the fifth light emitting diode L5 is connected with an emitter of a PNP type first triode VT1, a collector of the PNP type first triode VT1 is connected with an emitter of a PNP type second triode VT2, a collector of the PNP type second triode VT2 is grounded, a base of the PNP type first triode VT1 is connected with a 30 pin P0.1/AD 1/D3 of the signal processing module through a twenty-first resistor R21, the base electrode of the PNP type second triode VT2 is connected with the 17 th pin P3.4/T0/T1CLKO/ECI _2 of the signal processing module through a twentieth resistor R20; the infrared receiving circuit comprises an infrared receiving module, one path of a signal output end OUT of the infrared receiving module is connected with a 29 th pin P0.0/AD0/RXD3 of the signal processing module, the other path of the signal output end OUT of the infrared receiving module is connected with a third power output end VDDD 3.3v through a seventeenth resistor R17, the first path of a power end VCC of the infrared receiving module is connected with the third power output end VDDD 3.3v through an eighteenth resistor R18, the second path of the power end VCC of the infrared receiving module is grounded through an eighteenth resistor R18 and a sixteenth capacitor C16, the third path of the power end VCC of the infrared receiving module is grounded through a fourteenth capacitor C14, two ends of the fourteenth capacitor C14 are connected with a fifteenth capacitor C15 in parallel, and a ground end GND of the infrared receiving module is grounded.
6. The automatic switching device of metering protocol channel according to claim 1, characterized in that: the RS485 bus channel module comprises an RS485 bus channel, wherein one path of a first signal input end A of the RS485 bus channel is connected with a voltage end VBUS of a data line interface (5) through a second fuse tube RT2, the other path of the first signal input end A of the RS485 bus channel is connected with a third power supply output end VDD3.3v through a fourteenth resistor R14, one path of a second signal input end B of the RS485 bus channel is connected with a negative output end UD-of the data line interface (5) through a first fuse tube RT1, the other path of the second signal input end B of the RS485 bus channel is grounded through a thirteenth resistor R13, a transient voltage suppression diode TVS1 is connected in series between the second signal input end B of the RS485 bus channel and the first signal input end A of the RS485 bus channel, one path of the power supply end VDD of the RS485 bus channel is connected with a third power supply output end 3.3v, and the other path of the power supply end VDD of the RS485 bus channel is grounded through a twenty-fourth capacitor C24, the RO end of the RS485 bus channel is connected with a1 st pin P1.0/ADC0/CCP1/RXD2 of the signal processing module, the RE end of the RS485 bus channel is connected with a collector electrode of a PNP type third triode VT3, the collector electrode of the PNP type third triode VT3 is grounded through a twelfth resistor R12, a base electrode of the PNP type third triode VT3 is connected with a 2 nd pin P1.1/ADC1/CCP0/TXD2 of the signal processing module through an eleventh resistor R11, an emitter electrode of the PNP type third triode VT3 is connected with a third power output end VDD3.3v, a control end DE of the RS485 bus channel is connected with the RE end of the RS485 bus channel, a DI end of the RS485 bus channel is connected with the 2 nd pin P1.1/ADC1/CCP0/TXD2 of the signal processing module, and a ground end of the RS485 bus channel is grounded.
7. The automatic switching device of metering protocol channel according to claim 1, characterized in that: the RS232 serial port channel module comprises an RS232 serial port channel, one path of a power supply end VCC of the RS232 serial port channel is connected with a second power supply output end VCC _ MCU, the other path of the power supply end VCC of the RS232 serial port channel is grounded through a twenty-first capacitor C21, a C1+ end of the RS232 serial port channel is connected with a C1-end of the RS232 serial port channel through a nineteenth capacitor C19, a C2+ end of the RS232 serial port channel is connected with a C2-end of the RS232 serial port channel through a twentieth capacitor C20, a positive voltage end V + of the RS232 serial port channel is grounded through a twenty-second capacitor C22, a negative voltage end V-of the RS232 serial port channel is grounded through a twenty-third capacitor C23, a T1IN end of the RS232 serial port channel is connected with a 14 th pin P3.1/TXDD/T2 of the signal processing module, an R1OUT end of the RS232 serial port channel is connected with a13 th pin INT 3.0/CLKD/RXD 4/T2, the R1IN end of the RS232 serial port channel is connected with the ground end GND of the data line interface (5) through a sixteenth resistor R16, the T1OUT end of the RS232 serial port channel is connected with the positive output end UD + of the data line interface (5) through a fifteenth resistor R15, and the ground end GND of the RS232 serial port channel is grounded.
8. The automatic switching device of metering protocol channel according to claim 1, characterized in that: the wireless Bluetooth serial port channel module comprises a Bluetooth serial port channel, one path of a Bluetooth serial port channel power supply end VCC3.3v is connected with a third power supply output end VDD3.3v, the other path of the Bluetooth serial port channel power supply end VCC3.3v is grounded through a third capacitor C3, two ends of the third capacitor C3 are connected with a fourth capacitor C4 in parallel, a data sending end UART _ TX of the Bluetooth serial port channel is connected with a 31 th pin P0.2/AD2/RXD4 of a signal processing module, a data receiving end UART _ RX of the Bluetooth serial port channel is connected with a 32 th pin P0.3/AD3/TXD4 of the signal processing module, a 25 th pin P05 of the Bluetooth serial port channel is connected with a 24 th pin P2.3/A11/MOSI _2 of the signal processing module, a 24 th pin P12 of the Bluetooth serial port channel is grounded through a first light emitting diode L1 and a first resistor R1, and the ground end of the Bluetooth serial.
9. The automatic switching device of metering protocol channel according to claim 1, characterized in that: the USB-to-serial port channel module comprises a USB-to-serial port channel, one path of a power supply terminal VCC of the USB-to-serial port channel is connected with a VUBS terminal of a USB interface, the other path of the power supply terminal VCC of the USB-to-serial port channel is grounded through a twenty-fifth capacitor C25, a data sending terminal TXD of the USB-to-serial port channel is connected with a cathode of a first diode D1, an anode of the first diode D1 is connected with a13 th pin P3.0/RXD/INT4/T2CLK0 of the signal processing module, a data receiving terminal RXD of the USB-to-serial port channel is connected with a 14 th pin P3.1/TXD/T2 of the signal processing module through a twenty-second resistor R22, a V3 terminal of the USB-to-sixth capacitor C26 of the USB-to ground, a + UD terminal of the USB-to-UD terminal of the USB interface, a D-terminal of the USB-to-terminal, the ground end GND of the USB interface is grounded, and the signal input end IN of the USB interface is vacant.
10. The automatic switching device of metering protocol channel according to claim 1, characterized in that: the indicating lamp group (7) comprises a third light-emitting diode L3 and a fourth light-emitting diode L4, wherein the anode of the third light-emitting diode L3 is connected with a third power output end VDD3.3v, the cathode of the third light-emitting diode L3 is connected with a 25 th pin P2.4/A12/ECI _3/SS _2 of the signal processing module through a ninth resistor R9, the anode of the fourth light-emitting diode L4 is connected with the third power output end VDD3.3v, and the cathode of the fourth light-emitting diode L4 is connected with a 26 th pin P2.5/A13/CCPO _3 of the signal processing module through a tenth resistor R10; the signal processing module power end VCC is connected with second power output VCC _ MCU through first electric capacity C1 all the way, first electric capacity C1 both ends have connect second electric capacity C2 in parallel, another way ground connection of signal processing module power end VCC, signal processing module ground terminal GND ground connection.
CN201921536394.7U 2020-05-13 2020-05-13 Automatic switching device for metering protocol channel Active CN210835209U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201921536394.7U CN210835209U (en) 2020-05-13 2020-05-13 Automatic switching device for metering protocol channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201921536394.7U CN210835209U (en) 2020-05-13 2020-05-13 Automatic switching device for metering protocol channel

Publications (1)

Publication Number Publication Date
CN210835209U true CN210835209U (en) 2020-06-23

Family

ID=71259639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201921536394.7U Active CN210835209U (en) 2020-05-13 2020-05-13 Automatic switching device for metering protocol channel

Country Status (1)

Country Link
CN (1) CN210835209U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114980433A (en) * 2022-06-14 2022-08-30 广州市安贝电子有限公司 Ethernet light control method, system, equipment and medium for stage lamp

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114980433A (en) * 2022-06-14 2022-08-30 广州市安贝电子有限公司 Ethernet light control method, system, equipment and medium for stage lamp
CN114980433B (en) * 2022-06-14 2023-01-31 广州市安贝电子有限公司 Ethernet light control method, system, equipment and medium for stage lamp

Similar Documents

Publication Publication Date Title
CN202423743U (en) Smart power socket device and control system
CN107016532A (en) A kind of home energy source management terminal, system and method
CN210377099U (en) Automatic switching circuit for metering protocol channel
CN108847869A (en) Portable multifunctional electric power analog channel test device and its test method
CN205122909U (en) Intelligent socket
CN210835209U (en) Automatic switching device for metering protocol channel
CN103138394A (en) Resident smart power utilization management system and device based on 3rd generation telecommunication (3G) network
CN206133904U (en) Equipment of checking meter is handed to bluetooth
CN216486059U (en) Energy consumption monitoring control circuit
CN205157644U (en) Multiloop ammeter
CN202474492U (en) Multifunctional socket capable of sensing peak-valley electrical measurement and controlling electric devices based on PLC communication
CN205657504U (en) Domestic electric information interaction inquiry system
CN104767081A (en) Configurable wireless smart socket
CN104201515A (en) Remote intelligent socket
CN102506932A (en) Thermodynamic type energy-efficiency data acquisition terminal
CN202841148U (en) Portable power line broadband equipment testing device
CN210983731U (en) Electric energy meter intelligent collection device, electric energy meter and system
CN209460923U (en) Data acquisition and transmission device
CN213750717U (en) Operation and maintenance device for electric energy metering terminal
CN211019117U (en) Low-voltage centralized meter reading debugging circuit
CN205486709U (en) Multi -functional household power consumption information acquisition device
CN218003551U (en) Programmable controller with electric quantity metering and load identification functions
CN204358234U (en) The intelligent temperature control valve of collection intelligent temperature control and calorimeter Data Integration
CN216696459U (en) Single-phase local cost control intelligent electric energy meter
CN214851317U (en) Multi-channel electrical fire monitoring device with network transmission

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant