Hi @ssozonoff
Just got around to testing concurrent attention monitoring. I did not find a problem, though I did not test exhaustively. However I don’t believe that card.attn watchdog can be used concurrently with other card.attn settings, because it operates differently.
The card.attn watchdog setting leaves ATTN high and periodically pulses ATTN low for 5 seconds - designed as a reset for a host CPU or its power supply.
All other card.attn settings immediately set ATTN low and then set ATTN high when any of the monitored conditions is met.
Here are my test results for concurrency of other card.attn settings:
> // After card restart
> {"req":"card.attn"}
> {"set":true}
> // Confirm nothing being monitored
> {"req":"card.attn","verify":true}
> {"set":true}
>
> // Arm multiple attn settings
> {"req":"card.attn","mode":"arm,files,connected,location,motion,wireless","files":["data.qi"]}
> {}
> // Confirm armed
> {"req":"card.attn"}
> {}
// Verify what is being monitored
> {"req":"card.attn","verify":true}
> {"files":["data.qi","modified","motion","location","connected","wireless"]}
>
> // Sync the notecard: wireless is tripped first, followed by connected
> {"req":"card.attn"}
> {"files":["wireless"],"set":true}
> {"req":"card.attn"}
> {"files":["connected","wireless"],"set":true}
>
> // Shake the notecard
> {"req":"card.attn"}
> {"files":["motion","connected","wireless"],"set":true}
>
> {"req":"card.location.mode","mode":"continuous"}
> {"mode":"continuous"}
> // Wait for GPS fix
> {"req":"card.location"}
> {"status":"GPS updated (70 sec, 56/56 dB SNR, 9/9 sats) {gps-active} {gps-signal} {gps-sats} {gps}","mode":"continuous","lat":42.2,"lon":-71.2,"time":1642862735}
> {"req":"card.attn"}
> {"files":["motion","location","connected","wireless"],"set":true}
>
> // re-set attn and add a .qi note:
> {"req":"card.attn","mode":"arm,files,connected,location,motion,wireless","files":["data.qi"]}
> {}
> {"req":"card.attn"}
> {}
> sync
> {"req":"card.attn"}
> {"files":["data.qi","modified","connected","wireless"],"set":true}
>
> // rearm and verify that the notecard is monitoring the same attn inputs
> {"req":"card.attn","mode":"rearm"}
> {}
> {"req":"card.attn"}
> {}
> {"req":"card.attn","verify":true}
> {"files":["data.qi","modified","motion","location","connected","wireless"]}