Jurnal Penelitian Politeknik Penerbangan Surabaya Edisi xi. Vol 6. No 3. Bulan September Tahun 2021 p-ISSN: 2615-8671 e-ISSN: 2615-868X PORTABLE AVIATION NAVIGATION CALIBRATION SYSTEM BASED ON RASPBERRY PI. HACK RF ONE. AND SOFTWARE DEFINED RADIO COMMUNICATION SYSTEM Ade Irfansyah. Mohamad Rifai. Yuyun Suprapto. Meita Maharani. Bambang Bagus Politeknik Penerbangan Surabaya Abstrak Prosedur kalibrasi dalam sistem navigasi penerbangan yang melibatkan penggunaan pesawat dan crew penerbang dapat dipandang sebagai aktivitas yang berisiko dan berbiaya tinggi. Makalah ini memperkenalkan desain sistem komunikasi yang menyediakan solusi berbiaya rendah dan fleksibel, berbasis Raspberry Pi, dan perangkat Software Defined Radio HackRF One, yang dilengkapi dengan sensorsensor yang berhubungan dengan penerbangan. Prinsip-prinsip rancang bangun yang utamanya terdiri dari baik komunikasi yang fleksibel dan kemudahan mengoperasikan, dijelaskan di awal makalah. Metode frequency shift keying yang diimplementasikan bersama mekanisme integritas data diterapkan untuk menghasilkan transmisi data sensor yang cepat namun handal. Kecepatan komunikasi data pada lingkungan single board computer mencapai 40 kbps. Sistem yang disampaikan juga memiliki keberhasilan pengiriman data sebesar 88%. Selanjutnya, diskusi terkait desain sistem dan pengembangan lebih lanjut juga disajikan dalam makalah ini. Keywords: Penerbangan. Software Defined Radio. Frequency Shift Keying. Modulasi Digital. Sistem Sensor. Abstract Calibration procedures for the aviation navigation system which involve full size aircraft and its crew may be considered risky and high cost . This paper introduces the state of the art communication system to provide lower cost and flexible solutions based on Raspberry Pi, and SDR device Hack RF One, equipped with proper and aviation-related sensors, which later may be treated as unmanned aerial vehicle payload to replace flying aircraft aviation instruments. Design principles which mainly consist of both flexible communication and operating feasibility are explained in early of this paper. As a preliminary method, simple FSK modulation coupled with data integrity mechanisms are implemented to realize reliable but fast sensor data transmission. Data communication rate under a single board computer environment may achieve 40 kbps. Proposed system achieved a data transmission success rate as high as 88% in reasonable In addition, the discussion of further system development is presented. Keywords: Aviation. Software Defined Radio. Frequency Shift Keying. Digital Modulation. Sensor System. INTRODUCTION Calibration schemes for the aviation navigation system and equipment usually use complex and relatively high cost tools. Full size aircraft are also involved during the calibration procedures. The calibration activities can be seen as simple but may take a long time. The main idea is communication between aircraft instruments and ground equipment which results in several parameters that need to be tuned in the ground On the aircraft side, the instrument reads several type sensors and sends them continuously. While Portable Aviation Navigation Calibration System observing the parameter viewed in the ground side, the officers are in contact with pilot and aircraft crew frequently in order to tune the equipment based on received parameters. The aircraft may take several times approaching the same airport in order to complete the process. These procedures may be considered as risky, high cost, but very important. However, the advancement of technology on drones, sensors, and communication systems are now available to be composed in order to provide better and lower cost solutions for such conditions. In recent years. Software Defined Radio . is considered to be a low cost but powerful solution for communication in the field of research and practical systems. SDR devices are varying and becoming more affordable, while more hardware features and capabilities are always increasing. The presence of free and open source softwares, such as GNU Radio . and GNU Radio Companion . , may open new opportunities in solving problems, especially in designing communication systems. Several works have been done in similar fields of communication, such as researching QAM communication . FMCW weather radar . , and NAV Analyzer . , all of them utilize SDR and GNU Radio. The development of single board computers, which are low cost and low energy, such as Raspberry Pi has been helping makers and researchers. Apart from the low price, its computation power is arguably better with the years. The combination of sensors and single board computer has resulted in the enormous solutions in embedded and robotics systems. While most single board computers like Raspberry Pi support Unix based operating system out of the box, which means that itAos a perfect match with Software Defined Radio, there is still a lot of opportunity in providing communication systems solutions. This paper introduces the development of an aviation navigation calibration system, which consists of a sensor system and Raspberry Pi, combined with SDR based device using GNU Radio to establish a real time communication system in order to provide lower cost solution for aviation and navigation calibration Design principles are explained in the early section to put clear understanding of problems, and requirements, and followed by proposed system design. Results and evaluations are then presented, followed by discussions and conclusions about feasibility of the proposed system. DESIGN PRINCIPLES Frequency Range Designed system should have a wide frequency range of communication. The chosen SDR based device as primary communicator is useful compared to commodity-of-the-self devices used in related work of NAV analyzer . By using SDR hardware such as Hack RF, up to 6 GHz frequency range is available. Since Hack RF has the ability to be both transmitter and receiver, there is no issue in the compatibility of Portable Aviation Navigation Calibration System communicator devices. While designing for current system, a wide frequency range may be considered suitable for further work. Communication Parameters Tunability Designed system should open for the possibility of tunability, especially for communication The chosen SDR based communication system is proven for this kind of principles in several related works . Choices of Sensors Designed system should have sensors suitable for representing navigation and aviation data. The minimum parameters may be used, such as altitude, inertial condition . oll, pitch, ya. , and speed . oth vertical and horizonta. Those parameters may be obtained from simple but powerful sensor such as IMU . nertial measurement uni. sensor, gyro, accelerometer, and barometer sensor. Portability While not strongly mandatory, the portability of the system may be met. The system should provide a terminal or communication port to communicate and obtain both raw and visual data. The host computer, which usually communicates with the system, should need the minimum software installed to be able to access the system. Communication and Data Integrity Sensors data, which is represented with digital data, must be communicated efficiently and effectively through the air. Radio frequency communication provided by SDR based hardware, may be combined with digital modulation scheme. Considering data loss may occur, designed system must have data integrity scheme coupled with a modulation scheme. Error detection and packetization scheme must be established to make sure no wrong data is received and visualized. Aviation-Centric Visualization Digital data representing the sensor, are better visualized in aviation-centric visualization. Primary Flight Display may be brought to display, and provide proper animation responding to received sensor Previously mentioned Portability principle, also make sure this kind of visualization can run smoothly in the host computer. Portable Aviation Navigation Calibration System SYSTEM DESIGN Data Producer: Sensor Systems Proposed system data flow as illustrated in figure 1 begins from IMU and barometric sensor, and ends with PC as operating host. System design is divided into 4 sections: (A) Data Producer, (B) Transmitter, (C) Receiver, and (D) Data Consumer. Figure 1. Block diagram of proposed system Data producer primarily consists of sensors reader and fusion. Data producer utilizes Raspberry Pi 3B single board computer which has compute power 1. 4 GHz quad core ARM processor. Raspberry Pi is well known for its portability and low energy operation, compared to Intel based commodity-of-the-self Single board computer such as Raspberry Pi is chosen also because of its convenience for interfacing sensor, equipped with various software options on top of its linux based Raspbian operating Table 1. Obtained data specifications Obtained Data Source Sensor Value Unit Value Range Roll Rotation MPU9250 IMU Sensor Degree 0 until 180. 0 deg Pitch Rotation MPU9250 IMU Sensor Degree 0 until 180. 0 deg Yaw Rotation MPU9250 IMU Sensor Degree 0 until 180. 0 deg Vertical Speed MPU9250 IMU Sensor Knots Horizontal Speed MPU9250 IMU Sensor Knots Altitude BME280 Barometer Sensor Feet Above Sea Level Two kind of sensor are used to provide up to 6 minimum aviation-related data: . MPU 9250 IMU Sensor, and . BME 280 Barometer Sensor. Table 1 contains obtained data specifications and their relation with source sensor. While BME280 barometer sensor computes altitude data based on ambience pressure, in straightforward way, the acquisition of five other data come from sensor data fusion techniques. IMU Portable Aviation Navigation Calibration System raw sensor data generally consists of accelerometer and gyro data in three axes. Y and Z. Sensor data fusion and Kalman Filter operation applied to produce better and representative kind of data such as Roll. Pitch and Yaw. In a similar way. Data Producer produces vertical and horizontal speed data. Transmitter: SDR Based Data Packetization and FSK Transmitter Transmitter section of the proposed design consists of data packetization and FSK modulator. While an instance of process inside the Raspberry Pi is reading and fusion the raw data, produced final sensor data is forwarded to another process of data packetization and FSK modulator. Transmitter section is designed using GNU Radio Companion software, and compiled into a runnable flowgraph in python executable script as described in . Final flowgraph is shown in figure 2. At the upstream of flowgraph. Socket PDU block is opening TCP port in Raspberry Pi localhost port Data producer forwards its result into this port to ensure smooth multi process communication. Multi processing techniques also increase Raspberry Pi core utilizations up to 400% . cores x 100%). However, such maximum compute power is seen to be infeasible since it may consume higher power, in unnecessary data producer rate. Finally, multiprocessing is limited to up to half of its maximum compute power, which ranges between 50% until 200%. Figure 2. GNU Radio flowgraph of transmitter section. Captured data in TCP port 50501 consists of 6 sensor data and 1 index. The series of data is denoted as Payload with N bytes long. Payload which comes into flowgraph is automatically marked with packet length as its header and then continued to the upper series of data packetization blocks, as illustrated in Portable Aviation Navigation Calibration System figure 3 stage A and stage B. The flowgraph then computes 32 bit CRC data of payload, and appends it in the front of the data packet as illustrated in figure 3 stage C. Finally. GNU Radio provides 4 bytes unique access code to mark the beginning of data packet. Figure 3. Data packetization stages. Data packet came from upper series of blocks is then continued to lower series of blocks which aim to unpack the data as binary, modulate it using Frequency Shift Keying (FSK) method, and ends in osmocom sink which connect to software defined radio (SDR) hardware. Hack RF one. Voltage Controlled Output is take primary role in modulator blocks, which take input of binary signal 0 and 1, and resulting frequency modulated signal, as shown in figure 4. Sensitivity parameter is configured to has frequency range of 100kHz and 200kHz, which means that binary data of 0 will resulting 100kHz modulated signal, and binary data of 1 will resulting 200kHz modulated signal. As shown in figure 2, proposed system is using ISM band frequency of 910MHz with sample rate of 4MHz. By using sample_per_symbol of 100, transmitter section is designed to send up to 40kbps data. 4MHz of sample rate is chosen to avoid underflow condition, which data producer produce sample data less than SDR hardware capability of consuming the sample. The higher the sample rate, the better and the faster data transmission, ideally, under the limit of computation power of single board computer environment. Portable Aviation Navigation Calibration System Figure 4. FSK Waveform Receiver: FSK Receiver and SDR Based Data De-packetization Transmitted data applied into Hack RF One in the transmitter section, is then received by the receiver Receiver section tuned to listen at the center frequency of 910MHz, with lower sample rate of 400kHz. Compared to the transmitter section, the receiver is configured to have lower sample rate to reduce the effect of overflow in a single board computer environment. Raspberry Pi has limited computation power which impacts its performance to capture real time sample from SDR. This condition ends with the result of overflow, where sample data come from osmocom source such as HackRF One is faster than the user process consuming the sample. However, 40kbps of data transmission rate can be synchronized by using lower samples_per_symbol variable, utilized by the Clock Recover MM block. Figure 5. GNU Radio flowgraph of receiver section. Portable Aviation Navigation Calibration System Shown in figure 5. Frequency Xlating FIR Filter helps the receiver to limit only to 400kHz bandwidth of signal. Since the sensitivity parameter of VCO block in transmitter is configured to produce frequency range of 100kHz and 200kHz, center frequency is configured to have value of 150kHz. Upper series of receiver blocks aim to demodulate the captured signal and produce binary waveform. Power squelch block reject any signal with power lower than -60dB relative gain. Noise signal should be rejected by this block to reduce undesirable binary data. The series of Quadrature demod. Clock Recovery MM, and Binary Slicer demodulates and shapes the output signal in binary waveform. Binary signal is first correlated with Access Code to find the mark of the beginning of packet data. The resulted packet data is then repacked, and tagged with found packet length. CRC32 block will separate first 4 byte CRC code with remainder bytes of payload. CRC32 block will drop the payload if the CRC code received and examined is incorrect. Only the correct payload of data will ends in Socket PDU block, in TCP Any process may consume the demodulated and correct data to be processed in further Data Consumer: Primary Flight Display Web View Visualization Data consumer formed as a process running inside Raspberry Pi, consumes receiver-produced data in address localhost:50501, and visualizes the data in real time inside the browser. Web app is chosen as end user visualization method because of its versatility in rendering and animating. Furthermore, accessing the app via web browser is seen as the best way to operate the proposed system, since the host PC doesn't need to install any software. Both portability and aviation-centric principle can be met using web app based Figure 6. Transmitter device, which consists of . sensor systems with Raspberry Pi and Hack RF in a stacked portable package, and . power supply adapter. Portable Aviation Navigation Calibration System RESULTS AND EVALUATION PROTOTYPING AND VISUALIZATION Data producer, sensor system, and FSK modulator run in Raspberry Pi single board computer as shown in figure 6. Stacked portable package made by acrylic may be considered as drone or payload of unmanned aerial vehicle for later discussions. Raspberry Pi is placed on top of HackRF One, connected to both SDR and Power supply adapter with rating of 5 volt and 3 amps is used to supply enough power into Raspberry Pi. HackRF and sensors, while doing the experimentation and evaluation. Receiver section consists of relatively simple components, which are Raspberry Pi. HackRF One. Power Supply Adapter and Cables, as shown in figure 7. Raspberry Pi is then remotely operated by using VNC protocol through either wireless or cable local area network. Both transmitter and receiver configured using static IP Address of 192. 100/24, so that Host PC may connect to them alternately through LAN Though its best to then connect both of them in the same wireless access point to establish better local area network, since Raspberry Pi 3B has support for wifi connection. Figure 7. Receiver device, which consists of . Hack RF, . Raspberry Pi, . power supply adapter, and . USB communication cable. Raspberry Pi on the receiver side is configured to open web service port 7800 which is accessible through a web browser. By visiting http://:7800. Primary Flight Display visualization can be displayed automatically. The values and animation will react to the receiving mechanism in the data consumer side. Figure 8 shows how roll rotation of transmitter device ends with result of roll animation in Primary Flight Display. Portable Aviation Navigation Calibration System Figure 8. Primary Flight Display in action, receiving and visualizing real time data from the transmitter. SENSORS EVALUATION Conducted measurement result for 6 aviation-related data is shown in figure table 2. Rotation measurement produces quite good results with relatively lower average error numbers. The remaining three data yield relatively higher average error. This fact is related to the availability of sensor fusion and notable kalman filters for rotation data, but not for remaining other parameters. However the result also provides good establishment at this preliminary development, since the chosen sensors are operating Both varying kind of sensors and developing data acquisition and filter methods are considered as further work which may provide lower average error and broader aviation-related parameters. Table 2. Obtained data average error. Obtained Data Roll Rotation Pitch Rotation Yaw Rotation Vertical Speed Horizontal Speed Altitude COMMUNICATION RESULT Value Unit Degree Degree Degree Knots Knots Feet Above Sea Level Average Error 359 degree 04975 degree 19075 degree 117 knots 257 knots 358 feet FSK based data transmission is done successfully, as shown in figure 9. Raspberry Pi terminal listening to local port of 50501 prints captured sensor data, delimited with Au,Ay . GNU Radio real time waveform displayed behind the terminal, from the top chart to bottom, shows . binary representation of signal, . demodulated signal, . symbol recovered signal, and . received signal Portable Aviation Navigation Calibration System Figure 9. Carrier signal observation result and received raw sensor data in the receiver section. Spectrum shown in figure 9, contain two highest peaks as a pair of binary 0 frequency and binary 1 frequency, which are 100kHz and 200kHz. Centered frequency of 150kHz with bandwidth of 400kHz captures the data signal successfully, then transforms them into binary representation. The spectrum also contain other undesirable peaks which come from the implementation of BFSK modulation. Several types of digital modulation such as Gaussian FSK, n-PSK, and OFDM are considered as further work and theoretically may yield better results in data transmission. Each line printed in Raspberry Pi terminal contains a data index, placed at the end. Since data index is incremental data, data transmission success rate is calculated by counting data index compared to maximum number of data index every second. Communication system has average packet loss of 12%, which means data transmission success rate is as high as 88%. CONCLUSIONS AND FUTURE WORK State of the art implementation is conducted and the transmitter and receiver system are operating Data transmission speed of 40kbps is sufficient to provide real time sense of data communication between data producer and data consumer. End visualization of Primary Flight Display emphasizes the output which has to be aviation-related. Real time animation and value changes are successfully established, displayed in Host PC. Design principles for the proposed system are considered fulfilled. Portable Aviation Navigation Calibration System While the proposed system is considered ready to be the payload for either drone or UAV, several works still have to be done in the near future. Implementing other digital modulations, applying sensor reading and filter, and developing both mechanical and electronic, will support the system for proper Future works also open substantial opportunity for research in related fields. REFERENCES