TTN GATEWAY central

Thanks for the response @sronan & @Leondegeling - I’ve made sure the board is properly seated. I’m fairly certain it was from the beginning. However, I’m still getting the same loop. Is there another issue that might be causing this symptom?

CNFG: Configuring LoRa module
LORA: Changing state from 2 to 4
LORA: Starting reconfiguration
LORA: version: 02
LORA: Configuration failed, retry
LORA: Starting reconfiguration
MON: SYS Stack size: 2873
MON: heap usage: 153KB (237KB), free: 186KB
LORA: version: 02
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LORA: version: 02
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing staSNTP: State change from 0 to 0
SNTP: State change from 0 to 0

Thanks again

Hello, ik just receved my “the things gateway” today.
But i have trouble connecting it to the lan interface.

WLan, no problem
But LAN: no connection:

  • the LED’s on the LAN connector go on for about 1 second and they go off again. after a while they go on again for 1 second, en then they go off.

Is there something i can do ? or is it broken ?

thx in advance

Hi,

yesterday i received my Gateway (Kickstarter). The Wifi activation was no problem, but i have a reboot loop because the LoRa Module is not responding, like already posted by some other guys here.
I connected the UART to a Raspberry 3 and used minicom to get the debug output:

CNFG: Configuring LoRa module
LORA: Changing state from 2 to 4
LORA: Starting reconfiguration
LORA: version: 01
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LORA: version: 01
LORA: Configuration failed, retry
LORA: Starting reconfiguration
MON: SYS Stack size: 2873
MON: heap usage: 151KB (233KB), free: 188KB
LORA: version: 01
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: ChaSNTP: State change from 0 to 0
SNTP: State change from 0 to 0

Any advice would be appreciated.

Greetings from Germany
Michael

1 Like

Sorry I can’t offer additional thoughts. I am hoping that someone from the core team starts communicating with you directly about the problem soon, if that hasn’t already happened, and that you’ll let us know how the problem is resolved. Thanks.

1 Like

Hello Everybody,

I got a TTN Gateway Kickster version from Newark. I was trying to activate following the procedure posted before on this thread but I was unable to see the wifi “Things-Gateway-XXXX”. I reset the wi-fi holding the mode button for 2, then 3 secs, but nothing :frowning: Then I decided to hold the button while powering but I can see the wifi either. I also tried to assign an IP address by connecting the ethernet port to a home router without success. For the record, the first led is light up and the second one is blinking fast. Any clues? CC: @wienkegiezeman

Cheers,
Gabriel

@Leondegeling Thanks for your reply!

I’ve tried pressing the mode button in several other ways to try to get the gateway to behave differently, but all it does is power on and flash rapidly before it sits idle. No ethernet and no wifi. At this point it’s essentially dead.

It looks like I have to get a readout of the UART to see what’s going on. I don’t have the cable or board (ref. TTN Gateway - FAQ). Any idea what I need to get and where I can get it? I’m located in Norway so any online store in Europe or the US is fine. I’ll be using a MacBook to read out the data.

From reading other reports here it looks like I’m not alone. I’m surprised (and disappointed) that the TTN team is not offering any help with this.

I got mine at https://www.antratek.nl/ftdi-basic-breakout-3-3v they are not the cheapest, but they ship very fast and are reliable. You also need a usb cable.

When i had troubles i was contacted by rish in a couple of days, i guess th coreteam is very very busy these days.

Great, thanks for the link – much appreciated! I’m going to try a local source first; just ordered these two and some jumper cables:

https://www.digitalimpuls.no/diverse/139447/ftdi-friend-plus-extras--v10-a-tweaked-out-ftdi-ft232rl-chip-adapter

https://www.digitalimpuls.no/diverse/139725/usb-to-ttl-serial-cable-debug--console-cable-for-raspberry-pi

Hopefully they’ll show up quickly and I’ll be able to get a sensible readout. Thanks again for your help!

Q1
Does the following configuration

Apply to the US TTN-GW-915 for Australian AU915

Q2
Does the following configuration

Apply to the US TTN-GW-915 for Australian AS923

Regs
Joe

Did anyone receive any update if and how to fix the reboot-loop issue? I returned mine to Farnell and I am wondering if it might be safe to order a new one or build one myself.

We have forwarded this issue to our tech team. We haven’t received anything concrete so far. We will let you know once we have an update.

4 Likes

I have a problem with my ttn gateway. Yesterday it was working fine, but this morning it tries to update the firmware, but when it is done downloading the new one it says it does not match expected size, and then reboots and tries updating again.

