Immediate_send() is unreliable during module Setup

Hi there,

I’m working on a config where each grid module assigns its controller values based on the modules around it. For example, if I place three EN16s side-by-side, their CC ranges auto-increment so the leftmost module holds the lowest values and they rise as you move right.

The immediate_send() function seems perfect for this, but it doesn’t fire reliably on all modules when I call it from the Setup function.

My guess is that modules take a moment to boot, so if one module sends an immediate_send() before the others are fully initialized, those other modules never receive the message.

Right now I’m working around this with some Timer hacks, but it would be much better if there were a reliable way to know that all attached modules are ready to receive immediate_send() during Setup. Any guidance would be appreciated.

AFAIK my setup is the same with the Logic Control MCU Profile. A sends out the immediate message with a 200ms delay and that basically guarantees that all modules get the message.

I also used a 200ms delay to work around this :sweat_smile: funny we chose the same number!

I still think it would be great if the initial boot had a synchronized Startup across all modules, but the Timer workaround isn’t so bad :slight_smile:

1 Like