TTN GATEWAY central

Just received the gateway and had some troubles getting it up and running. What happened:

  • Initially it was doing a FOTA, which took 10 - 15 minutes to start and complete
  • After the reboot it seemed to start quite fast
  • After unplugging it and plugging it again, it took ~ 5 minutes to get back up (many MON: heap usage and MON: SYS Stack size logs before it actually did anything)

Basically this took quite some time (third led flashing):

>WIFI: IP Address: 0.0.0.0 
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.185 
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: 3967
MON: heap usage: 147KB (156KB), free: 192KB
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
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
MON: SYS Stack size: 3961
MON: heap usage: 151KB (156KB), free: 188KB
HTTPS: Connection Opened: Starting TLS Negotiation
HTTP: Wait for TLS Connect
HTTP: TLS Connection Opened: Starting Clear Text Communication
HTTP: Got 1279 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
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
LORA: version: 01
MON: SYS Stack size: 2876
MON: heap usage: 151KB (233KB), free: 188KB
LORA: Configuration succeeded
LORA: Starting operation
LORA: Changing state from 4 to 6
MON: SYS Stack size: 2876
MON: heap usage: 151KB (233KB), free: 188KB
LORA: Changing state from 6 to 3
LORA: GOING ASYNC
LORA: Changing state from 3 to 9

CNFG: Load online user config state change to 9

MAIN: Leaving state 3
MAIN: Entering state 4
FLASH: Loading FOTA Data
FIRM: Requesting key ...
HTTP: Starting connection
HTTPS: Connection Opened: Starting TLS Negotiation
HTTP: Wait for TLS Connect
HTTP: TLS Connection Opened: Starting Clear Text Communication
LORA: Packet dropped! Bad CRC
LORA: Packet dropped! Bad CRC
HTTP: Got 568 bytes
HTTP: Connection Closed
HTTP: Close active socket 1
FIRM: Starting download
FIRM: available bytes: 79
FIRM: (Downloaded FOTA key) 69 AE B7 78 1F 49 4E 7F BC B6 C7 CD 9C 59 4F 5D FA AA 3D 81 D4 9C 56 90 A6 83 81 98 FF 18 88 6A 
FIRM: (Stored FOTA key) 69 AE B7 78 1F 49 4E 7F BC B6 C7 CD 9C 59 4F 5D FA AA 3D 81 D4 9C 56 90 A6 83 81 98 FF 18 88 6A 
FIRM: Firmware is already downloaded
MAIN: No new firmware available

MAIN: Leaving state 4
MAIN: Entering state 5
MQTT: GOT IP: 52.169.76.203
Connecting to: 52.169.76.203
MQTT: Connection Opened: Starting TLS Negotiation
MQTT: Wait for SSL Connect
MQTT: TLS ready: Connect MQTT
RQMQTT: Connected

When you connect to both the RX and TX serial pins, you can also type help to get a list of commands you can execute.

2 Likes