Skip to content

Commit

Permalink
v1.4.0
Browse files Browse the repository at this point in the history
- Added calibration routine to optimize RF performance
- Added support for SX1301 433 MHz reference board
- Improved AGC firmware
- Improved RSSI accuracy
- Improved utilities Makefile
  • Loading branch information
Sylvain Miermont committed May 15, 2014
1 parent f991b0e commit 3f22bb7
Show file tree
Hide file tree
Showing 13 changed files with 908 additions and 184 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.0
1.4.0
11 changes: 7 additions & 4 deletions libloragw/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,12 @@ endif
ifeq ($(CFG_BRD),dev_nano_868)
CFG_BRD_MSG := FPGA-based nano-concentrator, with 868 MHz SAW filter
CFG_BRD_OPT := CFG_BRD_NANO868
else ifeq ($(CFG_BRD),ref_1301_57nf)
CFG_BRD_MSG := SX1301 reference board with SX1257 radios, no filters
CFG_BRD_OPT := CFG_BRD_REF1301
else ifeq ($(CFG_BRD),ref_1301_868)
CFG_BRD_MSG := SX1301 reference board with SX1257 radios, 868 MHz filters
CFG_BRD_OPT := CFG_BRD_1301REF868
else ifeq ($(CFG_BRD),ref_1301_433)
CFG_BRD_MSG := SX1301 reference board with SX1255 radios, 433 MHz filters
CFG_BRD_OPT := CFG_BRD_1301REF433
else
$(info [Info] No specific board selected.)
CFG_BRD_MSG := None
Expand Down Expand Up @@ -162,7 +165,7 @@ endif
obj/loragw_reg.o: src/loragw_reg.c inc/loragw_reg.h inc/loragw_spi.h inc/config.h
$(CC) -c $(CFLAGS) $< -o $@

obj/loragw_hal.o: src/loragw_hal.c inc/loragw_hal.h inc/loragw_reg.h inc/loragw_aux.h src/arb_fw.var src/agc_fw.var inc/config.h
obj/loragw_hal.o: src/loragw_hal.c inc/loragw_hal.h inc/loragw_reg.h inc/loragw_aux.h src/arb_fw.var src/agc_fw.var src/cal_fw.var inc/config.h
$(CC) -c $(CFLAGS) $< -o $@

obj/loragw_gps.o: src/loragw_gps.c inc/loragw_gps.h inc/config.h
Expand Down
5 changes: 4 additions & 1 deletion libloragw/inc/loragw_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,12 @@ Maintainer: Sylvain Miermont
#if (CFG_BRD_NANO868 == 1)
#define LGW_RF_TX_ENABLE { true, true} /* both radio A and B are usable in TX */
#define LGW_RF_CLKOUT { true, true} /* both radios have clkout enabled */
#elif (CFG_BRD_REF1301 == 1)
#elif ((CFG_BRD_1301REF868 == 1) || (CFG_BRD_1301REF433 == 1))
#define LGW_RF_TX_ENABLE { true,false} /* radio B TX output is disconnected */
#define LGW_RF_CLKOUT {false, true} /* radio A clkout disabled for spur optimization */
/* === ADD CUSTOMIZATION FOR YOUR OWN BOARD HERE ===
#elif (CFG_BRD_MYBOARD == 1)
*/
#elif (CFG_BRD_NONE == 1)
#define LGW_RF_TX_ENABLE { true, true} /* both radio A and B are usable in TX */
#define LGW_RF_CLKOUT { true, true} /* both radios have clkout enabled */
Expand Down
5 changes: 3 additions & 2 deletions libloragw/library.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ CFG_BAND= eu868
# and RF front-ends, and must be calibrated for each new board design.
# Available calibration parameters:
# dev_nano_868 FPGA-based nano-concentrator, with 868 MHz SAW filter
# ref_1301_57nf SX1301 reference board with SX1257 radios, no filters
# ref_1301_868 SX1301 reference board with SX1257 radios, 868 MHz filters
# ref_1301_433 SX1301 reference board with SX1255 radios, 433 MHz filters
# Keep empty for no calibration parameters (neutral values will be used).

CFG_BRD= ref_1301_57nf
CFG_BRD= ref_1301_868

### Debug options ###
# Set the DEBUG_* to 1 to activate debug mode in individual modules.
Expand Down
218 changes: 109 additions & 109 deletions libloragw/src/agc_fw.var

Large diffs are not rendered by default.

529 changes: 529 additions & 0 deletions libloragw/src/cal_fw.var

Large diffs are not rendered by default.

Loading

0 comments on commit 3f22bb7

Please sign in to comment.