This commit is contained in:
Serge 2019-08-03 21:52:54 -07:00
commit b1eeda464e
6 changed files with 2737 additions and 33 deletions

View File

@ -4,7 +4,8 @@ VERSION = $(shell git describe --tags --abbrev=0)
GITCOUNT = $(shell git rev-list HEAD --count)
UNAME = $(shell uname)
OBJS = main.o util.o radio.o dfu-libusb.o uv380.o md380.o rd5r.o gd77.o hid.o serial.o d868uv.o
OBJS = main.o util.o radio.o dfu-libusb.o uv380.o md380.o rd5r.o \
gd77.o hid.o serial.o d868uv.o dm1801.o
LDFLAGS = -g
LIBS = $(shell pkg-config --libs --static libusb-1.0)
CFLAGS = -g -O -Wall -Werror -DVERSION='"$(VERSION).$(GITCOUNT)"' \

View File

@ -5,7 +5,8 @@ GITCOUNT = $(shell git rev-list HEAD --count)
CFLAGS = -g -O -Wall -Werror -DVERSION='"$(VERSION).$(GITCOUNT)"'
LDFLAGS = -g -s
OBJS = main.o util.o radio.o dfu-windows.o uv380.o md380.o rd5r.o gd77.o hid.o hid-windows.o serial.o d868uv.o
OBJS = main.o util.o radio.o dfu-windows.o uv380.o md380.o rd5r.o \
gd77.o hid.o hid-windows.o serial.o d868uv.o dm1801.o
LIBS = -lhid -lsetupapi
# Compiling Windows binary from Linux

