TTN UNO - BETA release - Documentation

You can always flash firmware directly into the RN2483 with a PickIt 2 or 3 programmer and revive it that way.

More info in this post

Hi everybody,

Someone has a link to download the new RN2903 firmware ? Both RN2483 and RN2903 (0.9.5) have a huge bug with updating frame counters so I want to put the RN2903 with a new firmware.

If you have a link like the RN2483 I’m waiting for it pleaaaasseee.

Thx

Hi,

I’m trying to run the DeviceInfo script on the original TTN Uno beta to get the device id. The code compiles, I’m able to upload it and see the output with the serial monitor. But I don’t get any values.

Use the EUI to register the device for OTAA

Device Information

EUI:
Battery:
AppEUI:
DevEUI:
Data Rate:
RX Delay 1:
RX Delay 2:

And when I use the microchip Lora Development Utility it won’t recognize it, adding a new bootloader won’t finish.

I have the feeling that the UNO is broken or am I missing something here?

Arnoud

Hi,

Just one question:

I was trying to connect to semtech for testing but did not work until i’ve used these keys.

Only these two will work or can i configure my own?

thank you

Hi Martijn,

I am trying this using a FTDI cable direct on the D9 pin. I see the leds Tx.Rx flash but after about 20/30 seconds flashing leds, the RN is still a brick.

Do you think I can use one of the d9 plug pins for the 3.3v ?

Hi @damylen, did you manage to solve this? I’m also having the same issue. I’m running the DeviceInfo sketch and getting serial garbage as the EUI etc:

EUI: �
Battery: �
AppEUI: 2
DevEUI: k
Data Rate: i
RX Delay 1: )
RX Delay 2: �

I’ve connected the Uno via micro USB using the default baudrate of 9600. I’ve also tested using a faster 115200 baud.

did you install the TTN libraries on the arduino IDE

see https://www.youtube.com/watch?v=28Fh5OF8ev0&list=PLM8eOeiKY7JVwrBYRHxsf9p0VM_dVapXl&index=5

Yes, code uploaded and compiled fine.

can you show the output of the compiler

Using platformio (my preferred choice):

