[go: up one dir, main page]

CN103744324B - Indoor environment quality monitoring-based data acquisition method - Google Patents

Indoor environment quality monitoring-based data acquisition method Download PDF

Info

Publication number
CN103744324B
CN103744324B CN201310716119.4A CN201310716119A CN103744324B CN 103744324 B CN103744324 B CN 103744324B CN 201310716119 A CN201310716119 A CN 201310716119A CN 103744324 B CN103744324 B CN 103744324B
Authority
CN
China
Prior art keywords
data
data acquisition
work
microprocessor
quality monitoring
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.)
Expired - Fee Related
Application number
CN201310716119.4A
Other languages
Chinese (zh)
Other versions
CN103744324A (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.)
Guangxi University of Science and Technology
Original Assignee
Guangxi University of Science and Technology
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 Guangxi University of Science and Technology filed Critical Guangxi University of Science and Technology
Priority to CN201310716119.4A priority Critical patent/CN103744324B/en
Publication of CN103744324A publication Critical patent/CN103744324A/en
Application granted granted Critical
Publication of CN103744324B publication Critical patent/CN103744324B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Testing Or Calibration Of Command Recording Devices (AREA)

Abstract

本发明公布了一种基于室内环境品质监控的数据采集方法,首先检查数据采集子任务的任务挂起时间是否到时间,如果到时间就进入就绪状态,当其他更高优先级的任务执行完毕后,就获得CPU的控制权,并开启数据采集工作;然后接着对微处理器中的相关寄存器进行初始化和设置,依次完成通道0到通道4的数据采集工作;最后把这个数据传递给数据存储子任务,并把数据存储在NandFlash中,以便数据处理子任务并进行进一步处理,所有工作结束后,该任务延时挂起。本发明的数据采集方法效率高,可以直接得到数字信号输出,并被微处理器读取,这样就不用对微处理器内置的A/D转换器的相关寄存器进行设置和初始化。节省了数据采集的时间。

The invention discloses a data acquisition method based on indoor environment quality monitoring. First, check whether the task suspension time of the data acquisition subtask is up. If the time is up, it will enter the ready state. , to obtain the control right of the CPU, and start the data acquisition work; then initialize and set the relevant registers in the microprocessor, and complete the data acquisition work from channel 0 to channel 4 in turn; finally pass this data to the data storage sub task, and store the data in NandFlash for data processing subtasks and further processing, after all the work is completed, the task is delayed and suspended. The data acquisition method of the present invention has high efficiency, and can directly obtain digital signal output and be read by the microprocessor, so that it is unnecessary to set and initialize the relevant registers of the A/D converter built in the microprocessor. Save time for data collection.

Description

一种基于室内环境品质监控的数据采集方法 A data acquisition method based on indoor environmental quality monitoring

技术领域 technical field

本发明涉及一种基于室内环境品质监控的数据采集方法。 The invention relates to a data collection method based on indoor environmental quality monitoring.

背景技术 Background technique

目前,室内环境品质监控系统的数据采集都是采用传感器进行数据采集的,一般所采用的各个传感器模块中,包括温湿度传感器模块、甲醛传感器模块、氨气传感器模块和一氧化碳传感器模块,这些传感器的内部都包含一个更高精度的A/D转换器,现有技术中的数据采集方式难以直接得到数字信号,需要对微处理器内置的A/D转换器的相关寄存器进行设置和初始化,使得数据采集的效率非常低。 At present, the data collection of the indoor environmental quality monitoring system is carried out by sensors. Generally, the various sensor modules used include the temperature and humidity sensor module, the formaldehyde sensor module, the ammonia sensor module and the carbon monoxide sensor module. It contains a higher-precision A/D converter inside. It is difficult to directly obtain digital signals in the data acquisition method in the prior art. It is necessary to set and initialize the relevant registers of the A/D converter built in the microprocessor, so that the data The collection efficiency is very low.

发明内容 Contents of the invention

本发明目的是针对现有技术存在的缺陷提供一种基于室内环境品质监控的数据采集方法。 The purpose of the present invention is to provide a data collection method based on indoor environmental quality monitoring to address the defects in the prior art.

