EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: KSP on January 26, 2022, 04:00:47 pm

Title: Instrustar ISDS205A USB Oscilloscope Linux Driver
Post by: KSP on January 26, 2022, 04:00:47 pm
Hi All,

I've got an IDS205A USB oscilloscope, and I've been playing with the Instrustar SDK at
Code: [Select]
https://github.com/instrustar-dev/SDK
attempting to get their Linux example working. After raising a bug regarding their header file, they quickly updated the repo and I now have code which compiles and runs, but it does not see any devices attached.

The scope is recognised by lsusb  and dmesg but the example program just can't find it. I've added udev rules, run as root but still no joy. The program initialises the library just fine, but as soon as it tries to make a function call to check if the device is available the program halts.

The github repo states it was tested on Ubuntu, and I'm using Fedora 35, but other than that I've done everything as instructed.

Anyone had any joy with this?
Title: Re: Instrustar ISDS205A USB Oscilloscope Linux Driver
Post by: paf on January 26, 2022, 07:41:54 pm
It does not work, and even if it worked, it would not be advisable.

By their instructions:


You can run it without messing with the libraries on your system like this:

Code: [Select]
LD_LIBRARY_PATH=../SharedLibrary/Linux/X64/Release/  ./DllTest 

Running it this way (as root) it gives these messages:

Code: [Select]
Vdso Test...
InitDll..............
**********UsbDevAddRemoveCallBack DEVICE_NOTICE_ID=1**********
**********CreateOscDevice 0**********
**********SetDevNoticeCallBack**********
**********SetDataReadyCallBack**********

Then it does nothing.
Removing the USB cable gives

Code: [Select]
**********UsbDevAddRemoveCallBack DEVICE_NOTICE_ID=2**********
**********DestoryOscDevice Success**********
**********DestoryDdsDevice**********
**********DestoryIODevice**********
DevNoticeRemoveCallBack
**********DestoryOscDevice Success**********
**********DestoryDdsDevice**********

This was tested on a Debian (antiX) Linux machine.


 
Title: Re: Instrustar ISDS205A USB Oscilloscope Linux Driver
Post by: KSP on January 26, 2022, 07:51:42 pm
It does not work, and even if it worked, it would not be advisable.


Thanks for your response, at least it’s not just me!

I tried it with their libusb and my system’s libusb, got the same result with both. The output I get is the same as you’ve shown. I inserted some debug lines into the code to check device status etc., and it showed that the reason it pauses at that particular point is because it can’t talk to the device for whatever reason.

It just seems so cumbersome to have an entire windows VM solely for my scope!
Title: Re: Instrustar ISDS205A USB Oscilloscope Linux Driver
Post by: simba15 on January 26, 2022, 09:14:21 pm
I think there was some requests to add the Iisds205a to Sigrok. ( it shows "in progress" currently).

There were also a fair number of requests to add the device to OpenHantek ( from the user Gyro).

It would be great to have some open source software for this device as its not bad for the price.

Tristan.
Title: Re: Instrustar ISDS205A USB Oscilloscope Linux Driver
Post by: KSP on January 27, 2022, 07:47:06 am
I think there was some requests to add the Iisds205a to Sigrok. ( it shows "in progress" currently).

Yes I noticed that, it would be really handy if it was added to Sigrok. Though from what I can tell it has been 'in progress' for a couple years now, so no telling when it will actually be complete