SlideShare a Scribd company logo
©SIProp Project, 2006-2017 1
The Self-Contained SDR Satellite Grand
Station with Raspberry Pi 3
Noritsuna Imamura(JI1SZP)
noritsuna@siprop.org
©SIProp Project, 2006-2018 2
Contents
The Self-Contained SDR Grand Station with
Raspberry Pi 3
Setup
Raspberry Pi
GNU Radio
Gqrx
TeamViewer
OS Image
Download
©SIProp Project, 2006-2018 3
What’s The Self-Contained SDR Grand
Station with Raspberry Pi 3
This Satellite Grand Station has Full Functions
for Satellite Radio, Power Supply and WAN
Connection with Raspberry Pi in small box.
Feature
Space-Saving
8inchi ^ 3 size
All Cable-Less
No Power Cable, No RF Cable, No Network Cable
WAN Connection
Reachable from Anywhere
SDR+GNU Radio
Programmable Satellite Grand Station
Automatic Satellite Communication
Qt based Tracking Satellite Software (Our software)
• https://github.com/siprop/satella.git
• Coming Soon!!!
©SIProp Project, 2006-2018 4
Based Devices
SDR
RTL-SDR
http://www.rtl-
sdr.com/buy-rtl-sdr-dvb-
t-dongles/
Antenna
Mobile Antenna
144/430MHz
LNA
0.1-2000MHz Wideband
RF Low Noise Amplifier
Main PC
Raspberry Pi 3
https://www.raspberry
pi.org/products/raspbe
rry-pi-3-model-b/
Rainproof Box
Aluminum Box
©SIProp Project, 2006-2018 5
Power Devices
Solar Power
Solar Panel
12W
Lead-acid Battery
12V/6Ah
Solar Battery Charge and Discharge Controller
Solar Panel Input: 16-20V
Battery Input: 12V
Output: 8-12V
DC-DC Converter
Input: 8-12V
Output: 5V /3A
©SIProp Project, 2006-2018 6
WAN Communication Devices
3G/LTE
USB Dongle
Data Type SIM
©SIProp Project, 2006-2018 7
Softwares
SDR Controller
Gqrx
http://gqrx.dk/
Programmable SDR Controller
GNU Radio
https://www.gnuradio.org/
Remote Operation
TeamViewer
https://www.teamviewer.com/
©SIProp Project, 2006-2018 8
All Devices
18W Solar Panel
Mobile Antenna
DCDC
Converter
Solar Battery
Charge and
Discharge
Controller
Lead-acid
Battery
RTL-SDR
LNA
Rainproof Box
Raspberry Pi 3
3G/LTE USB Dongle
©SIProp Project, 2006-2018 9
Required Power Specifications
©SIProp Project, 2006-2018 10
Saving Power Settings
USB OFF = 0.5W (「0」→「1」 to ON)
HDMI OFF = 0.1W
POWER SAVE = 0.02W
1. sudo apt install libusb-dev
2. wget http://www.gniibe.org/oitoite/ac-power-control-by-
USB-hub/hub-ctrl.c
3. gcc -O2 hub-ctrl.c -o hub-ctrl-armhf-static -lusb -static
4. sudo cp hub-ctrl-armhf-static /usr/local/bin/hub-ctrl
5. sudo hub-ctrl -h 0 -P 2 -p 0
1. /opt/vc/bin/tvservice --off
1. echo "powersave"| sudo tee
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
©SIProp Project, 2006-2018 11
Calculating Power Specifications
Power Consumption
Standby: 2.0W
GNU Radio: 5.0W
Gqrx: 5.2W
3G/LTE: 5.5W
Fan: +0.2~0.5W
Required for 1 Day
Standby:22h
+Operation:2h
= 44Wh + 11Wh
= 55Wh/d
Charging&DCDC Loss
= 20%
= 66Wh/d
Daily Chargeable Time
6h
Required Electric-
Generating Capacity
= 11W/h
©SIProp Project, 2006-2018 12
Setup Raspberry Pi
©SIProp Project, 2006-2018 13
Setup Raspbian
Target OS
RASPBIAN xxx with DESKTOP
https://www.raspberrypi.org/downloads/raspbian/
How to Setup
https://www.raspberrypi.org/documentation/setup/
©SIProp Project, 2006-2018 14
NTP
©SIProp Project, 2006-2018 15
Setup NTP(Network Time Protocol)
A clock will be reset if a power supply is shut
down. Because Raspberry Pi does not have RTC
(Real Time Clock).
Install NTP client
1. sudo apt install ntpdate
©SIProp Project, 2006-2018 16
Setup NTP(Network Time Protocol)
Schedule Every 5 minutes
Add last line
Execute at Startup
Add before “exit 0”
1. 05 * * * * /usr/sbin/ntpdate ntp.nict.jp
1. /usr/sbin/ntpdate ntp.nict.jp
1. sudo crontab -e
1. sudo nano /etc/rc.local
©SIProp Project, 2006-2018 17
Automatic Update
©SIProp Project, 2006-2018 18
Setup Automatic Security Update
Install
Setting
/etc/apt/apt.conf.d/50unattended-upgrades
Only Update Security Patch
If reboot is necessary, reboot at 2:00.
1. Unattended-Upgrade::Origins-Pattern {
2. "origin=Debian,codename=${distro_codename},label=Debian-Security";
3. };
4. Unattended-Upgrade::Automatic-Reboot "true";
5. Unattended-Upgrade::Automatic-Reboot-Time "02:00";
1. sudo nano /etc/apt/apt.conf.d/50unattended-upgrades
1. sudo apt install unattended-upgrades
©SIProp Project, 2006-2018 19
Reduce Writing to Disk(SD Card)
©SIProp Project, 2006-2018 20
Reduce Writing to Disk(SD Card)
SD Card has a low rewriting maximum. Then,
Changing a setup so that excessive writing may
not be executed.
1. Logging of RAM disk
2. Disable ext4 journal log
Logging of RAM disk
/etc/fstab
Delete the current logging files
1. tmpfs /tmp tmpfs defaults,size=8m,noatime,mode=1777 0 0
2. Tmpfs /var/tmp tmpfs defaults,size=4m,noatime,mode=1777 0 0
3. tmpfs /var/log tmpfs defaults,size=8m,noatime,mode=0755 0 0
1. sudo rm -fr /tmp
2. sudo rm -fr /var/tmp
©SIProp Project, 2006-2018 21
Logging of RAM disk
Create logging directories at startup
/etc/rc.local
1. mkdir -p /var/log/apt
2. mkdir -p /var/log/fsck
3. mkdir -p /var/log/ntpstats
4. mkdir -p /var/log/samba
5. chmod 750 /var/log/samba
6. chown ntp:ntp /var/log/ntpstats
7. chown root:adm /var/log/samba
8. touch /var/log/btmp
9. touch /var/log/lastlog
10. touch /var/log/wtmp
11. chmod 600 /var/log/btmp
12. chmod 664 /var/log/lastlog
13. chmod 664 /var/log/wtmp
14. chown root:utmp /var/log/btmp
15. chown root:utmp /var/log/lastlog
16. chown root:utmp /var/log/wtmp
©SIProp Project, 2006-2018 22
Disable ext4 journal log
Since it cannot execute case which has been
mounted by the system, execute on another
system.
or
1. sudo umount /dev/mmcblk0p2
2. sudo tune2fs -O ^has_journal /dev/mmcblk0p2
1. sudo umount /dev/sda2
2. sudo tune2fs -O ^has_journal /dev/sda2
©SIProp Project, 2006-2018 23
Saving Power Settings
©SIProp Project, 2006-2018 24
Saving Power Settings
USB OFF = 0.5W (「0」→「1」 to ON)
HDMI OFF = 0.1W
POWER SAVE = 0.02W
1. sudo apt install libusb-dev
2. wget http://www.gniibe.org/oitoite/ac-power-control-by-
USB-hub/hub-ctrl.c
3. gcc -O2 hub-ctrl.c -o hub-ctrl-armhf-static -lusb -static
4. sudo cp hub-ctrl-armhf-static /usr/local/bin/hub-ctrl
5. sudo hub-ctrl -h 0 -P 2 -p 0
1. /opt/vc/bin/tvservice --off
1. echo "powersave"| sudo tee
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
©SIProp Project, 2006-2018 25
Change Power-Saving Mode at Startup
Execute at Startup
Power-Saving Mode: On
Power-Saving Mode: Off
1. @reboot /home/pi/savepower_on.sh
1. sudo crontab -e
1. sudo /home/pi/savepower_off.sh
©SIProp Project, 2006-2018 26
GNU Radio
©SIProp Project, 2006-2018 27
Setup GNU Radio
1. Install SDR Drivers
2. Install GNU Radio
3. When Using HDMI, The Raspberry Pi's Audio is
outputted to HDMI.
1. Change Output from an Earphone Jack.
1. Last Number: 0=auto, 1=earphone jack, 2=HDMI
1. sudo apt install rtl-sdr gr-osmosdr
1. sudo apt install gnuradio
1. amixer cset numid=3 1
©SIProp Project, 2006-2018 28
Example:Recipe of Receive FM Radio
SDR Block
Osmocom Source
Not RTL-SDR Source
audio.sink Block
device
plughw:0,1
©SIProp Project, 2006-2018 29
Gqrx
©SIProp Project, 2006-2018 30
Gqrx SDR for the Raspberry Pi
SDR Control Software
http://gqrx.dk/download/gqrx-sdr-for-the-
raspberry-pi
©SIProp Project, 2006-2018 31
Device Support of Gqrx
©SIProp Project, 2006-2018 32
Setup Gqrx
1. Download Gqrx
1. http://gqrx.dk/download/gqrx-sdr-for-the-
raspberry-pi
2. Install Gqrx & Required Libraries
Execute on Raspberry Pi
1. tar Jxfv gqrx-2.9-linux-armv6.tar.xz
2. cd gqrx-2.9-linux-armv6
3. sudo apt install gnuradio libvolk1-bin libusb-1.0-0 gr-iqbal
4. sudo apt install qt5-default libqt5svg5 libportaudio2
5. sudo cp udev/rtl-sdr.rules /etc/udev/rules.d/
©SIProp Project, 2006-2018 33
3G/LTE Connection
©SIProp Project, 2006-2018 34
Setting Conditions
Communication Conditions
Global Connection by TeamViewer
Every day at 0:00 only for 10 minutes
Data Transfer
Each GNU Radio + ppp(Dial Up) Connection
3G/LT USB Dongle
Examle: LG L-03D
When connection is not stabilized
1. Use Self-Power USB Hub
©SIProp Project, 2006-2018 35
Disable CD-ROM function
Setting
/etc/udev/rules.d/40-usb_modeswitch.rules
/etc/usb_modeswitch.d/1004:6327
1. ATTRS{idVendor}=="1004", ATTRS{idProduct}=="6327", MODE:="0666",
RUN+="usb_modeswitch '%b/%k'"
1. DefaultVendor= 0x1004
2. DefaultProduct=0x6327
3. TargetVendor= 0x1004
4. TargetProductList="6326"
5. MessageContent="55534243123456780000000000000aff554d534348470000000
00000000000"
©SIProp Project, 2006-2018 36
Recognized as a USB Modem
Setting
/etc/udev/rules.d/50-l03d.rules
1. ATTRS{idVendor}=="1004", ATTRS{idProduct}=="6326", MODE:="0666",
RUN+="/sbin/modprobe usbserial vendor=0x1004 product=0x6326"
©SIProp Project, 2006-2018 37
Setup PPP connection
Use wvdial
1. sudo apt install usb-modeswitch wvdial
©SIProp Project, 2006-2018 38
Example:So-net’s 0SIM(Japan)
Settng
/etc/wvdial.conf
1. [Dialer Defaults]
2. Init1 = ATZ
3. Init2 = ATH
4. Init3 = AT+CGDCONT=2,"IP","so-net.jp"
5. Dial Attempts = 3
6. Stupid Mode = yes
7. Modem Type = Analog Modem
8. Dial Command = ATD
9. New PPPD = yes
10. APN = so-net.jp
11. Modem = /dev/ttyUSB2
12. Baud = 460800
13. ISDN = 0
14. Phone = *99***2#
15. Auto Reconnect = yes
16. Username = nuro
17. Password = nuro
18. Carrier Check = no
©SIProp Project, 2006-2018 39
Add ppp Network Interface
Add ppp Network Interface
/etc/network/interfaces.d/0sim
Connect
Disconnect
Warning: Power-Saving mode is turning OFF
1. sudo ifdown 0sim
1. sudo ifup 0sim
1. allow-hotplug 0sim
2. iface 0sim inet wvdial
©SIProp Project, 2006-2018 40
Global Connection:TeamViewer
TeamViewer for Raspberry Pi
https://download.teamviewer.com/download/linux/te
amviewer-host_armhf.deb
Setting
Create TeamViewer account in advance.
1. wget
https://download.teamviewer.com/download/linux/teamvie
wer-host_armhf.deb
2. sudo apt install ./teamviewer-host_armhf.deb
3. sudo teamviewer setup
©SIProp Project, 2006-2018 41
Setup Automatic Startup 1/2
1. Connect at 0:0 every day
2. Disconnect at 0:10 every day
3. At the time of starting and to unite time by
NTP
Setting
1. 0 0 * * * /home/pi/globalcon_on.sh
2. 10 0 * * * /home/pi/globalcon_off.sh
3. @reboot /home/pi/globalcon_init.sh
1. sudo crontab -e
©SIProp Project, 2006-2018 42
Setup Automatic Startup 2/2
Connect (with Power-Saving Mode) Script
/home/pi/globalcon_on.sh
/home/pi/globalcon_off.sh
1. #!/bin/sh
2. /home/pi/savepower_off.sh
3. sleep 20s
4. /sbin/ifup 0sim
5. sleep 10s
6. /sbin/route add default dev ppp0
7. /usr/sbin/ntpdate ntp.nict.jp
1. #!/bin/sh
2. /sbin/route del default dev ppp0
3. /sbin/ifdown 0sim
4. /home/pi/savepower_on.sh
5. sleep 1s
6. /home/pi/savepower_on.sh
©SIProp Project, 2006-2018 43
Setup Automatic Re-Connect
Re-Connect Script
/home/pi/globalcon_recon.sh
Check connection for every minute during connection
Setting
1. #!/bin/sh
2. isAlive=`ps -ef | grep " wvdial " | 
3. grep -v grep | wc -l`
4. if [ $isAlive = 1 ]; then
5. echo alive
6. else
7. echo die
8. /home/pi/globalcon_off.sh
9. /home/pi/globalcon_on.sh
10.fi
1. sudo crontab -e
1. 1,2,3,4,5,6,7,8,9 0 * * * /home/pi/globalcon_recon.sh
©SIProp Project, 2006-2018 44
About The OS Image which the
all the soft setups have finished
©SIProp Project, 2006-2018 45
The OS Image which the all the soft
setups have finished
About The OS Image which the all the soft setups
have finished
1. http://www.noritsuna.jp/download/raspi-sdr_GS_en.zip
1. Image Size
1. 8GB or more microSD
2. LAN IP
1. DHCP
3. Remote Operations
1. Local Network: VNC
2. Global Network: TeamViewer
1. No Account. Please execute “teamviewer setup”
4. Login
1. User: pi , Password: raspberry
5. Power-Saving Mode
1. Control /home/pi/savepower_[on|off].sh
2. Startup Setting “sudo crontab –e” & Enable comment out lines
1. Warning: If on, Disable USB Devices & HDMI.
©SIProp Project, 2006-2018 46
Example: Connect by TeamViewer &
Use GNU Radio

