CN110134381A - A kind of system and method intelligently generating source code configuration for alarm host machine - Google Patents

A kind of system and method intelligently generating source code configuration for alarm host machine Download PDF

Info

Publication number
CN110134381A
CN110134381A CN201910261213.2A CN201910261213A CN110134381A CN 110134381 A CN110134381 A CN 110134381A CN 201910261213 A CN201910261213 A CN 201910261213A CN 110134381 A CN110134381 A CN 110134381A
Authority
CN
China
Prior art keywords
configuration
source code
facility information
file
host machine
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
CN201910261213.2A
Other languages
Chinese (zh)
Other versions
CN110134381B (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.)
Zhuhai Precious Electronic Science And Technology Co Ltd Of Living In Peace
Original Assignee
Zhuhai Precious Electronic Science And Technology Co Ltd Of Living In Peace
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 Zhuhai Precious Electronic Science And Technology Co Ltd Of Living In Peace filed Critical Zhuhai Precious Electronic Science And Technology Co Ltd Of Living In Peace
Priority to CN201910261213.2A priority Critical patent/CN110134381B/en
Publication of CN110134381A publication Critical patent/CN110134381A/en
Application granted granted Critical
Publication of CN110134381B publication Critical patent/CN110134381B/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/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

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)
  • Alarm Systems (AREA)
  • Stored Programmes (AREA)

Abstract

Technical solution of the present invention includes a kind of system and method that source code configuration is intelligently generated for alarm host machine, for realizing: the customized editor of the self-defined combination of one or more functions configuration item is provided a user by interactive interface;The facility information for needing to carry out source code configuration is obtained, customized setting is carried out to data base configuration file according to facility information;Source code is generated according to facility information and configuration information, and source code is replaced to the respective file of equipment.The invention has the benefit that the allocative efficiency of alarm host machine is improved, and, adaptability configuration is carried out according to different alarm host machines;Allocative efficiency is improved, manpower and material resources are saved.

Description

