Thank you for those excellent replies. Those nuggets of discovery really do help track this issue down.
After another solid weekend of experimentation I have some more clarifying data. Really hard going this, but the picture is slowly becoming clearer. In the following table, “works” means with the latest software available today unless indicated, downlinks are >80% reliable for “YES”, <20% reliable for “NO”. There was no in-between.
| *LoRa Card* | *Plan* | *LBT* | *Forwarder* | *Works* |
|--------------------|--------|----------|-------------|---------|
| MTAC-LORA-1.5 v31 | AS923 | disabled | mp-pkt-fwd | YES |
| MTAC-LORA-1.5 v33 | AS923 | enabled | mp-pkt-fwd | NO |
| MTAC-LORA-1.0 | AS923 | disabled | gps-pkt-fwd | YES |
| MTAC-LORA-1.0 | AS923 | disabled | mp-pkt-fwd | NO |
| MTAC-LORA-1.0 | AU915 | N/A | mp-pkt-fwd | NO |
For the AS923 scenarios I tried both AS1 and AS2 with no change. For the gps-pkt-fwd
scenarios I even tried the TTN global_conf.json
and for the mp-pkt-fwd
the MultiTech global_conf.json
, all with no change.
There was two major challenges that made the going tough - once you know them they are not a problem, so for posterity:
-
gps-pkt-fwd
is the forwarder that gets run by MultTech’s Lora Packet Forwarder if the config file hasfake_gps
set totrue
.gps-pkt-fwd
(and its non-gps brother,basic-pkt-fwd
) are “Legacy Semtech Packet Forwarders”. That means they use UDP on port 1700, and require a gateway in TTN’s console explicitly for the legacy forwarder (click the “using Semtech forwarder” checkbox and note the gateway ID will beeui-xxx
wherexxx
is the gateway’s EUI). Authorisation is not supported, so the gateway key is not used. Theglobal_conf.json
files provided by MultiTech are all you need, provided you overridegateway_ID
,server_address
,serv_port_up
andserv_port_down
, with the gateway’s EUI (usemts-io-sysfs show lora/eui
and remove the colons), which ever router you want to use, 1700 and 1700 respectively. Oh, and to enablegps-pkt-fwd
also add"fake_gps": true,"ref_latitude": -x.x,"ref_longitude": x.x,"ref_altitude": x
where thex
's are appropriate numbers. -
/etc/init.d/ttn-packet-forwarder stop
doesn’t. I think at one stage it relied onmp-pkt-fwd
killing itself if/var/run/run-lora
is missing, but that doesn’t work for me at the moment. Judging by the source, it just responds to HUP by rotating the log file. Maybe my install is hosed, but I had to remove the HUP signals fromttn-packet-forwader
(the-s 1
and-1
flags) so thestart-stop-daemon
andkillall
calls would actually killmp-pkt-fwd
.
So these signs are pointing to an issue with the new mp-pkt-fwd
and the old MultiTech LoRa cards. Further investigation is necessary to see if it’s something to do with the rx delay.