More Related Content

PPTX
Principle Representation of The 8 Qubits Quantum Computer by RaspberryPi
PDF
ADS-B, AIS, APRS cheatsheet
PDF
Black Hat Europe 2015 - Time and Position Spoofing with Open Source Projects
PPTX
Optically pumped cesium enabling ePRC and ePRTC Class B
PDF
Quartz Crystal Oscillators and Phase-Locked Loops
PPTX
Performance Results of an Optically Pumped Cesium Beam Clock
PDF
Synchronization for 5G: the requirements and the solutions
PPTX
Preliminary Test Results: High Performance Optically Pumped Cesium Beam Clock
Principle Representation of The 8 Qubits Quantum Computer by RaspberryPi
ADS-B, AIS, APRS cheatsheet
Black Hat Europe 2015 - Time and Position Spoofing with Open Source Projects
Optically pumped cesium enabling ePRC and ePRTC Class B
Quartz Crystal Oscillators and Phase-Locked Loops
Performance Results of an Optically Pumped Cesium Beam Clock
Synchronization for 5G: the requirements and the solutions
Preliminary Test Results: High Performance Optically Pumped Cesium Beam Clock

What's hot (20)

PDF
PLNOG16: Planowanie sieci FTTx z wykorzystaniem technik T-WDM, Adam Grodecki
PDF
Synchronizing power networks
PPTX
Synchronization Protection and Redundancy in Next-Generation Networks
PDF
In-Service Monitoring of PTP Performance
PDF
What is the future of traditional SSUs and TSGs?
PPTX
Improving NTP Installed Base Time Accuracy
PDF
High Precision GPS Positioning for Spring Developers
PPTX
Development of a High Performance Optical Cesium Beam Clock for Ground Applic...
PDF
Reducing time errors for GNSS: Time for multiband?
PDF
Jagged little (sync) pill: Enabling installation-based networks for accurate ...
PDF
Thotcon 0xA-fun-with-sdrs-sorry-no-profit - final
PDF
JPNE MAP-E Deployment (IETF92@Dallas)
PDF
Centralized GNSS monitoring and assurance
PDF
SURFnet7 @ SC12
PPTX
The new Janet access infrastructure
PPTX
Software Defined Radio Workshop
PDF
Introducing the OSA 5430
PPTX
Field Measurement Options for Network Operators
PDF
IPv6 Deployment in Japan
PDF
Introducing the OSA 3350 ePRC+ and a new era of optical cesium innovation
PLNOG16: Planowanie sieci FTTx z wykorzystaniem technik T-WDM, Adam Grodecki
Synchronizing power networks
Synchronization Protection and Redundancy in Next-Generation Networks
In-Service Monitoring of PTP Performance
What is the future of traditional SSUs and TSGs?
Improving NTP Installed Base Time Accuracy
High Precision GPS Positioning for Spring Developers
Development of a High Performance Optical Cesium Beam Clock for Ground Applic...
Reducing time errors for GNSS: Time for multiband?
Jagged little (sync) pill: Enabling installation-based networks for accurate ...
Thotcon 0xA-fun-with-sdrs-sorry-no-profit - final
JPNE MAP-E Deployment (IETF92@Dallas)
Centralized GNSS monitoring and assurance
SURFnet7 @ SC12
The new Janet access infrastructure
Software Defined Radio Workshop
Introducing the OSA 5430
Field Measurement Options for Network Operators
IPv6 Deployment in Japan
Introducing the OSA 3350 ePRC+ and a new era of optical cesium innovation
Ad

