Ok, I’m still having problems here. I was hoping adding the new gateway would be straightforward but no.
I have gotten a spare kickstarter gw from Hull City Council and added a new gateway bnn-ttn-1a in the gateway console. Created the api key with these rights :-
Gone through setting up the gateway (Wifi and Ethernet connected) with account server set to https://eu1.cloud.thethings.network and adding the API key but the new gateway, I am assured was working, will not activate.
Looking at the debug output from the gateway itself I can see two things:-
1 the device firmware appears to be 1.05 - even after trying to update it using an sd card using instructions from gateway/firmware at develop · TheThingsProducts/gateway · GitHub and selecting the top stable release. However, once the gateway works this should update OTA.
2 More importantly the device fails TLS negotiation ( see near the end of this debug output).
**************************
* The Things Network *
* G A T E W A Y *
**************************
Firmware name: AmazingAckermann, type: 0, version: 1.0.5, commit: fa89b993, timestamp: 1531815112
Bootloader revision: 1, commit: 7167873a, timestamp: 1496411298
Build time: Jul 17 2018 08:12:51
Reboot reason: 0x40
BOOT: (persisted info) 6F 72 72 65 01 03 90 F2 11 18 2A 63 BB F0 6F D2
WIFI: Entering state 0
WIFI: Entering SCAN state 0
MAIN: Initialisation complete
LORA: Changing state from 0 to 0
MAIN: Leaving state 0
MAIN: Entering state 1
FLASH: Magic bytes found: wifi config present
FLASH: Magic bytes found: activation data present
FLASH: Magic bytes not found: no stored FOTA data present
FLASH: Loading Firmware Data
CNFG: (Firmware HASH (sha256)) FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FLASH: Loading WiFi Data
CNFG: WiFi SSID: TNCAPF2219D
CNFG: WiFi key: ***
CNFG: WiFi conn_type: 1
CNFG: WiFi sec_type: 4
FLASH: Loading Activation Data
CNFG: Gateway ID: bnn-ttn-1a
CNFG: Gateway Key: ***
CNFG: Account Server URL: https://account.thethingsnetwork.org/
CNFG: Locked: false
CNFG: Locked first time: true
MAIN: Leaving state 1
MAIN: Entering state 2
INET: State change to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
WIFI: Entering state 1
ETH: IP Address: 0.0.0.0
WIFI: Entering state 2
WIFI: Disabling modules
Head magic match void: trying to free an already freed block, ignore
WIFI: Entering state 3
WIFI: Enabling modules for client
WIFI: Entering state 6
>WIFI: IP Address: 0.0.0.0
SNTP: State change from 0 to 1
INET: Gateway has Ethernet
INET: State change to 2
INET: Connected to a network, waiting for DHCP lease, checking validity with ping
CB: SNTP: State change from 1 to 2
ETH: IP Address: 192.168.1.180
WIFI: IP Address: 192.168.1.173
INET: State change to 3
INET: Ping probe
INET: Ping response from MRF24WN, set as default
INET: State change to 4
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
SNTP: State change from 2 to 3
SNTP: State change from 3 to 4
MON: SYS Stack size: 3959
MON: TCPIP Stack size: 3785
MON: APP Stack size: 7987
MON: LoRa Stack size: 3911
MON: heap usage: 180KB (188KB), free: 160KB
SNTP: State change from 4 to 5
SNTP: State change from 5 to 6
SNTP: State change from 6 to 7
INET: State change to 5
MAIN: Leaving state 2
MAIN: Entering state 3
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 Negotiation Failed - Aborting
HTTP: Close active socket 1
CONF: ERROR REQUEST
CNFG: Downloading gateway configuration failed
CNFG: Load online user config state change to 8
CNFG: Communication ERROR
The debug output, near the bottom, shows a connection was opened then TLS negotiation failed.
I have double checked the Gateway Key in the gateway activation/settings dialog is complete with no extras.
NNSXS.W4S3I4........CU3PQ
Does the TLS negotiation failed suggest an API key issue?
Any ideas on how to progress?
Many thanks for your time and patience.