CN106020872B - The method of sensor handling routine is dynamically added in things-internet gateway equipment - Google Patents

The method of sensor handling routine is dynamically added in things-internet gateway equipment Download PDF

Info

Publication number
CN106020872B
CN106020872B CN201610318563.4A CN201610318563A CN106020872B CN 106020872 B CN106020872 B CN 106020872B CN 201610318563 A CN201610318563 A CN 201610318563A CN 106020872 B CN106020872 B CN 106020872B
Authority
CN
China
Prior art keywords
sensor
plug
unit
sensor package
things
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
Application number
CN201610318563.4A
Other languages
Chinese (zh)
Other versions
CN106020872A (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.)
Chengdu wanchuang Technology Co.,Ltd.
Original Assignee
VANTRON TECHNOLOGY Inc
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 VANTRON TECHNOLOGY Inc filed Critical VANTRON TECHNOLOGY Inc
Priority to CN201610318563.4A priority Critical patent/CN106020872B/en
Publication of CN106020872A publication Critical patent/CN106020872A/en
Application granted granted Critical
Publication of CN106020872B publication Critical patent/CN106020872B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The present invention relates to a kind of methods that sensor handling routine is dynamically added in things-internet gateway equipment.It includes: the first step enumerates sensor package;Second step loads sensor package;Third step, into major cycle;4th step calls sensor package or the detection of new sensor plug-in unit;5th step, error detection and processing.The present invention makes things-internet gateway stable equipment operation;Main program does not have to acquire any data, main program unified allocation of resources plug-in unit, and captures the mistake of plug-in unit generation, not will lead to whole system error;Increase new sensor, does not need to redesign new main program, time and manpower is saved.

Description

The method of sensor handling routine is dynamically added in things-internet gateway equipment
Technical field
The method that the present invention relates to a kind of to add sensor handling routine in things-internet gateway equipment, especially one kind exist The method of sensor handling routine is dynamically added in things-internet gateway equipment.
Background technique
The Internet of Things country is also known as Sensor Network, the purpose is to acquire a large amount of sensing data, then upload the data to interconnection Net cloud server, the foundation as people's decision.And bridge of the things-internet gateway equipment as sensor and server, it plays Data translation, transfer effect, its performance and adaptability also influence whether whole system, thus one fast and stable of design, The things-internet gateway equipment of wide adaptability is extremely important.The method of pervious things-internet gateway equipment addition sensor handling routine It is using the exploitation directly against property, i.e. some client sensor for needing some brand, then being just directed to this brand Sensor develops special main program and acquires data, devotes a tremendous amount of time and debugs repeatedly, if the demand of client changes, uses In addition the sensor of brand it is necessary to developing main program according to new demand again.When there are many main program waste of exploitation new version Between, and new mistake may be brought, allow controllable process to become not easy to control.
Summary of the invention
The technical problems to be solved by the present invention are: providing a kind of main program for being not required to modification things-internet gateway equipment, dynamic The method of state addition sensor handling routine.
The present invention adopts the technical scheme that solve above-mentioned technical problem:
The first step enumerates sensor package, and the information of plug-in unit is specially saved with a file, and plugin information includes plug-in unit Title, plug-in unit occupy hardware resource, plug-in unit for input or export or output and input, plug-in code position, main journey Sequence is by the disposable loading system of these information;
Second step loads sensor package, according to the information of previous step " enumerating sensor package step ", storage allocation money Source, distribution peripheral hardware resource, distribution thread resources, allocation database resource;
Third step, into major cycle, this step has represented system formally " race is got up ", this step as distinguish front The time point of preproduction phase and below operation phase;
4th step calls sensor package, error detection and processing, and main program is obtained by the interface function of calling plug-in unit Sensing data is taken, or writes information into sensor, since plug-in unit itself, operating system, bottom layer driving etc. are unstable, is caused Program error need to unify to carry out error detection, and be handled, and treated, and program enters back into major cycle;Or new sensor Plug-in unit detection enters back into loading sensor package, can receive network dynamic configuration for reading the part of file change.
In the above technical solution, described to enumerate this context initialization step that advanced travel far and wide before sensor package step Suddenly, script environment can enhance the stability of whole system, and main program and sensor handling routine are all run under script environment, Before all processing routines, script environment is initialized.
Beneficial effects of the present invention: 1, the compiling formula language of this easy error of the C/C++ to discard tradition, use can be moved State execution script formula language, makes things-internet gateway stable equipment operation;2, main program does not have to acquire any data, but according to Configuration file is increased by the processing routine of a sensor, dynamically load plug-in unit is complete by plug-in unit if increasing a sensor At acquisition data function;3, main program unified allocation of resources plug-in unit, and the mistake of plug-in unit generation is captured, it not will lead to whole system and go out It is wrong;4, increase new sensor, do not need to redesign new main program, time and manpower is saved.
Detailed description of the invention
Fig. 1 is work step figure of the invention.
Specific embodiment
Embodiment 1
Work step figure of the invention as shown in Figure 1, the first step carry out script environment initialization step, script environment The stability of whole system can be enhanced, main program and sensor handling routine are all run under script environment, in all processing Before program, script environment is initialized.Second step enumerates sensor package, and the information of plug-in unit is specially saved with a file, Plugin information include plugin name, plug-in unit occupy hardware resource, plug-in unit for input or export or output and input, Plug-in code position, main program is by the disposable loading system of these information.Third step loads sensor package, according to previous step The information of " enumerating plug-in unit step ", storage allocation resource, distribution peripheral hardware resource, distribution thread resources, allocation database money Source.4th step, into major cycle, this step has represented system formally " race is got up ", this step as distinguish front preparation The time point of stage and below operation phase.5th step calls sensor package, the interface letter that main program passes through calling plug-in unit Number reads the part of file change, obtains sensing data, or write information into sensor;Or to new sensor plug-in unit into Row detection if there is new sensor package, and enters and loads sensor package step.6th step, error detection and processing " are adjusted With sensor package " the step for, may or operating system unstable due to plug-in unit itself, bottom layer driving etc. it is unstable, lead Cause program error.Program crashing in order to prevent, this step carries out error detection for unified, and is handled, journey that treated Sequence enters back into major cycle step, this step mainly realizes the function of " dynamic importing ".
The present invention simulates AVID Sniffer Simulator analog sensor, AVID Sniffer Simulator Sensor, Libelium series sensor, NEMOTO series sensor are applicable.
The present invention calls sensor package step and the detection of new sensor plug-in unit that can also carry out simultaneously.

