Skip to content

Commit

Permalink
Merge pull request #39 from insightsip/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Jonathan-fattouh authored Mar 1, 2023
2 parents 8a25539 + eaf602b commit 6c4c99a
Show file tree
Hide file tree
Showing 39 changed files with 19,775 additions and 727 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ The gateways used with the pre-certification tool are the Semtech Picocell SX130

## Changelog

### 2023-03-01, v3.1.11

- Add ISP4580 project

### 2023-02-14, v3.1.10

- Fix SES projects

### 2022-05-13, v3.1.8

- Fix certification issues and re-transmission handling.
Expand Down
3 changes: 2 additions & 1 deletion src/apps/lorawan/at_commands/at_lib/at_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "NvmDataMgmt.h"
#include "RegionCommon.h"
#include "LoRaMacTest.h"
#include "version.h"

#include "nrf_log.h"
#include "nrf_log_ctrl.h"
Expand Down Expand Up @@ -210,7 +211,7 @@ static LmHandlerParams_t LmHandlerParams =

static LmhpComplianceParams_t LmhpComplianceParams =
{
.FwVersion.Value = FW_VERSION_NUM,
.FwVersion.Value = FW_VERSION,
.OnTxPeriodicityChanged = OnTxPeriodicityChanged,
.OnTxFrameCtrlChanged = OnTxFrameCtrlChanged,
.OnPingSlotPeriodicityChanged = OnPingSlotPeriodicityChanged,
Expand Down
2 changes: 0 additions & 2 deletions src/apps/lorawan/at_commands/at_lib/at_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

#include <stdint.h>

#define FW_VERSION_STR "3.1.10"
#define FW_VERSION_NUM 0x03011000 // 3.1.10.0
#define MODULE_NAME "ISP4520"
#define MAX_AT_PREFIX_SIZE 20

Expand Down
9 changes: 5 additions & 4 deletions src/apps/lorawan/at_commands/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@

#include "at_manager.h"
#include "board.h"
#include "version.h"

// Timer & scheduler
#define APP_TIMER_PRESCALER 0 ///< Value of the RTC1 PRESCALER register.
Expand Down Expand Up @@ -405,14 +406,14 @@ static void services_init(void)
ret_code_t err_code;
ble_dis_init_t dis_init;

char hw[2];
hw[0] = BoardGetRevision();
hw[1] = '\0';
char hw_rev[2];
hw_rev[0] = BoardGetRevision();
hw_rev[1] = '\0';

memset(&dis_init, 0, sizeof(ble_dis_init_t));
ble_srv_ascii_to_utf8(&dis_init.manufact_name_str, (char*)MANUFACTURER_NAME);
ble_srv_ascii_to_utf8(&dis_init.fw_rev_str, (char*)FW_VERSION_STR);
ble_srv_ascii_to_utf8(&dis_init.hw_rev_str, (char*)hw);
ble_srv_ascii_to_utf8(&dis_init.hw_rev_str, (char*)hw_rev);

dis_init.dis_char_rd_sec = SEC_OPEN;

Expand Down
729 changes: 369 additions & 360 deletions src/apps/lorawan/at_commands/ses/at-commands.emProject

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/apps/lorawan/common/Commissioning.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* When set to 1 the application uses the Over-the-Air activation procedure
* When set to 0 the application uses the Personalization activation procedure
*/
#define OVER_THE_AIR_ACTIVATION 1
#define OVER_THE_AIR_ACTIVATION 0

/*!
* When using ABP activation the MAC layer must know in advance to which server
Expand Down
9 changes: 2 additions & 7 deletions src/apps/lorawan/end-device/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
*
*****************************************************************************/

// Standards
#include <stdbool.h>
#include <stdint.h>
#include <string.h>

// nRF
#include "nrf.h"
#include "app_error.h"
#include "app_timer.h"
Expand All @@ -33,21 +31,18 @@
#include "nrf_drv_clock.h"
#include "nrf_pwr_mgmt.h"

// LoRa
#include "board.h"
#include "LmHandler.h"
#include "LmhpCompliance.h"
#include "Commissioning.h"
#include "RegionCommon.h"
#include "NvmDataMgmt.h"
#include "version.h"

//logs
#include "nrf_log.h"
#include "nrf_log_ctrl.h"
#include "nrf_log_default_backends.h"


#define FIRMWARE_VERSION 0x03011000 // 3.1.10.0
#define SCHED_MAX_EVENT_DATA_SIZE APP_TIMER_SCHED_EVENT_DATA_SIZE /**< Maximum size of scheduler events. */
#define SCHED_QUEUE_SIZE 60 /**< Maximum number of events in the scheduler queue. */
#define LORAWAN_DEFAULT_CLASS CLASS_A /**< LoRaWAN default end-device class. */
Expand Down Expand Up @@ -155,7 +150,7 @@ static LmHandlerParams_t LmHandlerParams =

static LmhpComplianceParams_t LmhpComplianceParams =
{
.FwVersion.Value = FIRMWARE_VERSION,
.FwVersion.Value = FW_VERSION,
.OnTxPeriodicityChanged = OnTxPeriodicityChanged,
.OnTxFrameCtrlChanged = OnTxFrameCtrlChanged,
.OnPingSlotPeriodicityChanged = OnPingSlotPeriodicityChanged,
Expand Down
704 changes: 352 additions & 352 deletions src/apps/lorawan/end-device/ses/end-device.emProject

Large diffs are not rendered by default.

Loading

0 comments on commit 6c4c99a

Please sign in to comment.