@@ -142,44 +142,46 @@ do_setup_admin_password() {
142
142
143
143
do_setup_concentrator_shield () {
144
144
FUN=$( dialog --title " Setup LoRa concentrator shield" --menu " Select shield:" 25 70 11 \
145
- 1 " IMST - iC880A" \
146
- 2 " IMST - iC980A" \
147
- 3 " IMST - Lite Gateway" \
148
- 4 " Pi Supply - LoRa Gateway HAT" \
149
- 5 " RAK - RAK2245" \
150
- 6 " RAK - RAK2246" \
151
- 7 " RAK - RAK2246G (with GNSS)" \
152
- 8 " RAK - RAK2287 (with GNSS)" \
153
- 9 " RAK - RAK5146 (with GNSS)" \
154
- 10 " RAK - RAK831" \
155
- 11 " RisingHF - RHF0M301" \
156
- 12 " Sandbox - LoRaGo PORT" \
157
- 13 " Seeed - WM1302" \
158
- 14 " Semtech - SX1280 LoRa Connect(TM) (2.4 GHz)" \
159
- 15 " Semtech - SX1302 LoRa(R) CoreCell (SX1302CXXXGW1)" \
160
- 16 " Semtech - SX1302 LoRa(R) CoreCell (USB) (SX1302CSSXXXGW1)" \
161
- 17 " Waveshare - SX1302 LoRaWAN Gateway HAT" \
145
+ 1 " Dragino - PG1302" \
146
+ 2 " IMST - iC880A" \
147
+ 3 " IMST - iC980A" \
148
+ 4 " IMST - Lite Gateway" \
149
+ 5 " Pi Supply - LoRa Gateway HAT" \
150
+ 6 " RAK - RAK2245" \
151
+ 7 " RAK - RAK2246" \
152
+ 8 " RAK - RAK2246G (with GNSS)" \
153
+ 9 " RAK - RAK2287 (with GNSS)" \
154
+ 10 " RAK - RAK5146 (with GNSS)" \
155
+ 11 " RAK - RAK831" \
156
+ 12 " RisingHF - RHF0M301" \
157
+ 13 " Sandbox - LoRaGo PORT" \
158
+ 14 " Seeed - WM1302" \
159
+ 15 " Semtech - SX1280 LoRa Connect(TM) (2.4 GHz)" \
160
+ 16 " Semtech - SX1302 LoRa(R) CoreCell (SX1302CXXXGW1)" \
161
+ 17 " Semtech - SX1302 LoRa(R) CoreCell (USB) (SX1302CSSXXXGW1)" \
162
+ 18 " Waveshare - SX1302 LoRaWAN Gateway HAT" \
162
163
3>&1 1>&2 2>&3 )
163
164
RET=$?
164
165
if [ $RET -eq 0 ]; then
165
166
case " $FUN " in
166
- 1) do_set_concentratord " sx1301" && do_setup_ic880a && do_prompt_concentrator_reset_pin " sx1301" && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
167
- 2) do_set_concentratord " sx1301" && do_setup_ic980a && do_prompt_concentrator_reset_pin " sx1301" && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
168
- 3) do_set_concentratord " sx1301" && do_setup_imst_lite && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
169
- 4) do_set_concentratord " sx1301" && do_setup_pislora && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
170
- 5) do_set_concentratord " sx1301" && do_setup_rak2245 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
171
- 6) do_set_concentratord " sx1301" && do_setup_rak2246 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
172
- 7) do_set_concentratord " sx1301" && do_setup_rak2246g && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
173
- 8) do_set_concentratord " sx1302" && do_setup_rak2287 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
174
- 9) do_set_concentratord " sx1302" && do_setup_rak5146 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
175
- 10) do_set_concentratord " sx1301" && do_setup_rak2245 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
176
- 11) do_set_concentratord " sx1301" && do_setup_rhf0m301 && do_enable_spi0_1cs_overlay;;
177
- 12) do_set_concentratord " sx1301" && do_setup_lorago_port && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
178
- 13) do_set_concentratord " sx1302" && do_setup_seeed_wm1302 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
179
- 14) do_set_concentratord " 2g4" && do_setup_semtech_2g4 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
180
- 15) do_set_concentratord " sx1302" && do_setup_semtech_sx1302cxxxgw1 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
181
- 16) do_set_concentratord " sx1302" && do_setup_semtech_sx1302cssxxxgw1 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
182
- 17) do_set_concentratord " sx1302" && do_setup_waveshare_sx1302_lorawan_gateway_hat && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
167
+ 1) do_set_concentratord " sx1302" && do_setup_dragino_pg1302 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
168
+ 2) do_set_concentratord " sx1301" && do_setup_ic880a && do_prompt_concentrator_reset_pin " sx1301" && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
169
+ 3) do_set_concentratord " sx1301" && do_setup_ic980a && do_prompt_concentrator_reset_pin " sx1301" && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
170
+ 4) do_set_concentratord " sx1301" && do_setup_imst_lite && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
171
+ 5) do_set_concentratord " sx1301" && do_setup_pislora && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
172
+ 6) do_set_concentratord " sx1301" && do_setup_rak2245 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
173
+ 7) do_set_concentratord " sx1301" && do_setup_rak2246 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
174
+ 8) do_set_concentratord " sx1301" && do_setup_rak2246g && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
175
+ 9) do_set_concentratord " sx1302" && do_setup_rak2287 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
176
+ 10) do_set_concentratord " sx1302" && do_setup_rak5146 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
177
+ 11) do_set_concentratord " sx1301" && do_setup_rak2245 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
178
+ 12) do_set_concentratord " sx1301" && do_setup_rhf0m301 && do_enable_spi0_1cs_overlay;;
179
+ 13) do_set_concentratord " sx1301" && do_setup_lorago_port && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
180
+ 14) do_set_concentratord " sx1302" && do_setup_seeed_wm1302 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
181
+ 15) do_set_concentratord " 2g4" && do_setup_semtech_2g4 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
182
+ 16) do_set_concentratord " sx1302" && do_setup_semtech_sx1302cxxxgw1 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
183
+ 17) do_set_concentratord " sx1302" && do_setup_semtech_sx1302cssxxxgw1 && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
184
+ 18) do_set_concentratord " sx1302" && do_setup_waveshare_sx1302_lorawan_gateway_hat && do_restart_chirpstack_concentratord && do_create_chirpstack_gateway;;
183
185
esac
184
186
fi
185
187
}
@@ -198,6 +200,22 @@ do_flash_concentrator_mcu() {
198
200
fi
199
201
}
200
202
203
+ do_setup_dragino_pg1302 () {
204
+ FUN=$( dialog --title " Channel-plan configuration" --menu " Select the channel-plan:" 15 60 2 \
205
+ 1 " EU868" \
206
+ 2 " US915" \
207
+ 3>&1 1>&2 2>&3 )
208
+ RET=$?
209
+ if [ $RET -eq 1 ]; then
210
+ do_main_menu
211
+ elif [ $RET -eq 0 ]; then
212
+ case " $FUN " in
213
+ 1) do_copy_concentratord_config " sx1302" " dragino_pg1302_eu868" " " " eu868" " " && do_update_chirpstack_mqtt_forwarder_topic_prefix " eu868" ;;
214
+ 2) do_select_us915_block " sx1302" " dragino_pg1302_us915" " " ;;
215
+ esac
216
+ fi
217
+ }
218
+
201
219
do_setup_ic880a () {
202
220
FUN=$( dialog --title " Channel-plan configuration" --menu " Select the channel-plan:" 15 60 1 \
203
221
1 " EU868" \
0 commit comments