Similar to The Self-Contained SDR Satellite Grand Station with Raspberry Pi 3 (20)

PDF
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
ODP
Rete di casa e raspberry pi - Home network and Raspberry Pi
PDF
Raspberry Pi and Amateur Radio - 2020 update
PPTX
ENSA_Module_10.pptx
ODP
Meego aptcms2010
PDF
SigfoxMakersDay Total
PPTX
The Data Center and Hadoop
PDF
Raspberry Pi Based GPS Tracking System and Face Recognition System.
PDF
Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120
PDF
Pilot Raspeberry pi 3g user manual
PPTX
BigData Clusters Redefined
ODP
Raspberry Pi and Amateur Radio
PPTX
[20160621]Constructing Infrastructure Wireless Network Using Open Source
PPTX
OpenCV acceleration battle:OpenCL on Firefly-RK3288(MALI-T764) vs. FPGA on Ze...
PDF
Gilat accent presentation_2012
PDF
Using raspberry pi to sense temperature and relative humidity
PDF
Lecture02web 140phpapp01
PDF
Bruno Decraene - Improving network availability through the graceful shutdown...
PDF
IRJET- Speed Limit Alerting Device
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
Rete di casa e raspberry pi - Home network and Raspberry Pi
Raspberry Pi and Amateur Radio - 2020 update
ENSA_Module_10.pptx
Meego aptcms2010
SigfoxMakersDay Total
The Data Center and Hadoop
Raspberry Pi Based GPS Tracking System and Face Recognition System.
Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120
Pilot Raspeberry pi 3g user manual
BigData Clusters Redefined
Raspberry Pi and Amateur Radio
[20160621]Constructing Infrastructure Wireless Network Using Open Source
OpenCV acceleration battle:OpenCL on Firefly-RK3288(MALI-T764) vs. FPGA on Ze...
Gilat accent presentation_2012
Using raspberry pi to sense temperature and relative humidity
Lecture02web 140phpapp01
Bruno Decraene - Improving network availability through the graceful shutdown...
IRJET- Speed Limit Alerting Device
Ad

