Skip to content

Commit 5050749

Browse files
Merge pull request #344 from alanbjohnston/release-3
Beta v1.3.2 into master
2 parents da69157 + ce4e06a commit 5050749

File tree

133 files changed

+8840
-1266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+8840
-1266
lines changed

.gitignore

+20
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,23 @@ telem.wav
2222
cw.txt
2323
cwready
2424
logr.txt
25+
command_control
26+
command_control_direwolf
27+
command_count.txt
28+
command_tx
29+
cw0.txt
30+
cw1.txt
31+
cw2.txt
32+
cw3.txt
33+
cw4.txt
34+
cw5.txt
35+
cw6.txt
36+
logc.txt
37+
telem.txt
38+
telem_string.txt
39+
test
40+
transmit_dtmf
41+
uptime
42+
beacon_off
43+
battery_saver
44+

README.md

+4-18
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
# CubeSatSim
22

3-
There is beta release for the new CubeSatSim hardware and software in the beta branch.
4-
5-
### The beta hardware files are here:
6-
https://CubeSatSim.org/hardware-beta
7-
8-
### The beta wiki instructions are here:
9-
https://github.com/alanbjohnston/CubeSatSim/wiki/v1.3.2-0.-Home.
10-
11-
### The beta Bill of Materials (BOM) is here:
12-
https://CubeSatSim.org/bom-beta.
13-
14-
### Information about the latest beta software release is here:
15-
https://github.com/alanbjohnston/CubeSatSim/releases
16-
173
The CubeSat Simulator https://github.com/alanbjohnston/CubeSatSim/wiki is a low cost satellite emulator that runs on solar panels and batteries, transmits UHF radio telemetry, has a 3D printed frame, and can be extended by additional sensors and modules. This project is sponsored by the not-for-profit [Radio Amateur Satellite Corporation, AMSAT®](https://amsat.org).
184