本发明为实现上述目的,采用如下技术方案:一种基于室内环境品质监控的数据采集方法,首先检查数据采集子任务的任务挂起时间是否到时间,如果到时间就进入就绪状态,当其他更高优先级的任务执行完毕后,就获得CPU的控制权,并开启数据采集工作;然后接着对微处理器中的相关寄存器进行初始化和设置,依次完成通道0到通道4的数据采集工作;最后把这个数据传递给数据存储子任务,并把数据存储在NandFlash中,以便数据处理子任务并进行进一步处理,所有工作结束后,该任务延时挂起。 In order to achieve the above object, the present invention adopts the following technical scheme: a data collection method based on indoor environmental quality monitoring, first checks whether the task suspension time of the data collection subtask is up, if the time is up, it enters the ready state, when other more After the high-priority task is executed, the control right of the CPU is obtained, and the data acquisition work is started; then, the related registers in the microprocessor are initialized and set, and the data acquisition work of channel 0 to channel 4 is completed in turn; finally Pass this data to the data storage subtask, and store the data in NandFlash, so that the data processing subtask can be further processed. After all the work is finished, the task will be delayed and suspended.

本发明的有益效果:本发明的数据采集方法效率高,可以直接得到数字信号输出,并被微处理器读取,这样就不用对微处理器内置的A/D转换器的相关寄存器进行设置和初始化。节省了数据采集的时间。 Beneficial effects of the present invention: the data acquisition method of the present invention has high efficiency, can directly obtain the digital signal output, and is read by the microprocessor, so just needn't the related register of the built-in A/D converter of the microprocessor be set and initialization. Save time for data collection.

附图说明 Description of drawings

图 1 本发明的数据采集流程图。 Fig. 1 is the flow chart of data collection in the present invention.

具体实施方式 detailed description

图1所示,为一种基于室内环境品质监控的数据采集方法,首先检查数据采集子任务的任务挂起时间是否到时间,如果到时间就进入就绪状态,当其他更高优先级的任务执行完毕后,就获得CPU的控制权,并开启数据采集工作;然后接着对微处理器中的相关寄存器进行初始化和设置,依次完成通道0到通道4的数据采集工作;最后把这个数据传递给数据存储子任务,并把数据存储在NandFlash中,以便数据处理子任务并进行进一步处理,所有工作结束后,该任务延时挂起。 As shown in Figure 1, it is a data collection method based on indoor environmental quality monitoring. First, check whether the task suspension time of the data collection subtask is up. If the time is up, it will enter the ready state. When other higher priority tasks are executed After the completion, the control right of the CPU is obtained, and the data acquisition work is started; then the relevant registers in the microprocessor are initialized and set, and the data acquisition work from channel 0 to channel 4 is completed in turn; finally, the data is passed to the data Store subtasks and store data in NandFlash for data processing subtasks and further processing. After all work is completed, the task is delayed and suspended.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

Claims (1)

1.一种基于室内环境品质监控的数据采集方法,其特征在于,首先检查数据采集子任务的任务挂起时间是否到时间,如果到时间就进入就绪状态,当其他更高优先级的任务执行完毕后,就获得CPU的控制权,并开启数据采集工作;然后接着对微处理器中的相关寄存器进行初始化和设置,依次完成通道0到通道4的数据采集工作;最后把这个数据传递给数据存储子任务,并把数据存储在NandFlash中,以便数据处理子任务进行进一步处理,所有工作结束后,数据存储子任务延时挂起。1. A data acquisition method based on indoor environmental quality monitoring, characterized in that, first check whether the task suspension time of the data acquisition subtask is up to the time, if the time is up, it will enter the ready state, and when other higher priority tasks are executed After the completion, the control right of the CPU is obtained, and the data acquisition work is started; then the relevant registers in the microprocessor are initialized and set, and the data acquisition work from channel 0 to channel 4 is completed in turn; finally, the data is passed to the data Store the subtask and store the data in NandFlash for further processing by the data processing subtask. After all the work is completed, the data storage subtask is delayed and suspended.
CN201310716119.4A 2013-12-23 2013-12-23 Indoor environment quality monitoring-based data acquisition method Expired - Fee Related CN103744324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310716119.4A CN103744324B (en) 2013-12-23 2013-12-23 Indoor environment quality monitoring-based data acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310716119.4A CN103744324B (en) 2013-12-23 2013-12-23 Indoor environment quality monitoring-based data acquisition method

