CN109032607A - Machine room monitoring real-time data analysis engine based on lua script and script debugging tool - Google Patents

Machine room monitoring real-time data analysis engine based on lua script and script debugging tool Download PDF

Info

Publication number
CN109032607A
CN109032607A CN201810823460.2A CN201810823460A CN109032607A CN 109032607 A CN109032607 A CN 109032607A CN 201810823460 A CN201810823460 A CN 201810823460A CN 109032607 A CN109032607 A CN 109032607A
Authority
CN
China
Prior art keywords
script
lua
time data
data
engine
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.)
Granted
Application number
CN201810823460.2A
Other languages
Chinese (zh)
Other versions
CN109032607B (en
Inventor
李广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Longjianda Electronics Co ltd
Original Assignee
Guangzhou Guangzhijian Information Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Guangzhijian Information Technology Co ltd filed Critical Guangzhou Guangzhijian Information Technology Co ltd
Priority to CN201810823460.2A priority Critical patent/CN109032607B/en
Publication of CN109032607A publication Critical patent/CN109032607A/en
Application granted granted Critical
Publication of CN109032607B publication Critical patent/CN109032607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/37Compiler construction; Parser generation

Abstract

A computer room monitoring real-time data analysis engine and a script debugging tool based on lua scripts comprise a data acquisition object Collector, a port object CommuPort and a script engine script Engine which interact acquisition equipment protocols in a monitoring platform, and further comprise an L ua script analysis engine, a script debugger and a script compiler, wherein the script debugger receives real-time data of the monitoring platform and sends the real-time data to a L ua script analysis engine through a data acquisition module and a communication interface to be loaded into a data analysis script, the script compiler generates the data analysis script, and the data analysis script is sent to a database.

Description

Center monitoring real time data analytics engine and script debugging tool based on lua script
Technical field
The invention belongs to script analytical engine debugging tool, specifically a kind of center monitoring real time data based on lua script Analytics engine and script debugging tool.
Background technique
Lua is a kind of language of lightweight, and small in size, speed is fast, can be embedded into any program.Much apply journey Sequence, game use Embedded Script Language of the Lua as oneself, realize configurability, scalability with this.Exactly because Lua's is easy to learn easy-to-use, so its application surface is very wide.Occur the script debugging tool of many Lua so far, but But the parsing of none center monitoring data is applied.
Although not providing special debugger in the prior art, some interface functions are provided, to realize you The debugger of oneself.Present existing editing machine have Notepad++, Editplus, luaforwindows, Script.Net, Decoda, LuaCoding, SciTE, BabeLua, LuaStudio etc., main function are exactly that can mainly debug, and jump to At function definition.Current Lua script debugging tool is debugged using injection host program mode, can not have to modification host Program code or Lua code can be debugged.The tool (such as ZeroBrane) debugged is communicated different from the use of socket, this The debugging of long-range and prototype may be implemented in a little tools.It not can connect to iOS, Android, WP8 prototype is debugged.In a word in Lua There are many tool developed under the technical support of this language itself, but all there is certain limitations.And prior art performance It is low;Data analyzing efficiency is low;The memory and cpu resource of consuming are higher;It is complicated to parse script edit, it is not integrated common Api function.
Therefore, it is further improved.
Summary of the invention
The purpose of the present invention is: it is intended to provide a kind of center monitoring real time data analytics engine and foot based on lua script This debugging tool, superior performance, data analyzing efficiency is high, and the memory and cpu resource of consuming are lower, and parsing script edit is simple, It is integrated with common api function.
To realize the above-mentioned technical purpose, The technical solution adopted by the invention is as follows:
A kind of center monitoring real time data analytics engine and script debugging tool based on lua script, including monitor supervision platform Data the acquisition target Collector, port object (po) ComuPort and script engine of interior interaction acquisition device protocol ScriptEngine further includes Lua script analytics engine, script debugger and script compiler;The script debugger connects The real time data of monitored platform, and Lua script analytics engine is sent to by data acquisition module and communication interface and is loaded as Data parse script;The script compiler generates data and parses script;The data parsing script is sent to database It is interior.
The script compiler also passes through data acquisition module and communication interface and is connected with Lua script analytics engine.
The monitor supervision platform uses LJD-IMS and LJD-DAU integrated monitoring platform.
Several api interfaces are provided in data acquisition program to use for script.
Step 1 loads for device resource or creates script;Device resource is chosen after into wscript.exe to start pair The creation script answered;
Step 2 enters the editing interface of script-editor to script addition order;Script can be given by clicking addition order Addition order, can add multiple orders, right button can delete command;
The messaging parameter of equipment is arranged in step 3;In the communications parameter of the settable needs in top at scripting editing interface;
Step 4, according to script command and device address generating device order;It completes script command and some necessary sets Outside setting, transmission order can be clicked, return value can be shown by generating in command boxe;
Step 5 writes script according to script command and specific device resource;Have on the right side of scripting editing tool There are also Lua function, double-click can need to be used encapsulated good each function;After writing script, and pass through syntax check, Solution is clicked in the case where return value is not sky, can parse script, rear side will appear parsing result;
Step 6 saves script;The preservation script of the top can be clicked after completing script, and after successfully passing parsing The script editted can be saved in database by button.
The present invention is based on the prior arts, and Lua script more convenient can be researched and developed by us and is applied.The invention is base In lua engine, script error can be positioned, multiple platforms can be run on, practical debugging can be carried out with edit script.This hair Bright modification for convenience, debugging, have embedded Lua script resolver.User can be by writing and modifying script, to develop oneself Interested product.The support of LUA editing machine is cancelled, grammer is highlighted etc., is used very convenient.
Detailed description of the invention
The present invention can be further illustrated by the nonlimiting examples that attached drawing provides;
Fig. 1 is the principle of the present invention schematic diagram.
Fig. 2 is operation interface schematic diagram of the invention.
Fig. 3 is the flow diagram of monitor supervision platform data acquisition.
Specific embodiment
In order to make those skilled in the art that the present invention may be better understood, with reference to the accompanying drawings and examples to this hair Bright technical solution further illustrates.
As shown in Figure 1-Figure 3, a kind of center monitoring real time data analytics engine and script debugging work based on lua script Tool, data acquisition target Collector, port object (po) ComuPort and foot including interaction acquisition device protocol in monitor supervision platform This engine ScriptEngine further includes Lua script analytics engine, script debugger and script compiler;Script debugger connects The real time data of monitored platform, and Lua script analytics engine is sent to by data acquisition module and communication interface and is loaded as Data parse script;Script compiler generates data and parses script;Data parsing script is sent in database.
In the present invention, Lua parses the entire program kernel of script engine, provides for DinoUI engine and is able to use Lua language It says to handle the function of logic.
Data acquisition target Collector is by calling port object (po) ComuPort, and port object (po) ComuPort is adjusted With script engine ScriptEngine, and then by calling a series of method to complete entire calling process, function is realized.
Preferably, script compiler also passes through data acquisition module and communication interface and is connected with Lua script analytics engine.
Preferably, monitor supervision platform uses LJD-IMS and LJD-DAU integrated monitoring platform.
Preferably, several api interfaces are provided in data acquisition program to use for script
Step 1 loads for device resource or creates script;Device resource is chosen after into wscript.exe to start pair The creation script answered;
Step 2 enters the editing interface of script-editor to script addition order;Script can be given by clicking addition order Addition order, can add multiple orders, right button can delete command;
The messaging parameter of equipment is arranged in step 3;In the communications parameter of the settable needs in top at scripting editing interface;
Step 4, according to script command and device address generating device order;It completes script command and some necessary sets Outside setting, transmission order can be clicked, return value can be shown by generating in command boxe;
Step 5 writes script according to script command and specific device resource;Have on the right side of scripting editing tool There are also Lua function, double-click can need to be used encapsulated good each function;After writing script, and pass through syntax check, Solution is clicked in the case where return value is not sky, can parse script, rear side will appear parsing result;
Step 6 saves script;The preservation script of the top can be clicked after completing script, and after successfully passing parsing The script editted can be saved in database by button.
Working principle: the core of entire software systems is Lua parsing script engine, provides and is able to use for DinoUI engine Lua language handles the function of logic.Data acquisition module is contacted by communication interface with script engine, and is handled by it.Most The script data editted in compiler afterwards generates data parsing script and is stored in database.
Above-described embodiment is merely exemplary to illustrate the principle of the present invention and its effect, and is not intended to limit the present invention.It is any ripe The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause This, all those of ordinary skill in the art are completed without departing from the spirit and technical ideas disclosed in the present invention All equivalent modifications or change, should be covered by the claims of the present invention.

Claims (5)

1. a kind of center monitoring real time data analytics engine and script debugging tool based on lua script, including in monitor supervision platform Data the acquisition target Collector, port object (po) ComuPort and script engine of interaction acquisition device protocol ScriptEngine, it is characterised in that: further include Lua script analytics engine, script debugger and script compiler;The foot This debugger receives the real time data of monitor supervision platform, and is sent to the parsing of Lua script by data acquisition module and communication interface Engine is loaded as data parsing script;The script compiler generates data and parses script;The data parsing script hair It send to database.
2. the center monitoring real time data analytics engine and script debugging tool according to claim 1 based on lua script, It is connected it is characterized by: the script compiler also passes through data acquisition module and communication interface with Lua script analytics engine.
3. the center monitoring real time data analytics engine and script debugging tool according to claim 1 based on lua script, It is characterized by: the monitor supervision platform uses LJD-IMS and LJD-DAU integrated monitoring platform.
4. the center monitoring real time data analytics engine and script debugging tool according to claim 1 based on lua script, It is used it is characterized by: providing several api interfaces in data acquisition program for script.
5. the center monitoring real time data analytics engine and script debugging tool according to claim 1 based on lua script Use step, it is characterised in that:
Step 1 loads for device resource or creates script;Chosen after into wscript.exe device resource start it is corresponding Create script;
Step 2 enters the editing interface of script-editor to script addition order;Clicking addition order can add to script Order, can add multiple orders, right button can delete command;
The messaging parameter of equipment is arranged in step 3;In the communications parameter of the settable needs in top at scripting editing interface;
Step 4, according to script command and device address generating device order;It completes outside script command and some necessary settings, Transmission order can be clicked, return value can be shown by generating in command boxe;
Step 5 writes script according to script command and specific device resource;Have on the right side of scripting editing tool and has sealed There are also Lua function, double-clicks can need to be used for each function installed;After writing script, and through syntax check, returning Solution is clicked in the case where value is returned not for sky, script can be parsed, rear side will appear parsing result;
Step 6 saves script;After completing script, and successfully pass can click after parsing the preservation script of the top by The script editted can be saved in database by button.
CN201810823460.2A 2018-07-25 2018-07-25 Machine room monitoring real-time data analysis engine based on lua script and script debugging tool Active CN109032607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810823460.2A CN109032607B (en) 2018-07-25 2018-07-25 Machine room monitoring real-time data analysis engine based on lua script and script debugging tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810823460.2A CN109032607B (en) 2018-07-25 2018-07-25 Machine room monitoring real-time data analysis engine based on lua script and script debugging tool

Publications (2)

Publication Number Publication Date
CN109032607A true CN109032607A (en) 2018-12-18
CN109032607B CN109032607B (en) 2022-03-15

Family

ID=64644967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810823460.2A Active CN109032607B (en) 2018-07-25 2018-07-25 Machine room monitoring real-time data analysis engine based on lua script and script debugging tool

Country Status (1)

Country Link
CN (1) CN109032607B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111817912A (en) * 2020-06-28 2020-10-23 中国工商银行股份有限公司 Access layer hotspot flow monitoring method and device based on lightweight script
CN113407162A (en) * 2020-03-17 2021-09-17 桂林优利特医疗电子有限公司 Liquid path control language system with script analysis and construction method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739277A (en) * 2009-12-08 2010-06-16 南京联创科技集团股份有限公司 Self-defined script mode-based method for managing service monitoring system
CN101799766A (en) * 2010-03-26 2010-08-11 青岛海信电器股份有限公司 Method and device for analyzing script file by using third engine in Widget engine
CN102253946A (en) * 2010-05-20 2011-11-23 腾讯科技(北京)有限公司 Lua script interactive information-based method, Web engine and embedded terminal
CN102999371A (en) * 2012-12-04 2013-03-27 Tcl通讯(宁波)有限公司 Lua script-based human-computer interface development method and system
CN105204910A (en) * 2015-10-15 2015-12-30 北京乐动卓越科技有限公司 Script hot updating method and system
CN105653953A (en) * 2015-12-24 2016-06-08 北京金山安全软件有限公司 Virus checking and killing method and device
US20160342435A1 (en) * 2014-01-31 2016-11-24 Hewlett Packard Enterprise Development Lp Device provided script to convert command
CN108279988A (en) * 2018-01-25 2018-07-13 微梦创科网络科技(中国)有限公司 A kind of message treatment method and system based on Lua scripts
CN108279902A (en) * 2018-02-08 2018-07-13 合肥盈云信息科技有限公司 Share bottom frame generation, application process in multiple terminals based on Lua script technologies

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739277A (en) * 2009-12-08 2010-06-16 南京联创科技集团股份有限公司 Self-defined script mode-based method for managing service monitoring system
CN101799766A (en) * 2010-03-26 2010-08-11 青岛海信电器股份有限公司 Method and device for analyzing script file by using third engine in Widget engine
CN102253946A (en) * 2010-05-20 2011-11-23 腾讯科技(北京)有限公司 Lua script interactive information-based method, Web engine and embedded terminal
CN102999371A (en) * 2012-12-04 2013-03-27 Tcl通讯(宁波)有限公司 Lua script-based human-computer interface development method and system
US20160342435A1 (en) * 2014-01-31 2016-11-24 Hewlett Packard Enterprise Development Lp Device provided script to convert command
CN105204910A (en) * 2015-10-15 2015-12-30 北京乐动卓越科技有限公司 Script hot updating method and system
CN105653953A (en) * 2015-12-24 2016-06-08 北京金山安全软件有限公司 Virus checking and killing method and device
CN108279988A (en) * 2018-01-25 2018-07-13 微梦创科网络科技(中国)有限公司 A kind of message treatment method and system based on Lua scripts
CN108279902A (en) * 2018-02-08 2018-07-13 合肥盈云信息科技有限公司 Share bottom frame generation, application process in multiple terminals based on Lua script technologies

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
易利娜: "基于Lua脚本语言的嵌入式API级自动测试框架的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407162A (en) * 2020-03-17 2021-09-17 桂林优利特医疗电子有限公司 Liquid path control language system with script analysis and construction method
CN113407162B (en) * 2020-03-17 2023-05-30 桂林优利特医疗电子有限公司 Liquid path control language system with script analysis and construction method
CN111817912A (en) * 2020-06-28 2020-10-23 中国工商银行股份有限公司 Access layer hotspot flow monitoring method and device based on lightweight script

Also Published As

Publication number Publication date
CN109032607B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN105843630B (en) A method of it is developed based on robot graphic programming
CN106777101B (en) Data processing engine
KR20150063514A (en) Development, compiling and debugging method and device for application
CN103312850B (en) A kind of mobile phone automatized test macro and method of work
CN112286746B (en) Universal verification platform and method for AXI slave device interface
CN104050080B (en) User space debugs the method and system of linux kernel
CN105740139B (en) A kind of debugging embedded software method based on virtual environment
CN104898459B (en) A kind of robot testing's system and test method based on command line interface
CN109032607A (en) Machine room monitoring real-time data analysis engine based on lua script and script debugging tool
CN105302549A (en) Multiple-language-supporting test process generating, debugging and executing system
CN102045397A (en) Method and equipment for logining embedded terminals by using Telnet to debug embedded terminals
CN110554863A (en) Graphical programming method of quasi-integrated circuit
CN104572428A (en) Complicated control testing method based on windows operating system
CN110769002A (en) LabVIEW-based message analysis method, system, electronic device and medium
CN113722020A (en) Interface calling method, device and computer readable storage medium
CN110861085B (en) VxWorks-based mechanical arm instruction interpreter system
CN104657262A (en) High-real-time automatic testing system and testing method
CN111104181A (en) Webpage data filling system for visually editing task flow
CN114840410A (en) Test analysis method and device, computer equipment and storage medium
CN110209565A (en) A kind of metadata schema adjustment method and its device
CN100362817C (en) Software module testing method
CN112269746A (en) Automatic testing method and related equipment
CN103678485A (en) Virtual experiment process node driving and movable packaging system
CN103729202A (en) DSP reliable on-line FLASH programming method based on GEL script
CN110543415A (en) Computer software technology development and debugging system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220429

Address after: 510000 rooms 704 and 705, building 3, No. 18, Shenzhou Road, Huangpu District, Guangzhou, Guangdong Province

Patentee after: Guangzhou longjianda Electronics Co.,Ltd.

Address before: 510000 room 2012, No. 101, Kexue Avenue, high tech Industrial Development Zone, Guangzhou, Guangdong (office use only)

Patentee before: GUANGZHOU GUANGZHIJIAN INFORMATION TECHNOLOGY Co.,Ltd.

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Real time data analysis engine and script Debugger for computer room monitoring based on lua script

Effective date of registration: 20230625

Granted publication date: 20220315

Pledgee: Haizhu sub branch of Bank of Guangzhou Co.,Ltd.

Pledgor: Guangzhou longjianda Electronics Co.,Ltd.

Registration number: Y2023980045498