Research Article

Programming Design of an STM32-Based Positioning Information Acquisition and Upload System

Wang Sen*
Department of Mechanical Engineering, Tianjin University, Tianjin, China

* Corresponding author: [email protected]

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
Published: September 24, 2025
DOI: 10.54254/2755-2721/2025.LD27215
Volume: ACE Vol.184
pp. 65-71
Download PDF

References

  1. D. Yang et al., “Understanding Power Consumption of NB-IoT in the Wild, ” Proc. MobiCom, 2020.
  2. S. Ould et al., “Energy Performance Analysis and Modelling of LoRa, ” Sensors, 2021.
  3. L. Casals et al., “Modeling the Energy Performance of LoRa, ” Sensors, 2017.
  4. JSON Lines, “JSON Lines — Newline-Delimited JSON, ” n.d.
  5. Hangzhou Zhongke Microelectronics Co., Ltd., “AT6558R BDS/GNSS Satellite Positioning SoC Chip Datasheet, ” n.d.
  6. MinewSemi, “MS21SF1 (LLCC68/SX1262) LoRa Module Datasheet, ” 2024-06-06.
  7. LoRa Alliance, “LoRa® L2 1.0.4 Specification (TS001-1.0.4), ” 2020/2023.
  8. WIZnet, “W5500 Datasheet, ” v1.0.9, 2025-08-14.