Chirpstack v4 - API to send a Mac Command to endpoint?

Viewed 15

Hi!

According to the "v4 breaking changes" section the NetworkControllerService is gone. Apparently, some Metadata can be logged via another interface but the possibility to apply changes to the network controller seems to be gone.

I need the network controller to send the RXParamSetupReq to my endpoints in order to change their unicast RX frequency to the same frequency as the frequency they are using for the multicast group they are attending to.

Q: How do I do that in Chirpstack v4 via the API?

Kind regards,
Bernhard

1 Answers

This mac-command is automatically send to end-devices that have a different RX2 frequency than configured in the region_XXXXX.toml configuration file.

So instead of trying to send the mac-command yourself, you should change the region_XXXXX.toml configuration file (and restart ChirpStack). Then ChirpStack will automatically send this mac-command to your devices (note that the current active RX2 Freqency is stored in the device-session, after the mac-command has been acknowledged by the end-device, the value in the device-session will be updated to the new value).