I’ve found this topic on GitHub. I would like to do the same SF switching with multicast TTN virtual devices.
Switching to a higher spreading factor
LoRaServer has no notion of multicast, thus always sends out Class C packets on the RX2 data rate and frequency. This will be very slow in most regions (e.g. EU868). You can however overwrite this with some changes. This is how to use SF7 in EU868.
- Log in to the LoRaServer server, and open
/etc/loraserver/loraserver.toml
.- Set: rx2_dr=5
- Restart the server:
$ sudo systemctl restart lora-app-server
$ sudo systemctl restart lora-gateway-bridge
$ sudo systemctl restart loraserver- In
loraserver.js
underDATARATE
, set to5
.- Change the sleep time under
startSendingClassCPackets
to send faster.- Afterwards, send at least one message from the Class C device again.
Note: This will not allow you to receive any messages in RX2 window on your Class A sessions, so use with care.