azonenberg changed the topic of #scopehal to: libscopehal, libscopeprotocols, and glscopeclient development and testing | https://github.com/glscopeclient/scopehal-apps | Logs: https://libera.irclog.whitequark.org/scopehal
<_whitenotifier-7> [scopehal] azonenberg commented on issue #301: Add Windows support for USBTMC transport - https://github.com/glscopeclient/scopehal/issues/301#issuecomment-1175623255
<_whitenotifier-7> [scopehal] azonenberg closed issue #301: Add Windows support for USBTMC transport - https://github.com/glscopeclient/scopehal/issues/301
<_whitenotifier-7> [scopehal] racerxdl opened issue #652: Siglent: Using SDS1104X-E through usbtmc not always work - https://github.com/glscopeclient/scopehal/issues/652
<_whitenotifier-7> [scopehal] racerxdl edited issue #652: Siglent: Using SDS1104X-E through usbtmc not always work - https://github.com/glscopeclient/scopehal/issues/652
Degi_ has joined #scopehal
Degi has quit [Ping timeout: 240 seconds]
Degi_ is now known as Degi
<azonenberg> Touching the preference manager internals for the first time in ages, some of the files still have 2020 copyright dates lol
<azonenberg> adding support for preferences of integer type
<_whitenotifier-7> [scopehal-apps] azonenberg pushed 3 commits to master [+0/-0/±12] https://github.com/glscopeclient/scopehal-apps/compare/adddb1c31e20...0819c8ec8def
<_whitenotifier-7> [scopehal-apps] azonenberg ae9c489 - PreferenceDialog: indentation fixes
<_whitenotifier-7> [scopehal-apps] azonenberg 5dd2ff9 - Preference system: added support for prefs of type int64_t
<_whitenotifier-7> [scopehal-apps] azonenberg 0819c8e - Added recently-used-files list. Fixes #450.
<_whitenotifier-7> [scopehal-apps] azonenberg closed issue #450: Add list of recently opened scopesessions - https://github.com/glscopeclient/scopehal-apps/issues/450
GenTooMan has quit [Ping timeout: 244 seconds]
GenTooMan has joined #scopehal
<azonenberg> woop, looks like the AKL-AD4 v0.2 prototype should be arriving thursday
<_whitenotifier-7> [scopehal-apps] thesourcerer8 opened issue #451: Git dependency is missing - https://github.com/glscopeclient/scopehal-apps/issues/451
<_whitenotifier-7> [scopehal-apps] azonenberg commented on issue #451: Git dependency is missing - https://github.com/glscopeclient/scopehal-apps/issues/451#issuecomment-1176008803
<_whitenotifier-7> [scopehal-docs] thesourcerer8 opened issue #42: Git dependency is missing - https://github.com/glscopeclient/scopehal-docs/issues/42
GenTooMan has quit [Remote host closed the connection]
GenTooMan has joined #scopehal
<_whitenotifier-7> [scopehal-apps] azonenberg opened issue #452: Optimize multiscope sync - https://github.com/glscopeclient/scopehal-apps/issues/452
<_whitenotifier-7> [scopehal-apps] azonenberg labeled issue #452: Optimize multiscope sync - https://github.com/glscopeclient/scopehal-apps/issues/452
<d1b2> <massi> bvernoux, i'm actually interested in MSO5K LA Pod, is it a kicad project? thanks
GenTooMan has quit [Ping timeout: 244 seconds]
GenTooMan has joined #scopehal
<d1b2> <TiltMeSenpai> is there a reason why https://github.com/glscopeclient/scopehal-sigrok-bridge uses the dslogic specific sigrok fork?
<d1b2> <TiltMeSenpai> it looks like dslogic deleted their autoconf files a couple months ago and figuring out how to build their libsigrok fork is proving to be notably painful
<d1b2> <TiltMeSenpai> and I'm wondering whether building their fork is gonna be more or less painful than modifying that project to just build against upstream sigrok
<d1b2> <louis> Their libsigrok fork is a total cluster of hacked-on code, including a bunch of random globals that totally skip the libsigrok abstractions
<d1b2> <louis> So in theory it's possible, and would probably be cleaner? but it would be a ton of work to tease apart whatever is going on with their driver
<d1b2> <TiltMeSenpai> I'd rather fight CPP code than CPP build tools but I'm weird like that
<d1b2> <TiltMeSenpai> noted, I'll fork the bridge and PR if/when I get it to run lol
<d1b2> <louis> What issue are you hitting? I haven't updated my copy of libsigrok4DSL in months... did it change out from under the bridge?
<d1b2> <louis> I didn't think the bridge application had any dependency except insofar as requiring an installed copy of libsigrok4DSL
<d1b2> <TiltMeSenpai> https://github.com/DreamSourceLab/DSView/tree/master/libsigrok4DSL autoconf.sh is MIA 😦
<d1b2> <TiltMeSenpai> I tried to roll back but it fails to detect GLEW if I do that
<d1b2> <TiltMeSenpai> what commit hash did you build against? I can try do that instead
<d1b2> <louis> I appear to be on the dev-tai branch commit 3914467d588ad9cf23a30b88f0ac3cc210542ec3
<d1b2> <TiltMeSenpai> and if that works it might be worth throwing in "This has been tested with libsigrok4DSL hash ..." or some other instructions along those lines, DSLogic is 😠 with their source code
<d1b2> <louis> It's been long enough though that I have to admit I'm not sure why I'm on that branch?
<d1b2> <TiltMeSenpai> oh no sorry it was failing to find glibconfig.h
<d1b2> <TiltMeSenpai> though that might not be the DSLogic libsigrok that's borked?
<d1b2> <louis> send me a snapshot of a build failure?
<d1b2> <TiltMeSenpai> make all-recursive Making all in hardware Making all in demo CC libsigrok4DSL_hw_demo_la-demo.lo In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from demo.h:24, from demo.c:23: /usr/include/glib-2.0/glib/gtypes.h:32:10: fatal error: glibconfig.h: No such file or directory 32 | #include <glibconfig.h> |
<d1b2> ^~~~~~~~~~~~~~ compilation terminated. make[3]: *** [Makefile:426: libsigrok4DSL_hw_demo_la-demo.lo] Error 1 make[2]: *** [Makefile:440: all-recursive] Error 1 make[1]: *** [Makefile:681: all-recursive] Error 1 make: *** [Makefile:482: all] Error 2
<d1b2> <louis> huh. that looks more like something is wrong with your glib install than a libsigrok4DSL error to me
<d1b2> <TiltMeSenpai> yeah
<d1b2> <TiltMeSenpai> "use pkgconfig to add gcc arguments" ok internet, I know that this works but it's not particularly helpful to me at the moment
<Degi> I guess by adding $(pkg-config --libs <your libraries>) and $(pkg-config --clfags <your libraries) to it maybe
<d1b2> <TiltMeSenpai> I just hand-patched the Makefile to make it behave itself
<d1b2> <TiltMeSenpai> now I'm having fun figuring out how to install libudev without breaking my entire system, but that's not a DSLogic problem, thanks
<d1b2> <TiltMeSenpai> ok we've now built everything and glscopeclient segfaults because it doesn't recognize the DSLogic Plus
<d1b2> <TiltMeSenpai> which isn't at "using a DSLogic Plus with glscopeclient" but is progress, so 🎉
<d1b2> <louis> No promises, but good chance it will Just Work™ if you add diff diff --git a/scopehal/DSLabsOscilloscope.cpp b/scopehal/DSLabsOscilloscope.cpp index ad84693..ae83407 100644 --- a/scopehal/DSLabsOscilloscope.cpp +++ b/scopehal/DSLabsOscilloscope.cpp @@ -200,6 +200,14 @@ void DSLabsOscilloscope::IdentifyHardware() m_digitalChannelCount = 0; } + else if (m_model == "DSLogic Plus") + { + m_series = DSLOGIC_PLUS; +
<d1b2> LogDebug("Found DSLogic Plus\n"); + + m_analogChannelCount = 0; + m_digitalChannelCount = 16; + } else if (m_model == "DSLogic U3Pro16") { m_series = DSLOGIC_U3PRO16; @@ -207,7 +215,6 @@ void DSLabsOscilloscope::IdentifyHardware() m_analogChannelCount = 0; m_digitalChannelCount = 16; - } if (m_series == SERIES_UNKNOWN) diff --git a/scopehal/DSLabsOscilloscope.h
<d1b2> b/scopehal/DSLabsOscilloscope.h index 07c9d02..8a142bd 100644 --- a/scopehal/DSLabsOscilloscope.h +++ b/scopehal/DSLabsOscilloscope.h @@ -102,6 +102,7 @@ public: enum Series { DSCOPE_U3P100, + DSLOGIC_PLUS, DSLOGIC_U3PRO16, SERIES_UNKNOWN //unknown or invalid model name
<d1b2> <louis> (& let me know if it does and I'll upstream that)
<d1b2> <TiltMeSenpai> I called the DSLogicPlus a DSLogic U3Pro16 and apparently that's close enough™️
<d1b2> <louis> Sweet! 🙂
<d1b2> <TiltMeSenpai> note: the string shows up as DSLogic PLus, idk why there's the typo
<d1b2> <louis> LOL, there sure is... {0x2A0E, 0x0020, LIBUSB_SPEED_HIGH, "DreamSourceLab", "DSLogic PLus", NULL,
<d1b2> <louis> so if you are going to apply the patch I sent then s/Plus/PLus/ 😛
<d1b2> <louis> But it is working?
<d1b2> <TiltMeSenpai> it's sending null waveforms, lemme find something with intelligible digital signals
<d1b2> <TiltMeSenpai> I have lines toggling, how do I add a UART decoder?
<d1b2> <louis> Should be right click -> bus -> UART
<mxshift> azonenberg: work is debugging a QSGMII link so these waveforms might be invalid but they are available to you nonetheless: https://drive.google.com/file/d/10IHVCiGWsaxCsWAqV9KKC8lj4u-hPn9p/view?usp=sharing
<azonenberg> mxshift: great will look shortly
<d1b2> <TiltMeSenpai> ok, it passes an initial sniff test but I was consistently getting crashes just by tossing a 100khz square wave at it
<d1b2> <TiltMeSenpai> TBD if that's related to any of the fucky shit I did
<d1b2> <TiltMeSenpai> also the UART wasn't decoding right, almost like there's some timebase differences between the DSLogic Plus and other variants, I'll also try chase that down when I have more time/motivation