azonenberg changed the topic of #scopehal to: ngscopeclient, libscopehal, and libscopeprotocols development and testing | https://github.com/ngscopeclient/scopehal-apps | Logs: https://libera.irclog.whitequark.org/scopehal
Degi_ has joined #scopehal
Degi has quit [Ping timeout: 260 seconds]
Degi_ is now known as Degi
<d1b2> <hansemro> Siglent's newest scope firmware release breaks ngscopeclient support. Looking to investigate further on SDS2000X+.
<d1b2> <hansemro> First issue I noticed is that :TRIGGER:MODE STOP no longer works. We will need to use :TRIGGER:STOP instead.
<azonenberg> Oh fun. Make sure to gate any of these fixes with a version check so it still works on old firmware
<d1b2> <hansemro> Waveform acquisition is also borked and will timeout (leading to significant slowdowns): [SCPISocketTransport::SendCommand] [169.254.149.18] Sending [SCPISocketTransport::SendCommand] [169.254.149.18] Sending :WAVEFORM:SOURCE C1;:WAVEFORM:PREAMBLE? [SCPISocketTransport::ReadRawData] Got 1 bytes [SCPISocketTransport::ReadRawData] Got 1 bytes [SCPISocketTransport::ReadRawData] Got 9 bytes [SCPISocketTransport::ReadRawData] Got 346 bytes
<d1b2> [SCPISocketTransport::ReadReply] [169.254.149.18] Got [SCPISocketTransport::SendCommand] [169.254.149.18] Sending :WAVEFORM:SOURCE C1;:WAVEFORM:DATA? [SCPISocketTransport::ReadRawData] Got 1 bytes [SCPISocketTransport::ReadRawData] Got 1 bytes [SCPISocketTransport::ReadRawData] Got 5 bytes Warning: Socket read failed (errno=11, Resource temporarily unavailable) [SCPISocketTransport::ReadRawData] Failed to get 80000 bytes Warning: Socket read failed
<d1b2> (errno=11, Resource temporarily unavailable) [SCPISocketTransport::ReadRawData] Failed to get 2 bytes [SiglentSCPIOscilloscope::ProcessAnalogWaveform] V_Gain=0.000260, V_Off=0.000000, interval=50000000.000000, h_off=0.000000, h_off_frac=0.000000, datalen=80000 [SiglentSCPIOscilloscope::AcquireData] Waveform download and processing took 15389.811 ms
<d1b2> <hansemro> :TRIG:STOP is a documented command present on older firmwares whereas :TRIG:MODE STOP was never documented. Closest would be TRIG_MODE STOP in 1xxxX/2000X models
<azonenberg> Hmm, that code likely came from the older driver then
<azonenberg> and since it worked, nobody ever noticed the command wasnt supposed to be available :p
<d1b2> <hansemro> Oh interesting, TRIG_MODE STOP does not work also (which would break backwards comparability)
<d1b2> <hansemro> Well, backwards compatibility was never advertised so whatever
<d1b2> <hansemro> Update: 8-bit ADC mode works fine. 10-bit mode is broken due to incorrectly applying hdSizeWorkaround (which multiplies data length to fetch by 2). Issue was caused by 1.6.2R5 firmware updating changing the version format reported by *IDN? which broke SDS2000X+ version parser...
<d1b2> <hansemro> *IDN? version now reports 5.4.0.1.6.2R5 but we expected 5.4.1.6.2R5
<d1b2> <azonenberg> oh fun lol
<_whitenotifier-3> [scopehal] hansemro opened pull request #875: Siglent: Replace :TRIG:MODE STOP with :TRIG:STOP; handle new SDS2000X+ version format - https://github.com/ngscopeclient/scopehal/pull/875
<_whitenotifier-3> [stm32-cpp] azonenberg pushed 1 commit to master [+3/-0/±5] https://github.com/azonenberg/stm32-cpp/compare/e3d68ff857f6...cf9eb11f7f96
<_whitenotifier-3> [stm32-cpp] azonenberg cf9eb11 - Initial STM32H735 MDMA support (WIP)
<d1b2> <246tnt> @attiegrande BTW, all my scope schenanigans today were because I wanted to check HiSLIP and see if that provided any speed benefits, but now I exhausted my free time just updating the scope to a version that supports it 😅
<d1b2> <attiegrande> gah! 😢 glad you got the firmware updated at least! 😂
<d1b2> <azonenberg> ooh hislip support has been on the wishlist for a very long time
<d1b2> <azonenberg> i havent had access to a scope that supported it to dev against
<d1b2> <246tnt> Yeah, here I wanted to just do some quick tests see if there was any large perf benefit to it with my particular scope.