CN103279105B - Industrial data monitoring system based on embedded modularization platform - Google Patents
Industrial data monitoring system based on embedded modularization platform Download PDFInfo
- Publication number
- CN103279105B CN103279105B CN201310207458.XA CN201310207458A CN103279105B CN 103279105 B CN103279105 B CN 103279105B CN 201310207458 A CN201310207458 A CN 201310207458A CN 103279105 B CN103279105 B CN 103279105B
- Authority
- CN
- China
- Prior art keywords
- module
- page
- embedded
- data monitoring
- page operation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses an industrial data monitoring system based on an embedded modularization platform. The industrial data monitoring system comprises a man-machine interaction module for displaying and inputting signals through keys, a power panel module for supplying electricity, and a relay switch module for outputting the signals. The man-machine interaction module comprises a hardware driving module, an operating system module and a page operation module which are sequentially connected. Through design of the embedded universal platform, when new hardware is added, what is needed is that the interface of the page operation module is modified aiming at products, the fact that uniform code foundation frames can be used in an industrial instrument platform is realized, top layer codes of an applied part need to be modified in research and development of different products, the same format is adopted in interfaces, the interfaces do not influence one another, regardless of the fact that one interface or multiple interfaces operate in the system, no influences are caused on stability of the system itself and the foundation frame except applied layers, and an inner core always needs no modification to avoid the problem that all parts need to be redesigned when new products are developed in the past.
Description
Technical field
The present invention relates to a kind of industrial data monitoring system based on embedded-type modularized platform.
Background technology
Current similar android system, based on the codes implement of android system, user only needs Application and Development layer App, but android system expends huge for hardware resource, is not suitable for industrial instrument platform (man-machine interface).And although traditional development scheme can realize the various product development of industrial instrument platform, often realize a product, all need overlapping development.
As in actual development, if need exploitation two product, a by liquid crystal display display device running status, aly show current room temperature by liquid crystal display, if tradition exploitation, need separately to develop two product; If for input identical in product, export, graphics process, the parts such as control, need to realize in basic code and structure, without the need to again developing, even there is same interface part in two products, such as Operation system setting interface, two products can use the code with a Operation system setting interface portion completely, so just effectively can avoid overlapping development.
Summary of the invention
In order to achieve the above object, the present invention proposes a kind of industrial data monitoring system based on embedded-type modularized platform, and based on the code base of this programme and code structure, we only need to change lower liquid crystal display interface for product, can be implemented in industrial instrument platform and use unified code base framework, realize different product, the top code revising applying portion is only needed in research and development, bottom hardware drives and various input, export, Graph Control, storage system, the key code assemblies such as file system are constant (unification) part, and upper strata (application layer) code, each interface all adopts same form, freely show demand according to project by secondary development person to decide to develop quantity, each interface is independent of each other, mutual independence, no matter system only runs an interface or multiple interface, the stability of system own and the base frame except application layer are all had no effect.
The present invention realizes particular by following technical scheme:
A kind of industrial data monitoring system based on embedded-type modularized platform, comprise the human-computer interaction module of display and key-press input signal, the relay switch module that the power strip module of power supply and signal export, described human-computer interaction module comprises the Hardware drive module, operating system module, the page operation module that connect successively; Described page operation module can call the function formula of described Hardware drive module and described operating system module, for data message display and operation input key signal; Output information according to described page operation module is driven the dependent event function meeting described page operation module push button signalling by described Hardware drive module, sends operation signal to operating system module; Described operating system module selects corresponding kernel thread to carry out data processing according to the event functions that described Hardware drive module exports, and transfers to page operation module simultaneously show process data.
The thread of described operating system module comprises micro-kernel thread and other functional module threads, the signal that other functional module threads described are applied for the treatment of single program;
Described page operation model calling middleware, described middleware comprises file system, interface system, Database Systems, stack management system, audio management system;
Described Hardware drive module triggers new events at every turn all can hardware interrupts, and the respective function that data cause page operation system module new triggers;
The each program of described page operation module is storage allocation respectively;
Described human-computer interaction module, power strip module, power strip module are connected by connector.
The beneficial effect that the present invention produces is: the hardware of this programme is produced, complete by modular construction, except outward appearance mould, have employed altogether three pieces of circuit boards (human-computer interaction module of display translation key input, the relay switch module that the power strip module of power supply and signal export) and complete three functions such as front panel (display and button), power supply, output signal respectively.These three blocks of plates use connector to connect, when a product goes wrong, we only need the circuit board replacing respective modules, do not need three board to scrap simultaneously, save cost of development, increase work efficiency, and in traditional mode of production, the modularization generally can not carrying out circuit board for function is divided; Can be implemented in industrial instrument platform simultaneously and use unified code base framework, realize different product, need to change hardware driving, kernel is all the time without the need to changing, and avoid developing new product needs whole problem again developed in the past.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the system chart schematic diagram of the industrial data monitoring system that the present invention is based on embedded-type modularized platform.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Be illustrated in figure 1 system structural framework schematic diagram of the present invention, a kind of industrial data monitoring system based on embedded-type modularized platform, comprise the human-computer interaction module of display and key-press input signal, the relay switch module that the power strip module of power supply and signal export, described human-computer interaction module comprises the Hardware drive module 2, operating system module 3, the page operation module 1 that connect successively; Described page operation module 1 can call the function formula of described Hardware drive module 2 and described operating system module 3, for data message display and operation input key signal; Output information according to described page operation module 1 is driven the dependent event function meeting described page operation module 1 push button signalling by described Hardware drive module 2, operation signal is sent to operating system module 3; Described operating system mould 3 pieces selects corresponding kernel thread to carry out data processing according to the event functions that described Hardware drive module 2 exports, and transfers to page operation module 1 simultaneously show process data.
The thread of described operating system module 3 comprises micro-kernel thread and other functional module threads, the signal that other functional module threads described are applied for the treatment of single program; Described page operation module 1 connects middleware, and described middleware comprises file, interface, database, heap manager, audio management system; Described Hardware drive module triggers new events at every turn all can hardware interrupts, and the respective function that data cause page operation system module 1 new triggers; The each program of described page operation module 1 is storage allocation respectively; Described man-machine interaction plate module, power strip module are connected by connector, and three modules are responsible for oneself part separately, and the integrated level of each module is very high, when individual module damages, can directly replace, fast the generation of minimizing substandard products.
As the preferred embodiments of the present invention, operating system module 3 adopts cruel system (Q-SYSCore) kernel from a procedural view, cruel system is several operating system thread (Thread) only, the such as process of TouchHandler thread special disposal liquid crystal display touch signal aspect, allly in InputHandler thread special disposal system to lose to the event of application program and signal, the response of Key thread special disposal external key, Music thread (optional) special disposal audio frequency is play, the affairs of Q netting twine journey (thread) special disposal wireless network aspect, the manifestation mode of each thread can show in page operation module 1, and operated by display page.
Cruel systematic difference program, with the page (Page) for unit, the single or multiple page forms an application program, application program is not a unit in cruel system, also can't see in a program and significantly define or limit, it is a kind of organizational concepts, and the page is very important a kind of member in cruel system, its following points importance:
1. the single or multiple page constitutes an application program.Such as this application program of music player, is actually made up of the MusicPage page and the FileListPage page;
2. each page, is not limited to an application program.Such as this page of FileListPage just use by multiple application programs such as music player, e-book, picture browsings;
3., between the page and the page, there is strict set membership.The such as subpage frame of other pages of FileListPage Chang Zuowei; MusicPage and EBookPage is sane level relation;
4. each application program heap space of asking, when this program exits, must all correctly reclaim.When such as entering MusicPage, we have applied for internal memory A.And then we enter subpage frame FileListPage, and before entering FileListPage, MusicPage can not nullify internal memory A, can access A like this in FileListPage; After entering FileListPage, we have applied for again internal memory B.When exiting FileListPage, B must nullify by we in FileListPage, otherwise can cause RAM leakage.Because when we exit FileListPage, we can not ensure whether can enter FileListPage again, also just can not ensure whether B can be canceled in the future.And exit FileListPage, because be that subpage frame exits, be bound to enter parent page (or entering the subpage frame of sane level, to last or parent page MusicPage can be got back to), so we still can use A.When exiting MusicPage, this application program of music player also terminates thereupon, and we must nullify and fall A in MusicPage.When there being multilayer set membership, after such as MusicPage enters subpage frame FileListPage, then when entering the situation of certain subpage frame of FileListPage, still can analogize with reference to above-mentioned logic;
5. each page just looks like the function inside C language.Function can comprise from level to level, increasing progressively from level to level, and the page too.When function exits, the space (compiler processes automatically) inside stack can be cleaned out, and when the page exits, need the heap space (programmer's process) cleaning out page application too.Have set membership between function, sane level relation, the page too.So be appreciated that the concept of the page, function can be taken to carry out analogy;
6. the most important: different events or opportunity, can cause the triggering of page function.Exactly because also this point, has just promoted the operation of the page.Give an example, as hardware RTC(Real-Time Clock, real-time clock) when increasing by one second, a RTC can be triggered and interrupt second, the process function that this second interrupts, a signal can be sent to operating system.Cruel system InputHandler thread can receive this signal, row relax of going forward side by side.Its disposal route is exactly find the PeripheralsHandler function of current page, calls this function and imports event type and information into.So inside this event of Perip_RtcSec of the PeripheralsHandler function of current page, we can finish writing the process statement that we want, such as, the second hand on LCD is allowed to beat.Except RtcSec(and RTC jumps one second) this event, also have a lot of event can cause the operation of page function in cruel system.These events are divided into three classes by us.The first kind is system event, entering of such as new page, current page to exit etc. trigger events that these and the cruel system page itself be correlated with, we transfer to the SystemEventHandler function process of the page; Equations of The Second Kind is peripheral hardware event, and such as RTC event, serial ports input, external key to press etc. these events caused by hardware adaptor, and we transfer to the PeripheralsHandler function process of the page.3rd class event is control event, and the control function that such as developer calls cruel system has been painted a button control on LCD, when button control presses event, and will trigger control event; The process of control event, according to the kind of control, has different functions, as the event of TouchEventHandler function special disposal button and Dynamic Button;
7. page function is a part for InputHandler thread.The page has various specified function to form, and these page functions, in a program, be under the jurisdiction of a part for InputHandler thread.So developer is when setting up new thread voluntarily, the content of the page should be treated with InputHandler thread role, and process the mutual of cross-thread according to this;
8. page validity sometimes.In the time, only have a page effective, this page we be referred to as current page (namely LCD representing in user's page at the moment).All events in system, all can be delivered to current page.So when a page is not current page, its function content can not be performed, unless developer defines " clobal response " character for this function.
The most work of cruel system developer is exactly the page writing oneself, and the page has strict form definition, when writing the page, and can reference page template TestPage.In the page, we are free to call following three class function API in cruel system:
1. the various hardware API of non-cruel system kernel use.Such as, do not use the API of CAN in cruel system, when developer needs the page writing a CAN, just freely can call the API of CAN.And cruel system employs this serial ports of COM1, so, when developer writes the serial ports program of COM1, the API of COM1 can not be called, and API relevant with COM1 in cruel system can only be called.If the API of COM1 cannot meet developer's requirement in cruel system, developer should revise with the relevant API of COM1 in cruel system kernel code, reaches developer's requirement to make it.Because the hardware API that cruel system is relevant, generally all incorporated some treatment mechanism, developer, once privately call, can cause system disorders.If the self-built thread of developer, call the hardware API that non-cruel system kernel uses in self-built thread, developer must the situation such as resource mutual exclusion by oneself.
2. middleware (assembly) API.Picture file system, GUI, heap manager, database assembly and OS, developer freely can call their API in the page.If the self-built thread of developer, in self-built thread, do not allow the API calling GUI.And the assembly such as file system, heap manager supports that multithreading calls.
3. cruel system API.Cruel system is a series of API for developer provides, and has been used for the work such as page jump, information inquiry, information transmission.These API all name with " Q_ " prefix.In page function, user can freely and safety call these API.When the page needs and the self-built thread of developer carries out information interaction, synchronous (Sync) API that cruel system also should be used to provide carries out data interaction.
This programme is very similar to the thinking of android system, but the function of android system and smooth degree, depend on the CPU run up, so android system is very high to hardware requirement, then cost of development and development difficulty (CPU that function is more powerful develops more complicated) is increased, at the beginning of android system design, just not by industrial products are considered, but more consideration ease for use and display effect.If do analogy by android system, the base frame part of code software, is similar to android system itself; And interface portion, each interface just looks like an App (application software) in Android, as browser, chat tool etc., difference will add new App in Android, can directly install in systems in which (needing a large amount of cpu resource supports); And technical scheme of the present invention, owing to being be used in built-in industrial platform, by the restriction of cost and CPU platform (ARM7 rank) ability, we complete adding of new page in compiling layer, namely add when exploitation write by code, then disposable compiling burnedly to perform in final products.
The application of setting up oneself based on cruel system in the following manner (" application ", " Page ", " page " hereafter mentioned all refers to a concept), namely the User Page in system, as MusicPage, EBookPage, PicturePage etc., (" Task ", " task ", " Thread " that hereafter mention, " thread " all refer to thread (task) concept in operating system module).
Source code Q-Sys under Pages catalogue, have a pair TestPage.c/h file.This pair file, cruel exactly system is the page (Page) example that user prepares.When user will write the page of oneself, only need the page name " TestPage " in two files being replaced to oneself.
During replacement, note the grand TEST_PAGE_H in first for h file sentence also will replace, this in order to make h file only involved compiling once exist, each h file must with different grand.After user finishes writing the page of oneself, need c file to be added in compiler, such compiler just can compile your page.Inside cruel system code, contained Music, EBook, Picture, SettingsPage in interior multiple application, these application, are equivalent to provide the user the example that multiple page is write.
Generally speaking, it is made up of following a few part to add new page:
1. set up new c and h file, file layout please be strict with TestPage.c/h;
If 2. the page is uncomplicated, suggestion is left out in TestPage about PageRun part (comprising the establishment of Sys_Page_Init thread and mutex);
3., for the page sets up key area collection, define position corresponding to each key area and icon;
4. by the attribute variable of the page, add the position that AllPage.h is corresponding to, and add RID, in AllPage.h, the h file of current page be comprised;
5., in SystemEventHandler and TouchEventHandler two functions of the page, according to the event of various input, write corresponding code;
6. at other any pages, call GotoPage function, enter your page.
Write by the above-mentioned page, can be implemented in industrial instrument platform simultaneously and use unified code base framework, realize different product, need to change hardware driving, kernel is all the time without the need to changing, and avoid developing new product needs whole problem again developed in the past.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (6)
1. the industrial data monitoring system based on embedded-type modularized platform, comprise the human-computer interaction module of display and key-press input signal, the relay switch module that the power strip module of power supply and signal export, it is characterized in that, described human-computer interaction module comprises the Hardware drive module, operating system module, the page operation module that connect successively; Described page operation module can call the function formula of described Hardware drive module and described operating system module, for data message display and operation input key signal; Output information according to described page operation module is driven the dependent event function meeting described page operation module push button signalling by described Hardware drive module, sends operation signal to operating system module; Described operating system module selects corresponding kernel thread to carry out data processing according to the event functions that described Hardware drive module exports, and transfers to page operation module simultaneously show process data.
2. as claimed in claim 1 based on the industrial data monitoring system of embedded-type modularized platform, it is characterized in that, the thread of described operating system module comprises micro-kernel thread and other functional module threads, the signal that other functional module threads described are applied for the treatment of single program.
3. as claimed in claim 1 based on the industrial data monitoring system of embedded-type modularized platform, it is characterized in that, described page operation model calling middleware, described middleware comprises file system, interface system, Database Systems, stack management system, audio management system.
4. as claimed in claim 1 based on the industrial data monitoring system of embedded-type modularized platform, it is characterized in that, described Hardware drive module triggers new events at every turn all can hardware interrupts, and the respective function that data cause page operation system module new triggers.
5. as claimed in claim 1 based on the industrial data monitoring system of embedded-type modularized platform, it is characterized in that, each program of described page operation module is storage allocation respectively.
6., as claimed in claim 1 based on the industrial data monitoring system of embedded-type modularized platform, it is characterized in that, described human-computer interaction module, power strip module, relay switch module are connected by connector.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310207458.XA CN103279105B (en) | 2013-05-29 | 2013-05-29 | Industrial data monitoring system based on embedded modularization platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310207458.XA CN103279105B (en) | 2013-05-29 | 2013-05-29 | Industrial data monitoring system based on embedded modularization platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103279105A CN103279105A (en) | 2013-09-04 |
CN103279105B true CN103279105B (en) | 2015-05-27 |
Family
ID=49061668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310207458.XA Active CN103279105B (en) | 2013-05-29 | 2013-05-29 | Industrial data monitoring system based on embedded modularization platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103279105B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107202954A (en) * | 2017-05-31 | 2017-09-26 | 东南大学 | Embedded breaker on-line monitoring system based on three core platforms |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112597413A (en) * | 2020-12-29 | 2021-04-02 | 深圳贝特莱电子科技股份有限公司 | Novel embedded system frame and equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7197631B1 (en) * | 2002-12-23 | 2007-03-27 | Hewlett-Packard Development Company, L.P. | System and method for constructing a user application's advanced configuration and power interface (ACPI) namespace |
CN100403258C (en) * | 2004-07-21 | 2008-07-16 | 中国科学院软件研究所 | Built-in equipment integrated development system and its use method |
US7768518B2 (en) * | 2006-09-27 | 2010-08-03 | Intel Corporation | Enabling multiple instruction stream/multiple data stream extensions on microprocessors |
CN102945171A (en) * | 2012-09-29 | 2013-02-27 | 珠海市新域智能科技有限公司 | Method and system for processing business logic interface and controlling peripheral equipment |
-
2013
- 2013-05-29 CN CN201310207458.XA patent/CN103279105B/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107202954A (en) * | 2017-05-31 | 2017-09-26 | 东南大学 | Embedded breaker on-line monitoring system based on three core platforms |
Also Published As
Publication number | Publication date |
---|---|
CN103279105A (en) | 2013-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103412644B (en) | accessory device architecture | |
Memeti et al. | PAPA: a parallel programming assistant powered by IBM Watson cognitive computing technology | |
CN103558473A (en) | Transducer field debugging system based on human-computer interaction interface and transducer field debugging method | |
CN102289428A (en) | Method and device for generating forms in bulk | |
Haug et al. | A layout technique for class diagrams to be used in product configuration projects | |
CN105892629A (en) | Multicore-based screen awakening method and device as well as mobile terminal | |
CN103793219A (en) | Mobile terminal application development system and method | |
CN103279105B (en) | Industrial data monitoring system based on embedded modularization platform | |
Chang | Situation analytics—at the dawn of a new software engineering paradigm | |
CN104281398A (en) | Touch keyboard key variable method and terminal | |
CN103886069A (en) | Software multi-language version real-time switching method and software multi-language version real-time switching system | |
Liu | Retracted: Analysis and Application of Interface Design Elements for Mobile Platform | |
CN112328214A (en) | VBA software programming framework system, method and electronic equipment | |
Quesada-Díaz et al. | Product disassembly and inspection supported by augmented reality and product lifecycle management integration | |
CN112988139A (en) | Method and device for developing event processing file | |
CN205354427U (en) | Prevent that people is because of training set STAR machine | |
CN105094994A (en) | Design and implementation of inter-program communication and reprogrammable software and human-computer interactive method | |
Luo et al. | Klem: A method for predicting user interaction time and system energy consumption during application design | |
CN111858949B (en) | Method and device for expanding regular expression based on knowledge graph and learning equipment | |
CN102236548A (en) | Method and system for designing industrial control software interface based on linux | |
CN212675446U (en) | Hardware architecture of smart screen and conference tablet sharing mainboard | |
CN201508543U (en) | Multitasking composite electronic whiteboard | |
Breuer et al. | Mobile learning with patterns | |
Yuan et al. | A Virtual Culture Brand Image Design System Based on Corba/Java Technology | |
Robinson et al. | Design and Implementation of a Visualized Operating System Simulation Using Java Multithreading |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |