Full text
Universidade do Minho Escola de Engenharia Mariana da Silva Duarte Integrating GNSS receiver on low-power end-device for monitoring applications July 2023 Integrating GNSS receiver on low-power end-device for monitoring applications Mariana Duarte UMinho |2023
Universidade do Minho Escola de Engenharia Mariana da Silva Duarte Integrating GNSS receiver on low-power end-device for monitoring applications Master’s Dissertation Master’s in Industrial Electronics and Computer Engineering Embedded Systems and Computers Work supervised by Professor Jorge Cabral
ii COPYRIGHT AND TERMS OF USE OF THIS WORK BY A THIRD PARTY This is academic work that can be used by third parties as long as internationally accepted rules and good practices regarding copyright and related rights are respected. Accordingly, this work may be used under the license provided below. If the user needs permission to make use of the work under conditions not provided for in the indicated licensing, they should contact the author through the RepositóriUM of Universidade do Minho. License granted to the users of this work Creative Commons Atribuição-NãoComercial-CompartilhaIgual 4.0 Internacional CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0/deed.pt
Acknowledgements Aos meus pais, por todo o amor e por continuarem a arranjar novas formas de mo darem. Ao meu irmão, por me trazer o mundo. E em especial ao meu primo Deny, pelo apoio e por ser a clareza de que o sonho comanda a vida. Aos meus colegas de curso, em especial à Sara, Xana e Bela, pelo companheirismo durante estes anos e ao Nuninho, Xano, Rui Esteves e Rui Costa, por fazerem do curso um lugar de pertença. Um agradecimento ao Professor Doutor Jorge Cabral, pela oportunidade de realizar esta dissertação e por todo o conhecimento que me transmitiu. Um agradecimento ao Professor Doutor Vítor Silva, por todo o conhecimento que me transmitiu ao longo dos anos. Um especial agradecimento à Sofia Paiva, pela ajuda e pelo acompanhamento durante este período. Assim como ao Rui Teixeira e Mário Mesquita, por toda a ajuda e disponibilidade prestada no decorrer desta etapa. Project ”(Link4S)ustainability - A new generation connectivity system for creation and integration of networks of objects for new sustainability paradigms [POCI-01-0247-FEDER-046122 | LISBOA-01-0247- FEDER-046122]” is financed by the Operational Competitiveness and Internationalization Programmes COMPETE 2020 and LISBOA 2020 under the PORTUGAL 2020 Partnership Agreement, and through the European Structural and Investment Funds in the FEDER component. iii
iv STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the Universidade do Minho.
Abstract Integrating GNSS receiver on low-power end-device for monitoring applications The growing markets of fleet management, asset, and vehicle tracking, among others, demand IoT solutions for position acquisition with low-power consumption and low-cost requirements. The GNSS receivers, utilized to determine the asset position, used to be very power-hungry. However, in recent years new GNSS receivers market solutions have been emerging with low power performance, assisted GNSS, and power-saving modes features, to meet the demanding low power requirements. This master’s dissertation aims to implement and compare two IoT tracking solutions. One is a systemon-chip architecture that integrates the NB-IoT communication and a GNSS receiver. Due to the competition for resources, the firmware must address strategies for the coexistence of both technologies. The second solution is a system with a standalone GNSS receiver. This work will also present a case study that analyzes the performance and power consumption of the two designed and developed IoT systems. In addition, the two low-power end devices developed will be employed to localize an unmanned aerial vehicle, aiming to recover the UAV in case of a crash or other critical anomaly. The results of the dissertation indicate an estimated battery lifetime of the end-device developed of approximately 3 months, assuming position updates every 10 minutes. The system demonstrated robust behavior for a use case of mobile asset tracking, with sufficient accuracy for road-sized applications. However, the system-on-chip solution may not be suitable for applications requiring extended battery lifetime without frequent recharging or replacement. Keywords: IoT, Tracking, GNSS receiver, NB-IoT, Low-Power, Unmanned Aerial Vehicle v
Resumo Integração de um recetor GNSS num end-device de baixo consumo para aplicações de monitorização Há um mercado crescente para soluções de gestão de frotas, localização de ativos e veículos, entre outros, que requerem soluções de IoT para aquisição da posição, com requisitos de baixo consumo de energia e baixo custo. Os recetores GNSS, utilizados para determinar a posição do ativo, apresentavam um elevado consumo de energia. No entanto, nos últimos anos, novas soluções de recetores GNSS têm surgido no mercado com baixo consumo de energia, e funcionalidades, como, assisted GNSS e modos para economizar energia, para atender aos exigentes requisitos de baixo consumo de energia.. Esta dissertação de mestrado tem como objetivo implementar e comparar duas soluções de posicionamento. Uma é um sistema on chip que integra o modulo de comunicação NB-IoT e um recetor GNSS. Devido à partilha de recursos, o firmware desenvolvido deve contemplar estratégias para a coexistência das duas tecnologias. A segunda solução é um sistema equipado com um recetor GNSS autónomo. Este trabalho também apresentará um caso de estudo que analisa o desempenho e consumo de energia dos dois sistemas IoT projetados e desenvolvidos. Além disso, as duas soluções desenvolvidas serão empregues para localizar um veículo aéreo não tripulado, visando recuperar o UAV em caso de colisão ou outra anomalia crítica. Os resultados da dissertação indicam uma vida útil estimada da bateria do dispositivo desenvolvido de aproximadamente 3 meses, assumindo atualizações da posição a cada 10 minutos. O sistema demonstrou um comportamento robusto para um caso de uso de localização de ativos móveis, com uma precisão suficiente para aplicações com um erro de precisão do tamanho de uma estrada. No entanto, a solução do sistema em chip pode não ser adequada para aplicações que exigem longa vida útil da bateria sem recargas ou substituições frequentes. Palavras-chave: IoT, Posicionamento, GNSS receiver, NB-IoT, Baixo Consumo, VANT vi
Contents List of Figures ix Acronyms xi 1 Introduction 1 1.1 Context ....................................... 1 1.2 Motivation ..................................... 2 1.3 Objectives ..................................... 2 1.4 Document Structure ................................. 3 2 State of Art 4 2.1 Low-Power Wide-Area Network ............................ 4 2.1.1 LPWAN Communication Technologies .................... 4 2.2 Outdoor Positioning in the IoT Ecosystem ...................... 6 2.2.1 GNSS-Free IoT Positioning Methods ..................... 6 2.2.2 GNSS receiver Positioning ......................... 10 2.3 Low-Power Design Strategies ............................ 13 2.3.1 NB-IoT Energy Saving Modes ........................ 15 2.3.2 GNSS Low-Power Strategies ........................ 19 3 System Specification 20 3.1 Hardware Specification ............................... 20 3.1.1 System on Chip Architecture Solution .................... 21 3.1.2 Stand-Alone Architecture Solution ...................... 29 3.2 Hardware Design .................................. 32 3.2.1 System on Chip Architecture Solution .................... 32 3.2.2 Stand-Alone Architecture Solution ...................... 35 3.3 Software Specification ................................ 38 3.4 Software Design .................................. 39 vii
CONTENTS 3.4.1 Modem Module .............................. 39 3.4.2 GNSS Module ............................... 44 4 Implementation 50 4.1 Hardware ...................................... 50 4.1.1 System on Chip Architecture Solution .................... 50 4.1.2 Stand-Alone Architecture Solution ...................... 66 4.2 Software ...................................... 72 4.2.1 Modem Module .............................. 72 4.2.2 GNSS Module ............................... 77 5 Results 82 5.1 Real-world scenario test ............................... 82 5.2 Laboratory Test ................................... 84 5.2.1 Test Setup ................................. 84 5.2.2 GNSS Receiver Operation .......................... 84 5.2.3 Data Transmission Operation ........................ 86 5.2.4 Battery Lifetime Estimation ......................... 87 6 Conclusions and Future Work 89 Bibliography 92 viii
CHAPTER 1. INTRODUCTION • Study of the above scenarios for different GNSS time-to-first-fix (TTFF) modes. • Integration of Assisted GNSS service technology and results collection • System analysis and evaluation regarding performance, energy consumption, and GNSS time to fix. • Analysis and evaluation of system performance regarding the use of active and passive antennas. • Comparison of results. This dissertation is part of the LINK4S project that aims to develop low-power Cyber-Physical Systems (CPS) for monitoring applications. Therefore, this dissertation also has an objective related to this project: • Migration of the current LINK4S project solution to a new Quectel family modem. • Analysis and comparison of the two Quectel solutions. In addition to developing the software for these systems, an objective is to design and redesign schematics that encompass the various components of the different systems. 1.4 Document Structure In this chapter, the context, motivation, and objectives of the dissertation were presented. The next chapter delves into the state-of-the-art and is divided into two sections. The first section provides a brief overview of the dominant LPWAN technologies (Sigfox, LoRaWAN, and NB-IoT), followed by a comparison of these technologies. The second section explores the literature on outdoor positioning in IoT systems with and without GNSS receivers. The section concludes with a discussion of design strategies for low energy consumption, including NB-IoT operation, energy-saving modes, and GNSS low-power strategies. The second chapter, System Specifications, is comprised of three parts. The first part outlines the dissertation’s functional and non-functional requirements, the second part details the two solutions’ hardware blocks and describes the respective components and introduces the LINK4S project software. Lastly, the third part regards the hardware and software design. The Implementation chapter covers the implementation of both hardware and software solutions. The Results chapter presents the tests carried out and their results, along with a discussion of these results. Finally, the Conclusion and Future Work chapter provides a comprehensive summary of the work conducted and outlines potential future developments. 3
Chapter 2 State of Art 2.1 Low-Power Wide-Area Network Internet of Things (IoT) technologies are present in all the domains of nowadays life, employed in applications in the fields of agriculture, security, smart city, smart grids, smart home, and so on. IoT applications have distinct requirements, such as a long communication range, low energy consumption, and low cost. LTE-based solutions offer a larger communication range than popular technologies such as BLE and Zig- Bee but at the cost of higher energy consumption. The absence of a technology that could provide low power and long range communications lead to the emergence of Low Power Wide Area Network (LPWAN) technologies [3]. LPWAN technologies guarantee low energy consumption, making it possible to achieve 10 years of battery lifetime, low cost, and long transmission range. Specifically developed for IoT applications that transmit a few messages per day [3]. 2.1.1 LPWAN Communication Technologies The dominant LPWAN technologies are Sigfox, LoRaWAN, and NB-IoT [3]. A brief presentation of each of these technologies will be introduced, followed by a comparison between them. Sigfox Sigfox uses an ultra-narrow band, which reduces the communication noise levels, leading to low power consumption and high receiver sensitivity that makes possible the use of a low-cost antenna, without compromising the performance. Sigfox allows bi-directional communication, although, the downlink transmission happens only following an uplink communication [3]. Concerning the power consumption constraints, the payload length is short - static 8 bytes for each downlink message and a maximum of 12 bytes for uplink messages. The number of messages transmission per day is limited - 140 uplink messages and 4 downlink messages per day [5]. 4
CHAPTER 2. STATE OF ART LoRaWAN LoRaWAN uses a spread spectrum modulation technology operating the sub-GHz band (867-869MHz frequency bands for Europe), in contrast to many wireless technologies which employ frequency shifting keying (FSK) modulation, leading to low power consumption. The LoRaWAN modulation technology achieves low power characteristics while significantly increasing the communication range [6]. Each uplink message is received by all base stations in the coverage range, this redundancy improves the communication reliability, yet it demands the deployment of base stations in each region, rising the network infrastructure costs [3]. It features three device classes (class A, class B, and class C) which differ in the downlink receive windows period and frequency, therefore it suits different requirements [7]. In order to manipulate the data rate and range tradeoff, LoRaWAN provides six spreading factors (SF7 to SF12). The higher spreading factor offers the longer transmission range and lowest data rate [8]. The maximum payload length is 243 bytes and the data rate is between 30 bps and 50 kbps [3]. NB-IoT NB-IoT is a narrowband LPWAN technology able to coexist in LTE or GSM under licensed frequency bands. The highest throughput rate is 200 kbps (downlink) and 20 kbps (uplink), with a payload length of 1600 bytes [3]. NB-IoT supports great indoor coverage, the signals are able to penetrate building materials and introduce two power-saving technologies allowing very low power consumption. NB-IoT technology was designed for IoT applications with low budgets deployed in remote locations, inside buildings, or underground and that transmit a small number of messages per day. This technology has been used in several fields, such as intelligent parking, street lights, buildings, and shared bicycles, along with others [9]. Comparing the three LPWAN Communication Technologies refer, NB-IoT offers a better quality of service (QoS) since it uses LTE-based synchronous protocol instead of the Sigfox and LoRaWAN that employ asynchronous communication. Concerning the tradeoff between the battery lifetime and latency, the NB- IoT consumes more energy, because of the synchronous communication, therefore battery life is shorter when compared with the other two technologies. Although, the NB-IoT and LoRaWAN-Class-C present a lower downlink latency, at the cost of more energy consumption. On the other hand, the Sigfox and LoRaWANClass-A suites have better requirements with low consumption power and latency insensitivity. The NB-IoT presents the highest payload length, therefore, it can handle a vast spectrum of IoT applications. On the other hand, Sigfox is the one with the most limited payload size, being very restricted to applications that send small data. Regarding communication coverage, the SigFox, due to the extremely high range (range >40 km), is able with just one base station to cover an entire city. NB-IoT is dependent on LTE infrastructure and presents the lowest range and coverage, however, it can provide service in indoor environments [3]. 5
CHAPTER 2. STATE OF ART 2.2 Outdoor Positioning in the IoT Ecosystem IoT applications are deployed in vast domains of society and it is anticipated that nowadays and in the near future, many IoT use cases will require positioning and tracking information in different scenarios such as indoors and/or outdoors [10]. The global navigation satellite system (GNSS) sensor is the traditional approach to acquiring the position information, although is not suitable for massive IoT applications, once is power-hungry and in challenging environments such as indoors, encapsulated, or underground, lose it’s position reading [2]. An alternative is GNSS-Free IoT Localization Methods based on the Low Power Wide Area Networks communication infrastructures [2]. The User Equipment (UE) uses the base stations of an LPWAN network to estimate its location. The network-based approach prioritizes energy efficiency, making it a better choice for applications where conserving power is crucial, even though it may result in lower accuracy. Conversely, GNSS provides higher accuracy at the expense of increased power consumption but offers better privacy. 2.2.1 GNSS-Free IoT Positioning Methods The GNSS-free IoT positioning methods use several strategies to estimate the user equipment location. These methods are divided into multiple domains accordingly whit the approach used: • Power or signal strength-based: Signal strength measurements acquired from the protocol operation. Most of the time, the measurement doesn’t present additional costs to the device and battery consumption [10]. For example the Received Signal Strength (RSS) method. • Time-based: the estimation of the position is based on timing information, which will be converted into distance. For example the Time of Arrival (ToA) and Observed Time Difference of Arrival (OTDOA) methods. In addition to the above domains and methods of application, there are many others, however, the time-based location and received signal strength-based algorithms approaches are the one more suited to NB-IoT networks [10]. Received Signal Strength (RSS) Received Signal Strength Indicator (RSSI) indicates to the receiver the strength of the received signal, in other words, the power of the signal at the receiving end. The strength of the received signal decreases as the travel distance increases, through a mathematical model and by knowing the location of the base station, the location of the end-device receiver can be estimated. A path-loss model is a mathematical model of signal propagation that estimates the power loss to transmit a message for a certain distance. There are many path-loss models: at one end of the spectrum, the simplest model, which does not consider the physical disturbances that perturb the signal strength; 6
CHAPTER 2. STATE OF ART on the other end, the more realistic models, which consider that the transmitted signal is obstructed by infrastructures and others and impacted by atmospheric effects [12] Figure 1: RSS positioning with a single base station [12] The RSS method returns the estimated distance between the UE and the base station. Therefore, the UE localization can be at any point in a circle at the base station location, with a radius equal to the distance. To improve the accuracy of the estimation approaches such as trilateration or multilateration can be used. During the use of NB-IoT protocol and this GNSS-Free localization method has been noticed that when the UE request to get the RSSI to the nearby base stations, only the base station it is connected to, responds [12]. This impacts the localization accuracy, once multilateration approaches cannot be performed. The number of reported base stations is minimum, to minimize the signaling cost and sustain a considerable number of devices [13]. Another approach needs to be attended to increase the accuracy, for example, considering the sector information of the base station antennas - each base station is composed of three directional antennas, covering a sector of 120 degrees, illustrated in Fig. 1. The center of the arc is assumed as the location of the user equipment. This method results in a mean localization error higher than 320 m [12]. 7
CHAPTER 2. STATE OF ART Time of Arrival or Time on Air (ToA) ToA is the time that the transmitted signal takes to get to the receiver. Multiplying the time by the speed of light, the distance to the base station can be estimated. Three base stations are required for 2D positioning. Time of Arrival systems have two different categories, namely, one-way and two-way TOA. In the Oneway ToA, the distance is determined just based on one-way signal transmission between the transmitter and the receiver, therefore it requires precise synchronization between the base stations and the UE, which leads to high-accuracy clock sources not suitable for the low-cost requirements of IoT applications. In contrast, the Two-way ToA performs the distance estimation after two ways travel - to the receiver and mirrored back to the transmitter. This procedure doesn’t require synchronization between the UE and the base station [14]. Observed Time Difference of Arrival (OTDOA) Observed Time Difference of Arrival (OTDOA) is a feature that has been presented for NB-IoT by the 3GPP in Release 14 [12]. At least, three base stations are necessary to estimate the 2D coordinates of the UE through this method [15]. Figure 2: OTDOA Positioning The User Equipment (UE) collected data on the time of arrival (TOA) for signals received from multiple base stations. In Figure [1] (refer to Fig.2), the TOA measurements are represented as 𝑡1,𝑡2, and 𝑡3. Then the time difference of arrival (TDOA) is calculated: the TOA of the non-reference base station is subtracted to the TOA of the reference base station (base station one, in the example) [2] : 𝑡(2,1)=𝑡2−𝑡1(1) 𝑡(3,1)=𝑡3−𝑡1(2) 8
CHAPTER 2. STATE OF ART Geometrically, the TDOA are hyperbolas. The UE estimated localization is the intersection point of the two hyperbolas. The User Equipment is responsible to measure the time difference between a neighbor base station and the reference base station, the TDOA, this forms the Reference Signal Time Difference (RSTD) measurements [2]. The downlink signals used to calculate the RSTD measurements must be strong enough to be detected by at least three base stations, which may be geographically dispersed in certain locations. Figure 3: NB-IoT OTDOA positioning Prodecure [15] The user equipment communicates with the location server (E-SMLC), through the LTE Positioning Protocol (LPP). The estimation follows a procedure presented in Fig.3: first, the user equipment reports to the location server that it supports OTDOA; after, the OTDOA assistance data (information of the reference and the neighbor base stations that should be used) is delivered to the UE; then, RSTD measurements are performed as specified by the OTDOA assistance data and transmitted to the location server; finally, the location server, which knows the base station locations, performs trilateration to locate the user equipment [15]. In many countries, the operators do not support this feature, due to increase of the cost and complexity of synchronizing base stations. Besides, the network equipment requires highly accurate clocks, which is expensive. In the literature, the OTDOA was only explored with theoretical analysis and simulations, the localization accuracy has not been sufficiently studied [15]. In short, this feature is still at an early stage of deployment. In brief, these methods are energy-efficient, however, present several disadvantages, namely, a low accuracy, which is not suitable for several use cases. 9
CHAPTER 2. STATE OF ART 2.2.2 GNSS receiver Positioning The GNSS receiver manufacturers are actively developing new strategies to adapt their products to meet the specific requirements of the IoT industry. A new system-on-chip (SoC) architecture that integrates the GNSS receiver and NB-IoT has emerged. By sharing hardware resources, the final size is reduced, as well as the cost, which suits the size-constrained and low-cost IoT requirements. However, sharing hardware resources causes competition between communication and GNSS receiver operations. Therefore, to manage the time-sharing extra software strategies have to be considered [16]. In most SoC architectures, the GNSS receiver and NB-IoT present separate CPU and RAM memory and share the radio frequency (RF) front end, making it impossible to receive satellite signals and transmit cellular data simultaneously, so communications transmissions can disrupt the GNSS receiver positioning, as well as GNSS receiver positioning, can interrupt or delay communications transmissions, therefore it can result in difficult position reads and in communication latency, which can lead to energy-wasting due to repeated network reconnections [16]. Therefore, the stand-alone solutions are still an available option for IoT applications that require robust GNSS receiver and LTE technology with no dependence between the technologies and excellent performance [17]. In addition to the GNSS receiver and NB-IoT SoC solutions, the market offers other GNSS receiver solutions designed especially for IoT applications. For example, ultra-low power GNSS receiver to achieve a low-power performance. To overcome the GNSS receiver limitations - difficulty in positioning without a clear sky or in weak signal scenarios - the market presents a solution that integrates the Dead Reckoning module. The Dead Reckoning module performs an estimate of the current position based on the previous position and on sensorial information from the sensors that incorporate it (accelerometer, gyroscope, IMU, etc.), a solution widely used in automotive navigation systems. Consequently, GNSS receiver is qualified to suit additional IoT use cases. Lastly, solutions with multi-band and high precision techniques guarantee sub-meter accuracy [17]. GNSS Receiver Operation The Global Navigation Satellite System (GNSS) provides accurate positioning, timing, and navigation information to the GNSS receiver. The GNSS encompasses several satellite systems, including GPS, Galileo, and GLONASS. To determine its location, the GNSS receiver must constantly receive two types of data - the almanac and ephemeris - from the satellites. The almanac provides information about the status and approximate orbital information of every satellite, allowing the receiver to determine which satellites are in view. However, this data is not accurate enough for the receiver to determine its position. On the other hand, each satellite only transmits its own ephemeris data, offering highly accurate details about its orbit, enabling the receiver to calculate the location of the satellites with a high degree of precision. 10
CHAPTER 2. STATE OF ART A GNSS receiver fundamental role in analyzing signals received from different satellites in view [18]. By measuring the time of arrival (TOA) and demodulating the navigation message, the receiver can estimate the position, velocity, and time (PVT) [19]. Trilateration is the underlying principle of the GNSS receiver, which involves measuring distances from three known transmitters. To ensure accurate calculations, precise time synchronization between satellites is crucial. Even a synchronization error of 1𝜇s can lead to a distance error of approximately 300m. Thus, the receiver uses four pseudorange equations to determine the user’s coordinates (x, y, z) and clock bias caused by synchronization. Since all the satellites are highly synchronized, therefore all TOA measurements at the receiver are affected by the same clock bias [20]. Figure 4: Fundamental block diagram of a GNSS receiver [19] The high-level block diagram of a typical GNSS receiver is illustrated in Figure 4. The receiver captures satellite signals through an antenna, which are then fed into the Radio Frequency (RF) front-end unit. Within the RF front-end unit, the incoming signal undergoes several processing steps. It is first amplified using a low noise amplifier (LNA), then filtered, down-converted to an Intermediate Frequency (IF), and finally digitized through an analog-to-digital converter. The resulting digital signal is then passed on to the baseband part of the receiver [21], [22]. The baseband part is composed of parallel digital receiver channels and is responsible for finding the satellite signals buried in noise, and then tracking them to extract the demodulated navigation data from the signal. To achieve three-dimensional navigation, at least four satellites are required to solve four unknowns (x-, y-, z-coordinates, and time), therefore at least four parallel channels are required, with each channel focusing on a specific satellite signal. The search phase is called acquisition. During acquisition, the receiver determines the visible satellites by performing a two dimensional search for each unique PRN code (satellite ID), to identify code delay and Doppler frequency caused by the satellite and receiver movements. The Time to First Fix (TTFF) is heavily dependent on the time required for the acquisition process. The TTFF can be reduced by leveraging information about the receiver’s previous position and almanac data [19]. Once the acquisition is successfully completed, the receiver enters the tracking phase. In this phase, the receiver continuously tracks the locked signals, ensuring that it keeps pace with their changes. The receiver can then extract the data symbols, including navigation data, from the received signal [20]. 11
CHAPTER 2. STATE OF ART The navigation process relies on a constant stream of navigation data as input. This data stream comprises separate data streams from the satellites currently being tracked. For each tracked satellite, a specific set of parameters, known as ephemeris parameters, needs to be decoded. The ephemeris data describes the actual orbit of the satellite and includes parameters that correct for perturbations in the orbit over time. Once the valid ephemeris data is obtained for each tracked satellite, the receiver can calculate the satellite locations in Earth-Centered Earth Fixed (ECEF) coordinates. Subsequently, the user’s location is estimated. As the final step in the navigation process, the resulting user location and time information are converted into a standardized NMEA (National Marine Electronics Association) format, which serves as the output from the navigation process. This format allows for easy integration with various applications and systems that require GNSS positioning data. GNSS Receiver startup modes The Time to First Fix (TTFF) is a measurement of how long it takes for a GNSS receiver to determine its position. The TTFF is categorized into three start types based on the information stored in the receiver’s memory: cold, warm, and hot. A cold start is initiated when the GNSS receiver has been turned off for more than two weeks or when the memory backup battery has been lost. During a cold start, the receiver has no information about its previous location or time, and it has no valid ephemeris or almanac data in its memory. The receiver must acquire data from at least three satellites to calculate its position. The satellites transmit navigation messages containing the information required for the receiver to determine its position, with a transmission rate of 50 bits per second. Each navigation message is 900 bits long, so the minimum time for a cold start is 18 seconds, assuming the receiver can immediately receive data from four satellites. However, manufacturers typically report a cold start time of 30-45 seconds. [23] A warm start is started when a GNSS receiver has valid information about its last position, time, and almanac data. The almanac data helps the receiver predict which satellite signals it should receive, acquiring signals faster than in a cold start. However, the receiver still needs to wait for updated ephemeris data from at least three satellites, just like in a cold start, since the ephemeris data is valid for approximately 4 hours [24]. As a result, the minimum time for a warm start is also 18 seconds. A warm start can occur when a receiver has been turned off for a short period, such as overnight. Manufacturers typically report a warm start time of 28-35 seconds, with the difference in time between a warm and cold start mostly resulting from the delay after turning the receiver on while it searches for satellite signals. [23] In a hot start, the GNSS receiver has the necessary information stored in its memory, including valid ephemeris data and the current time. This means that the receiver does not have to wait for the ephemeris transmission and can immediately calculate its position by acquiring signals from at least four satellites. A hot start is typically initiated when the receiver has been turned off for a short period, usually less than two hours. According to manufacturers, the time it takes for a hot start is typically within the range of 1-3 seconds. [23] 12
CHAPTER 2. STATE OF ART 2.3.2 GNSS Low-Power Strategies In the GNSS receiver, the stage of greatest energy consumption is during the satellite signal acquisition, therefore to save power this period must be briefer as possible. Some factors that influence both energy consumption and performance, which should be taken into account are described below. Tracking multiple GNSS constellations increases the number of visible satellites, improving position reading. However, the sensor spends more time in the satellite signal acquisition phase, increasing energy consumption. A strategy to apply in this situation, which could save energy, is to select the constellations according to the known geographic location. The antenna type and placement also have an impact on acquiring good results and on power consumption. Active antennas utilize a low noise amplifier (LNA), which amplifies low-power RF signals and minimizes the added noise, advantageous in challenging environments where the satellite signals are weak. The amplifier needs sufficient gain to boost the signal, which increases power consumption. A solution for a low-power end-device that requires a high performance (position availability and accuracy) is to choose to use a large passive antenna, the size of the end device must be evaluated. The update rate significantly affects power consumption and must be appropriate for the use case. Continuous tracking has the highest power consumption, while low update rates (e.g. one position reading per minute, hour, or day) have the lowest. For low update rates, the receiver must be configured to enter power save mode between position readings, reducing power consumption. The PSM feature is, generally, only available in advanced GNSS receivers. The On/Off operation in the absence of the saving mode feature may be the only choice to save energy between low update rates, although, switching the device off implies a cold start in the next on cycle, which raises the time to first fix (TTFF) and, thus, the power consumption. To shorten the TTFF an assisted GNSS service can be used, which provides ephemeris, almanac, and accurate time and satellite status correction data for the satellite systems [46]. 19
Chapter 3 System Specification This dissertation focuses on creating a custom end-device solution for determining the position of a UAV in crash scenarios. The solution must be able to accurately determine the UAV’s location and transmit this data promptly to the data server, providing critical information for the recovery operation. Considering the weight and power limitations that are crucial in UAV applications, the end-device solution must have a compact form factor and low-power consumption. This makes it an ideal solution for determining the position of UAVs in crash scenarios. Functional Requirements: • Ability to determine the end device’s position • Capability to transmit position data to a data server Non-Functional Requirements: • Compact form factor • Low power consumption 3.1 Hardware Specification This master’s dissertation involves the analysis and implementation of two systems: the GNSS receiver and modem integrated solution - System on Chip Architecture; and an independently designed NB-IoT module and GNSS receiver ICs - Stand-alone Architecture. As a result, two hardware systems were developed and evaluated. The System on Chip Architecture is a novel solution, while the Stand-alone Architecture is a redesign of the original LINK4S architecture, refer to [34] and [47], with the addition of a GNSS receiver and antenna. In order to ensure a thorough comparison of results, the sensor subsystem of the original LINK4S architecture was replicated in the System on Chip Architecture. 20
CHAPTER 3. SYSTEM SPECIFICATION The two hardware architecture solutions shown in Figure 7have similar subsystems: the Sensors subsystem includes all of the system’s sensory hardware; the Power Module subsystem provides power to all hardware components and protects electronic circuits; the LPWA Communications subsystem includes the modem and antenna; and the CPU subsystem integrates the Sensors and LPWA Communications subsystems through GPIO pins and communication protocols. Sensors Power Module LPWA Communication GNSS receiver CPU System on chip Sensors Power Module LPWA Communication GNSS receiver CPU Stand alone architecture System on chip architecture Figure 7: Hardware diagram block of the two solutions The two solutions present other similarities too, the CPU and some of the sensors are the same, as well as a few electronic circuits, which allows a reliable comparison of the test results of the two systems. 3.1.1 System on Chip Architecture Solution This section presents a comprehensive analysis of the hardware architecture of the System on Chip (SoC) Solution, depicted in Figure 8. This analysis explores the various components of the system, providing a detailed understanding of its characteristics, features, and functional modes. 21
CHAPTER 3. SYSTEM SPECIFICATION Sensors CPU LPWA Communications and GNSS sensor Power Module Temperature and Humidity Accelerometer Battery Arm Cortex M0+ BG95-M3 Passive Antennas UART I2C LDO 1.8V 1.8V 3.6V Luminosity HDC2080 APDS-9306-065 BMA400 Sa LSH20 3.6V TPS7A02 STM32L081KZ Figure 8: System on Chip Architecture Solution Hardware Architecture Sensors Subsystem The Sensors Subsystem includes a Temperature and Humidity Sensor, a Digital Ambient Light Sensor, and an Acceleration Sensor, all the sensors have interrupt capabilities. The end-device solution provided is a battery-operated system, therefore several considerations must be addressed during the sensors selection, to achieve low power consumption. Preference must be given to solutions with features of power-saving modes and interrupts, which allow alerting for critical events, minimizing the operation time of the host MCU. •Humidity and Temperature Sensor - HDC2080 The HDC2080 is a low-power Humidity and Temperature Digital Sensor with high accuracy measurements and very low power consumption(50nA in deep sleep) and size, providing an I2C interface. The sensor includes interrupt thresholds along with programmable sampling intervals. The HDC2080 presents two modes of operation: Sleep Mode and Measurement Mode. The sensor remains in Sleep Mode until a measurement is triggered, at which time it switches to Measurement 22
CHAPTER 3. SYSTEM SPECIFICATION Mode. In the Measurement Modes, the sensor converts the temperature or humidity values and stores the information in its respective data registers. The sensor presents two types of measurement modes: Trigger on Demand and Auto Mode. Trigger on Demand is when each measurement reading is initiated through an I2C command. Auto Measurement Mode is when the HDC2080 is programmed to perform measurement readings on a periodic basis, based on the selected sampling rate, thus eliminating the need to initiate a measurement request through an I2C command and improving power consumption. In Table 1, are presented the sensor’s operating characteristics and power consumption. Table 1: Operating Characteristics and Power Consumption of the Humidity and Temperature Sensor Operating Characteristics Parameter Symbol Min. Typ. Max. Units Supply Voltage 𝑉𝐷𝐷 1.62 3.6 V SCL,SDA Input High Voltage 𝑉𝐼𝐻 0.7𝑉𝐷𝐷 𝑉𝐷𝐷 V SCL,SDA Input Low Voltage 𝑉𝐼𝐿 0.3𝑉𝐷𝐷 V Power Consumption Mode Sampling Rate (Hz) Supply Current (uA) Test Condition Sleep Mode - 0.05 1 - - 650 890 Humidity Measurement Mode - 550 730 Temperature 1 0.3 Hum. or Temp. 1 0.55 Hum. and Temp. 0.5 0.3 Hum. and Temp. Measurement Mode whit Auto Mode 0.1 0.105 Hum. and Temp. •Ambient Light Sensor - APDS-9306-065 The sensor subsystem of the original LINK4S architecture was replicated in the System on Chip Architecture, with the exception of the light sensor. There was no stock available for the original light sensor, so a similar ambient light sensor (APDS-9306-065) was selected instead The sensor APDS-9306-065 is a low voltage Digital Ambient Light Sensor that presents a human eyes spectrum response, with a low lux performance of 0.01 lux, up to the 20-bit resolution, low active current, and a small package. It has two functional modes, Standby Mode and Acquisition Data. During the Standby Mode, all the sensor’s internal blocks are powered off, except the I2C communication, which is fully supported. Through the I2C communication, a command to perform an acquisition is sent and the sensor shifts to the Acquisition Data mode. The sensor supports a programmable interrupt, associated whit a specified digital pin, that can function as either threshold triggered or variance triggered. The threshold triggered is set when the acquisition data is upper or below-established values for a specified number of consecutive 23
CHAPTER 3. SYSTEM SPECIFICATION measurements. On the other hand, the variance triggered is set when the absolute value of the difference between previous and current acquisition data is above established values for a specified number of consecutive measurements. The table 2, indicates the sensor’s operating characteristics and power consumption. Table 2: Operating Characteristics and Power Consumption of the Ambient Light sensor Operating Characteristics Parameter Symbol Min. Typ. Max. Units Supply Voltage 𝑉𝐷𝐷 1.7 3.6 V SCL,SDA Input High Voltage 𝑉𝐼𝐻 1.5 𝑉𝐷𝐷 V SCL,SDA Input Low Voltage 𝑉𝐼𝐿 0 0.4 V Power Consumption Mode Supply Current Acquisition Data 𝐼𝐷𝐷 85 uA Standby Mode 𝐼𝑆𝑇𝐵𝑌 2 uA •Acceleration Sensor - BMA400 The BMA400 is an ultra-low power acceleration sensor, whit 12-bit digital resolution, continuous measurement, defined selectable bandwidth, and I2C interface, and allows low-noise measurement of accelerations in three perpendicular axes. The sensor can sense tilt, orientation, and tab/double tab. Additionally, the sensor can trigger an interrupt at certain selectable events which can be mapped to the selectable interrupt pins. The sensor presents three power modes: sleep, low power, and normal modes. In Sleep Mode, data conversions aren’t possible, the current consumption is 200nA. In Low Power mode, data conversion occurs with a fixed rate of 25Hz, the current consumption ranges between 800nA and 1200nA depending on the performance setting. In normal mode, output data rates are between 800Hz and 12.5Hz. The table 3, indicates the sensor’s operating characteristics and power consumption. LPWA Communication Subsystem The LPWA Communication and GNSS receiver Subsystem is responsible for transmitting the data, generated by the sensors, along with the reception of configuration commands from the user. Additionally, regarding the System on Chip Architecture Solution, the subsystem includes the GNSS receiver too. These systems must be equipped with antennas for the reception of the required signals. BG95-M3 module is part of the BG95 Quectel family, a series of multi-mode LPWA modules supporting LTE Cat M1/Cat NB2/EGPRS and integrated GNSS receiver. It is 3GPP Release 14 compliant and offers maximum data rates of 127 kbps downlink and 158.5 kbps uplink under NB-IoT protocol. 24
CHAPTER 3. SYSTEM SPECIFICATION Table 3: Operating Characteristics and Power Consumption of the Acceleration sensor Operating Characteristics Parameter Symbol Min. Typ. Max. Units Supply Voltage 𝑉𝑑𝑑 1.72 1.8 3.6 V SCL,SDA Input High Voltage 𝑉𝐼𝐻 0.7𝑉𝐷𝐷 V SCL,SDA Input Low Voltage 𝑉𝐼𝐿 0.3𝑉𝐷𝐷 V Power Consumption Mode Sampling Rate (Hz) Power Consumption (nA) Sleep Mode no data conversion 200 Low Power Mode 25 800 to 1200 Normal Mode 800 to 12.5 >3500 Includes a SIM card and two antennas interfaces to perform the LPWA communication and receive the GNSS signal. To exchange data with a host it features three Uarts: the Main Uart for data transmission (using AT commands), GNSS Uart for GNSS data and NMEA sentences output, and Debug Uart for software debugging and log output. It has a USB 2.0 interface, used for firmware upgrades. The BG95 contains several operating modes: •Normal Mode - Connected, in this mode the network has been connected. The power consumption may vary with the network settings and the data transfer rate established; •Normal Mode - Idle, the software is active. The module remains registered on the network, and it is ready to send and receive data; •Extended Idle Mode DRX (e-I-DRX), is a sleep mode that allows the UE to receive downlink data for short periods of time; •Sleep Mode, the current consumption of the module will be reduced to a lower level when compared to idle mode. During this mode, the module can still receive paging messages, TCP/UDP data from the network normally, since when BG95-M3 has URC to report, the main ring indicator (MAIN_RI) signal will wake up the host; •Power Saving Mode (PSM) is similar to power-off, but the module remains registered on the network and there is no need to re-attach or re-establish PDN connections. Quectel BG95-M3 module integrates the multi-GNSS engine, which supports GPS, BeiDou, Galileo, GLONASS, and QZSS constellations, with XTRA Assistance. The GNSS engine can receive simultaneous signals from a maximum of two constellations (GPS and another constellation) at any given time. The module is based on a cost-optimized architecture in which WWAN (LTE Cat-M1, LTE Cat-NB2 and GSM) and GNSS Rx chains share certain hardware blocks. However, the modules do not support the concurrent operation of WWAN and GNSS. The solution adopted in the module is a form of coarse time-division 25
CHAPTER 3. SYSTEM SPECIFICATION multiplexing (TDM) between WWAN and GNSS Rx chains. Given the relaxed latency requirements of most LPWA applications, time-division sharing of resources can be made largely transparent to applications. The GNSS receiver has two modes of operation. In continuous tracking mode, the GNSS receiver runs continuously and acquires position at a fixed rate of 1 Hz after the module is turned on. In the other mode, the position is acquired each time specific AT commands are sent. Table 4, specifies the module supply voltage and power consumption for the different operation modes. Table 4: BG95-M3 Operating Characteristics and Power Consumption Operating Characteristics Parameter Symbol Min. Typ. Max. Units Supply Voltage VBAT 3.3 3.8 4.3 V Power Consumption Mode Test Condition Supply Current LTE CAT NB1 e-I-DRX = 81.92 s PTW = 20.48 s DRX = 2.56 s 0.81 85 mA Sleep Mode LTE CAT NB1 DRX = 1.28 s Paging = 24 ms 1.56 80 mA PSM 3.9 uA GNSS off Under Cat NB1 network 40 mA GNSS on & LTE off Searching (Cold start) 71 mA Active State GNSS on & LTE off Tracking 55 mA •GNSS Antenna - SRFG017 The SRFG017 is a high-performance passive GNSS antenna with a direct connection to the host PCB. A key parameter is the transmission frequency, the antenna must operate in an appropriate frequency range for the GNSS signals expected to be received. Different GNSS constellations operate at different frequencies and in different bands, in particular, GPS from 1560 to 1590 MHz, GLONASS from 1598 to 1605 MHz, BeiDou from 1559 to 1563 MHz, Galileo from 1558 to 1592 MHz, and QZSS from 1560 to 1590 MHz (only civil use, frequencies for military purposes, aviation, and rescue service applications not present). The SRFG017 antenna covers a GNSS reception from 1559 to 1609 MHz, which encompasses all operating frequencies of the satellite constellations. 26
CHAPTER 3. SYSTEM SPECIFICATION The GNSS tracking device requires a small and flexible antenna, moreover, the antenna must be able to send and receive signals whatever their orientation - whether it is horizontal, vertical, or resting diagonally - thus an omnidirectional antenna must be chosen in opposition to a dipole antenna, which is the case. MCU Subsystem The MCU subsystem is responsible for configuring the sensors and the modem, collecting the sensor data, transmitting it to the cloud, and receiving commands from the cloud. The STM32L081KZ is an ultra-low-power microcontroller that integrates an ARM® Cortex®-M0+ 32- bit RISC core operating at a 32 MHz frequency, a memory protection unit (MPU), high-speed embedded memories (up to 192 Kbytes of Flash program memory, 6 Kbytes of data EEPROM and 20 Kbytes of RAM). The MCU includes a vast number of analog features, one 12-bit ADC with hardware oversampling, two ultra-low-power comparators, AES, several timers, one low-power timer (LPTIM), four general-purpose 16-bit timers, and two basic timers, additionally offers one RTC and one SysTick that can be used as timebases. Regarding the communication interfaces, the STM32L081KZ presents three I2Cs, two SPIs, four USARTs, and a low-power UART (LPUART). The STM32L081KZ is part of the ultra-low power STM32 series, so various low-power modes are available, these follow: •Sleep mode only the CPU is turned off, peripherals continue to operate and wake up the CPU when an interrupt/event occurs; •Low-power run mode, in this mode several internal blocks functions are set at minimal conditions, namely, the clock frequency is limited and the number of enabled peripherals; •Low power sleep mode is identical to sleep mode, additionally, in this mode, the internal voltage regulator is set to low power mode, and the clock frequency and the number of enabled peripherals are limited; •Stop mode all clocks are stopped, yet the Low-Speed External Crystal (LSE) and Low-Speed Internal RC (LSI), which can be set to clock the RTC, can be allowed to run. Any GPIO can wake up the device from stop mode. This mode presents the lowest power consumption while state preservation (RAM and register); •Standby mode is similar to the stop mode, although the state is not preserved, the internal voltage regulator is turned off and just some events can wake up the device from this mode. Table 5, indicates the MCU’s operating characteristics and power consumption. 27
CHAPTER 3. SYSTEM SPECIFICATION Table 5: STM32L081KZ Operating Characteristics and Power Consumption Operating Characteristics Parameter Symbol Min. Typ. Max. Units Supply Voltage 𝑉𝐷𝐷 1.65 3.6 V Input High Voltage 𝑉𝐼𝐻 0.7𝑉𝐷𝐷 V Input Low Voltage 𝑉𝐼𝐿 0.3𝑉𝐷𝐷 V Power Consumption Mode Sleep Mode <37 uA/MHz Low-Power Run mode <8 uA Low-power Sleep mode <4.5 uA Stop Mode whit RTC : <0.8 uA whitout RTC : <0.4 uA Standby Mode whit RTC : <0.65 uA whiout RTC : <0.28 uA Power Module Subsystem The LSH20 is a Lithium-thionyl chloride battery from Saft that offers several benefits over other Lithium chemistries, such as a higher energy density, higher capacity, and a lower self-discharge rate. The selfdischarge rate of a battery is an important factor in determining its lifespan, as it impacts the energy usage of the device. Therefore, it is essential to choose a battery with a low self-discharge rate to maximize its lifespan. Among all the hardware components in the end-device, the BG95-M3 module stands out with its high power supply requirement. It has a peak current of 1.8A, which was taken into consideration. While the rest of the components typically operate at a power supply of 1.8 V, the BG95-M3 module requires a minimum of 3.3 V and typically 3.8 V. To meet this power supply requirement, a suitable battery was chosen. Lithium-thionyl chloride batteries are known for their higher voltage compared to other lithium batteries, typically ranging around 3.6 V. Therefore, the LSH20 battery, which has a nominal voltage of 3.6 V, was selected for this device. This choice ensures that the power needs of the BG95-M3 module are adequately met within the overall power module system. Table 6, indicates LSH20 Characteristics. Table 6: LSH20 Characteristics Nominal voltage 3.6 V Nominal capacity 13.0 Ah Max. continuous current 1.8 A Max. pulse discharge rate 4.0 A Cell size D 28
CHAPTER 3. SYSTEM SPECIFICATION PAx PAx PAx PAx LPUART_TXD UART_TXD PWKEY RESET_N PON_TRIG PSM_TRIG MAIN_UART_RXD GNSS_UART_RXD ANT_MAIN ANT_GNSS VMODEM GND RESET_N GPIO1 PWKEY STATUS NET_STATUS USIM_GND USIM_VDD INT PAx Ambient Light Sensor CPU BG95-M3 Control Circuit Test Points Status Indication DEBUG_UART VDD_EXT VBAT_RF VBAT_BB 3.6v USIM_CLK USIM_DATA USIM_RST SIM Card connector MAIN_UART_TXD LPUART_RXD GNSS_UART_TXDUART_RXD GND GND SCL SDA SCL SDA GND VDD 1.8V Figure 11: Complete Block Diagram of System on Chip Architecture solution 3.2.2 Stand-Alone Architecture Solution The Stand-Alone Architecture solution adds to first LINK4S architecture an U-Blox GNSS receiver and a corresponding antenna. Two different versions were developed, one with a passive antenna and the other with an active antenna. The different blocks that were considered during this redesign are shown in figure 12. CPU I/O ports Test Points Communication Protocol RF antenna Power Supply NEO-M8M-0 Vcc LINK4S First Architecture Figure 12: High level Block Diagram of Stand-Alone Architecture solution Follows a brief overview of each functional block. Power Supply U-Blox NEO-M8 series modules has three power supply pins: VCC, V_BCKP, and VDD_USB. The VCC pin provides the main supply voltage. The V_BCKP pin supplies the real-time clock (RTC) and battery-backed RAM, in case of main supply power failure. This backup source allows continuous operation of the RTC clock, which provides a time reference to the receiver, and saves specific data to backup RAM, 35
CHAPTER 3. SYSTEM SPECIFICATION even with parts of the receiver turned off, allowing a hot or warm start later.The VDD_USB supplies the USB interface. The backup battery has not been implemented. According to the U-Blox hardware integration manual in case of not using a backup battery, the V_BCKP pin must be connected to the VCC pin. Since the USB interface is not implemented the VDD_USB pin must be connected to GND. The first LINK4S architecture incorporates a power system consisting of a battery with a nominal voltage of 3.0 V and a low-drop regulator providing an output voltage of 1.8 V. While the GNSS receiver supports operation with either a 1.8 V or 3.0 V power supply, the MCU can only recognize a low-level input voltage of up to 0.3 𝑉𝐷𝐷, resultant in 0.54 V as the MCU’s 𝑉𝐷𝐷 is 1.8 V. If the GNSS receiver were powered by a 3.0 V supply, the maximum low-level I/O voltage would be 0.9 V, significantly exceeding the MCU’s recognized low-level voltage threshold. To ensure compatibility with the MCU’s requirements, the GNSS receiver is powered by a 1.8 V voltage supply. Communication Protocol Communication protocol between the MCU and the receiver is a standard serial input (UART), with serial interface pins RxD and TxD, whose output and input levels are from 0v to VCC, 1.8 V. I/O pins GNSS receiver features several pins, each with distinct functions. Accordingly, to the purpose of the pins and the system requirements, the pins selection was made. The table below lists the selected pins and provides a brief description based on the data sheet. Table 12: Selected Pins Pin Name Description RESET_N input only pin, when driving low resets the GNSS receiver EXTINT allows control the PSM operation externally, decide when to wake up the receiver to obtain a fix and when to force the receiver into sleep/backup mode to save power SAFEBOOT_N reserved for future service, updates, and reconfiguration D_SEL interface selector The SAFEBOOT_N and D_SEL pins are not connected to the MCU. At startup, D_SEL select which data interfaces are used for communication. To select the UART, D_SEL pin must be left open. For future services the SAFEBOOT_N pin must be accessible, so this pin is connected to a header connector. Test Points The u-blox hardware integration manual recommends providing access to the UART pins and the SAFEBOOT_N pin. 36
CHAPTER 3. SYSTEM SPECIFICATION RF Antenna Two antennas, one passive and one active, are used to compare their performance and energy consumption. A PCB is implemented and manufactured for each antenna. As both antennas have a different composition, each requires a different RF circuit. However, the circuit has in common the RF_IN pin of the GNSS receiver. This is the GNSS signal input from the antenna. The connection to the antenna is routed on the PCB, it connects the RF_IN pin to the antenna connector. After previous analysis, it is possible to complete the block diagram of figure 12, with the selected pins, the chosen communication protocol, and the power supply to be used, resulting in the block diagram of figure 13. PAx UART_TxD EXTINT RESET_N UART_RxD RF_IN UART SAFEBOOT_N VCC V_BCKP CPU NEO-M8-0 Test Points 1.8v PAx UART_RxD UART_TxD GND GND Figure 13: Complete Block Diagram of Stand-Alone Architecture solution 37
CHAPTER 3. SYSTEM SPECIFICATION 3.3 Software Specification This master dissertation employs the LINK4S software developed in [34] and [47]. The following section presents a summary of the software architecture, with an emphasis on the elements that are most pertinent to this dissertation. The software stack depicted in Figure 14 developed in [47] consists of six layers: Hardware, Azure RTOS ThreadX, HAL Wrapper, External Peripherals HAL, Middleware, and Application. Figure 14: System software stack [47] The Full System Hardware Abstraction Layer (HAL) consists of two parts: the HAL Wrapper and the External Peripheral HAL. The HAL Wrapper acts as a generic interface for the application, while the External Peripheral HAL contains drivers for peripherals that are external to the microcontroller unit (MCU), such as the modem and various sensors. By encapsulating external modules in the External Peripherals HAL, it is possible to conveniently add new modules to the end device by including them in this layer, which offers a certain level of abstraction. The Middleware is composed of modules that allow the application layer (the layer above) to control and access the lower layers. These include the Commands module, which modifies application parameters, like the sampling frequency of sensors, based on commands received from the cloud; the Trace module monitors the application during the development phase; the OTA (Over-the-Air) module, responsible for processing and managing firmware updates from the cloud; the Communication module, handling both transmission and reception as well as managing the modem and cryptography; and the System Control module, handles RTOS low-power modes and refreshes the RTC (Real-Time Clock) time. The Application Layer is responsible for managing the system’s specific functions and features. It operates using a single thread. It begins by waiting for communication initialization to complete, enabling the 38
CHAPTER 3. SYSTEM SPECIFICATION Real-Time Clock (RTC) and initializing the sensors. Afterward, the thread enters the Send and Application Error Handling Loop, where the former is triggered to send a new message to the cloud, while the latter handles any transmission errors and ensures uninterrupted system operation. These messages include configuration updates, emergency alerts, regular updates, and command responses. The configuration datagram contains essential system information, while the regular datagram includes signal quality and sensor variable samples, the emergency datagram includes the emergency trigger event and variable samples subsequent to the trigger. Lastly, the command response datagram serves as a response to a command received from the cloud. New Additions to LINK4S Software In this master’s dissertation, some modifications were made to the existing software. One of these developments involved replacing the LINK4S modem module with the BG95-M3 modem and introducing the ability to communicate using LTE CAT-M1. Another addition was the creation of a GNSS module in the external peripheral Hardware Abstraction Layer (HAL), accompanied by the implementation of an algorithm for the coexistence of the Modem and GNSS receiver System on a Chip (SoC) architecture, along with lowpower strategies. Furthermore, the communication module was expanded to support the transmission of float datagram objects. 3.4 Software Design 3.4.1 Modem Module Modem Driver The Modem Driver includes two types of functions: those that are related to the exchange of AT commands between the MCU and the modem to configure operational settings and network configurations, handle TCP/IP process, and manage Unsolicited Result Codes, and those that focus on managing hardware procedures necessary for powering the modem on and enabling it to wake up from power-saving mode (PSM). A significant aspect of this dissertation involves replacing the existing BC66 module with the BG95-M3 module, both manufactured by Quectel. While the general functionality and operating procedures are similar, there are differences in the AT commands and TCP/IP process. Therefore, the LINK4S Modem Module underwent modifications to replace the BC66 module with the BG95-M3 module, ensuring compatibility and enhancing the capabilities of the Modem Driver. As part of the modem design process to replace the BC66 module, an in-depth analysis of the Modem Driver functionalities and an understanding of the operational characteristics of the BG95-M3 module must be conducted to ensure the proper configuration and control of the new module. 39
CHAPTER 3. SYSTEM SPECIFICATION Regarding the hardware procedures associated with the BC66 and BG95-M3 modules, these procedures encompass critical operations such as turning on, waking up from Power Saving Mode (PSM), and resetting the modem. Table 13 summarizes the key differentiations in hardware procedures between the two modules. By considering these hardware procedures and their variations, the modem design can be effectively adapted to accommodate the BG95-M3 module. Table 13: BC66 and BG95-M3 modules hardware procedures BC66 Module BG95-M3 Module GPIO Pin 7 Pin 15 Turn On Procedure Low for at least 500 ms Low for 500–1000 ms GPIO Pin 19 Pin 96Wake up from PSM Procedure Falling edge Rising edge GPIO Pin 15 Pin 17 Reset Procedure Low for at least 50 ms Low for 2–3.8s To seamlessly integrate with the BG95-M3 module, a thorough examination of the Modem Driver’s functions and their corresponding AT commands is crucial. This analysis enables understanding the mapping between the BC66 module’s functionalities and the specific commands and configurations required by the BG95-M3 module. It is important to note that while some AT commands may have the same name in both modules, they can have different parameters. Additionally, certain AT commands that are the same in both modules may have different maximum response times, requiring appropriate adjustment of timeout durations in the Modem Driver. Furthermore, the response format for each command varies between the two modules, requiring modification of the parsing functionalities and event flags in the Modem Driver to correctly interpret and handle the new command responses received from the BG95-M3 module. Certain functions in the Modem Driver are straightforward to modify, while others involve greater complexity. For example, the AT command to query the real-time clock (RTC) and its maximum response time are the same for both modules, although the command response differs, as shown in Table 14. Consequently, the parse function datetimeParse_sie needs to be adjusted accordingly. Table 14: Modules response to AT+CCLK? command BC66 Module BG95-M3 Module Response +CCLK: yyyy/MM/dd,hh:mm:ssGMT±zz OK +CCLK:“yy/MM/dd,hh:mm:ss±zz” OK However, functions like configModem_e() encompass multiple AT commands with distinct functions, requiring a deeper understanding. Table 15 provides a comprehensive overview of the specific configurations required for the BG95-M3 module, considering both the existing configuration and the specific needs of the BG95-M3 module. 40
CHAPTER 3. SYSTEM SPECIFICATION Table 15: BG95-M3 Configurations Summary Configuration Echo Mode Disable Error Message Format Enable result code and use numeric values Power Saving Mode Setting Requested Periodic TAU: 3 hours Requested Active Time: 6 seconds Configure Whether or Not to Enter Sleep Mode Enable or Disable Define PDP context Packet data protocol type: IP, APN: LINK4S private name Configure the output format of received data data header, data Configure the URC format of TCP/IP buffer access mode Set when the module receives data, the data length will be added to the URC Band Configuration NB-IoT frequency band: LTE B3 and B20 Configure network category to be searched under LTE RAT NB-IoT Configure RAT searching sequence NB-IoT Configure RAT(s) to be Searched LTE only Connection Manager Expanding the scope of module replacement, it is imperative to address the required adjustments in both the Modem Driver and the Communication Module of the Middleware. While the Modem Driver handles the implementation of specific functionalities, the Communication Module orchestrates the state machine, responsible for managing critical aspects such as modem initialization, configuration, server connection, and error handling. The state machine in Figure 15, developed in [47], is implemented in the connectionManagerThread to properly control the modem and handle failed states. If a state returns a failure, the MCU is forced into a sleep state, and the state is repeated. If the failure persists after a certain number of attempts, the system will revert to a previously successful state. 41
CHAPTER 3. SYSTEM SPECIFICATION Figure 15: State machine of the connection manager thread, developed in [47] The state machine consists of six states: • Initialization – Verifies if the modem is alive, and attempts to recover it if necessary; • Configuration – Determines if the modem requires any configurations and enables the modem’s connection to the network if necessary. It then waits until the connection is established; • Check Network Connection – Verifies that the modem is connected to the network and sets the low-power savings configurations for the modem; • Check Server Connection – Sends a ping to the server to determine if a connection can be established; • Open Socket – Establishes a socket connection with the server if no socket is currently open; • Wait for error – Waits for a signal indicating an error in communication; In this dissertation,the Connection Manager state machine (Figure 15) was adapted: the Check Server Connection state was replaced by the Activate PDP state, and the Open Socket and Wait Error were modified to accommodate the distinct TCP/IP procedures of the BG95-M3 compared to the BC66 module, as it can be seen in the Figure 16. 42
CHAPTER 3. SYSTEM SPECIFICATION Check Network Connection Configuration Initialization Activate PDP Open Socket Wait for error modem initialized t x t PDP deactivate unsuccess send error z t y t t m m t z t get datatime error y t x x Modem configured and connected to the network y Modem connected to network and set its power saving configurations z Activate PDP context m Open socket t While last state was successful and curren state tries < climb state limit Figure 16: New Connection Manager State Machine The new state machine depicted in Figure 16 incorporates the following modifications: • Activate PDP – This state initiates the activation of the PDP context that was previously configured in the configuration state. If the activation process encounters an error or the module does not respond within 150s, the PDP context is deactivated. In case of successful deactivation, the state is repeated until reaching the maximum number of tries. If the deactivation process fails, the module must be rebooted. Upon successful activation of the PDP context, the next state is the open socket state; • Open Socket – This state opens a socket service. If a response is not received within 150s, the connection is closed. If the connection fails to open for consecutive times, the PDP context is deactivated and then reactivated before attempting to open the connection again. If the process still fails, the previous state is resumed; • Wait for error – This state monitors for signals indicating an error in communication. If a send error occurs, the socket is closed and the previous state is resumed; 43
CHAPTER 3. SYSTEM SPECIFICATION LTE CAT-M1 Communication Integration Lastly, an important addition to the Modem Driver is the incorporation of LTE CAT-M1 communication capability, which extended coverage, and support for a wider range of connectivity options, further enhancing the end-device versatility and compatibility with modern IoT networks. The following enumeration lists the procedures for configuring the LTE settings on the BG95-M3 module: 1. Specify Frequency Bands: Define the frequency bands that the modem will operate and search for available networks 2. Set Network Category: Specifying the type of cellular network technology that should be used, such as LTE or GSM 3. Specify Allowed Radio Access Technologies (RATs): This involves specifying the supported RATs, such as LTE, GSM, or eMTC, which the modem can use to establish a connection with the network 4. Specify the Network Category to be Searched under LTE RAT: Define either eMTC, NB-IOT, or both. Table 16 illustrates the different configurations required for both technologies. Table 16: NB-IoT and Cat-M1 Configurations NB-IoT CAT-M1 Band Configuration LTE B3 and B20 LTE B20 Configure RAT(s) to be Searched LTE only LTE only Configure RAT searching sequence NB-IoT eMTC Configure network category to be searched under LTE RAT NB-IoT eMTC 3.4.2 GNSS Module NB-IoT and GNSS SoC coexistence The BG95-M3 module architecture incorporates both a WWAN (LTE Cat-M1, LTE Cat-NB2, and GSM) and a GNSS Rx chain, which shares certain hardware blocks. Therefore, the modules do not support the simultaneous operation of the WWAN and GNSS functionalities. To manage this coexistence, the module offers two modes of configuration: WWAN priority mode and GNSS priority mode. • In WWAN priority mode, GNSS positioning requests are only successful when the Radio Resource Control (RRC) is released and the WWAN enters an idle sleep. This ensures that data service is not disrupted by the GNSS operation and that the RRC connection is not impacted. However, this mode does not allow the GNSS to wait for the WWAN to finish its operation before proceeding. 44
CHAPTER 4. IMPLEMENTATION Figure 22: System on Chip Architecture solution Main sheet The power supply scheme presents two voltage sources: 3.6V to power the BG95-M3 baseband and the RF domains, and 1.8V to power the MCU, PON_TRIG circuit, and sensors (Ambient Light, Temperature, Humidity, and Accelerometer). The battery voltage matches the higher supply requirement, and a low-dropout regulator (LDO) is employed to achieve the 1.8V supply. Refer to Figure 23 for a visual representation. BBattery BG95-M3 PON_TRIG MCU 3.6v 1.8v LDO Load Protection SENSORS Figure 23: Power Scheme The power schematic is depicted in Figure 24. The LDO used is a TPS7A02 with an output of 1.8 V 51
CHAPTER 4. IMPLEMENTATION and an input range of 1.5 V to 6.0 V. The design follows the manufacturer’s guidelines, including the use of a capacitor at the input pin to minimize input impedance and another at the output pin to provide the best transient response. In addition to the LDO, the power supply scheme incorporates protective measures against overvoltage and overcurrent conditions. A transient voltage suppressor (TVS) is used for overvoltage protection, and an in-line fuse is included for overcurrent protection. The TVS is placed in parallel with the battery and the load circuit and will clamp the voltage at the output to the rated level within a short time frame. The selected TVS has a maximum reverse working voltage (VRWM) of 5.0 V and a breakdown voltage (VBR) of 6.40 V, which is within the LDO’s input range. A slow-blow fuse with a nominal current rating of 3 A was used with a 75% safety factor taken into account, according to equation 6. 𝐼𝑐𝑖𝑟𝑐𝑢𝑖𝑡𝑚𝑎𝑥 =75%𝐼𝑟𝑎𝑡𝑖𝑛𝑔 ⇔𝐼𝑟𝑎𝑡𝑖𝑛𝑔 = 2𝐴 75% =2.667𝐴≈3𝐴(6) Moreover, reverse polarity protection is a critical aspect of electronic circuit design, as it ensures that the circuit can operate safely in the event of reverse polarity conditions. One way to implement reverse polarity protection is by using a P-Channel Mosfet (PMOS). A PMOS is a type of transistor that is activated when a negative voltage is applied to the gate-to-source and is less than the specified gate-to-source threshold voltage (-0.85V for this particular MOSFET). In this configuration, if the battery is polarized, the PMOS will turn on because 𝑉𝐺𝑆 will be negative and less than the -0.85 V threshold. If the battery is reversed, 𝑉𝐺𝑆 will be higher than the threshold and the PMOS Mosfet will turn off, acting as an open circuit. This allows the P-Channel Mosfet to block any reverse voltage that may be applied to the circuit, protecting it from damage. Hence, the power scheme provides the precise voltage levels required by the system components while also protecting against overvoltage, overcurrent, and reverse polarity conditions, ensuring the system’s safe and reliable operation. 52
CHAPTER 4. IMPLEMENTATION Figure 24: SoC Power and MCU schematic circuits The MCU schematic is depicted in Figure 24. The connections between the BG95-M3 module and the MCU are delimited by a green rectangle. In the BG95-M3 power scheme, it is important to be aware that during burst transmission, the current draw can reach its highest levels, resulting in a voltage drop. To mitigate this issue, an array of bypass capacitors has been added to each voltage subpath, as shown in figure 25. These capacitors help to decrease the voltage drop and ensure stable power for the BG95-M3. One type of capacitor used in this array is a tantalum capacitor, which has a high capacitance and low internal resistance, making it effective for high current demand applications. Furthermore, a TVS diode was placed in parallel to provide a stable power source. 53
CHAPTER 4. IMPLEMENTATION Figure 25: BG95-M3 Power and Module schematic circuits The BG95-M3 module schematic circuit is depicted in Figure 25. The BG95-M3 pins of interest were connected to a port or label design primitive to be available for use on other sheets. The BG95-M3 ’s two power domains, RF and baseband, were connected to the corresponding power supply. The System on Chip Architecture solution features two passive antennas, which do not require to be powered. Therefore, both RF circuits, delimited by green rectangles, consist of a surface mount coaxial connector, to assemble the antenna on the PCB, whose RF signal pin is connected to the ANT_MAIN and ANT_GNSS pins. Additionally, the GNSS and main UART were made available through a header, with EDS protection. Regarding the control circuit block, it consists of interface circuits, which connect the PWKEY,RESET_N, and PON_TRIG pins of the BG95-M3 module to the MCU module, as depicted in figure 26. 54
CHAPTER 4. IMPLEMENTATION CPU Control Circuit BG95 PWKEY RESET_N PON_TRIG PWKEY_MCU RESET_MCU PON_TRIG_MCU Figure 26: Control Circuit Block Diagram The PWRKEY pin controls the power cycle of the BG95-M3 module. If the MCU drives the PWRKEY low for an interval of 500 ms to 1000 ms, the BG95-M3 module is turned on. Otherwise, if the MCU drives the PWRKEY low for an interval of 650 ms to 1500 ms, the module is turned off. Nonetheless, it can also be done by implementing a button directly. It is important to note that the PWRKEY pin operates with inverted logic, meaning a low pulse from the MCU is required, as specified, not a high pulse. To control the PWRKEY status and invert the logic, an open drain control circuit was implemented, as depicted in the schematic of Figure 27. Whenever the MCU applies a high input pulse at the gate (PWRKEY_MCU), it will drive the BG95-M3 PWRKEY pin low, since the drain (PWRKEY ) and source (GND) are shorted. Therefore, BG95-M3 will enter a power-off or power-on operation, depending on its previous states (On or Off), considering that the MCU’s high pulse duration respects the required time. The circuit is composed of an NPN general-purpose transistor and two resistors in an open drain topology. Resistor R11 placed between the gate and the source prevents noise from triggering the transistor, as the gate is connected to the ground through R11, averting it from floating. Lastly, a button has been added to the open drain circuit. The button is parallel to the PWRKEY pin, so when pressed it will short the PWRKEY to ground, initiating a BG95-M3 power cycle operation. It is essential to place a TVS component close to the button for ESD protection, as pressing the key can generate an electrostatic strike from the finger, as well as a parallel capacitor to provide EMS protection and avoids parasitic power cycle operations. 55
CHAPTER 4. IMPLEMENTATION Figure 27: PWRKEY interface schematic circuit BG95-M3 module can be reset by driving RESET_N low for an interval of 2 s to 3.8 s. The circuit is equal to the PWRKEY control circuit, including the open drain driver and the button, as illustrated in schematic of Figure 28. Figure 28: RESET_N interface schematic circuit PON_TRIG pin is used to wake up the module from the PSM state. Unlike the previous ones, is activated high, i.e., when the pin detects a rising edge, the module will be woken up from the PSM state. The control circuit implemented adds to an open drain circuit a P-Channel Mosfet. The open drain circuit allows MCU to trigger the wake-up process, while the P-Channel Mosfet provides the required high voltage to PON_TRIG pin. When the MCU wants to wake up the module from the PSM state, it outputs a high-level signal that closes the transistor. Because the gate of the Mosfet is connected to the collector of the transistor, the 56
CHAPTER 4. IMPLEMENTATION Mosfet is also closed. This allows current to flow from the Mosfet source to the drain, connecting the PON_TRIG pin to a voltage of 1.8 V and waking up the module from the PSM state. Figure 29: PON_TRIG interface schematic circuit Schematic 30 presents the SIM card holder circuit. The SIM card holder and the BG95-M3 module are connected to the corresponding pins. In addition to this simple attribution, some good practices were taken into account to achieve robust performance. Figure 30: (U)SIM card schematic circuit To avoid EMC and preserve the data integrity of the digital lines, a low-pass filter was added to the digital lines to suppress unwanted interference from the communication operating frequency. The cutoff frequency of the RC filter is 219 MHz, calculated in 7, much lower than the lowest operating frequency of 57
CHAPTER 4. IMPLEMENTATION the BG95-M3 communication (LTE-FDD B28 band with an operating frequency of 703 MHz). 𝑓𝑐= 1 2𝜋.22.33𝑝𝐹 =219𝑀𝐻𝑧 (7) Furthermore, an pull-up resistor was included in the USIM_DATA line to improve anti-jamming capability and a bypass capacitor between USIM_VDD and USIM_GND, to reduce as much as possible parasitic behaviors (ripple and noise). Another precaution to take, unlike those already discussed, does not concern digital signals, but the metallic nature of the card holder. The SIM card holder shield must not be floating, the ESD will find an unknown path to the ground, which can cause erratic system behavior and/or system failure. To prevent this, the chassis ground was isolated from the digital ground with a 1 MΩresistor and a 1pF decoupling capacitor, providing a low impedance path that effectively dissipates the ESD to ground rather than allowing it to take an unknown path through the digital circuit. Schematic of Figure 31 shows the Test Point circuit. The selected pins are connected to a header and TVS diodes have been added for EDS protection. Figure 31: Test Points schematic circuit The behavior of NET_STATUS and STATUS is described in Table 18. According to the table, the LEDs should turn on when the pins output a high level, indicating specific states. To implement this functionality, the electrical switch circuit of the schematic in Figure 32 was implemented. Table 18: STATUS and NET_STATUS pins Definition Pin Name Logic Level Description 200 ms High/1800 ms Low (Flicker slowly) Network searching 1800 ms High/200 ms Low (Flicker slowly) Idle 125 ms High/125 ms Low (Flicker quickly) Data transfer is ongoing NET_STATUS Always high Voice calling STATUS Always high BG95 power On 58
CHAPTER 4. IMPLEMENTATION The circuit comprises an NPN general-purpose transistor. When the STATUS and NET_STATUS pins are at a high level, the transistor closes, allowing current to flow from the drain to the source, thereby turning on the LED. To control the current flowing through the LED, a resistor is added to the drain, ensuring it does not exceed 20mA. Figure 32: Status Indication schematic circuit Regarding the Ambient Light sensor, its schematic is depicted in Figure 33, and several design considerations are employed to enhance its performance. Firstly, to optimize the sensor’s overall performance, a bypass capacitor is connected to the VDD pin. Furthermore, the digital pins of the sensor, including the I2C lines, incorporate pull-up resistors to ensure a consistently high level during idle bus conditions. Similarly, the INT pin, which operates as an open drain pin, requires an external pull-up resistor to establish a logic high level for proper operation. Figure 33: Ambient Light sensor schematic circuit 59
CHAPTER 4. IMPLEMENTATION PCB Layout The PCB layout design plays a critical role in the overall hardware implementation, not only it requires a deep understanding of signal integrity, electromagnetics, and other key areas, but also, the specific considerations and techniques addressed are essential to ensure PCB optimal performance and functionality. This section discusses some of the learned techniques and their implementation. The PCB design incorporates a four-layer stack-up. The selected stack-up has a direct impact on the performance and functionality of the PCB. Compared to a two-layer PCB, the additional inner two layers, which are specifically dedicated as ground planes, help prevent electromagnetic interference (EMI) in circuits that involve RF components. The presence of these layers acts as a shielding mechanism, minimizing the impact of external electromagnetic disturbances on the circuitry. Additionally, the ground planes provide a short return signal path, reducing the loop impedance and promoting better signal integrity. This stack-up advantage makes it a popular choice for RF applications. In this PCB, layer L1 (top layer) is employed for signal routing, while layer L4 (bottom layer) is utilized for power connections. The middle layers, L2 and L3, serve as ground planes. Figure 34 identifies the modules that made up layer L1. The battery holder placement is depicted in Figure 35. (U)SIM circuit GNSS Antenna LTE Antenna BG95 Status Indicators Reset and PWRKEY Sensors Hub Flasher and Debuger Microcontroller Figure 34: PCB Bottom View 60
CHAPTER 4. IMPLEMENTATION Figure 43: NEO-M8M-0 power and module schematic circuits During the NEO-M8 operation, the current drawn by the module can vary by some orders of magnitude, when switching from sleep mode to normal operation or at start-up, the module must charge the internal capacitors, which can result in a significant current draw. So it is crucial that the supply circuity is able to support the peak power for a short period of time. An array of bypass capacitors was added on the 𝑉𝐺𝑁𝑆𝑆 power line to provide a local instantaneous charge source. Any I/O signal line can act as an antenna and may pick up arbitrary RF signals transferring them as noise into the GNSS receiver. Additionally, noise generated at the I/O pins may be coupled to the GNSS antenna. The U-Blox hardware integration manual recommends using a resistor on the I/O lines in series. In schematic of Figure 43, 100 Ωresistors were placed in series on the RESET_N,EXTINT and SAFEBOOT_N lines. The UART RxD and TxD lines also have a resistor in series, as shown in schematic of Figure 44. To prevent the pins from floating, a pull-up resistor is inserted in the RESET_N and EXTINT lines. Using a pull-up resistor, the I/O pin will normally be logic high (1.8 V), which is preferable as the GNSS receiver is reset when the RESET_N pin is set to logic low (GND). Schematic of Figure 44 shows the connections of the GNSS receiver I/O ports, EXTINT,RESET and the UART pins to the MCU, delimited by a green rectangle. 67
CHAPTER 4. IMPLEMENTATION Figure 44: Part of MCU schematic with added GNSS receiver I/O ports In accordance with the U-Blox hardware integration manual, it is advised to have access to the UART pins and the SAFEBOOT_N pin. To comply with this recommendation, a header connector is utilized, as depicted in schematic of Figure 45, to establish the necessary connections for these pins. Figure 45: Test Points schematic circuit 68
CHAPTER 4. IMPLEMENTATION •Active Antenna Version The active antenna interface circuit consists of the coaxial RF connector and a Bias circuit. The coaxial cable of the antenna is connected to the PCB through an SMA connector with two pins, the RF output, and the GND, shown in the bottom circuit of Figure 46. Active antennas have a built-in low-noise amplifier that must be powered, but the SMA connector does not have a power supply pin. To solve this, a Bias circuit is used to allow the power supply and RF signal to share the same pin. The Bias circuit takes advantage of the opposite nature of the RF output (an AC signal) and the antenna feed (a DC signal) to allow them to coexist. A capacitor and an inductor are used to separate the AC and DC signals. The inductor (L1) in schematic of Figure 46 blocks the RF signal and allows the DC signal to pass, while the capacitor (C16) in schematic of Figure43 allows the RF signal to pass and blocks the DC signal. Additionally, capacitor C22 in Figure 46 prevents noise from entering the receiver. Figure 46: Active Antenna interface circuit Schematic •Passive Antenna Version Since the passive antenna does not feature a built-in amplifier, there is no need for a bias circuit. The RF circuit is straightforward, primarily comprising a surface-mount coaxial connector to establish the connection between the antenna and the PCB. In schematic of Figure 47, the coaxial connector is connected to the RF_IN pin of the u-blox receiver, denoted by the rectangle. 69
CHAPTER 4. IMPLEMENTATION Figure 47: Passive antenna interface circuit Schematic PCB Layout Figure 48 shows the active antenna version PCB bottom view. The blue rectangle delimits the area added to the first LINK4S architecture solution. Figure 48: Active antenna version PCB bottom view The PCB design of this architecture incorporates the considerations discussed earlier for the systemon-chip architecture. A coplanar waveguide structure was used, with a single ground polygon placed beneath the coaxial connector and surrounded by a large number of ground vias for shielding, depicted in Figure 49. A specific rule for the RF net was defined, setting the trace width to 24 mils to achieve an impedance value as close to 70
CHAPTER 4. IMPLEMENTATION 50 Ohms as possible. In the Active Antenna version, the bias circuit is positioned close to the RF network to minimize the length of the RF net. Coaxial RF connector Bias circuit Coplanar waveguide Schield u-blox GNSS receiver RF input pin Figure 49: PCB layout of Passive Antenna and Active Antenna(bottom layer) Furthermore, the GNSS receiver and its antenna were placed apart from the other RF components such as the modem and MCU, since the antenna needs to be isolated from other high-speed signals, such as clock traces for crystals and other RF signals. Proper placement of the antenna and other RF components is crucial for ensuring the proper functioning of the system. 71
CHAPTER 4. IMPLEMENTATION 4.2 Software 4.2.1 Modem Module Modem Driver The modem driver implementations involve various modifications to the existing functions and mechanisms developed in [34] and [47]. These changes include alterations and additions to previously implemented elements. While the reworks will not be extensively described, as they involve adjustments to existing components, an example of one of the necessary modifications will be presented to provide a clear understanding of the process. To handle the distinction between the BC66 module and the BG95-M3 module regarding the response received after successful data transmission, the Modem Driver underwent the following modifications. In the BC66 module, an OK message is received, while in the BG95-M3 module, a SEND OK message is returned. The function uartMSGsRcvThreadEntry_v in Listing 2, is the responsible thread for receiving data commands from the uart receive IRS through a queue, the thread iterates through the received data, adding each byte to generate a unique key to identify the specific command received. To accommodate the reception of the SEND OK response specific to the BG95-M3 module, a macro SEND_OK_CMD was defined, which calculates the sum of the ASCII characters of the command, illustrated in Listing 1. Additionally, a new event flag send_ok_ef was added to the Modem event flag group. Therefore, when the thread receives this command, it enters the corresponding case and sets the send_ok_ef event flag. Listing 1: Modem event flags enumeration and SEND_OK_CMD declaration 1#define SEND_OK_CMD ('S'+'E'+'N'+'D'+' '+'O'+'K') 2 3enum ModemEventFlags { 4(...) 5send_ok_ef=(0x1<<13), /**< Indicates that modem sent OK */ 6(...) 7}; Listing 2: uartMSGsRcvThreadEntry_v thread 1void uartMSGsRcvThreadEntry_v(unsigned long thread_in_ul){ 2(...) 3while(1){ 4/* Retrieve a message from the queue. */ 5tx_queue_receive(&m_rx_queue, &end_i_u32, TX_WAIT_FOREVER); 6index_u32 = begin_i_u32; 7total_u32 = 0; 8while(m_rx_au8[index_u32] != '\0' && m_rx_au8[index_u32] != ':') { 72
CHAPTER 4. IMPLEMENTATION 9if(m_rx_au8[index_u32] != '\n' && m_rx_au8[index_u32] != '\r') { 10 /* Sum every byte in order to have a unique ”key” so it can be parsed accordingly */ 11 total_u32 += m_rx_au8[index_u32]; 12 } 13 index_u32 += 1; 14 index_u32 &= (M_RX_BUFFER_SIZE - 1); 15 } 16 /* Parse the command received */ 17 switch(total_u32) { 18 (...) 19 case SEND_OK_CMD: 20 if (circStrstr((const char*)m_rx_au8,”SEND OK”, begin_i_u32, M_RX_BUFFER_SIZE) != ↩→NULL){ 21 tx_event_flags_set(&m_eventflags, send_ok_ef, TX_OR); 22 } 23 break; 24 (...) 25 }}} Lastly, the modemSendData_e function, shown in Listing 3, includes the rest of the modifications. To ensure successful transmission, the modem is put into data mode, and the enterDataMode_e function is called. Before the data is sent, the response flags, including send_ok_ef and error_ef, are cleared, then the data is sent using the writeUART_v function. Finally, the functions wait for the SEND OK event flag within a specified timeout period to successfully return. Listing 3: modemSendData_e function 1status_et modemSendData_e(uint8_t socket_u8, uint8_t *data_pu8, uint16_t data_len_u16){ 2unsigned long actual_flags_ul; 3/* Puts the modem into data mode*/ 4if (enterDataMode_e(socket_u8, data_len_u16, 1000) != success) 5return failure; 6/* Clear send_ok_ef and error event flag */ 7tx_event_flags_get(&m_eventflags, send_ok_ef|error_ef, TX_OR_CLEAR, &actual_flags_ul, ↩→TX_NO_WAIT); 8/* Modem is in data mode, is time to send*/ 9writeUART_v(MODEM, data_pu8, data_len_u16); 10 /* Wait SEND OK from data sent*/ 11 if(waitForEventFlag_e(send_ok_ef, SEND_TIMEOUT_MS) != success){ 12 return failure; 13 } 14 return success; 15 } 73
CHAPTER 4. IMPLEMENTATION Connection Manager The code in Listing 4implements the Activate PDP state according to the state machine diagram depicted in Figure 16 of section 3.4.1 . It initiates the activation process by calling the modemActivatePDP_e function. In case the activation is unsuccessful, the code handles the error by deactivating the PDP context. In the event of a successful deactivation, the state is repeated until the maximum number of tries is reached. The function sleepAndChangeStateMachineState_siu8 facilitates the reattempt mechanism, where a sleep operation is followed by an additional attempt to enter the PDP state. If the deactivation process fails, indicating an irrecoverable error, the module requires a reboot. Upon successful activation of the PDP context, the code transitions to the Open Socket state, allowing for further operations to be carried out. Listing 4: Activate PDP state function 1static nextstate_t activatePDP(uint8_t last_state_u8, volatile uint8_t* tries_pvu8){ 2uint8_t next_state_u8; 3if(modemActivatePDP_e() != success){ 4next_state_u8 = S_NETWORK_CNX; 5/* The PDP contex is deactivated sucessfuly */ 6if(modemDeactivatePDP_e () != success){ 7/* Reboot the module if there is no response in 40s */ 8next_state_u8 = S_INIT; 9} 10 if(last_state_u8 == S_NETWORK_CNX || last_state_u8 == S_PDP){ 11 next_state_u8 = sleepAndChangeStateMachineState_siu8(S_PDP, S_NETWORK_CNX, tries_pvu8 ↩→, ping_retry_s_scu32); 12 } 13 return next_state_u8; 14 } 15 *tries_pvu8 = 0; 16 return S_SOCKET; 17 } The function, socketState, in Listing 5, implements the Open Socket state. If the modemOpenSocket_e function returns an unsuccessful status, indicating a failed connection, the connection is closed and enters the sleepAndChangeStateMachineState_siu8 function to perform a reattempt within the Open Socket state. In case of continuous failures to open the connection five consecutive times, the PDP context is deactivated using the modemDeactivatePDP_e function, and the Activate PDP state is resumed. 74
CHAPTER 4. IMPLEMENTATION Listing 5: Open Socket state function 1static nextstate_t socketState(uint8_t last_state_u8, volatile uint8_t* tries_pvu8){ 2uint8_t next_state_u8; 3if(modemOpenSocket_e(_socket_u8, SERVER, REMOTE_PORT, LOCAL_PORT) != success){ 4next_state_u8 = S_PDP; 5/* If failed to get response of AT+QIOPEN in 150s, then close the connection*/ 6if(last_state_u8 == S_PDP || last_state_u8 == S_SOCKET){ 7modemCloseSocket_e(_socket_u8); 8_socket_u8 = (_socket_u8 + 1) % 5; 9next_state_u8 = sleepAndChangeStateMachineState_siu8(S_SOCKET, S_PDP, tries_pvu8, ↩→socket_retry_s_scu32); 10 } 11 /* If failed to open connection for 5 times continuously, deactivate the PDP contex ↩→first, and then re-activate the PDP context and open connection again*/ 12 if(next_state_u8 == S_PDP ) modemDeactivatePDP_e (); 13 return next_state_u8; 14 } 15 *tries_pvu8 = 0; 16 return S_WAIT_ERROR; 17 } Lastly, follows the implementation of the Wait for Error state, in Listing 6. The function waits for event flags related to the communication errors group. Upon receiving the event flags, the actual_flags_ul value is used to determine the type of error. In the case of a send error, the previous socket is closed using the modemCloseSocket_e function, and the state machine transitions to S_SOCKET. If a datetime error is detected, the state transitions to S_NETWORK_CNX. For any other error, the code also closes the previous socket and returns to S_SOCKET. Listing 6: Wait for Error state function 1static nextstate_t waitForErrorState(uint8_t last_state_u8, volatile uint8_t* tries_pvu8){ 2(...) 3tx_event_flags_get(&c_eventflags, cnx_errors_scu32, TX_OR_CLEAR, &actual_flags_ul, ↩→TX_WAIT_FOREVER); 4*tries_pvu8 = 0; 5switch (actual_flags_ul){ 6case send_error_ef: 7/* Close previous socket */ 8modemCloseSocket_e(_socket_u8); 9return S_SOCKET; 10 case datetime_error_ef: 11 return S_NETWORK_CNX; 12 default: 75
CHAPTER 4. IMPLEMENTATION 13 /* Close previous socket */ 14 modemCloseSocket_e(_socket_u8); 15 return S_SOCKET; 16 } 17 } LTE Cat-M1 Communication Integration The configModem_e function configures the Modem, specifically the power-saving mode, GNSS receiver, and LTE communication settings. Regarding the LTE communication configuration, the function uses #ifdef directive to accommodate different LTE configurations based on the chosen technology, whether it be NB-IoT or CAT-M1. For each technology, the function handles the configuration of frequency bands, network categories, and RAT searching sequences using the appropriate AT commands, as specified in Table 16 of section 3.4.1, and depicted in Listing 7. Listing 7: NB-IoT and Cat-M1 Configuration Implementation 1status_et configModem_e(void){ 2(...) 3#ifdef NB_IOT 4/*Configure band*/ 5if (checkRcv_e(”AT+QCFG=\”band\”,0,0,80004,1”,26, 300) != success) 6return timeout; 7/* Set network category: NB-IoT*/ 8if (checkRcv_e(”AT+QCFG=\”iotopmode\”,1,1”,23, 300) != success) 9return timeout; 10 /* Configure RAT searching sequence */ 11 if (checkRcv_e(”AT+QCFG=\”nwscanseq\”,030201”,26, 300) != success) 12 return timeout; 13 #else 14 /*Configure band*/ 15 if (checkRcv_e(”AT+QCFG=\”band\”,0,80000,0,1”,26, 300) != success) 16 return timeout; 17 /* Set network category: eMTC */ 18 if (checkRcv_e(”AT+QCFG=\”iotopmode\”,0,1”,23, 300) != success) 19 return timeout; 20 /* Configure RAT searching sequence */ 21 if (checkRcv_e(”AT+QCFG=\”nwscanseq\”,020301”,26, 300) != success) 22 return timeout; 23 #endif 24 /* Configure RATs to be searched : LTE only */ 25 if (checkRcv_e(”AT+QCFG=\”nwscanmode\”,3,1”,24, 300) != success) 26 return timeout; 27 (...) 76
CHAPTER 5. RESULTS Start Stop Figure 50: Real-world scenario results The test results revealed an initial delay in acquiring position data during the real-world scenario test. The delay occurred because the end-device was powered on in a different geographical area compared to previous instances. As a result, the GNSS receiver had to undergo the acquisition process to establish a connection with the satellites and accurately determine the device’s position, which take additional time. However, once the acquisition process was successfully completed and the receiver established a connection with the satellites, there were no further delays observed during the remaining duration of the route. This is because the GNSS receiver transitioned from the acquisition phase to the tracking phase. In the tracking phase, the receiver continuously tracks the locked satellites signals and keeps pace with their changes, enabling it to consistently acquire and transmit position data without significant delays. Overall, despite the initial delay, the end-device demonstrated reliable performance in acquiring and transmitting position data throughout the rest of the route. 83
CHAPTER 5. RESULTS 5.2 Laboratory Test The laboratory tests aimed to assess the power consumption of the system-on-chip end-device during the operation of the GNSS receiver and data transmission to the cloud. 5.2.1 Test Setup The test setup involved positioning the system-on-chip end device near a window to ensure satellite signal reception for GNSS position data acquisition. The current consumption of the device was monitored using a Keithley 2231A-30-3 Source Measure Unit (SMU), enabling simultaneous sourcing and measurement of current for accurate power consumption data. To accurately measure the current consumption of the specific operation of interest, a GPIO toggle strategy was employed and monitored using the Tektronix MDO3012 Mixed Domain oscilloscope. During the test, the end-device operated with a sampling frequency of 40 seconds. Power Saving Mode (PSM) was enabled, allowing the device to enter a low-power state during idle periods. Additionally, the XTRA assistance feature was enabled. The test setup is depicted in Figure 51, illustrating the positioning of the system-on-chip end-device near the window and showcasing the equipment used - the SMU and the oscilloscope. Figure 51: Laboratory test setup 5.2.2 GNSS Receiver Operation The operation of the GNSS receiver was carefully monitored using a GPIO output pin. At the beginning of each GNSS receiver read sampling function, a GPIO pin was set to a high state, and before each return, it was set to a low state. This approach allowed for precise measurement of the current consumption associated with the GNSS receiver operation. Additionally, another GPIO output pin was used to mark the acquisition of a valid position. Whenever the NMEA returns a valid position, the pin was set to a high state, providing a clear indication of successful position acquisition. 84
CHAPTER 5. RESULTS The current consumption graph of the end device is depicted in Figure 52. The GNSS receiver operation consumption is highlighted by two red vertical lines. By analyzing the current consumption graph, the GNSS receiver operation can be divided into three distinct moments based on the current consumption profile. The first moment, represented by the red average current in the graph, is characterized by the highest current peak. During this period, the GNSS receiver switches to GNSS priority mode, resulting in the highest current peak. Additionally, the modem is turned on. The second moment, represented by the green average current in the graph, is characterized by an increase in average current consumption. During this phase, the end device attempts to acquire its position. Every 2 seconds, an NMEA request is sent to the GNSS receiver, which can be noted by the repetitive pattern on the graph. This pattern is observed nine times, suggesting that it took nine consecutive requests to obtain a valid position. The poor signal quality, resulting from the end device’s close proximity to a window, nearby building structures, and surrounding trees, contributed to the need for multiple attempts to acquire a valid position. Once the position is acquired, the current consumption decreases. The third and final moment, represented by the yellow average current in the graph, corresponds to the switch to WWAN (Wireless Wide Area Network) mode. This transition is characterized by a noticeable drop in current consumption as the end device shifts its operation to WWAN functionality. Figure 52: Current Consumption during GNSS Receiver Operation Table 19 presents the corresponding average current consumption values for the three distinct moments of the GNSS receiver operation. The overall average current consumption of the GNSS receiver sampling operation is 74.99 mA. 85
CHAPTER 5. RESULTS Table 19: Average current consumption of each GNSS receiver operation Operation Average Current (mA) Switch to GNSS mode and turn on the GNSS 55.65 Acquire position 92.48 Switch to WWAN mode 82.44 5.2.3 Data Transmission Operation The current consumption of the Data Transmission operation was analyzed, with a focus on the regular datagram transmission. This particular type of datagram was chosen due to its higher frequency of transmission. To monitor the current consumption profile during the transmission, a GPIO pin was toggled when the communicationSendDatagram_e() function was called. This function is responsible for assembling the datagram and sending it to the cloud. Figure 53 provides the current consumption graph during the regular datagram transmission. The toggle of the GPIO pin, indicated by the two red vertical lines, serves as a marker for the specific zone of interest. Figure 53: Current Consumption during Regular Transmission Upon closer examination of the graph, it becomes evident that there is an increase in current consumption following the highlighted zone. This increase is directly related to the execution of the communicationSendDatagram_e() function. During each transmission operation, this function waits for the return of 86
CHAPTER 5. RESULTS the AT command used to send the data. More specifically, it expects the ”SEND OK”string to be returned. Although it is important to note that the ”SEND OK”response does not guarantee successful delivery to the server, it does indicate that the data has been successfully sent to the modem. Therefore, the area after the highlighted zone in the graph can be attributed to the actual transmission of the datagram. Consequently, this specific region is considered for calculating the average current consumption of the regular datagram transmission operation, to obtain a more accurate representation of the power consumption associated with the data transmission process. The average current consumption during this operation was measured to be 61.85 mA, as indicated by the horizontal line highlighted in the graph. Additionally, the average current consumption of the sleep state is 6.52 mA. 5.2.4 Battery Lifetime Estimation The performance tests and thorough analysis conducted beforehand led to the calculation of the battery lifetime estimation. The estimation of average current consumption is calculated for an entire day using Equation 8, by considering events with higher and predictable frequencies, namely the sampling procedure and regular datagram transmission, along with the sleep state. Conversely, events such as system initialization and emergency datagram transmission, among others, have been excluded from consideration due to their sporadic occurrence and/or unpredictable frequency. Avg_daily =𝐼sampling ·𝑇sampling +𝐼transmission ·𝑇transmission +𝐼sleep ·𝑇sleep (8) By summing up the current consumption of each operation over a day, an estimation of the battery life in days can be obtained by the equation 9, being C the battery capacity. days = 𝐶 Avgdaily (9) The battery lifetime estimation for the end-device considers the practical application of locating a UAV in case of a crash, therefore, to estimate the battery life, it is assumed that the end-device will acquire and send its position every 10 minutes, resulting in a total of 6 position updates per hour. The power consumption values used for this calculation are presented in Table 20. It is worth mentioning that the sampling duration in Table 20 reflects only two request attempts for a valid end-device position. In the test, Section in 5.2.2, the GNSS receiver required more attempts to acquire a valid position. This was due to limitations in the laboratory test, resulting in compromised signal quality and the need for a higher number of attempts to obtain a reliable position fix. 87
CHAPTER 5. RESULTS Table 20: Values for power consumption calculation 𝐼sampling (mA) 74.99 𝑇sampling (h) 18.64·6 3600 𝐼transmission (mA) 61.85 𝑇transmission (h) 22.94·6 3600 𝐼sleep (mA) 6.52 𝑇sleep (h) 24 −18.64·6+22.94·6 3600 The daily average current consumption and battery lifetime were calculated based on the information provided in the previous table and equations. The results of the calculation are presented in Table 21. The daily average current consumption is approximately 160.72 mA/h, and the estimated battery lifetime is about 80.88 days, which is equivalent to approximately 3 months. Table 21: Average power consumption and battery lifetime 𝐴𝑣𝑔daily (mAh/day) 160.72 C (mAh) 13000 Battery Lifetime (days) 80.88 88
Chapter 6 Conclusions and Future Work Conclusions The research problem addressed in this dissertation focuses on the GNSS receivers positioning within the IoT ecosystem. The rapid development of IoT technology, driven by the need for long-range communication, low-power consumption, and affordability, has led to the emergence of GNSS receiver solutions specifically tailored for IoT applications. Within the market landscape of GNSS receiver solutions for IoT applications, two main approaches have surfaced. On one hand, there is the system-on-chip (SoC) architecture, which integrates the GNSS receiver and LTE technology. This approach offers the advantage of reducing size and cost by sharing hardware resources. However, the integration of hardware resources can introduce competition between communication and GNSS receiver operations, potentially impacting the overall performance of the system. On the other hand, there are GNSS receiver stand-alone solutions that are specifically designed with powersaving features for IoT applications. These stand-alone solutions provide dedicated hardware for GNSS positioning and offer the advantage of optimized performance without resource conflicts. The main objective of this dissertation is to evaluate and compare the advantages and limitations of the system-on-chip architecture and stand-alone solutions for GNSS receiver positioning considering the IoT requirements. Aiming to provide valuable insights into the optimal choice for IoT applications based on their specific use cases. The research methodology employed in this study involved several key steps to address the dissertation problem. Firstly, a state-of-the-art research was conducted to identify the main developments and available solutions in the GNSS receiver market for IoT use cases. Subsequently, two distinct systems were developed for comparison purposes. The first system adopted the system-on-chip architecture, integrating the Quectel BG95-M3, while the second system employed a stand-alone architecture that adds to the original LINK4S design - incorporating an ultra-low power modem, Quectel BC66 - an u-Blox NEO-M8M high-performing GNSS receiver. To ensure a fair comparison of results between the two solutions, most hardware components are the same for both systems, except for the light sensor (unavailable during the 89
CHAPTER 6. CONCLUSIONS AND FUTURE WORK development of the SoC Architecture) and the battery, due to the different power supply requirements. The implementation of the stand-alone architecture solution was limited to the hardware level. Therefore, the following test results and conclusions specifically relate to the system-on-chip solution. The research involved two testing approaches: a real-world scenario and laboratory tests. In the realworld scenario, an initial delay in acquiring position data was observed due to the device being powered on in a different location. However, once the acquisition process was completed, reliable performance in acquiring and transmitting position data was observed throughout the rest of the route. In the laboratory tests, the average current consumption of the GNSS receiver sampling operation was measured to be 74.99 mA. During data transmission, the average current consumption was 61.85 mA, while the sleep state presented an average current consumption of 6.52 mA. Based on the average current consumption and assuming position updates every 10 minutes, the estimated battery lifetime of the end-device was calculated to be approximately 3 months. Regarding GNSS receiver performance, can be concluded that the implemented end-device solution demonstrated robust behavior for a use case of mobile asset tracking. It effectively obtained a position fix and accurately tracked the position along the route, seamlessly transitioning to WWAN operation for transmission purposes and back to the GNSS receiver session for acquiring new positions. The achieved GNSS accuracy was found to be sufficient for road-sized applications, ensuring reliable positioning information in relevant industries. The research highlights the impact of resource sharing between the LTE and GNSS receiver domains on power consumption. The switching between these sessions introduces delays and, at times, requires the use of repeat mechanisms for certain operations, which increases the duration of these power-hungry tasks and overall power consumption. Moreover, the sleep state’s current consumption has a more significant impact on the battery lifetime due to its longer duration. Compared to the LINK4S first architecture in [47], which had a sleep current consumption of 4𝜇A, the implemented solution showed a notable difference that heavily impacted battery life. For IoT use cases, sleep current consumption is expected to be in the micro-Amperes range. In the specific use case of this dissertation, where the UAV is rechargeable, the tracking position solution can benefit from the UAV’s recharging capabilities. However, the system-on-chip solution may not be suitable for applications requiring extended battery lifetime without frequent recharging or replacement. 90
CHAPTER 6. CONCLUSIONS AND FUTURE WORK Future Work The primary focus of the future work for this dissertation is to prioritize the software implementation of the standalone architecture solution. While the hardware-level implementation has already been achieved, further efforts are needed to develop and integrate the required software elements. This step is crucial to ensure that the standalone architecture solution is fully functional, enabling a thorough analysis and evaluation of its performance. Once the software implementation is completed, the attention will shift toward analyzing and evaluating the system performance using both active and passive antennas. A comprehensive series of tests must be conducted to compare the signal-to-noise ratio (SNR) of passive and active antennas. This analysis aims to provide insights into the impact of each antenna type on the receiver’s ability to acquire a fix, as well as their respective effects on power consumption. By comparing the results, it will be possible to determine the advantages, disadvantages, and performance differences between active and passive antennas within the context of GNSS receivers. To enhance the findings of the dissertation, more extensive tests can be conducted. These tests will address the impact of assisted GNSS service technology through comparative evaluations, assessing its effects on the time to first fix (TTFF) metric and power consumption. Various sampling periods will be considered to evaluate their impact on the GNSS receiver, providing essential information for optimizing the sampling period and implementing effective power-saving strategies. Additionally, the time required for the receiver to obtain its first fix under different start states (cold, warm, and hot starts) can be measured, offering insights into the receiver’s ability to provide accurate position information within specific time frames. The accuracy of the receiver’s reported position can be assessed by comparing it with ground truth data. Understanding the position error under different conditions is crucial for evaluating the reliability of the developed solutions. Furthermore, recording the number of satellites available for each constellation during the tests will enable the analysis of how satellite availability affects the performance and power consumption of the GNSS receiver. By integrating the results of these analyses into the dissertation’s conclusions, a comprehensive comparison between two emerging solutions in the market—system-on-chip and standalone architectures—can be made. This will provide valuable insights into their suitability for different use cases. The extended tests conducted will improve the understanding of the parameters that have the most significant impact on power consumption and performance. Ultimately, this final work will serve as a valuable guide for integrating GNSS receivers into IoT solutions, offering practical recommendations for optimizing their performance and power consumption. 91
Bibliography [1] S. Kumar, P. Tiwari, and M. L. Zymbler. “Internet of Things is a revolutionary approach for future technology enhancement: a review.” In: Journal of Big Data 6 (2019), pp. 1–21. [2] X. Lin, J. Bergman, F. Gunnarsson, O. Liberg, S. M. Razavi, H. S. Razaghi, H. Rydn, and Y. Sui. “Positioning for the Internet of Things: A 3GPP Perspective.” In: IEEE Communications Magazine 55.12 (2017), pp. 179–185. doi: 10.1109/MCOM.2017.1700269. [3] K. Mekki, E. Bajic, F. Chaxel, and F. Meyer. “Overview of Cellular LPWAN Technologies for IoT Deployment: Sigfox, LoRaWAN, and NB-IoT.” In: 2018 IEEE International Conference on Pervasive Computing and Communications Workshops (PerCom Workshops). 2018, pp. 197–202. doi: 10. 1109/PERCOMW.2018.8480255. [4] P. A. Catherwood, M. Little, D. Finlay, and J. McLaughlin. “Recovery of Incapacitated Commercial Delivery Drones Using LPWAN Technology.” In: IEEE Intelligent Transportation Systems Magazine 12.2 (2020), pp. 6–19. doi: 10.1109/MITS.2019.2898972. [5] S.-Y. Wang, J.-E. Chang, H. Fan, and Y.-H. Sun. “Comparing the Performance of NB-IoT, LTE Cat- M1, Sigfox, and LoRa for IoT End Devices Moving at High Speeds in the Air.” In: Journal of Signal Processing Systems (Mar. 2021). doi: 10.1007/s11265-021-01660-4. [6] L. Alliance. White paper: A technical overview of LoRa and LoRaWAN. White Paper. 2400 Camino Ramon 375 San Ramon CA 94583: LoRa Alliance, 2015. [7] S. C. Gaddam and M. K. Rai. “A Comparative Study on Various LPWAN and Cellular Communication Technologies for IoT Based Smart Applications.” In: 2018 International Conference on Emerging Trends and Innovations In Engineering And Technological Research (ICETIETR). 2018, pp. 1–8. doi: 10.1109/ICETIETR.2018.8529060. [8] K. Mikhaylov and J. Petaejaejaervi. “Analysis of Capacity and Scalability of the LoRa Low Power Wide Area Network Technology.” In: European Wireless 2016; 22th European Wireless Conference. 2016, pp. 1–6. 92