Author Topic: Linux compatibility - Another newbie looking for an oscilloscope  (Read 7422 times)

0 Members and 1 Guest are viewing this topic.

Offline tatelTopic starter

  • Frequent Contributor
  • **
  • Posts: 617
  • Country: es
Hi all.

First post on this forum. As a presentation, I have some 20 years of experience as linux sysadmin. I do have very little knowledge or experience in electronics, but I'm loving to play with arduinos, or, more exactly, with atmel microprocessors. Sensors, motor control, PWM, 1-wire, I2C and SPI communications, perhaps even CAN since that's what my car speaks. I want to be able to decode serial communications as easily as possible, see what my PWMs are doing, and what is going on on my proto boards. That kind of things.

So I think it's time to get an oscilloscope, better than a logic analyzer. Not for professional use, just for fun. I don't expect to get any further than that into electronics. By the way, for logic analysis, I'm looking to BusPirate.

I did some research looking for a cheap oscilloscope, cause it's going to be mainly a  toy. At first, I looked at those dirty cheap USB, PC based things. But it seemed as if those weren't good enough. Then I looked at some things in the 200 € range, cause this is the amount I was comfortable with, and they looked as if they could be good enough. But, it wasn't clear that those things could work with linux. No linux, no fun. Now I realize that, to be sure I'm getting this, quite probably I'll have to get into the 400 € range. I don't want to spend more than that on a just-for-fun thing.

Yesterday I spent all my free time looking some Dave's videos and reading some threads here. After that, I'm considering both the... Rigol DS1054Z and Siglent SDS1202X-E. Don't get me wrong, I hope this will not start any religion war! I have read a thread here that became somewhat hot.

I can get both from Amazon Spain with a difference of just some 25 €, and this looks good, since the price from Aliexpress is about the same after customs. So I'm leaning to Rigol, cause it has 4 channels, can be hacked to 100 MHz and it looks as being supported by linux software like sigrok and dsreport. Good.  But the Siglent looks good too, for it can do 200 MHz and has an ash shell inside.

Now, I'm unable to find any more infos about those two scopes and linux, so it's time to ask for some help from experienced people.  So my questions are:

1- Which one works better with linux?

2- Can I do things as, say, send the data directly to my PC for storage? That could bypass memory limitations on the scope.

3- Can I load and execute shell scripts on these scopes?

4- Can I decode serial communications, not supported by the scopes, on my linux system, using data from the scope?

5- I do realize that four channels are better than two, but the siglent looks as being able to decode most of the mentioned serial protocols with just two channels. Should I buy the siglent, will I in the future have to repent about not getting four channels? Which would be the case for Atmel-related work? And for electronics in a more general way?

6- I do realize that 200 MHz BW is enough to work with Atmel micros working at say, 16-20 MHz, while it does look that doing it with an 100 Mhz hacked scope could be perhaps not good enough, because one has to get the seventh harmonic or more?  Excuse my ignorance, but it has somewhat shocked me. I was expecting 100 MHz should be more than enough. What is this 7th harmonic thing about? Does it matter as much that working at 100 MHz could be annoying?

7- Do you know of any other €400 -or less- scope that could fit my bill?

Any answers/hints/pointers would be greatly appreciated.

Best wishes
 

Offline PKTKS

  • Super Contributor
  • ***
  • Posts: 1766
  • Country: br
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #1 on: March 03, 2021, 01:03:38 pm »
AFAIK  if you raise your budget above the 200 you will not
need any sort of PC applet...

The only one really working almost perfect (even better than OEM)
are the ones supported by sigrok https://sigrok.org/wiki/Supported_hardware

and among them Hantek USB based with an excellent OpenHantek scope app.

The problem with these new gen gizmos is that crappy USB stack.

On ETH based they can be managed order of magnitudes better..
but at that budget you will not find any..

For breadboard ARDUINO?  go Hantek.  cheapo affordable works ..

For anything above serious go RIGOL (USB is dangerous stuff in scopes)

Paul

Alas.. check MUSTOOL MDS120 hand scope..  cheap works fine... portable..
« Last Edit: March 03, 2021, 01:06:50 pm by PKTKS »
 
The following users thanked this post: tatel

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28734
  • Country: nl
    • NCT Developments
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #2 on: March 03, 2021, 07:57:51 pm »
Look at the GW Instek GDS-1054B. This one should fit the budget and it can dump data straight onto a Samba share (on a capture per capture basis; not streaming). People are working to figure out how to get the Lua scripting going on this scope but no word on progress yet.

100MHz is enough for working with standard microcontrollers. Seeing the 3rd harmonic is good enough to get an idea of a digital signal. In reality most signals surrounding a microcontroller have a much lower frequency.
« Last Edit: March 03, 2021, 08:02:18 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 
The following users thanked this post: Trader

Offline tautech

  • Super Contributor
  • ***
  • Posts: 30278
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #3 on: March 03, 2021, 08:22:33 pm »
tatel
Siglent equipment and their SW doesn't work natively with Linux although the instruments OS are Linux based.

Instead we need to use other tools to interface with Siglent gear over LAN and LXI Tools is a proven solution.
Some resources for you here:
https://siglentna.com/video/quick-remote-computer-control-using-lxi-tools/
https://www.eevblog.com/forum/testgear/open-source-lxi-tools-and-liblxi-v1-0-released-for-gnulinux/
https://www.eevblog.com/forum/beginners/need-help-connecting-siglent-1202x-e-scope-to-lxi-tools/
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline tatelTopic starter

  • Frequent Contributor
  • **
  • Posts: 617
  • Country: es
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #4 on: March 04, 2021, 11:38:59 am »
Thank you all for the help.

I'll probably go rigol since having 200 MHz seems not as useful as four channels for my use case.
 

Offline nigelwright7557

  • Frequent Contributor
  • **
  • Posts: 711
  • Country: gb
    • Electronic controls
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #5 on: March 04, 2021, 01:48:35 pm »
Some scope vendors have optimistic bandwidths.
A 100MHz scope will only be good for 10MHz sine wave.
You need at least 10 points to get anywhere near an accurate sinewave.
Extrapolating from 2 points doesn't distinguish between sine, square and ramp waveforms, it just does sine usually.

I still prefer my analogue scope for most of my analogue work and USB scope for capturing digital data packets.
 
The following users thanked this post: tatel

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28734
  • Country: nl
    • NCT Developments
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #6 on: March 04, 2021, 01:55:30 pm »
Some scope vendors have optimistic bandwidths.
A 100MHz scope will only be good for 10MHz sine wave.
You need at least 10 points to get anywhere near an accurate sinewave.
That has been debunked a long time ago. Read up on signal processing theory. Modern DSOs have enough information from a samplerate which is 2.5 times the bandwidth to show you a sine wave. The problem isn't in the DSO but our brains which can't connect the dots. Throwing a higher samplerate at a sine wave does not give you any extra information.
« Last Edit: March 04, 2021, 01:57:36 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 
The following users thanked this post: tatel

Offline tatelTopic starter

  • Frequent Contributor
  • **
  • Posts: 617
  • Country: es
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #7 on: March 04, 2021, 06:04:36 pm »
Quote
You need at least 10 points to get anywhere near an accurate sinewave.

Yeah, got it from Dave's videos. Other times he speaks about having at least four points, I think. But, excuse my ignorance: you are speaking about bandwidth, but this is about samplerate instead, it isn't?

Quote
The problem isn't in the DSO but our brains which can't connect the dots

Well if I pay for a tool, I want it good enough to help my brain. And, I'm not sure that the matter is to see pure sine waves. So, to draw the actual signal as accurately as possible, probably the more points it can get, the better, I think.

Now, as I understand it, if working with just one channel, so 1 Gsps sample rate, I should be able to get 10 points on a 100 MHz wave, while working with two, that ideal situation remains only until 50 MHz, and working with 3-4 channel it will go just to 25 MHz

If working with arduinos, so 16 MHz max speed, and need to see that curious 3rd harmonic, then I need to be able to do 48 MHz bandwidth. Which I could easily do, while maintaining the said 10 points/wave, if working  with just one channel. I could also do it working with 2 channels as long as that 3rd harmonic remains below 50 MHz, as would be the case if working with Arduino's 16 MHz max speed. And quite good enough still if working with full-blown 20 MHz Atmel speed. But not so much if working with 3-4 channels. Is that right?

Mi reasoning is that, probably, I would need more than 2 channels while working on, maybe, SPI serial communications, but these, as far as I know, aren't so fast, and are digital, so even 250 Ksps could be good enough. And when working on other, analog, faster things, perhaps 2 channels is plenty, as people buying 2-channel scopes seems to believe. Am I wrong?
 
On the other hand, I'm still unable to clearly see how Siglent could do a fine work debugging SPI, which is more than MISO and MOSI, with just 2 channels. So i think they are perhaps stretching it as much as they can. Even worse, as per Dave's videos, Siglent's decoding isn't realtime. If it's not realtime,  I could as well go to my PC and put sigrok at work. Now, Siglent isn't in sigroks hardware list, but Rigol is.  Am I getting it wrong?

So I'm leaning to rigol, but I'm not in a hurry and will take my time to make this decission. Of course, to buy a Siglent DSD1204X-E would make things easy, and if I were to get into electronics as a profession, I would buy at least that. But I'm a hobbyst on a budget, and Rigol DS1054Z seems to have still more bang for the buck in my use case.

Still, many thanks to you all, and if I'm wrong in my reasoning, please let me know
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28734
  • Country: nl
    • NCT Developments
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #8 on: March 04, 2021, 06:22:18 pm »
Quote
You need at least 10 points to get anywhere near an accurate sinewave.

Yeah, got it from Dave's videos. Other times he speaks about having at least four points, I think. But, excuse my ignorance: you are speaking about bandwidth, but this is about samplerate instead, it isn't?
As a rule of thumb: for a modern DSO the samplerate needs to be at least 2.5 times the bandwidth.  This is enough to reconstruct the signal. So 2.5 points per period for a sine wave with a frequency equal to the maximum bandwidth. Remember that according to Nyquist a sine wave can be sampled correctly up to (but not including) half of the samplerate. However a DSO needs some room in the frequency spectrum for the anti-aliasing filter and the length of the sine wave is finite; this is where the factor 2.5 comes from.

Also: take a good look at the GDS-1054B from GW Instek. It has many advantages versus the Rigol and Siglent (like individual channel controls). Especially if you are into decoding; unlike the RIgol and Siglent the GW Instek decodes the entire memory and not just what is on screen. For digital electronics having 4 channels is a must. Don't go for 2 channels.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 
The following users thanked this post: tatel

Offline tautech

  • Super Contributor
  • ***
  • Posts: 30278
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #9 on: March 04, 2021, 06:25:50 pm »

On the other hand, I'm still unable to clearly see how Siglent could do a fine work debugging SPI, which is more than MISO and MOSI, with just 2 channels. So i think they are perhaps stretching it as much as they can. Even worse, as per Dave's videos, Siglent's decoding isn't realtime. If it's not realtime,  I could as well go to my PC and put sigrok at work. Now, Siglent isn't in sigroks hardware list, but Rigol is.  Am I getting it wrong?
With a setting called Clock Timeout.
With any 2ch DSO SPI decoding requires another way to go about it and decoding just one packet stream is the norm.

The 2ch SDS1202X-E also offers individual vertical controls unlike its 4ch brother SDS1104X-E however for little more than the 2ch X-E is the SDS1104X-U for $ 399.
« Last Edit: March 04, 2021, 11:45:19 pm by tautech »
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 
The following users thanked this post: tatel

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 7262
  • Country: ro
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #10 on: March 04, 2021, 07:38:30 pm »
1- Which one works better with linux?

2- Can I do things as, say, send the data directly to my PC for storage? That could bypass memory limitations on the scope.

3- Can I load and execute shell scripts on these scopes?

4- Can I decode serial communications, not supported by the scopes, on my linux system, using data from the scope?

5- I do realize that four channels are better than two, but the siglent looks as being able to decode most of the mentioned serial protocols with just two channels. Should I buy the siglent, will I in the future have to repent about not getting four channels? Which would be the case for Atmel-related work? And for electronics in a more general way?

6- I do realize that 200 MHz BW is enough to work with Atmel micros working at say, 16-20 MHz, while it does look that doing it with an 100 Mhz hacked scope could be perhaps not good enough, because one has to get the seventh harmonic or more?  Excuse my ignorance, but it has somewhat shocked me. I was expecting 100 MHz should be more than enough. What is this 7th harmonic thing about? Does it matter as much that working at 100 MHz could be annoying?

7- Do you know of any other €400 -or less- scope that could fit my bill?

1.  Both.  Any instrument that has LXI can be controlled over LAN or over USB, the OS doesn't matter.  All you need is to send text SCPI commands.  There is already plenty of FOSS tools that can do that no matter the instrument model.  You can even telnet to the instruments if you want to.

2.  Yes if you want slow but indefinite data grabbing, for example one measurement per second.  No for real time acquisition, low range oscilloscopes can not be used for fast and continuous acquisition, they are not DAQs.  It is possible to dump to a PC the raw data that was acquired by the oscilloscope's ADC at full speed, but a transfer will take many seconds, so it will not be a continuous process, but you can save batches.

3.  Yes, but actually no.  That will be a hack, and the oscilloscope is busy anyway doing its tasks, it doesn't have resources to execute your scripts.  You won't be able to turn it into a 1Gsps DAQ if that's what you want.  However, LXI models can be controlled remotely, over the LAN or over the USB, so put your automation or data post- processing scripts in a PC that controls the oscilloscope remotely (using SCPI commands).  Once I made a thermostated soldering iron out of an oscilloscope, a power supply and a PC.  The oscilloscope was continuously polled to measure the thermocouple voltage, then the PC was controlling the power source that was heating the soldering iron.   ;D
https://rogeorge.wordpress.com/2016/09/23/zero-parts-thermostated-soldering-station/

4.  Yes, with sigrok.  Most of the existing protocols are already decoded by sigrok, but can add your own custom decodings, too.  It's FOSS.

5.  You won't miss the extra 100MHz for Atmel work, but you will need 4 channel for protocols with most than 2 wires.  Buy a 4 channels Siglent.  Either Siglent or Rigol, buy the lowest model in its line and unlock it.  For the same line of models, the hardware is identical.  All the limitations are in software, and it is already known how to unlock that.  I have a 4 channels Rigol, and I would never want to go back to 2 channels.  100 or 200MHz is about the same range when it comes to frequency.  From 100 to 500MHz or to 1GHz, that would be hard to decide, but between 100 and 200 it almost doesn't matter.

6.  Bollocks, if 100MHz is not enough for your Arduino, than 200MHz wouldn't be enough either.  You don't care about the 7th harmonic, and harmonics doesn't stop to the 7th anyway, they go upto infinite.  FYI a square waveform (or any other shape as well, not only square) can be built by adding many synchronous sinusoidal signals.  Something like this.

Figure 2.1 of this books also has a more intuitive illustration, IMO less bamboozling than an animation.
https://www.analog.com/media/en/training-seminars/design-handbooks/Software-Defined-Radio-for-Engineers-2018/SDR4Engineers_CH02.pdf#page=14
(note that Gibbs phenomenon is something else, but the figure is the most intuitive I know for showing how the square wave in the sum of all those sinusoidal signals in the back)

Any shape can be constructed by adding many sinusoidal signals.  Some dudes were having fun drawing Bart out of sinusoidal oscillations.  If you want to learn more about this subject, search about Fourier.  Short story, you don't really care about higher order harmonics when working with an AVR.  100MHz is more than enough.

7.  I think both Rigol and Siglent have a 4 channel model in that price range.  I already have a 4 channels Rigol DS1054z unlocked like it would be a DS1104z, and it served me well for many years now.

If I would need to buy again today, I would buy the Siglent 4 channel one, because it's a newer model, with slightly bigger screen and some extra measuring modes (IIRC Siglent can do bode diagrams for example).  I won't go for anything less than 4 channels, and certainly I would not trade the 4 channels for those extra 100MHz bandwidth, no way!
 
The following users thanked this post: tatel

Offline tatelTopic starter

  • Frequent Contributor
  • **
  • Posts: 617
  • Country: es
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #11 on: March 04, 2021, 11:18:13 pm »
Quote
So 2.5 points per period for a sine wave with a frequency equal to the maximum bandwidth

OK. So a 100 MHz , 4 channel oscilloscope that can do 250 Ksps on each channel, may be isn't the better thing in the universe, but is not "bad" in any case, and when using less bandwidth and/or less channels, gets better. Got it.

Quote
take a good look at the GDS-1054B from GW Instek. It has many advantages versus the Rigol and Siglent (like individual channel controls). Especially if you are into decoding; unlike the RIgol and Siglent the GW Instek decodes the entire memory and not just what is on screen.

Did it. After reading some scary thread about it getting locked, I did see Dave's teardown video. Well it could fit the bill. I would like it more if having some more metal, but I guess they know what they do. I don't know if that scary movie about becoming sluggish holds any water but I can't find any more about that. I guess other users would have something to say but the few I have found seem to be quite happy. Having a lightning fast UI and lots of wfps would be a plus. Is it linux-based?

Maybe I'm wrong, but I think Dave speaks in a video about Siglent decoding working with all memory data?

The flop could be hacking it to 100 MHz. Would I need other probes? The Rigol guys seem to know what they do, giving 150 MHz-rated probes  in a supposedly "50 MHz scope". So no need to buy new probes after "upgrading".

Quote
however for little more than the 2ch X-E is the SDS1104X-U for $ 399

Yeah, I find it really interesting. More after realizing than 2.5 points/wave is good enough. So It has the same basic specs than the Rigol, but no hacks needed, 4 channels for decoding and it does, among others, CAN. Probably no need to fall back to sigrok. It could have some use in my garage. 256 level screen vs 64. Linux based. Even if I can't touch the privative parts (which makes me grumpy), still I could perhaps put my knowledge at work for good. At about the same price, not some 25% more. Actually, I'm now leaning to this one. Tanks a lot to you, tautech.

@RoGeorge: Man, you did make my day. Answering my questions one by one, you have really helped me more than I hoped this forum could do. I'm giving to you even my feet's thumbs up :-+ :-+ :-+ :-+

All your post is really helpful to me, but I specially appreciated how you begin the part about harmonics. Sometimes a clear word is what is really needed. Since I read that thing about the 7th harmonic, I was shocked and wondering about it. It reminded me about the seven circles of hell or the medieval monks having conciliums to discuss about how many dicks Satan has.

Luckily ntcnico rapidly said no need to go further than 3rd harmonic at maximum. Now you finish riveting it. Thanks you all, men. Really appreciated
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28734
  • Country: nl
    • NCT Developments
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #12 on: March 04, 2021, 11:34:33 pm »
Quote
So 2.5 points per period for a sine wave with a frequency equal to the maximum bandwidth

OK. So a 100 MHz , 4 channel oscilloscope that can do 250 Ksps on each channel, may be isn't the better thing in the universe, but is not "bad" in any case, and when using less bandwidth and/or less channels, gets better. Got it.

Quote
take a good look at the GDS-1054B from GW Instek. It has many advantages versus the Rigol and Siglent (like individual channel controls). Especially if you are into decoding; unlike the RIgol and Siglent the GW Instek decodes the entire memory and not just what is on screen.

Did it. After reading some scary thread about it getting locked, I did see Dave's teardown video. Well it could fit the bill. I would like it more if having some more metal, but I guess they know what they do. I don't know if that scary movie about becoming sluggish holds any water but I can't find any more about that. I guess other users would have something to say but the few I have found seem to be quite happy. Having a lightning fast UI and lots of wfps would be a plus. Is it linux-based?

The flop could be hacking it to 100 MHz. Would I need other probes? The Rigol guys seem to know what they do, giving 150 MHz-rated probes  in a supposedly "50 MHz scope". So no need to buy new probes after "upgrading".
According to the specs it comes with 70MHz probes but don't worry about passive probes too much; these will do just fine for your purpose. Passive probes are a dime a dozen anyway (look on Aliexpress). Even very good ones from Testec are in the 30 to 40 euro price range.

Slowing down is an issue which occurs on rare occasions when switching a lot between functions like FFT and bus decoding but it is not something that gets in the way. I'm using the bigger brother (GDS-2000E series which is based on the same platform) regulary and in practise I have not seen the 'slowdown issue' happen for a long time.

And yes, the GDS-1054B runs on Linux. In the hacking thread you can find a application package which adds root access over ssh.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 30278
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #13 on: March 04, 2021, 11:53:32 pm »
Quote
however for little more than the 2ch X-E is the SDS1104X-U for $ 399

Yeah, I find it really interesting. More after realizing than 2.5 points/wave is good enough. So It has the same basic specs than the Rigol, but no hacks needed, 4 channels for decoding and it does, among others, CAN. Probably no need to fall back to sigrok. It could have some use in my garage. 256 level screen vs 64. Linux based. Even if I can't touch the privative parts (which makes me grumpy), still I could perhaps put my knowledge at work for good. At about the same price, not some 25% more. Actually, I'm now leaning to this one. Tanks a lot to you, tautech.
Hunt out the reasonably recent vid that Defpom has done on the X-U and as he already has a SDS1104X-E he's gained a bit of experience on how to drive it yet in the X-U video comments I've added a few tips to how he can better use the feature set.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline tatelTopic starter

  • Frequent Contributor
  • **
  • Posts: 617
  • Country: es
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #14 on: March 14, 2021, 10:25:41 pm »
Well after quite a lot of reading (even the entire zoom out quirk thread) I think it could be worth to stretch my wallet a little more and go for a Siglent SDS1104X-E :scared:

I think I will get plenty of a scope for my purposes and does look to me as the best bang for the buck; able to do 200 MHz and having options for function generator and logic analyzer. Not that I'm going to get that outright expensive LA right now. I'm still thinking about a cheap USB LA but having the option on the scope looks to me as a kind of insurance should I need it in the future. I'm aware that need could never arise.

About the zoom out/history quirks: I guess I'll have to live with it until Siglent releases some FW update. Not that I'll be holding my breath. I realize they said it was on the works some 9 months ago, yet no FW update. But to have those specs in any other brand, it takes too much money for my wallet.

Should GW Instek have a similar offer, no doubt I would go that way.

I did also look at Rigol DS 1074Z+, but for the money, I'm going for 200MHz and newer, powerful hardware.

Anyway, thank you all for your help. It's really appreciated.
 

Offline tatelTopic starter

  • Frequent Contributor
  • **
  • Posts: 617
  • Country: es
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #15 on: March 25, 2021, 01:56:43 am »
Now I'm here just to apologize 'cause I think I've been ridiculously arrogant on my previous post.

After reading some more, about-80-pages-long threads on this forum, I'm just realizing that not all shining things are gold. If you wonder about what I'm saying, please see:

https://www.eevblog.com/forum/testgear/siglent-sds1204x-e-released-for-domestic-markets-in-china/msg3527698/#msg3527698

the reply from @jan28

https://www.eevblog.com/forum/testgear/siglent-sds1204x-e-released-for-domestic-markets-in-china/msg3528422/#msg3528422

and follow up.

BTW, GDS1054B can be bought on tme.eu, €350+VAT, which I find much more reasonable than others are asking for that scope. Those guys must be crazy. 

@nctnico: I have read the open source scope thread. I think the people in that thread is doing it wonderfully. Liked what you said there. Please keep the good work on. I'm not planning to post there since the level is intimidating, and of course I couldn't help at all. But I'm just hoping  you all don't get mad with grazillions of MHz, Gsps and Wfmps. Should an open source scope, 4-channel, 200 Mhz, 1 Gsps/channel, 30.000 wfmps/64 levels  and the digital capabilities of a Saleae 16 ch clone be a thing, I would buy it on the spot, and would gladly pay about the same Siglent is asking for the SDS1014X-E + SLA1016, and quite probably even a little bit more. A wet dream, I know...

 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9987
  • Country: us
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #16 on: March 25, 2021, 04:49:22 am »
Now I'm here just to apologize 'cause I think I've been ridiculously arrogant on my previous post.

After reading some more, about-80-pages-long threads on this forum, I'm just realizing that not all shining things are gold. If you wonder about what I'm saying, please see:

This topic runs just about weekly!

The hot setup a few years back was the 50 MHz Rigol DS1054Z unlocked for 100 MHz.  I have that setup.

Today the hot setup is the Siglent SDS1104X-E unlocked for 200 MHz.

Advanced Search for 'woman' and User CharlotteSwiss to get:

https://www.eevblog.com/forum/beginners/what-an-oscilloscope-recommended-for-a-woman-passionate-about-electronics/msg3100087/#msg3100087

This is an epic thread and even though she ultimately buys the 200 MHz 2 Channel variant (around Reply 150), read on.  We play with some very interesting tools as she worked through every single page of the User Manual.  This is a very long thread but it covers a lot of ground.

I see the SDS1104X-E on Amazon for $499 and the DS1054Z for $349.  Yes, the extra 100 MHz is worth the extra $150.

Only being able to display the 3rd harmonic implies that the rising and falling edges are a bit undetermined and this is often the exact thing you are looking for.  Setup and hold times relative to some clock.  I've always thought that the 9th harmonic was about the minimum so my 100 MHz scope can reasonably display a 10 MHz square wave.  My 350 MHz Tek 485 (an old analog scope) can reasonably display about a 38 MHz square wave.  If I care about the edges...

We can debate that stuff all day long and then somebody is going to point out that the only important number for the scope is rise time.  But risetime is tied to bandwidth by the constant 0.35

BandWidth=0.35/RiseTime

For a 100 MHz scope, the rise time will be 0.35/BandWidth = 3.5ns

It's pretty magic how the specs all come up with this constant but there is some math behind it.

 

Offline 2N3055

  • Super Contributor
  • ***
  • Posts: 7752
  • Country: hr
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #17 on: March 25, 2021, 08:12:55 am »
You need Digilent Analog Discovery USB scope and run it on Linux box.. It will do all you need. It also has API so write away.
And, being a computer person, you won't mind no buttons.
"Just hard work is not enough - it must be applied sensibly."
Dr. Richard W. Hamming
 
The following users thanked this post: tatel

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28734
  • Country: nl
    • NCT Developments
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #18 on: March 25, 2021, 09:29:49 am »
We can debate that stuff all day long and then somebody is going to point out that the only important number for the scope is rise time.  But risetime is tied to bandwidth by the constant 0.35
Buzzz.... wrong answer! It isn't! The only way to measure bandwidth is by using a leveled sine wave (RF) generator. Rise time is set by the anti-aliasing filter and depending on the steepness of that filter the famous '0.35' can be anything else.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 
The following users thanked this post: TheUnnamedNewbie

Offline TheUnnamedNewbie

  • Super Contributor
  • ***
  • Posts: 1211
  • Country: 00
  • mmwave RFIC/antenna designer
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #19 on: March 25, 2021, 11:03:05 am »
I'll try to directly answer your questions where possible.


1- Which one works better with linux?


I can't really answer that. I only tend to use SCPI/VISA interfacing with equipment, and that is OS-independent. If that is what you are looking to do, it doens't really matter which scope you get. Some these days have HTTP-virtual-front-panels, you just connect to port 80 on their IP address and get a mirror of their screen, sometimes with buttons.

2- Can I do things as, say, send the data directly to my PC for storage? That could bypass memory limitations on the scope.


You can't. Perhaps not technically on these lower end scopes, but the simple reason is that the bandwidth and latency on scope memory is very high/low respectively.

3- Can I load and execute shell scripts on these scopes?


4- Can I decode serial communications, not supported by the scopes, on my linux system, using data from the scope?

Yes! Look at things like https://github.com/azonenberg/scopehal and related projects from Andrew Zonenberg.
The best part about magic is when it stops being magic and becomes science instead

"There was no road, but the people walked on it, and the road came to be, and the people followed it, for the road took the path of least resistance"
 
The following users thanked this post: tatel

Offline tatelTopic starter

  • Frequent Contributor
  • **
  • Posts: 617
  • Country: es
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #20 on: March 25, 2021, 02:10:59 pm »
Well for me this is scope purchase is a one-off. This is my first scope, but it should be also the last one. I want to have my arduino-based things as cornered as -within reason- possible. I'm not interested in going further than that; even when playing with mightier hardware, I would be just looking at communications with DIY, 20-ish MHz boards. Period.

So I'll have a Saleae 16 ch clone no matter what, and could upgrade that in the future if better, cheap enough hardware is released.

Now for the scope, 200 MHz, 1 Gsps dual ADC, 4-analogic channels + working MSO option would fit that bill almost perfectly. But right now this isn't a thing unless I go to next level stuff. I could afford it, but really I do have better things to spend €1500-2000 in.

So problem is, I need to make a decision between 100 MHz, working MSO option, and 200 MHz, barely-working MSO.

Of course a experienced guy can work fine on arduino things with just a 100 MHz scope or even less. But me being a noob, and not having right now a clue about what the scope shows, being it a bug in my board or some artifact related to not having "enough" BW/sample rate, I'm thinking it could be worth to pay some 100-150 more to get this unknown variable filtered out and make my life easier. I do value my time, not just the money. And it would be into the golden standard for a scope to work with 16-20 MHz hardware, which is nice if it has to be a one-off buy

So  I want to have 200 MHz for every day work, but would really hate to spend €288 in that barely-working SLA1016 thing should I need it. I'm not holding my breath thinking Siglent people will get it working fine anytime soon.

On the other hand, to think about working every day at 100 MHz, perhaps making  just to be sure I will have a working MSO option should I need it "someday" is quite disappointing.

Could you guys give advice about this based on your experience?

 

 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9987
  • Country: us
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #21 on: March 25, 2021, 05:01:17 pm »
Could you guys give advice about this based on your experience?
That's what we have been doing.  You have reached the stage of 'analysis paralysis'.  If you want all the high end features, like the MSO thing, you're going to need to spend money.  A lot more money than just a simple entry level scope like the DS1054Z or SDS1104X-E.

For the difference in cost ($150), I would certainly go for the Siglent and unlock 200 MHz.  That is more than enough for Arduino projects and likely anything else I will do, even with my 100 MHz FPGA projects.

Back in the day when all I had was a 10 MHz Heathkit scope, I learned to simply slow things down.  There are all kinds of ways to troubleshoot digital systems.  Even today, I create a pushbutton single clock pulse component for my FPGA projects.  Single stepping isn't a good use of time but sometimes it is the only way.  Better choice for a CPU project:  Code in a breakpoint address arrangement that will stop the high speed CPU clock and revert to single stepping when some instruction address is reached.  Set the address on the dip switches or use an IO expander to fetch it from some offboard collection of switches.  It might be a million clocks in before something happens that is interesting.  I certainly don't want to push a button that many times!

You might research Dave's video on the MSO options.  He didn't recommend spending the money.  A logic analyzer does a better job.  Yes, you lose alignment with analog signals but Dave didn't consider that use as worth the cost.

BTW, the actual unlocked DS1054Z is closer to 130 MHz established by actually measuring the -3dB point.

At some point, these entry level scopes are going to come up short.  For the Teensy 4.1, the CPU is running at 600 MHz but SPI is limited to 30 MHz for master and slave modes.  Still, that's pretty fast for a 100 MHz scope.  Run it slower or buy a 200 MHz scope (minimum).

https://www.pjrc.com/store/teensy41.html
https://www.pjrc.com/teensy/IMXRT1060CEC_rev0_1.pdf

Apparently, the SPI clock on the Raspberry Pi 4 can run as high as 250 MHz.  I'm not sure the pins can wiggle that fast but 4 MHz seems achievable.  I haven't tried this and I haven't found a concrete answer - particularly for slave mode.  It may not even do slave mode.

The maximum SPI clock on the NXP LPC1768 (a 96 MHz ARM) is 12.5 MHz.  I am using it as a slave at a clock rate near this when driven by an FPGA.

Were it me, buying a scope today as opposed to a few years back, I would be all over the Siglent SDS1104X-E unlocked to 200 MHz.

You can chase bandwidth forever but at some point you need to drive a stake in the ground.

 
The following users thanked this post: Trader

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17732
  • Country: 00
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #22 on: March 25, 2021, 05:01:46 pm »
On the other hand, to think about working every day at 100 MHz, perhaps making  just to be sure I will have a working MSO option should I need it "someday" is quite disappointing.

Could you guys give advice about this based on your experience?

It's an Arduino. 100MHz is plenty.

The MHz race is exponential. The step from 50Mhz to 100Mhz is twice as big as the step from 100Mhz to 200Mhz.

Real life electronics isn't some ideal, mathematical thing. As you go over 100MHz your limiting factor will start to become the probes and your probing techniques, not the 'scopes bandwidth. To see accurate 200Mhz waves on screen you need to be doing a lot more than just poking a probe at a PCB or clipping it onto a breadboard wire which is 10cm away from an Arduino.

Signals don't simply vanish once you go above the bandwidth limit, they attenuate. A 100MHz Rigol DS1054Z will show a 300Mhz signal on screen, it's just that the displayed peak-to-peak voltage won't be correct.

Short version: 200Mhz seems a lot more valuable on paper than it is in real life.

« Last Edit: March 25, 2021, 05:11:36 pm by Fungus »
 
The following users thanked this post: Trader

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28734
  • Country: nl
    • NCT Developments
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #23 on: March 25, 2021, 05:08:09 pm »
You might research Dave's video on the MSO options.  He didn't recommend spending the money.  A logic analyzer does a better job.  Yes, you lose alignment with analog signals but Dave didn't consider that use as worth the cost.
You have to look at what usage that opinion is based on. When is the last time you have seen Dave work on a microcontroller or FPGA/CPLD project? From my own experience: If you work on microcontroller and/or FPGA/CPLD projects, having an MSO is almost is must. Being able to show more than 4 signals on a screen is really handy.
« Last Edit: March 25, 2021, 05:09:47 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9987
  • Country: us
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #24 on: March 25, 2021, 05:59:31 pm »
You might research Dave's video on the MSO options.  He didn't recommend spending the money.  A logic analyzer does a better job.  Yes, you lose alignment with analog signals but Dave didn't consider that use as worth the cost.
You have to look at what usage that opinion is based on. When is the last time you have seen Dave work on a microcontroller or FPGA/CPLD project? From my own experience: If you work on microcontroller and/or FPGA/CPLD projects, having an MSO is almost is must. Being able to show more than 4 signals on a screen is really handy.
So is a logic analyzer with a state clock input.  For Arduino and Pi projects, a simple Saleae clone will work just fine.  I built up a 32 channel 200 MHz LA from an FPGA using the project at

https://www.sump.org/projects/analyzer/

At some point (16? 32?), displaying channels on a tiny scope screen is nonsense.  There's nothing like a 27" monitor for working with a LA.  Maybe one of the 34"...

ETA:  I have never tried the Web interface to a scope.  That may very well overcome the screen size concern.

At reasonable speeds, the Digilent Analog Discovery 2 blows the doors off of all of these tools.  Particularly when you're trying to do a Bode' Plot on a scope.  Can you get log-log output?  Labeled?

I have attached a more reasonable Bode' Plot
« Last Edit: March 25, 2021, 06:36:05 pm by rstofer »
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9987
  • Country: us
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #25 on: March 25, 2021, 06:31:00 pm »
In terms of a logic analyzer, the Digilent Digital Discovery is pretty nice.  It has 8 channels with 800MS/s OR 16 channels with 400 MS/s OR 32 channels with 200 MS/s.  It does protocol decoding (using Waveforms software) and has a ton of features:

https://store.digilentinc.com/digital-discovery-portable-usb-logic-analyzer-and-digital-pattern-generator/

See the Features tab...

At $250 fully loaded, it's pretty expensive compared to an $8 clone.  But it's a LOT cheaper than adding the MSO hardware/firmware to an SDS1104X-E ($438) and AWG hardware/firmware ($268) and still not getting a proper Bode' Plot.

Accessory prices from here:

https://siglentna.com/digital-oscilloscopes/sds1000x-e-series-super-phosphor-oscilloscopes/

More often than not, I use the Analog Discovery 2 rather than my DS1054Z.  First because it's USB and plugs into my computer with 27" screen but mostly because it just does a lot more in a very small footprint.  Yes, it is bandwidth limited but, so far, it hasn't been a problem.

Here's something cool:  I have the Waveforms software running on the same Raspberry Pi that I am using to write the code and drive the project.  I can probe the header signals on the same device that compiles the code and displays the waveforms.  Somehow that appeals to me.
 
The following users thanked this post: Electro Fan

Offline tatelTopic starter

  • Frequent Contributor
  • **
  • Posts: 617
  • Country: es
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #26 on: March 25, 2021, 07:38:18 pm »
Quote
'analysis paralysis

You are absolutely right. Very descriptive and accurate statement  ;D No more asking for people's time. And no more wandering for clues. As said before, I do value time (mine and others'), and to read 80-page threads, while very illustrative, has been also very very time-consuming. Perhaps I'll take some days to see if my guts agree with my brain, but a decision has to be made soon.

Quote
If you want all the high end features, like the MSO thing, you're going to need to spend money.

Again right, but please note I did decide to throw money at it going for the SDS1104X-E

Quote
A lot more money than just a simple entry level scope like the DS1054Z or SDS1104X-E.

I disagree here. Should SDS1104X-E and SLA1016 work as advertised, no need for me to ask anything more.

Quote
It's an Arduino. 100MHz is plenty.

The MHz race is exponential. The step from 50Mhz to 100Mhz is twice as big as the step from 100Mhz to 200Mhz.

Quote
Short version: 200Mhz seems a lot more valuable on paper than it is in real life.

I'll take that. Gracias, paisano

Quote
If you work on microcontroller and/or FPGA/CPLD projects, having an MSO is almost is must. Being able to show more than 4 signals on a screen is really handy.

I'll take that, too. Even Dave agrees with this, even if he does think that, generally speaking, MSO isn't worth the money (yes I did checked that video)

Quote
In terms of a logic analyzer, the Digilent Digital Discovery is pretty nice

Thank you very much for this pointer. This gadget looks really impressive and I can easily see me buying it in the future, should the Saleae clone be not good enough. Farnell has it for €220,50. However, (and I could be wrong) the point here is having synchronous analog and digital signals.

I already looked at Analog Discovery 2, but it's €364 (Farnell), quite the same money than the DS1074Z+, specs are worse, and it has just two analog channels. Again, I could be wrong, but I want four analog channels.

Well I guess I'm going to need a JTAG adapter. The Rigol DS1074Z+ looks as the easiest and cheapest way. And it could be good enough to be a one-off buy, hopefully. If not, I guess I could sell it after getting some knowledge. And better to make a mistake by buying it than to another scope in the >€1000 range.

Thank you all very much.



 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9987
  • Country: us
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #27 on: March 25, 2021, 09:18:39 pm »
I already looked at Analog Discovery 2, but it's €364 (Farnell), quite the same money than the DS1074Z+, specs are worse, and it has just two analog channels. Again, I could be wrong, but I want four analog channels.
I was happier with the pre-Covid price of $279.  But universities and students are buying these up like crazy so why not raise the price?  National Instruments is probably behind this as they make competing equipment and bought Digilent
Quote
Well I guess I'm going to need a JTAG adapter. The Rigol DS1074Z+ looks as the easiest and cheapest way. And it could be good enough to be a one-off buy, hopefully. If not, I guess I could sell it after getting some knowledge. And better to make a mistake by buying it than to another scope in the >€1000 range.

Thank you all very much.

Search around to make certain the DS1074Z can be unlocked.  The DS1054 definitely can and it's cheaper.  There are threads all over this forum.

In my view, 4 channels is a requirement.  That's why I bought the scope.  I already had a 350 MHz Tek 485.  Then I found out what a real DSO could do and my Tek is sitting under my bench.  I don't know that I will ever use it again.
 

Offline tatelTopic starter

  • Frequent Contributor
  • **
  • Posts: 617
  • Country: es
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #28 on: March 25, 2021, 09:39:42 pm »
Quote
I was happier with the pre-Covid price of $279.  But universities and students are buying these up like crazy so why not raise the price?

DigiKey has no remaining stock. It looks as selling better than alcohol in Pamplona any July 7th.

Quote
Search around to make certain the DS1074Z can be unlocked.  The DS1054 definitely can and it's cheaper.  There are threads all over this forum.

Yes it does seem it can be unlocked. I have seen a video of it. Case must be open and a memory dump made from the JTAG header. Then licenses can be rigged up. I think it can be done with a raspberri and a software called openocd. We'll see.

Best wishes
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9987
  • Country: us
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #29 on: March 25, 2021, 10:32:52 pm »
Quote
Search around to make certain the DS1074Z can be unlocked.  The DS1054 definitely can and it's cheaper.  There are threads all over this forum.

Yes it does seem it can be unlocked. I have seen a video of it. Case must be open and a memory dump made from the JTAG header. Then licenses can be rigged up. I think it can be done with a raspberri and a software called openocd. We'll see.

Best wishes

Why go to the 1074 in the first place?  The 1054 can be unlocked by pushing buttons on the front panel.  You aren't going to get beyond 100MHz regardless of which unit you pick.

https://www.instructables.com/How-to-Hack-Upgrade-a-Rigol-DS1054Z-Digital-Oscill/
 

Offline tatelTopic starter

  • Frequent Contributor
  • **
  • Posts: 617
  • Country: es
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #30 on: March 26, 2021, 12:36:31 am »
DS1074Z+ has MSO option that seems to work fine, or at least quite a lot better than SDS1104X-E's one.

 

Offline tatelTopic starter

  • Frequent Contributor
  • **
  • Posts: 617
  • Country: es
Re: Linux compatibility - Another newbie looking for an oscilloscope
« Reply #31 on: April 08, 2021, 06:07:21 am »
Well... finally I'm getting GW Instek GDS-1054B

Reading Rigol DS1074Z + user manual, I learned that connecting the logic analyzer means to lose 1-2 analog channels. Don't like that.

It could be worth mentioning that at first moment I ordered MSO-2104EA; tme.eu has his last one quite heavily discounted. They are asking for somewhat less than the naked Siglent SDS2104X Plus, and logic probes are included in that price. But they are soooo bureaucratic that any online order >€1000 isn't accepted; one has to speak with some guy. WTF

So, for about five minutes, I was tempted to buy the Siglent instead. What a machine it is! I like it a lot. I wouldn't mind that memory management thing at all.

However, I didn't have read the user manual yet at that moment. And, while reading it, finally my brain prevailed over my guts so I decided it's quite probably overkill for me and, should I make the wrong decision, better get it wrong on the cheap side. Also, this leaves a good amount of money to spend in other toys.

So I got in contact with eleshop.eu, let they know that tme.eu has GDS-1054B for €350+VAT, then they immediately lowered what they were asking for, to tme.eu's price. Then I ordered from them. Those guys are good dealers; what a difference with the bored, apathetic bureaucrat at tme.eu. Yes I called tme.eu just to hear what they could have to say.

eleshop.eu conditions are very good about returning, guarantee, etc, so the only disadvantage dealing with them could be time. We'll see how this goes but so far I'm very happy with them.

So analysis paralysis has been terminated.

Thank you all very much for your help
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf