Page 3 of 4

Re: DSO112A serial interface docs?

Posted: Fri Jul 29, 2016 6:35 pm
by mwm
Before sending a "Connect" frame to start capturing data, I always send a "Set parameters" frame that updates the values on the scope to whatever the user has set them to in sigrok.

If the scope is set to 20ms originally, it works fine. Until I try to change the timebase to 50ms or larger. I don't get a confirmation back from the set parameters frame, but the timebase does change. So do other settings. My code sends a Disconnect frame after that failure (forcing the scope to be in the mode I think it's in if the confirmation got lost), and I don't get a confirmation from that either.

If the scope is set to 50ms originally, it doesn't send back the confirmation for the "Set parameters" frame, even if I change the timebase to 20ms in that frame. It doesn't change the timebase or other settings, so it may be losing the frame completely. And I get the same behavior for the Disconnect frame.

On the issue with glitches, I'm starting to think that's in the scope. After receiving a frame (always a large one at this point), it looks like I get back a NULL byte before the first sync, try the read again immediately, and there's a delay of .2 seconds before I get the 0xFE byte. I've still got some checking to do, but thought I'd mention it in case you get to the code before I do. I'll update here when I get the testing done.

Finally, an unrelated reqeust: any chance of getting the DSO062's "output trigger" option on the 112A? I'm wanting a second scope if I can get that feature, and it seems like the DSO068 doesn't have it, so adding it to the 112A would let me go with the 068, which I'd really rather have.

Re: DSO112A serial interface docs?

Posted: Fri Jul 29, 2016 11:36 pm
by mwm
Ok, here's the update. I'm pretty sure there's at least one bug in the DSO112A serial interface code that generates frame ID 0xC0 data type 0x32 (the frame that holds blocks of samples of capture datas).

The length in the frame appears to be short by one. The same code that deals correctly with every other frame type needs to read one extra byte after reading that frame, which isn't required for the others. But even after correcting for that, I get a glitch in the data after every frame:
Ramp.png
If there's one bug, I suspect there's another.

While I'm at it, the documentation for the "special command" frame is wrong. It gives the lenghth field as 6 bytes, but there are 7 bytes in the frame. It certainly works for me if I set it to 7.

Re: DSO112A serial interface docs?

Posted: Thu Aug 04, 2016 11:02 pm
by mwm
I think I've figured out the delay issue, but I'm not sure. Since the DSO is sending a frame, there should be a delay after each frame while it waits for the trigger for the next frame. But that delay is a bit longer than I'd expect. Possibly I just don't understand why it's as long as it is.

Re: DSO112A serial interface docs?

Posted: Fri Aug 05, 2016 10:22 pm
by jye1
Sorry I will get back to this topic a little later since I need a quite time to concentrate to it. I'm still on travelling.

Re: DSO112A serial interface docs?

Posted: Fri Aug 26, 2016 8:24 pm
by mwm
Any news on this? I can't really provide a pull request for the driver if there is no released software that works with it.

Re: DSO112A serial interface docs?

Posted: Fri Dec 09, 2016 8:00 pm
by saviosaltamontes
can someone tell me what is the latest firmware for the DSO112A? Where is located? I looked at the JYE website they only mention first release of the firmware 113-11201-200.

Re: DSO112A serial interface docs?

Posted: Thu Mar 29, 2018 8:27 am
by stromfo
When I try to open the zip file with FW
C:\Users\Steinar\Downloads\113-11201-215.rar: Corrupt header is found
C:\Users\Steinar\Downloads\113-11201-215.rar: Main archive header is corrupt
C:\Users\Steinar\Downloads\113-11201-215.rar: Corrupt header is found
C:\Users\Steinar\Downloads\113-11201-215.rar: Main archive header is corrupt
C:\Users\Steinar\Downloads\113-11201-215.rar: The archive is either in unknown format or damaged
C:\Users\Steinar\Downloads\113-11201-215.rar: Corrupt header is found
C:\Users\Steinar\Downloads\113-11201-215.rar: Main archive header is corrupt
C:\Users\Steinar\Downloads\113-11201-215.rar: The archive is either in unknown format or damaged
C:\Users\Steinar\Downloads\113-11201-215.rar: Corrupt header is found
C:\Users\Steinar\Downloads\113-11201-215.rar: Main archive header is corrupt
C:\Users\Steinar\Downloads\113-11201-215.rar: The archive is either in unknown format or damaged

Re: DSO112A serial interface docs?

Posted: Thu Mar 29, 2018 8:28 am
by stromfo
When I try to open the zip file with FW 113-11201-21 I got these errors:

C:\Users\Steinar\Downloads\113-11201-215.rar: Corrupt header is found
C:\Users\Steinar\Downloads\113-11201-215.rar: Main archive header is corrupt
C:\Users\Steinar\Downloads\113-11201-215.rar: Corrupt header is found
C:\Users\Steinar\Downloads\113-11201-215.rar: Main archive header is corrupt
C:\Users\Steinar\Downloads\113-11201-215.rar: The archive is either in unknown format or damaged
C:\Users\Steinar\Downloads\113-11201-215.rar: Corrupt header is found
C:\Users\Steinar\Downloads\113-11201-215.rar: Main archive header is corrupt
C:\Users\Steinar\Downloads\113-11201-215.rar: The archive is either in unknown format or damaged
C:\Users\Steinar\Downloads\113-11201-215.rar: Corrupt header is found
C:\Users\Steinar\Downloads\113-11201-215.rar: Main archive header is corrupt
C:\Users\Steinar\Downloads\113-11201-215.rar: The archive is either in unknown format or damaged

Can you try to upload it again?

Re: DSO112A serial interface docs?

Posted: Thu Mar 29, 2018 8:47 am
by jye1
Please see the file attached.
113-11201-215.rar
(47.47 KiB) Downloaded 984 times

Re: DSO112A serial interface docs?

Posted: Thu Mar 29, 2018 6:31 pm
by stromfo
That worked. Thanks :D