I’m getting the ollowing from the UART:


  • The Things Network *
  •  G A T E W A Y     *
    

Firmware name: AmazingAckermann, type: 0, version: 1.0.0, commit: 917719b9, timestamp: 1498499973
Bootloader revision: 1, commit: 7167873a, timestamp: 1496411298
Build time: Jun 26 2017 19:59:53
Reboot reason: 0x43
BOOT: (persisted info) 6F 72 72 65 01 03 25 96 F4 15 61 98 1B D7 87 F6

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

After connecting to network and getting an IP address:

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) 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: Erasing FOTA Data and Image
FLASH: Storing FOTA Checksum
FIRM: Finishing writing to storage
FIRM: New firmware found, start downloading!
FIRM: (OLD key) 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
FIRM: (NEW 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: Requesting firmware …
HTTP: Starting connection
HTTPS: Connection Opened: Starting TLS Negotiation
HTTP: Wait for TLS Connect
MON: SYS Stack size: 2849
MON: heap usage: 247KB (263KB), free: 92KB
HTTP: TLS Connection Opened: Starting Clear Text Communication
FIRM: Starting download
FIRM: available bytes: 530
FLASH: Storing FOTA Image
LORA: Kick LoRa module with ACK after not acked it for 60s
MON: SYS Stack size: 2849
MON: heap usage: 250KB (263KB), free: 88KB
HTTP: Connection Closed
FIRM: Finishing writing to storage
FLASH: Stored FOTA FW size (2685440) does not match the expected size (2791284)
FLASH: Erasing FOTA Data and Image
MON: SYS Stack size: 2849
MON: heap usage: 211KB (263KB), free: 128KB

MAIN: NEW FIRMWARE, REBOO
*** Application reboot

SNTP: State change from 0 to 0
SNTP: State change from 0 to 0

Anyone know what’s causing this or a way to fix it?

Today I finally received my gateway backer edition shipped from China.
Didn’t get it to do anything useful yet, when activated (as wifi or ethernet) it just start restarting, all five leds are on, and after 5 second they go out (ethernet lights as well) on again etc, as if it reboots. And keep on doing this, not connected.
Did I buy and waited 2.5 years for another doorstop? Or is there something I can try/do?
Read 3/4 of this topic, but too many issues…

1 Like

No luck registering for me. I’m seeing it fetching the configuration:

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
MON: SYS Stack size: 2855
MON: heap usage: 227KB (233KB), free: 111KB
HTTP: TLS Connection Opened: Starting Clear Text Communication
HTTP: Got 1232 bytes
HTTP: Connection Closed
HTTP: Close active socket 1

…but then it logs LORA: Configuration failed, retry (like it did for @mongoose and @mschelter two weeks ago), and seems to restart with Reboot reason: 0x13:

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
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LORA: version: 01
LORA: Configuration failed, retry
LORA: Starting reconfiguration
MON: SYS Stack size: 2855
MON: heap usage: 151KB (233KB), free: 188KB
LORA: version: 01
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: ChaSNTP: State change from 0 to 0
SNTP: State change from 0 to 0
Click for full log
**************************
*   The Things Network   *
*      G A T E W A Y     *
**************************
Firmware name: AmazingAckermann, type: 0, version: 1.0.0, commit: 917719b9, timestamp: 1498499973
Bootloader revision: 1, commit: 7167873a, timestamp: 1496411298
Build time: Jun 26 2017 19:59:53
Reboot reason: 0x13
BOOT: (persisted info) 6F 72 72 65 01 03 83 2C E7 16 05 49 92 3A 54 B7 




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:      redacted
CNFG: WiFi key:       redacted
CNFG: WiFi conn_type: 1
CNFG: WiFi sec_type:  4
FLASH: Loading Activation Data
CNFG: Gateway ID:         arjanvanb-gw-1
CNFG: Gateway Key:        ttn-account-v2.W4...redacted...GLyDA
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 4
WIFI: Entering SCAN state 1
SNTP: State change from 0 to 1
Scan is completed successfully
WIFI: Entering SCAN state 2
WIFI: Entering SCAN state 5
WIFI: Entering SCAN state 0
WIFI: Entering state 2
WIFI: Disabling modules
Head magic match void: trying to free an already freed block, ignore
SNTP: State change from 1 to 1
WIFI: Entering state 3
WIFI: Enabling modules for client
WIFI: Entering state 6


>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.178.53 
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
MON: SYS Stack size: 3961
MON: heap usage: 147KB (156KB), free: 192KB
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
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 1280 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
MON: SYS Stack size: 2855
MON: heap usage: 227KB (233KB), free: 111KB
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
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LORA: version: 01
LORA: Configuration failed, retry
LORA: Starting reconfiguration
MON: SYS Stack size: 2855
MON: heap usage: 151KB (233KB), free: 188KB
LORA: version: 01
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: ChaSNTP: State change from 0 to 0
SNTP: State change from 0 to 0

TTN Console shows:

Before this loop, I easily got to Step 2 “Connect” and moved on to Step 3, “Configure” while still connected to gateway’s AP. Next, when connected to the internet again in Step 4, “First message” the LEDs loop until 3 continous lights (“Activated”) and I see some LEDs flashing on the LoRaWAN board. I’ve repeated a few times by holding down the reset button while powering up.

@rish, but Step 3 needs this connection, doesn’t it? So, one should only connect to the internet after Step 3?

Did you do all that by only removing the white cover, or did you also remove part of the black casing?

Any specific place or direction to apply that force?

In my case http://things-gateway/info is accessible on my WiFi network and says Gateway Card: 868Mhz and I see LEDs flashing, so it’s surely (partly) connected.

1 Like

I just removed the white cover and pushed the loracard a bit further in it connector, however in my case the info-page showed that the lora card was not recognised so I figure on your gateway the loracard is connected correctly.

1 Like

If you’re in a hurry getting it running again, then maybe it helps to disable “Automatically update gateway” in TTN Console?

image

(If it does not, then maybe going back to factory settings first might help? But: I’ve no idea, just things I’d try lacking documentation.)

Are there any FW updates yet? Cannot find any announcements or release notes.

Gateway actived and securely connected, but keeps rebooting.
After a reboot it does not reconnect. After a minute or so all 5 leds will be turned on for a brief moment, followed by some blinking, followed by the next reboot.

1 Like

So still no joy.

I resetted the wifi and other settings by holding button for 5 secs, after that led 1 on, led 2 flashing, connected with laptop to it’s AP, selected existing gw, selected Wired Internet, during this time got normal looking output on serial like list of local APS etc etc. After clicking ‘Configure’ I got output like below, then after the last line with MON: heap usage, it starts rebooting (showing Reboot reason: 0x43), no serial output anymore. I see all 5 leds on and going off every 5 seconds, and even see LAN status leds going off.

Anyone knows what to do, that Firmware HASH looks silly???
How to proceed, how to contact support, get money back, what are the options???

Click for the full log (Scrambled some private data with XXXX)
**************************
*   The Things Network   *
*      G A T E W A Y     *
**************************
Firmware name: AmazingAckermann, type: 0, version: 1.0.0, commit: 917719b9, timestamp: 1498499973
Bootloader revision: 1, commit: 7167873a, timestamp: 1496411298
Build time: Jun 26 2017 19:59:53
Reboot reason: 0x43
BOOT: (persisted info) 6F 72 72 65 01 03 9C 76 58 6F E5 1F 80 00 CC 58 




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:      Things-Gateway-001EC03XXXXX
CNFG: WiFi key:       thethings
CNFG: WiFi conn_type: 4
CNFG: WiFi sec_type:  4
FLASH: Loading Activation Data
CNFG: Gateway ID:         XXXXXX-gw
CNFG: Gateway Key:        ttn-account-v2.luNjZpepfpB6DoitL32PPqNb9z_zCNmDwoNzZHWaojCM2bbQ7rm5HBdbjpFI8sNfQJpYtcg1PwaXXXXXX
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 4
WIFI: Entering SCAN state 1
Scan is completed successfully
WIFI: Entering SCAN state 2
WIFI: Entering SCAN state 5
WIFI: Entering SCAN state 0
WIFI: Entering state 2
WIFI: Disabling modules
Head magic match void: trying to free an already freed block, ignore
WIFI: Entering state 3
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
WIFI: Enabling modules for server
WIFI: Entering state 6


>WIFI: IP Address: 192.168.84.1 
SNTP: State change from 1 to 2
CB: ETH: IP Address: 192.168.178.118 
INET: State change to 3
INET: Ping probe
INET: Error sending probe on WiFi
INET: Ping response from PIC32INT, 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: 3967
MON: heap usage: 147KB (156KB), free: 192KB
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 1282 bytes
CB: 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 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 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: 2873
MON: heap usage: 152KB (235KB), free: 187KB
1 Like

A post was merged into an existing topic: What is the status of the TTN Gateway?