Poll

What OS platform would you like to see lxi-tools ported to next?

Windows
macOS
Other
Don't port it - Linux is the future for all!

Author Topic: Open source lxi-tools and liblxi v1.0 released for GNU/Linux  (Read 20323 times)

0 Members and 3 Guests are viewing this topic.

Offline N0NB

  • Contributor
  • Posts: 25
  • Country: us
  • Amateur radio op; electronics dabbler
    • N0NB.us
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #275 on: March 21, 2018, 04:23:18 am »
I double checked and the configure script is properly finding the avahi headers and that liblxi and lxi are linked to the avahi libraries on both the desktop and the VM.  As both the desktop and VM have the same version of avahi and other libraries installed, the only difference is that the avahi daemon is running on the desktop and not running in the VM.

Here is the output from lxi discover on the desktop:

Code: [Select]
$ lxi discover
Searching for LXI devices - please wait...

Broadcasting on interface lo
Broadcasting on interface eth0

No devices found

Code: [Select]
$ lxi discover -m
Searching for LXI devices - please wait...

No services found


And the same as run in the VM:

Code: [Select]
$ lxi discover
Searching for LXI devices - please wait...

Broadcasting on interface lo
Broadcasting on interface eth0
  Found "Siglent Technologies,SDS1202X-E,SDS1EBBXXXXXXX,5.1.3.13" on address 192.168.X.X

Found 1 device

Code: [Select]
$ lxi discover -m
Searching for LXI devices - please wait...

Error: Failed to create client: Daemon not running
No services found


Obviously lxi does not find the avahi daemon in the VM but raises no such complaint on the desktop.

I am puzzled that even when the -m is not used, lxi cannot discover the 'scope.

I need to do some more studying of Wireshark to try and isolate any network traffic from lxi as my network interface is too busy to catch any lxi traffic just by watching it scroll by.
- Nate

The optimist proclaims we live in the best of all possible worlds.  The pessimist fears this is true.
 

Offline lundmar

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #276 on: March 21, 2018, 04:31:16 am »
Code: [Select]
$ lxi discover -m
Searching for LXI devices - please wait...

Error: Failed to create client: Daemon not running
No services found

Obviously lxi does not find the avahi daemon in the VM but raises no such complaint on the desktop.

Have you tried starting/restarting the avahi daemon manually before calling lxi?
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple TTY terminal I/O application
http://dc-power-supply.github.io - OSHW DC power supply project
 

Offline N0NB

  • Contributor
  • Posts: 25
  • Country: us
  • Amateur radio op; electronics dabbler
    • N0NB.us
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #277 on: March 21, 2018, 05:25:11 am »
False alarm.  It looks like a firewall rule is blocking the reply from the 'scope.   :palm:

I thought I had looked in the logs a few days ago but Slackware logs a bit differently than Debian.

As I use Shorewall, I added the following rule to allow the 'scope's traffic to pass through:

Code: [Select]
ACCEPT          net:192.168.X.0/24     $FW     udp     -       111

All is well now:

Code: [Select]
$ lxi discover
Searching for LXI devices - please wait...

Broadcasting on interface lo
Broadcasting on interface eth0
  Found "Siglent Technologies,SDS1202X-E,SDS1EBBXXXXXXX,5.1.3.13" on address 192.168.X.X

Found 1 device


The key for me figuring this out was working through the liblxi source and seeing that the network braodcast address is obtained and used for the polling.  The 'scope replies but since there is no tracking from a SYN packet, the response was blocked (at least that's how I understand it).  I found the firewall logging is placed in /var/log/messages and then found the firewall had blocked the 'scope's address.  On Slackware dmesg also includes this output.

Carry on!   :-+


- Nate

The optimist proclaims we live in the best of all possible worlds.  The pessimist fears this is true.
 

Offline lundmar

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #278 on: March 21, 2018, 06:19:46 am »
False alarm.  It looks like a firewall rule is blocking the reply from the 'scope.   :palm:

I thought I had looked in the logs a few days ago but Slackware logs a bit differently than Debian.

As I use Shorewall, I added the following rule to allow the 'scope's traffic to pass through:

Code: [Select]
ACCEPT          net:192.168.X.0/24     $FW     udp     -       111

All is well now:

Code: [Select]
$ lxi discover
Searching for LXI devices - please wait...

Broadcasting on interface lo
Broadcasting on interface eth0
  Found "Siglent Technologies,SDS1202X-E,SDS1EBBXXXXXXX,5.1.3.13" on address 192.168.X.X

Found 1 device


The key for me figuring this out was working through the liblxi source and seeing that the network braodcast address is obtained and used for the polling.  The 'scope replies but since there is no tracking from a SYN packet, the response was blocked (at least that's how I understand it).  I found the firewall logging is placed in /var/log/messages and then found the firewall had blocked the 'scope's address.  On Slackware dmesg also includes this output.

