ngscopeclient / scopehal

Test and measurement hardware abstraction library and protocol decodes. This is the library only. Most users should use scopehal-apps.
BSD 3-Clause "New" or "Revised" License
215 stars 96 forks source link

[Siglent SDS2000X Plus] Support optional feature checking in 1.5.2R1 and newer #786

Open hansemro opened 1 year ago

hansemro commented 1 year ago

*OPT? command was added in the 1.5.2R1 SDS2000X+ firmware. This can be used to check licensed features.

# no license
> *OPT?
0,0,0,0,0,0,0,0,0

# 16LA upgrade
> *OPT?
0,16LA,0,0,0,0,0,0,0

# Full upgrade
> *OPT?
FG,16LA,FlexRay,CANFD,I2S,1553B,PA,SENT,Manch

Maybe this could be used to address this TODO for at least newer versions: https://github.com/glscopeclient/scopehal/blob/148899e23459d7417414a6cc3727053ade69ae77/scopehal/SiglentSCPIOscilloscope.cpp#L338-L340

azonenberg commented 1 year ago

This will also be useful for only enabling protocol triggers and MSO channels if the scope has the relevant feature installed.