Publications (2)

Publication Number Publication Date
CN103744324A CN103744324A (en) 2014-04-23
CN103744324B true CN103744324B (en) 2017-01-11

Family

ID=50501353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310716119.4A Expired - Fee Related CN103744324B (en) 2013-12-23 2013-12-23 Indoor environment quality monitoring-based data acquisition method

Country Status (1)

Country Link
CN (1) CN103744324B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5892974A (en) * 1994-10-12 1999-04-06 Sega Enterprises Ltd. System for sub-data processor identifies the peripheral from supplied identification data and supplies data indicative of the kind of peripheral to main data processor
CN1924846A (en) * 2006-07-19 2007-03-07 中国科学院等离子体物理研究所 Direct hardware accessing data sampling system and method for PCI bus structure
CN101419278A (en) * 2008-12-05 2009-04-29 航天恒星科技有限公司 Multichannel high speed remote sensing data acquiring and processing device
CN101446818A (en) * 2008-12-12 2009-06-03 齐齐哈尔华工机床制造有限公司 Automatic control system of metal impact specimen automatic processing device
CN202119824U (en) * 2011-07-08 2012-01-18 吉林省电力有限公司长春供电公司 Data acquisition apparatus for monitoring urban network cable circulation current

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5892974A (en) * 1994-10-12 1999-04-06 Sega Enterprises Ltd. System for sub-data processor identifies the peripheral from supplied identification data and supplies data indicative of the kind of peripheral to main data processor
CN1924846A (en) * 2006-07-19 2007-03-07 中国科学院等离子体物理研究所 Direct hardware accessing data sampling system and method for PCI bus structure
CN101419278A (en) * 2008-12-05 2009-04-29 航天恒星科技有限公司 Multichannel high speed remote sensing data acquiring and processing device
CN101446818A (en) * 2008-12-12 2009-06-03 齐齐哈尔华工机床制造有限公司 Automatic control system of metal impact specimen automatic processing device
CN202119824U (en) * 2011-07-08 2012-01-18 吉林省电力有限公司长春供电公司 Data acquisition apparatus for monitoring urban network cable circulation current

Also Published As

Publication number Publication date
CN103744324A (en) 2014-04-23

Similar Documents

Publication Publication Date Title
ATE520221T1 (en) DATA TRANSFER PATH EVALUATION USING FILTERING AND CHANGE DETECTION
US9021311B2 (en) Method and apparatus for filtering trace information
US8935577B2 (en) Method and apparatus for filtering trace information
CN206154352U (en) Robot vision system with moving target detection and tracking functions and robot
CN104597817A (en) Parallel acquisition system of multi-channel digital sensor
EP2309394A3 (en) Processor and control method
CN105843365A (en) Sensor control method and device
WO2015196492A1 (en) Virtual sensor hub for electronic devices related applications
CN103744324B (en) Indoor environment quality monitoring-based data acquisition method
KR20160148644A (en) Sensor bus interface for electronic devices
CN109313481B (en) Input device for electronic device
JP2015088149A5 (en)
Guo et al. Continuous and real-time vibration data acquisition and analysis system based on S3C6410 and linux
CN203151660U (en) Embedded image processing system based on Blackfin531
CN203894588U (en) Portable flower greenhouse environment parameter acquisition device
CN204241452U (en) A kind of with storing and four gas-detecting devices of parameter adjustment
CN204346538U (en) A kind of reservoir level remote supervision system
CN205079886U (en) A production process temperature detection equipment
CN204679112U (en) Based on the temperature/humiditydetection detection system of WIFI radio communication
CN204575139U (en) A kind of soilless culture monitoring device
CN205247129U (en) Multiple spot temperature detects wireless monitoring memory system based on STM32 singlechip
CN205486065U (en) Transmitting terminal and monitored control system based on ARH microprocessor
CN101943909A (en) Distributed greenhouse environment information storage system based on I2C (Inter-Integrated Circuit) bus
CN204314754U (en) The data collector of power distribution cabinet automatic control system
US20200333869A1 (en) Battery monitoring system using network connectivity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170111

Termination date: 20191223

CF01 Termination of patent right due to non-payment of annual fee