Instrustar

 Forgot password?
 立即注册/Register Now
View: 1388|Reply: 5

SDK Add linux so library

[Copy link]

16

Threads

22

Posts

217

Credits

中级会员

Rank: 3Rank: 3

Credits
217
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

2

Posts

8

Credits

新手上路

Rank: 1

Credits
8
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

14

Posts

206

Credits

管理员

Rank: 9Rank: 9Rank: 9

Credits
206
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

16

Threads

22

Posts

217

Credits

中级会员

Rank: 3Rank: 3

Credits
217
 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

2

Posts

20

Credits

新手上路

Rank: 1

Credits
20
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

14

Posts

206

Credits

管理员

Rank: 9Rank: 9Rank: 9

Credits
206
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

0

Threads

5

Posts

20

Credits

新手上路

Rank: 1

Credits
20
Post time 2023-4-7 22:17:28 | Show all posts

Seriously a good deal of superb knowledge.
custom writing tips https://bestpaperwritingservice.com professional essay writers review https://quality-essays.com
Reply

Use magic Report

0

Threads

9

Posts

54

Credits

注册会员

Rank: 2

Credits
54
Post time 2023-8-2 08:50:57 | Show all posts

You've made your point!
i need help writing an essay cheap essay writing services best essay writer service
Reply

Use magic Report

You have to log in before you can reply Login | 立即注册/Register Now

Points Rules

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

2024-12-3 08:05 GMT+8 , Processed in 1.061817 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

Quick Reply To Top Return to the list