2345
dm1801.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,369 @@
#
# Generic DMR configuration for South Bay Area.
#
Radio: Baofeng DM-1801
# Table of analog channels.
# 1) Channel number: 1-1024
# 2) Name: up to 16 characters, use '_' instead of space
# 3) Receive frequency in MHz
# 4) Transmit frequency or +/- offset in MHz
# 5) Transmit power: High, Low
# 6) Scan list: - or index
# 7) Transmit timeout timer in seconds: 0, 15, 30, 45... 555
# 8) Receive only: -, +
# 9) Admit criteria: -, Free, Tone
# 10) Squelch level: Normal, Tight
# 11) Guard tone for receive, or '-' to disable
# 12) Guard tone for transmit, or '-' to disable
# 13) Bandwidth in kHz: 12.5, 20, 25
#
Analog Name Receive Transmit Power Scan TOT RO Admit Squelch RxTone TxTone Width
# VHF Band 144-148
201 Palo_Alto_N6NFI 145.230 -0.6 High 1 180 - Free Normal - 100.0 25
202 Milpitas_W6MLP 145.430 -0.6 High 1 180 - Free Normal - 85.4 25
203 Saratoga_K6SA 146.655 -0.6 High 1 180 - Free Normal - 114.8 25
204 Newark_N6MM 146.670 -0.6 High 1 180 - Free Normal - 110.9 25
205 Mill_Vally_K6GWE 146.700 -0.6 High 1 180 - Free Normal - 179.9 25
206 San_Jose_K6INC 146.820 -0.6 High 1 180 - Free Normal - 123.0 25
207 Orinda_K6LNK 146.850 -0.6 High 1 180 - Free Normal - 103.5 25
208 Pleasanton_W6SRR 147.045 +0.6 High 1 180 - Free Normal - 94.8 25
209 Concord_W6CX 147.060 +0.6 High 1 180 - Free Normal - 100.0 25
210 Napa_W6CO 147.180 +0.6 High 1 180 - Free Normal - 91.5 25
211 Morgan_Hil_K7DAA 147.330 +0.6 High 1 180 - Free Normal - 103.5 25
212 Los_Gatos_AB6LI 147.945 -0.6 High 1 180 - Free Normal - 156.7 25
# UHF Band 440-446
301 San_Jose_W6YOP 440.275 +5 High 1 180 - Free Normal - 127.3 25
302 Woodside_N6ZX 440.450 +5 High 1 180 - Free Normal - 107.2 25
303 Campbell_NO1PC 441.025 +5 High 1 180 - Free Normal - 110.9 25
304 Los_Gatos_K6UB 441.700 +5 High 1 180 - Free Normal - 127.3 25
305 San_Jose_WB6ZVW 442.500 +5 High 1 180 - Free Normal - 100.0 25
306 San_Jose_WR6ABD 442.900 +5 High 1 180 - Free Normal - 162.2 25
307 Morgan_Hil_K7DAA 442.975 +5 High 1 180 - Free Normal - 100.0 25
308 Orinda_N6QOP 443.050 +5 High 1 180 - Free Normal - 114.8 25
309 San_Jose_K6LNK 443.075 +5 High 1 180 - Free Normal - 123.0 25
310 Palo_Alto_WW6BAY 443.225 +5 High 1 180 - Free Normal - 100.0 25
311 San_Jose_KE6STH 443.575 +5 High 1 180 - Free Normal - 110.9 25
312 Oakland_WW6BAY 443.975 +5 High 1 180 - Free Normal - 100.0 25
313 San_Jose_K6GOD 444.725 +5 High 1 180 - Free Normal - 162.2 25
314 Los_Gatos_WB6KHP 444.975 +5 High 1 180 - Free Normal - 127.3 25
# Simplex frequencies
401 S_446.0 446.000 +0 High 2 180 - Free Normal - - 25
402 S_446.5 446.500 +0 High 2 180 - Free Normal - - 25
403 S_441.0 441.000 +0 High 2 180 - Free Normal - - 25
404 S_146.52 146.520 +0 High 2 180 - Free Normal - - 25
405 S_146.46 146.460 +0 High 2 180 - Free Normal - - 25
406 S_147.42 147.420 +0 High 2 180 - Free Normal - - 25
407 WX_1 162.450 +0 Low - 180 + Free Normal - - 25
408 WX_5 162.550 +0 Low - 180 + Free Normal - - 25
# Table of digital channels.
# 1) Channel number: 1-1024
# 2) Name: up to 16 characters, use '_' instead of space
# 3) Receive frequency in MHz
# 4) Transmit frequency or +/- offset in MHz
# 5) Transmit power: High, Low
# 6) Scan list: - or index in Scanlist table
# 7) Transmit timeout timer in seconds: 0, 15, 30, 45... 555
# 8) Receive only: -, +
# 9) Admit criteria: -, Free, Color
# 10) Color code: 0, 1, 2, 3... 15
# 11) Time slot: 1 or 2
# 12) Receive group list: - or index in Grouplist table
# 13) Contact for transmit: - or index in Contacts table
#
Digital Name Receive Transmit Power Scan TOT RO Admit Color Slot RxGL TxContact
# (1) W6TCP, Milpitas, NorCal
1 Mi_RX_All 440.125 +5 Low - 180 + Color 3 1 1 - # Receive only
2 Mi_World 440.125 +5 High - 180 - Color 3 1 11 91 # 91 Worldwide
3 Mi_North_America 440.125 +5 High - 180 - Color 3 1 12 93 # 93 North America
4 Mi_TAC_310 440.125 +5 High - 180 - Color 3 1 13 10 # 310 TAC 310
5 Mi_TAC_311 440.125 +5 High - 180 - Color 3 1 14 11 # 311 TAC 311
6 Mi_USA_Nation 440.125 +5 High - 180 - Color 3 1 15 100 # 3100 USA Nationwide
7 Mi_California 440.125 +5 High - 180 - Color 3 1 16 106 # 3106 California
8 Mi_NorCal 440.125 +5 High - 180 - Color 3 2 19 68 # 31068 NorCal
9 Mi_Bay-Net 440.125 +5 High - 180 - Color 3 1 20 75 # 31075 Bay-Net
10 Mi_Anarchy 440.125 +5 High - 180 - Color 3 2 23 66 # 31666 DMR of Anarchy
11 Mi_NC_5150 440.125 +5 High - 180 - Color 3 2 24 95 # 95150 NorCal 5150
12 Mi_Parrot 440.125 +5 High - 180 - Color 3 1 - 90 # 9990 Parrot
# (2) N6AMG, San Bruno, Baycom
21 Br_RX_All 440.500 +5 Low - 180 + Color 1 1 1 - # Receive only
22 Br_World 440.500 +5 High - 180 - Color 1 1 11 91 # 91 Worldwide
23 Br_North_America 440.500 +5 High - 180 - Color 1 1 12 93 # 93 North America
24 Br_TAC_310 440.500 +5 High - 180 - Color 1 1 13 10 # 310 TAC 310
25 Br_TAC_311 440.500 +5 High - 180 - Color 1 1 14 11 # 311 TAC 311
26 Br_USA_Nation 440.500 +5 High - 180 - Color 1 1 15 100 # 3100 USA Nationwide
27 Br_California 440.500 +5 High - 180 - Color 1 1 16 106 # 3106 California
28 Br_NC_AllStr 440.500 +5 High - 180 - Color 1 1 18 65 # 31065 NorCal AllStar
29 Br_NorCal 440.500 +5 High - 180 - Color 1 2 19 68 # 31068 NorCal
30 Br_Bay-Net 440.500 +5 High - 180 - Color 1 1 20 75 # 31075 Bay-Net
31 Br_USA_Area6 440.500 +5 High - 180 - Color 1 1 22 96 # 31096 USA Area 6
32 Br_Anarchy 440.500 +5 High - 180 - Color 1 2 23 66 # 31666 DMR of Anarchy
33 Br_NC_5150 440.500 +5 High - 180 - Color 1 2 24 95 # 95150 NorCal 5150
34 Br_Baycom 440.500 +5 High - 180 - Color 1 2 25 97 # 97150 Baycom
35 Br_Parrot 440.500 +5 High - 180 - Color 1 1 - 90 # 9990 Parrot
# (3) WB6ECE, Boulder Creek, Baycom
41 Bo_RX_All 440.5875 +5 Low - 180 + Color 2 1 1 - # Receive only
42 Bo_World 440.5875 +5 High - 180 - Color 2 1 11 91 # 91 Worldwide
43 Bo_North_America 440.5875 +5 High - 180 - Color 2 1 12 93 # 93 North America
44 Bo_TAC_310 440.5875 +5 High - 180 - Color 2 1 13 10 # 310 TAC 310
45 Bo_TAC_311 440.5875 +5 High - 180 - Color 2 1 14 11 # 311 TAC 311
46 Bo_USA_Nation 440.5875 +5 High - 180 - Color 2 1 15 100 # 3100 USA Nationwide
47 Bo_California 440.5875 +5 High - 180 - Color 2 1 16 106 # 3106 California
48 Bo_Santa_Clara 440.5875 +5 High - 180 - Color 2 1 17 64 # 31064 Santa Clara County
49 Bo_NC_AllStr 440.5875 +5 High - 180 - Color 2 1 18 65 # 31065 NorCal AllStar
50 Bo_NorCal 440.5875 +5 High - 180 - Color 2 2 19 68 # 31068 NorCal
51 Bo_Bay-Net 440.5875 +5 High - 180 - Color 2 1 20 75 # 31075 Bay-Net
52 Bo_USA_Area6 440.5875 +5 High - 180 - Color 2 1 22 96 # 31096 USA Area 6
53 Bo_Anarchy 440.5875 +5 High - 180 - Color 2 2 23 66 # 31666 DMR of Anarchy
54 Bo_NC_5150 440.5875 +5 High - 180 - Color 2 2 24 95 # 95150 NorCal 5150
55 Bo_Baycom 440.5875 +5 High - 180 - Color 2 2 25 97 # 97150 Baycom
56 Bo_Parrot 440.5875 +5 High - 180 - Color 2 1 - 90 # 9990 Parrot
# (4) K6OTR, Palo Alto, Baycom
61 PA_RX_All 441.850 +5 Low - 180 + Color 1 1 1 - # Receive only
62 PA_World 441.850 +5 High - 180 - Color 1 1 11 91 # 91 Worldwide
63 PA_North_America 441.850 +5 High - 180 - Color 1 1 12 93 # 93 North America
64 PA_TAC_310 441.850 +5 High - 180 - Color 1 1 13 10 # 310 TAC 310
65 PA_TAC_311 441.850 +5 High - 180 - Color 1 1 14 11 # 311 TAC 311
66 USA_Nation 441.850 +5 High - 180 - Color 1 1 15 100 # 3100 USA Nationwide
67 PA_California 441.850 +5 High - 180 - Color 1 1 16 106 # 3106 California
68 PA_NC_AllStr 441.850 +5 High - 180 - Color 1 1 18 65 # 31065 NorCal AllStar
69 PA_NorCal 441.850 +5 High - 180 - Color 1 2 19 68 # 31068 NorCal
70 PA_Bay-Net 441.850 +5 High - 180 - Color 1 1 20 75 # 31075 Bay-Net
71 PA_USA_Area6 441.850 +5 High - 180 - Color 1 1 22 96 # 31096 USA - Area 6 4646
72 PA_Anarchy 441.850 +5 High - 180 - Color 1 2 23 66 # 31666 DMR of Anarchy
73 PA_NC_5150 441.850 +5 High - 180 - Color 1 2 24 95 # 95150 NorCal 5150
74 PA_Baycom 441.850 +5 High - 180 - Color 1 2 25 97 # 97150 Baycom
75 PA_Parrot 441.850 +5 High - 180 - Color 1 1 - 90 # 9990 Parrot
# (5) KK6USZ, Saratoga
81 Sa_RX_All 441.950 +5 Low - 180 + Color 1 1 1 - # Receive only
82 Sa_World 441.950 +5 High - 180 - Color 1 1 11 91 # 91 Worldwide
83 Sa_North_America 441.950 +5 High - 180 - Color 1 1 12 93 # 93 North America
84 Sa_TAC_310 441.950 +5 High - 180 - Color 1 1 13 10 # 310 TAC 310
85 Sa_TAC_311 441.950 +5 High - 180 - Color 1 1 14 11 # 311 TAC 311
86 Sa_USA_Nation 441.950 +5 High - 180 - Color 1 1 15 100 # 3100 USA Nationwide
87 Sa_California 441.950 +5 High - 180 - Color 1 1 16 106 # 3106 California
88 Sa_Nebraska 441.950 +5 High - 180 - Color 1 1 26 131 # 3131 Nebraska
89 Sa_Texas 441.950 +5 High - 180 - Color 1 1 27 148 # 3148 Texas
90 Sa_Santa_Clara 441.950 +5 High - 180 - Color 1 2 17 64 # 31064 Santa Clara County
91 Sa_NorCal 441.950 +5 High - 180 - Color 1 2 19 68 # 31068 NorCal
92 Sa_Bay-Net 441.950 +5 High - 180 - Color 1 2 20 75 # 31075 Bay-Net
93 Sa_Anarchy 441.950 +5 High - 180 - Color 1 2 23 66 # 31666 DMR of Anarchy
94 Sa_NC_5150 441.950 +5 High - 180 - Color 1 2 24 95 # 95150 NorCal 5150
95 Sa_Baycom 441.950 +5 High - 180 - Color 1 2 25 97 # 97150 Baycom
96 Sa_Parrot 441.950 +5 High - 180 - Color 1 1 - 90 # 9990 Parrot
# (6) WA6YCZ, Mt Umunhum, Baycom
101 Um_RX_All 442.5375 +5 Low - 180 + Color 1 1 1 - # Receive only
102 Um_World 442.5375 +5 High - 180 - Color 1 1 11 91 # 91 Worldwide
103 Um_North_America 442.5375 +5 High - 180 - Color 1 1 12 93 # 93 North America
104 Um_TAC_310 442.5375 +5 High - 180 - Color 1 1 13 10 # 310 TAC 310
105 Um_TAC_311 442.5375 +5 High - 180 - Color 1 1 14 11 # 311 TAC 311
106 Um_USA_Nation 442.5375 +5 High - 180 - Color 1 1 15 100 # 3100 USA Nationwide
107 Um_California 442.5375 +5 High - 180 - Color 1 1 16 106 # 3106 California
108 Um_Santa_Clara 442.5375 +5 High - 180 - Color 1 1 17 64 # 31064 Santa Clara County
109 Um_NC_AllStr 442.5375 +5 High - 180 - Color 1 1 18 65 # 31065 NorCal AllStar
110 Um_NorCal 442.5375 +5 High - 180 - Color 1 2 19 68 # 31068 NorCal
111 Um_Bay-Net 442.5375 +5 High - 180 - Color 1 1 20 75 # 31075 Bay-Net
112 Um_USA_Area6 442.5375 +5 High - 180 - Color 1 1 22 96 # 31096 USA Area 6
113 Um_Anarchy 442.5375 +5 High - 180 - Color 1 2 23 66 # 31666 DMR of Anarchy
114 Um_NC_5150 442.5375 +5 High - 180 - Color 1 2 24 95 # 95150 NorCal 5150
115 Um_Baycom 442.5375 +5 High - 180 - Color 1 2 25 97 # 97150 Baycom
116 Um_Parrot 442.5375 +5 High - 180 - Color 1 1 - 90 # 9990 Parrot
# (7) K6LNK, Berkeley, NorCal, Carla
121 Be_RX_All 443.500 +5 Low - 180 + Color 1 1 1 - # Receive only
122 Be_World 443.500 +5 High - 180 - Color 1 1 11 91 # 91 Worldwide
123 Be_North_America 443.500 +5 High - 180 - Color 1 1 12 93 # 93 North America
124 Be_TAC_310 443.500 +5 High - 180 - Color 1 1 13 10 # 310 TAC 310
125 Be_TAC_311 443.500 +5 High - 180 - Color 1 1 14 11 # 311 TAC 311
126 Be_USA_Nation 443.500 +5 High - 180 - Color 1 1 15 100 # 3100 USA Nationwide
127 Be_California 443.500 +5 High - 180 - Color 1 1 16 106 # 3106 California
128 Be_NorCal 443.500 +5 High - 180 - Color 1 2 19 68 # 31068 NorCal
129 Be_Bay-Net 443.500 +5 High - 180 - Color 1 1 20 75 # 31075 Bay-Net
130 Be_Anarchy 443.500 +5 High - 180 - Color 1 2 23 66 # 31666 DMR of Anarchy
131 Be_NC_5150 443.500 +5 High - 180 - Color 1 2 24 95 # 95150 NorCal 5150
132 Be_Parrot 443.500 +5 High - 180 - Color 1 1 - 90 # 9990 Parrot
# (8) K6HLE, Loma Prieta, NorCal, AREA
141 Lo_RX_All 444.025 +5 Low - 180 + Color 1 1 1 - # Receive only
142 Lo_World 444.025 +5 High - 180 - Color 1 1 11 91 # 91 Worldwide
143 Lo_North_America 444.025 +5 High - 180 - Color 1 1 12 93 # 93 North America
144 Lo_TAC_310 444.025 +5 High - 180 - Color 1 1 13 10 # 310 TAC 310
145 Lo_TAC_311 444.025 +5 High - 180 - Color 1 1 14 11 # 311 TAC 311
146 Lo_USA_Nation 444.025 +5 High - 180 - Color 1 1 15 100 # 3100 USA Nationwide
147 Lo_California 444.025 +5 High - 180 - Color 1 1 16 106 # 3106 California
148 Lo_NorCal 444.025 +5 High - 180 - Color 1 2 19 68 # 31068 NorCal
149 Lo_Bay-Net 444.025 +5 High - 180 - Color 1 1 20 75 # 31075 Bay-Net
150 Lo_USA_Area6 444.025 +5 High - 180 - Color 1 1 22 96 # 31096 USA - Area 6 4646
151 Lo_Anarchy 444.025 +5 High - 180 - Color 1 2 23 66 # 31666 DMR of Anarchy
152 Lo_NC_5150 444.025 +5 High - 180 - Color 1 2 24 95 # 95150 NorCal 5150
153 Lo_Parrot 444.025 +5 High - 180 - Color 1 1 - 90 # 9990 Parrot
# (9) WW6BAY, Palo Alto, Bay-Net
161 Bay_RX_All 444.350 +5 Low - 180 + Color 1 1 1 - # Receive only
162 Bay_World 444.350 +5 High - 180 - Color 1 1 11 91 # 91 Worldwide
163 Bay_North_Am 444.350 +5 High - 180 - Color 1 1 12 93 # 93 North America
164 Bay_TAC_310 444.350 +5 High - 180 - Color 1 1 13 10 # 310 TAC 310
165 Bay_TAC_311 444.350 +5 High - 180 - Color 1 1 14 11 # 311 TAC 311
166 Bay_USA_Nation 444.350 +5 High - 180 - Color 1 1 15 100 # 3100 USA Nationwide
167 Bay_Santa_Clara 444.350 +5 High - 180 - Color 1 1 17 64 # 31064 Santa Clara County
168 Bay_NorCal 444.350 +5 High - 180 - Color 1 2 19 68 # 31068 NorCal
169 Bay_Bay-Net 444.350 +5 High - 180 - Color 1 2 20 75 # 31075 Bay-Net
170 Bay_Anarchy 444.350 +5 High - 180 - Color 1 2 23 66 # 31666 DMR of Anarchy
171 Bay_NC_5150 444.350 +5 High - 180 - Color 1 2 24 95 # 95150 NorCal 5150
172 Bay_Parrot 444.350 +5 High - 180 - Color 1 1 - 90 # 9990 Parrot
# (10) W6OTX, Alum Rock, NorCal, PAARA
181 Al_RX_All 444.475 +5 Low - 180 + Color 1 1 1 - # Receive only
182 Al_World 444.475 +5 High - 180 - Color 1 1 11 91 # 91 Worldwide
183 Al_North_Am 444.475 +5 High - 180 - Color 1 1 12 93 # 93 North America
184 Al_TAC_310 444.475 +5 High - 180 - Color 1 1 13 10 # 310 TAC 310
185 Al_TAC_311 444.475 +5 High - 180 - Color 1 1 14 11 # 311 TAC 311
186 Al_USA_Nation 444.475 +5 High - 180 - Color 1 1 15 100 # 3100 USA Nationwide
187 Al_California 444.475 +5 High - 180 - Color 1 1 16 106 # 3106 California
188 Al_NorCal 444.475 +5 High - 180 - Color 1 2 19 68 # 31068 NorCal
189 Al_Bay-Net 444.475 +5 High - 180 - Color 1 1 20 75 # 31075 Bay-Net
190 Al_Anarchy 444.475 +5 High - 180 - Color 1 2 23 66 # 31666 DMR of Anarchy
191 Al_NC_5150 444.475 +5 High - 180 - Color 1 2 24 95 # 95150 NorCal 5150
192 Al_Parrot 444.475 +5 High - 180 - Color 1 1 - 90 # 9990 Parrot
# (11) DMR simplex
701 441.0 441.000 +0 High 3 555 - - 1 1 9 99
702 446.5 446.500 +0 High 3 555 - - 1 1 9 99
703 446.075 446.075 +0 High 3 555 - - 1 1 9 99
704 433.45 433.450 +0 High 3 555 - - 1 1 9 99
705 145.79 145.790 +0 High 3 555 - - 1 1 9 99
706 145.51 145.510 +0 High 3 555 - - 1 1 9 99
# Table of channel zones.
# 1) Zone number: 1-250
# 2) Name: up to 16 characters, use '_' instead of space
# 3) List of channels: numbers and ranges (N-M) separated by comma
#
Zone Name Channels
1 Milpitas 1-12 # 440.125 W6TCP
2 San_Bruno 21-35 # 440.500 N6AMG
3 Boulder_Creek 41-56 # 440.5875 WB6ECE
4 Palo_Alto 61-75 # 441.850 K6OTR
5 Saratoga 81-96 # 441.950 KK6USZ
6 Mt_Umunhum 101-116 # 442.5375 WA6YCZ
7 Berkeley 121-132 # 443.500 K6LNK
8 Loma_Prieta 141-153 # 444.025 K6HLE
9 Baynet_Palo_Alto 161-172 # 444.350 WW6BAY
10 Alum_Rock 181-192 # 444.475 W6OTX
11 DMR_Simplex 701-706 # DMR Simplex: UHF, VHF
12 VHF 201-212 # 144-148 VHF Band
13 UHF 301-314 # 440-446 UHF Band
14 FM_Simplex 401-408 # FM Simplex: VHF, UHF
# Table of scan lists.
# 1) Scan list number: 1-250
# 2) Name: up to 16 characters, use '_' instead of space
# 3) Priority channel 1 (50% of scans): -, Sel or index
# 4) Priority channel 2 (25% of scans): -, Sel or index
# 5) Designated transmit channel: Last, Sel or index
# 6) List of channels: numbers and ranges (N-M) separated by comma
#
Scanlist Name PCh1 PCh2 TxCh Channels
1 Analog - - Last 201-212,301-314
2 FM_Simplex - - Last 401-406
3 DMR_Simplex - - Last 701-706
# Table of group lists.
# 1) Group list number: 1-40
# 2) Name: up to 16 characters, use '_' instead of space
# 3) List of contacts: numbers and ranges (N-M) separated by comma
#
Grouplist Name Contacts
1 All_Groups 91 # 91 Worldwide
1 All_Groups 93 # 93 North America
1 All_Groups 10 # 310 TAC 310
1 All_Groups 11 # 311 TAC 311
1 All_Groups 100 # 3100 USA Nationwide
1 All_Groups 106 # 3106 California
1 All_Groups 64 # 31064 Santa Clara County
1 All_Groups 65 # 31065 NorCal AllStar
1 All_Groups 68 # 31068 NorCal
1 All_Groups 75 # 31075 Bay-Net
1 All_Groups 78 # 31078 XLX013D PAPA
1 All_Groups 96 # 31096 USA - Area 6 4646
1 All_Groups 66 # 31666 DMR of Anarchy
1 All_Groups 95 # 95150 NorCal 5150
1 All_Groups 97 # 97150 Baycom
9 Simplex 99 # 99 Simplex
11 Worldwide 91 # 91 Worldwide
12 North_America 93 # 93 North America
13 TAC_310 10 # 310 TAC 310
14 TAC_311 11 # 311 TAC 311
15 USA_Nationwide 100 # 3100 USA Nationwide
16 California 106 # 3106 California
17 Santa_Clara_Cnty 64 # 31064 Santa Clara County
18 NorCal_AllStar 65 # 31065 NorCal AllStar
19 NorCal 68 # 31068 NorCal
20 Bay-Net 75 # 31075 Bay-Net
21 XLX013D_PAPA 78 # 31078 XLX013D PAPA
22 USA_Area_6 96 # 31096 USA - Area 6 4646
23 DMR_of_Anarchy 66 # 31666 DMR of Anarchy
24 NorCal_5150 95 # 95150 NorCal 5150
25 Baycom 97 # 97150 Baycom
26 Nebraska 131 # 3131 Nebraska
27 Texas 148 # 3148 Texas
# Table of contacts.
# 1) Contact number: 1-256
# 2) Name: up to 16 characters, use '_' instead of space
# 3) Call type: Group, Private, All
# 4) Call ID: 1...16777215
# 5) Call receive tone: -, +
#
Contact Name Type ID RxTone
# From all Bay Area repeaters
91 Worldwide Group 91 -
93 North_America Group 93 -
99 Simplex Group 99 -
10 TAC_310 Group 310 -
11 TAC_311 Group 311 -
100 USA_Nationwide Group 3100 -
106 California Group 3106 -
131 Nebraska Group 3131 -
148 Texas Group 3148 -
64 Santa_Clara_Cnty Group 31064 -
65 NorCal_AllStar Group 31065 -
68 NorCal Group 31068 -
72 KPARN Group 31072 -
75 Bay-Net Group 31075 -
78 XLX013D_PAPA Group 31078 -
96 USA_Area_6 Group 31096 -
28 SNARS Group 31328 -
29 SNARS_2 Group 31329 -
66 DMR_of_Anarchy Group 31666 -
95 NorCal_5150 Group 95150 -
97 Baycom Group 97150 -
# Private
90 Parrot Private 9990 -
42 Sergey_KK6ABQ Private 3114542 + # Sergey Vakulenko
# Table of text messages.
# 1) Message number: 1-32
# 2) Text: up to 144 characters
#
Message Text
1 Hi there!
2 QSY Norcal 31068, pls
3 QSY California 3106, pls
4 Be Right Back
5 My email is CALLSIGN@arrl.net
6 73 . . .

