Summary of the invention
Technical matters to be solved by this invention is: a kind of LED display design system is provided, can realizes that different user carries out the personalization definition for different LED screen display contents.
In addition, the present invention also provides a kind of LED display design method, can realize that different user carries out the personalization definition for different LED screen display contents.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A kind of LED display design system, said system comprises: foreground interface management subsystem, backstage show RACS;
Said foreground interface management subsystem comprises:
-parameterized template administration module in order to be responsible for loading the LED parameterized template, is realized supplemental characteristic set management function; For LED element content administration module provides data, services;
-LED element content administration module is in order to the definition of being responsible for the data structure of all LED display elements on the interface, the appointment of pattern parameter; With the comprehensive module bi-directional association of LED data processing;
-LED control card administration module is in order to the management of the size parameter of being responsible for definition LED control card, hardware communications mode, mailing address data message; With the comprehensive module bi-directional association of LED data processing;
The comprehensive module of-LED data processing shows refreshing of view in order to be responsible for LED, the real-time control of LED element layout, control card data and element data read, upgrade management work;
-LED screen template interface, in order to the LED screen interface of simulation, according to design data information, the final design effect of performance strictly according to the facts;
Said backstage shows that RACS comprises:
-LED database needs data presented in order to storage LED screen;
-parameterized template in order to definition LED data source style of loading, has it and is formatively loaded by the LED control card;
-LED screen template, in order to the pattern of definition light-emitting diode display demonstration, and every kind of pairing parameter of display object;
-LED control card administration module, in order to being responsible for the size parameter of definition LED control card, and hardware management communication mode, mailing address data message, be the service of LED adapter;
-LED adapter, in order to the adapter of the parameter information that provides according to the LED control card and this control card of activation bit definition, the communication that becomes the LED data-switching LED control card to be discerned through the JNI technology ceases agreement and sends to the LED screen;
-some LED driver modules connect LED adapter and LED screen, in order to send video data to pairing LED control card.
As a kind of preferred version of the present invention, said LED database is a relevant database, perhaps is the text data source.
As a kind of preferred version of the present invention, the flow process that said parameterized template administration module generates ginseng tree formwork structure tree assembly comprises:
Step S111, parsing LED parameterized template XML, parameter class data set in the traversal template and detailed type data set;
Step S112, parameter data set and detailed data collection are carried out the JAVA object-instantiated, deposit in the corresponding JAVA object;
Step S113, in Action parameter JAVA object that instantiation is good, translate into string through the JSON object parser, then character string is returned user requests webpage;
In the JavaScript script among step S114, the JSP, through the character string parsing tool method among the ExtJS, the character information that will from Action, receive is translated into the discernible JSON object information of JS;
Step S115, JSON object information are packaged into the tree-shaped node that can supply the user to operate.
As a kind of preferred version of the present invention, the implementation procedure of the comprehensive module of said LED data processing is following:
At first from database, read out the data message of control card, LED element, convert it into corresponding JAVA and JSON object; In front page layout, at first corresponding perform region panel Panel according to the quantity initialization of control card, the panel object that instantiation is good is registered in the middle of the global view, is provided with other function quick calling of back;
In the panel that generates, increase a canvas object Canvas then; The attribute information of this object is according to the control card data community, corresponding and next one by one, then; In the control card structure tree; Newly-increased leaf nodes is set up corresponding relation with click event and panel, the painting canvas of this node, and control card is carried out location registration process;
Last all LED element datas of the current control card of searching loop according to the difference of element type, call corresponding object drawing practice respectively; Control its display position, pattern content; In the LED structure tree, increase leaf nodes simultaneously, this method with the registration control card is similar;
If the LED element of not drawing is then accomplished the loading procedure of a control card.
As a kind of preferred version of the present invention, the software interface of said system is divided into 6 zones, comprising:
The first area as LED parameterized template tree viewing area, is used for loading and showing available template field information;
Second area is as LED control card structure tree viewing area, the element information that is used for display control card and comprises;
The function corresponding button as the toolbar button zone, is placed in the 3rd zone;
The demonstration container of a plurality of Tab design drawing plates as main perform region, is supported in the 4th zone;
The 5th zone, as the information zone, prompting message may be displayed on this part;
The 6th zone as object properties zones, is used for showing, editor's control card or LED attribute of an element project.
The method for designing of a kind of above-mentioned LED display design system, said method comprises that foreground interface management flow process, backstage show control flow;
Said foreground interface management flow process comprises:
-parameterized template management process loads the LED parameterized template, realizes supplemental characteristic set management function; For LED element content administration module provides data, services;
-LED element content management process, the data structure of all LED display elements on the definition interfaces, given pattern parameter;
-LED control card management process, the management of the size parameter of definition LED control card, hardware communications mode, mailing address data message;
-LED data processing step refreshes LED and shows view, controls LED element layout in real time, control card data and element data read, upgrade management work;
-LED screen template simulation step display, the LED screen interface of simulation, according to design data information, the final design effect of performance strictly according to the facts;
Said backstage shows that control flow comprises:
-parameterized template is set step, and definition LED data source style of loading has it and formatively loaded by the LED control card;
-LED screen template is set step, the pattern that the definition light-emitting diode display shows, and every kind of pairing parameter of display object;
-LED control card management process, the size parameter of definition LED control card, and hardware management communication mode, mailing address data message are the service of LED adapter;
The adapter of the parameter information that-LED adapter provides according to the LED control card and this control card of activation bit definition, the communication that becomes the LED data-switching LED control card to be discerned through the JNI technology ceases agreement and sends to the LED screen;
-some LED driver modules send video data to pairing LED control card.
As a kind of preferred version of the present invention, the software interface of said system is divided into 6 zones, comprising:
The first area as LED parameterized template tree viewing area, is used for loading and showing available template field information;
Second area is as LED control card structure tree viewing area, the element information that is used for display control card and comprises;
The function corresponding button as the toolbar button zone, is placed in the 3rd zone;
The demonstration container of a plurality of Tab design drawing plates as main perform region, is supported in the 4th zone;
The 5th zone, as the information zone, prompting message may be displayed on this part;
The 6th zone as object properties zones, is used for showing, editor's control card or LED attribute of an element project.
As a kind of preferred version of the present invention, the flow process of said parameterized template management process comprises:
Step S111, parsing LED parameterized template XML, parameter class data set in the traversal template and detailed type data set;
Step S112, parameter data set and detailed data collection are carried out the JAVA object-instantiated, deposit in the corresponding JAVA object;
Step S113, in Action parameter JAVA object that instantiation is good, translate into string through the JSON object parser, then character string is returned user requests webpage;
In the JavaScript script among step S114, the JSP, through the character string parsing tool method among the ExtJS, the character information that will from Action, receive is translated into the discernible JSON object information of JS;
Step S115, JSON object information are packaged into the tree-shaped node that can supply the user to operate.
As a kind of preferred version of the present invention, the implementation procedure of said LED data processing step is following:
At first from database, read out the data message of control card, LED element, convert it into corresponding JAVA and JSON object; In front page layout, at first corresponding perform region panel Panel according to the quantity initialization of control card, the panel object that instantiation is good is registered in the middle of the global view, is provided with other function quick calling of back;
In the panel that generates, increase a canvas object Canvas then; The attribute information of this object is according to the control card data community, corresponding and next one by one, then; In the control card structure tree; Newly-increased leaf nodes is set up corresponding relation with click event and panel, the painting canvas of this node, and control card is carried out location registration process;
Last all LED element datas of the current control card of searching loop according to the difference of element type, call corresponding object drawing practice respectively; Control its display position, pattern content; In the LED structure tree, increase leaf nodes simultaneously, this method with the registration control card is similar;
If the LED element of not drawing is then accomplished the loading procedure of a control card.
Beneficial effect of the present invention is: the LED display design system and method that the present invention proposes has solved different MES clients and has carried out the personalization definition for different LED screen display contents.The parameterized template that lets the user provide according to MES software goes contents such as layout screen display text, picture, form, and can control the screen of appointment, sends the function of screen message.
The present invention has developed an adapter for the LED control card of every kind of model, and the mode through template communicates its and application system, lets different MES clients carry out personalization for different LED screen display contents and defines.The parameterized template that lets the user provide according to MES software goes contents such as layout screen display text, picture, form, and can control the screen of appointment, sends the function of screen message.
Embodiment
Specify the preferred embodiments of the present invention below in conjunction with accompanying drawing.
Embodiment one
The present invention has disclosed a kind of LED display design system, and said system comprises: foreground interface management subsystem, backstage show RACS.
See also Fig. 1, said foreground interface management subsystem comprises: the comprehensive module of parameterized template administration module 11, LED element content administration module 12, LED control card administration module 13, LED data processing 14, LED screen template interface 15.
Parameterized template administration module 11 is realized supplemental characteristic set management function in order to be responsible for loading the LED parameterized template; For LED element content administration module provides data, services.
In the present embodiment, see also Fig. 4, the flow process that said parameterized template administration module generates ginseng tree formwork structure tree assembly comprises:
Step S111, parsing LED parameterized template XML, parameter class data set in the traversal template and detailed type data set;
Step S112, parameter data set and detailed data collection are carried out the JAVA object-instantiated, deposit in the corresponding JAVA object;
Step S113, in Action parameter JAVA object that instantiation is good, translate into string through the JSON object parser, then character string is returned user requests webpage;
In the JavaScript script among step S114, the JSP, through the character string parsing tool method among the ExtJS, the character information that will from Action, receive is translated into the discernible JSON object information of JS;
Step S115, JSON object information are packaged into the tree-shaped node that can supply the user to operate.
LED element content administration module 12 is in order to the definition of being responsible for the data structure of all LED display elements on the interface, the appointment of pattern parameter; LED element content administration module 12 and comprehensive module 14 bi-directional association of LED data processing.
LED control card administration module 13 is in order to the management of the size parameter of being responsible for definition LED control card, hardware communications mode, mailing address data message; LED control card administration module 13 and comprehensive module 14 bi-directional association of LED data processing.
The comprehensive module 14 of LED data processing shows refreshing of view in order to be responsible for LED, the real-time control of LED element layout, control card data and element data read, upgrade management work.
In the present embodiment, see also Fig. 5, the implementation procedure of the comprehensive module of said LED data processing is following:
At first from database, read out the data message of control card, LED element, convert it into corresponding JAVA and JSON object; In front page layout, at first corresponding perform region panel Panel according to the quantity initialization of control card, the panel object that instantiation is good is registered in the middle of the global view, is provided with other function quick calling of back;
In the panel that generates, increase a canvas object Canvas then; The attribute information of this object is according to the control card data community, corresponding and next one by one, then; In the control card structure tree; Newly-increased leaf nodes is set up corresponding relation with click event and panel, the painting canvas of this node, and control card is carried out location registration process;
Last all LED element datas of the current control card of searching loop according to the difference of element type, call corresponding object drawing practice respectively; Control its display position, pattern content; In the LED structure tree, increase leaf nodes simultaneously, this method with the registration control card is similar;
If the LED element of not drawing is then accomplished the loading procedure of a control card.
The LED screen interface of LED screen template interface 15 in order to simulate, according to design data information, the final design effect of performance strictly according to the facts.
See also Fig. 2, said backstage shows that RACS comprises: LED database 21, parameterized template 22, LED screen template 23, LED control card administration module 24, LED adapter 25, some LED driver modules 26.
LED database 21 needs data presented in order to storage LED screen; LED database 21 can be relevant databases such as oracle, DB2, MSSQL, also can be excel, word, txt text data source.
Parameterized template 22 is in order to definition LED data source style of loading, it had formatively loaded by the LED control card.
The pattern that LED screen template 23 shows in order to the definition light-emitting diode display, and every kind of pairing parameter of display object.
LED control card administration module 24 is in order to being responsible for the size parameter of definition LED control card, and hardware management communication mode, mailing address data message, is the service of LED adapter.
LED adapter 25 is in order to the adapter of the parameter information that provides according to the LED control card and this control card of activation bit definition, and the communication that becomes the LED data-switching LED control card to be discerned through the JNI technology ceases agreement and sends to the LED screen.
LED adapter generating principle: a very crucial technological JNI has been used in the generation of LED adapter in native system, and JNI is the abbreviation of Java Native Interface (Java local interface).So-called local interface is to operate in java applet in the Java Virtual Machine " sandbox " relatively, refers to run directly on the operating system, and with the direct mutual program of operating system, its allows java applet and carries out alternately with the program of other language.JNI is for java applet and local compiled language at the beginning; Especially the interoperability of C and C++ designs; But this does not mean that can not use other language also that it is diversified for we bottom LED drives, and needs to adapt to various application platforms.The binder that can regard JNI as Java and local application visual in imagely.The JNI standard becomes the media of linking up between C language class libraries and function and the Java object.
Had this binder of JNI we with regard to the good problem that has solved the communication Protocol Conversion of overstating platform.
Some LED driver modules 26 connect LED adapter and LED screen (as being arranged between LED adapter and the LED screen), in order to send video data to pairing LED control card.
LED chip for driving optimized Algorithm: make application circuit very brief, the part that periphery needs seldom meets the theory of low cost, suitability for industrialized production.Figure below is a typical application circuit, and behind the employing primary side constant current technology, secondary feedback circuit no longer becomes the obstacle on power volume and the cost, requires very harsh occasion to bring great convenience for power volume like this.Also there is the problem that optocoupler is aging and the safety of being sorry is tested in traditional optocoupler feedback arrangement, and for the applied environment temperature of 60-90 ℃ of bulb lamp inside, reliability problems more becomes the focus of production firm and client's concern.The maturation of primary side constant current technology; Particularly the driving power chip algorithm of innovation designs new technology; Make application circuit become insensitive,, both can conveniently enhance product performance for LED mains lighting supply and light fixture manufacturer to the parameter that some of transformer and inductor is difficult to Quality Control; Can reduce cost again, be the selection of a doulbe-sides' victory.Circuit periphery part device has lacked; But the power circuit deviser will select for use high-quality to limited device; Want high like the withstand voltage of MOS; Electrolytic condenser will adopt high leakproofness, high hydration-resisting processing power, high anti-overload ability, and 125 ℃ of long-life products of 10000 hours are worked under hot environment to adapt to for a long time.
In addition, as shown in Figure 3, the software interface of said system is divided into 6 zones, is respectively:
The first area as LED parameterized template tree viewing area, is used for loading and showing available template field information;
Second area is as LED control card structure tree viewing area, the element information that is used for display control card and comprises;
The function corresponding button as the toolbar button zone, is placed in the 3rd zone;
The demonstration container of a plurality of Tab design drawing plates as main perform region, is supported in the 4th zone;
The 5th zone, as the information zone, prompting message may be displayed on this part;
The 6th zone as object properties zones, is used for showing, editor's control card or LED attribute of an element project.
More than introduced the composition of LED display design of the present invention system; The present invention is in the above-mentioned LED display design of announcement system; Also disclose the method for designing of a kind of above-mentioned LED display design system, said method comprises that foreground interface management flow process, backstage show control flow.
Said foreground interface management flow process comprises the steps:
-parameterized template management process loads the LED parameterized template, realizes supplemental characteristic set management function; For LED element content administration module provides data, services.
In the present embodiment, see also Fig. 4, the flow process of said parameterized template management process comprises:
Step S111, parsing LED parameterized template XML, parameter class data set in the traversal template and detailed type data set;
Step S112, parameter data set and detailed data collection are carried out the JAVA object-instantiated, deposit in the corresponding JAVA object;
Step S113, in Action parameter JAVA object that instantiation is good, translate into string through the JSON object parser, then character string is returned user requests webpage;
In the JavaScript script among step S114, the JSP, through the character string parsing tool method among the ExtJS, the character information that will from Action, receive is translated into the discernible JSON object information of JS;
Step S115, JSON object information are packaged into the tree-shaped node that can supply the user to operate.
-LED element content management process, the data structure of all LED display elements on the definition interfaces, given pattern parameter;
-LED control card management process, the management of the size parameter of definition LED control card, hardware communications mode, mailing address data message;
-LED data processing step refreshes LED and shows view, controls LED element layout in real time, control card data and element data read, upgrade management work;
In the present embodiment, see also Fig. 5, the implementation procedure of said LED data processing step is following:
At first from database, read out the data message of control card, LED element, convert it into corresponding JAVA and JSON object; In front page layout, at first corresponding perform region panel Panel according to the quantity initialization of control card, the panel object that instantiation is good is registered in the middle of the global view, is provided with other function quick calling of back;
In the panel that generates, increase a canvas object Canvas then; The attribute information of this object is according to the control card data community, corresponding and next one by one, then; In the control card structure tree; Newly-increased leaf nodes is set up corresponding relation with click event and panel, the painting canvas of this node, and control card is carried out location registration process;
Last all LED element datas of the current control card of searching loop according to the difference of element type, call corresponding object drawing practice respectively; Control its display position, pattern content; In the LED structure tree, increase leaf nodes simultaneously, this method with the registration control card is similar;
If the LED element of not drawing is then accomplished the loading procedure of a control card.
-LED screen template simulation step display, the LED screen interface of simulation, according to design data information, the final design effect of performance strictly according to the facts;
Said backstage shows that control flow comprises the steps:
-parameterized template is set step, and definition LED data source style of loading has it and formatively loaded by the LED control card;
-LED screen template is set step, the pattern that the definition light-emitting diode display shows, and every kind of pairing parameter of display object;
-LED control card management process, the size parameter of definition LED control card, and hardware management communication mode, mailing address data message are the service of LED adapter;
The adapter of the parameter information that-LED adapter provides according to the LED control card and this control card of activation bit definition, the communication that becomes the LED data-switching LED control card to be discerned through the JNI technology ceases agreement and sends to the LED screen.
-some LED driver modules send video data to pairing LED control card.
Embodiment two
The software general frame is to adopt B/S (browser/server) pattern.The computer programming that uses has: Java language (J2EE, STRUTS2 framework), html language, JavaScript language (ExtJS framework).
The mode of graphical interaction is adopted at the interface, foreground, and through click, drag-and-drop operation, the process that in software, gives operating personnel's a kind of " What You See Is What You Get " is experienced, and accomplishes the work of LED screen design conveniently, efficiently.The graphics context that software can design has: static text, dynamic text, picture file, simulated clock simulation clock, time on date, self-defined form, totally six kinds of objects.Can edit, manage a plurality of templates simultaneously.
The backstage service is to form through defining following three functional modules, solves the problem of data communication and LED coupling:
Definition LED screen control interface and realization class are responsible for LED hardware controls and Data Control; Definition LED parameterized template DTD and XML file, the data dictionary information that definition MES provides; Definition LED design document DTD and XML file, definition LED content element information;
The present invention can let a user-defined template, is applicable to multiple, polylith LED screen.
Thinking and process that User Interface is realized are following:
Foreground UI program is on Hypon MES software platform, to develop, and uses the JSP page program and realizes based on " the ExtJS framework " of JavaScript language.With sophisticated functions JavaScript program in the past different be; This software is realized the layering that interface content has carried out the MVC formula; Come elements such as package component, business, incident with OO thought; Use the notion of " closure " in the JavaScript technology in a large number, make that the whole software program structure is compact, interface is unified, code reusability is high.
The file of foreground UI program is formed structure:
The folder structure of UI part:
JS loads explanation: ()
User's operation example explanation of foreground UI program:
Example 1: create a new control card and a dynamic text object, and preserve:
1, " newly-built " button in the click on area 3, newly-built " control card " information is set its title, communication mode, screen size, IP address port information; After confirming, newly-built control card icon can appear in zone 2.
2, " dynamic text " button in the click on area 3; The current control card node in zone 2 a new sub-project can occur down; With a red block that shows 8 control handles occurring in the time domain 4; This is exactly " dynamic text " object of acquiescence, and its data attribute can appear in the middle of the form in zone 6.
3, the arbitrary parameter in can modifier area 6, the result of modification can be updated in the middle of the zone 4 immediately.Same, in zone 4, moving or the drag and drop element object, it closes the position, wide high attribute can upgrade in the form in zone 6 immediately.
4, " preservation " button in the click on area 3, software can be carried out the preservation process, to the prompting completion.
In sum, the LED display design system and method that the present invention proposes has solved different MES clients and has carried out the personalization definition for different LED screen display contents.The parameterized template that lets the user provide according to MES software goes contents such as layout screen display text, picture, form, and can control the screen of appointment, sends the function of screen message.
The present invention has developed an adapter for the LED control card of every kind of model, and the mode through template communicates its and application system, lets different MES clients carry out personalization for different LED screen display contents and defines.The parameterized template that lets the user provide according to MES software goes contents such as layout screen display text, picture, form, and can control the screen of appointment, sends the function of screen message.
Here description of the invention and application is illustrative, is not to want with scope restriction of the present invention in the above-described embodiments.Here the distortion of the embodiment that is disclosed and change are possible, and the replacement of embodiment is known with the various parts of equivalence for those those of ordinary skill in the art.Those skilled in the art are noted that under the situation that does not break away from spirit of the present invention or essential characteristic, and the present invention can be with other form, structure, layout, ratio, and realize with other assembly, material and parts.Under the situation that does not break away from the scope of the invention and spirit, can carry out other distortion and change here to the embodiment that is disclosed.