TTN GATEWAY central

I believe that in the first instance we need a lot more detailed documentation and logging with regards the the procedure the board goes through at startup; with this information the community can then perform some help diagnose of issues and possibly make recommendations based off logs and code. This however needs The Things Network to publish good full documentation detailing status/error codes, given that most backers have waited over two years patiently for the gateways and for them to arrive with what seems on the face of it to be a fundamental issue that could/should have been detected in QA/certification isn’t ideal, but I for one am willing to assist and work through this with other of the community, but we need TTN to

1.acknowlege there is an issues/issues
2.group issues based on symptoms
3.open communications with user forums
4.establish versions of hardware/firmware
and origin of manufacturing that have issues.

all this needs to be public

sorry for the rant, but I feel direction is needed

8 Likes

No luck.

Re-seating the LoRa-board (which by itself already seemed to be seated well) did not help for me, also not when I left out the foam block altogether and applied some more downwards pressure to the board. (The length of the white plastic fasteners makes the board to not be parallel to the main PCB. It seems that there’s quite some pressure on the board, but I’m not an expert.)

Also powering without the board once and re-seating afterwards, did not change things: I still get one or more LORA: Configuration failed, retry, eventually followed by a reboot showing Reboot reason: 0x13 (where I’ve also seen Reboot reason: 0x53.)

As an aside: patience helps to make the glue come loose. Lifting the board will put some tension on the glue, which will come loose slowly. My LG8271 LoRa board says on its bottom side:

LG8501601782
LG-X271
REV: C

I think in my case it started correctly once because I left the gateway untouched for a day or two. That is also one thing I have noticed, it you don’t have it powered on for some them and then do, it seems to connect most of the times once for a short while, and after that it fails every time, until you switch it of for some time again. Strange…

I can put it in an isolated VLAN but most ‘standard’ users don’t have that option.

But you are correct. Anyone within your network can change the wifi settings of the gateway without authentication.

Hey guys,
is it possible to change the gateways config to send all packages to a private “lora gateway bridge”? As i mentioned in this post Parking sensor with TTN gateway I like to use parking sensors with the TTN Gateway. The problem is that it is not possible to change the devAddr of the parking sensors, because they are hardcoded (0x70030051).

I installed the lora gateway bridge on a linux machine in my LAN and tried to change the router id of the gateway via

ttnctl gateways edit <GATEWAY_ID> --router-id 192.168.2.121

But I dont receive any up- or downlink at the bridge. After rebooting the gateway it has problems with the config.

Is there a published list of firmware versions and features/fixes anywhere? and a process for manually updating?

does anyone know what the USB socket next to the reset button is for ?

(I’m the author of the LoRa Gateway Bridge / LoRa Server project) I don’t think this is possible. The LoRa Gateway Bridge expects the packet-forwarder UDP protocol. The TTN gateway uses their own Protobuf over MQTT format (if I’m not mistaken).

Thanks for your response.
Do you have an idea how I could use my parking sensors with fix devAddr which be filtered by TTN? Is it possible with the TTN Gateway? Or do I have do buy or build my own gateway and configure the packet forwarder?

Sorry, I don’t know if / how this works with the TTN gateway.

In that case it is a major unacceptable vulnerability, perhaps one the TTN tech guys can comment on this further.

@arjanvanb and others… here is a log of my TTN Gateway booting up and connecting (successfully) and sending a few packages…

Click to view the 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: 0x03
BOOT: (persisted info) 6F 72 72 65 01 03 86 D0 0E 90 F5 21 02 9D 41 60




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)) 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
FLASH: Loading WiFi Data
CNFG: WiFi SSID:      Things-Gateway-001EC03B4371
CNFG: WiFi key:       thethings
CNFG: WiFi conn_type: 4
CNFG: WiFi sec_type:  4
FLASH: Loading Activation Data
CNFG: Gateway ID:         vanesp-gw-001
CNFG: Gateway Key:        ttn-account-v2.H8<redacted>V9A
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
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
ETH: IP Address: 192.168.2.32
CB: 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: 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
HTTPS: Connection Opened: Starting TLS Negotiation
HTTP: Wait for TLS Connect
HTTP: TLS Connection Opened: Starting Clear Text Communication
HTTP: Got 1477 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: 2855
MON: heap usage: 152KB (237KB), free: 187KB
LORA: Configuration succeeded
LORA: Starting operation
LORA: Changing state from 4 to 6
MON: SYS Stack size: 2855
MON: heap usage: 152KB (237KB), free: 187KB
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
HTTP: Got 568 bytes
LORA: Packet dropped! Bad CRC
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

*************************
MAIN: Gateway bridging
*************************

MQTT: Sending status packet
MQTT: Report reboot error: 0103
MQTT: Sending status succeeded: 0
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MQTT: Sending status packet
MQTT: Sending status succeeded: 1
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
LORA: Accepted packet
MQTT: Sending UPLINK OK
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MQTT: Sending status packet
MQTT: Sending status succeeded: 3
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MQTT: Sending status packet
MQTT: Sending status succeeded: 4
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
LORA: Kick LoRa module with ACK after not acked it for 60s
LORA: Accepted packet
MQTT: Sending UPLINK OK
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MQTT: Sending status packet
MQTT: Sending status succeeded: 6
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MQTT: Sending status packet
MQTT: Sending status succeeded: 7
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
LORA: Kick LoRa module with ACK after not acked it for 60s
LORA: Accepted packet
MQTT: Sending UPLINK OK
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MQTT: Sending status packet
MQTT: Sending status succeeded: 9
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
LORA: Packet dropped! Bad CRC
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MQTT: Sending status packet
MQTT: Sending status succeeded: 10
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
LORA: Accepted packet
MQTT: Sending UPLINK OK
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MQTT: Sending status packet
MQTT: Sending status succeeded: 12
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MQTT: Sending status packet
MQTT: Sending status succeeded: 13
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
LORA: Kick LoRa module with ACK after not acked it for 60s
LORA: Packet dropped! Bad CRC
LORA: Accepted packet
MQTT: Sending UPLINK OK
MON: SYS Stack size: 2843
MON: heap usage: 262KB (266KB), free: 76KB
1 Like

I’ve had my gateway on permanently for a week now, and have no high temperature components. All are touchable.

1 Like

Can someone of the tech team/ moderator confirm that this is not possible please?
So I can talk to my prof for my master thesis and look for an alternative solution…

Having problems with connecting the ttn gateway , where is the reset button ? Cannot find it or do i have to remove front cover?

Check first posts in this thread…

I’d just like to make an observation with regards The Things Network, and this forum & Kickstarter etc; We the loyal backers that have/or are wait the gateways need the communications to be better, communication from The Things Network is at best slow and inconsistent. (correct me if I’m wrong) I’ve not received or seen any acknowledgement from the team with regards any issues or what cause of action that those reporting issues need to take; yet the team and founder is re-tweeting and like all positive comments, which leads me to believe the either he/team is unaware of all these gateways that have issues or simply us backers are getting ignored as they try to push for more sales and promotion of the product as the conference!?

I was so hopeful but feel like I’ve forked out £££ for a product that has suffered delay after delay and has then been delivered with some fundament issues across the product range; as before happy to work to get this resolved; but not to be ignored by The Things Network team or see them liking good comments and hiding way from the true picture of this project.

I guess my frustration is starting to show, but I feel I like many other have given a fare chance for a response/acknowledgement

7 Likes

Grahame…

I agree. I’m lucky that mine works. But I fully understand your frustration.

In fact, as I’ve said before, TTN team should focus on getting product out, documentation out, and helping those with problems.

The upcoming conference is nice… but should be lower priority really. And the lack of an official statement or response on these forums about what they are doing to help the unlucky backers with dead on arrival gateway is not professional.

2 Likes

Yes Grahame, I fully agree. Most of the backers could settle for a bit of tweaking to make things work smoothly, is my estimate. However, there appear to be quite a number of people having very similar issues with the TTN-gateway. And lots of ideas, suggestions and test results are doing the rounds, also from users that managed to activate their gateways. But, apart from some forum moderation and participating in these technical discussions, there is nothing from The Things Network. No acknowledgment, no task force announcement, no status & outlook. This needs to improve.

1 Like