Skip to content

Commit ddc5e50

Browse files
committed
v4.1.2
* HAL: Changed configuration of IQ polarity of FPGA for TX to comply with FPGA version greater than v27. (Only required for AP2 Semtech reference design) * HAL: Updated default LoRa preamble size according to LoRaWAN spec.
1 parent f4cff85 commit ddc5e50

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1.1
1+
4.1.2

libloragw/src/loragw_fpga.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ int lgw_fpga_configure(uint32_t tx_notch_freq) {
144144
return LGW_REG_ERROR;
145145
}
146146

147+
/* Required for Semtech AP2 reference design */
148+
x = lgw_fpga_reg_w(LGW_FPGA_CTRL_INVERT_IQ, 1);
149+
if (x != LGW_REG_SUCCESS) {
150+
DEBUG_MSG("ERROR: Failed to configure FPGA polarity\n");
151+
return LGW_REG_ERROR;
152+
}
153+
147154
/* Configure TX notch filter */
148155
if (tx_filter_support == true) {
149156
notch_offset_reg = (32E6 / (2*tx_notch_freq)) - 64;

libloragw/src/loragw_hal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ Maintainer: Sylvain Miermont
6969
#define AGC_CMD_WAIT 16
7070
#define AGC_CMD_ABORT 17
7171

72-
#define MIN_LORA_PREAMBLE 4
73-
#define STD_LORA_PREAMBLE 6
72+
#define MIN_LORA_PREAMBLE 6
73+
#define STD_LORA_PREAMBLE 8
7474
#define MIN_FSK_PREAMBLE 3
7575
#define STD_FSK_PREAMBLE 5
7676

readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ chip through GPIO, before starting any application using the concentrator.
7070
4. Changelog
7171
-------------
7272

73+
### v4.1.2 ###
74+
75+
* HAL: Changed configuration of IQ polarity of FPGA for TX to comply with FPGA
76+
version greater than v27. (Only required for AP2 Semtech reference design)
77+
* HAL: Updated default LoRa preamble size according to LoRaWAN spec.
78+
7379
### v4.1.1 ###
7480

7581
* HAL: Fixed bug in "Listen-Before-Talk" which was preventing from configuring

0 commit comments

Comments
 (0)