Skip to content

Commit

Permalink
v4.1.1
Browse files Browse the repository at this point in the history
* HAL: Fixed bug in "Listen-Before-Talk" which was preventing from configuring
the Scan Time to 5ms.
* MISC: Added GPIO number to reset_lgw.sh command arguments.
  • Loading branch information
mcoracin committed Nov 29, 2016
1 parent 65259a5 commit f4cff85
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1.0
4.1.1
11 changes: 7 additions & 4 deletions fpga/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@ Reference Design board (SX1301AP2-PCB_E336) flash memory.

The different images contain the following features:

* SX1301_FPGA_200K_NOTCH_LBT_SPECTRAL_SCAN_863_v33.hex:
* SX1301_FPGA_200K_NOTCH_LBT_SPECTRAL_SCAN_915_v33.hex:
- 200KHz Notch filter for TX (not programmable)
- Listen-Before-Talk for 863+MHz frequency range
- Listen-Before-Talk for 915+MHz frequency range (Japan)
- Background Spectral Scan (limited)

* SX1301_FPGA_200K_NOTCH_LBT_SPECTRAL_SCAN_915_v33.hex:
* SX1301_FPGA_200K_NOTCH_LBT_SPECTRAL_SCAN_863_v33.hex:
- 200KHz Notch filter for TX (not programmable)
- Listen-Before-Talk for 915+MHz frequency range
- Listen-Before-Talk for 863+MHz frequency range
- Background Spectral Scan (limited)
Note: This image is the same as the 915+MHz version. It is just meant for
testing "Japan-like" LBT feature on a EU868 board. It does not provide certified
LBT for European band.

* SX1301_FPGA_NOTCH_PROG_SPECTRAL_SCAN_v31.hex:
- Programmable notch filter for TX
Expand Down
2 changes: 1 addition & 1 deletion libloragw/src/loragw_lbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ int lbt_setup(void) {
DEBUG_PRINTF("ERROR: Failed to configure FPGA for LBT channel %d (freq offset)\n", i);
return LGW_LBT_ERROR;
}
if (lbt_channel_cfg[i].freq_hz == 5000) { /* configured to 128 by default */
if (lbt_channel_cfg[i].scan_time_us == 5000) { /* configured to 128 by default */
x = lgw_fpga_reg_w(LGW_FPGA_LBT_SCAN_TIME_CH0+i, 1);
if (x != LGW_REG_SUCCESS) {
DEBUG_PRINTF("ERROR: Failed to configure FPGA for LBT channel %d (freq offset)\n", i);
Expand Down
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ chip through GPIO, before starting any application using the concentrator.
4. Changelog
-------------

### v4.1.1 ###

* HAL: Fixed bug in "Listen-Before-Talk" which was preventing from configuring
the Scan Time to 5ms.
* MISC: Added GPIO number to reset_lgw.sh command arguments.

### v4.1.0 ###

* HAL: Reworked "Listen-Before-Talk" feature to have more flexibility to define
Expand Down
15 changes: 11 additions & 4 deletions reset_lgw.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
#!/bin/sh

# This script is intended to be used on IoT Starter Kit platform only, it
# performs the following actions:
# This script is intended to be used on IoT Starter Kit platform, it performs
# the following actions:
# - export/unpexort GPIO7 used to reset the SX1301 chip
#
# Usage examples:
# ./reset_lgw.sh stop
# ./reset_lgw.sh start

# The reset pin of SX1301 is wired with RPi GPIO7
IOT_SK_SX1301_RESET_PIN=7
# If used on another platform, the GPIO number can be given as parameter.
if [ -z "$2" ]; then
IOT_SK_SX1301_RESET_PIN=7
else
IOT_SK_SX1301_RESET_PIN=$2
fi

echo "Accessing concentrator reset pin through GPIO$IOT_SK_SX1301_RESET_PIN..."

WAIT_GPIO() {
sleep 0.1
Expand Down Expand Up @@ -47,7 +54,7 @@ case "$1" in
iot_sk_term
;;
*)
echo "Usage: $0 {start|stop}"
echo "Usage: $0 {start|stop} [<gpio number>]"
exit 1
;;
esac
Expand Down

0 comments on commit f4cff85

Please sign in to comment.