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

Viewed 71

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).

Thank you for your answer. I didn't know that. I thought the RX2/RXC frequency is agreed on during OTAA and could be different for every end point, so I would need to force the endpoints of a multicast group to use a dedicated RX2/RXC frequency to be able to receive as well unicasts as multicasts.
Turns out, all end points use the same RX2/RXC frequency anyway, so I set the multicast frequency to this very frequency and it works now!
Thank you for clarifying that for me!