Abstract
This design was aimed at the requirements of the asset tracker's working time, abnormal identification, remote alarm, information prompt, using STM32 as the core MCU for data collection and processing, with a built-in GNSS wireless communication module, three-axis acceleration sensor, and other sensors, design and implement an asset tracker device that automatically recognizes and reports abnormalities. In this design, the GPS positioning information was processed, and the positioning accuracy of the device was improved. The acceleration sensor data was performed by the Kalman filter, which could effectively judge the movement of assets. The sleep-work-sleep work mode was adopted to reduce the device's power consumption and enhance the device's endurance. The test results showed that the device could reasonably identify the device's abnormal condition, quickly locate the device, and upload the device information to the server. Each working life could be applied to the tracking of all kinds of assets.
You have full access to this open access chapter, Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
With the development of technology, the location tracking was integrated into our daily life. At present, the positioning tracker in the market has a more miniature asset tracker [1,2,3]. This tracker was positioned by Wi-Fi, Bluetooth, and GPS, with high positioning accuracy and was generally used to track keys, valuables, and pets. A wearable type real-time location tracker by GSM wireless communication technology [4,5,6], such trackers generally only used GPS for real-time positioned, with high power consumption, and used the elderly and children for location tracking. Traditional logistics tracked was generally based on warehouse storage for location tracked by online registration [7]. Based on the positioning and tracking function of the above tracker, this design was based on the embedded system [8, 9] and used the STM32 chip as the primary control MCU. A vehicle asset tracker was designed with Internet reminder, intelligent anomaly identification, precise location tracking, convenient disassembly, and use.
2 The Overall Framework of the System
The research device receives the current environmental information through the peripheral sensor modules, including temperature and humidity information, light-sensing information, GPS information, network signal, and three-axis acceleration information. The data is then processed by MCU and packaged into an asset information package (AIP). The device accesses the Internet through the wireless communication module. Then the MCU packaged AIP was subscribed and published to the MQTT (Message Queuing Telemetry Transport) server through the MQTT. By subscribing to the same topic as MCU, the webserver can receive the AIP published by MCU, then parse, process, and store it. Finally, the device's current location and other related information were displayed on the web map. Figure 1 shows the overall block diagram of the system.
3 System Hardware Module Design
3.1 Overview of System Hardware
The hardware design of this research device was mainly composed of a light intensity sensor, temperature and humidity sensor, three-axis acceleration sensor, wireless communication module, GPS positioning module, power management control module and STM32F105 development board.
STM32 read the temperature and humidity sensor and three-axis acceleration information through I2C communication mode, the wireless communication module and GPS positioning module communicate and control through UART port and I/O port, the light intensity and battery information were obtained by ADC sampling, and the indicator LED was controlled by I/O port.
3.2 Peripheral Hardware Circuit Design
Temperature and Humidity Sensor Module.
This module used an SHTC3 temperature and humidity sensor to detect the temperature and humidity of the environment where the device was located. SHTC3 is a digital humidity and temperature sensor integrated with a complete sensor system. Figure 2 shows the circuit diagram of the temperature and humidity module.
Three-Axis Accelerometer Module.
This module used LIS3DH three-axis linear accelerometer to collect the current three-axis acceleration information of the device. The LIS3DH has a dynamic user-selectable complete scale of ± 2g/ ± 4g/ ± 8g/ ± 16g, can measure acceleration at an output data rate of 1 Hz to 5.3 kHz, and has 6D/4D direction detection, free-fall detection, and motion detection. Figure 3 shows the circuit diagram of the three-axis accelerometer module.
Wireless Communication Module.
This module used the BG95 module to access the wireless network and obtain GPS location information. BG95 is a series of multimode LTE-Cat M1/Cat-NB2/EGPRS modules with an integrated GNSS function developed by Quectel. Figure 4 shows the circuit diagram of the wireless communication module.
4 System Software Design
The main body of the system software design was divided into four parts: system architecture design, sensor data processing algorithm, data transmission control, and web data processing.
4.1 System Architecture Design
The design architecture of the research software was that after the device is powered on, MCU initializes and self-tests each module, obtains the relevant information of the device, and uploads it to the server. After receiving the server's feedback, the device enters a dormant state and continues to monitor the status through each module. When the regular wake-up time arrived, or each module detected an abnormal state of the device, the device was awakened. It then enters the normal tracking process of hibernation-work-hibernation.
The data collected by this research device were detected and processed by the following program modules: light sensing data detection and processing, temperature and humidity data detection and processing, GPS positioning information acquisition, sensor data detection, and processing.
Program Design for Detection and Processing of Light-sensitive Data.
The light-sensing data acquisition only needs to collect the current of the I/O port connected by the photosensitive sensor then compare it with the light characteristic curve of the sensor. The luminance of the current environment can be obtained.
STM32 collected the current of the light-sensitive sensor many times and calculated the average value ils. According to the optical characteristic curve, a light-sensitive abnormal threshold was iabn. When ils > iabn, the light perception is abnormal; otherwise, it is normal.
Program Design for Temperature and Humidity Data Detection and Processing.
The temperature and humidity data acquisition was written to the reading address of the SHTC3 device by MCU, and collected many times, and calculated that the average values of the current ambient temperature and humidity data were Tcur and Hcur, respectively, and determined the standard temperature threshold Tmin, Tmax and humidity threshold Hmax. When Tmin ≤ Tcur ≤ Tmax, the current ambient temperature is normal; otherwise, it is abnormal; when Hcur ≤ Hmax, the current ambient humidity is normal, and vice versa.
Program Design for Obtaining GPS Location Information. GPS positioning information was based on the BG95 module for transceiver and collection. Suppose N pieces of GPS information are obtained, each GPS information is expressed as Bi = {Lati, Loni}, i = 1,…, N, where Lati and Loni are latitude and longitude, respectively. At this time, taking B1 as the initial point, the distance di between each point and point B1 is calculated according to Eq. (1).
where R is the radius of the earth, the average value is 6371 km, d is the distance between two positions, and haversine is Eq. (2),
Figure 5 shows the block diagram of the GPS information processing algorithm, where dfen is the radius of the fence with B1 as the center. The distance di relative to the B1 point is calculated by Eqs. (1) and (2). Then through the comparison of di and dfen, we can get the number ns and nm of the above location information inside and outside the fence. η is a static factor. By comparing the magnitude of ns and N*η, we can judge whether the device is in a static state or a moving state.
When the device is in a static state, the current position coordinate D0 of the device can be calculated by Eq. (3). All the current position information is linearly fitted when the device moves and the linear equation y = ax + b with B1 as the coordinate origin is obtained. Then H1, Hnm/2, and Hnm are substituted into the linear equation, and the position information D1, D2, and D3 are obtained.
4.2 Program Design for Acceleration Sensor Data Processing
In this study, Sensor data read three-axis data through the I2C communication module. In order to be compatible with the characteristics of portable disassembly and assembly and at the same time achieve simple and effective judgment and recognition, the average acceleration aave was used to reduce the complexity of the three-axis vector operation.
In order to filter out the occasional acceleration fluctuation, the average acceleration state Xt was processed by Kalman filter [10]:
The formula: Ht is the unit matrix, Vt is the measurement noise with mean 0 and variance R, ut−1 is discrete white noise with mean 0 and variance Q, \(\hat{X}_{t}^{ - }\) is the a priori estimation of time, Zt is the measured value of t-time.
From Eq. (4),
The formula: \(\hat{X}_{t}\) is a posteriori estimate of t-time, Pt is a posteriori variance, \(P_{t}^{ - }\) is a priori variance, Kt is Kalman gain of t-time.
Through the analysis and processing of the posterior estimated value \(\hat{X}_{t}\), we can accurately judge whether the device is abnormal or not.
4.3 Program Design for Data Transmission Control
Data transmission was mainly based on the connection between the device and the server through the BG95 communication module, and the BG95 communication module connects to the network through 4G communication. The device SN number and IMEI number were used as the unique identification for the server to distinguish and register the device. Figure 6 shows the block diagram of the data transfer program.
4.4 Program Design for Web Data Processing
Web-side data processing was mainly operated by the webServlet class. Since the messages forwarded by the back-end server were mainly POST operations, the doPost() method was used in this class. The front-end web page used a JSP page and set up a form to determine that the parameter sleepTime that needed to be passed could be entered on the web page and then transferred to the background using submit().
In data processing at the back end, the Frameheader of the data string was used to determine the information category, verify it, and separate the registration, login, device information, logout, and other information categories. Figure 7 shows the block diagram of the web-side data processing flow.
5 System Testing
Through the tested of the device, after the device was powered on, it enters the work cycle of self-tested, uploaded data—dormant—awaken—self-tested, and uploaded data. Figure 8 shows the simulation results of GPS information processing. It could be seen that the processed positioned coordinates coincide with the actual coordinates. That was, the research device could read the positioned information more accurately.
The Kalman filter processed the data collected by the acceleration sensor. Figure 9 shows the results of sensor data simulation. It could be seen that the filtered data could filter out most of the acceleration fluctuations, which was convenient for the device to identify the abnormal conditions.
The data relating to the device's working time and timing wake-up time was obtained through the power consumption test. Table 1 shows the battery test data. The working days of the device in this study were proportional to the wake-up time interval, and the maximum working time could be up to 170Â days.
Through the above tests, this research device could be applied to all kinds of asset tracking.
6 Conclusion
Integrating the specificity, scalability, reliability, and power consumption of embedded systems, STM32 was used as the data processing core MCU, and other functional modules were used to design and implement an asset tracker device that automatically recognizes and reports abnormalities.
The main advantage of this design was that the device could automatically identify according to the surrounding environment and movement of the asset, display the relevant data on the web page, and support users to remotely modify the dormancy time of the device according to the situation—the data processing method of the accelerometer provides convenience for device installation. The GPS information processing method improves positioning accuracy without Wi-Fi and Bluetooth assistance. Acceleration sensor data and GPS information processing methods are not complex; STM32 could carry out related processing. The ultra-long life span enables the device to be used in all kinds of asset tracking.
References
Hyunsung, K., et al.: Design of a low-power BLE5-based wearable device for tracking movements of football players. In: 2019 International SoC Design Conference (ISOCC), pp. 11–12. IEEE, Jeju (2019)
Bauyrzhan, K., Muhammad Fahad, F., Rana Muhammad, B., Atif, S.: A Wi-Fi tracking device printed directly on textile for wearable electronics applications. In: 2016 IEEE MTT-S International Microwave Symposium (IMS), pp. 1–4. IEEE, San Francisco (2016)
Hannah, A.S.A., Francis, K.O., Tan, S., George, K.A., Manasah, M.: Developing a bluetooth based tracking system for tracking devices using arduino. In: 2020 5th International Conference on Computing, Communication and Security (ICCCS), pp. 1–5. IEEE, Patna (2020)
Hind Abdalsalam, A.D.: Design and implementation of an accurate real time GPS tracking system. In: The Third International Conference on e-Technologies and Networks for Development (ICeND2014), pp. 183–188. IEEE, Beirut (2014)
Fatima Nadhim, A., Ziad Saeed, M., Abdulrahman Ikram, S.: An economic tracking scheme for GPS-GSM based moving object tracking system. In: 2018 2nd International Conference for Engineering, Technology and Sciences of Al-Kitab (ICETS), pp. 28–32. IEEE, Karkuk (2018)
Padmanabhan, R., Pavithran, R., Shanawaz Mohammad, R., Bhuvaneshwari, P.T.V.: Real time implementation of hybrid personal tracking system for anomaly detection. In: 2016 Eighth International Conference on Advanced Computing (ICoAC), pp. 93–98. IEEE, Chennai (2017)
Lei, Y., Long-qing, Z.: Logistics tracking management system based on wireless sensor network. In: 2018 14th International Conference on Computational Intelligence and Security (CIS), pp. 473–475. IEEE, Hangzhou (2018)
Hao, T., Jian, S., Kai, L.: A smart low-consumption IoT framework for location tracking and its real application. In: 2016 6th International Conference on Electronics Information and Emergency Communication (ICEIEC), pp. 306–309. IEEE, Beijing (2016)
Rui, W., Shiyuan, Y.: The design of a rapid prototype platform for ARM based embedded system. IEEE Trans. Consum. Electron. 50(2), 746–751 (2004)
Md Masud, R., Nazia, H., Md Mostafizur, R., Ahmed, A.: Position and velocity estimations of 2D-moving object using kalman filter: literature review. In: 2020 22nd International Conference on Advanced Communication Technology (ICACT), pp. 541–544. IEEE, Phoenix Park (2020)
Acknowledgement
This work was supported by National Science Foundation of China (Grant No. 61801412), High-level Talent Project of Xiamen University of Technology (Grant No. YKJ17021R, and No. YKJ20013R), Scientific Research Climbing Project of Xiamen University of Technology (Grant No. XPDKT19006), and Education and Scientific Research of Young Teacher of Fujian province (Grant No. JAT190677, No. JAT200471, and No. JAT200479).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.
The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
Copyright information
© 2022 The Author(s)
About this paper
Cite this paper
Lu, X., Feng, C., Yuan, J., Ji, H. (2022). Design of Abnormal Self-identifying Asset Tracker Based on Embedded System. In: Qian, Z., Jabbar, M., Li, X. (eds) Proceeding of 2021 International Conference on Wireless Communications, Networking and Applications. WCNA 2021. Lecture Notes in Electrical Engineering. Springer, Singapore. https://doi.org/10.1007/978-981-19-2456-9_54
Download citation
DOI: https://doi.org/10.1007/978-981-19-2456-9_54
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-19-2455-2
Online ISBN: 978-981-19-2456-9
eBook Packages: EngineeringEngineering (R0)