Hi All,
I've got an IDS205A USB oscilloscope, and I've been playing with the Instrustar SDK at 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?
It does not work, and even if it worked, it would not be advisable.
By their instructions:
- you need to compile their version of libusb
- you overwrite your Linux libraries with their versions
- when the libraries have different names they have the name on file, instead of a symbolic link
You can run it without messing with the libraries on your system like this:
LD_LIBRARY_PATH=../SharedLibrary/Linux/X64/Release/ ./DllTest
Running it this way (as root) it gives these messages:
Vdso Test...
InitDll..............
**********UsbDevAddRemoveCallBack DEVICE_NOTICE_ID=1**********
**********CreateOscDevice 0**********
**********SetDevNoticeCallBack**********
**********SetDataReadyCallBack**********
Then it does nothing.
Removing the USB cable gives
**********UsbDevAddRemoveCallBack DEVICE_NOTICE_ID=2**********
**********DestoryOscDevice Success**********
**********DestoryDdsDevice**********
**********DestoryIODevice**********
DevNoticeRemoveCallBack
**********DestoryOscDevice Success**********
**********DestoryDdsDevice**********
This was tested on a Debian (antiX) Linux machine.