I've added initial Siglent SPD3303 series PSU support to the scpi-pps
driver and wanted to send
meta frames when PSU channel (sigrok channel group) status changes.
Specifically send SR_CONF_ENABLED and SR_CONF_REGULATION updates.

However, there doesn't appear to be a way to include channel group
information in the meta frames currently?  Since sending these status
updates (meta frames) without information which channel (channel group
in sigrok) these refer to isn't very useful when the device has
multiple independent channels...

These PSUs have three channels (two fully programmable ones and one
that can be only toggled on/off) so in this case there are two
distinct regulation and channel "enabled" statuses (one for each
programmable channel).

If the front-end receives SR_CONF_REGULATION meta frame, it cannot
tell on which (PSU) channel the regulation status change happened...

https://github.com/sigrokproject/libsigrok/compare/master...tjko:siglent-scpi#diff-40d5a148931545b142622b33ec5b0bbdR1131


Looks like SR_DF_META frames can include a list of config (key/value)
pairs, so perhaps in these cases there should be additional key/value
added to the list that specifies the channel (group) that this meta
frame refers to?
Or could the meta frames in these cases include a list of values (one
for each channel group)?


Btw, changes to add Siglent support to scpi-pps is at:
https://github.com/tjko/libsigrok.git siglent-scpi

-- 
Timo <t...@iki.fi>


_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to