Page 10 of 10

Re: Software to capture and plot with the new firmwares

Posted: Mon Jan 22, 2018 10:35 am
by robocog
The pressing of the buttons to start data transfer is built into the DSO shell.
It will send data even if not connected to the pc or the software
I do not know if the firmware has a function where if you send it a certain data into the unit it will send the data out.
My software is only read from serial, it does not send anything to the unit at all.
So unless jye tell me it is possible to send characters to the unit and what they are we will have to hold down the 2 buttons.

Gnuplot does not need to be installed and the software will still work, the gnuplot files will still be created, so you can email or send them to a pc with gnuplot installed
Even your phone or tablet I guess

Regards
Rob

Re: Software to capture and plot with the new firmwares

Posted: Mon Jan 29, 2018 5:20 pm
by RobNL
The BT-plots are on the server http://www.bucket.gompy.net/dso150

This is the open shellbox Image

Re: Software to capture and plot with the new firmwares

Posted: Mon Jan 29, 2018 8:18 pm
by robocog
Looking good
Serial grabs working OK with your BT module?
Have you tried firmware flash via BT?
(I couldn't get the flash working, but then only tired it a couple of times and didn't spend too much time trying to see why - as it works fine over usb/cp2102)

I did write another Python app to open a couple of gnuplots, but with the tk libraries it used it swelled and bloated in size way beyond its use (was about 20 meg!)
Much easier to just open the .plt file and manually add the one you want by adding a line similar to this under the last plot

replot "'file_you_want_to _plot.txt'" using 2:3 with lines

The python app- just made it all pointy clicky
Regards
Rob

Re: Software to capture and plot with the new firmwares

Posted: Mon Jan 29, 2018 8:28 pm
by RobNL
This evening I just finish to build and try.
Anything must be into the shell and with the small switches it was no problem.
On/off I'll do with a paprclip, I use BT and not the USB2TTL to plot.
Plot is for me more important then flash and the plot just it is is great !
And how many times you will flash.....I think version 112 is stabile enough.

Re: Software to capture and plot with the new firmwares

Posted: Mon Jan 29, 2018 10:17 pm
by RobNL
BTW, the only problem with the BT is that the shell don't give / recognize AT commands for return.
Your program only ask, but the shell don't anwser with AT commands, it given only the datastream on the port.

Re: Software to capture and plot with the new firmwares

Posted: Sun Feb 04, 2018 5:53 am
by Rudolf
I am sorry for beeing late, but I was not aware that the waveform capture software version was already published from JYETech.
I have updated my waverform capture software in Python and updated my web page:
http://www.rudiswiki.de/wiki9/JyeTechDS ... -15001-111

The plot contains now also the measured and calculated waveform data.

I have also posted the content in Github, for using the issue tracker:
The files: https://github.com/rudi48/dso150-110-plot
and the description: https://github.com/rudi48/dso150-110-plot/wiki

If there are any questions, feel free to ask :)

Regards, Rudolf

Re: Software to capture and plot with the new firmwares

Posted: Mon Feb 12, 2018 6:41 pm
by robocog
Nice one Rudolf
It was your code that inspired me to try and write a version for the newer firmware
(never used Python or programmed before ...so it has been a challenge)

I used py2exe to make it happen for Windows users that don't want to install Python or worry about libraries
Have put the python code on my server (if you are interested...you get a mention as the inspiration in the code :D )
direct link to the code - http://www.robocog.co.uk/electronics/ds ... on1.7.4.py
Or it is shown on the webpage now
http://www.robocog.co.uk/electronics/dso150
(had to use pastebin as I haven't yet sussed out how to show it without breaking the formatting on my own server)

Regards
Rob

Re: Software to capture and plot with the new firmwares

Posted: Mon Feb 12, 2018 7:00 pm
by Rudolf
Hello Rob,

Thank you very much for your feedback.
For a Python beginner your program looks very good. :)

It is nice that you mentioned me.

I am working mostly on MacOS and Linux, therefore I did not put too much effort in the Windows version.

If you have any idea how to place better the measured data in the graph, please let me know.

Regards, Rudolf

Re: Software to capture and plot with the new firmwares

Posted: Mon Nov 26, 2018 10:09 pm
by fr08
So a little while back I assembled my DSO150 scope. When I learned about the possibility to send data to PC I wanted to try it, so I bought a USB-UART converter board and installed it in the DSO150. I followed this guide: http://www.rudiswiki.de/wiki9/JyeTechDS ... ualization

I followed the instructions under "Windows use" in the rudiswiki9 guide, trying to get it working on my desktop with Win 10. I have Python 3.7.1 installed and I used "pip install pyserial" to install the serial library. The script is downloaded, GNUplot is installed, I've set the correct COM port number in the script. However when I run the .bat file it seems like the script isn't run at all. When I run the .bat file, a terminal window pops up for a split second, showing only the contents of the .bat file line by line:

Code: Select all

C:\Users\xxxxx\Desktop\DSO150>REM DSO read out and plot

C:\Users\xxxxx\Desktop\DSO150>REM 2018-07-21

C:\Users\xxxxx\Desktop\DSO150>python dso150-110-plot.py -dp
Then the terminal window immediately closes and nothing more happens.

I'm not very good at programming, so I can't see what's causing this. Is there a step missing from the instructions? Or is there anything else which causes the script not to run when I run the .bat file?

Re: Software to capture and plot with the new firmwares

Posted: Tue Dec 18, 2018 10:09 pm
by shop
I think that it would be somehow not very hard to implement DSO shell in my PC Scope app.
As I understand:
- in order to get data in serial port there is need to manually push some buttons combination. After that buffer in serial port will be filled with some data (in which format? ascii?),
- that data contains already scaled full buffer data and also current device parameters
So you can create new JyeScope object that will implement IScope interface:
- trace will be automatically updated after receiving new data in buffer (because my app constantly read serial buffer) (of course there will be need to somehow wrap received data to already existing data types but this shouldn't be a tough problem)
- all cursor measurements and other stuff will be available (and also trigger level if its value is in data buffer)
- all parameters can be marked as read only
Only thing that need to be done to accomplish this is to create new DSOShell class in DSO library that will implement IScope interface.
I am curious if this scope reponds to any serial data commands, for example if it send its name or something after sending some specific or any kind of data to serial port.
More info about IScope interface and PCScope app is here:
https://github.com/nrmtmt/DSO/wiki
https://github.com/nrmtmt/PC_Scope