Giter Club home page Giter Club logo

Comments (5)

 avatar commented on August 19, 2024

Hi again

I am still stuck on the make embedded part. Some help would be appreciated.

The output for make embedded after generating the libiio.a file is
g++ -O3 -I.. -DVERSION="leansdr-1.2.0-27-ge6416aa" -Wall -Wno-sign-compare -Wno-array-bounds -Wno-unused-variable -Ilibiio leaniiorx.cc -lfftw3f -lpthread -Llibiio -L. -liio -lpthread -lxml2 -lz -llzma -static -o leaniiorx.x86_64
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol strcmp' with pointer equality in /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie
collect2: error: ld returned 1 exit status
Makefile:83: recipe for target 'leaniiorx.x86_64' failed
make: *** [leaniiorx.x86_64] Error 1

from leansdr.

pabr avatar pabr commented on August 19, 2024

It looks like you are running "make embedded" on a x86_64 machine, so the Makefile is trying to generate a binary for x86_64. If this is really what you want, try the same command without "-static".

But leaniiorx is intended to run on-board the plutosdr. The Makefile can generate a portable (static) plutosdr binary if you run it on another arm-linux board (e.g. raspberry pi with some versions of the OS) with libiio already compiled, but that was a quick hack. The proper approach is documented at https://wiki.analog.com/university/tools/pluto/devs/embedded_code , but that's a lot more work.

You can also test leansdr binaries from leantrx to decide whether you really want to recompile the latest version. Download from https://www.pabr.org/radio/leantrx/leantrx.en.html#plutosdr_net_install

from leansdr.

 avatar commented on August 19, 2024

Hi

I solved it. I removed the previous installation and did a new clean install and everything worked.
Thanks.

I have another question though, I want to use leandvb to offline decode the dvb-s2 I have pre-recorded. Now the data type I have is from Matlab using AD936x and its in double complex IQ.
How can I convert it to the data type supported by leandvb.

I have the following formats I can receive the dvb-s2 in Matlab:

  1. int16 — Integer values are the raw 16-bit I and Q samples from the board. The 12-bit value from the ADC of the AD9361 RF chip is sign-extended to 16 bits.

  2. single — Single-precision floating point values are scaled to the range of [–0.0625, 0.0625]. The block derives this value from the sign-extended 16 bits received from the board.

  3. double — Double-precision floating point values are scaled to the range of [–0.0625, 0.0625]. The block derives this value from the sign-extended 16 bits received from the board.

I have been trying to convert using typecast but its not working.
Thanks !

from leansdr.

 avatar commented on August 19, 2024

Also, is there a way I can integrate leandvb in my Matlab code? I am looking for a dvb s2 decoder.

from leansdr.

pabr avatar pabr commented on August 19, 2024

Hopefully a Matlab expert will be able to answer your question. There's probably a way to write IQ data to a file in binary mode using "single" format ("Single-precision floating point values"), then execute leandvb from Matlab with a system() command, then read the resulting MPEG TS file.

from leansdr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.