It doesnāt matter too much in term of end resultā¦
If you want to be a bit more āmodernā in term of architecture you can use the Semtech packet forwarder updated and maintained by @kersinghere.
I have recently upgraded one of mine from Legacy to Semtech, it is pretty pretty straightforward, I can go back and forth between both seamlessly.
From a gateway owner perspective, the nice thing about the Semtech gateway is that it can save packets statistics, so you can monitor the traffic on your gateway. There is no easy way to do that with the Legacy packet forwarder.
@Amedee, thank you for the swift reply. The traffic monitor option is indeed interesting.
When you say: āpretty straightforwardā, do you mean: just cloning the repository and running the install scripts?. Where do you keep the previous set-up, since the install place seems to be the same?
For the āupgradeā, I wanted to be able to try and go back if things were going wrongā¦
The easiest way to isolate environments is to use Docker. @jpmeijers maintains a GitHub repo to run Jacās packet forwarder on resin.io
I am not ready yet to move to Resin, but you can use these scripts for plain Docker as well.
my software is Multi Protocol packet forwarder, based on poly forwarder with TTN connector protocol (same as used by TTN gateways) added and updated to use the latest Semtech libraries for the concentrator boards.
While experimenting that is always a good idea. You never know when you mess up and need to reimage the cardā¦ (I also had two cards die on me over the years using RPis)
Thanks to all. Using several cards is surely a good approach. And yes. at the moment I run it in an open frame, just everything fixed to a metal bracket avoiding stress to the cables & connectorsā¦
@Amedee Thanks again. I tried the Kerising packet forwarder. Installation went well so far, but the behaviour is unclear. When started from the command line, it forwards uplink messages, but does not forward downlink messages. If gets the RESP message, but does not send it to the concentrator.
When configured as a service, it refused to start. The log always tells:
Apr 01 22:00:45 raspberrypi ttn-gateway[733]: 22:00:45 INFO: [main] Starting the concentrator
Apr 01 22:00:45 raspberrypi ttn-gateway[733]: 22:00:45 ERROR: [main] failed to start the concentrator
Apr 01 22:00:45 raspberrypi systemd[1]: ttn-gateway.service: Main process exited, code=exited, status=1/FAILURE
Apr 01 22:00:45 raspberrypi systemd[1]: ttn-gateway.service: Unit entered failed state.
Apr 01 22:00:45 raspberrypi systemd[1]: ttn-gateway.service: Failed with result 'exit-code'.
This not only once, but over & over. mp_pkt_fwd is started as a service.
@robert-hh
Why are you using the (old) Semtech protocol and not ttn-gateway-connector protocol?
Register the gateway without setting the ālegacyā checkmark and in your local_conf.json add:
"servers": [
{
"serv_type": "ttn",
"server_address": "bridge.eu.thethings.network",
"serv_gw_id": "<gateway ID from console>",
"serv_gw_key": "<key from console something like ttn-account-XXXXX>",
"serv_enabled": true
}
]
With regards to the downlink packet that has not been sent to the concentrator, the log should show additional information on why it has not been sent.
@kersing. Yes, thanks for the hint about the protocol. Iāll do that, did not know where to configure. But still Iām wondering why the downlink messages are not received. After using the global_conf.json file from https://github.com/TheThingsNetwork/gateway-conf, it tells now that āRF packets sent to concentrator: 1 (22 bytes)ā, but the nod does not get tell it got them. The parameters in tcpdump look ok.
using the ttn-gateway-connector protocol the downlink works, which surprised me. Even before, a Rf signal was sent by the gateway exactly 1 s after the uplink request, but it was not received by the node.
Another question: Now, when a downlink message is ofrwarded, the log shows something like:
Apr 02 08:46:34 raspberrypi ttn-gateway[590]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Apr 02 08:46:34 raspberrypi ttn-gateway[590]: # RF packets sent to concentrator: 1 (0 bytes)
`'`
What confuses me is this (0 bytes), while actually the message is received. Before, there was something like (22 bytes) in my test messages.
Understandable. Because of the difference between the transport protocols it is harder to get the byte count right. I decided not to bother while implementing, there were more important issues to solve.
I might visit it some time in the future. If it bothers you, log an issue at github or even better, fix it and send a pull request.
Thanks for the response. At the moment Iām just OK, if itās intentional. I will definitely look into the code some time. At first glance, it looks pretty large.
After almost 3 years I would like to repeat this question. Which packet forwarder is the best to use it on RPi3 & iC880 concentrator?
As @Amedee says āIf you want to be a bit more āmodernā in term of architecture you can use the Semtech packet forwarder updated and maintained by @kersing here 199.ā
Is @kersing forwarder still the best choice after all of this time?
After 1038 days of uptime my GW needs some serviceing. Due to itās difficult-to-reach location I would like to setup whatever is needed.
Actual forwarder is:
14:04:58 *** Multi Protocol Packet Forwarder for Lora Gateway ***
Version: 3.0.10
14:04:58 *** Lora concentrator HAL library version info ***
Version: 5.0.1; Options: native;
ā¦
14:04:58 INFO: [Transports] Initializing protocol for 1 servers
14:04:58 INFO: [TTN] server ārouter.eu.thethings.networkā connected
14:04:58 INFO: [main] Starting the concentrator
14:04:59 ERROR: [main] failed to start the concentrator
Iām biased of course but I think it still is an excellent choice. When TTN provides the V3 version of the backend for the community network you might want to consider Basic Station but for V2 I donāt think that is the best option.
If you want to make life easier with regards to upgrading the software in due course I would suggest using Balena on the RPi. That allows you to remotely update the software in the future.