Quantcast
Channel: The Things Network - Latest posts
Viewing all articles
Browse latest Browse all 116640

FAQ - Kerlink Gateway

$
0
0

The gateway_ID is based on the following (Kerlink):

The dota file runs a script to set the mac address. It is a combination of 0000 + 024b08 + the mac address of the Lora chip. This can can be found on a sticker on the case ( in de form of 0x080*****).

The script is as follows:

#!/bin/sh

MAC_ADDR_COMMON="024b08"
KNET_ID=$(get_uvar ethaddr | awk -F\: '{print tolower($4$5$6)}')
MAC_ADDR=${MAC_ADDR_COMMON}${KNET_ID}

# customize the json file with gateway MAC address

echo "{"                                              > ./mnt/fsuser-1/thethingsnetwork/local_conf.json
echo "  \"gateway_conf\": {"                         >> ./mnt/fsuser-1/thethingsnetwork/local_conf.json
echo "      \"gateway_ID\": \"0000${MAC_ADDR}\","    >> ./mnt/fsuser-1/thethingsnetwork/local_conf.json
echo "      \"serv_port_up\": 1700,"			>> ./mnt/fsuser-1/thethingsnetwork/local_conf.json
echo "      \"serv_port_down\": 1700,"			>> ./mnt/fsuser-1/thethingsnetwork/local_conf.json
echo "      \"server_address\": \"croft.thethings.girovito.nl\"," >> ./mnt/fsuser-1/thethingsnetwork/local_conf.json
echo "      \"forward_crc_valid\": true,"			>> ./mnt/fsuser-1/thethingsnetwork/local_conf.json
echo "      \"forward_crc_error\": false,"			>> ./mnt/fsuser-1/thethingsnetwork/local_conf.json
echo "      \"forward_crc_disabled\": true"			>> ./mnt/fsuser-1/thethingsnetwork/local_conf.json
echo "  }"                                           >> ./mnt/fsuser-1/thethingsnetwork/local_conf.json
echo "}"                                             >> ./mnt/fsuser-1/thethingsnetwork/local_conf.json

I believe AA555A00 is the common address of the Multitech gateways, followed by the same 080***** which is the mac address of the Lora chip.


Viewing all articles
Browse latest Browse all 116640

Trending Articles