Skip to content

Commit

Permalink
added australian frequencies and subband 2
Browse files Browse the repository at this point in the history
  • Loading branch information
gloveboxes committed Jul 30, 2017
1 parent 1be030b commit 73af5fa
Show file tree
Hide file tree
Showing 14 changed files with 37,152 additions and 53 deletions.
6 changes: 3 additions & 3 deletions examples/interrupt/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ extern u2_t readsensor(void);
//////////////////////////////////////////////////

// application router ID (LSBF)
static const u1_t APPEUI[8] = { 0x02, 0x00, 0x00, 0x00, 0x00, 0xEE, 0xFF, 0xC0 };
static const u1_t APPEUI[8] = { 0x43, 0x4B, 0x00, 0xF0, 0x7E, 0xD5, 0xB3, 0x70 };

// unique device ID (LSBF)
static const u1_t DEVEUI[8] = { 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF };
static const u1_t DEVEUI[8] = { 0xB0, 0xD8, 0xAA, 0xF4, 0x22, 0xEA, 0x88, 0x00 };

// device-specific AES key (derived from device EUI)
static const u1_t DEVKEY[16] = { 0xAB, 0x89, 0xEF, 0xCD, 0x23, 0x01, 0x67, 0x45, 0x54, 0x76, 0x10, 0x32, 0xDC, 0xFE, 0x98, 0xBA };
static const u1_t DEVKEY[16] = { 0xF1, 0x61, 0x1B, 0x84, 0x5D, 0x58, 0x04, 0x32, 0x80, 0x15, 0x6B, 0x25, 0x58, 0x94, 0xFE, 0x21 };


//////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions examples/join/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
//////////////////////////////////////////////////

// application router ID (LSBF)
static const u1_t APPEUI[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static const u1_t APPEUI[8] = { 0xB0, 0xD8, 0xAA, 0xF4, 0x22, 0xEA, 0x88, 0x00 };

// unique device ID (LSBF)
static const u1_t DEVEUI[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };

// device-specific AES key (derived from device EUI)
static const u1_t DEVKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static const u1_t DEVKEY[16] = { 0xF1, 0x61, 0x1B, 0x84, 0x5D, 0x58, 0x04, 0x32, 0x80, 0x15, 0x6B, 0x25, 0x58, 0x94, 0xFE, 0x21 };


//////////////////////////////////////////////////
Expand Down
5 changes: 5 additions & 0 deletions examples/nohup.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sudo: ./build/periodic.out: command not found
sudo: ./build/periodic.out: command not found
sudo: ./build/periodic.out: command not found
sudo: ./build/periodic.out: command not found
sudo: ./build/periodic.out: command not found
10 changes: 6 additions & 4 deletions examples/periodic/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ extern u2_t readsensor(void);
//////////////////////////////////////////////////

// application router ID (LSBF)
static const u1_t APPEUI[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static const u1_t APPEUI[8] = { 0x43, 0x4B, 0x00, 0xF0, 0x7E, 0xD5, 0xB3, 0x70 };

// unique device ID (LSBF)
static const u1_t DEVEUI[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static const u1_t DEVEUI[8] = { 0xB0, 0xD8, 0xAA, 0xF4, 0x22, 0xEA, 0x88, 0x00 };

// device-specific AES key (derived from device EUI)
static const u1_t DEVKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static const u1_t DEVKEY[16] = { 0xF1, 0x61, 0x1B, 0x84, 0x5D, 0x58, 0x04, 0x32, 0x80, 0x15, 0x6B, 0x25, 0x58, 0x94, 0xFE, 0x21 };

//////////////////////////////////////////////////
// APPLICATION CALLBACKS
Expand Down Expand Up @@ -77,6 +77,8 @@ static void initfunc (osjob_t* j) {
initsensor();
// reset MAC state
LMIC_reset();

LMIC_selectSubBand(1);
// start joining
LMIC_startJoining();
// init done - onEvent() callback will be invoked...
Expand Down Expand Up @@ -116,7 +118,7 @@ static void reportfunc (osjob_t* j) {
LMIC.frame[1] = val;
LMIC_setTxData2(1, LMIC.frame, 2, 0); // (port 1, 2 bytes, unconfirmed)
// reschedule job in 60 seconds
os_setTimedCallback(j, os_getTime()+sec2osticks(60), reportfunc);
os_setTimedCallback(j, os_getTime()+sec2osticks(5), reportfunc);
}


Expand Down
Loading

0 comments on commit 73af5fa

Please sign in to comment.