Instrustar

 Forgot password?
 Register Now
View: 583|Reply: 5

SDK Add linux so library

[Copy link]

12

Threads

36

Posts

226

Credits

中级会员

Rank: 3Rank: 3

Credits
226
Post time 2021-12-28 10:03:00 | Show all posts |Read mode

SDK Add linux so library, Next we will upport more platform.

SDK Download - Download - Harbin Instrustar Electronic Technology Co., Ltd.


Reply

Use magic Report

0

Threads

1

Posts

4

Credits

新手上路

Rank: 1

Credits
4
Post time 2022-1-2 01:42:34 | Show all posts
Hola gracias por trabajar en una aplicación para linux, pero el tutorial del archivo no se comprende bien, da dificultades a la hora de instalarlo.
Reply

Use magic Report

2

Threads

8

Posts

126

Credits

管理员

Rank: 9Rank: 9Rank: 9

Credits
126
Post time 2022-1-6 07:02:05 | Show all posts
mariogca replied at 2022-1-2 01:42
Hola gracias por trabajar en una aplicación para linux, pero el tutorial del archivo no se comprend ...

Hello, can you share the error message, we will test it as soon as possible
Reply

Use magic Report

12

Threads

36

Posts

226

Credits

中级会员

Rank: 3Rank: 3

Credits
226
 Author| Post time 2022-1-27 15:52:52 | Show all posts
https://github.com/instrustar-dev/SDK
The linux so library have updated.
Reply

Use magic Report

0

Threads

1

Posts

16

Credits

新手上路

Rank: 1

Credits
16
Post time 2022-2-1 09:56:36 | Show all posts
I have a problem with the SDK.
My operating system: Debian 11 (Linux)

I have downloaded the SDK from Github, and according to instruction I installed libusb. Then I copied the .so files to my /lib folder. I have tried to run the pre-compiled DllTest in the  SharedLibraries/Linux/X64/Release/. I have got the following error message (not copied exactly, written from memory): "libcommon.so: file too short"
I have looked at the libcommon.so file and realized that it had just the line "libcommon.so" inside it (16 bytes). Therefore, I have copied the contents of libcommon.so.1.0 (which had some binary information inside) into libcommon.so. As a result, the pre-compiled DllTest was able to run. The DllTest program was displaying add callbacks and remove callbacks when I connected or removed my osilloscope (ISDS220B). It was not displaying anything apart from the callbacks, and both calls to IsDevAvailable() and IsDataReady() returned 0 when I connected my oscilloscope.
Next I tried to build the DllTest from the .cpp and .h files in DllTest/ folder using cmake. I executed "cmake ../DllTest" and then "cmake --build ." I got the following error messages: "libvdso.so: file format not recognized; Treating as a linker script" and then "libvdso.so: syntax error" (Error messages are not copied exactly, written from memory). I have looked through the .so files and noticed that all .so files contained just the filename e.g. "libvdso.so" inside, while .so.1.0 files had the binary information. So, I copied the binary data from all .so.1.0 files into the corresponding .so files (e.g. from libvdso.so.1.0 into libvdso.so).
The DllTest.cpp has compiled successfully and I was able to run it. However, It still returned callbacks when oscilloscope connected/removed, and did nothing else, no capture/voltage data displayed and both IsDevAvailable() and IsDataReady() returned 0. I though it would work better if I restarted my computer.
After I restarted my computer, the DllTest stopped working. It returned callbacks when no oscilloscope connected. When oscilloscope connected, it displayed "VDSO test..." and then stopped responding (not displaying anything else). I have tried to modify the code (DllTest.cpp) and by commenting out some lines I determined that the call to InitDll() was not returning anything and made the program wait.

Please advise me on what I should do to use my oscilloscope with the SDK on linux.
Reply

Use magic Report

2

Threads

8

Posts

126

Credits

管理员

Rank: 9Rank: 9Rank: 9

Credits
126
Post time 2022-3-3 20:53:42 | Show all posts
Valera_Rad replied at 2022-2-1 09:56
I have a problem with the SDK.
My operating system: Debian 11 (Linux)

Hello, you can join sudo before running, because some system usb communication, sudo is required to improve permissions
Reply

Use magic Report

You have to log in before you can reply Login | Register Now

Points Rules

Archiver|Mobile Version|Instrustar ( 黑ICP备2022001065号 )

2022-11-28 17:40 GMT+8 , Processed in 1.119989 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

Quick Reply To Top Return to the list