TTN Gateway won't register, just reboots


(Mike) #1

Hi

This is the 2nd TTN Gateway we have to play with and this one won’t register on the TTN network. I have tried reset the device and re registering it several times, but it doesn’t want to play ball. It gets as far as LORA: starting reconfiguration, SNTP state change from 0 to 0 and reboots (see debug below).

CNFG: Load online user config state change to 4
HTTP: Close active socket 0
HTTP: Starting connection
HTTPS: Connection Opened: Starting TLS Negotiation
HTTP: Wait for TLS Connect
HTTP: TLS Connection Opened: Starting Clear Text Communication
HTTP: Got 1292 bytes
HTTP: Connection Closed
HTTP: Close active socket 1
CONF: Parsing response token: HTTP/1.1 200 OK
CONF: ROUTER URL: mqtts://bridge.eu.thethings.network:8883

CNFG: Load online user config state change to 6
MON: SYS Stack size: 2843
MON: heap usage: 152KB (234KB), free: 187KB
FREQ: APP_URL_Buffer: https://account.thethingsnetwork.org/api/v2/frequency-plans/EU_863_870
HTTP: Starting connection
HTTPS: Connection Opened: Starting TLS Negotiation
HTTP: Wait for TLS Connect
HTTP: TLS Connection Opened: Starting Clear Text Communication
HTTP: Got 1232 bytes
HTTP: Connection Closed
HTTP: Close active socket 1

CNFG: Load online user config state change to 7

CNFG: Configuring LoRa module
LORA: Changing state from 2 to 4
LORA: Starting reconfiguration
MON: SYS Stack size: 2843
MON: heap usage: 152KB (234KB), free: 187KB
SNTP: State change from 0 to 0
SNTP: State change from 0 to 0
[Device Appears to reboot]

I did see the following during the last attempt “CNFG: Gateway activation locked”. I am not sure if that is good or bad.

Any help would be very much appreciated.

Mike


The Things Gateway activation problem
TTN GATEWAY central 2
(Mike) #2

Have tried upgrading the firmware by putting checksums and firmware.hex into a folder called update on the SD card from the stable branch.


(Mike) #3

Have tried the beta firmware. On the debug, it shows version 1.0.4 (build May 2 2018). Still reboots at:-

CNFG: Configuring LoRa module
LORA: Changing state from 2 to 4
LORA: Starting reconfiguration
SNTP: State change from 0 to 0
SNTP: State change from 0 to 0

Is this time protocol or something else ?


(Mike) #4

Managed to get 1.0.3 onto this TTN gateway, but I get :-

LORA: UART TIMEOUT
LORA: UART TIMEOUT
LORA: UART TIMEOUT
LORA: UART TIMEOUT
LORA: UART TIMEOUT
LORA: Close and reopen UART on 115200 baud.
LORA: Changing state from 2 to 1
MON: SYS Stack size: 3959
MON: heap usage: 147KB (157KB), free: 192KB
LORA: Wait init complete, check for communication on 115200 baud.
LORA: Changing state from 1 to 2
LORA: UART TIMEOUT
LORA: UART TIMEOUT
MON: SYS Stack size: 3959
MON: heap usage: 148KB (157KB), free: 191KB
LORA: UART TIMEOUT
LORA: UART TIMEOUT
LORA: UART TIMEOUT 

Does this indicate a problem with the TTN gateway?


(Mike) #5

Well I am the son of a monkeys uncle!

Pushed the Microchip module in a bit firmer (it already seemed to be fully in) and suddenly we have life.


(M P M) #6

Well, well so mine turned out as well to be a mechanical problem like your with the microchip.

So please dear TTN Team put a sticky note atop in the forum:


#7

@mikcatta - you are a legend - this is exactly when was wrong with mine too. I have been dicking around with this thing for almost a year now playing with firmware and all sorts trying to work out what was wrong… it was bloody hardware. Agree with @m_p_m they need to make this much clearer!


(Mike) #8

Brilliant! I am glad it has helped other people to know what to do in event of this weird looping issues, as it certainly wasn’t obvious.


#9

TTN GATEWAY central 3
#10