Summary of the invention
The purpose of this invention is to provide a kind of HART of being applicable to instrument situ configuration, the handheld communicator (hereinafter to be referred as " manual operator ") of measurement and the method for using this manual operator to communicate by letter with the HART instrument of realizing.
For achieving the above object, the technical solution used in the present invention is: a kind of universal manual operator of HART instrument, comprise shell, mainboard, communication board, power panel, LCD display panel, film key and lithium battery, it is characterized in that: described LCD display panel places the superiors, is connected to described mainboard by soft arranging wire; Described communication board comprises HART Modem circuit, by connector be connected mainboard and connect; Described lithium battery is inserted on the described power panel, and described power panel is connected to described communication board by socket; Described film key is integrated on the described power panel, is connected to described mainboard by soft arranging wire; Described communication board, described mainboard, described power panel and described LCD display panel are screwed in respectively on the described shell.
Described mainboard comprises ARM9 processor, SDRAM, Flash, SD card and USB interface, and built-in DD document analysis software can pass through USB interface download equipment description document and program firmware.
Described power panel charges to described lithium battery, exports 5V, 3.3V and 1.2V after processing by power circuit for described manual operator, and shows current battery electric quantity by the capacity prompt button.
Also comprise on ﹠ off switch, on ﹠ off switch is connected with described mainboard.
The method of using the universal manual operator of aforesaid HART instrument to communicate by letter with the HART instrument may further comprise the steps:
(1) ARM9 platform initialization;
(2) load graphical user interface;
(3) based on the application program launching of graphical user interface, create to be used for safeguarding graphical display interface worker thread, be used for the worker thread that the display interface order follows the tracks of and be used for that the HART communications reception sends and the worker thread of data monitoring, specifically may further comprise the steps:
1. program initialization;
2. load standard HART DD storehouse resolver;
3. create HART communication protocol stack thread;
4. create graphical window interface;
5. window interface upgrades;
6. display interface command analysis;
When 7. not needing to send order, go to step 6.;
8. trigger HART communication protocol stack thread and carry out HART communication;
9. HART communicates by letter successfully, then goes to step 5., if unsuccessful, then goes to step 6..
Good effect of the present invention is: adopt 32 ARM9 processors, rich hardware resource can be moved graphical user interface, user interface is friendly, integrated DD file imports and resolves software, can communicate with the HART instrument of any manufacturer, satisfies HART instrument situ configuration and diagnosis needs.
Embodiment
Fig. 1 is structural representation of the present invention, and Fig. 2 is that ARM9 processor and the miscellaneous part control in the mainboard concerns schematic diagram.As depicted in figs. 1 and 2, a kind of universal manual operator for the HART instrument, comprise shell 1, mainboard 2, communication board 3, power panel 4, LCD display panel 5, film key 6, on ﹠ off switch 7 and lithium battery, it is characterized in that: described LCD display panel 5 places the superiors, is connected to described mainboard 2 by soft arranging wire; Described communication board 3 comprises HART Modem circuit, by connector be connected mainboard 2 and connect; Described lithium battery is inserted on the described power panel 4, and described power panel 4 is connected to described communication board 3 by socket; Described film key 6 is integrated on the described power panel 4, is connected to described mainboard 2 by soft arranging wire; Described communication board 3, described mainboard 2, described power panel 4 and described LCD display panel 5 are screwed in respectively on the described shell 1.
Described mainboard 2 comprises ARM9 processor, SDRAM, Flash, SD card and USB interface, and built-in DD document analysis software can pass through USB interface download equipment description document and program firmware.
4 pairs of described lithium batteries of described power panel charge, and export 5V, 3.3V and 1.2V after processing by power circuit for manual operator, and show current battery electric quantity by the capacity prompt button.
Manual operator also comprises on ﹠ off switch 7, and described on ﹠ off switch 7 is connected with described mainboard 2.
ARM9 processor of the present invention can use graphical user interface, has abundant graphical interface, and use habit and conventional P C are similar, user-friendly.
Communication board can adopt ripe HART Modem circuit, realizes access HART instrument function.
Power panel is considered volume, weight and essential safety requirement, selects lithium battery as the complete machine power supply.Power panel charges to lithium battery, output 5V after processing by power circuit, and 3.3V and 1.2V are for manual operator.
The LCD display panel considers that the accurate location that touches input needs, and can adopt 3.5 cun TFT liquid crystal touch screens.
Film key can be with reference to popular mobile phone inputting interface, and the design input keyboard is used for the manual operator operation.
As shown in Figure 3, the present invention adopts the graphical user interface of multi-task scheduling, realizes operation and the operation of the bottom hardware module of manual operator, comprises the driver of LCD display panel 5, communication board 3, finger-board 6.Application program of operation on the graphical user interface provides very touch-type graphical operation interface for users to use.This application program also is responsible for the management control of HART communications applications layer and data link layer, the maintenance of database and the management of file.
Use method that manual operator of the present invention communicates by letter with the HART instrument as shown in Figure 4 and Figure 5, may further comprise the steps:
(1) ARM9 platform initialization;
(2) load graphical user interface;
(3) based on the application program launching of graphical user interface, create to be used for safeguarding graphical display interface worker thread, be used for the worker thread that the display interface order follows the tracks of and be used for that the HART communications reception sends and the worker thread of data monitoring, specifically may further comprise the steps:
1. program initialization;
2. load standard HART DD storehouse resolver;
3. create HART communication protocol stack thread;
4. create graphical window interface;
5. window interface upgrades;
6. display interface command analysis;
When 7. not needing to send order, go to step 6.;
8. trigger HART communication protocol stack thread and carry out HART communication;
9. HART communicates by letter successfully, then goes to step 5., if unsuccessful, then goes to step 6..
Behind manual operator starting up of the present invention, as shown in Figure 4, can be introduced into the initialize routine of an ARM9 platform, then begin to load graphical user interface.
Application program based on graphical user interface begins automatic operation subsequently, then load standard HART DD storehouse resolver, start subsequently three worker threads, one is used for the maintenance program display interface, one is used for resolving the HART order that current interface need to send, and last is used for the management that sends and receives of HART communication.
When the described manual operator program operation of Fig. 4, as shown in Figure 5, then advanced line program initialization operation loads standard HART DD storehouse resolver needed device descriptive information is passed to the display interface thread, thereby realizes HART equipment and user's interactive interface.Create described 3 worker threads of Fig. 4, the HART communication thread receives the command code of transmitting from display interface command analysis thread, sends generic command or special command then for current HART equipment.Thereby realize the current HART equipment of identification, read the HART facility information.If the input by the HART device configuration information of touch-screen or keyboard input realization from the user is arranged simultaneously, interface command is resolved thread and is again triggered the HART communication thread, the associative operation order is sent to HART equipment, the information that HART communication thread monitoring HART equipment returns is upgraded information at the program display window interface.Thereby form a complete HART equipment configuration operation flow process, realize the operating function of HART manual operator.