More from Industrial Technology Research Institute (ITRI)(工業技術研究院, 工研院) (20)

PPTX
オープンソース界隈の利用者や技術者から見たオープンソースEDAとは? What is open source EDA from the perspecti...
PPTX
ラズパイを使って作品を作ったらラズパイコンテストでKSY賞を貰って、さらに、文化庁メディア芸術祭で審査員推薦作品に選ばれてしまった件〜自作チップでラズパイ...
PPTX
PPTX
What is the world where you can make your own semiconductors?
PPTX
PPTX
Kernel/VMレイヤーを自分色に染める!By ISHI会
PPTX
Self‐Contained SDR Grand Station with Raspberry Pi 3
PPTX
PPTX
PPTX
5000円で誰でも作れる新世代衛星地上局
オープンソース界隈の利用者や技術者から見たオープンソースEDAとは? What is open source EDA from the perspecti...
ラズパイを使って作品を作ったらラズパイコンテストでKSY賞を貰って、さらに、文化庁メディア芸術祭で審査員推薦作品に選ばれてしまった件〜自作チップでラズパイ...
What is the world where you can make your own semiconductors?
Kernel/VMレイヤーを自分色に染める!By ISHI会
Self‐Contained SDR Grand Station with Raspberry Pi 3
5000円で誰でも作れる新世代衛星地上局

