Commit 6a1c94d3 authored by Frank Radzio 's avatar Frank Radzio

repair OTAA

parent fb9b575e
......@@ -109,14 +109,14 @@ const lmic_pinmap lmic_pins = {
/*****************************************************
* TTN Config
*****************************************************/
//#define OTAA 1
#define OTAA 1
#if !defined(OTAA)
/*****************************************************
* ABP
*****************************************************/
static const PROGMEM u1_t NWKSKEY[16] = { 0x04, 0xF9, 0x51, 0x1A, 0xC4, 0x26, 0x50, 0xA7, 0x87, 0x8B, 0x65, 0x59, 0xA6, 0x3D, 0x5E, 0xE5 }; // LoRaWAN NwkSKey, network session key
static const u1_t PROGMEM APPSKEY[16] = { 0x83, 0xDB, 0xB5, 0xEC, 0x10, 0xB8, 0x75, 0x8B, 0xE4, 0x25, 0x87, 0xA6, 0xF4, 0xC3, 0x42, 0x6E }; // LoRaWAN AppSKey, application session key
static const u4_t DEVADDR = 0x260118EA ; // LoRaWAN end-device address (DevAddr)
static const PROGMEM u1_t NWKSKEY[16] = { }; // LoRaWAN NwkSKey, network session key
static const u1_t PROGMEM APPSKEY[16] = { }; // LoRaWAN AppSKey, application session key
static const u4_t DEVADDR = 0x26010000 ; // LoRaWAN end-device address (DevAddr)
/****************************************************
* OTAA
*
......@@ -139,19 +139,19 @@ void os_getDevKey (u1_t* buf) { }
* 0x70.
*******************************************************************************/
static const u1_t PROGMEM APPEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static const u1_t PROGMEM APPEUI[8] = { };
void os_getArtEui (u1_t* buf) { memcpy_P(buf, APPEUI, 8);}
/*******************************************************************************
* Dies sollte auch im Little-Endian-Format erfolgen, siehe oben.
*******************************************************************************/
static const u1_t PROGMEM DEVEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static const u1_t PROGMEM DEVEUI[8] = { };
void os_getDevEui (u1_t* buf) { memcpy_P(buf, DEVEUI, 8);}
/*******************************************************************************
* Dieser Schlüssel sollte im Big Endian-Format vorliegen (oder, da er nicht wirklich ein
* Nummer, aber ein Speicherblock, Endianness trifft nicht wirklich zu. Im
* In der Praxis kann ein aus ttnctl entnommener Schlüssel so wie er ist kopiert werden.
*******************************************************************************/
static const u1_t PROGMEM APPKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static const u1_t PROGMEM APPKEY[16] = { };
void os_getDevKey (u1_t* buf) { memcpy_P(buf, APPKEY, 16);}
#endif
/***************************************************
......@@ -199,7 +199,7 @@ const unsigned TX_INTERVAL = 10;
*
* * Diese Variable wird hier erst einmal nicht benötigt
********************************************************************************/
//unsigned char myrecdata[7];
unsigned char myrecdata[7];
/********************************************************************************
* Funktionen
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment