I’ve come to understand from the guide and other posts that in the web interface you can simply enter in random values in the eui fields. However, when using the lmic library for arduino based nodes, all the example codes have a different format such as:
// This EUI must be in little-endian format, so least-significant-byte
// first. When copying an EUI from ttnctl output, this means to reverse
// the bytes. For TTN issued EUIs the last bytes should be 0xD5, 0xB3,
// 0x70.
static const u1_t PROGMEM APPEUI[8] = { 0x13, 0xF9, 0x00, 0xD0, 0x7E, 0xD5, 0xB3, 0x70 };
void os_getArtEui (u1_t* buf) {
memcpy_P(buf, APPEUI, 8);
}// This should also be in little endian format, see above.
static const u1_t PROGMEM DEVEUI[8] = { 0x56, 0x46, 0x54, 0x95, 0x78, 0x56, 0x34, 0x12 };
void os_getDevEui (u1_t* buf) {
memcpy_P(buf, DEVEUI, 8);
}// This key should be in big endian format (or, since it is not really a
// number but a block of memory, endianness does not really apply). In
// practice, a key taken from ttnctl can be copied as-is.
// The key shown here is the semtech default key.
static const u1_t PROGMEM APPKEY[16] = { 0xFC, 0x64, 0xAD, 0xE6, 0x05, 0xF9, 0x69, 0x73, 0x5F, 0xD7, 0x12, 0x47, 0x7B, 0x1A, 0x89, 0xFC };
void os_getDevKey (u1_t* buf) {
memcpy_P(buf, APPKEY, 16);
}
How do we convert the values entered into the web interface to be in the format matching the example code???
It sure would be nice if the web interface would assist with either generating these eui values or providing a converted format based off our random values. Or at least provide more info in guide as to how to do that.
Edit: I just want to mention to @brocaar that you’ve done an amazing job with this project. You probably hear that - but probably not enough. Also, I was going to look into the project to see about contributing to add generator functionality, but looks like you’ve got something in the works?!