A kind of system and method intelligently generating source code configuration for alarm host machine
Technical field
The present invention relates to a kind of system and methods that source code configuration is intelligently generated for alarm host machine, belong to computer neck Domain.
Background technique
In security alarm industry, the alarm host machine of types of functionality is not only provided for client, will also for numerous ODM OEM All kinds of warning devices of custom, the demand of client is ever-changing, but demand can be followed there are many rule again.
Locating security alarm industry now, requirement of the client to controlling alarm host is ever-changing, and existing similar leads to It is required with property, also there is individual difference requirement;If every a new host of exploitation, will directly be changed by legacy software code It writes, heavy workload, debugging amount are also big, and are easy error.
Summary of the invention
The present invention provides a kind of system and methods that source code configuration is intelligently generated for alarm host machine, existing for solving Have the deficiency of technology, comprising: according to the specific requirement of client, in the basic configuration list of this tool, increased, delete or Configuration project is modified, the basic function configuration of client can be realized within a very short time, and generates C language source code.
Technical solution of the present invention includes a kind of system that source code configuration is intelligently generated for alarm host machine, and feature exists In the system includes: combination of functional configurations module, for providing a user one or more functions configuration item by interactive interface Self-defined combination customized editor;Configuration file setup module needs the equipment for carrying out source code configuration to believe for obtaining Breath carries out customized setting to data base configuration file according to facility information;Facility information configuration module, for being believed according to equipment Breath and configuration information generate source code, and source code is replaced to the respective file of equipment.
According to the system for intelligently generating source code configuration for alarm host machine, combination of functional configurations module therein It specifically includes: for providing a user the customized volume of the self-defined combination of one or more functions configuration item by interactive interface Volume, wherein each configuration item includes multiple major events and corresponding multiple subitems.
According to the system for intelligently generating source code configuration for alarm host machine, combination of functional configurations module therein Specifically include: the configuration item includes but is not limited to program display field, inquiry, password setting, operation indicating setting, defence area class Type setting, time set, wireless self-study, system setting, communication setting and defence area title.
According to the system for intelligently generating source code configuration for alarm host machine, configuration file setup module therein It specifically includes: for obtaining the facility information for needing to carry out source code configuration, database being carried out to database according to facility information Classification Management, and size, storage initial address, storage type are provided and configured.
According to the system for intelligently generating source code configuration for alarm host machine, the setting packet of configuration file therein Include but be not limited to the customized setting of alarm logging, operation note, log and font file.
According to the system for intelligently generating source code configuration for alarm host machine, facility information configuration module therein Specifically include: for according to the configuration of facility information, the combination of functional configurations module and the configuration file setup module from The dynamic C language source code that generates will further be reported in the program file and header file replacement equipment in the C language source code of generation Alert mainframe program project file.
Technical solution of the present invention further includes a kind of alarm host machine intelligence generation source code with above-mentioned any system The method of configuration, this method comprises: S1, provides a user customized group of one or more functions configuration item by interactive interface The customized editor closed;S2 obtains the facility information for needing to carry out source code configuration, configures text to database according to facility information Part carries out customized setting;S3 generates source code according to facility information and configuration information, and source code is replaced to pair of equipment Answer file.
The invention has the benefit that the allocative efficiency of alarm host machine is improved, and, it is carried out according to different alarm host machines Adaptability configuration;Allocative efficiency is improved, exploitation, debug time is reduced, saves manpower and material resources.
Detailed description of the invention
Fig. 1 show the overview flow chart of embodiment according to the present invention;
Fig. 2 show the system block diagram of embodiment according to the present invention;
Fig. 3 show the functional configuration list combination diagram of embodiment according to the present invention;
Fig. 4 show the configuration file correlation setting schematic diagram of embodiment according to the present invention;
Fig. 5 show the equipment essential information configuration schematic diagram of embodiment according to the present invention.
Specific embodiment
It is carried out below with reference to technical effect of the embodiment and attached drawing to design of the invention, specific structure and generation clear Chu, complete description, to be completely understood by the purpose of the present invention, scheme and effect.
It should be noted that unless otherwise specified, when a certain feature referred to as " fixation ", " connection " are in another feature, It can directly fix, be connected to another feature, and can also fix, be connected to another feature indirectly.In addition, this The descriptions such as the upper and lower, left and right used in open are only the mutual alignment pass relative to each component part of the disclosure in attached drawing For system.The "an" of used singular, " described " and "the" are also intended to including most forms in the disclosure, are removed Non- context clearly expresses other meaning.In addition, unless otherwise defined, all technical and scientific terms used herein It is identical as the normally understood meaning of those skilled in the art.Term used in the description is intended merely to describe herein Specific embodiment is not intended to be limiting of the invention.Term as used herein "and/or" includes one or more relevant The arbitrary combination of listed item.
It will be appreciated that though various elements, but this may be described using term first, second, third, etc. in the disclosure A little elements should not necessarily be limited by these terms.These terms are only used to for same type of element being distinguished from each other out.For example, not departing from In the case where disclosure range, first element can also be referred to as second element, and similarly, second element can also be referred to as One element.The use of provided in this article any and all example or exemplary language (" such as ", " such as ") is intended merely to more Illustrate the embodiment of the present invention well, and unless the context requires otherwise, otherwise the scope of the present invention will not be applied and be limited.
Fig. 1 show the overview flow chart of embodiment according to the present invention.The process includes: S1, by interactive interface to User provides the customized editor of the self-defined combination of one or more functions configuration item;S2, acquisition need to carry out source code and match The facility information set carries out customized setting to data base configuration file according to facility information;S3, according to facility information and configuration Information generates source code, and source code is replaced to the respective file of equipment.
Fig. 2 show the system block diagram of embodiment according to the present invention.The system includes: combination of functional configurations module, is used In the customized editor for the self-defined combination for providing a user one or more functions configuration item by interactive interface;Configuration file Setup module, for obtaining the facility information for needing to carry out source code configuration, according to facility information to data base configuration file into The customized setting of row;Facility information configuration module, for generating source code according to facility information and configuration information, and by source code Replace the respective file of equipment.
Fig. 3 show the functional configuration list combination diagram of embodiment according to the present invention.This functional configuration includes Ten multiple function sports, each sport include several to dozens of not equal function events again, and the concrete function demand of user can Open-and-shut in a menu directly to show, developer passes through this tool according to customer requirement within a very short time and completes Types of functionality configuration, and generate C language source code.The demand of client is organized into picture or textual list in time, issues client Confirmation, after avoiding modification of program, it is also necessary to which making model machine could be to client's demo function, and process is complicated, wastes time.
After client's confirmation, the source code that can directly generate this tool imports project file catalogue, and new production is rapidly completed The working procedure of product.
Configured list content are as follows:
1) display field (the display contents of various modes of operation) are programmed;
2) inquiry (list information of inquiry content);
3) password setting (option of various types password, such as system defence area, are deployed troops on garrison duty, password of withdrawing a garrison setting);
4) time setting (all kinds of time setting related contents include time of fire alarming, deployment exit time etc.);
5) operation indicating is arranged;
6) defence area setting (various types in defence area are arranged);
7) time set (setting of clocked flip time);
8) wireless to learn by oneself (the wireless operation setting for learning by oneself code remote controler, detector);
9) system is arranged;
10) communication setting (setting of IP, 485 communications parameters);
11) defence area title;
Fig. 4 show the configuration file correlation setting schematic diagram of embodiment according to the present invention.The setting of configuration file correlation Include:
1) alarm logging;
2) operation note;
3) log;
4) font file;
Database Classification Management is carried out to the information that equipment newly developed needs to store on the spot, and size, storage are originated Address, storage type are provided, are configured
Fig. 5 show the equipment essential information configuration schematic diagram of embodiment according to the present invention.The configuration of equipment essential information Include:
Such as: the information such as device model, product type code release are managed for configuration;
Developer according to user demand to project at configuration after the completion of, save, following C language source code can be automatically generated
AddressMap.c program file
AddressMap.h header file
Then both of these documents are replaced to the respective file of control mainframe program project file.
It should be appreciated that the embodiment of the present invention can be by computer hardware, the combination of hardware and software or by depositing The computer instruction in non-transitory computer-readable memory is stored up to be effected or carried out.Standard volume can be used in the method Journey technology-includes that the non-transitory computer-readable storage media configured with computer program is realized in computer program, In configured in this way storage medium computer is operated in a manner of specific and is predefined --- according in a particular embodiment The method and attached drawing of description.Each program can with the programming language of level process or object-oriented come realize with department of computer science System communication.However, if desired, the program can be realized with compilation or machine language.Under any circumstance, which can be volume The language translated or explained.In addition, the program can be run on the specific integrated circuit of programming for this purpose.
In addition, the operation of process described herein can be performed in any suitable order, unless herein in addition instruction or Otherwise significantly with contradicted by context.Process described herein (or modification and/or combination thereof) can be held being configured with It executes, and is can be used as jointly on the one or more processors under the control of one or more computer systems of row instruction The code (for example, executable instruction, one or more computer program or one or more application) of execution, by hardware or its group It closes to realize.The computer program includes the multiple instruction that can be performed by one or more processors.
Further, the method can be realized in being operably coupled to suitable any kind of computing platform, wrap Include but be not limited to PC, mini-computer, main frame, work station, network or distributed computing environment, individual or integrated Computer platform or communicated with charged particle tool or other imaging devices etc..Each aspect of the present invention can be to deposit The machine readable code on non-transitory storage medium or equipment is stored up to realize no matter be moveable or be integrated to calculating Platform, such as hard disk, optical reading and/or write-in storage medium, RAM, ROM, so that it can be read by programmable calculator, when Storage medium or equipment can be used for configuration and operation computer to execute process described herein when being read by computer.This Outside, machine readable code, or part thereof can be transmitted by wired or wireless network.When such media include combining microprocessor Or other data processors realize steps described above instruction or program when, invention as described herein including these and other not The non-transitory computer-readable storage media of same type.When methods and techniques according to the present invention programming, the present invention It further include computer itself.
Computer program can be applied to input data to execute function as described herein, to convert input data with life At storing to the output data of nonvolatile memory.Output information can also be applied to one or more output equipments as shown Device.In the preferred embodiment of the invention, the data of conversion indicate physics and tangible object, including the object generated on display Reason and the particular visual of physical objects are described.
The above, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as It reaches technical effect of the invention with identical means, all within the spirits and principles of the present invention, any modification for being made, Equivalent replacement, improvement etc., should be included within the scope of the present invention.Its technical solution within the scope of the present invention And/or embodiment can have a variety of different modifications and variations.