Recently uploaded (20)

PPTX
TLE Review Electricity (Electricity).pptx
PDF
Mushroom cultivation and it's methods.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Hybrid model detection and classification of lung cancer
PDF
WOOl fibre morphology and structure.pdf for textiles
PPTX
Chapter 5: Probability Theory and Statistics
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Unlocking AI with Model Context Protocol (MCP)
TLE Review Electricity (Electricity).pptx
Mushroom cultivation and it's methods.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Hybrid model detection and classification of lung cancer
WOOl fibre morphology and structure.pdf for textiles
Chapter 5: Probability Theory and Statistics
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Heart disease approach using modified random forest and particle swarm optimi...
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Programs and apps: productivity, graphics, security and other tools
A comparative study of natural language inference in Swahili using monolingua...
Digital-Transformation-Roadmap-for-Companies.pptx
DP Operators-handbook-extract for the Mautical Institute
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
cloud_computing_Infrastucture_as_cloud_p
1 - Historical Antecedents, Social Consideration.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Unlocking AI with Model Context Protocol (MCP)

The Self-Contained SDR Satellite Grand Station with Raspberry Pi 3

  • 1. ©SIProp Project, 2006-2017 1 The Self-Contained SDR Satellite Grand Station with Raspberry Pi 3 Noritsuna Imamura(JI1SZP) noritsuna@siprop.org
  • 2. ©SIProp Project, 2006-2018 2 Contents The Self-Contained SDR Grand Station with Raspberry Pi 3 Setup Raspberry Pi GNU Radio Gqrx TeamViewer OS Image Download
  • 3. ©SIProp Project, 2006-2018 3 What’s The Self-Contained SDR Grand Station with Raspberry Pi 3 This Satellite Grand Station has Full Functions for Satellite Radio, Power Supply and WAN Connection with Raspberry Pi in small box. Feature Space-Saving 8inchi ^ 3 size All Cable-Less No Power Cable, No RF Cable, No Network Cable WAN Connection Reachable from Anywhere SDR+GNU Radio Programmable Satellite Grand Station Automatic Satellite Communication Qt based Tracking Satellite Software (Our software) • https://github.com/siprop/satella.git • Coming Soon!!!
  • 4. ©SIProp Project, 2006-2018 4 Based Devices SDR RTL-SDR http://www.rtl- sdr.com/buy-rtl-sdr-dvb- t-dongles/ Antenna Mobile Antenna 144/430MHz LNA 0.1-2000MHz Wideband RF Low Noise Amplifier Main PC Raspberry Pi 3 https://www.raspberry pi.org/products/raspbe rry-pi-3-model-b/ Rainproof Box Aluminum Box
  • 5. ©SIProp Project, 2006-2018 5 Power Devices Solar Power Solar Panel 12W Lead-acid Battery 12V/6Ah Solar Battery Charge and Discharge Controller Solar Panel Input: 16-20V Battery Input: 12V Output: 8-12V DC-DC Converter Input: 8-12V Output: 5V /3A
  • 6. ©SIProp Project, 2006-2018 6 WAN Communication Devices 3G/LTE USB Dongle Data Type SIM
  • 7. ©SIProp Project, 2006-2018 7 Softwares SDR Controller Gqrx http://gqrx.dk/ Programmable SDR Controller GNU Radio https://www.gnuradio.org/ Remote Operation TeamViewer https://www.teamviewer.com/
  • 8. ©SIProp Project, 2006-2018 8 All Devices 18W Solar Panel Mobile Antenna DCDC Converter Solar Battery Charge and Discharge Controller Lead-acid Battery RTL-SDR LNA Rainproof Box Raspberry Pi 3 3G/LTE USB Dongle
  • 9. ©SIProp Project, 2006-2018 9 Required Power Specifications
  • 10. ©SIProp Project, 2006-2018 10 Saving Power Settings USB OFF = 0.5W (「0」→「1」 to ON) HDMI OFF = 0.1W POWER SAVE = 0.02W 1. sudo apt install libusb-dev 2. wget http://www.gniibe.org/oitoite/ac-power-control-by- USB-hub/hub-ctrl.c 3. gcc -O2 hub-ctrl.c -o hub-ctrl-armhf-static -lusb -static 4. sudo cp hub-ctrl-armhf-static /usr/local/bin/hub-ctrl 5. sudo hub-ctrl -h 0 -P 2 -p 0 1. /opt/vc/bin/tvservice --off 1. echo "powersave"| sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  • 11. ©SIProp Project, 2006-2018 11 Calculating Power Specifications Power Consumption Standby: 2.0W GNU Radio: 5.0W Gqrx: 5.2W 3G/LTE: 5.5W Fan: +0.2~0.5W Required for 1 Day Standby:22h +Operation:2h = 44Wh + 11Wh = 55Wh/d Charging&DCDC Loss = 20% = 66Wh/d Daily Chargeable Time 6h Required Electric- Generating Capacity = 11W/h
  • 12. ©SIProp Project, 2006-2018 12 Setup Raspberry Pi
  • 13. ©SIProp Project, 2006-2018 13 Setup Raspbian Target OS RASPBIAN xxx with DESKTOP https://www.raspberrypi.org/downloads/raspbian/ How to Setup https://www.raspberrypi.org/documentation/setup/
  • 15. ©SIProp Project, 2006-2018 15 Setup NTP(Network Time Protocol) A clock will be reset if a power supply is shut down. Because Raspberry Pi does not have RTC (Real Time Clock). Install NTP client 1. sudo apt install ntpdate
  • 16. ©SIProp Project, 2006-2018 16 Setup NTP(Network Time Protocol) Schedule Every 5 minutes Add last line Execute at Startup Add before “exit 0” 1. 05 * * * * /usr/sbin/ntpdate ntp.nict.jp 1. /usr/sbin/ntpdate ntp.nict.jp 1. sudo crontab -e 1. sudo nano /etc/rc.local
  • 17. ©SIProp Project, 2006-2018 17 Automatic Update
  • 18. ©SIProp Project, 2006-2018 18 Setup Automatic Security Update Install Setting /etc/apt/apt.conf.d/50unattended-upgrades Only Update Security Patch If reboot is necessary, reboot at 2:00. 1. Unattended-Upgrade::Origins-Pattern { 2. "origin=Debian,codename=${distro_codename},label=Debian-Security"; 3. }; 4. Unattended-Upgrade::Automatic-Reboot "true"; 5. Unattended-Upgrade::Automatic-Reboot-Time "02:00"; 1. sudo nano /etc/apt/apt.conf.d/50unattended-upgrades 1. sudo apt install unattended-upgrades
  • 19. ©SIProp Project, 2006-2018 19 Reduce Writing to Disk(SD Card)
  • 20. ©SIProp Project, 2006-2018 20 Reduce Writing to Disk(SD Card) SD Card has a low rewriting maximum. Then, Changing a setup so that excessive writing may not be executed. 1. Logging of RAM disk 2. Disable ext4 journal log Logging of RAM disk /etc/fstab Delete the current logging files 1. tmpfs /tmp tmpfs defaults,size=8m,noatime,mode=1777 0 0 2. Tmpfs /var/tmp tmpfs defaults,size=4m,noatime,mode=1777 0 0 3. tmpfs /var/log tmpfs defaults,size=8m,noatime,mode=0755 0 0 1. sudo rm -fr /tmp 2. sudo rm -fr /var/tmp
  • 21. ©SIProp Project, 2006-2018 21 Logging of RAM disk Create logging directories at startup /etc/rc.local 1. mkdir -p /var/log/apt 2. mkdir -p /var/log/fsck 3. mkdir -p /var/log/ntpstats 4. mkdir -p /var/log/samba 5. chmod 750 /var/log/samba 6. chown ntp:ntp /var/log/ntpstats 7. chown root:adm /var/log/samba 8. touch /var/log/btmp 9. touch /var/log/lastlog 10. touch /var/log/wtmp 11. chmod 600 /var/log/btmp 12. chmod 664 /var/log/lastlog 13. chmod 664 /var/log/wtmp 14. chown root:utmp /var/log/btmp 15. chown root:utmp /var/log/lastlog 16. chown root:utmp /var/log/wtmp
  • 22. ©SIProp Project, 2006-2018 22 Disable ext4 journal log Since it cannot execute case which has been mounted by the system, execute on another system. or 1. sudo umount /dev/mmcblk0p2 2. sudo tune2fs -O ^has_journal /dev/mmcblk0p2 1. sudo umount /dev/sda2 2. sudo tune2fs -O ^has_journal /dev/sda2
  • 23. ©SIProp Project, 2006-2018 23 Saving Power Settings
  • 24. ©SIProp Project, 2006-2018 24 Saving Power Settings USB OFF = 0.5W (「0」→「1」 to ON) HDMI OFF = 0.1W POWER SAVE = 0.02W 1. sudo apt install libusb-dev 2. wget http://www.gniibe.org/oitoite/ac-power-control-by- USB-hub/hub-ctrl.c 3. gcc -O2 hub-ctrl.c -o hub-ctrl-armhf-static -lusb -static 4. sudo cp hub-ctrl-armhf-static /usr/local/bin/hub-ctrl 5. sudo hub-ctrl -h 0 -P 2 -p 0 1. /opt/vc/bin/tvservice --off 1. echo "powersave"| sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  • 25. ©SIProp Project, 2006-2018 25 Change Power-Saving Mode at Startup Execute at Startup Power-Saving Mode: On Power-Saving Mode: Off 1. @reboot /home/pi/savepower_on.sh 1. sudo crontab -e 1. sudo /home/pi/savepower_off.sh
  • 27. ©SIProp Project, 2006-2018 27 Setup GNU Radio 1. Install SDR Drivers 2. Install GNU Radio 3. When Using HDMI, The Raspberry Pi's Audio is outputted to HDMI. 1. Change Output from an Earphone Jack. 1. Last Number: 0=auto, 1=earphone jack, 2=HDMI 1. sudo apt install rtl-sdr gr-osmosdr 1. sudo apt install gnuradio 1. amixer cset numid=3 1
  • 28. ©SIProp Project, 2006-2018 28 Example:Recipe of Receive FM Radio SDR Block Osmocom Source Not RTL-SDR Source audio.sink Block device plughw:0,1
  • 30. ©SIProp Project, 2006-2018 30 Gqrx SDR for the Raspberry Pi SDR Control Software http://gqrx.dk/download/gqrx-sdr-for-the- raspberry-pi
  • 31. ©SIProp Project, 2006-2018 31 Device Support of Gqrx
  • 32. ©SIProp Project, 2006-2018 32 Setup Gqrx 1. Download Gqrx 1. http://gqrx.dk/download/gqrx-sdr-for-the- raspberry-pi 2. Install Gqrx & Required Libraries Execute on Raspberry Pi 1. tar Jxfv gqrx-2.9-linux-armv6.tar.xz 2. cd gqrx-2.9-linux-armv6 3. sudo apt install gnuradio libvolk1-bin libusb-1.0-0 gr-iqbal 4. sudo apt install qt5-default libqt5svg5 libportaudio2 5. sudo cp udev/rtl-sdr.rules /etc/udev/rules.d/
  • 33. ©SIProp Project, 2006-2018 33 3G/LTE Connection
  • 34. ©SIProp Project, 2006-2018 34 Setting Conditions Communication Conditions Global Connection by TeamViewer Every day at 0:00 only for 10 minutes Data Transfer Each GNU Radio + ppp(Dial Up) Connection 3G/LT USB Dongle Examle: LG L-03D When connection is not stabilized 1. Use Self-Power USB Hub
  • 35. ©SIProp Project, 2006-2018 35 Disable CD-ROM function Setting /etc/udev/rules.d/40-usb_modeswitch.rules /etc/usb_modeswitch.d/1004:6327 1. ATTRS{idVendor}=="1004", ATTRS{idProduct}=="6327", MODE:="0666", RUN+="usb_modeswitch '%b/%k'" 1. DefaultVendor= 0x1004 2. DefaultProduct=0x6327 3. TargetVendor= 0x1004 4. TargetProductList="6326" 5. MessageContent="55534243123456780000000000000aff554d534348470000000 00000000000"
  • 36. ©SIProp Project, 2006-2018 36 Recognized as a USB Modem Setting /etc/udev/rules.d/50-l03d.rules 1. ATTRS{idVendor}=="1004", ATTRS{idProduct}=="6326", MODE:="0666", RUN+="/sbin/modprobe usbserial vendor=0x1004 product=0x6326"
  • 37. ©SIProp Project, 2006-2018 37 Setup PPP connection Use wvdial 1. sudo apt install usb-modeswitch wvdial
  • 38. ©SIProp Project, 2006-2018 38 Example:So-net’s 0SIM(Japan) Settng /etc/wvdial.conf 1. [Dialer Defaults] 2. Init1 = ATZ 3. Init2 = ATH 4. Init3 = AT+CGDCONT=2,"IP","so-net.jp" 5. Dial Attempts = 3 6. Stupid Mode = yes 7. Modem Type = Analog Modem 8. Dial Command = ATD 9. New PPPD = yes 10. APN = so-net.jp 11. Modem = /dev/ttyUSB2 12. Baud = 460800 13. ISDN = 0 14. Phone = *99***2# 15. Auto Reconnect = yes 16. Username = nuro 17. Password = nuro 18. Carrier Check = no
  • 39. ©SIProp Project, 2006-2018 39 Add ppp Network Interface Add ppp Network Interface /etc/network/interfaces.d/0sim Connect Disconnect Warning: Power-Saving mode is turning OFF 1. sudo ifdown 0sim 1. sudo ifup 0sim 1. allow-hotplug 0sim 2. iface 0sim inet wvdial
  • 40. ©SIProp Project, 2006-2018 40 Global Connection:TeamViewer TeamViewer for Raspberry Pi https://download.teamviewer.com/download/linux/te amviewer-host_armhf.deb Setting Create TeamViewer account in advance. 1. wget https://download.teamviewer.com/download/linux/teamvie wer-host_armhf.deb 2. sudo apt install ./teamviewer-host_armhf.deb 3. sudo teamviewer setup
  • 41. ©SIProp Project, 2006-2018 41 Setup Automatic Startup 1/2 1. Connect at 0:0 every day 2. Disconnect at 0:10 every day 3. At the time of starting and to unite time by NTP Setting 1. 0 0 * * * /home/pi/globalcon_on.sh 2. 10 0 * * * /home/pi/globalcon_off.sh 3. @reboot /home/pi/globalcon_init.sh 1. sudo crontab -e
  • 42. ©SIProp Project, 2006-2018 42 Setup Automatic Startup 2/2 Connect (with Power-Saving Mode) Script /home/pi/globalcon_on.sh /home/pi/globalcon_off.sh 1. #!/bin/sh 2. /home/pi/savepower_off.sh 3. sleep 20s 4. /sbin/ifup 0sim 5. sleep 10s 6. /sbin/route add default dev ppp0 7. /usr/sbin/ntpdate ntp.nict.jp 1. #!/bin/sh 2. /sbin/route del default dev ppp0 3. /sbin/ifdown 0sim 4. /home/pi/savepower_on.sh 5. sleep 1s 6. /home/pi/savepower_on.sh
  • 43. ©SIProp Project, 2006-2018 43 Setup Automatic Re-Connect Re-Connect Script /home/pi/globalcon_recon.sh Check connection for every minute during connection Setting 1. #!/bin/sh 2. isAlive=`ps -ef | grep " wvdial " | 3. grep -v grep | wc -l` 4. if [ $isAlive = 1 ]; then 5. echo alive 6. else 7. echo die 8. /home/pi/globalcon_off.sh 9. /home/pi/globalcon_on.sh 10.fi 1. sudo crontab -e 1. 1,2,3,4,5,6,7,8,9 0 * * * /home/pi/globalcon_recon.sh
  • 44. ©SIProp Project, 2006-2018 44 About The OS Image which the all the soft setups have finished
  • 45. ©SIProp Project, 2006-2018 45 The OS Image which the all the soft setups have finished About The OS Image which the all the soft setups have finished 1. http://www.noritsuna.jp/download/raspi-sdr_GS_en.zip 1. Image Size 1. 8GB or more microSD 2. LAN IP 1. DHCP 3. Remote Operations 1. Local Network: VNC 2. Global Network: TeamViewer 1. No Account. Please execute “teamviewer setup” 4. Login 1. User: pi , Password: raspberry 5. Power-Saving Mode 1. Control /home/pi/savepower_[on|off].sh 2. Startup Setting “sudo crontab –e” & Enable comment out lines 1. Warning: If on, Disable USB Devices & HDMI.
  • 46. ©SIProp Project, 2006-2018 46 Example: Connect by TeamViewer & Use GNU Radio