Claims (2)

1. a kind of method for dynamically adding sensor handling routine in things-internet gateway equipment, it is characterised in that:
The first step enumerates sensor package, and the information of plug-in unit is specially saved with a file, and plugin information includes plug-in unit name Claim, the hardware resource that plug-in unit occupies, plug-in unit are used to input or export or output and input, plug-in code position, main program By the disposable loading system of these information;
Second step loads sensor package, storage allocation resource, distribution peripheral hardware resource, distribution thread resources, distribution data Base resource;
Third step, into major cycle;
4th step calls sensor package, error detection and processing, and main program is obtained and passed by the interface function of calling plug-in unit Sensor data, or write information into sensor, it is unified to carry out error detection, and handled, program that treated again into Enter major cycle;
Or/and the detection of new sensor plug-in unit, the part of file change is read, loading sensor package is entered back into.
2. the method according to claim 1 for dynamically adding sensor handling routine in things-internet gateway equipment, special Sign is: advanced this context initialization step of traveling far and wide before enumerating sensor package step, script environment initialization operation The stability of whole system can be enhanced.
CN201610318563.4A 2016-05-16 2016-05-16 The method of sensor handling routine is dynamically added in things-internet gateway equipment Active CN106020872B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610318563.4A CN106020872B (en) 2016-05-16 2016-05-16 The method of sensor handling routine is dynamically added in things-internet gateway equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610318563.4A CN106020872B (en) 2016-05-16 2016-05-16 The method of sensor handling routine is dynamically added in things-internet gateway equipment

Publications (2)

Publication Number Publication Date
CN106020872A CN106020872A (en) 2016-10-12
CN106020872B true CN106020872B (en) 2019-03-15

Family

ID=57099897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610318563.4A Active CN106020872B (en) 2016-05-16 2016-05-16 The method of sensor handling routine is dynamically added in things-internet gateway equipment

Country Status (1)

