Author Topic: SDS1204X-E scope freezing when collecting waveform  (Read 5919 times)

0 Members and 1 Guest are viewing this topic.

Offline AnarchistWolfTopic starter

  • Contributor
  • Posts: 13
  • Country: us
SDS1204X-E scope freezing when collecting waveform
« on: June 21, 2022, 12:44:44 am »
Hello,

Currently I am trying to get my SDS1204X-E scope to collect the waveform through TCP using Julia as the programming language (Though i have tested with Python). When i collect the waveform and process the data about 10-20 times the scope suddenly freezes. I need to acquire data like every second or so for hours on end.

Ive already ruled out possible packet problems using wireshark. ive played with the delays/sleeps in my code to make sure it has enough time to process the data but doesnt help no matter the interval.

What is funny to me is that we have a Rigol DS1102Z-E scope thats like a fraction of the cost and i can actually get working with data acquisition every 1 second for more that 12 hours. (To me this is an indicator that my code isnt necessarily the problem.)

Ive contacted Siglent and they have never seen/heard of this problem so im seeing if maybe someone else has some suggestions or comments on the matter. (Id like ya know the more expensive 4 channel oscilloscope to work compared to the Rigol, which while it works i think it is causing some slight problems in reading the waveform.)

Thanks,
W
« Last Edit: June 21, 2022, 12:50:50 am by AnarchistWolf »
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29335
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #1 on: June 21, 2022, 04:21:39 am »
Welcome to the forum.

Sorry I don't have any answers, only questions.
Please state the firmware version in use, the latest is 37R9.
https://int.siglent.com/download/firmwares/?ProId=12

What format is the data you're grabbing ?
Could you show us a screenshot from the USB port ?
Have you worked through the pages of operating tips and App notes ?
https://siglentna.com/operating-tips/digital-oscilloscopes/sds1000x-e-series/
https://siglentna.com/application-notes/sds1000x-e-series/

Maybe this could work better for you:
https://siglentna.com/application-note/lxi-tools/

Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline AnarchistWolfTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #2 on: June 21, 2022, 04:47:35 am »
Hello,
I am running the latest Firmware (The one you have listed).

The format is in hexadecimal, 14k points (Lowest mem depth). I wouldnt be able to show you a screenshot because the scope freezes, not allowing anything. I could send a picture but it would just be of a static scope. I have gone through the tips and tried looking through many forums (and also contacting Siglent themselves multiple times) but havent found much.

The reason i am using a TCP connection is so i dont have to install libraries, i dont have to be near the instrument, and so that my code can read and process the data in realtime without having to download and then read the data. 

I hope those answered some of your questions,
Best,
W
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29335
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #3 on: June 21, 2022, 05:10:43 am »
The format is in hexadecimal
Sorry, I should've asked for the filetype.

As you can see from the screenshot only certain types are available.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline AnarchistWolfTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #4 on: June 21, 2022, 05:26:01 am »
When sending the WF? (Waveform acquire) SCPI commands i do not get a file back, i get a header and an array of hexadecimal units.
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29335
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #5 on: June 21, 2022, 07:58:37 am »
When sending the WF? (Waveform acquire) SCPI commands i do not get a file back, i get a header and an array of hexadecimal units.
Does your WF? command syntax comply with the conditions listed on P262 and on from the programming manual ?
https://siglentna.com//wp-content/uploads/dlm_uploads/2021/01/SDS1000-SeriesSDS2000XSDS2000X-E_ProgrammingGuide_PG01-E02D.pdf

Have you considered using the new Logging feature to collect your data ?
https://siglentna.com//wp-content/uploads/dlm_uploads/2021/08/Data-Logger-of-SDS-Application-Notes_EN01A.pdf
However it seems the logging can only be saved locally after which you'd need to physically transfer it to a PC.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #6 on: June 21, 2022, 09:18:42 am »
To note, if it works once it should work N times where N is > 20. Smells like a bug. But at which end?

To isolate this I would list carefully:

1. How the scope is connected to the computer.
2. The type of host computer and operating system.
3. A minimum subset of the code that reproduces the issue.

I have a 1202X-E here I can probably set up quickly to try and reproduce it.

This could be anything from an reentrancy issue on the scope side to a threading bug on the client side.
 

Offline AnarchistWolfTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #7 on: June 21, 2022, 09:30:48 am »
Yes I have followed the programming guide to a T. I've gone through their settup and code guide too on how it should function.

