Research Article
Programming Design of an STM32-Based Positioning Information Acquisition and Upload System
Abstract
We design a low-power STM32F103-based GNSS terminal that prioritizes NB-IoT uplink and falls back to a LoRa-to-Ethernet gateway when cellular attach or TCP setup fails. An RTC-driven wake → acquire → package → upload → sleep loop with compact, newline-delimited JSON payloads reduces airtime and energy. Layered design and power gating extend lifetime, while the LLCC68/W5500 gateway transparently bridges bytes to a TCP server. Results show robust uploads under heterogeneous connectivity with minimal terminal complexity.
Keywords: STM32F103; NB-IoT; LoRa; AT6558R; LLCC68; W5500; JSON Lines; RTC; low-power; TCP
References
- D. Yang et al., “Understanding Power Consumption of NB-IoT in the Wild, ” Proc. MobiCom, 2020.
- S. Ould et al., “Energy Performance Analysis and Modelling of LoRa, ” Sensors, 2021.
- L. Casals et al., “Modeling the Energy Performance of LoRa, ” Sensors, 2017.
- JSON Lines, “JSON Lines — Newline-Delimited JSON, ” n.d.
- Hangzhou Zhongke Microelectronics Co., Ltd., “AT6558R BDS/GNSS Satellite Positioning SoC Chip Datasheet, ” n.d.
- MinewSemi, “MS21SF1 (LLCC68/SX1262) LoRa Module Datasheet, ” 2024-06-06.
- LoRa Alliance, “LoRa® L2 1.0.4 Specification (TS001-1.0.4), ” 2020/2023.
- WIZnet, “W5500 Datasheet, ” v1.0.9, 2025-08-14.