-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Class-B support, as defined in LoRaWAN v1.1 * Downlink only support "tmst" or "tmms" timestamp. "time" is not supported anymore ("time" field is kept in Uplink as an informative field). * Reworked thread_gps to handle GPS UBX messages for native GPS time. * Updated Gateway <-> NetworkServer protocol to describe the new "tmms" field. * Updated global_conf.PCB286*.json to remove indexes of the TX gain LUT above 20dBm. Use PCB336 (aka GW v1.5) to comply with ETSI TX mask between 20dBm and 27dBm.
- Loading branch information
Showing
12 changed files
with
597 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1.0 | ||
4.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#!/bin/bash | ||
|
||
LORA_GATEWAY_DRIVER_PATH=../lora_gateway | ||
|
||
TARGET_IP_ADDRESS=192.168.0.1 | ||
TARGET_PATH=/home/pi/lora-net | ||
TARGET_USER=pi | ||
|
||
clean_all() { | ||
make clean -C $LORA_GATEWAY_DRIVER_PATH | ||
if [ $? != 0 ] | ||
then | ||
echo "ERROR: Failed to clean $LORA_GATEWAY_DRIVER_PATH" | ||
exit 1 | ||
fi | ||
make clean | ||
if [ $? != 0 ] | ||
then | ||
exit 1 | ||
fi | ||
} | ||
|
||
build_all() { | ||
make all -C $LORA_GATEWAY_DRIVER_PATH | ||
if [ $? != 0 ] | ||
then | ||
echo "ERROR: Failed to compile $LORA_GATEWAY_DRIVER_PATH" | ||
exit 1 | ||
fi | ||
make all | ||
if [ $? != 0 ] | ||
then | ||
exit 1 | ||
fi | ||
} | ||
|
||
install() { | ||
scp ./lora_pkt_fwd/lora_pkt_fwd $TARGET_USER@$TARGET_IP_ADDRESS:$TARGET_PATH | ||
if [ $? != 0 ] | ||
then | ||
echo "ERROR: Failed to install the packet forwarder" | ||
echo " target info: $TARGET_IP_ADDRESS, $TARGET_USER, $TARGET_PATH" | ||
exit 1 | ||
fi | ||
} | ||
|
||
case "$1" in | ||
install) | ||
install | ||
;; | ||
|
||
clean) | ||
clean_all | ||
;; | ||
|
||
cleanall) | ||
# clean and rebuild | ||
clean_all | ||
build_all | ||
;; | ||
|
||
-h) | ||
echo "Compile the complete gateway software (driver & packet forwarder)" | ||
echo "Usage: $0 [clean/cleanall/install]" | ||
exit 1 | ||
;; | ||
|
||
*) | ||
# rebuild | ||
build_all | ||
;; | ||
esac | ||
|
||
exit 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
{ | ||
"SX1301_conf": { | ||
"lorawan_public": true, | ||
"clksrc": 1, /* radio_1 provides clock to concentrator */ | ||
"antenna_gain": 0, /* antenna gain, in dBi */ | ||
"radio_0": { | ||
"enable": true, | ||
"type": "SX1257", | ||
"freq": 902700000, | ||
"rssi_offset": -166.0, | ||
"tx_enable": true, | ||
"tx_freq_min": 902000000, | ||
"tx_freq_max": 928000000 | ||
}, | ||
"radio_1": { | ||
"enable": true, | ||
"type": "SX1257", | ||
"freq": 903400000, | ||
"rssi_offset": -166.0, | ||
"tx_enable": false | ||
}, | ||
"chan_multiSF_0": { | ||
/* Lora MAC channel, 125kHz, all SF, 902.3 MHz */ | ||
"enable": true, | ||
"radio": 0, | ||
"if": -400000 | ||
}, | ||
"chan_multiSF_1": { | ||
/* Lora MAC channel, 125kHz, all SF, 902.5 MHz */ | ||
"enable": true, | ||
"radio": 0, | ||
"if": -200000 | ||
}, | ||
"chan_multiSF_2": { | ||
/* Lora MAC channel, 125kHz, all SF, 902.7 MHz */ | ||
"enable": true, | ||
"radio": 0, | ||
"if": 0 | ||
}, | ||
"chan_multiSF_3": { | ||
/* Lora MAC channel, 125kHz, all SF, 902.9 MHz */ | ||
"enable": true, | ||
"radio": 0, | ||
"if": 200000 | ||
}, | ||
"chan_multiSF_4": { | ||
/* Lora MAC channel, 125kHz, all SF, 903.1 MHz */ | ||
"enable": true, | ||
"radio": 1, | ||
"if": -300000 | ||
}, | ||
"chan_multiSF_5": { | ||
/* Lora MAC channel, 125kHz, all SF, 903.3 MHz */ | ||
"enable": true, | ||
"radio": 1, | ||
"if": -100000 | ||
}, | ||
"chan_multiSF_6": { | ||
/* Lora MAC channel, 125kHz, all SF, 903.5 MHz */ | ||
"enable": true, | ||
"radio": 1, | ||
"if": 100000 | ||
}, | ||
"chan_multiSF_7": { | ||
/* Lora MAC channel, 125kHz, all SF, 903.7 MHz */ | ||
"enable": true, | ||
"radio": 1, | ||
"if": 300000 | ||
}, | ||
"chan_Lora_std": { | ||
/* Lora MAC channel, 500kHz, SF8, 903.0 MHz */ | ||
"enable": true, | ||
"radio": 0, | ||
"if": 300000, | ||
"bandwidth": 500000, | ||
"spread_factor": 8 | ||
}, | ||
"chan_FSK": { | ||
/* FSK 100kbps channel, 903.0 MHz */ | ||
"enable": false, | ||
"radio": 0, | ||
"if": 300000, | ||
"bandwidth": 250000, | ||
"datarate": 100000 | ||
} | ||
}, | ||
|
||
"gateway_conf": { | ||
"gateway_ID": "AA555A0000000000", | ||
/* change with default server address/ports, or overwrite in local_conf.json */ | ||
"server_address": "localhost", | ||
"serv_port_up": 1680, | ||
"serv_port_down": 1680, | ||
/* adjust the following parameters for your network */ | ||
"keepalive_interval": 10, | ||
"stat_interval": 30, | ||
"push_timeout_ms": 100, | ||
/* forward only valid packets */ | ||
"forward_crc_valid": true, | ||
"forward_crc_error": false, | ||
"forward_crc_disabled": false, | ||
/* GPS configuration */ | ||
"gps_tty_path": "/dev/ttyAMA0", | ||
/* GPS reference coordinates */ | ||
"ref_latitude": 0.0, | ||
"ref_longitude": 0.0, | ||
"ref_altitude": 0, | ||
/* Beaconing parameters */ | ||
"beacon_period": 128, | ||
"beacon_freq_hz": 923300000, | ||
"beacon_freq_nb": 8, | ||
"beacon_freq_step": 600000, | ||
"beacon_datarate": 10, | ||
"beacon_bw_hz": 500000, | ||
"beacon_power": 14, | ||
"beacon_infodesc": 0 | ||
} | ||
} | ||
|
Oops, something went wrong.