Carry on!   :-+

Ok. Different distributions different problems  ;D
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple TTY terminal I/O application
http://dc-power-supply.github.io - OSHW DC power supply project
 
The following users thanked this post: N0NB

Offline lundmar

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #279 on: May 06, 2018, 12:34:46 am »
Hi guys,

Just announcing new releases of lxi-tools and liblxi:

https://github.com/lxi-tools/lxi-tools/releases/tag/v1.20
https://github.com/lxi-tools/liblxi/releases/tag/v1.13

These releases mostly include various bug fixes. Perhaps the most noticeable fix is that now bash auto completion is working with the lxi snap command.

Also, for those new to lua, I've added https://github.com/lxi-tools/lxi-tools/blob/master/test/basic-tests.lua which details concisely how to do basic stuff in Lua. Using this as inspiration you can create some very clean cut and powerful instrument control scripts for whatever purpose you need.

Recently I've been busy with other stuff and haven't had much time to continue the development on lxi-tools. However, during my absence I see that there have been a steady increase in snap users which is great.

Also, rumors are that there is someone out there who have ported lxi-tools to macOS!  :-+

Hopefully they will contribute their changes back to the lxi-tools project to benefit everyone. Code contributions are welcome.
« Last Edit: May 07, 2018, 06:04:57 am by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple TTY terminal I/O application
http://dc-power-supply.github.io - OSHW DC power supply project
 
The following users thanked this post: paf

Offline crispus

  • Regular Contributor
  • *
  • Posts: 104
  • Country: ro
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #280 on: June 11, 2018, 05:39:00 pm »
Take a look here, Siglent wrote a post about LXI Tools :-+
Congrats! Keep up the good work :)
I know I'm numskull, but I look around me and I feel better.
 

Offline lundmar

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #281 on: June 11, 2018, 11:24:34 pm »
Take a look here, Siglent wrote a post about LXI Tools :-+
Congrats! Keep up the good work :)

Thanks :)

The next thing on the TODO list is improving the mDNS feature. I expect to add a new discover interface to liblxi which will make it possible for the lxi command line tool to select which network interface is broadcasted on. For example:

Code: [Select]
$ lxi discover --interface wlan0

This way we can avoid broadcasting on all networks available. It will also speed up the discovery step.

The mDNS feature in lxi-gui also needs some TLC.
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple TTY terminal I/O application
http://dc-power-supply.github.io - OSHW DC power supply project
 

Offline crispus

  • Regular Contributor
  • *
  • Posts: 104
  • Country: ro
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #282 on: June 26, 2018, 08:58:32 pm »
Did anyone tried to use measure item function on a DS1000z?
Code: [Select]
:MEASure:ITEM OVERshoot,CHANnel2 /* Enable the overshoot measurement of CH2 */
:MEASure:ITEM? OVERshoot,CHANnel2 /* The query returns 8.888889e-03 */
I was trying to measure VPP on channel 1, but all it does is to show on the scope's screen the measurement...
The query does not return anything...
I know I'm numskull, but I look around me and I feel better.
 

Offline lundmar

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #283 on: June 30, 2018, 06:09:14 pm »
Did anyone tried to use measure item function on a DS1000z?
Code: [Select]
:MEASure:ITEM OVERshoot,CHANnel2 /* Enable the overshoot measurement of CH2 */
:MEASure:ITEM? OVERshoot,CHANnel2 /* The query returns 8.888889e-03 */
I was trying to measure VPP on channel 1, but all it does is to show on the scope's screen the measurement...
The query does not return anything...

I tried firing your commands and I get this:

Code: [Select]
$ lxi scpi --address 192.168.1.112 ":MEASure:ITEM OVERshoot,CHANnel2"
$ lxi scpi --address 192.168.1.112 ":MEASure:ITEM? OVERshoot,CHANnel2"
9.9E37
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple TTY terminal I/O application
http://dc-power-supply.github.io - OSHW DC power supply project
 

Offline crispus

  • Regular Contributor
  • *
  • Posts: 104
  • Country: ro
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #284 on: July 01, 2018, 07:26:34 pm »
Thanks for reply.

As standalone commands it works. I was trying in interactive mode and it doesn't. (build from sources, v1.20)
Code: [Select]
$ src/lxi --version
lxi v1.20
$ src/lxi scpi -a 192.168.1.149 -i
Connected to 192.168.1.149
Entering interactive mode (ctrl-d to quit)

lxi> *IDN?
RIGOL TECHNOLOGIES,MSO1104Z,DS1ZDxxxxxxxx,00.04.04.SP3
lxi> :MEASure:ITEM? OVERshoot,CHANnel2
lxi>

$ src/lxi scpi -a 192.168.1.149 ":MEASure:ITEM? OVERshoot,CHANnel2"
2.306453e-02
I know I'm numskull, but I look around me and I feel better.
 

Offline lundmar

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #285 on: July 01, 2018, 09:53:16 pm »
Thanks for reply.

As standalone commands it works. I was trying in interactive mode and it doesn't. (build from sources, v1.20)
Code: [Select]
$ src/lxi --version
lxi v1.20
$ src/lxi scpi -a 192.168.1.149 -i
Connected to 192.168.1.149
Entering interactive mode (ctrl-d to quit)

lxi> *IDN?
RIGOL TECHNOLOGIES,MSO1104Z,DS1ZDxxxxxxxx,00.04.04.SP3
lxi> :MEASure:ITEM? OVERshoot,CHANnel2
lxi>

$ src/lxi scpi -a 192.168.1.149 ":MEASure:ITEM? OVERshoot,CHANnel2"
2.306453e-02

Thanks for reporting the bug. Luckily it was a simple fix:
https://github.com/lxi-tools/lxi-tools/commit/c244dbe573d191f8bd2513f0f61638209bc528dc

I haven't tested it but it should do the trick  :)
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple TTY terminal I/O application
http://dc-power-supply.github.io - OSHW DC power supply project
 

Offline crispus

  • Regular Contributor
  • *
  • Posts: 104
  • Country: ro
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #286 on: July 01, 2018, 10:17:50 pm »
So quick. It works. Thanks.
I know I'm numskull, but I look around me and I feel better.
 

Offline lundmar

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #287 on: July 08, 2018, 07:43:56 pm »
FYI - I've just pushed a new release of lxi-tools:

https://github.com/lxi-tools/lxi-tools/releases/tag/v1.21

It basically only includes the latest change to fix interactive mode when firing question SCPI commands. The main reason I'm pushing a new stable release is to update the lxi-tools snap on the stable release channel because some users have reported issues with missing fonts - an issue which is automagically fixed by an update because of some updated snapcraft infrastructure.
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple TTY terminal I/O application
http://dc-power-supply.github.io - OSHW DC power supply project
 

Offline HoracioDos

  • Frequent Contributor
  • **
  • Posts: 282
  • Country: ar
  • Just an IT monkey with a DSO
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #288 on: July 10, 2018, 10:57:21 pm »
automagically
This has been my preferred word  for years  :-DD. I see that's universal. Why everyone loves automagic solutions?
« Last Edit: July 10, 2018, 11:03:11 pm by HoracioDos »
 

Offline lundmar

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #289 on: July 11, 2018, 12:53:12 am »
automagically
This has been my preferred word  for years  :-DD. I see that's universal. Why everyone loves automagic solutions?

Easy, everyone loves magic :clap:
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple TTY terminal I/O application
http://dc-power-supply.github.io - OSHW DC power supply project
 

Offline lundmar

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #290 on: Yesterday at 05:50:54 pm »
Here is a shout out and big thank you to Siglent for supporting the open source lxi-tools project!  :-+

They have recently decided that we can keep the SDS1204X-E which was lent to us to support the ongoing development of lxi-tools. See http://www.eevblog.com/forum/testgear/open-source-lxi-tools-and-liblxi-v1-0-released-for-gnulinux/msg1394796/#msg1394796

The device has been very helpful for the development and testing of lxi-tools. It will now become a permanent part of a regression test setup to make sure lxi-tools will continue to work with Siglent devices.

Personally I'm happy to finally see instrument manufacturers be serious about supporting open source - this way we will all get better tools for our instruments. It is also worth noticing that Siglent is very responsive to feedback from the EEVBlog forum users and I'm sure that has helped make their instruments better and more desirable. I wish more manufacturers would do the same. It's the new way of doing business. Good job Siglent  :-+

https://www.siglentamerica.com/application-note/lxi-tools/
https://www.siglentamerica.com/video/lxi-tools/

List of lxi-tools sponsors: https://github.com/lxi-tools/lxi-tools#9-sponsors
« Last Edit: Yesterday at 05:53:45 pm by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple TTY terminal I/O application
http://dc-power-supply.github.io - OSHW DC power supply project
 
The following users thanked this post: tautech

Offline lundmar

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #291 on: Yesterday at 08:21:32 pm »
Just some interesting statistics retrieved from the snap system:



This statistics only count snap installs, not lxi-tools installations installed via native distro packages.
« Last Edit: Yesterday at 08:24:59 pm by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple TTY terminal I/O application
http://dc-power-supply.github.io - OSHW DC power supply project
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf