A kind of supervisory keyboard with self-defined control protocol function
Technical field
The utility model belongs to safety precaution supervisory system opertaing device field, especially a kind of supervisory keyboard with self-defined control protocol function.
Background technology
Supervisory keyboard is the important man-machine dialogue equipment of supervisory system, and operating personnel are by the control of supervisory keyboard realization to the front-end equipment in the supervisory system, and its control method is that this supervisory keyboard uses and the on all four control protocol of front-end equipment realizes.At present, the manufacturer of front-end equipment is various, the equipment of different manufacturers may use different control protocols, and the supervisory keyboard in the market, existing monitoring field, all be to adopt to install one or more limited control protocols, exist the unconformable problem of supervisory keyboard and front-end equipment.In same supervisory system, usually have the front-end equipment of different manufacturers, because the inconsistent problem of control protocol that exists supervisory keyboard and front-end equipment to adopt just need increase the control corresponding keyboard in this supervisory system.Therefore, there are problems such as versatility is poor, accommodation is narrow problem and system cost height, maintenance difficulties be big in existing supervisory keyboard.
Summary of the invention
The purpose of this utility model is to overcome the deficiencies in the prior art, a kind of highly versatile, wide accommodation is provided and can saves the supervisory keyboard with self-defined control protocol function of system cost, reduction maintenance difficulties.
The utility model solves its technical matters and takes following technical scheme to realize:
This has the supervisory keyboard of self-defined control protocol function, by button, rocking bar, keyboard body that LCD display constitutes and inner control circuit thereof constitute, control circuit is by microprocessor, the RS485 controller, eeprom memory and lcd driver connect and compose, it is characterized in that: button and rocking bar are connected respectively on the interface of microprocessor, microprocessor is connected with the RS485 controller by reception/transmit port, be connected with eeprom memory by serial data line/clock line port, be connected with the input end of lcd driver by the I/O port, the output terminal of lcd driver is connected with LCD display on the keyboard body, and this microprocessor internal also is fixed with the control module with self-defined control protocol function.
And described button comprises numerical key, letter key and the function key that is used to be provided with the control protocol code.
And, described microprocessor is the ATMEGA16L single-chip microcomputer of atmel corp, the RS485 controller is the MAX485E chip of Maxim company, eeprom memory is the 24LC256 storer of MICROCHIP company, lcd driver is the SED1335F chip of EPSON company, and LCD display is the graphical dots configuration black-and-white crystal display screen of 320 * 240 resolution.
Advantage of the present utility model and good effect are:
1. this device is supported on the basis of various control agreement at original supervisory keyboard, realize increasing the function of control protocol by self-defined control protocol, the front-end equipment that has adapted to different manufacturers employing different control protocol, strengthen the versatility of supervisory keyboard, enlarged the scope of application of supervisory keyboard.
2. use this device, when setting up supervisory system, do not need additionally to increase supervisory keyboard equipment, can control effectively, reduced the quantity of supervisory keyboard, saved system cost the front-end equipment of different manufacturers.
3. use this device, do not need maintenance, be convenient to the maintenance of system, reduced the difficulty of safeguarding multiple different supervisory keyboards.
4. the utility model can show the whole process of self-defined control protocol by LCD display, and therefore self-defined control protocol process operation is simple, easy to use.
Description of drawings
Fig. 1 is the utility model schematic appearance;
Fig. 2 is the utility model circuit control synoptic diagram.
Embodiment
Below in conjunction with accompanying drawing the utility model embodiment is further described:
As shown in Figure 1, the utility model is made of keyboard body 1 and inner control circuit thereof, is shaped on the button that comprises function key 2, letter key 4, numerical key 5 and rocking bar 6, LCD display 3 on the keyboard body surface.
As shown in Figure 2, the control circuit in the keyboard body is connected and composed by the microprocessor that is fixed with self-defined control protocol functional module, RS485 controller, the eeprom memory that can store self-defined control protocol content that can communicate with front-end equipment and the lcd driver that can drive LCD display work; Wherein, the button on the keyboard body is connected on the PA and PB port of microprocessor; Rocking bar on the keyboard body connects on analog to digital conversion (ADC) port of microprocessor; Microprocessor is connected on the RS485 controller by reception/transmission (RXD/TXD) port, connect on the eeprom memory by serial data line/clock line (SDA/SCL) port, be connected with the input end of lcd driver by the I/O port, the output terminal of lcd driver is connected with LCD display.
What the microprocessor of above-mentioned control circuit used is the ATMEGA128L single-chip microcomputer of atmel corp, what the RS485 controller adopted is the MAX485E chip of Maxim company, what eeprom memory adopted is the 24LC256 storer of MICROCHIP company, what lcd driver adopted is the SED1335F chip of EPSON company, and LCD display is the graphical dots configuration black-and-white crystal display screen of 320 * 240 resolution.
Principle of work of the present utility model is:
Enter self-defined control protocol function by functional key, its editing interface is presented on the LCD display.Can select the mask instruction type of each byte by promoting rocking bar, this mask instruction type can be address, horizontal velocity, vertical speed, verification and, preset period, content such as common, use letter key and numerical key can edit the hexadecimal code of input simultaneously, the control module with self-defined control protocol function that microprocessor internal installs is carried out dissection process with aforesaid operations and is finished the editting function of self-defined control protocol.After finishing the editting function of self-defined control protocol, the self-defined control protocol content that comprises mask instruction type and hexadecimal code is stored in the eeprom memory, because eeprom memory is the ROM (read-only memory) of electrically-erasable, it is non-volatile storer, therefore, though its content the outage situation under can not lose yet.The aforesaid operations process all can very clearly show on lcd screen.
Before work, supervisory keyboard need be connected on the front-end equipment to realize the serial communication function between supervisory keyboard and the front-end equipment by the RS485 controller.In use, microprocessor reads the rocking bar data by analog to digital conversion (ADC) interface and converts the numerical value that is fit to the control front-end equipment to, send to this numerical value on the front-end equipment that meets the RS485 standard according to self-defining control protocol by the RS485 controller, by lcd driver content displayed is shown in LCD display, the realization supervisory keyboard is effectively controlled front-end equipment according to self-defining control protocol.