195
There are several hardware versions and software branches to go with them - see below for information.
@@ -36,7 +22,7 @@ The other option is to start with a Raspberry Pi OS (Rasbian) image (Bullseye or
3622

3723
## Disk Image Option Steps
3824

39-
See the Wiki Software Install page for details: https://github.com/alanbjohnston/CubeSatSim/wiki/2.-Software-Install.
25+
See the Wiki Software Install page for details: [https://github.com/alanbjohnston/CubeSatSim/wiki/V1.3.2-2.-Software-Install](https://github.com/alanbjohnston/CubeSatSim/wiki/V1.3.2-2.-Software-Install#disk-image-option-steps).
4026

4127
## Installation Script Option Steps
4228

@@ -52,15 +38,15 @@ To get the software follow these steps:
5238

5339
`cd CubeSatSim`
5440

55-
`git checkout master`
41+
`git checkout beta`
5642

57-
You are now ready to install the software using this script in the CubeSatSim directory:
43+
`# You are now ready to install the software using this script in the CubeSatSim directory:`
5844

5945
`./install`
6046

6147
The installation script will run for quite a while. You will get prompted for your amateur radio callsign in all capitals, if you have one. If you don't you can put some other word which will be transmitted as a CW ID. You will also be prompted for your latitude and longitude for APRS packets. The script will prompt you if you want to modify /boot/config.txt file. Type a `y` and the script will complete. You will need to reboot.
6248

63-
See the Wiki for more details about the CubeSatSim https://github.com/alanbjohnston/CubeSatSim/wiki
49+
See the Wiki for more details about the CubeSatSim [https://github.com/alanbjohnston/CubeSatSim/wiki](https://github.com/alanbjohnston/CubeSatSim/wiki/v1.3.2-0.-Home)
6450

6551
Older Versions
6652

command

+132
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
#!/bin/bash
2+
3+
echo -e "\nCommand and Control script for CubeSatSim v2.0\n"
4+
5+
FILE=/home/pi/CubeSatSim/command_control
6+
if [ -f "$FILE" ]; then
7+
echo "Radio command and control is ON"
8+
# echo "Turning Command and control to OFF"
9+
# sudo rm /home/pi/CubeSatSim/command_control
10+
# echo "rebooting"
11+
# sudo systemctl stop rpitx
12+
# sudo reboot now
13+
# fi
14+
15+
else
16+
echo "Radio command and control is OFF"
17+
18+
while true
19+
do
20+
sleep 60
21+
done
22+
23+
# exit 1
24+
fi
25+
26+
if [ "$1" = "d" ]; then
27+
28+
echo "debug mode"
29+
30+
debug=1
31+
32+
else
33+
34+
debug=0
35+
36+
fi
37+
38+
echo "Waiting 20 seconds for USB"
39+
40+
sleep 20
41+
42+
FILE=/home/pi/CubeSatSim/command_control_direwolf
43+
if [[ $(arecord -l | grep "USB Audio Device") ]] && [ -f "$FILE" ]; then
44+
45+
echo "Starting Direwolf DTMF and APRS Command and Control"
46+
47+
if [ "$debug" = "1" ]; then
48+
49+
echo "debug mode"
50+
51+
direwolf -c /home/pi/CubeSatSim/direwolf-cc.conf -t 0l | python3 /home/pi/CubeSatSim/dtmf_aprs_cc.py d
52+
53+
else
54+
55+
direwolf -c /home/pi/CubeSatSim/direwolf-cc.conf -t 0l | python3 /home/pi/CubeSatSim/dtmf_aprs_cc.py
56+
57+
fi
58+
else
59+
60+
if [ -f "$FILE" ]; then
61+
62+
echo "Direwolf mode set but no USB soundcard detected!"
63+
64+
# echo "Trying RTL-FM"
65+
66+
timeout 1 rtl_test &> out.txt
67+
if [[ $(grep "No supported" out.txt) ]] ; then
68+
69+
echo "No RTL-SDR detected. Command and control is OFF"
70+
# sleep 60
71+
exit
72+
73+
else
74+
75+
echo "RTL-SDR detected."
76+
echo "Command and control is OFF"
77+
# sudo modprobe snd-aloop
78+
79+
# value=`aplay -l | grep "Loopback"`
80+
# echo "$value" > /dev/null
81+
# set -- $value
82+
83+
# card=${2:0:1}
84+
85+
# value=`cat /home/pi/CubeSatSim/sim.cfg`
86+
# echo "$value" > /dev/null
87+
# set -- $value
88+
89+
# freq=$8
90+
91+
# echo "Current value of rx is"
92+
# echo $freq
93+
94+
# rtl_fm -M fm -f ${freq}M -s 48k | aplay -D plughw:${card},0,0 -r 48000 -t raw -f S16_LE -c 1 &
95+
96+
# if [ "$debug" = "1" ]; then
97+
98+
# echo "debug mode"
99+
100+
# direwolf -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf.conf -t 0l | python3 /home/pi/CubeSatSim/dtmf_aprs_cc.py d
101+
102+
# else
103+
104+
# direwolf -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf.conf -t 0l | python3 /home/pi/CubeSatSim/dtmf_aprs_cc.py
105+
106+
# fi
107+
108+
sleep 5
109+
fi
110+
rm out.txt
111+
else
112+
113+
echo "Starting Carrier (squelch) Command and Control"
114+
115+
fi
116+
117+
if [ "$1" = "d" ]; then
118+
119+
echo "debug mode"
120+
121+
python3 /home/pi/CubeSatSim/squelch_cc.py d
122+
123+
else
124+
125+
python3 /home/pi/CubeSatSim/squelch_cc.py
126+
127+
fi
128+
fi
129+
130+
sudo killall -9 direwolf &>/dev/null
131+
sudo killall -9 rtl_fm &>/dev/null
132+

0 commit comments

Comments
 (0)