They might have missed something in their manual (as I've seen not all commands are documented readily) so I could just be missing part of the puzzle because I am using it for a niche use case I think. (Could be wrong.)
 

Offline AnarchistWolfTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #8 on: June 21, 2022, 09:51:20 am »
Hello,
The scope is connected by ethernet in a local managed network but i have tried a direct connection using a crossover ethernet cable and it still froze. (I havnt tried serial because the whole point is to not use libraries.)

I mainly code and run the script on a windows computer but we do use Ubuntu to run the code overnight and it still hangs on those computers. (Havnt tried Mac but would expect the same results.)

Im interested too if its my code or something wrong with the scope (At this point i think both, but leaning more towards it being a problem with the scope because im missing something in my code they dont have listed.)

I have used their basic python code as a test and just replaced it with the waveform command instead of *IDN? and it still hangs. (https://siglentna.com/application-note/open-socket-lan-python/). This code collects the waveform of the first channel 100 times.

Code: [Select]
#!/usr/bin/env python
#-*- coding:utf-8 –*-
#-----------------------------------------------------------------------------
# The short script is a example that open a socket, sends a query,
# print the return message and closes the socket.
#
#No warranties expressed or implied
#
#SIGLENT/JAC 05.2018
#
#-----------------------------------------------------------------------------
import socket # for sockets
import sys # for exit
import time # for sleep
#-----------------------------------------------------------------------------

remote_ip = "192.168.55.121" # should match the instrument’s IP address
port = 5025 # the port number of the instrument service

#Port 5024 is valid for the following:
#SIGLENT SDS1202X-E, SDG2X Series, SDG6X Series
#SDM3055, SDM3045X, and SDM3065X
#
#Port 5025 is valid for the following:
#SIGLENT SVA1000X series, SSA3000X Series, and SPD3303X/XE

count = 0

def SocketConnect():
    try:
        #create an AF_INET, STREAM socket (TCP)
        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    except socket.error:
        print ('Failed to create socket.')
        sys.exit();
    try:
        #Connect to remote server
        s.connect((remote_ip , port))
    except socket.error:
        print ('failed to connect to ip ' + remote_ip)
    return s

def SocketQuery(Sock, cmd):
    try :
        #Send cmd string
        Sock.sendall(cmd)
        Sock.sendall(b'\n')
        time.sleep(1)
    except socket.error:
        #Send failed
        print ('Send failed')
        sys.exit()
    reply = Sock.recv(4096)
    return reply

def SocketClose(Sock):
    #close the socket
    Sock.close()
    time.sleep(1)

def main():
    global remote_ip
    global port
    global count

    # Body: send the SCPI commands C1:WF? DAT? 100 times and print the return message
    s = SocketConnect()
    for i in range(100):
        qStr = SocketQuery(s, b'C1:WF? DAT2')
        time.sleep(0.5)
        print (str(count) + ":: " + str(qStr))
        count = count + 1
    SocketClose(s)
    print('Query complete. Exiting program')
    sys.exit

if __name__ == '__main__':
    proc = main()

If you know Julia i can also send a Pluto notebook but i think python is much more universal.
« Last Edit: June 21, 2022, 09:53:24 am by AnarchistWolf »
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #9 on: June 21, 2022, 09:54:25 am »
Ok will get back to you later once I’ve had a chance to look at it  :-+
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #10 on: June 21, 2022, 10:27:37 am »
Ok had a few mins while on a pointless zoom call.

I'm running macOS 12.4 python 3.8.9 --> SDS1202X-E running 1.3.26 over wifi then ethernet.

Mine successfully runs everything up to "Query complete. Exiting program". At that point none of the physical controls are working. The network interface stops responding then as well which requires that I power cycle it by physically pulling the plug on it. I suspected that this would be related to LOCK being initiated when switching into remote mode which is a possibility but the whole network side pukes so I can't even validate that.

This is definitely a scope bug that is reproducible.

Edit: the firmware I have appears to be the latest published.

Edit 2: if you ctrl+C the python process then the whole scope hangs solid as well.

That is quite frankly shit!
« Last Edit: June 21, 2022, 10:33:10 am by bd139 »
 

Online 2N3055

  • Super Contributor
  • ***
  • Posts: 7182
  • Country: hr
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #11 on: June 21, 2022, 10:35:41 am »
So code opens the socket, asks for data 100 times and then closes the socket.
Could somebody try to open and close socket before and after each data transfer..
Maybe some buffers are not alloc/dealloc correctly, and they might get released with the socket destroy..
I'm not saying it's a solution but might point to exactly where the problem is...
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #12 on: June 21, 2022, 10:44:49 am »
Edit: just added that test case.

More info.

1. If you open the socket, run 100 commands through, then close it ->  CRASH.
1. If you open the socket and close it immediately without executing any commands -> NO CRASH.
2. If you open the socket, run one command and close it -> NO CRASH.
3. If you open the socket 100 times and run one command then close it, it takes bloody forever -> NO CRASH

So workaround is:

Code: [Select]
    for i in range(100):
        s = SocketConnect()
        qStr = SocketQuery(s, b'C1:WF? DAT2')
        time.sleep(0.5)
        print (str(count) + ":: " + str(qStr))
        count = count + 1
        SocketClose(s)

So it can't be trusted to execute more than one command per connection reliably. Smells like some stupid C somewhere.

Someone at Siglent should get a JTAG debugger on it and gdb, crash it, get a bt and fix this ASAP. Big  :-- :-- :--.
 
The following users thanked this post: 2N3055

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3303
  • Country: pt
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #13 on: June 21, 2022, 11:22:58 am »
Edit: just added that test case.

More info.

1. If you open the socket, run 100 commands through, then close it ->  CRASH.
1. If you open the socket and close it immediately without executing any commands -> NO CRASH.
2. If you open the socket, run one command and close it -> NO CRASH.
3. If you open the socket 100 times and run one command then close it, it takes bloody forever -> NO CRASH

So workaround is:

Code: [Select]
    for i in range(100):
        s = SocketConnect()
        qStr = SocketQuery(s, b'C1:WF? DAT2')
        time.sleep(0.5)
        print (str(count) + ":: " + str(qStr))
        count = count + 1
        SocketClose(s)

So it can't be trusted to execute more than one command per connection reliably. Smells like some stupid C somewhere.

Someone at Siglent should get a JTAG debugger on it and gdb, crash it, get a bt and fix this ASAP. Big  :-- :-- :--.

0.5 is the smallest delay you can get reliably?

I think you will always have a limit in that number of consecutive operations. It's better for the user to control it in a specific situation than for Siglent to put a hardcoded limit that will affect everybody in all situations.
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #14 on: June 21, 2022, 11:42:54 am »
There's no concurrency here. Operations always fully return before the next one starts.

Either way it should be reentrant and shouldn't crash the remote end. If it's not that's a bug.
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3303
  • Country: pt
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #15 on: June 21, 2022, 12:09:41 pm »
There's no concurrency here.

Concurrency is what a scope never lacks...

What happens when the SCPI command inside the 100x loop is only "*IDN?"?

(It could be a bug, a feature and/or a buggy feature...) 
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #16 on: June 21, 2022, 12:15:44 pm »
Ok just ran that and it doesn't crash if it's just '*IDN?' and a read back. So it's the WF? query doing it.
 

Offline AnarchistWolfTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #17 on: June 21, 2022, 12:54:25 pm »
Hello,

I appreciate all the feedback on this! Im glad i am not crazy, but also pissed its a problem.

I am not at my scope at the moment but my theory is since Siglent has such a weird history thing going on its actually storing the waveforms to internal memory, then its hanging because it is filling its memory and cant read or accept anymore commands.

I could be wrong on that but thats the only thing i can think of. All other commands like you just did work fine and can be ran hundreds of times. To get the actual voltage correct for the waveform you need to run many more commands than just WF?, but those run fine and i have never had a problem.

Thanks,
W
 
The following users thanked this post: bd139

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #18 on: June 21, 2022, 01:24:27 pm »
Well it's doing everything mostly correct.

I got it to entirely hang once with the display frozen but sometimes it would leave the display and acquisition running as well with just they keyboard dead. Definitely a sign of something probabilistic i.e. memory related. I'd say it was most likely a simple memory management or pointer handling bug somewhere.

I'm actually quite disappointed with this as well.

Pokes tautech...  :-DD
 
The following users thanked this post: tautech

Offline bdunham7

  • Super Contributor
  • ***
  • Posts: 8004
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #19 on: June 21, 2022, 01:45:49 pm »
I am not at my scope at the moment but my theory is since Siglent has such a weird history thing going on its actually storing the waveforms to internal memory, then its hanging because it is filling its memory and cant read or accept anymore commands.

Since you only want data once per second, you could try setting the holdoff to something like 0.5s to reduce the scope's internal workload.  What timebase, etc are you doing your capture at?
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 

Offline AnarchistWolfTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #20 on: June 21, 2022, 02:09:27 pm »
Id like to acquire the waveform every second or so (If your interested what im doing is Cavity Ring Down). for hours at a time, days if possible.

Im actually quite new to lingo in scopes so i havnt heard of holdoff. As for timebase it changes depending on how many waveforms i want to capture but that last i had set it to was 200ms/division.

Edit: More info, Freq is at 7540Hz, and i can get about 16 waveforms on the screen with that.
« Last Edit: June 21, 2022, 02:14:50 pm by AnarchistWolf »
 

Offline bdunham7

  • Super Contributor
  • ***
  • Posts: 8004
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #21 on: June 21, 2022, 02:22:54 pm »
Id like to acquire the waveform every second or so (If your interested what im doing is Cavity Ring Down). for hours at a time, days if possible.

Im actually quite new to lingo in scopes so i havnt heard of holdoff. As for timebase it changes depending on how many waveforms i want to capture but that last i had set it to was 200ms/division.

Edit: More info, Freq is at 7540Hz, and i can get about 16 waveforms on the screen with that.

I'll assume from your other info that you meant 200µS (microseconds) not milliseconds.  OK, so holdoff is a delay before the scope retriggers.  If you set it to 0.5s, it will not capture more than 2 screens per second.  You can find it in the trigger menu.
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 

Offline AnarchistWolfTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #22 on: June 21, 2022, 02:30:33 pm »
Okay, so i have my trigger set a freq and im reading the waveform produced by a laser pulsing and some decay time.
Again maybe i dont understand this well enough but the scope is constantly being triggered on that freq. I am not stopping it and retriggering it every waveform capture.

(Unless its just doing that automatically and again im to new to know about it.)

Thanks,
W
 

Online 2N3055

  • Super Contributor
  • ***
  • Posts: 7182
  • Country: hr
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #23 on: June 21, 2022, 02:41:13 pm »
There's no concurrency here.

Concurrency is what a scope never lacks...

What happens when the SCPI command inside the 100x loop is only "*IDN?"?

(It could be a bug, a feature and/or a buggy feature...)


When you execute *IDN? only, it doesn't have to allocate multi megabyte application buffer and adjacent stuff to TCP that to the other side...
One more thing to try is to try different sample memory size to see if it crashes faster or slower.

It smells like running out of memory to the point system is starved for resources and crash. Probably not deallocating all memory, but not happening when closing sockets might point to problem being with TCP transfer buffers..

Also a single capture-transfer cycle could be tried... But those are workarounds..

For OP use "open socket-transfer-close socket" once a second does the job though...

I would prefer to gather quality info so Siglent can easily reproduce and fix the deficiency if there is one...
« Last Edit: June 21, 2022, 02:43:42 pm by 2N3055 »
 
The following users thanked this post: AnarchistWolf

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3303
  • Country: pt
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #24 on: June 21, 2022, 02:59:13 pm »
It smells like running out of memory to the point system is starved for resources and crash. Probably not deallocating all memory, but not happening when closing sockets might point to problem being with TCP transfer buffers..

Too much vague to smell something specific. Although my nose smells concurrency.  :)

If a loop with 1 works and a loop with 100 doesn't work, how about a loop with 50, or 25, etc?

Once we get to a stable number, let's see how many times that stable number is stable. Always, failing occasionally, etc, etc?

This theme needs more info.
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #25 on: June 21, 2022, 03:09:33 pm »
Mine always succeeds. I tried it up to 200.

But the moment you close the connection that's it.

Hence pointer fun.
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #26 on: June 21, 2022, 03:11:41 pm »
I would prefer to gather quality info so Siglent can easily reproduce and fix the deficiency if there is one...

They have the info required:

1. The device that it's appearing on.
2. The software version
3. A test case that is reproducible by multiple people.

Now they need to:

1. Hook up a debugger to a scope
2. Run the same steps we have
3. Catch the crash in a debugger.
4. Work out what did it.

We can't do 3 and 4 because it's closed source.

Well we can but we can only speculate and use naughty disassembly tools and then wave our fists angrily.

Our bit is done.
 
The following users thanked this post: mnementh, 2N3055, AnarchistWolf

Offline bdunham7

  • Super Contributor
  • ***
  • Posts: 8004
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #27 on: June 21, 2022, 04:09:57 pm »
Okay, so i have my trigger set a freq and im reading the waveform produced by a laser pulsing and some decay time.
Again maybe i dont understand this well enough but the scope is constantly being triggered on that freq. I am not stopping it and retriggering it every waveform capture.

(Unless its just doing that automatically and again im to new to know about it.)

OK, I have one of these scopes so walk me through exactly how you are setting it. 

The general idea is that there is a trigger event, then the scope performs one capture (one screen worth in the case of this model).  That trigger event can be simple or complex--if you press 'trigger setup' then 'trigger type' (left-most bottom button under screen) you'll see the available types.  The default is 'Edge' and unless you've changed it, that's what you are likely using. 

 If the scope is in 'Normal' mode, it will only perform a capture when there is a trigger.  'Auto' will perform a capture after a set interval if there is no trigger event--this is useful for setting the scope up initially, but captures like you are doing should always be done in the normal mode.  After the trigger event and capture, there is a short period before the scope can get its act together and be ready for another trigger.  It will ignore any trigger events during this retrigger time.  The holdoff setting increases this retrigger time to an arbitrary value that you select.  There are several reasons for doing this and it may or may not help with your issue.
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 

Offline AnarchistWolfTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #28 on: June 21, 2022, 04:43:35 pm »
I have the trigger setting in edge-falling, it is also set to auto.

I will mess around with the normal trigger mode and holdoff delay (I appreciate the suggestion).

Ill update you once I run a few tests.

Best,
W

 

Offline AnarchistWolfTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #29 on: June 21, 2022, 05:05:20 pm »
Same problem occurs. I even set it to 500ms (Which is out of the range i need to work in). I did 50 captures and after it finished it froze the instrument.
 

Offline bdunham7

  • Super Contributor
  • ***
  • Posts: 8004
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #30 on: June 21, 2022, 05:11:22 pm »
Same problem occurs. I even set it to 500ms (Which is out of the range i need to work in). I did 50 captures and after it finished it froze the instrument.

What is out of range?  You're still using 200µs/div timebase, only with 500ms holdoff, right?  If it still freezes, then it is a software bug that is not related to scope workload.  I haven't tried your code and I won't have time/space, but since two others have confirmed it here, I suppose that is indeed the case.  The only suggestion I can think of other than reporting this to Siglent is to roll back the firmware to some earlier versions and see if they have the same issue.  I don't know how far back you can go with the firmware, I think it depends on how new the scope hardware is.
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #31 on: June 21, 2022, 05:13:49 pm »
I don’t know why workload is even being discussed.

It’s defective software. Any remote procedure call should not hose the scope regardless of what you do.
 
The following users thanked this post: mnementh

Online tautech

  • Super Contributor
  • ***
  • Posts: 29335
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #32 on: June 21, 2022, 08:57:14 pm »
Pokes tautech...  :-DD
Ouch !  Prune those fingernails please !  :-DD

You all did just fine while I slept, and thank you all for the trouble to check this out.  :clap:

Sinisa, do you have enough info to take this to Siglent or Herbie since he has 2&4ch X-E's ?

Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 
The following users thanked this post: bd139, AnarchistWolf

Online 2N3055

  • Super Contributor
  • ***
  • Posts: 7182
  • Country: hr
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #33 on: June 21, 2022, 09:47:14 pm »
Pokes tautech...  :-DD
Ouch !  Prune those fingernails please !  :-DD

You all did just fine while I slept, and thank you all for the trouble to check this out.  :clap:

Sinisa, do you have enough info to take this to Siglent or Herbie since he has 2&4ch X-E's ?

Yeah I think so..
BD139 is right, there is enough info to confirm something is fishy and to start investigation...
 
The following users thanked this post: tautech, bd139, AnarchistWolf

Online tautech

  • Super Contributor
  • ***
  • Posts: 29335
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #34 on: June 22, 2022, 10:20:44 am »
Pokes tautech...  :-DD
Ouch !  Prune those fingernails please !  :-DD

You all did just fine while I slept, and thank you all for the trouble to check this out.  :clap:

Sinisa, do you have enough info to take this to Siglent or Herbie since he has 2&4ch X-E's ?

Yeah I think so..
BD139 is right, there is enough info to confirm something is fishy and to start investigation...
It's done !  :clap:

@AnarchistWolf
I have a beta FW for you to try and report back with your findings, please PM me with your email address.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 
The following users thanked this post: rf-loop, bd139

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #35 on: June 22, 2022, 10:27:48 am »
That’s pretty awesome. Fingers crossed  :-+
 

Online 2N3055

  • Super Contributor
  • ***
  • Posts: 7182
  • Country: hr
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #36 on: June 22, 2022, 10:39:39 am »
Pokes tautech...  :-DD
Ouch !  Prune those fingernails please !  :-DD

You all did just fine while I slept, and thank you all for the trouble to check this out.  :clap:

Sinisa, do you have enough info to take this to Siglent or Herbie since he has 2&4ch X-E's ?

Yeah I think so..
BD139 is right, there is enough info to confirm something is fishy and to start investigation...
It's done !  :clap:

@AnarchistWolf
I have a beta FW for you to try and report back with your findings, please PM me with your email address.

That was damn fast even for you...  :-+
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29335
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #37 on: June 22, 2022, 10:49:17 am »
Pokes tautech...  :-DD
Ouch !  Prune those fingernails please !  :-DD

You all did just fine while I slept, and thank you all for the trouble to check this out.  :clap:

Sinisa, do you have enough info to take this to Siglent or Herbie since he has 2&4ch X-E's ?

Yeah I think so..
BD139 is right, there is enough info to confirm something is fishy and to start investigation...
It's done !  :clap:

@AnarchistWolf
I have a beta FW for you to try and report back with your findings, please PM me with your email address.

That was damn fast even for you...  :-+
Well Siglent were watching all along it seems..... as I did nuthing !  :-+
That’s pretty awesome. Fingers crossed  :-+
Yep, but don't worry I reminded them who did a lot of the work and they had a SDS1202X-E which requires the exact same fix !   :horse:

This is what dropped into our Inbox
Socket communication problem
We found a TCP socket communication problem discussion in below link of EEVblog
https://www.eevblog.com/forum/testgear/sds1204x-e-scope-freezing-when-collecting-waveform/

It maybe a bug for the socket. If we analyze correct, it will be solved in the new firmware.
Please send the attachment firmware to the customer. And feedback to me the result.


That's just gotta give you the smileys.  ;D
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 
The following users thanked this post: rf-loop, Performa01, tv84, mnementh

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3303
  • Country: pt
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #38 on: June 22, 2022, 11:07:06 am »
This is what dropped into our Inbox
Socket communication problem
We found a TCP socket communication problem discussion in below link of EEVblog
https://www.eevblog.com/forum/testgear/sds1204x-e-scope-freezing-when-collecting-waveform/

It maybe a bug for the socket. If we analyze correct, it will be solved in the new firmware.
Please send the attachment firmware to the customer. And feedback to me the result.


That's just gotta give you the smileys.  ;D

Siglent 1 - 0 A Brands
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #39 on: June 22, 2022, 11:56:51 am »
Will make sure we post this on the Keysight thread  :-DD
 
The following users thanked this post: tautech, mnementh, 2N3055, derree

Offline AnarchistWolfTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #40 on: June 22, 2022, 01:33:46 pm »
I just got on (Stayed up till 3am trying to get some stupid code to work) so i apologize that i am late to the party  :palm:

But thats great! hopefully it fixes all my problems and my broken relationship (JK).

Thankyou all that helped and gave this post viability.

Best,
W
 

Offline Caliaxy

  • Frequent Contributor
  • **
  • Posts: 301
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #41 on: June 22, 2022, 02:52:02 pm »
Will make sure we post this on the Keysight thread  :-DD

Why? Releasing equipment with multiple bugs fixed through multiple firmware updates is not something their target customers envy >:D

Siglent’s response time is impressive though. They work really hard to win our hearts and minds ;D
 
The following users thanked this post: mnementh, bd139

Online 2N3055

  • Super Contributor
  • ***
  • Posts: 7182
  • Country: hr
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #42 on: June 22, 2022, 06:18:02 pm »
Will make sure we post this on the Keysight thread  :-DD

Why? Releasing equipment with multiple bugs fixed through multiple firmware updates is not something their target customers envy >:D

Siglent’s response time is impressive though. They work really hard to win our hearts and minds ;D

If you think Keysight has no bugs you are sorely mistaken.

I found a bug in MSOX3000T network stack where certain series of Internet routers would respond to scope with some weird packet during DHCP process where scope was trying to get IPv6 address while router had IPv6 protocol disabled.
Instead of scope ignoring it and not configuring IPv6, scope configured network stack into some weird state that it would hard reset the scope when trying communicate over network.
First time it happened it looked like something was wrong with memory on mainboard and that scope is done...
Response from Keysight was that they know the problem and they couldn't be bothered to fix it, or even to put in a config option to disable IPv6 for people that don't use it (99% or people on internal networks).

"
The lab team will look into if it’s technically feasible to add an option to Disable IPv6 on the scope, however it’s not a priority and will most likely not happen.
As far as how to proceed, we appreciate Your offer to capture router-scope traffic, however since our  labs team are busy with other priorities, we won’t be pursuing this further at this time. 
"

So yeah, Keysight has bugs and they are fixing them when it is their priority.. My fix was that I had to buy a separate router and add it to the network... Scope bug is still there.

Releasing equipment with multiple bugs fixed through multiple firmware updates is exactly what Keysight and R&S  and othe A brands do, like many others today...
The firmware release document for 3000T is 18 pages long... Read it to see how many bugs were there and how long it took to fix them.
In everybody's defence, scopes are so complicated today and they cannot have time to market of 10 years..

What matters is that bugs are fixed. And A tier manufacturers are not that perfect in that as many think.. At least not if you are not on multi million contract with them...

OTOH, on other occasion I mentioned that MSO 3000T was missing pulse count measurement on digital channels (it had it only on analog ones) and they added that measurement on next firmware (some 10 months later, when they pushed it for some other reason)...
So Keysight are not bad but far from perfect.

OTOH I find Siglent's effort to be first class and they are working harder than anybody else including many A brands...
« Last Edit: June 22, 2022, 06:26:13 pm by 2N3055 »
 
The following users thanked this post: mnementh, bd139

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #43 on: June 22, 2022, 06:39:45 pm »
I worked through a bug with HP back in the day. They were excellent.

Looks like Agilent kept the HP way…
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29335
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #44 on: June 22, 2022, 08:46:34 pm »
I just got on (Stayed up till 3am trying to get some stupid code to work) so i apologize that i am late to the party  :palm:

But thats great! hopefully it fixes all my problems and my broken relationship (JK).

Thankyou all that helped and gave this post viability.

Best,
W
Just dragged my sorry butt outta the scratcher and sent you the rather large beta FW file and at 9MB could take a bit to reach you.
Please remember to pop us some feedback about it.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 
The following users thanked this post: AnarchistWolf

Online nctnico

  • Super Contributor
  • ***
  • Posts: 27808
  • Country: nl
    • NCT Developments
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #45 on: June 22, 2022, 09:46:48 pm »
This is what dropped into our Inbox
Socket communication problem
We found a TCP socket communication problem discussion in below link of EEVblog
https://www.eevblog.com/forum/testgear/sds1204x-e-scope-freezing-when-collecting-waveform/

It maybe a bug for the socket. If we analyze correct, it will be solved in the new firmware.
Please send the attachment firmware to the customer. And feedback to me the result.


That's just gotta give you the smileys.  ;D

Siglent 1 - 0 A Brands
No. It would surprise me if a bug like this would escape testing in a product from an A brand. After all testing remote operation can be automated very easely. There is no reason to cheer about a beta firmware that is thrown over the hedge for a customer to test as well. It would be better to take a few days and make sure the bug is fixed without any regressions instead of using a customer as a firmware tester. If you look closely you'll notice that A brands are very reluctant to release beta firmware; they want released firmware to go through thourough testing.
« Last Edit: June 22, 2022, 09:48:31 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23093
  • Country: gb
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #46 on: June 22, 2022, 10:02:59 pm »
This is what dropped into our Inbox
Socket communication problem
We found a TCP socket communication problem discussion in below link of EEVblog
https://www.eevblog.com/forum/testgear/sds1204x-e-scope-freezing-when-collecting-waveform/

It maybe a bug for the socket. If we analyze correct, it will be solved in the new firmware.
Please send the attachment firmware to the customer. And feedback to me the result.


That's just gotta give you the smileys.  ;D

Siglent 1 - 0 A Brands
No. It would surprise me if a bug like this would escape testing in a product from an A brand. After all testing remote operation can be automated very easely. There is no reason to cheer about a beta firmware that is thrown over the hedge for a customer to test as well. It would be better to take a few days and make sure the bug is fixed without any regressions instead of using a customer as a firmware tester. If you look closely you'll notice that A brands are very reluctant to release beta firmware; they want released firmware to go through thourough testing.


I spent plenty of time doing test automation with A brand test gear. It was buggy as hell and difficult if not impossible to get fixed as half the firmware was in ROM. We’re talking 12 month turnaround.

Also there’s nothing to suggest this won’t have gone through full regression testing before general release. But on step one you always get the issue mitigated.

The turnaround here is commendable on all levels. .
« Last Edit: June 22, 2022, 10:04:46 pm by bd139 »
 
The following users thanked this post: Performa01, mnementh, 2N3055, AnarchistWolf

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3303
  • Country: pt
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #47 on: June 23, 2022, 09:19:52 am »
No. It would surprise me if a bug like this would escape testing in a product from an A brand. After all testing remote operation can be automated very easely. There is no reason to cheer about a beta firmware that is thrown over the hedge for a customer to test as well. It would be better to take a few days and make sure the bug is fixed without any regressions instead of using a customer as a firmware tester. If you look closely you'll notice that A brands are very reluctant to release beta firmware; they want released firmware to go through thourough testing.

The software was not "thrown over the hedge for a customer to test as well". AFAIK the software was provided specifically to that customer since he was the one who reported the problem and is in a better position to finally check if that solves his problem (like any other betatester).

They could have find an issue BUT that doesn't mean it solved the whole client problem. So why issue a patch only in a next release, tested only by what Siglent QA was able to test, and find out that it didn't yet solve the whole original problem?

This action is perfectly correct IMO.

No QA department will be able to replicate all the cases a equipment can be used by its customers. You sure know that very well.
 
The following users thanked this post: Performa01, 2N3055, bd139, AnarchistWolf

Online 2N3055

  • Super Contributor
  • ***
  • Posts: 7182
  • Country: hr
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #48 on: June 23, 2022, 09:53:24 am »
No. It would surprise me if a bug like this would escape testing in a product from an A brand. After all testing remote operation can be automated very easely. There is no reason to cheer about a beta firmware that is thrown over the hedge for a customer to test as well. It would be better to take a few days and make sure the bug is fixed without any regressions instead of using a customer as a firmware tester. If you look closely you'll notice that A brands are very reluctant to release beta firmware; they want released firmware to go through thourough testing.

The software was not "thrown over the hedge for a customer to test as well". AFAIK the software was provided specifically to that customer since he was the one who reported the problem and is in a better position to finally check if that solves his problem (like any other betatester).

They could have find an issue BUT that doesn't mean it solved the whole client problem. So why issue a patch only in a next release, tested only by what Siglent QA was able to test, and find out that it didn't yet solve the whole original problem?

This action is perfectly correct IMO.

No QA department will be able to replicate all the cases a equipment can be used by its customers. You sure know that very well.

@TV84, exactly...
The way I understood, a debug FW was sent to customer to verify exact problem. FW with a fix will be published for general use after proper regression testing is done. That is exactly what Keysight (for instance) would do...
 
The following users thanked this post: Performa01, mnementh, bd139, robert.rozee, AnarchistWolf

Offline MathWizard

  • Super Contributor
  • ***
  • Posts: 1604
  • Country: ca
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #49 on: January 23, 2023, 07:54:11 pm »
I have the hacked SDS1104x-e, and I have old BIOS, (TT did link me the bios before)

Yesterday I had 2 freeze ups, that required (I guess) a reboot. I've had them before, but not in ages (but I haven't used it much this last year)

