A Fast Storage Method for Drone-Borne Passive Microwave Radiation Measurement
Abstract
:1. Introduction
2. Materials and Methods and Experiments
2.1. Dual Polling Storage Method (DPSM) Triggered by Timer Interrupt
2.1.1. The Framework and Time Sequence of DPSM
2.1.2. Applicable Conditions and Theoretical Time Consumption
2.1.3. The Logic Flow Chart and Algorithm of DPSM
- (a)
- The main program polled the write status flag bit to determine whether the previous stored procedure was completed (WSF = 4?). If the procedure was not completed, the procedure had timed out; otherwise, it would be initialized, and the flag bit would be cleared.
- (b)
- Wait until the data acquisition was ready, complete the coding, and set the WSF.
- (c)
- When the main function infinite loop was running, the program would trigger the timer for interrupt when the counter of the timer accumulated a certain value, and the update flag would then be set. The main function would poll whether the WSF is set each time the interrupt was entered. If set, the state should be (1,0), and the next operation, step d, would be performed; otherwise, wait for the next timer interrupt. The timer interrupt threshold should be set to the frequency of AD sampling.
- (d)
- The WSF increased automatically and performed Block 1 Procedure 1. After the process was completed, the WFF increased automatically and initiated the next operation. At that time, the state should be (2,1).
- (e)
- When the state was (2,1), Block 1 Procedure 2 should be performed. The WFF was polled to determine whether card programming had finished. If finished, the WFF increased; the state should be (2,2); and the next operation, step f, should be performed. Otherwise, exit the interrupt and wait for the next interrupt.
- (f)
- Repeat the above steps for data Block 2. The state should be (3,4) after the stored procedure finishes.
- (g)
- Poll the flag bit until all of the above steps are completed and the WSF increased automatically. At this time, the status is (4,4), and all of the stored procedures are completed. Then, returned to step a.
2.2. Comparative Experiments
2.2.1. Time Consumption of Single-Block Writing Steps
2.2.2. Performance Verification of Different Write Methods
- (a)
- The overall time consumption and success rate of the three methods under different sampling interval conditions were monitored to find their applicable environments.
- (b)
- The time consumption of each step of DPSM under different sampling interval conditions was monitored in order to verify the proposed method.
- (c)
- The delay caused by the storage procedure to the whole sampling cycle can be calculated by monitoring the time consumption of the corresponding position of the sampling cycle when storing or not storing.
3. Results and Discussions
3.1. Time Consumption Results of Single-Block Writing Steps
3.2. Performance Result of Different Write Methods
- (a)
- Total Time Consumption and Success Rate
- (b)
- Time Consumption of Two Procedures of DPSM
- (c)
- The Delay to the Whole Sampling Cycle Caused by the Stored Procedure
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
RFI | Radio Frequency Interference |
DPSM | Dual Polling Write Method |
MCU | Micro Control Unit |
SD | Secure Digital |
SDIO | Secure Digital Input and Output |
DMA | Direct Memory Access |
MFSM | Main Function Write Method |
ITSM | Interrupt-Triggered Storage Method |
WSF | Write Status Flag |
WFF | Write Finish Flag |
MDK | Microcontroller Development Kit |
PSC | Prescaler Register |
ARR | Auto-Reload Register |
References
- Jiang, T. Research on Suppression Method of Electromagnetic Interference Based on L-Band Microwave Radiometer with Digital Gain Automatic Compensation. Ph.D. Thesis, University of Chinese Academy of Sciences, Beijing, China, 2019. [Google Scholar]
- Derksen, C.; Walker, A.; LeDrew, E.; Goodison, B. Combining SMMR and SSM/I Data for Time Series Analysis of Central North American Snow Water Equivalent. J. Hydrometeorol. 2003, 4, 304–316. [Google Scholar] [CrossRef]
- Kawanishi, T.; Sezai, T.; Ito, Y.; Imaoka, K.; Takeshima, T.; Ishido, Y.; Shibata, A.; Miura, M.; Inahata, H.; Spencer, R. The advanced microwave scanning radiometer for the earth observing system (AMSR-E), NASDA’s contribution to the EOS for global energy and water cycle studies. IEEE Trans. Geosci. Remote Sens. 2003, 41, 184–194. [Google Scholar] [CrossRef]
- Madhavan, B.L.; He, Y.; Wu, Y.; Gross, B.; Moshary, F.; Ahmed, S. Development of a Ground Based Remote Sensing Approach for Direct Evaluation of Aerosol-Cloud Interaction. Atmosphere 2012, 3, 468–494. [Google Scholar] [CrossRef] [Green Version]
- Wei, J.; Shi, Y.; Ren, Y.; Li, Q.; Qiao, Z.; Cao, J.; Ayantobo, O.; Yin, J.; Wang, G. Application of Ground-Based Microwave Radiometer in Retrieving Meteorological Characteristics of Tibet Plateau. Remote Sens. 2021, 13, 2527. [Google Scholar] [CrossRef]
- Houtz, D.; Naderpour, R.; Schwank, M. Portable L-Band Radiometer (PoLRa): Design and Characterization. Remote Sens. 2020, 12, 2780. [Google Scholar] [CrossRef]
- Acevo-Herrera, R.; Aguasca, A.; Bosch-Lluis, X.; Camps, A.; Martínez-Fernández, J.; Sánchez-Martín, N.; Pérez-Gutiérrez, C. Design and First Results of an UAV-Borne L-Band Radiometer for Multiple Monitoring Purposes. Remote Sens. 2010, 2, 1662–1679. [Google Scholar] [CrossRef] [Green Version]
- Kerr, Y.H.; Waldteufel, P.; Wigneron, J.-P.; Delwart, S.; Cabot, F.; Boutin, J.; Escorihuela, M.J.; Font, J.; Reul, N.; Gruhier, C.; et al. The SMOS Mission: New Tool for Monitoring Key Elements ofthe Global Water Cycle. Proc. IEEE Inst. Electr. Electron. Eng. 2010, 92, 666–687. [Google Scholar] [CrossRef] [Green Version]
- Zheng, X.; Feng, Z.; Xu, H.; Sun, Y.; Li, L.; Li, B.; Jiang, T.; Li, X.; Li, X. A New Soil Moisture Retrieval Algorithm from the L-Band Passive Microwave Brightness Temperature Based on the Change Detection Principle. Remote Sens. 2020, 12, 1303. [Google Scholar] [CrossRef] [Green Version]
- Liang, S.; Li, X.; Zheng, X.; Jiang, T.; Li, X.; Qiao, D. Effects of Winter Snow Cover on Spring Soil Moisture Based on Remote Sensing Data Product over Farmland in Northeast China. Remote Sens. 2020, 12, 2716. [Google Scholar] [CrossRef]
- Wu, L. Study on Localization for Snow Depth Inversion under Forest using Passive Microwave Remoter Sensing Based on HUT Model in Northeast China. Ph.D. Thesis, University of Chinese Academy of Sciences, Beijing, China, 2016. [Google Scholar]
- Njoku, E.; Ashcroft, P.; Chan, T.; Li, L. Global survey and statistics of radio-frequency interference in AMSR-E land observations. IEEE Trans. Geosci. Remote Sens. 2005, 43, 938–947. [Google Scholar] [CrossRef]
- Li, L.; Gaiser, P.; Bettenhausen, M.; Johnston, W. WindSat radio-frequency interference signature and its identification over land and ocean. IEEE Trans. Geosci. Remote Sens. 2006, 44, 530–539. [Google Scholar] [CrossRef] [Green Version]
- Ruf, C.; Gross, S.; Misra, S. RFI detection and mitigation for microwave radiometry with an agile digital detector. IEEE Trans. Geosci. Remote Sens. 2006, 44, 694–706. [Google Scholar] [CrossRef]
- Niamsuwan, N.; Johnson, J.T.; Ellingson, S.W. Examination of a simple pulse-blanking technique for radio frequency interference mitigation. Radio Sci. 2005, 40, RS5S03:1–RS5S03:11. [Google Scholar] [CrossRef] [Green Version]
- Johnson, J.T.; Potter, L.C. A Study of Algorithms for Detecting Pulsed Sinusoidal Interference in Microwave Radiometry. IEEE Trans. Geosci. Remote Sens. 2009, 47, 628–636. [Google Scholar] [CrossRef]
- De Roo, R.; Misra, S.; Ruf, C. Sensitivity of the Kurtosis Statistic as a Detector of Pulsed Sinusoidal RFI. IEEE Trans. Geosci. Remote Sens. 2007, 45, 1938–1946. [Google Scholar] [CrossRef] [Green Version]
- Zhao, L.; Zhang, J.-L.; Liang, R.-B. Development of an energy monitoring system for large public buildings. Energy Build. 2013, 66, 41–48. [Google Scholar] [CrossRef]
- Wang, K.; Li, P.; Liu, J.; Ning, D. Application of μc/os-II in the Design of Mine dc Electrical Prospecting Instrument. Procedia Earth Planet. Sci. 2011, 3, 485–492. [Google Scholar] [CrossRef] [Green Version]
- Zhou, C. The Design of Sound and Light Alarm Circuit for Surface Acoustic Wave Methane Sensor. Master’s Thesis, Xi’an University of Science and Technology, Xi’an, China, 2016. [Google Scholar]
- Ding, S. Design and Realization Based on the Temperature and Humidity Recorder of SD Card. Master’s Thesis, Beijing University of Technology, Beijing, China, 2012. [Google Scholar]
- Zhou, H. The Design of Trigger Video Acquisition and Storage System Based on STM32. Master’s Thesis, Inner Mongolia University, Huhhot, China, 2014. [Google Scholar]
- Shi, Y.; Hao, L.; Cai, M.; Wang, Y.; Yao, J.; Li, R.; Feng, Q.; Li, Y. High-precision diameter detector and three-dimensional reconstruction method for oil and gas pipelines. J. Pet. Sci. Eng. 2018, 165, 842–849. [Google Scholar] [CrossRef]
- Rm0008 Reference Manual for STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and STM32F107xx Advanced ARM-Based 32-bit MCUs. Available online: https://www.st.com/en/microcontrollers-microprocessors/stm32f103ze.html#documentation (accessed on 24 February 2021).
- Li, C.; Sun, P. The research and implementation of airborne flight data recorder based on STM32. In Proceedings of the 2015 International Industrial Informatics and Computer Engineering Conference, Xi’an, China, 10–11 January 2015; Atlantis Press: Paris, France, 2015. [Google Scholar]
- Guan, T.; Huang, W.; Xu, N.; Xu, Z.; Jiang, L.; Li, M.; Wei, X.; Liu, Y.; Shen, X.; Li, X.; et al. Point-of-need detection of microcystin-LR using a smartphone-controlled electrochemical analyzer. Sens. Actuators B Chem. 2019, 294, 132–140. [Google Scholar] [CrossRef]
- Wang, C. Research on Micro SD Controller Based on FPGA. Master’s Thesis, Harbin Institute of Technology, Harbin, China, 2014. [Google Scholar]
- Xu, X.; Zheng, C.; Xu, F. A Real-Time Numerical Decoupling Method for Multi-DoF Magnetic Levitation Rotary Table. Appl. Sci. 2019, 9, 3263. [Google Scholar] [CrossRef] [Green Version]
Steps | Set the Block Size | Obtain the Card Status | Set the Write Address | DMA Mode Enable | Card Programming |
---|---|---|---|---|---|
Proportion of typical value (‰) | 999.989 | 999.989 | 999.993 | 999.962 | 998.243 |
Proportion of timeout value (‰) | 0.011 | 0.011 | 0.007 | 0.038 | 1.757 |
TIM2 Sampling Period | TIM3 Sampling Period | Number of Experiment Repeats | MFSM | ITSM | DPSM | |||
---|---|---|---|---|---|---|---|---|
Success Rate (%) | TStored (us) | Success Rate (%) | TStored (us) | Success Rate (%) | T’Stored (us) | |||
>10 ms | 10 s | 1000 | 100 | 3942.1 | 100 | 3946.7 | 100 | 200.7 |
1 ms | 1 s | 2000 | 0 | / | 100 | 3917.8 | 100 | 220 |
200 us | 200 ms | 5000 | 0 | / | 99.82 | 3904.3 | 99.8 | 358.9 |
180 us | 180 ms | 5000 | 0 | / | 99.82 | 3942.5 | 100 | 379.1 |
170 us | 170 ms | 5000 | 0 | / | 99.76 | 3967 | 99.96 | 390.1 |
160 us | 160 ms | 5000 | 0 | / | 0 | / | 0 | / |
TIM2 Sampling Period | TIM3 Sampling Period | Total Duration (us) | Block 1 Procedure 1 (us) | Block 1 Procedure 2 (us) | Number of Queries | Block 2 Procedure 1 (us) | Block 2 Procedure 2 (us) | Number of Queries |
---|---|---|---|---|---|---|---|---|
10 ms | 10 s | 200.7 | 82 | 17 | 2 | 82 | 18 | 2 |
1 ms | 1 s | 220 | 82 | 44 | 5 | 82 | 26 | 3 |
200 us | 200 ms | 358.9 | 82 | 143 | 17 | 82 | 53 | 6 |
180 us | 180 ms | 397.1 | 82 | 153 | 18 | 82 | 62 | 7 |
170 us | 170 ms | 390.1 | 82 | 160 | 19 | 82 | 71 | 8 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Wan, X.; Li, X.; Jiang, T.; Zheng, X.; Li, X.; Li, L. A Fast Storage Method for Drone-Borne Passive Microwave Radiation Measurement. Sensors 2021, 21, 6767. https://doi.org/10.3390/s21206767
Wan X, Li X, Jiang T, Zheng X, Li X, Li L. A Fast Storage Method for Drone-Borne Passive Microwave Radiation Measurement. Sensors. 2021; 21(20):6767. https://doi.org/10.3390/s21206767
Chicago/Turabian StyleWan, Xiangkun, Xiaofeng Li, Tao Jiang, Xingming Zheng, Xiaojie Li, and Lei Li. 2021. "A Fast Storage Method for Drone-Borne Passive Microwave Radiation Measurement" Sensors 21, no. 20: 6767. https://doi.org/10.3390/s21206767
APA StyleWan, X., Li, X., Jiang, T., Zheng, X., Li, X., & Li, L. (2021). A Fast Storage Method for Drone-Borne Passive Microwave Radiation Measurement. Sensors, 21(20), 6767. https://doi.org/10.3390/s21206767