Claims (7)

1. a kind of system for intelligently generating source code configuration for alarm host machine, which is characterized in that the system includes:
Combination of functional configurations module, for providing a user customized group of one or more functions configuration item by interactive interface The customized editor closed;
Configuration file setup module, for obtaining the facility information for needing to carry out source code configuration, according to facility information to data Base configuration file carries out customized setting;
Facility information configuration module for generating source code according to facility information and configuration information, and source code is replaced and is set Standby respective file.
2. the system according to claim 1 for intelligently generating source code configuration for alarm host machine, which is characterized in that described Combination of functional configurations module specifically includes:
For providing a user the customized editor of the self-defined combination of one or more functions configuration item by interactive interface, In each configuration item include multiple major events and corresponding multiple subitems.
3. the system according to claim 2 for intelligently generating source code configuration for alarm host machine, which is characterized in that described Combination of functional configurations module specifically includes: the configuration item includes but is not limited to program display field, inquiry, password setting, behaviour Make prompt setting, the setting of defence area type, time set, wireless self-study, system setting, communication setting and defence area title.
4. the system according to claim 1 for intelligently generating source code configuration for alarm host machine, which is characterized in that described Configuration file setup module specifically includes:
For obtaining the facility information for needing to carry out source code configuration, database classification pipe is carried out to database according to facility information Reason, and size, storage initial address, storage type are provided and configured.
5. the system according to claim 1 for intelligently generating source code configuration for alarm host machine, which is characterized in that described The setting of configuration file includes but is not limited to alarm logging, operation note, the customized setting of log and library file.
6. the system according to claim 1 for intelligently generating source code configuration for alarm host machine, which is characterized in that described Facility information configuration module specifically includes:
For being automatically generated according to the configuration of facility information, the combination of functional configurations module and the configuration file setup module C language source code, further, by alarm host machine in the program file and header file replacement equipment in the C language source code of generation Program engineering file.
7. a kind of side for intelligently generating source code configuration in alarm host machine for requiring 1 to 6 any system for perform claim Method, which is characterized in that this method comprises:
S1 provides a user the customized editor of the self-defined combination of one or more functions configuration item by interactive interface;
S2 obtains the facility information for needing to carry out source code configuration, is made by oneself according to facility information to data base configuration file Justice setting;
S3 generates source code according to facility information and configuration information, and source code is replaced to the respective file of equipment.
CN201910261213.2A 2019-04-02 2019-04-02 System and method for intelligently generating source code configuration for alarm host Active CN110134381B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910261213.2A CN110134381B (en) 2019-04-02 2019-04-02 System and method for intelligently generating source code configuration for alarm host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910261213.2A CN110134381B (en) 2019-04-02 2019-04-02 System and method for intelligently generating source code configuration for alarm host