20
gd77.c
View File

@ -2342,23 +2342,3 @@ radio_device_t radio_gd77 = {
gd77_update_timestamp,
//TODO: gd77_write_csv,
};
//
// Baofeng DM-1801
//
radio_device_t radio_dm1801 = {
"Baofeng DM-1801",
gd77_download,
gd77_upload,
gd77_is_compatible,
gd77_read_image,
gd77_save_image,
gd77_print_version,
gd77_print_config,
gd77_verify_config,
gd77_parse_parameter,
gd77_parse_header,
gd77_parse_row,
gd77_update_timestamp,
//TODO: gd77_write_csv,
};

16
radio.c
View File

@ -46,9 +46,9 @@ static struct {
{ "2017", &radio_md2017 }, // TYT MD-2017, Retevis RT82
{ "MD9600", &radio_md9600 }, // TYT MD-9600
{ "BF-5R", &radio_rd5r }, // Baofeng RD-5R, TD-5R
{ "1801", &radio_dm1801 }, // Baofeng DM-1801
{ "DM-1701", &radio_rt84 }, // Baofeng DM-1701, Retevis RT84
{ "MD-760P", &radio_gd77 }, // Radioddity GD-77, version 3.1.1 and later
{ "1801", &radio_dm1801 }, // Baofeng DM-1801
{ "D868UVE", &radio_d868uv }, // Anytone AT-D868UV
{ "D878UV", &radio_d878uv }, // Anytone AT-D878UV
{ "D6X2UV", &radio_dmr6x2 }, // BTECH DMR-6x2
@ -228,13 +228,20 @@ void radio_read_image(const char *filename)
fprintf(stderr, "%s: Cannot read header.\n", filename);
exit(-1);
}
fseek(img, 0, SEEK_SET);
if (memcmp(ident, "BF-5R", 5) == 0) {
device = &radio_rd5r;
} else if (memcmp(ident, "1801", 4) == 0) {
device = &radio_dm1801;
} else if (memcmp(ident, "MD-760P", 7) == 0) {
// Both GD-77 and DM-1801 have the same header.
fseek(img, 0x90, SEEK_SET);
if (fread(ident, 1, 8, img) != 8) {
fprintf(stderr, "%s: Cannot read radio ID.\n", filename);
exit(-1);
}
if (memcmp(ident, "BF-1801", 7) == 0) {
device = &radio_dm1801;
} else {
device = &radio_gd77;
}
} else if (memcmp(ident, "MD-760", 6) == 0) {
fprintf(stderr, "Old Radioddity GD-77 v2.6 image not supported!\n");
exit(-1);
@ -243,6 +250,7 @@ void radio_read_image(const char *filename)
filename, ident);
exit(-1);
}
fseek(img, 0, SEEK_SET);
break;
default:
fprintf(stderr, "%s: Unrecognized file size %u bytes.\n",