TTN GATEWAY central 3


#1
  • this is the central topic for all questions and answers regarding the TTN GATEWAY

where to buy :

getting started :

part 1 is HERE
part 2 is HERE


Gateway not working
TTN Gateway Ports/pins
#2

I have found that this combination of bootloader and firmware at least works on TTN gateway’s of me and some colleagues:

BootloaderFirmware

I see a difference in the bootloader version.
The firmware + bootloader has been flashed with the PICKkit 3 programmer. We took the stable version


TTN GATEWAY central 2
(Aep) #6

How do I set a static IP address and gateway if I don’t have DHCP in the network?


(Erwin Homan) #7

Same for me. It was a lot of money, and my gateway (The Things Gateway, backer edition) never worked so far.

On September 22nd, I updated the firmware to the stable version, available since July, via an SD-card. The update went well (gateway info screen shows the new firmware version), but still the gateway won’t activate / register. See my posting in topic “TTN GATEWAY central 2”. Without any response, by the way.

Looking at how the gateway behaves, nothing seems to be wrong, except that it can not activate over the network. To exclude the possibility that the netwok causes this, I have also linked the gateway to my phone’s hot spot for activation. Did not help.

Will try again shortly, because I have changed a defective switch in my home network recently.

With regard to receiving answers to your questions: on the forum, there are other users responding, depending on the question of course. But, regarding warranty, replacement, etc: I am not very optimistic about that, based on my own experience.


#8

I don’t think that’s possible … but to be sure … @htdvisser ?


(Hylke Visser) #9

I don’t think our current builds can do that, but I do remember there being some kind of fallback IP if DHCP fails. You can probably bake a static IP into the firmware by making some changes with the Microchip Harmony Configurator. Maybe @KrishnaIyerEaswaran2 can answer this properly when he’s back from vacation.


#10

Hello Martijn,

You could test at the first with a small switch, your laptop (with tftp32/64) and the TTN gateway.
But everything together. TTN-gteway >> Small switch >> Laptop

Make give your laptop a Ip adress (10.10.10.1/24 (255.255.255.0)
Start tftpd64 (32) and activate DHCP with a small scope range 10.10.10.10 til 10.10.10.15
Connect the TTN-gateway to the swich and powering up
Check in de tfpd on your laptop on distribute a ip adress but it should 10.10.10.10 (the first off the range)
go with your browser to http://10.10.10.10/info you should see something like
image

This is the view off a updated gatewat with version 1.05 on it. If not or even you don’t get this page something is get wrong with DHCP or with your gateway.

But if this work you have a working gateway, and you could go futher. to try to connect the gteway to the TTN network.

Succes

Johan


(Aep) #11

FWIW:
For Windows you can run a portable DHCP server with this: http://www.dhcpserver.de/cms/download/ . Very user friendly and easy to understand. There’s a wizard included allowing you to set the address range, gateway, etc.
I used dhcpserver to get the Gateway running, which is fine during setup but not for a long-term unattended situation.
John


(Dani B) #12

Hi
I bought an Gateway from Farnell tand now I am stuck in the registration process. It will not activate. LED 1 and 2 are steady and led 3 blinking slowly.
It seems like the gatway ends up in a rolling reboot after trying to initiate dhe LORA Module
I tried everything by now: Reset, flush reseeting the module es advised in recent posts and so on but no luck. The gateway is running on fw 1.0.5

Any help would be appreciated


  • 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: 2, commit: c463e87e, timestamp: 1519396960
Build time: Jul 17 2018 08:12:51
Reboot reason: 0x03
BOOT: (persisted info) 6F 72 72 65 01 03 B1 60 AB 25 22 24 B5 73 D7 64
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 found: FOTA data present
FLASH: Loading Firmware Data
CNFG: (Firmware HASH (sha256)) 93 F4 C1 0E 77 81 3F 60 0D A8 A5 97 57 7C DD 9C 95 64 1F DF F4 8D 44 3F 92 9A 20 A9 2D B4 B9 F5
FLASH: Loading WiFi Data
CNFG: WiFi SSID: 1234
CNFG: WiFi key: ***
CNFG: WiFi conn_type: 1
CNFG: WiFi sec_type: 4
FLASH: Loading Activation Data
CNFG: Gateway ID: valaisia
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
INET: Gateway has Ethernet
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
ETH: IP Address: 192.168.242.171
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
MON: SYS Stack size: 3965
MON: TCPIP Stack size: 3815
MON: APP Stack size: 8008
MON: LoRa Stack size: 3913
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 1290 bytes
CB: Disconnect
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 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 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
MON: SYS Stack size: 2861
MON: TCPIP Stack size: 3815
MON: APP Stack size: 3294
MON: LoRa Stack size: 3887
MON: heap usage: 183KB (269KB), free: 156KB
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31


(Gypo) #13

Hi

Does anyone know where I can get the cct diagram of the ttn gateway?
I have it in my attic with an aerial mounted on a pole above my roof and I want to see what is going on from the uart port provided on the PCB of the gateway. Obviously I don’t want to run cables all round the house to the attic so I have RS232 to wifi kit set up ready so I can take a look from my PC.

In doing that I notice a bunch of other pins made available in the gateway too and it would be nice to know what I can / or might want to use. And that can only come from knowing what all the pinouts are.

Thanks in advance


#14

(Gypo) #16

Thanks a lot for the links, I searched for days on the net and this just didn’t come up at all.
It is exactly what I was looking for.

Many Thanks again


(Sandrogiava) #17

I would like to be able to set a static IP address too… maybe via the web interface…
Any chance to have this possibility in the future?
Thanks.