Publications (2)

Publication Number Publication Date
CN110134381A true CN110134381A (en) 2019-08-16
CN110134381B CN110134381B (en) 2023-05-30

Family

ID=67569088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910261213.2A Active CN110134381B (en) 2019-04-02 2019-04-02 System and method for intelligently generating source code configuration for alarm host

Country Status (1)

Country Link
CN (1) CN110134381B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427567A (en) * 2020-03-20 2020-07-17 杭州涂鸦信息技术有限公司 Intelligent product rapid generation method, system and equipment thereof
CN111880779A (en) * 2020-07-17 2020-11-03 盛视科技股份有限公司 System application source code generation method and device
CN112764728A (en) * 2020-12-31 2021-05-07 北京谊安医疗***股份有限公司 Automatic programming method and system suitable for embedded software of breathing machine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5875333A (en) * 1996-06-07 1999-02-23 Electronic Data Systems Corporation Automatically generating source code for relating a dialog interface with a business object in a computing application
CN103092589A (en) * 2011-11-03 2013-05-08 浙江省公众信息产业有限公司 SSH (Struts, Spring and Hibernate) frame based code automatic generation method
CN104317576A (en) * 2014-07-04 2015-01-28 北京思特奇信息技术股份有限公司 Code automatic generation method and system based on eclipse
CN104850439A (en) * 2015-05-22 2015-08-19 上海斐讯数据通信技术有限公司 Application configuration method and applicable embedded device
CN106951240A (en) * 2017-03-10 2017-07-14 上海瀚银信息技术有限公司 A kind of batch packaging method of user's customed product
CN107704249A (en) * 2017-09-21 2018-02-16 杭州云霁科技有限公司 A kind of system and method for installing configuration automatically for physical machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5875333A (en) * 1996-06-07 1999-02-23 Electronic Data Systems Corporation Automatically generating source code for relating a dialog interface with a business object in a computing application
CN103092589A (en) * 2011-11-03 2013-05-08 浙江省公众信息产业有限公司 SSH (Struts, Spring and Hibernate) frame based code automatic generation method
CN104317576A (en) * 2014-07-04 2015-01-28 北京思特奇信息技术股份有限公司 Code automatic generation method and system based on eclipse
CN104850439A (en) * 2015-05-22 2015-08-19 上海斐讯数据通信技术有限公司 Application configuration method and applicable embedded device
CN106951240A (en) * 2017-03-10 2017-07-14 上海瀚银信息技术有限公司 A kind of batch packaging method of user's customed product
CN107704249A (en) * 2017-09-21 2018-02-16 杭州云霁科技有限公司 A kind of system and method for installing configuration automatically for physical machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈帼鸾: "基于VB的火灾自动报警***软件设计", 《微计算机信息》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427567A (en) * 2020-03-20 2020-07-17 杭州涂鸦信息技术有限公司 Intelligent product rapid generation method, system and equipment thereof
CN111427567B (en) * 2020-03-20 2023-08-18 杭州涂鸦信息技术有限公司 Intelligent product rapid generation method, system and equipment thereof
CN111880779A (en) * 2020-07-17 2020-11-03 盛视科技股份有限公司 System application source code generation method and device
CN111880779B (en) * 2020-07-17 2023-12-26 盛视科技股份有限公司 System application source code generation method and device
CN112764728A (en) * 2020-12-31 2021-05-07 北京谊安医疗***股份有限公司 Automatic programming method and system suitable for embedded software of breathing machine

