A kind of portable simulation table module
Technical field
The invention belongs to technical field of electricity, refer to a kind of small-sized portable simulation table module especially.
Background technology
In the exploitation of copying product at ammeter or collection and field maintemance process, often use computer and ammeter or collection and copy product and use RS485 communication interface to carry out communication.And be that present desktop computer or notebook are all no longer with serial ports, but adopt commercially available USB RS 232 module that USB interface is converted to RS232 interface, and then use commercially available passive RS232 to turn RS485 module converts to become RS485 interface, structure is as shown in Figure 1.
Adopt USB RS 232 module and RS232 to turn this mode of RS485 module in Fig. 1 and there is following problem:
This mode cannot carry out electrical isolation, at the scene under environment, certain insecurity is had to computer and people, if ammeter or collection copy equipment with forceful electric power, easy generation electric shock or infringement computer, have developed isolation way to take power for this reason and RS485 Magnetic isolation mode has then effectively evaded this risk.
Be all passive module because commercially available RS232 turns RS485 module, transmission range is comparatively near, is easily interfered, unstable.
The modular converter volume of existing technology is excessive, and wiring is complicated, is not easy to carry.
Owing to being that these two structures of USB and RS232 module realize a function jointly, any one structure has problem all likely occur abnormal and be not easy to investigation.
Existing technology cannot carry out protocol conversion.
If when needing to use more than two-way or two-way, need the module that two covers or more are such, and need the two or more USB interface taking computing machine.
If realize virtual ammeter function on this basis to need to develop a set of software on computers, and whenever all need computer, and computer is many times inconvenient to use in scene, because power supply is inconvenient.
Because traditional simulation table module exists above problem, and also need to use infrared communication in exploitation and field maintemance process, burning program, or ROMPaq, the functions such as amendment parameter, need to develop the virtual ammeter of a kind of portable multi-function, integration solves the user demand of ammeter enterprise and ammeter client for this reason.
Summary of the invention
The object of the invention is to propose improvement opportunity scheme to the simulation table module of existing technology, by the technical program can solve existing simulation table module develop and field maintemance time not convenient problem, the integrated technique scheme of the functions such as infrared communication, burning program, ROMPaq or amendment parameter can be realized simultaneously.
The present invention is achieved by the following technical solutions:
A kind of portable simulation table module, includes housing, storer, the communication interface that is arranged at the mainboard in described housing and is arranged on described housing;
Described mainboard includes that USB turns serial port module, a RS232 turns RS485 module, the 2nd RS232 turns RS485 module, infrared modular converter and micro-control unit;
A described RS232 turns RS485 module and is connected with the first UART interface that described USB turns serial port module; First UART interface of the second UART interface and described micro-control unit that described USB turns serial port module is connected;
Described 2nd RS232 turns RS485 module and is connected with the second UART interface of described micro-control unit;
Described line external conversion module is connected with the 3rd UART interface of described micro-control unit;
Described storer is connected with the SP interface of described micro-control unit;
Described communication interface includes USB interface, a RS485 interface, the 2nd RS485 interface and infrared interface;
Described USB interface turns serial port module with described USB and is connected; A described RS485 interface and a described RS232 turn RS485 model calling; Described 2nd RS485 interface and described 2nd RS232 turn RS485 model calling; Described infrared interface is connected with described infrared modular converter.
Further, button, display screen, man-machine interface and burning interface is also provided with on the housing.
Further, described mainboard also includes key-press module and display module; Described key-press module and described display module are all connected with an I/O mouth of described micro-control unit; Described key-press module is all connected with described man-machine interface with described display module.
Further, described mainboard also includes level switch module; Described level switch module is connected with the 2nd I/O mouth of described micro-control unit and described burning interface respectively.
Described storer is FLASH memory.
Further, also switch is included; One end of described switch is connected with described 2nd RS485 interface, and the other end of described switch is connected with at least one interface in described man-machine interface or burning interface respectively.
The invention has the beneficial effects as follows:
1, the present invention is by being provided with two RS485 interfaces, and the 2nd RS485 interface has simulate electric energy meter function, can simulate communication and the data of many ammeters, and the test of checking meter of product copied by satisfied collection.
Whether 2, a RS485 interface of the present invention turns RS485 function by adopting the USB with active Magnetic isolation, the electric meter box collection of Commissioning field can be facilitated to copy equipment, check on-the-spot RS485 wiring normal.
3, infrared interface of the present invention has USB and turns infrared function, on-the-spotly can realize by computer the communication that infrared interface and collection copy equipment and ammeter equipment, just can realize the operation maintenance that equipment copied by present ammeter or collection like this without the need to any wiring.
Accompanying drawing explanation
Fig. 1 is simulation table module and the computer connection diagram of existing technology;
Fig. 2 is simulation table modular structure block diagram of the present invention;
Fig. 3 is simulation table module vertical view of the present invention;
Fig. 4 is simulation table module upward view of the present invention;
Fig. 5 is simulation table module left view of the present invention;
Fig. 6 is simulation table module right view of the present invention;
Fig. 7 is mainboard structure schematic diagram of the present invention;
Fig. 8 is simulation table functions of modules block diagram of the present invention.
Description of reference numerals
1 housing, 2 mainboards, 01USB turns serial port module, 02 the one RS232 turns RS485 module, and 03 the 2nd RS232 turns RS485 module, 04 infrared modular converter, 05 microprocessing unit, 06 storer, 07 key-press module, 08 display module, 09 level switch module, 10USB interface, 11 the one RS485 interfaces, 12 the 2nd RS485 interfaces, 13 infrared translation interfaces, 14 man-machine interfaces, 15 burning interfaces.
Embodiment
Describe technical scheme of the present invention in detail by the following examples, following embodiment is only exemplary, only can be used for explaining and technical scheme of the present invention being described, and can not be interpreted as being the restriction to technical solution of the present invention.
In the application, UART (universalasynchronousreceiverandtransmitter) interface is asynchronous serial communication interface.
The invention provides a kind of portable simulation table module, as shown in Figures 2 to 7, include housing 1, storer 06, the communication interface that is arranged at the mainboard 2 in described housing and is arranged on described housing.
Described mainboard 2 includes that USB turns serial port module 01, a RS232 turns RS485 module 02, the 2nd RS232 turns RS485 module 03, infrared modular converter 04 and micro-control unit 05.
In this application, the terminal USB of isolation is used to power; USB turns serial port module and uses FT2232D chip, and this chip has the function that USB turns the UART interface of two-way Transistor-Transistor Logic level.In this application, a RS232 turns RS485 module and the 2nd RS232 and turns RS485 module and all adopt ADM2582E chip, and the RS232 that this chip can realize level isolation and Magnetic isolation turns RS485 function; In this application, micro-control unit adopts the MCU chip RN8211 with three tunnel UART interface, and this chip can realize infrared 38K carrier modulation function.In this application, infrared modular converter uses HS138-W infrared receiver and ballistic device.
A described RS232 turns RS485 module 02 and is connected with the first UART interface that described USB turns serial port module; First UART interface of the second UART interface and described micro-control unit that described USB turns serial port module is connected;
Described 2nd RS232 turns RS485 module and is connected with the second UART interface of described micro-control unit;
Described line external conversion module is connected with the 3rd UART interface of described micro-control unit;
Described storer is connected with the SP interface of described micro-control unit;
Described communication interface includes usb 10, a RS485 interface 11, the 2nd RS485 interface 12 and infrared interface 13;
Described USB interface turns serial port module with described USB and is connected; A described RS485 interface and a described RS232 turn RS485 model calling; Described 2nd RS485 interface and described 2nd RS232 turn RS485 model calling; Described infrared interface is connected with described infrared modular converter.
Further, described housing 1 is also provided with button, display screen, man-machine interface 14 and burning interface 15.
Further, described mainboard 2 also includes key-press module 07 and display module 08; Described key-press module and described display module are all connected with an I/O mouth of described micro-control unit; Described key-press module is all connected with described man-machine interface with described display module.
Further, described mainboard 2 also includes level switch module 09; Described level switch module is connected with the 2nd I/O mouth of described micro-control unit and described burning interface respectively.
Described storer is FLASH memory.
This simulation table module also includes switch; One end of described switch is connected with described 2nd RS485 interface, and the other end of described switch is connected with at least one interface in described man-machine interface or burning interface respectively.By closedown and the disconnection of switch, realize the difference in functionality of simulation table module, wherein, when switch is closed, realize respectively the 2nd RS485 interface respectively with the short circuit of an interface in man-machine interface or burning interface or two interfaces, now, simulation table module becomes USB and turns RS485 function; When switch disconnects, what this simulation table module realized is simulation table function.
As shown in Figure 8, the present invention can realize following functions:
Simulate electric energy meter function, the 2nd RS485 interface of the present invention turns RS485 module by the 2nd RS232 and has simulate electric energy meter function, can simulate communication and the data of many ammeters, and the test of checking meter of product copied by satisfied collection.
Adjustment and installation function, whether a RS485 interface of the present invention turns RS485 module by a RS232 and USB turns serial port module, and the electric meter box collection of Commissioning field can be facilitated to copy equipment, check on-the-spot RS485 wiring normal.And the first via UART interface of the present embodiment is the USB with active Magnetic isolation changes RS485 function.
Infrared translation function, infrared interface of the present invention has USB and turns infrared function, on-the-spotly can realize infrared interface by computer and collect the communication of copying equipment and ammeter equipment, just can realize on-the-spot ammeter like this and collect the operation maintenance of equipment of copying without the need to any wiring.
Software upgrading function, 2nd RS485 interface of the present invention can realize on-the-spot copying collection or the software upgrading of ammeter product, specific implementation process is wanting that the collection of upgrading is copied or the program file of ammeter downloads in the flash storage of multifunctional virtual ammeter by USB interface, then realize, by the 2nd RS485 interface, program file subpackage is handed down to collection by button operation at the scene to copy or ammeter, realize online upgrading function, without the need to computer access in escalation process, convenient and swift.
Burning program function, by burning program interface, can realize copying or the burning program of ammeter product collection in production run, specific implementation process is thinking that the collection of burning is copied or the program file of ammeter downloads in the flash storage of multifunctional virtual ammeter by USB interface, then at the scene by button operation realize by burning interface program file burning enter collection copy or ammeter CPU in, realize burning program function, without the need to computer access in burning process, convenient and swift.
Parameter setting function, the technical program to be copied collection by the 2nd RS485 interface off line or ammeter carries out optimum configurations.Specific implementation process be by USB interface want arrange parameter downloads in the flash storage of multifunctional virtual ammeter, then at the scene by button operation realize send to collection to copy or ammeter parameter by the 2nd RS485 interface, realize parameter setting function; Without the need to computer access in setting up procedure, convenient and swift.
Data communication facility, the technical program has two RS485 interfaces and an infra red communication port, can realize computer and copy or ammeter data communication function with collection.
The technical program, by the 2nd RS485 Interface realization protocol conversion function, to the timing acquiring function of ammeter data and be saved in FLASH storage chip by the timing acquiring of ammeter data, then uses USB interface to the digital independent stored in computer.
Although illustrate and describe embodiments of the invention, for the ordinary skill in the art, be appreciated that and can carry out multiple change, amendment, replacement and modification to these embodiments without departing from the principles and spirit of the present invention, scope of the present invention is by claims and equivalency thereof.