Skip to content

Commit

Permalink
v2.2.0
Browse files Browse the repository at this point in the history
* Removed FTDI support in makefiles to align with HAL v3.2.0.

* Force IPv4 mode usage on UDP socket, instead of auto. The auto mode was
causing an issue to properly resolve LoRa server hostname given in JSON
configuration file (MariaDB issue: https://mariadb.atlassian.net/browse/MDEV-4356,
https://mariadb.atlassian.net/browse/MDEV-4379).
  • Loading branch information
mcoracin committed Oct 8, 2015
1 parent 3e2bfb6 commit a274df4
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 60 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.0
2.2.0
15 changes: 1 addition & 14 deletions basic_pkt_fwd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,7 @@ LGW_INC += $(LGW_PATH)/inc/loragw_hal.h

### Linking options

ifeq ($(CFG_SPI),native)
LIBS := -lloragw -lrt -lpthread
else ifeq ($(CFG_SPI),ftdi)
LIBS := -lloragw -lrt -lpthread -lmpsse
else
# keep compatibility with SX1301 HAL version 1.2.x and bellow
ifeq ($(LGW_PHY),native)
LIBS := -lloragw -lrt -lpthread
else ifeq ($(LGW_PHY),ftdi)
LIBS := -lloragw -lrt -lpthread -lmpsse
else
$(error [error] Can't find configuration for SPI phy)
endif
endif
LIBS := -lloragw -lrt -lpthread

### General build targets

Expand Down
2 changes: 1 addition & 1 deletion basic_pkt_fwd/global_conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"gateway_conf": {
"gateway_ID": "AA555A0000000000",
/* change with default server address/ports, or overwrite in local_conf.json */
"server_address": "127.0.0.1",
"server_address": "localhost",
"serv_port_up": 1680,
"serv_port_down": 1680,
/* adjust the following parameters for your network */
Expand Down
2 changes: 1 addition & 1 deletion basic_pkt_fwd/src/basic_pkt_fwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ int main(void)

/* prepare hints to open network sockets */
memset(&hints, 0, sizeof hints);
hints.ai_family = AF_UNSPEC; /* should handle IP v4 or v6 automatically */
hints.ai_family = AF_INET; /* WA: Forcing IPv4 as AF_UNSPEC makes connection on localhost to fail */
hints.ai_socktype = SOCK_DGRAM;

/* look for server address w/ upstream port */
Expand Down
15 changes: 1 addition & 14 deletions beacon_pkt_fwd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,7 @@ LGW_INC += $(LGW_PATH)/inc/loragw_gps.h

### Linking options

ifeq ($(CFG_SPI),native)
LIBS := -lloragw -lrt -lpthread
else ifeq ($(CFG_SPI),ftdi)
LIBS := -lloragw -lrt -lpthread -lmpsse
else
# keep compatibility with SX1301 HAL version 1.2.x and bellow
ifeq ($(LGW_PHY),native)
LIBS := -lloragw -lrt -lpthread
else ifeq ($(LGW_PHY),ftdi)
LIBS := -lloragw -lrt -lpthread -lmpsse
else
$(error [error] Can't find configuration for SPI phy)
endif
endif
LIBS := -lloragw -lrt -lpthread

### General build targets

Expand Down
2 changes: 1 addition & 1 deletion beacon_pkt_fwd/global_conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"gateway_conf": {
"gateway_ID": "AA555A0000000000",
/* change with default server address/ports, or overwrite in local_conf.json */
"server_address": "127.0.0.1",
"server_address": "localhost",
"serv_port_up": 1680,
"serv_port_down": 1680,
/* adjust the following parameters for your network */
Expand Down
2 changes: 1 addition & 1 deletion beacon_pkt_fwd/src/beacon_pkt_fwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ int main(void)

/* prepare hints to open network sockets */
memset(&hints, 0, sizeof hints);
hints.ai_family = AF_UNSPEC; /* should handle IP v4 or v6 automatically */
hints.ai_family = AF_INET; /* WA: Forcing IPv4 as AF_UNSPEC makes connection on localhost to fail */
hints.ai_socktype = SOCK_DGRAM;

/* look for server address w/ upstream port */
Expand Down
15 changes: 1 addition & 14 deletions gps_pkt_fwd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,7 @@ LGW_INC += $(LGW_PATH)/inc/loragw_gps.h

### Linking options

ifeq ($(CFG_SPI),native)
LIBS := -lloragw -lrt -lpthread
else ifeq ($(CFG_SPI),ftdi)
LIBS := -lloragw -lrt -lpthread -lmpsse
else
# keep compatibility with SX1301 HAL version 1.2.x and bellow
ifeq ($(LGW_PHY),native)
LIBS := -lloragw -lrt -lpthread
else ifeq ($(LGW_PHY),ftdi)
LIBS := -lloragw -lrt -lpthread -lmpsse
else
$(error [error] Can't find configuration for SPI phy)
endif
endif
LIBS := -lloragw -lrt -lpthread

### General build targets

Expand Down
2 changes: 1 addition & 1 deletion gps_pkt_fwd/global_conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"gateway_conf": {
"gateway_ID": "AA555A0000000000",
/* change with default server address/ports, or overwrite in local_conf.json */
"server_address": "127.0.0.1",
"server_address": "localhost",
"serv_port_up": 1680,
"serv_port_down": 1680,
/* adjust the following parameters for your network */
Expand Down
3 changes: 2 additions & 1 deletion gps_pkt_fwd/src/gps_pkt_fwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ int main(void)

/* prepare hints to open network sockets */
memset(&hints, 0, sizeof hints);
hints.ai_family = AF_UNSPEC; /* should handle IP v4 or v6 automatically */
hints.ai_family = AF_INET; /* WA: Forcing IPv4 as AF_UNSPEC makes connection on localhost to fail */
hints.ai_socktype = SOCK_DGRAM;

/* look for server address w/ upstream port */
Expand Down Expand Up @@ -786,6 +786,7 @@ int main(void)
}
freeaddrinfo(result);


/* look for server address w/ downstream port */
i = getaddrinfo(serv_addr, serv_port_down, &hints, &result);
if (i != 0) {
Expand Down
42 changes: 31 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,45 @@ through the gateway-to-server downlink route.

### 4.1. reset_pkt_fwd.sh

This script is to be used on IoT Start Kit platform to reset concentrator chip through GPIO.
It also allows automatic update of Gateway_ID with unique MAC address, in Packet Forwarder JSON
configuration file.
This script is to be used on IoT Start Kit platform to reset concentrator chip
through GPIO.
It also allows automatic update of Gateway_ID with unique MAC address, in
packet forwarder JSON configuration file.
Please refer to the script header for more details.

5. Changelog
-------------

### v2.2.0 - 2015-10-08 ###

* Removed FTDI support in makefiles to align with HAL v3.2.0.
* Force IPv4 mode usage on UDP socket, instead of auto. The auto mode was
causing an issue to properly resolve LoRa server hostname given in JSON
configuration file (MariaDB issue: https://mariadb.atlassian.net/browse/MDEV-4356,
https://mariadb.atlassian.net/browse/MDEV-4379).

### v2.1.0 - 2015-06-29 ###

* Added helper script for concentrator reset through GPIO, needed on IoT Starter Kit (reset_pkt_fwd.sh).
* The same reset_pkt_fwd.sh script also allows to automatically update the Gateway_ID field in JSON configuration file, with board MAC address.
* Updated JSON configuration file with proper default value for IoT Starter Kit: server address set to local server, GPS device path set to proper value (/dev/ttyAMA0).
* Added helper script for concentrator reset through GPIO, needed on IoT
Starter Kit (reset_pkt_fwd.sh).
* The same reset_pkt_fwd.sh script also allows to automatically update the
Gateway_ID field in JSON configuration file, with board MAC address.
* Updated JSON configuration file with proper default value for IoT Starter
Kit: server address set to local server, GPS device path set to proper value
(/dev/ttyAMA0).

### v2.0.0 - 2015-04-30 ###

* Changed: Several configuration parameters are now set dynamically from the JSON configuration file: RSSI offset, concentrator clock source, radio type, TX gain table, network type. The HAL does not need to be recompiled any more to update those parameters. An example for IoT Starter Kit platform is provided in global_conf.json for basic, gps and beacon packet_forwarder.
* Removed: Band frequency JSON configuration file has been removed. An example for EU 868MHz is provided in global_conf.json for basic, gps and beacon packet_forwarder.
* Changed: Updated makefiles to allow cross compilation from environment variable (ARCH, CROSS_COMPILE).
* Changed: Several configuration parameters are now set dynamically from the
JSON configuration file: RSSI offset, concentrator clock source, radio type,
TX gain table, network type. The HAL does not need to be recompiled any more to
update those parameters. An example for IoT Starter Kit platform is provided in
global_conf.json for basic, gps and beacon packet_forwarder.
* Removed: Band frequency JSON configuration file has been removed. An example
for EU 868MHz is provided in global_conf.json for basic, gps and beacon packet
forwarder.
* Changed: Updated makefiles to allow cross compilation from environment
variable (ARCH, CROSS_COMPILE).

** WARNING: **
** Update your JSON configuration file with new dynamic parameters. **
Expand Down Expand Up @@ -140,10 +160,10 @@ specification updated accordingly (report include gateway geolocation).
### v1.1.0 - 2013-12-09 ###

* Feature: added packet filtering parameters to the JSON configuration files.
* Bugfix: won't send a datagram if all the packets returned by the receive()
* Bugfix: will not send a datagram if all the packets returned by the receive()
function have been filtered out.
* Bugfix: removed leading zeros for the timestamp in the upstream JSON because
it's not compliant with JSON standard (might be interpreted as octal number).
it is not compliant with JSON standard (might be interpreted as octal number).
* Removed TXT extension for README files for better Github integration.
* Cleaned-up documentation, moving change log to top README.
* Modified Makefiles to ease cross-compilation.
Expand Down

0 comments on commit a274df4

Please sign in to comment.