Man-machine interface system and design operation method thereof thereof with facilities Control bridgeTechnical field
The present invention relates to a kind of man-machine interface system and method for designing, particularly a kind of man-machine interface system and method for designing with facilities Control bridge.
Background technology
Man-machine interface refers generally to realize linking up and interactive hardware and software between user and computing machine, purpose be to make the user of computer system to make things convenient for and efficiently the operational computations machine to reach two-way interaction, finish the desired work of finishing by computing machine, its scope that contains comprises: data input devices such as keyboard, mouse, digiboard, output units such as display screen, audible device.
The system design framework of tradition man-machine interface product is normally integrated various hardware communication interface such as USB, RS-232, RS-422, RS-485, CAN BUS or Ether Net etc. on an Embedded hardware platform.Main CPU (central processing unit) (CPU) in this system has been born the required work of all man-machine interface runnings, comprises work such as picture processing, calculating, input-output device control and Control on Communication.The user the exquisite degree of picture is required to need to take into account simultaneously real-time (Real Time) problem of communication again under the situation of raising day by day, this is the requirement that can't get both for the central processing unit function of a low to medium price level.
The problem of another man-machine interface product design is exactly how to accomplish as far as possible and the communication protocol of each tame equipment manufacturing compatibility that this involves a personal-machine interface product may face the design challenges of change software and hardware architecture at any time under requirement of client.
Under the situation that the wafer production technology is constantly brought forth new ideas, microprocessor is incorporated into the controller interface circuit of various peripheral devices in the framework of microprocessor gradually, its core with a microprocessor is that main body is responsible for numerical value and logical operation, integrate some specific controller unit again, as Memory Controller Hub, get (Cache) controller, timing (Timer) controller, communication controler (as ..SPI, USB, UART etc.) soon ..., Here it is is called the microprocessor architecture design of SOC (System OnChip).
(the Human Machine Interface of Xin Yidai man-machine interface now, hereinafter to be referred as HMI) system design, also therefore by in the past based on simple single-chip or microprocessor design in conjunction with needed peripheral control chip layout, changing into gradually by employing SOC is that the mode of core designs.This will help the elevator system bus speed, the complexity of simplified system design, and also reduced the number of spare parts and the cost of peripheral controller.The appearance of SOC on market is a new revolution for man-machine product.
Yet just the man-machine products-hardware framework of present low price on the market be it seems, all is the control of being responsible for whole man-machine system running by a microprocessor.No matter be under the operating system of multitask or single task, it is awkward that the resources allocation of microprocessor all seems.Especially in industrial control condition, the problem of real-time comes into question for a long time always.Therefore, how to design a low cost and can reach dynamical HMI product, be to be expected by market always.
At present with general HMI product, in order on design cost, to average out a little, usually to sacrifice plotting speed or picture exquisiteness degree for paying the utmost attention to.But in the trend of following HMI product, the high-resolution LCD of high image quality will become main flow.Although the built-in drawing accelerator of follow-on microprocessor possibility will be based on consumer products on using.If on man-machine product, adopt microprocessor platform based on consumer products, application characteristic with man-machine product, microprocessor still do not increase any advantage, because can not be shared the real-time communication protocol computing that enough usefulness is handled more complicated at any time.Therefore, when the man-machine product that this class is general runs into complicated real-time communication protocol, all certainly will have only and adopt plug-in hardware protocol processing module one way.
The viewpoint of another consideration is, when utilizing the built-in communication controler of SOC itself, the software of control and the software of HMI are integrated, and therefore can't independently operate.When HMI has changed the equipment end device that connects, also HMI must be changed simultaneously and supporting communication protocol between it.And, for the software development work of man-machine product, also must constantly increase new communication protocol and upgrade version at different device, this all is puzzlement for man-machine manufacturing plant and client.
Fig. 1 is the hardware structure of traditional basic man-machine interface, it utilizes amicroprocessor 100A to control the work of all man-machine interfaces, comprisesmicroprocessor chip 10A,LCD module 20A,internal memory IC 30A, user's input media (comprisingcontact panel 40A andnumeric keypad 42A) and communication port 50A.Wherein can comprisemicroprocessor 100A,display controller 102A,GPIO controller 104A, UART Universal Asynchronous Receiver Transmitter (UART, Universal Asynchronous Receiver/Transmitter)controller 106A andCAN bus controller 108A in the microprocessor chip 10A.Wherein internal memory IC30A is for storing the memory block (as Flash ROM, SDRAM and SRAM... etc.) of executive routine and data, the circuit control module of communication functions such as thisUART controller 106A has RS-232 in order to extend, RS-422 and RS-485....
Fig. 2 is the software operation pattern of traditional man-machine interface.In general man-machine picture design, the picture deviser need promptly determine destination equipment at the beginning of design, because in the middle of the picture assembly that this parameter adds, all need designated that equipment end points that corresponds to that controller after each.Therefore the deviser will consider picture assembly, destination equipment and communication protocol simultaneously when the enantiomorphic relationship of planning picture assembly and destination equipment.The inconvenience of this practice is, with the method for the direct mapping of destination device description mode, in case need to revise when using different destination equipment, will seem very inconvenient, and will have modification action a large amount of and that repeat and need processed.
And, in the design picture, the user need install different characteristics according to each and plan assembly, so the user possibly can't take into account simultaneously or think deeply when replacing different destination equipment if desired in the future, whether some assembly has special consideration.Therefore, when the design of present man-machine interface product had all faced replacing destination equipment, picture also needed the puzzlement that redesigns.
Fig. 3 is the software operation process flow diagram of general man-machine interface.Man-machine picture deviser is in design during man-machine picture (step S100), at first needs to consider described man-machine label and characteristic with the controller that connects, to determine the communication protocol (step S102) between man-machine and the controller.Remove to select assembly (step S106) according to various controller then, set the attribute (step S108) of each assembly in the picture, and address, the data kenel (step S110) of assembly mapping device are set.If man-machine picture deviser is required to change controller label or model (step S104) in design or after the design, must upgrade the attribute of each picture assembly this moment according to new controller again.Step S112 checks whether finish all component, if picture has 1,000 assemblies, just need correct 1,000 module sets again.And then the compiling of carrying out picture data and communication protocol be connected (step S114) and be downloaded to man-machine interface (step S116) step.This design is the workflow of single-line type, and Renewal Design temporarily in case changed the specification of (purpose) controller, will face the puzzlement that accent comes again midway.
As known from the above, present man-machine product, no matter on the design architecture of hardware and software, all underaction reaches and does not have modular advantage.Therefore, need a hardware platform and can make product again on design of hardware and software cheaply, man-machine operation interface module and communication transfer interface module are designed to separately independently framework, if can use two separate processor to handle separately work respectively, thereby realize designing the purpose of dynamical man-machine interface, make manufacturing plant and client obtain doulbe-sides' victory with low cost.
Summary of the invention
Therefore, an object of the present invention is, take modular framework in design, only be required to be communicating by letter between man-machine operation interface module and the communication transfer interface module and make a method, described method by development company from ordering and not needing to follow any special standard, thereby make the communication work that all are various, complicated and need real-time to require, all can move on on the communication transfer interface module and move.Thus, system can be divided into two, and does not have dependence each other; The either party can carry out independent design upgrading (update) at any time.Such framework for the client and the producer, can reduce the burden of update system greatly.
Another object of the present invention is that needs are often become a module for the client changes the customized communication function of design partly (to comprise that software and hardware are partly) independent, and with two parts of present man-machine interface production sharing, promptly (1) man-machine operation interface module reaches (2) communication transfer interface module, thereby help product modification apace, to meet various needs.
To achieve these goals, the invention provides a kind of man-machine interface system, mainly comprise with facilities Control bridge:
Output input operation interface module, it constitutes main circuit by a first microprocessor, with the output input action of processing signals.This output input operation interface module has the input mode of utilizing key board, contact panel or mouse input medias such as (pointer devices) to operate, and is output unit with LCD, CRT or any demonstration or printing device.This output input operation interface module also has the bus interface of expansion, can be connected with communication control module described later, thereby realize the purpose that signal transmits mutually.
Facilities Control bridge (Device Bridge), it constitutes main circuit by one second microprocessor, handling and the communication protocol of various devices and the conversion of signal, and contain program run internal memory independently or with the program or the data-carrier store of the common access of above-mentioned output input operation interface module.This facilities Control bridge also has bus interface, can be connected with aforesaid output input operation interface module, thereby realize the purpose that signal transmits mutually.
To achieve these goals, the invention provides a kind of man-machine interface system method of operating, mainly comprise following characteristics with facilities Control bridge:
The program of output input operation interface module independently operates, the state of all control devices is to obtain by the shared drive (for example dual port memories) that reads on the communication control module, does not need to obtain by utilizing special communication protocol to link up with control device.
The program of facilities Control bridge independently operates, and utilizes special communication protocol and control device to communicate, and state is reflected in the internal memory of control device and facilities Control bridge inside simultaneously, forms the function of high-speed cache.
Facilities Control bridge can directly be uploaded the label and the type of the next direct Correction and Control apparatus of device address conversion table of renewal by the user, and need not to revise the man-machine interface picture design document on any output input operation interface module.
Whether the software of the output input operation interface module directly processor of opertaing device control bridge operates or ends.Output input operation interface module has the control of whole man-machine interface system.
Output input operation interface module can will be stored in the body internal memory or the data file on the memory external card, downloads to facilities Control bridge to be the required program of operation.
Description of drawings
Fig. 1 is the hardware structure of traditional basic man-machine interface;
Fig. 2 is the software operation pattern of traditional man-machine interface;
Fig. 3 is the software operation process flow diagram of general man-machine interface;
Fig. 4 A, 4B are the hardware platform calcspar of this patent;
Fig. 5 is according to run-in index design cycle synoptic diagram of the present invention;
Fig. 6 is a process flow diagram of the present invention;
Fig. 7 A to 7C is a device address of the present invention conversion table;
Fig. 8 is a human-machine operation interface screen assembly treatment scheme.
In the accompanying drawing, the list of parts of each label representative is as follows:
Prior art
10A microprocessor chip 20A LCD module
30Ainternal memory IC 40A contact panel
42Anumeric keypad 50A communication port
100A microprocessor 102 A display controllers
104A GPIO controller 106A UART controller
108A CAN bus controller
The present invention
10 microprocessor chips, 20 LCD modules
30 internal memory IC, 40 contact panels
42 numeric keypads, 50 communication port
100 microprocessors, 102 display controllers
104 GPIO controllers, 106 UART controllers
108 CAN bus controllers
60 facilities Control bridges, 600 second microprocessors
602 UART controllers, 604 two-port RAMs
606 SRAM, 608,610 main memory bus
620 internal buss, 630 transceivers
Embodiment
Referring to Fig. 4 A, 4B, hardware platform of the present invention is independent with the communication function of man-machine operation interface circuit and equipment end, and independent equipment end communication function circuit partly is called as facilities Control bridge 60.Thisfacilities Control bridge 60 has the microprocessor of an independently working, and it is responsible for handling and the communicating by letter to obtain or to control the state of (setting) equipment end device of equipment end.Referring to Fig. 4 A, 4B, thisfacilities Control bridge 60 has second microprocessor (MCU) 600, UART controller (or CAN controller) 602, double-port random access memory (abbreviation two-port RAM) 604, static random access memory (SRAM) 606, main memory bus 608,610, transceiver 630 and internal bus 620.This mode of operation of man-machine operation interface system with facilities Control bridge is as follows: when the main microprocessor of man-machine operation interface 10 comes into operation in system, deposit SRAM 606 in the facilities Control bridge in by system bus program code (Program) that the microprocessor 600 offacilities Control bridge 60 is required and communication protocol translation tables (Protocol translator), the control by GPIO 104 comes announcementapparatus control bridge 60 to come into operation then.
Afterfacilities Control bridge 60 is finished a communication cycle (CommunicationCycle) by oneself, the state of equipment end can be write the two-port RAM 604 (or general memory storage) that is arranged infacilities Control bridge 60, and can utilize as the mode of interrupting and notify main system.At any one time point, the microprocessor of main system can write the state of equipment end device this two-port RAM 604, and passes to equipment end by the communication process of facilities Control bridge 60.Also can fetch the state of equipment end device on the other hand, and needn't handle communicatory any work by themicroprocessor 100 of main system at this.
Fig. 5 is the run-in index design cycle synoptic diagram that has the man-machine operation interface system of facilities Control bridge according to of the present invention, and it changes the design that adopts run-in index into by the design cycle of the single-line type that was adopted in the past.According to this run-in index design cycle, picture assembly and destination equipment do not have direct relation, so the deviser of picture can produce picture file by man-machine display editor compiling only according to good each assembly of component table control numbering planning in regular turn that is provided by the system analyst.On the other hand, actual when the destination device location is set, can be by the planning table of another one deviser according to the mapping address, connect destination devices communicating agreement, produce the executive routine code and the device address conversion table (Device address Transfer Table) offacilities Control bridge 60 by software.The picture shelves can with together be downloaded to man-machine interface after the executive routine code offacilities Control bridge 60 and device address conversion table are connected simultaneously, sendfacilities Control bridge 60 to by the man-machine interface program again and carry out.Or the executive routine code and the device address conversion table of picture shelves andfacilities Control bridge 60 downloaded respectively to man-machine interface andfacilities Control bridge 60, so also can reach identical purpose.
Fig. 6 is the run-in index design cycle process flow diagram with man-machine operation interface system of facilities Control bridge of the present invention, comprise the following step: after beginning (step S200), judge whether to want editing pictures (step S210), if, the address (step S244) of then selecting picture assembly (step S240) and component property (step S242) being set and the corresponding access arrangement control ofassembly bridge 60 is set.Then judge whether to finish all component (step S244), if not, then get back to step S240, if then produce picture shelves (step S248) and the operation (step S250) that judges whether to make amendment.
At step S210, if editing pictures is not then carried out the following step to revise the device address conversion table.The inner corresponding equipment end address, access address (step S220) of editing equipment control bridge, connection device communication protocol driver (step S222), and the executive routine code (step S224) of generation facilities Control bridge.Step S226 judges whether the operation of making amendment, if will carry out then the executive routine code of facilities Control bridge is downloaded tofacilities Control bridge 60, then merge picture shelves and facilities Control bridge actuating code (step S228) if not, and amalgamation result is downloaded to man-machine interface (step S232).In the step of the above-mentioned operation that judges whether to make amendment (step S250), download amalgamation result to man-machine interface if then carry out step S232, then carry out step S228 if not and merge picture shelves and facilities Control bridge actuating code, finish (step S260) at last.
Fig. 7 A to 7C is a device address of the present invention conversion table.The direct access address of attribute, data kenel and the mappingfacilities Control bridge 60 of each assembly of record in the picture file, rather than any one unit address of sensing destination device end.Andfacilities Control bridge 60 is addresses of finding mapping destination device end andfacilities Control bridge 60 internal storage accesses by the device address conversion table.
Fig. 8 is a human-machine operation interface screen assembly treatment scheme, comprise the following step: begin back (step S300) in new page, promptly enter initial picture state (step S302), and with facilities Control bridge exchange caching data (step S304), swap data is deposited in the working area, inside (step S306) of man-machine interface, and processing picture assembly state exchange (step S308), inspect and whether finish picture all component (step S310), then draw out component states figure (step S312) if not, if then start timer (step S314).Waiting for that the user imports back (step S316), judges whether to change component states (step S318), if then get back to step S304, then judge whether if not skip (step S322), if do not skip, then get back to step S320, if will skip then process ends (step S330).
In sum, the present invention has the following advantages:
1, utilize the man-machine interface product of architecture design of the present invention, modification fast, thus reach the requirement that accords with the demands of the market.
2, can improve the performance of man-machine interface product in processing graphics and communication simultaneously.
3, need not select expensive high-order processor in order to improve system effectiveness for use.
4, in the picture design of carrying out man-machine operation interface, do not need to consider especially control device.
5, the split step that is split into two parallel designs of the picture of man-machine interface design makes the dependence that does not have immediate data each other.Portable and the recycling that has increased the design picture is worth.
The above is the preferred embodiments of the present invention only, is not so promptly limits claim of the present invention, and every other equivalence of being done in characteristic range of the present invention changes or modifies, and all should be included in the claim of the present invention.