While using 2 channels, on 500us /div, and the 700k or next highest memory depth

I also had the wifi dongle in, talking to my modem, which talks to my PC, and I use firefox to look at the scope. The firefox page updates pretty slow, and always stops and lags for a moment, a lot more than the scope sometimes does as it refreshes the screen.

I usually always have the wifi on when running, but I don't usually have the web interface running unless I want a screenshot.
« Last Edit: January 23, 2023, 07:57:57 pm by MathWizard »
 

Offline BillyO

  • Super Contributor
  • ***
  • Posts: 1657
  • Country: ca
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #50 on: January 23, 2023, 08:20:41 pm »
I have the hacked SDS1104x-e, and I have old BIOS, (TT did link me the bios before)
Then please upgrade your firmware.
Bill  (Currently a Siglent fanboy)
--------------------------------------------------
 

Offline PatrickB

  • Contributor
  • Posts: 48
  • Country: fr
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #51 on: January 24, 2023, 04:57:39 pm »
@AnarchistWolf, for your information, I also capture the screens of my SDS1204X-E, not hacked and with the latest software version (R9), every second with a USB connection. The longest capture lasted around 30 minutes and the screen never froze.
Previously I had a DS1102Z-E that I do not regret...
Have you tried the scope's built-in web server? the capture frequency is very high.
 

Offline AnarchistWolfTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: SDS1204X-E scope freezing when collecting waveform
« Reply #52 on: February 01, 2023, 06:15:58 am »
I have seen the webserver but we have a python script running that queries the scope for the waveform (70k points) and then we do data processing (long time so im sorry if ive said this already). We want to query the scope every 1-2 seconds if possible.

So far I havnt run into too many problems with the scope recently, but I have scaled back the query times.

Best,
W
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf