Now even more bizarre. Tried all suggestions. Gateway would come up and then go down. So I decided to try the other (unused gateway) and start from scratch. This one will not connect at all. I have tried latest stable and beta firmware. This is what is coming out of the debug port … can anyone tell me what the problem is? The first two leds are solid, the third slowly flashing. This goes on for a while until an automatic reboot and then into the same state.
> **************************
> * The Things Network *
> * G A T E W A Y *
> **************************
> Firmware name: AmazingAckermann, type: 0, version: 1.0.7, commit: e9d35a30, timestamp: 1560942019
> Bootloader revision: 1, commit: 7167873a, timestamp: 1496411298
> Build time: Jun 19 2019 11:01:21
> Reboot reason: 0x40
> BOOT: (persisted info) 6F 72 72 65 01 03 AE 62 75 77 BF F5 14 7C 3C 10
>
>
>
>
> 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: M2M-UNIFI-UAP-AC-M
> CNFG: WiFi key: ***
> CNFG: WiFi conn_type: 1
> CNFG: WiFi sec_type: 4
> FLASH: Loading Activation Data
> CNFG: Gateway ID: ttn-gw02-868-new
> 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
> LORA: Wait init complete, waiting for application.
> LORA: Changing state from 1 to 2
> MON: SYS Stack size: 3967
> MON: TCPIP Stack size: 3882
> MON: APP Stack size: 8008
> MON: LoRa Stack size: 3909
> MON: heap usage: 178KB (188KB), free: 161KB
> CB: Disconnect
> CB: INET: Gateway has WiFi
> INET: State change to 2
> INET: Connected to a network, waiting for DHCP lease, checking validity with ping
> MON: SYS Stack size: 3959
> MON: TCPIP Stack size: 3882
> MON: APP Stack size: 8008
> MON: LoRa Stack size: 3909
> MON: heap usage: 178KB (188KB), free: 161KB
> SNTP: State change from 1 to 2
> WIFI: IP Address: 192.168.1.219
> INET: State change to 3
> INET: Ping probe
> INET: Error sending probe on Eth
> INET: Ping response from MRF24WN, set as default
> INET: State change to 4
> SNTP: State change from 2 to 6
> SNTP: State change from 6 to 1
> INET: Initiated NTP request.
> SNTP: State change from 1 to 2
> SNTP: State change from 2 to 3
> SNTP: State change from 3 to 4
> 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
> MON: SYS Stack size: 2837
> MON: TCPIP Stack size: 3765
> MON: APP Stack size: 4243
> MON: LoRa Stack size: 3909
> MON: heap usage: 262KB (268KB), free: 76KB
> HTTP: TLS Connection Opened: Starting Clear Text Communication
> HTTP: Got 1328 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:8882
>
> CNFG: Load online user config state change to 5
> FLASH: Lock Activation Data
>
> CNFG: Gateway activation locked
>
> CNFG: Load online user config state change to 6
> 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 1266 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 3
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> MON: SYS Stack size: 2837
> MON: TCPIP Stack size: 3765
> MON: APP Stack size: 3292
> MON: LoRa Stack size: 3887
> MON: heap usage: 186KB (268KB), free: 153KB
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: RESET MODULE
> LORA: Changing state from 3 to 0
> LORA: Initialisation complete
> LORA: Changing state from 0 to 1
> LORA: Wait init complete, waiting for application.
> LORA: Changing state from 1 to 2
> LORA: Changing state from 2 to 3
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> MON: SYS Stack size: 2837
> MON: TCPIP Stack size: 3765
> MON: APP Stack size: 3292
> MON: LoRa Stack size: 3857
> MON: heap usage: 202KB (268KB), free: 137KB
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: RESET MODULE
> LORA: Changing state from 3 to 0
> LORA: Initialisation complete
> LORA: Changing state from 0 to 1
> MON: SYS Stack size: 2837
> MON: TCPIP Stack size: 3765
> MON: APP Stack size: 3292
> MON: LoRa Stack size: 3857
> MON: heap usage: 218KB (268KB), free: 121KB
> LORA: Wait init complete, waiting for application.
> LORA: Changing state from 1 to 2
> LORA: Changing state from 2 to 3
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
>
> **************************
> * The Things Network *
> * G A T E W A Y *
> **************************
> Firmware name: AmazingAckermann, type: 0, version: 1.0.7, commit: e9d35a30, timestamp: 1560942019
> Bootloader revision: 1, commit: 7167873a, timestamp: 1496411298
> Build time: Jun 19 2019 11:01:21
> Reboot reason: 0x40
> BOOT: (persisted info) 6F 72 72 65 01 03 AE 62 75 77 BF F5 14 7C 3C 10
>
>
>
>
> 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: M2M-UNIFI-UAP-AC-M
> CNFG: WiFi key: ***
> CNFG: WiFi conn_type: 1
> CNFG: WiFi sec_type: 4
> FLASH: Loading Activation Data
> CNFG: Gateway ID: ttn-gw02-868-new
> CNFG: Gateway Key: ***
> CNFG: Account Server URL: https://account.thethingsnetwork.org
> CNFG: Locked: true
> CNFG: Locked first time: false
>
> 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
> CB: INET: Gateway has WiFi
> INET: State change to 2
> INET: Connected to a network, waiting for DHCP lease, checking validity with ping
> SNTP: State change from 1 to 2
> WIFI: IP Address: 192.168.1.219
> LORA: Wait init complete, waiting for application.
> LORA: Changing state from 1 to 2
> INET: State change to 3
> INET: Ping probe
> INET: Error sending probe on Eth
> INET: Ping response from MRF24WN, set as default
> INET: State change to 4
> SNTP: State change from 2 to 3
> MON: SYS Stack size: 3959
> MON: TCPIP Stack size: 3799
> MON: APP Stack size: 8008
> MON: LoRa Stack size: 3909
> MON: heap usage: 179KB (188KB), free: 160KB
> SNTP: State change from 3 to 4
> 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 Opened: Starting Clear Text Communication
> HTTP: Got 1328 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:8882
>
> CNFG: Load online user config state change to 6
> 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 1266 bytes
> MON: SYS Stack size: 2870
> MON: TCPIP Stack size: 3799
> MON: APP Stack size: 3292
> MON: LoRa Stack size: 3909
> MON: heap usage: 262KB (268KB), free: 76KB
> 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 3
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> SNTP: StatLORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: RESET MODULE
> LORA: Changing state from 3 to 0
> LORA: Initialisation complete
> LORA: Changing state from 0 to 1
> MON: SYS Stack size: 2870
> MON: TCPIP Stack size: 3787
> MON: APP Stack size: 3292
> MON: LoRa Stack size: 3887
> MON: heap usage: 202KB (268KB), free: 137KB
> LORA: Wait init complete, waiting for application.
> LORA: Changing state from 1 to 2
> LORA: Changing state from 2 to 3
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: RESET MODULE
> LORA: Changing state from 3 to 0
> LORA: Initialisation complete
> LORA: Changing state from 0 to 1
> MON: SYS Stack size: 2870
> MON: TCPIP Stack size: 3785
> MON: APP Stack size: 3292
> MON: LoRa Stack size: 3857
> MON: heap usage: 218KB (268KB), free: 121KB
> LORA: Wait init complete, waiting for application.
> LORA: Changing state from 1 to 2
> LORA: Changing state from 2 to 3
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: RESET MODULE
> LORA: Changing state from 3 to 0
> MON: SYS Stack size: 2870
> MON: TCPIP Stack size: 3763
> MON: APP Stack size: 3292
> MON: LoRa Stack size: 3857
> MON: heap usage: 234KB (268KB), free: 104KB
> LORA: Initialisation complete
> LORA: Changing state from 0 to 1
> LORA: Wait init complete, waiting for application.
> LORA: Changing state from 1 to 2
> LORA: Changing state from 2 to 3
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> MON: SYS Stack size: 2870
> MON: TCPIP Stack size: 3763
> MON: APP Stack size: 3292
> MON: LoRa Stack size: 3857
> MON: heap usage: 234KB (268KB), free: 104KB
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: RESET MODULE
> LORA: Changing state from 3 to 0
> LORA: Initialisation complete
> LORA: Changing state from 0 to 1
> LORA: Wait init complete, waiting for application.
> LORA: Changing state from 1 to 2
> LORA: Changing state from 2 to 3
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> MON: SYS Stack size: 2870
> MON: TCPIP Stack size: 3763
> MON: APP Stack size: 3292
> MON: LoRa Stack size: 3857
> MON: heap usage: 250KB (268KB), free: 88KB
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: RESET MODULE
> LORA: Changing state from 3 to 0
> LORA: Initialisation complete
> LORA: Changing state from 0 to 1
> MON: SYS Stack size: 2870
> MON: TCPIP Stack size: 3763
> MON: APP Stack size: 3292
> MON: LoRa Stack size: 3857
> MON: heap usage: 267KB (268KB), free: 72KB
> LORA: Wait init complete, waiting for application.
> LORA: Changing state from 1 to 2
> LORA: Changing state from 2 to 3
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: RESET MODULE
> LORA: Changing state from 3 to 0
> LORA: Initialisation complete
> LORA: Changing state from 0 to 1
> MON: SYS Stack size: 2870
> MON: TCPIP Stack size: 3763
> MON: APP Stack size: 3292
> MON: LoRa Stack size: 3857
> MON: heap usage: 283KB (283KB), free: 56KB
> LORA: Wait init complete, waiting for application.
> LORA: Changing state from 1 to 2
> LORA: Changing state from 2 to 3
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: RESET MODULE
> LORA: Changing state from 3 to 0
> LORA: Initialisation complete
> LORA: Changing state from 0 to 1
> MON: SYS Stack size: 2870
> MON: TCPIP Stack size: 3763
> MON: APP Stack size: 3292
> MON: LoRa Stack size: 3857
> MON: heap usage: 299KB (299KB), free: 40KB
> LORA: Wait init complete, waiting for application.
> LORA: Changing state from 1 to 2
> LORA: Changing state from 2 to 3
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: Starting reconfiguration
> LGMD:Command, cmd: 0x31, size: 0
> LGMD:Timeout on cmd: 0x31
> LORA: Configuration failed, retry
> LORA: RESET MODULE
> LORA: Changing sta
> *** assert ../src/system_config/TTN_Gateway_v1/rtos_hooks.c:112:fatal:vApplicationMallocFailedHook
>
> SNTP: State change from 0 to 0
> SNTP: State change from 0 to 0
>
>
>
> **************************
> * The Things Network *
> * G A T E W A Y *
> **************************
> Firmware name: AmazingAckermann, type: 0, version: 1.0.7, commit: e9d35a30, timestamp: 1560942019
> Bootloader revision: 1, commit: 7167873a, timestamp: 1496411298
> Build time: Jun 19 2019 11:01:21
> Reboot reason: 0x40
> BOOT: (persisted info) 6F 72 72 65 01 03 AE 62 75 77 BF F5 14 7C 3C 10
>
>
>
>
> 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: M2M-UNIFI-UAP-AC-M
> CNFG: WiFi key: ***
> CNFG: WiFi conn_type: 1
> CNFG: WiFi sec_type: 4
> FLASH: Loading Activation Data
> CNFG: Gateway ID: ttn-gw02-868-new
> CNFG: Gateway Key: ***
> CNFG: Account Server URL: https://account.thethingsnetwork.org
> CNFG: Locked: true
> CNFG: Locked first time: false
>
> 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
> CB: INET: Gateway has WiFi
> INET: State change to 2
> INET: Connected to a network, waiting for DHCP lease, checking validity with ping
> SNTP: State change from 1 to 2
> WIFI: IP Address: 192.168.1.219
> LORA: Wait init complete, waiting for application.
> LORA: Changing state from 1 to 2
> INET: State change to 3
> INET: Ping probe
> INET: Error sending probe on Eth
> INET: Ping response from MRF24WN, set as default
> INET: State change to 4
> S