Mikrotik Knot LR8

Hello,
We are new in lora servers, We choose chirpstack for our projects, and We start with a gateway Mikrotik Knot LR8, this gateway is very simple to configuring, so We set the ip address of our chirpstack server and the 1700 udp port

And after that We select the server and the region on the lora configuration of the server

Now on the side of chirpstack We set on chirpstack-gateway-bridge.toml the Gateway backend configuration like We read in this forum

And after that the gateway cannot connect to Chirpstack

We try make a tcp dump and seems that everything ok
tcpdump -AUq -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv port 1700

tcpdump: listening on enp1s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
19:31:06.909329 IP (tos 0x0, ttl 64, id 49610, offset 0, flags [DF], proto UDP (17), length 40)
172.20.3.75.33146 > chirpstack.chirpstack.1700: [udp sum ok] UDP, length 12
E…(…@.@…;…K…L.z…P.X<.P19S~hGP…
19:31:19.868683 IP (tos 0x0, ttl 64, id 50894, offset 0, flags [DF], proto UDP (17), length 144)
172.20.3.75.52860 > chirpstack.chirpstack.1700: [udp sum ok] UDP, length 116
E…@.@…K…L.|…|…P19S~hGP{“stat”:{“ackr”:0.000000,“dwnb”:0,“rxfw”:0,“rxnb”:0,“rxok”:0,“time”:“2023-07-07 17:31:19 GMT”,“txnb”:0}}
19:31:21.664592 IP (tos 0x0, ttl 64, id 51070, offset 0, flags [DF], proto UDP (17), length 347)
172.20.3.75.52860 > chirpstack.chirpstack.1700: [udp sum ok] UDP, length 319
E…[.~@.@…T…K…L.|…G’y…P19S~hGP{“rxpk”:[{“chan”:8,“codr”:“4/5”,“data”:“J7ht1X35s5eSWIUxKeAxcH04XgA+YyGqeGyDmBmP508SYhe86lQbnd6Q+TlPrFN6eXcW5fx8DStXcNoCzU7byKUnuruFv4Z0sefL”,“datr”:“SF7BW250”,“freq”:868.300000,“lsnr”:-11.750000,“modu”:“LORA”,“rfch”:1,“rssi”:-112,“size”:75,“stat”:-1,“time”:“2023-07-07T17:31:21.558612Z”,“tmst”:456955122}]}
19:31:21.908806 IP (tos 0x0, ttl 64, id 51082, offset 0, flags [DF], proto UDP (17), length 40)
172.20.3.75.42623 > chirpstack.chirpstack.1700: [udp sum ok] UDP, length 12
E…(…@.@…{…K…L…"…P19S~hGP…
19:31:36.912145 IP (tos 0x0, ttl 64, id 52469, offset 0, flags [DF], proto UDP (17), length 40)
172.20.3.75.43241 > chirpstack.chirpstack.1700: [udp sum ok] UDP, length 12
E…(…@.@…K…L…D…P19S~hGP…
19:31:49.879266 IP (tos 0x0, ttl 64, id 53459, offset 0, flags [DF], proto UDP (17), length 144)
172.20.3.75.52860 > chirpstack.chirpstack.1700: [udp sum ok] UDP, length 116
E…@.@.
…K…L.|…|…L.P19S~hGP{“stat”:{“ackr”:0.000000,“dwnb”:0,“rxfw”:1,“rxnb”:1,“rxok”:0,“time”:“2023-07-07 17:31:49 GMT”,“txnb”:0}}
19:31:51.914396 IP (tos 0x0, ttl 64, id 53603, offset 0, flags [DF], proto UDP (17), length 40)
172.20.3.75.58425 > chirpstack.chirpstack.1700: [udp sum ok] UDP, length 12
E…(.c@.@.
…K…L.9…|…*…P19S~hGP…
19:32:06.916070 IP (tos 0x0, ttl 64, id 54813, offset 0, flags [DF], proto UDP (17), length 40)
172.20.3.75.59931 > chirpstack.chirpstack.1700: [udp sum ok] UDP, length 12
E…(…@.@…K…L…m…k.P19S~hGP…
19:32:14.050345 IP (tos 0x0, ttl 64, id 55037, offset 0, flags [DF], proto UDP (17), length 275)
172.20.3.75.52860 > chirpstack.chirpstack.1700: [udp sum ok] UDP, length 247
E…@.@…K…L.|…P19S~hGP{“rxpk”:[{“chan”:0,“codr”:“OFF”,“data”:“8u8P4EE+Fh2pkHrmChWXXxMLyvg=”,“datr”:“SF7BW125”,“freq”:868.100000,“lsnr”:-11.750000,“modu”:“LORA”,“rfch”:1,“rssi”:-117,“size”:20,“stat”:-1,“time”:“2023-07-07T17:32:13.944486Z”,“tmst”:509342043}]}

And also We check the gateway traffic and seems that the gateways doenot receive nothing, because only shows errors on Join accept

Please, do you Know why the gateway cannot connect with chirpstack?

Thank you

I too have been struggling to get my MikroTik Knot LR9 to work for week now. I cant get the gateway to show as seen or get any device to register. The knots are are really simple devices to configure.

@FMMTG my config looks identical to yours.

1 Like

Check if you put in the correct gateway EUI in ChirpStack.

1 Like

Yes EUI is present on my setup.

1 Like

@FMMTG what is your Microtik knot firmware version?

I’m running 7.10.1 stable.

1 Like

Hi, finally get the gateway like connected, the mistake was on the configuration on /etc/chirpstack/chirpstack.toml, I had enabled all regions:

enabled_regions=[
“as923”,
“as923_2”,
“as923_3”,
“as923_4”,
“au915_0”,
“cn470_10”,
“cn779”,
“eu433”,
“eu868”,
“in865”,
“ism2400”,
“kr920”,
“ru864”,
“us915_0”,
“us915_1”,
]

so delete all regions less my region “eu868”, and also set the region eu868 on the mqtt integration configuration on /etc/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml and now is connected

MQTT integration configuration.

[integration.mqtt]

Event topic template.

event_topic_template=“eu868/gateway/{{ .GatewayID }}/event/{{ .EventType }}”

Command topic template.

command_topic_template=“eu868/gateway/{{ .GatewayID }}/command/#”

Thanks!