CN107222527A - It is a kind of that the method that internet of things equipment merotype is run is controlled by configuration file - Google Patents

It is a kind of that the method that internet of things equipment merotype is run is controlled by configuration file Download PDF

Info

Publication number
CN107222527A
CN107222527A CN201710346800.2A CN201710346800A CN107222527A CN 107222527 A CN107222527 A CN 107222527A CN 201710346800 A CN201710346800 A CN 201710346800A CN 107222527 A CN107222527 A CN 107222527A
Authority
CN
China
Prior art keywords
module
internet
run
configuration
things equipment
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
CN201710346800.2A
Other languages
Chinese (zh)
Other versions
CN107222527B (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.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
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 Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN201710346800.2A priority Critical patent/CN107222527B/en
Publication of CN107222527A publication Critical patent/CN107222527A/en
Application granted granted Critical
Publication of CN107222527B publication Critical patent/CN107222527B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

It is a kind of that the method that internet of things equipment merotype is run is controlled by configuration file, configuration file is sent on internet of things equipment by developer, internet of things equipment is according to configuration file, when detecting application or user operation commands, automatically configures operational mode and the work of control function module;This method includes the development environment run and the middleware software run on internet of things equipment on exploitation computer.Develop that expense is smaller, equipment firmware updates the less method for controlling internet of things equipment merotype to run by configuration file of expense the invention provides a kind of.

Description

It is a kind of that the method that internet of things equipment merotype is run is controlled by configuration file
Technical field
The invention belongs to internet of things equipment progress control method, it is related to a kind of by configuration file control internet of things equipment point The method of mode operation.
Background technology
Many internet of things equipment, the internet of things equipment applied in particular for data acquisition and monitoring, be often designed to Extremely low dutycycle interim acquisition transmits data to reduce power consumption.Although this design is conducive to lifting means to use battery The time of continuous firing, but it is unfavorable for interacting for user and equipment.Such as, in deployment facility, user wishes that equipment can be fast Speed sends data and whether correct installs to detect;In maintained equipment, user is often desirable to that point-to-point nothing can be carried out with equipment Delay interaction is with detection device failure.Document [1] Ming Xia, Yabo Dong, Wenyuan Xu, Xiangyang Li and Dongming Lu.MC2:Multimode User-Centric Design of Wireless Sensor Networks for Long-Term Monitoring.ACM Transactions on Sensor Networks.Vol.10, the No.3,2014. (summers It is bright, Dong Yabo, Xu Wenyuan, Li Xiangyang and the bright .MC in east in Shandong Province2:Multi-mode for long term monitoring wireless sensor network is with user Centered on design .ACM sensor network transactions, volume 10, the 3rd phase, 2014.) propose a kind of internet of things equipment merotype The method of operation, i.e. equipment simultaneously can run corresponding functional module according to application or user operation commands, switch mode, so that While not interference monitoring application performance, user's operating efficiency is lifted.However, this method largely improves equipment The complexity of firmware development.Because developer will not only develop multiple functional modules, also to write according to application or user's operation Order carries out the logic of mode module switchover operation.Meanwhile, also result in larger equipment firmware and update expense.
The content of the invention
In order to overcome existing internet of things equipment merotype method of operation exploitation expense is larger, equipment firmware updates expense larger Deficiency, expense is smaller the invention provides one kind exploitation, equipment firmware updates that expense is less to control thing by configuration file The method of networked devices merotype operation.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of that the method that internet of things equipment merotype is run is controlled by configuration file, configuration file is sent to by developer On internet of things equipment, internet of things equipment, when detecting application or user operation commands, automatically configures operation according to configuration file Pattern and the work of control function module;
This method includes the development environment run and the middleware software run on internet of things equipment on exploitation computer;
The configuration information that the development environment receives developer's offer is handled, while receiving the module that developer provides Realize that code is compiled, and the configuration file formed after processing and the module formed after compiling are realized that storehouse separates transmission to thing Networked devices;
The internet of things equipment middleware software is being received after configuration file and module realize storehouse, is wrapped according to configuration file The configuration information contained, first according to default mode ID, runs default mode;When detecting OS Events, match somebody with somebody with order Put the command interface of every order configuration, three fields of command type and order data in list to be matched one by one, detection is It is no to have order, and return to accurately order ID;Then, according to order ID and present mode ID, retrieved in operative configuration list Corresponding operative configuration, and according to the next pattern ID specified in the operative configuration retrieved, stop present mode, and stop All modules under present mode, then run the next pattern specified.
Further, in the development environment run on the exploitation computer, configuration file includes four partial contents:Pattern is matched somebody with somebody Put list, module configured list, order configured list and operative configuration list.
Further, the pattern configurations list includes a default mode ID, and multiple pattern configurations, each pattern Configuration includes pattern ID and MODE name.
The module configured list is configured comprising multiple modules, and each modular arrangement includes module I D, module title, father's mould Formulas I D, Depending module ID lists, parameter list, module realize that function name and module realize function address.
The order configured list includes multiple order configurations, and each order configuration includes order ID, command interface, order Type and order data.
The operative configuration list includes multiple operative configurations, and each operative configuration includes:Order ID, present mode ID and Next pattern ID.
Module configuration and module are realized that storehouse binding method includes following step by the development environment run on exploitation computer Suddenly:Developer provides module to development environment and realizes code and configuration information, and function name is realized which includes module.Exploitation Environment realizes that code is compiled to module, and the address of the title function is found in the MAP files generated after compiling, and will Module during the address assignment of acquisition is configured to module realizes function address.
Further, in the middleware software run on internet of things equipment, the operation method of pattern is as follows:According to configuration All modules belonging to pattern are divided into operation and prepare two lists by information;It is not by all Depending module ID lists first Empty module is added to preparation list, and all Depending module ID lists are added in operation list for empty module carried out simultaneously Send out management and running;Run module when, middleware software by run module configure in module realize pointed by function address Module realizes the function in storehouse, and the parameter during module is configured in parameter list passes to the function;Then constantly detection is accurate Whether executed is finished all modules that module is relied in standby list, is, the module is added in operation list and carried out simultaneously Send out management and running.All modules being finished will be removed from operation list.
The present invention technical concept be:In order to reduce the exploitation cost of internet of things equipment merotype operation, the present invention is provided It is a kind of that the method that internet of things equipment merotype is run is controlled by configuration file.Developer only needs to the pattern of writing and module Running configuration file, internet of things equipment is can be according to this configuration file, automatic management mode and module, and is detecting application During with user operation commands, automatic switchover mode and module operation.Therefore exploitation expense can be greatly lowered in this method.Together When, due to only needing send configuration file to carry out the renewal of mode module operating mechanism, therefore this method can also significantly drop The expense that low equipment firmware updates.
Beneficial effects of the present invention are mainly manifested in:It is smaller that exploitation expense is smaller, equipment firmware updates expense.
Brief description of the drawings
Fig. 1 is the schematic diagram that internet of things equipment merotype operation method is controlled by configuration file.
Fig. 2 is configuration file pie graph.
Embodiment
The invention will be further described below in conjunction with the accompanying drawings.
Reference picture 1, a kind of that the method that internet of things equipment merotype is run is controlled by configuration file, developer will configure text Part is sent on internet of things equipment, and internet of things equipment is according to configuration file, when detecting application or user operation commands, automatically Configuration operation pattern and the work of control function module;
This method includes the development environment run and the middleware software run on internet of things equipment on exploitation computer;
The configuration information that the development environment receives developer's offer is handled, while receiving the module that developer provides Realize that code is compiled, and the configuration file formed after processing and the module formed after compiling are realized that storehouse separates transmission to thing Networked devices;
The internet of things equipment middleware software is being received after configuration file and module realize storehouse, is wrapped according to configuration file The configuration information contained, first according to default mode ID, runs default mode;When detecting OS Events, match somebody with somebody with order Put the command interface of every order configuration, three fields of command type and order data in list to be matched one by one, detection is It is no to have order, and return to accurately order ID;Then, according to order ID and present mode ID, retrieved in operative configuration list Corresponding operative configuration, and according to the next pattern ID specified in the operative configuration retrieved, stop present mode, and stop All modules under present mode, then run the next pattern specified.
Further, in the development environment run on reference picture 2, the exploitation computer, configuration file is comprising in four parts Hold:Pattern configurations list, module configured list, order configured list and operative configuration list.
Further, the pattern configurations list includes a default mode ID, and multiple pattern configurations, each pattern Configuration includes pattern ID and MODE name.
The module configured list is configured comprising multiple modules, and each modular arrangement includes module I D, module title, father's mould Formulas I D, Depending module ID lists, parameter list, module realize that function name and module realize function address.
The order configured list includes multiple order configurations, and each order configuration includes order ID, command interface, order Type and order data.
The operative configuration list includes multiple operative configurations, and each operative configuration includes:Order ID, present mode ID and Next pattern ID.
Module configuration and module are realized that storehouse binding method includes following step by the development environment run on exploitation computer Suddenly:Developer provides module to development environment and realizes code and configuration information, and function name is realized which includes module.Exploitation Environment realizes that code is compiled to module, and the address of the title function is found in the MAP files generated after compiling, and will Module during the address assignment of acquisition is configured to module realizes function address.
Further, in the middleware software run on internet of things equipment, the operation method of pattern is as follows:According to configuration All modules belonging to pattern are divided into operation and prepare two lists by information;It is not by all Depending module ID lists first Empty module is added to preparation list, and all Depending module ID lists are added in operation list for empty module carried out simultaneously Send out management and running;Run module when, middleware software by run module configure in module realize pointed by function address Module realizes the function in storehouse, and the parameter during module is configured in parameter list passes to the function;Then constantly detection is accurate Whether executed is finished all modules that module is relied in standby list, is, the module is added in operation list and carried out simultaneously Send out management and running.All modules being finished will be removed from operation list.

Claims (8)

1. a kind of control the method that internet of things equipment merotype is run by configuration file, it is characterised in that:Developer will configure File is sent on internet of things equipment, and internet of things equipment is according to configuration file, when detecting application or user operation commands, from Dynamic configuration operation pattern and the work of control function module;
This method includes the development environment run and the middleware software run on internet of things equipment on exploitation computer;
The configuration information that the development environment receives developer's offer is handled, while receiving the module realization that developer provides Code is compiled, and the configuration file formed after processing and the module formed after compiling are realized into storehouse separates transmission to Internet of Things Equipment;
The internet of things equipment middleware software is being received after configuration file and module realize storehouse, is included according to configuration file Configuration information, first according to default mode ID, runs default mode;When detecting OS Events, with order configuration row The command interface of every order configuration, three fields of command type and order data are matched one by one in table, have been detected whether Order, and return to accurately order ID;Then, according to order ID and present mode ID, correspondence is retrieved in operative configuration list Operative configuration, and according to the next pattern ID specified in the operative configuration retrieved, stop present mode, and stop current All modules under pattern, then run the next pattern specified.
2. as claimed in claim 1 control the method that internet of things equipment merotype is run by configuration file, it is characterised in that: In the development environment run on the exploitation computer, configuration file includes four partial contents:Pattern configurations list, module configuration List, order configured list and operative configuration list.
3. as claimed in claim 2 control the method that internet of things equipment merotype is run by configuration file, it is characterised in that: The pattern configurations list includes default mode ID, and multiple pattern configurations, each pattern configurations include pattern ID and MODE name.
4. as claimed in claim 2 control the method that internet of things equipment merotype is run by configuration file, it is characterised in that: The module configured list include multiple modules configuration, each modular arrangement include module I D, module title, father's pattern ID, according to Module I D lists, parameter list, module is relied to realize that function name and module realize function address.
5. as claimed in claim 2 control the method that internet of things equipment merotype is run by configuration file, it is characterised in that: The order configured list includes multiple order configurations, and each order configuration includes order ID, command interface, command type and life Make data.
6. as claimed in claim 2 control the method that internet of things equipment merotype is run by configuration file, it is characterised in that: The operative configuration list includes multiple operative configurations, and each operative configuration includes:Order ID, present mode ID and next mould Formulas I D.
7. as claimed in claim 3 control the method that internet of things equipment merotype is run by configuration file, it is characterised in that: The development environment run on exploitation computer configures module realizes that storehouse binding method comprises the following steps with module:Developer Module is provided to development environment and realizes code and configuration information, and function name is realized which includes module.Development environment is to mould Block realizes that code is compiled, and finds the address of the title function in the MAP files generated after compiling, and by the ground of acquisition The module that location is assigned in module configuration realizes function address.
8. controlling the method that internet of things equipment merotype is run by configuration file as described in one of claim 1~7, it is special Levy and be:In the middleware software run on internet of things equipment, the operation method of pattern is as follows:According to configuration information, by mould All modules belonging to formula are divided into operation and prepare two lists;All Depending module ID lists are not added for empty module first Enter to preparation list, and all Depending module ID lists are added to progress concurrent scheduling fortune in operation list for empty module OK;When running module, middleware software will run module during module is configured and realize being realized in module pointed by function address Function in storehouse, and parameter during module is configured in parameter list passes to the function;Then constantly detection prepares in list Whether executed is finished all modules that module is relied on, and is, the module is added in operation list and carries out concurrent scheduling fortune OK, all modules being finished will be removed from operation list.
CN201710346800.2A 2017-05-16 2017-05-16 Method for controlling internet of things equipment to operate in different modes through configuration file Active CN107222527B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710346800.2A CN107222527B (en) 2017-05-16 2017-05-16 Method for controlling internet of things equipment to operate in different modes through configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710346800.2A CN107222527B (en) 2017-05-16 2017-05-16 Method for controlling internet of things equipment to operate in different modes through configuration file

Publications (2)

Publication Number Publication Date
CN107222527A true CN107222527A (en) 2017-09-29
CN107222527B CN107222527B (en) 2020-05-05

Family

ID=59945524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710346800.2A Active CN107222527B (en) 2017-05-16 2017-05-16 Method for controlling internet of things equipment to operate in different modes through configuration file

Country Status (1)

Country Link
CN (1) CN107222527B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110320992A (en) * 2019-06-28 2019-10-11 兆讯恒达微电子技术(北京)有限公司 A kind of method of configuration management power consumption
CN113298487A (en) * 2021-04-25 2021-08-24 蒲惠智造科技有限公司 Intelligent manufacturing execution process management system and method based on cloud big data platform
CN113485727A (en) * 2021-08-23 2021-10-08 一飞(海南)科技有限公司 Design method, system, terminal and unmanned aerial vehicle supported by formation aircraft firmware

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050125464A1 (en) * 2003-12-04 2005-06-09 International Business Machines Corp. System, method and program for backing up a computer program
CN101977237A (en) * 2010-11-10 2011-02-16 南京信息职业技术学院 Configurable wireless application design and development method
CN102722396A (en) * 2012-06-11 2012-10-10 山东中创软件商用中间件股份有限公司 Method and system for loading components
CN103218220A (en) * 2013-02-25 2013-07-24 上海谐宇网络科技有限公司 Dynamic pluggable component based-Internet of things middleware system
CN103279376A (en) * 2011-10-17 2013-09-04 霍尼韦尔国际公司 Methods and reconfigurable systems to incorporate customized executable code within a condition based health maintenance system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050125464A1 (en) * 2003-12-04 2005-06-09 International Business Machines Corp. System, method and program for backing up a computer program
CN101977237A (en) * 2010-11-10 2011-02-16 南京信息职业技术学院 Configurable wireless application design and development method
CN103279376A (en) * 2011-10-17 2013-09-04 霍尼韦尔国际公司 Methods and reconfigurable systems to incorporate customized executable code within a condition based health maintenance system
CN102722396A (en) * 2012-06-11 2012-10-10 山东中创软件商用中间件股份有限公司 Method and system for loading components
CN103218220A (en) * 2013-02-25 2013-07-24 上海谐宇网络科技有限公司 Dynamic pluggable component based-Internet of things middleware system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MING XIA,YABO DONG,WENYUAN XU,XIANGYANG LI,DONGMING LU: "MC2: Multimode User-Centric Design of Wireless Sensor Networks for Long-Term Monitoring", 《ACM TRANSACTIONS ON SENSOR NETWORKS》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110320992A (en) * 2019-06-28 2019-10-11 兆讯恒达微电子技术(北京)有限公司 A kind of method of configuration management power consumption
CN113298487A (en) * 2021-04-25 2021-08-24 蒲惠智造科技有限公司 Intelligent manufacturing execution process management system and method based on cloud big data platform
CN113485727A (en) * 2021-08-23 2021-10-08 一飞(海南)科技有限公司 Design method, system, terminal and unmanned aerial vehicle supported by formation aircraft firmware

Also Published As

Publication number Publication date
CN107222527B (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN102880535B (en) A kind of wireless automatic proving installation for mobile device and method
CN108334370B (en) Software automatic incremental updating and upgrading method of distributed test system
CN107222527A (en) It is a kind of that the method that internet of things equipment merotype is run is controlled by configuration file
CN103176824A (en) System upgrade method and system upgrade device
CN101609308A (en) A kind of industrial intelligent terminal and control method thereof based on the RFID data acquisition function
CN103092647A (en) Online upgrade method of embedded system
CN101163313A (en) Method and equipment for updating automatically near-end software
CN110633091A (en) Electronic module and software wireless upgrading method thereof
CN103257915A (en) Method and device for providing operation state of software of display equipment
CN105117293A (en) Windows system environment automatic deployment method and automatic deployment system
CN102387208A (en) Distribution type task scheduling method and system
CN102710436A (en) Network equipment management method, device, relative equipment and system
CN104679498A (en) Configuration monitoring interface generation method and apparatus
CN102866948A (en) Testing platform and testing method for embedded basic software
CN101521600B (en) Service control method in gateway equipment and gateway equipment
CN104538058A (en) Semi-automatic burning device and method
CN103105787A (en) Method for automatically transferring a configuration of an automation device during replacement of an automation device
CN105183657A (en) System and method for testing WEB interface
CN103873516A (en) HA method and system for improving usage rate of physical servers in cloud computing resource pool
CN102129228B (en) Monitoring system and configuration method thereof
CN103870319A (en) Method and device for information processing and electronic device
CN104657292A (en) Method and device for separating hardware drive from operating system
CN106407800A (en) A hook method and a terminal device
CN201203774Y (en) Industry intelligent terminal based on RFID data acquisition function
CN105207815A (en) System environment deployment method and deployment system based on server

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