Country Link
CN (1) CN106020872B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355682A (en) * 2011-06-29 2012-02-15 中国联合网络通信集团有限公司 Sensor adapting method, sensor adapting device and IOT (Internet Of Things) system
CN102638787A (en) * 2011-02-12 2012-08-15 苏州达联信息科技有限公司 Railway track monitoring sensor node configuration method
CN103984852A (en) * 2014-04-25 2014-08-13 山东超越数控电子有限公司 DDF (database definition file)-based sensor value monitoring method
WO2014107511A3 (en) * 2013-01-07 2014-10-02 Abb Inc. Developing, deploying and implementing power system computer applications
CN104468340A (en) * 2013-11-08 2015-03-25 成都万创科技有限责任公司 Method for utilizing computer program for controlling gateway equipment of Internet of Things to operate
CN105373405A (en) * 2015-11-26 2016-03-02 努比亚技术有限公司 Device and method for dynamically loading application programs

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005031826A (en) * 2003-07-09 2005-02-03 Hitachi Ltd Sensor device and its control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638787A (en) * 2011-02-12 2012-08-15 苏州达联信息科技有限公司 Railway track monitoring sensor node configuration method
CN102355682A (en) * 2011-06-29 2012-02-15 中国联合网络通信集团有限公司 Sensor adapting method, sensor adapting device and IOT (Internet Of Things) system
WO2014107511A3 (en) * 2013-01-07 2014-10-02 Abb Inc. Developing, deploying and implementing power system computer applications
CN104468340A (en) * 2013-11-08 2015-03-25 成都万创科技有限责任公司 Method for utilizing computer program for controlling gateway equipment of Internet of Things to operate
CN103984852A (en) * 2014-04-25 2014-08-13 山东超越数控电子有限公司 DDF (database definition file)-based sensor value monitoring method
CN105373405A (en) * 2015-11-26 2016-03-02 努比亚技术有限公司 Device and method for dynamically loading application programs

Also Published As

Publication number Publication date
CN106020872A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN103902456B (en) Test script processing meanss, system and method
CN105468797B (en) A kind of information processing method and device
CN105184160B (en) A kind of method of the Android phone platform application program malicious act detection based on API object reference relational graphs
CN105468505B (en) Coverage rate test method and coverage rate test device
CN104407980A (en) Mobile application automated testing device and method
CN103631573B (en) The preparation method and system of transportable function timing
CN104035873A (en) Method and device for generating testing codes
CN106682036A (en) Data exchange system and exchange method thereof
CN103425584A (en) Large-scale application regression testing information processing method based on Java bytecode
CN103970659A (en) Android application software automation testing method based on pile pitching technology
CN108572911A (en) Automate safety detecting method, device, electronic equipment and readable storage medium storing program for executing
Wen et al. Pats: A parallel gui testing framework for android applications
Ott et al. GinJinn: An object‐detection pipeline for automated feature extraction from herbarium specimens
CN103714000A (en) Sensitive area-oriented embedded software test case generating method
CN107526679A (en) Automated test frame, the automated testing method based on thereon, storage medium and computer equipment
CN112732567A (en) Mock data testing method and device based on ip, electronic equipment and storage medium
CN103049377A (en) Parallel symbolic execution method based on path cluster reductions
CN114398194A (en) Data collection method and device, electronic equipment and readable storage medium
CN114398282A (en) Test script generation method, device, equipment and storage medium
EP2972880B1 (en) Kernel functionality checker
CN105243020B (en) A kind of automated testing method suitable for wide-area distribution type real-time data base
CN106844219A (en) Using detection method and apply detection means
CN106020872B (en) The method of sensor handling routine is dynamically added in things-internet gateway equipment
Nurmuradov et al. Caret-HM: recording and replaying Android user sessions with heat map generation using UI state clustering
CN104536880A (en) GUI program testing case augmentation method based on symbolic execution

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 610045 Sichuan city of Chengdu Province east three road Wuhou District Wuke 9 Building 6 floor 1

Applicant after: VANTRON TECHNOLOGY, INC.

Address before: 610045 Sichuan city of Chengdu Province east three road Wuhou District Wuke 9 Incubator Building 1 Building 3 floor

Applicant before: VANTRON TECHNOLOGY, INC.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 610000 doctor Pioneer Park, Chengdu, China, No.5 Gaopeng Avenue, high tech Zone, Chengdu, Sichuan Province

Patentee after: Chengdu wanchuang Technology Co.,Ltd.

Address before: 610045 Sichuan city of Chengdu Province east three road Wuhou District Wuke 9 Building 6 floor 1

Patentee before: VANTRON TECHNOLOGY, Inc.

CP03 Change of name, title or address