Also Published As

Publication number Publication date
CN110134381B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN107908541B (en) Interface testing method and device, computer equipment and storage medium
US8132153B2 (en) Quality management framework for a software lifecycle
CN104391689B (en) A kind of development approach, middleware and the PaaS platform of Internet of Things application
CN109344170B (en) Stream data processing method, system, electronic device and readable storage medium
CN110134381A (en) A kind of system and method intelligently generating source code configuration for alarm host machine
CN103838672A (en) Automated testing method and device for all-purpose financial statements
CN106548326B (en) Method and system for linking handling scene and workflow engine of handling scene
US20140359578A1 (en) Generating visually encoded dynamic codes for remote launching of applications
CN109542499A (en) A kind of distribution terminal software version management method and device
CN103973782A (en) Operation and maintenance operation control system and method based on blacklist command setting
CN108491210A (en) Code continuous integrating method, apparatus, system and server
CN104484267A (en) Testing system and method
CN109976803A (en) A kind of generation method and device of file
CN109783126A (en) A kind of distribution Global ID's generation method and its device
Vaneman Evolving Model‐Based Systems Engineering Ontologies and Structures
Anderl Industrie 4.0–Digital transformation in product engineering and production
CN113378534A (en) Method and system for automatically generating special equipment inspection report based on form model
US20140324918A1 (en) Database Generation System, Method For Generating A Database, Product Line Management System And Non-Transitory Data Carrier
CN112711399A (en) Audit application platform based on containerization design
CN107729047A (en) Document structure tree method and device
Alghazzawi et al. Selecting Appropriate Requirements Management Tool for Developing Secure Enterprises Software
CN103984540A (en) Method and device for generating hardware interface running program
Tancredi et al. Analysis and testing of an online solution to monitor and solve safety issues for industrial systems
Cecchinel et al. Software development support for shared sensing infrastructures: A generative and dynamic approach
CN109032628A (en) A kind of method and apparatus of the page of application program and rear end decoupling

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