Skip to content

Commit f33959a

Browse files
authored
Revert "DVB-T Code Version1.0"
1 parent 0ac066d commit f33959a

File tree

15 files changed

+38
-700
lines changed

15 files changed

+38
-700
lines changed

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
# CalibrateSDR
22
what is my SDR frequency?
3+
4+
5+
## Troubleshooting
6+
7+
If running the program throws error- ```AttributeError: python: undefined symbol: rtlsdr_get_device_count```, try this:
8+
9+
Refer to this [issue](https://github.com/roger-/pyrtlsdr/issues/7#issuecomment-47391543). If it still persists, build [librtlsdr](https://github.com/librtlsdr/librtlsdr) from it source and make sure it's path is defined correctly.
10+
11+
* Arch-based OS: use AUR source [rtl-sdr-librtlsdr](https://aur.archlinux.org/packages/rtl-sdr-librtlsdr-git/)
12+
* Ubuntu/ Debiam based OS: Run ```sudo apt update && sudo apt install librtlsdr-dev```
13+
* On Windows, it gets automatically installed while using ```pip install pyrtlsdr```
14+
15+
Note: After installing, make sure PATH has been define accordingly, for example: ```export LD_LIBRARY_PATH="/usr/local/lib"```

cali.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import argparse
22
import os
3-
# from tqdm import tqdm
3+
from tqdm import tqdm
44
import time
55
import calibratesdr as cali
66

@@ -29,11 +29,11 @@ def main(input):
2929

3030
elif mode == "dvbt":
3131
print("starting mode: dvbt")
32-
# cali.dvbt.dvbt.get_ppm()
32+
cali.dvbt.dvbt.main()
3333

3434
elif mode == "gsm":
3535
print("starting mode: gsm")
36-
# cali.gsm.gsm.main()
36+
cali.gsm.gsm.main()
3737

3838
else:
3939
print("ending")
@@ -130,11 +130,11 @@ def main(input):
130130

131131
elif mode == "dvbt":
132132
print("starting mode: dvbt")
133-
# cali.dvbt.dvbt.main()
133+
cali.dvbt.dvbt.main()
134134

135135
elif mode == "gsm":
136136
print("starting mode: gsm")
137-
# cali.gsm.gsm.main()
137+
cali.gsm.gsm.main()
138138

139139
else:
140140
print("ending")
@@ -196,4 +196,4 @@ def main(input):
196196
args = my_parser.parse_args()
197197
print(vars(args))
198198

199-
main(vars(args))
199+
main(vars(args))
-236 Bytes
Binary file not shown.
-3.03 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

calibratesdr/dabplus/dab.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,13 @@ def channels():
211211
{"block": "12N", "f_center": 224096000},
212212
{"block": "12B", "f_center": 225648000},
213213
{"block": "12C", "f_center": 227360000},
214-
{"block": "12D", "f_center": 229072000}
214+
{"block": "12D", "f_center": 229072000},
215+
{"block": "13A", "f_center": 230784000},
216+
{"block": "13B", "f_center": 232496000},
217+
{"block": "13C", "f_center": 234208000},
218+
{"block": "13D", "f_center": 235776000},
219+
{"block": "13E", "f_center": 237488000},
220+
{"block": "13F", "f_center": 239200000}
215221
]}
216222

217223
return dab
@@ -260,4 +266,4 @@ def block_check(signal_bins, snr, limit_db=2.0):
260266

261267

262268
if __name__ == '__main__':
263-
print("this is dab support so far")
269+
print("this is dab support so far")
Binary file not shown.
-1.38 KB
Binary file not shown.

0 commit comments

Comments
 (0)