Author Topic: EEVBlog 121GW Programming support?  (Read 1397 times)

0 Members and 1 Guest are viewing this topic.

Offline Decee1

  • Contributor
  • Posts: 14
  • Country: dk
EEVBlog 121GW Programming support?
« on: December 11, 2017, 04:59:12 am »
Hello fellow nerds

I've backed up the 121GW so hopefully i will receive an 121GW next year. But while waiting it got me wondering about programming capability.
Is there any described way to do example Visa Read functions for making Python scripts using PyVisa. Could be really handy to have!
Maybe i'll make a lib. for Python when i get my unit. Didn't realize it existed until a few days ago so it might take awhile. Anyways hopefully anyone or the man himself knows the answer.


Update:
Python support for measuring using Bluetooth -> On Windows <- is on it's way and is really close to be ready for usage. I will keep giving small updates on it. Github is private until now but will release a first version soon

Thanks,
Stefan
« Last Edit: March 28, 2019, 10:48:46 pm by Decee1 »
Stefan
Electrical Technician student - RTX A/S - Denmark
 

Offline joeqsmith

  • Super Contributor
  • ***
  • Posts: 5241
  • Country: us
Re: EEVBlog 121GW Programming support?
« Reply #1 on: December 11, 2017, 05:21:38 am »
I would be very interested in support for LabVIEW as well.   An open API or at least well documented one would be great.   
How electrically robust is your meter?? https://www.youtube.com/channel/UCsK99WXk9VhcghnAauTBsbg
 
The following users thanked this post: Marco1971

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 643
  • Country: gb
Re: EEVBlog 121GW Programming support?
« Reply #2 on: December 11, 2017, 05:25:45 am »
You don't actually need bloated VISA for creating simple little apps to talk to an LXI device. For example:

https://www.eevblog.com/forum/testgear/bench-psu-remote-control-application-for-tti-pl-p-series-(winlinuxmac)/

Edit: Heads up: This is just a little python GUI app that talks to a TTi LXI PSU over ethernet without using pyVISA. It could easily be modded for USB/Serial.
« Last Edit: December 11, 2017, 06:18:34 am by voltsandjolts »
 

Offline Decee1

  • Contributor
  • Posts: 14
  • Country: dk
Re: EEVBlog 121GW Programming support?
« Reply #3 on: December 11, 2017, 05:29:27 am »
The problem with that is it won't work with python. The smart idea is creating automatic Python scripts to automatically measure and writing things into an Excel document which was what i've done, then i've made one that gives you an Frequency response of an audio amplifier and a few others. Really useful for automatic testing
Stefan
Electrical Technician student - RTX A/S - Denmark
 

Offline Decee1

  • Contributor
  • Posts: 14
  • Country: dk
Re: EEVBlog 121GW Programming support?
« Reply #4 on: December 11, 2017, 05:31:16 am »
Haha amazing to see you here, saw you testing the meter today,
It must be possible as the Android app is already on it's way and also on the Play Store already so it shouldn't that hard making.
Stefan
Electrical Technician student - RTX A/S - Denmark
 

Offline ChunkyPastaSauce

  • Supporter
  • ****
  • Posts: 500
  • Country: us
Re: EEVBlog 121GW Programming support?
« Reply #5 on: December 11, 2017, 05:32:34 am »
For bluetooth interface code see https://gitlab.com/Sepps/app-121gw
 

Offline Decee1

  • Contributor
  • Posts: 14
  • Country: dk
Re: EEVBlog 121GW Programming support?
« Reply #6 on: September 18, 2018, 04:48:59 am »
Hello out there
So has anyone had any success? I thought of getting it to work as i now got myself a meter yet there is one little problem.. Which is how to do it
I am using windows which means no bluez(the Python low power Bluetooth lib) because it is not supported in Windows and i don't want to sit down playing around in Linux where i don't want to use it in anyways
So. I installed pygatt which is supported
I currently got 2 lines of code..
import pygatt
device = pygatt.BLEDevice("XXXXXXXXXXX")

What is next? How do i know the commands and everything i need to send? I have never played around with bluetooth..
Is there like a programming documentation list for the 121GW? Or are we just sitting here waiting for it?
Stefan
Electrical Technician student - RTX A/S - Denmark
 

Offline Decee1

  • Contributor
  • Posts: 14
  • Country: dk
Re: EEVBlog 121GW Programming support?
« Reply #7 on: September 25, 2018, 08:16:09 pm »
I thought i would throw out an update on the Python support
I found an app on Windows called "Bluetooth LE explorer" that Microsoft has developed which was able to receive the data
And then i found the documentation about the bits that are sent: https://www.eevblog.com/wp-content/plugins/download-attachments/includes/download.php?id=13664
Now i only got a single problem which is what Bluetooth library that supports Bluetooth Low Power for Python. If anyone can provide a plugin that can receive the data i would be really close to release a Python supported library for the EEVBlog 121GW!
Stefan
Electrical Technician student - RTX A/S - Denmark
 

Offline Decee1

  • Contributor
  • Posts: 14
  • Country: dk
Re: EEVBlog 121GW Programming support?
« Reply #8 on: March 25, 2019, 09:40:50 pm »
Status update..

I am currently working with creator of Python Bleak library to make it support work with the 121GW. Status is it can connect to the meter, read it's name but not receive the values.
I am hoping that soon i am able to deliver some Windows support for the 121GW. Apperently it is too easy on Linux.. Refer to "121GW bluetooth protocol"
I am also working on creating a very simple script that just reads a single measurement on Linux and returning it in volts on Linux, something tells me i get that one done before the Windows support..

Link to library: https://github.com/hbldh/bleak
Stefan
Electrical Technician student - RTX A/S - Denmark
 

Offline joeqsmith

  • Super Contributor
  • ***
  • Posts: 5241
  • Country: us
Re: EEVBlog 121GW Programming support?
« Reply #9 on: March 25, 2019, 10:10:42 pm »
I did get Labview working with the 121GW.  A few growing pains.   I'm not real impressed with their sending out a 1 byte BT message.  The communications was slow.  Maybe they will improve it as part of the next version of the hardware.   

How electrically robust is your meter?? https://www.youtube.com/channel/UCsK99WXk9VhcghnAauTBsbg
 

Offline Decee1

  • Contributor
  • Posts: 14
  • Country: dk
Re: EEVBlog 121GW Programming support?
« Reply #10 on: March 25, 2019, 10:14:28 pm »
Awesome, was actually reading your posts on "121gw bluetooth protocol" just a few minutes ago. Annoys me how easy this is using Linux. I have even considered creating a simple program that just passes it though a Linux machine and then sends it back to my Windows pc. It is almost easier than programming it to windows.. What a pain in the butt..
Stefan
Electrical Technician student - RTX A/S - Denmark
 

Offline joeqsmith

  • Super Contributor
  • ***
  • Posts: 5241
  • Country: us
Re: EEVBlog 121GW Programming support?
« Reply #11 on: March 25, 2019, 10:47:08 pm »
Awesome, was actually reading your posts on "121gw bluetooth protocol" just a few minutes ago. Annoys me how easy this is using Linux. I have even considered creating a simple program that just passes it though a Linux machine and then sends it back to my Windows pc. It is almost easier than programming it to windows.. What a pain in the butt..

I had made a BIG mistake when I was posting that information. I had discovered what I thought was a bug with the communications and it turned out to be on my end of things.   I may have removed some of those posts to avoid confusion and wanting to clean things up a bit to help Dave.   So if you find references to problems, in the end the only real problems I see are the ones I mentioned in that video.   

They did make the Windows source available but I really wanted to use Labview.   I am far too lazy to use anything else.   

Looking forward to seeing what you come up with. 
How electrically robust is your meter?? https://www.youtube.com/channel/UCsK99WXk9VhcghnAauTBsbg
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 28378
  • Country: au
    • EEVblog
Re: EEVBlog 121GW Programming support?
« Reply #12 on: March 25, 2019, 11:05:25 pm »
For those interested the 121GW is supported by Sigrock

https://sigrok.org/wiki/EEVBlog_121GW
 

Offline Decee1

  • Contributor
  • Posts: 14
  • Country: dk
Re: EEVBlog 121GW Programming support?
« Reply #13 on: March 25, 2019, 11:55:55 pm »
Awesome, was actually reading your posts on "121gw bluetooth protocol" just a few minutes ago. Annoys me how easy this is using Linux. I have even considered creating a simple program that just passes it though a Linux machine and then sends it back to my Windows pc. It is almost easier than programming it to windows.. What a pain in the butt..

I had made a BIG mistake when I was posting that information. I had discovered what I thought was a bug with the communications and it turned out to be on my end of things.   I may have removed some of those posts to avoid confusion and wanting to clean things up a bit to help Dave.   So if you find references to problems, in the end the only real problems I see are the ones I mentioned in that video.   

They did make the Windows source available but I really wanted to use Labview.   I am far too lazy to use anything else.   

Looking forward to seeing what you come up with.

I know the feeling. I am just beginning to understand all this wireless stuff so trying to sit down and program some application that just receives x amount of bytes is hard
The Bleak library for Python is actually really simple to use.. But as it doesn't support indicate which is the protocol The 121GW uses it requires me to sit down and understand the code he wrote which he also told me is a waste of time BUT i don't see any other way to learn it :P
Stefan
Electrical Technician student - RTX A/S - Denmark
 

Offline Decee1

  • Contributor
  • Posts: 14
  • Country: dk
Re: EEVBlog 121GW Programming support?
« Reply #14 on: March 28, 2019, 10:41:40 pm »
Small status update: I am now receiving Data on Windows, and is almost done with the decoder of the received data!
There is a bit of work to do with the data that i am receiving, example making it faster than it is currently which will be done at some point because it takes too long to sample a voltage, a goal is to be able to samples in less than 1 second
Stefan
Electrical Technician student - RTX A/S - Denmark
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf