CN110362296A - Device data monitoring system based on javascript - Google Patents

Device data monitoring system based on javascript Download PDF

Info

Publication number
CN110362296A
CN110362296A CN201910630047.9A CN201910630047A CN110362296A CN 110362296 A CN110362296 A CN 110362296A CN 201910630047 A CN201910630047 A CN 201910630047A CN 110362296 A CN110362296 A CN 110362296A
Authority
CN
China
Prior art keywords
interface
module
monitoring system
javascript
data
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.)
Pending
Application number
CN201910630047.9A
Other languages
Chinese (zh)
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.)
WUXI RUITAI ENERGY-SAVING SYSTEM SCIENCE Co Ltd
Original Assignee
WUXI RUITAI ENERGY-SAVING SYSTEM SCIENCE 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 WUXI RUITAI ENERGY-SAVING SYSTEM SCIENCE Co Ltd filed Critical WUXI RUITAI ENERGY-SAVING SYSTEM SCIENCE Co Ltd
Priority to CN201910630047.9A priority Critical patent/CN110362296A/en
Publication of CN110362296A publication Critical patent/CN110362296A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The device data monitoring system based on javascript that the present invention relates to a kind of, it is characterized in that: including nucleus module, protocol resolution module and bus interface module;The bus interface module includes the processReadCmd interface of the returned packet for generating the getReadCmd interface of data read command message, for handling data read command, the processWriteCmd interface for handling order reception time-out waitTimeout interface, the getWriteCmd interface for generating data writing commands message, the returned packet for handling data writing commands;The device data monitoring system discloses the access interface of internal system to javescript engine, so that device protocol script is interacted with main program.The problems such as protocol module of each equipment of the present invention is write with javascript scripting language, does not need to build complicated exploitation environment in the process of development, while can solve the compatibility and safety of different hardware platforms again.

Description

Device data monitoring system based on javascript
Technical field
The device data monitoring system based on javascript that the present invention relates to a kind of, belongs to technical field of information processing.
Background technique
Traditional device data monitoring system is to be communicated by writing upper computer software system with terminal device, The data of terminal device are collected host computer or the order of host computer is sent to terminal device.The communications protocol of terminal device Many kinds of, it is extremely difficult to access a kind of new equipment, if upper computer software system does not support the dynamically load of communication module, The communication part for then needing to modify software allows it to support new device protocol;If supporting, only need to develop one again A communications protocol card module, allows major software system loads that can support new device protocol.Just second of mode at last, although It can flexibly load, but this plug-in unit can only be developed using compiled language, such as C or C++, be primarily present following several A problem, first cannot be compatible with different platforms, and the library such as compiled at ARM cannot be placed directly under X86 and run;Second plug-in unit Bug fatal influence can be caused to the stability of whole system;Third exploitation environmental structure is relatively difficult, wants to developer Ask relatively high.
Summary of the invention
The purpose of the present invention is overcoming the deficiencies in the prior art, a kind of number of devices based on javascript is provided According to monitoring system, the protocol module of each equipment is write with javascript scripting language, does not need to build in the process of development Complicated exploitation environment, while the problems such as can solve the compatibility and safety of different hardware platforms again.
According to technical solution provided by the invention, the device data monitoring system based on javascript, feature It is: including nucleus module, protocol resolution module and bus interface module;
The bus interface module includes for generating the getReadCmd interface of data read command message, for handling data The processReadCmd interface of the returned packet of reading order receives time-out waitTimeout interface for handling order, uses In generating the getWriteCmd interface of data writing commands message, returned packet for handling data writing commands ProcessWriteCmd interface;
The device data monitoring system discloses the access interface of internal system to javescript engine, so as to device protocol foot This is interacted with main program.
Further, the data acquisition flow of the device data monitoring system includes:
(1) data acquisition module obtains data acquisition command, generates data acquisition command by protocol resolution module;
(2) data acquisition module sends data acquisition command to terminal device;
(3) Wait Orders such as data acquisition module return;If receiving return command, processing returns to orders;If order receives time-out, Then terminate.
Further, the nucleus module includes data acquisition module, device management module, Http module and user management Module.
Further, the protocol resolution module includes ammeter, water meter, sensor and controller etc..
Further, the bus interface module includes RS485 interface, RS232 interface, MBus interface and Can interface etc. Fieldbus.
The invention has the following advantages that
(1) present invention solves the compatibility issue of each hardware platform, for same device protocol, it is only necessary to generate one Agreement installation kit does not need to generate different agreement installation kits respectively for different platforms, in the specific use process yet Do not allow error-prone;
(2) stability of whole system of the present invention has significant raising, and the stability of system not only depends on and main system before Stability, additionally depend on the stability of Protocol Plug, be just now a bit small Bug of protocol library, but not influence entire The stability of system;
(3) present invention requires to reduce to the developer in protocol analysis library, and javascript is the language belonged in web system Speech, known developer is more and more now, and the developers such as C/C++ are then fewer and fewer, and hand is non-on javascript Normal is fast.Our requirements to developer before will have certain basis C/C++, and working experience could be competent within 5 years or more, existing Just at last without any working experience, also without any programming basis, hand can be gone up within 1 month or so;
(4) development efficiency is greatly improved, and develops a new device protocol before and takes around 7 working days, now Only need 1 working day.
Detailed description of the invention
Fig. 1 is acquisition system physical topology figure of the present invention.
Fig. 2 is system structure of the invention figure.
Fig. 3 is data acquisition flow figure.
Specific embodiment
Below with reference to specific attached drawing, the invention will be further described.
It is as shown in Figure 1 and Figure 2: the device data monitoring system of the present invention based on javascript include nucleus module, Protocol resolution module and bus interface module,
The nucleus module includes data acquisition module, device management module, Http module and user management module;
The protocol resolution module includes ammeter, water meter, sensor or/and controller;
The bus interface module includes the fieldbus such as RS485 interface, RS232 interface, MBus interface and Can interface.
The device data monitoring system defines the interface mark of device protocol parsing script when carrying out data acquisition first Standard, each agreement script are defined as follows interface according to the functional requirement of itself: getReadCmd, processReadCmd, WaitTimeout, getWriteCmd, processWriteCmd, wherein getReadCmd interface is for generating reading data life Message is enabled, processReadCmd is used to handle the returned packet of data read command, and waitTimeout connects for handling order Time-out is received, getWriteCmd is for generating data writing commands message, and processWriteCmd is for handling data write-in life The returned packet of order;Then the access interface of internal system is disclosed to javescript engine, such as obtains current device table number, day The interfaces such as will output, so that device protocol script is interacted with main program.
The data acquisition flow of the device data monitoring system is as shown in Figure 3, comprising:
(1) data acquisition module obtains data acquisition command, calls getReadCmd interface, generates data by protocol resolution module Acquisition;
(2) data acquisition module sends data acquisition command to terminal device;
(3) Wait Orders such as data acquisition module return;If receiving return command, processing returns to orders;If order receives time-out, Then terminate.
The invention has the following advantages that
(1) it present invention introduces the rendering engine library javascriptcore of javascript, is moved for each hardware platform It plants and optimizes;
(2) since javascript is a kind of script type language, the byte processing to data can not be supported, and communications protocol is general It needs to handle byte, the present invention increases on the basis of existing capability to the function such as the processing of byte and binary system processing Energy;
(3) editor and debugging, the present invention of javascript code also developed matched Integrated Development Tool for convenience, solve The certainly difficult problem of javascript debugging.

Claims (5)

1. a kind of device data monitoring system based on javascript, it is characterized in that: including nucleus module, protocol resolution module And bus interface module;
The bus interface module includes for generating the getReadCmd interface of data read command message, for handling data The processReadCmd interface of the returned packet of reading order receives time-out waitTimeout interface for handling order, uses In generating the getWriteCmd interface of data writing commands message, returned packet for handling data writing commands ProcessWriteCmd interface;
The device data monitoring system discloses the access interface of internal system to javescript engine, so as to device protocol foot This is interacted with main program.
2. the device data monitoring system based on javascript as described in claim 1, it is characterized in that: the device data The data acquisition flow of monitoring system includes:
(1) data acquisition module obtains data acquisition command, generates data acquisition command by protocol resolution module;
(2) data acquisition module sends data acquisition command to terminal device;
(3) Wait Orders such as data acquisition module return;If receiving return command, processing returns to orders;If order receives time-out, Then terminate.
3. the device data monitoring system based on javascript as described in claim 1, it is characterized in that: the nucleus module Including data acquisition module, device management module, Http module and user management module.
4. the device data monitoring system based on javascript as described in claim 1, it is characterized in that: the protocol analysis Module includes ammeter, water meter, sensor and controller.
5. the device data monitoring system based on javascript as described in claim 1, it is characterized in that: the bus interface Module includes RS485 interface, RS232 interface, MBus interface and Can interface field-bus interface.
CN201910630047.9A 2019-07-12 2019-07-12 Device data monitoring system based on javascript Pending CN110362296A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910630047.9A CN110362296A (en) 2019-07-12 2019-07-12 Device data monitoring system based on javascript

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910630047.9A CN110362296A (en) 2019-07-12 2019-07-12 Device data monitoring system based on javascript

Publications (1)

Publication Number Publication Date
CN110362296A true CN110362296A (en) 2019-10-22

Family

ID=68219046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910630047.9A Pending CN110362296A (en) 2019-07-12 2019-07-12 Device data monitoring system based on javascript

Country Status (1)

Country Link
CN (1) CN110362296A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030149801A1 (en) * 2001-12-12 2003-08-07 Kushnirskiy Igor Davidovich Scriptable plug-in application programming interface
US20040122908A1 (en) * 2002-10-02 2004-06-24 Sony Corporation, A Japanese Corporation Method and apparatus for use in remote diagnostics
CN103516555A (en) * 2013-10-23 2014-01-15 中国科学院信息工程研究所 Network device monitoring method and system
US20140189863A1 (en) * 2012-10-12 2014-07-03 Cenzic, Inc. Distributed Client Side User Monitoring and Attack System
CN104104674A (en) * 2014-07-01 2014-10-15 广东艾科技术股份有限公司 Multiprotocol distributed data acquisition control system of equipment sensor and method thereof
US20160028805A1 (en) * 2014-07-25 2016-01-28 Teachers Insurance And Annuity Association Of America Collecting client-side application performance monitoring information
WO2016023268A1 (en) * 2014-08-13 2016-02-18 中兴通讯股份有限公司 Centralized operation and maintenance method and apparatus and storage medium
US20170033980A1 (en) * 2015-07-31 2017-02-02 AppDynamics, Inc. Agent manager for distributed transaction monitoring system
CN106487585A (en) * 2016-10-09 2017-03-08 深圳市思博创科技有限公司 Equipment complex monitoring system framework
CN106612199A (en) * 2015-10-26 2017-05-03 华耀(中国)科技有限公司 Network monitoring data collection and analysis system and method
US20180139180A1 (en) * 2016-07-06 2018-05-17 Hiro Media Ltd. Real-time monitoring of web page code
CN108874810A (en) * 2017-05-10 2018-11-23 北京京东尚科信息技术有限公司 The method and apparatus of information collection
WO2019062343A1 (en) * 2017-09-30 2019-04-04 同方威视技术股份有限公司 Environmental radiation monitoring station system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030149801A1 (en) * 2001-12-12 2003-08-07 Kushnirskiy Igor Davidovich Scriptable plug-in application programming interface
US20040122908A1 (en) * 2002-10-02 2004-06-24 Sony Corporation, A Japanese Corporation Method and apparatus for use in remote diagnostics
US20140189863A1 (en) * 2012-10-12 2014-07-03 Cenzic, Inc. Distributed Client Side User Monitoring and Attack System
CN103516555A (en) * 2013-10-23 2014-01-15 中国科学院信息工程研究所 Network device monitoring method and system
CN104104674A (en) * 2014-07-01 2014-10-15 广东艾科技术股份有限公司 Multiprotocol distributed data acquisition control system of equipment sensor and method thereof
US20160028805A1 (en) * 2014-07-25 2016-01-28 Teachers Insurance And Annuity Association Of America Collecting client-side application performance monitoring information
WO2016023268A1 (en) * 2014-08-13 2016-02-18 中兴通讯股份有限公司 Centralized operation and maintenance method and apparatus and storage medium
US20170033980A1 (en) * 2015-07-31 2017-02-02 AppDynamics, Inc. Agent manager for distributed transaction monitoring system
CN106612199A (en) * 2015-10-26 2017-05-03 华耀(中国)科技有限公司 Network monitoring data collection and analysis system and method
US20180139180A1 (en) * 2016-07-06 2018-05-17 Hiro Media Ltd. Real-time monitoring of web page code
CN106487585A (en) * 2016-10-09 2017-03-08 深圳市思博创科技有限公司 Equipment complex monitoring system framework
CN108874810A (en) * 2017-05-10 2018-11-23 北京京东尚科信息技术有限公司 The method and apparatus of information collection
WO2019062343A1 (en) * 2017-09-30 2019-04-04 同方威视技术股份有限公司 Environmental radiation monitoring station system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
(美)(M.贡萨尔维斯)MARCUS GONCALVES: "《PHP全栈开发教程 高级程序设计 中公版》", 人民邮电出版社, pages: 200 - 233 *

Similar Documents

Publication Publication Date Title
CN105446806B (en) A kind of processing method and processing device of the application program without response
CN102567074B (en) USB (universal serial bus) device redirecting method facing virtual machines
CN101626351A (en) Multiprotocol data acquisition gateway
CN201294545Y (en) Multi-protocol data acquisition gateway
CN101976220A (en) Unit test system
CN103914315A (en) Configuration method of drivers
CN104268074A (en) Application software online debugging method based on DCS
CN102968377A (en) Virtual machine technique based airborne software system testing general platform
CN103853147B (en) A kind of on-line debugging system of embedded system
CN101262486A (en) Modbus bus analysis system based on built-in platform
CN105259834B (en) A kind of data in mobile phone acquisition controller of firmware restructural
CN1485740A (en) General purpose testing arrangement for embedded module and subsystem based on host machine platform
CN102868734B (en) A kind of online upgrading method for automatic clinical chemistry analyzer and system thereof
CN102801818A (en) Universal sensor interface acquisition system based on ZigBee technology
CN110007926A (en) Language transfer method and device
CN110362296A (en) Device data monitoring system based on javascript
CN102043654A (en) DSP simple development method based on TMS320VC55xx
CN205281471U (en) Printing terminal and system
US9672014B2 (en) Transparent network substrate system
CN115562989A (en) Automatic test sequence conversion method, system, equipment and medium
CN110098991B (en) Equipment for accessing EtherCAT bus system to universal Internet of things cloud platform
CN113485690A (en) API interface visual entity conversion method
CN103678073A (en) Simulation system
CN1932760B (en) System and method for execution of application program
Zhou Soft PLC Research And Development System Based On PC

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191022

RJ01 Rejection of invention patent application after publication