glyn@glyn-desktop:~/Documents/the-things-network/test-node$ pio run --verbose
[Tue Jan 23 15:19:47 2018] Processing leonardo (monitor_baud: 115200; platform: atmelavr; lib_deps: TheThingsNetwork; board: leonardo; framework: arduino)
------------------------------------------------------------------------------------------------------------
Library Storage: /home/glyn/Documents/the-things-network/test-node/.piolibdeps
LibraryManager: Installing id=987
TheThingsNetwork @ 2.5.6 is already installed
avr-g++ -o "/home/glyn/Documents/the-things-network/test-node/src/src.ino.cpp" -x c++ -fpreprocessed -dD -E "/tmp/tmpDztmZX"
Collected 25 compatible libraries
Scanning dependencies...
Library Dependency Graph ( http://bit.ly/configure-pio-ldf )
|-- <TheThingsNetwork> v2.5.6 (/home/glyn/Documents/the-things-network/test-node/.piolibdeps/TheThingsNetwork_ID987)
avr-g++ -o .pioenvs/leonardo/src/src.ino.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo -Isrc -I.piolibdeps/TheThingsNetwork_ID987/src src/src.ino.cpp
avr-gcc-ar rc .pioenvs/leonardo/libFrameworkArduinoVariant.a
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/CDC.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/CDC.cpp
avr-gcc-ranlib .pioenvs/leonardo/libFrameworkArduinoVariant.a
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/HardwareSerial.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/HardwareSerial.cpp
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/HardwareSerial0.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/HardwareSerial0.cpp
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/HardwareSerial1.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/HardwareSerial1.cpp
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/HardwareSerial2.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/HardwareSerial2.cpp
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/HardwareSerial3.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/HardwareSerial3.cpp
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/IPAddress.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/IPAddress.cpp
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/PluggableUSB.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/PluggableUSB.cpp
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/Print.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/Print.cpp
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/Stream.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/Stream.cpp
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/Tone.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/Tone.cpp
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/USBCore.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/USBCore.cpp
avr-gcc -o .pioenvs/leonardo/FrameworkArduino/WInterrupts.o -c -std=gnu11 -fno-fat-lto-objects -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/WInterrupts.c
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/WMath.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/WMath.cpp
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/WString.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/WString.cpp
avr-gcc -x assembler-with-cpp -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo -c -o .pioenvs/leonardo/FrameworkArduino/_wiring_pulse.o /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/_wiring_pulse.S
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/abi.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/abi.cpp
avr-gcc -o .pioenvs/leonardo/FrameworkArduino/hooks.o -c -std=gnu11 -fno-fat-lto-objects -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/hooks.c
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/main.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/main.cpp
avr-g++ -o .pioenvs/leonardo/FrameworkArduino/new.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/new.cpp
avr-gcc -o .pioenvs/leonardo/FrameworkArduino/wiring.o -c -std=gnu11 -fno-fat-lto-objects -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/wiring.c
avr-gcc -o .pioenvs/leonardo/FrameworkArduino/wiring_analog.o -c -std=gnu11 -fno-fat-lto-objects -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/wiring_analog.c
avr-gcc -o .pioenvs/leonardo/FrameworkArduino/wiring_digital.o -c -std=gnu11 -fno-fat-lto-objects -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/wiring_digital.c
avr-gcc -o .pioenvs/leonardo/FrameworkArduino/wiring_pulse.o -c -std=gnu11 -fno-fat-lto-objects -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/wiring_pulse.c
avr-gcc -o .pioenvs/leonardo/FrameworkArduino/wiring_shift.o -c -std=gnu11 -fno-fat-lto-objects -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo /home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino/wiring_shift.c
avr-g++ -o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/CayenneLPP.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo -I.piolibdeps/TheThingsNetwork_ID987/src .piolibdeps/TheThingsNetwork_ID987/src/CayenneLPP.cpp
avr-gcc-ar rc .pioenvs/leonardo/libFrameworkArduino.a .pioenvs/leonardo/FrameworkArduino/CDC.o .pioenvs/leonardo/FrameworkArduino/HardwareSerial.o .pioenvs/leonardo/FrameworkArduino/HardwareSerial0.o .pioenvs/leonardo/FrameworkArduino/HardwareSerial1.o .pioenvs/leonardo/FrameworkArduino/HardwareSerial2.o .pioenvs/leonardo/FrameworkArduino/HardwareSerial3.o .pioenvs/leonardo/FrameworkArduino/IPAddress.o .pioenvs/leonardo/FrameworkArduino/PluggableUSB.o .pioenvs/leonardo/FrameworkArduino/Print.o .pioenvs/leonardo/FrameworkArduino/Stream.o .pioenvs/leonardo/FrameworkArduino/Tone.o .pioenvs/leonardo/FrameworkArduino/USBCore.o .pioenvs/leonardo/FrameworkArduino/WInterrupts.o .pioenvs/leonardo/FrameworkArduino/WMath.o .pioenvs/leonardo/FrameworkArduino/WString.o .pioenvs/leonardo/FrameworkArduino/_wiring_pulse.o .pioenvs/leonardo/FrameworkArduino/abi.o .pioenvs/leonardo/FrameworkArduino/hooks.o .pioenvs/leonardo/FrameworkArduino/main.o .pioenvs/leonardo/FrameworkArduino/new.o .pioenvs/leonardo/FrameworkArduino/wiring.o .pioenvs/leonardo/FrameworkArduino/wiring_analog.o .pioenvs/leonardo/FrameworkArduino/wiring_digital.o .pioenvs/leonardo/FrameworkArduino/wiring_pulse.o .pioenvs/leonardo/FrameworkArduino/wiring_shift.o
avr-g++ -o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/TheThingsMessage.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo -I.piolibdeps/TheThingsNetwork_ID987/src .piolibdeps/TheThingsNetwork_ID987/src/TheThingsMessage.cpp
avr-gcc-ranlib .pioenvs/leonardo/libFrameworkArduino.a
avr-g++ -o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/TheThingsNetwork.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo -I.piolibdeps/TheThingsNetwork_ID987/src .piolibdeps/TheThingsNetwork_ID987/src/TheThingsNetwork.cpp
avr-gcc -o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/appData.pb.o -c -std=gnu11 -fno-fat-lto-objects -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo -I.piolibdeps/TheThingsNetwork_ID987/src .piolibdeps/TheThingsNetwork_ID987/src/appData.pb.c
avr-gcc -o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/deviceData.pb.o -c -std=gnu11 -fno-fat-lto-objects -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo -I.piolibdeps/TheThingsNetwork_ID987/src .piolibdeps/TheThingsNetwork_ID987/src/deviceData.pb.c
.piolibdeps/TheThingsNetwork_ID987/src/TheThingsNetwork.cpp: In member function 'void TheThingsNetwork::reset(bool)':
.piolibdeps/TheThingsNetwork_ID987/src/TheThingsNetwork.cpp:409:10: warning: variable 'length' set but not used [-Wunused-but-set-variable]
size_t length = readResponse(SYS_TABLE, SYS_RESET, buffer, sizeof(buffer));
^
avr-gcc -o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/pb_common.o -c -std=gnu11 -fno-fat-lto-objects -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo -I.piolibdeps/TheThingsNetwork_ID987/src .piolibdeps/TheThingsNetwork_ID987/src/pb_common.c
avr-gcc -o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/pb_decode.o -c -std=gnu11 -fno-fat-lto-objects -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo -I.piolibdeps/TheThingsNetwork_ID987/src .piolibdeps/TheThingsNetwork_ID987/src/pb_decode.c
avr-gcc -o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/pb_encode.o -c -std=gnu11 -fno-fat-lto-objects -g -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DPLATFORMIO=30502 -DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO -DARDUINO=10620 -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_PRODUCT=\"Arduino Leonardo\"" -DUSB_MANUFACTURER=\"Arduino\" -I/home/glyn/.platformio/packages/framework-arduinoavr/cores/arduino -I/home/glyn/.platformio/packages/framework-arduinoavr/variants/leonardo -I.piolibdeps/TheThingsNetwork_ID987/src .piolibdeps/TheThingsNetwork_ID987/src/pb_encode.c
avr-gcc-ar rc .pioenvs/leonardo/lib395/libTheThingsNetwork_ID987.a .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/CayenneLPP.o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/TheThingsMessage.o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/TheThingsNetwork.o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/appData.pb.o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/deviceData.pb.o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/pb_common.o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/pb_decode.o .pioenvs/leonardo/lib395/TheThingsNetwork_ID987/pb_encode.o
avr-gcc-ranlib .pioenvs/leonardo/lib395/libTheThingsNetwork_ID987.a
avr-g++ -o .pioenvs/leonardo/firmware.elf -Os -mmcu=atmega32u4 -Wl,--gc-sections -flto -fuse-linker-plugin .pioenvs/leonardo/src/src.ino.o -L.pioenvs/leonardo -Wl,--start-group .pioenvs/leonardo/libFrameworkArduinoVariant.a .pioenvs/leonardo/libFrameworkArduino.a -lm .pioenvs/leonardo/lib395/libTheThingsNetwork_ID987.a -Wl,--end-group
avr-size --mcu=atmega32u4 -C -d .pioenvs/leonardo/firmware.elf
AVR Memory Usage
----------------
Device: atmega32u4

Program:    6268 bytes (19.1% Full)
(.text + .data + .bootloader)

Data:        960 bytes (37.5% Full)
(.data + .bss + .noinit)


avr-objcopy -O ihex -R .eeprom .pioenvs/leonardo/firmware.elf .pioenvs/leonardo/firmware.hex

Using Arduino IDE 1.8.5, I get the same issue with serial garbage:

/home/glyn/Documents/tools/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /home/glyn/Documents/tools/arduino-1.8.5/hardware -hardware /home/glyn/.arduino15/packages -tools /home/glyn/Documents/tools/arduino-1.8.5/tools-builder -tools /home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr -tools /home/glyn/.arduino15/packages -built-in-libraries /home/glyn/Documents/tools/arduino-1.8.5/libraries -libraries /home/glyn/Documents/emonpi/firmware/libraries -fqbn=arduino:avr:leonardo -vid-pid=0X2341_0X8036 -ide-version=10805 -build-path /tmp/arduino_build_3652 -warnings=none -build-cache /tmp/arduino_cache_248747 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr -verbose /home/glyn/Desktop/sketch_jan23a/sketch_jan23a.ino
/home/glyn/Documents/tools/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /home/glyn/Documents/tools/arduino-1.8.5/hardware -hardware /home/glyn/.arduino15/packages -tools /home/glyn/Documents/tools/arduino-1.8.5/tools-builder -tools /home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr -tools /home/glyn/.arduino15/packages -built-in-libraries /home/glyn/Documents/tools/arduino-1.8.5/libraries -libraries /home/glyn/Documents/emonpi/firmware/libraries -fqbn=arduino:avr:leonardo -vid-pid=0X2341_0X8036 -ide-version=10805 -build-path /tmp/arduino_build_3652 -warnings=none -build-cache /tmp/arduino_cache_248747 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr -verbose /home/glyn/Desktop/sketch_jan23a/sketch_jan23a.ino
Using board 'leonardo' from platform in folder: /home/glyn/Documents/tools/arduino-1.8.5/hardware/arduino/avr
Using core 'arduino' from platform in folder: /home/glyn/Documents/tools/arduino-1.8.5/hardware/arduino/avr
Detecting libraries used...
"/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/glyn/Documents/tools/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/glyn/Documents/tools/arduino-1.8.5/hardware/arduino/avr/variants/leonardo" "/tmp/arduino_build_3652/sketch/sketch_jan23a.ino.cpp" -o "/dev/null"
"/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/glyn/Documents/tools/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/glyn/Documents/tools/arduino-1.8.5/hardware/arduino/avr/variants/leonardo" "-I/home/glyn/Documents/emonpi/firmware/libraries/TheThingsNetwork/src" "/tmp/arduino_build_3652/sketch/sketch_jan23a.ino.cpp" -o "/dev/null"
Using cached library dependencies for file: /home/glyn/Documents/emonpi/firmware/libraries/TheThingsNetwork/src/CayenneLPP.cpp
Using cached library dependencies for file: /home/glyn/Documents/emonpi/firmware/libraries/TheThingsNetwork/src/TheThingsMessage.cpp
Using cached library dependencies for file: /home/glyn/Documents/emonpi/firmware/libraries/TheThingsNetwork/src/TheThingsNetwork.cpp
Using cached library dependencies for file: /home/glyn/Documents/emonpi/firmware/libraries/TheThingsNetwork/src/appData.pb.c
Using cached library dependencies for file: /home/glyn/Documents/emonpi/firmware/libraries/TheThingsNetwork/src/deviceData.pb.c
Using cached library dependencies for file: /home/glyn/Documents/emonpi/firmware/libraries/TheThingsNetwork/src/pb_common.c
Using cached library dependencies for file: /home/glyn/Documents/emonpi/firmware/libraries/TheThingsNetwork/src/pb_decode.c
Using cached library dependencies for file: /home/glyn/Documents/emonpi/firmware/libraries/TheThingsNetwork/src/pb_encode.c
Generating function prototypes...
"/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/glyn/Documents/tools/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/glyn/Documents/tools/arduino-1.8.5/hardware/arduino/avr/variants/leonardo" "-I/home/glyn/Documents/emonpi/firmware/libraries/TheThingsNetwork/src" "/tmp/arduino_build_3652/sketch/sketch_jan23a.ino.cpp" -o "/tmp/arduino_build_3652/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/glyn/Documents/tools/arduino-1.8.5/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_3652/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/glyn/Documents/tools/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/glyn/Documents/tools/arduino-1.8.5/hardware/arduino/avr/variants/leonardo" "-I/home/glyn/Documents/emonpi/firmware/libraries/TheThingsNetwork/src" "/tmp/arduino_build_3652/sketch/sketch_jan23a.ino.cpp" -o "/tmp/arduino_build_3652/sketch/sketch_jan23a.ino.cpp.o"
Compiling libraries...
Compiling library "TheThingsNetwork"
Using previously compiled file: /tmp/arduino_build_3652/libraries/TheThingsNetwork/appData.pb.c.o
Using previously compiled file: /tmp/arduino_build_3652/libraries/TheThingsNetwork/deviceData.pb.c.o
Using previously compiled file: /tmp/arduino_build_3652/libraries/TheThingsNetwork/pb_common.c.o
Using previously compiled file: /tmp/arduino_build_3652/libraries/TheThingsNetwork/pb_decode.c.o
Using previously compiled file: /tmp/arduino_build_3652/libraries/TheThingsNetwork/pb_encode.c.o
Using previously compiled file: /tmp/arduino_build_3652/libraries/TheThingsNetwork/CayenneLPP.cpp.o
Using previously compiled file: /tmp/arduino_build_3652/libraries/TheThingsNetwork/TheThingsMessage.cpp.o
Using previously compiled file: /tmp/arduino_build_3652/libraries/TheThingsNetwork/TheThingsNetwork.cpp.o
Compiling core...
Using precompiled core
Linking everything together...
"/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4  -o "/tmp/arduino_build_3652/sketch_jan23a.ino.elf" "/tmp/arduino_build_3652/sketch/sketch_jan23a.ino.cpp.o" "/tmp/arduino_build_3652/libraries/TheThingsNetwork/appData.pb.c.o" "/tmp/arduino_build_3652/libraries/TheThingsNetwork/deviceData.pb.c.o" "/tmp/arduino_build_3652/libraries/TheThingsNetwork/pb_common.c.o" "/tmp/arduino_build_3652/libraries/TheThingsNetwork/pb_decode.c.o" "/tmp/arduino_build_3652/libraries/TheThingsNetwork/pb_encode.c.o" "/tmp/arduino_build_3652/libraries/TheThingsNetwork/CayenneLPP.cpp.o" "/tmp/arduino_build_3652/libraries/TheThingsNetwork/TheThingsMessage.cpp.o" "/tmp/arduino_build_3652/libraries/TheThingsNetwork/TheThingsNetwork.cpp.o" "/tmp/arduino_build_3652/../arduino_cache_248747/core/core_arduino_avr_leonardo_f1512be26b4a2d2df7aca2186ae23cdd.a" "-L/tmp/arduino_build_3652" -lm
"/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0  "/tmp/arduino_build_3652/sketch_jan23a.ino.elf" "/tmp/arduino_build_3652/sketch_jan23a.ino.eep"
"/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr/bin/avr-objcopy" -O ihex -R .eeprom  "/tmp/arduino_build_3652/sketch_jan23a.ino.elf" "/tmp/arduino_build_3652/sketch_jan23a.ino.hex"
Using library TheThingsNetwork at version 2.5.6 in folder: /home/glyn/Documents/emonpi/firmware/libraries/TheThingsNetwork 
Sketch uses 6362 bytes (22%) of program storage space. Maximum is 28672 bytes.
Global variables use 970 bytes (37%) of dynamic memory, leaving 1590 bytes for local variables. Maximum is 2560 bytes.
Forcing reset using 1200bps open/close on port /dev/ttyACM0
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyS0, } => {}
PORTS {/dev/ttyS0, } / {/dev/ttyS0, } => {}
PORTS {/dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {/dev/ttyACM0, }
Found upload port: /dev/ttyACM0
/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr/bin/avrdude -C/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -D -Uflash:w:/tmp/arduino_build_3652/sketch_jan23a.ino.hex:i 

avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/glyn/Documents/tools/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/glyn/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: reading input file "/tmp/arduino_build_3652/sketch_jan23a.ino.hex"
avrdude: writing flash (6362 bytes):

Writing | ################################################## | 100% 0.55s

avrdude: 6362 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_3652/sketch_jan23a.ino.hex:
avrdude: load data flash data from input file /tmp/arduino_build_3652/sketch_jan23a.ino.hex:
avrdude: input file /tmp/arduino_build_3652/sketch_jan23a.ino.hex contains 6362 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.10s

avrdude: verifying ...
avrdude: 6362 bytes of flash verified

avrdude done.  Thank you.

Board at /dev/ttyACM0 is not available

I think I may have a faulty RN2483 module?

stupid idea… upload the blink sketch, does that work ?

also, after uploading the device sketch and before you open the monitor you must choose a different port

Yes, the blink sketch uploads fine and the serial window works fine. The only issue is the RN2483 does not seem to be returning data. Do you think I should contact shop support for RMA?

can you check this…

  • upload the passthrough sketch to the board
  • open a terminal (or use this free program) and see if you can communicate

btw I’ve seen the same behavior before with ubuntu in your log, opening and closing ports, what OS are you using ?

Ah, using the passthrough sketch with command mac get deveui I get response 0004A30B001BB460 :+1:

I’m assuming device EUI I need to register it on the network?

This can’t be the EUI since TTN EUI must be lower case right? What’s the command to obtain the EUI?

Yes, I’m using Ubuntu 16.04

http://ww1.microchip.com/downloads/en/DeviceDoc/40001784B.pdf

sys get hweui

if you get a response your TTN node is not defect, but the combination Arduino IDE/ UBUNTU connected to a 32U4 based module is not functioning as is does under windows

mac get deveui and sys get hweui both return the same string with capital letter. TTN won’t let me connect a node with capital letters in the EUI.

Thanks a lot for your help. I know I’m asking noob questions, I’m just starting out with TTN

that IS the hardware EUI

I did it here with passthrough and a terminal program

eui-0

eui-1

eui-2

eui-3

you see… the same HWEUI

if you (could) run the device info sketch on the TTN node it looks like this on the monitor :slight_smile:

devinfo

so go to the console and create an application and add this device
on the bottom of that page you see Example Code

copy paste that in the basic sketch and upload to the node
that’s it… data should be coming in if you are in range of a gateway

COM47 !! :smiley:

1 Like

That’s nothing…I had com port over 100!

every new device and serial adaptor created a new one.