Giter Site home page Giter Site logo

Using the SDRPlay about acarsdec HOT 4 CLOSED

tleconte avatar tleconte commented on June 10, 2024
Using the SDRPlay

from acarsdec.

Comments (4)

TLeconte avatar TLeconte commented on June 10, 2024

I did not write the sdrplay code, but from the source you must have a help message with -s if you have compiled with Makefile.sdrplay ...
Something like that :

[-L lnaState] [-G GRdB] [-p ppm] -s f1 [f2] .. [fN]

So perhaps , it's a cleaning problem
rm *.o acarsdec
make -f Makefile.sdrplay
and retry

Perhaps you could ask to the author of sdrplay code https://github.com/JvanKatwijk/acarsdec

from acarsdec.

DickvanNoort avatar DickvanNoort commented on June 10, 2024

Yes, I realise Jan van Katwijk wrote the code.

This is what I did before and the result:

make -f Makefile.sdrplay clean
make -f Makefile.sdrplay

pi@MYPI-16B:~/acarsdec $ nano  acarsdec.c
pi@MYPI-16B:~/acarsdec $ make -f Makefile.sdrplay clean
pi@MYPI-16B:~/acarsdec $ make -f Makefile.sdrplay
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I.    -c -o acarsdec.o acarsdec.c
acarsdec.c: In function ‘main’:
acarsdec.c:181:10: warning: implicit declaration of function ‘initSdrplay’ [-Wimplicit-function-declaration]
	res = initSdrplay (argv, optind);
		  ^~~~~~~~~~~
acarsdec.c:297:21: warning: implicit declaration of function ‘runSdrplaySample’ [-Wimplicit-function-declaration]
			   res = runSdrplaySample ();
					 ^~~~~~~~~~~~~~~~
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I.    -c -o acars.o acars.c
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I.    -c -o msk.o msk.c
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I.    -c -o sdrplay.o sdrplay.c
sdrplay.c: In function ‘initSdrplay’:
sdrplay.c:114:10: warning: unused variable ‘i’ [-Wunused-variable]
 uint32_t i;
		  ^
sdrplay.c:111:14: warning: unused variable ‘F0’ [-Wunused-variable]
 unsigned int F0, minFc = 140000000, maxFc = 0;
			  ^~
sdrplay.c:109:5: warning: unused variable ‘r’ [-Wunused-variable]
 int r, n;
	 ^
At top level:
sdrplay.c:91:5: warning: ‘RSPduo_Table’ defined but not used [-Wunused-variable]
 int RSPduo_Table [] = {0, 6, 12, 18, 20, 26, 32, 38, 57, 62};
	 ^~~~~~~~~~~~
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I.    -c -o rtl.o rtl.c
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I.    -c -o air.o air.c
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I.    -c -o output.o output.c
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I.    -c -o label.o label.c
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I.    -c -o cJSON.o cJSON.c
cc acarsdec.o acars.o msk.o sdrplay.o rtl.o air.o output.o label.o cJSON.o -o acarsdec.sdrplay -lm -pthread -lmirsdrapi-rsp  -lusb-1.0

So now I did as you suggested with this as result:
pi@MYPI-16B:~ $ cd acarsdec
pi@MYPI-16B:/acarsdec $ rm *.o acarsdec
pi@MYPI-16B:
/acarsdec $ make -f Makefile.sdrplay
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I. -c -o acarsdec.o acarsdec.c
acarsdec.c: In function ‘main’:
acarsdec.c:181:10: warning: implicit declaration of function ‘initSdrplay’ [-Wimplicit-function-declaration]
res = initSdrplay (argv, optind);
^~~~~~~~~~~
acarsdec.c:297:21: warning: implicit declaration of function ‘runSdrplaySample’ [-Wimplicit-function-declaration]
res = runSdrplaySample ();
^~~~~~~~~~~~~~~~
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I. -c -o acars.o acars.c
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I. -c -o msk.o msk.c
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I. -c -o sdrplay.o sdrplay.c
sdrplay.c: In function ‘initSdrplay’:
sdrplay.c:114:10: warning: unused variable ‘i’ [-Wunused-variable]
uint32_t i;
^
sdrplay.c:111:14: warning: unused variable ‘F0’ [-Wunused-variable]
unsigned int F0, minFc = 140000000, maxFc = 0;
^~
sdrplay.c:109:5: warning: unused variable ‘r’ [-Wunused-variable]
int r, n;
^
At top level:
sdrplay.c:91:5: warning: ‘RSPduo_Table’ defined but not used [-Wunused-variable]
int RSPduo_Table [] = {0, 6, 12, 18, 20, 26, 32, 38, 57, 62};
^~~~~~~~~~~~
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I. -c -o rtl.o rtl.c
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I. -c -o air.o air.c
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I. -c -o output.o output.c
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I. -c -o label.o label.c
cc -Wall -Ofast -pthread -D WITH_SDRPLAY -I. -c -o cJSON.o cJSON.c
cc acarsdec.o acars.o msk.o sdrplay.o rtl.o air.o output.o label.o cJSON.o -o acarsdec.sdrplay -lm -pthread -lmirsdrapi-rsp -lusb-1.0

pi@MYPI-16B:~/acarsdec $ ./acarsdec -s 131.525 131.725 131.825
-bash: ./acarsdec: No such file or directory

It looks like the acarsdec program is not created.
make -f Makefile.rtl
also does not create a program, so I will remove all, start clean and let you know..

from acarsdec.

DickvanNoort avatar DickvanNoort commented on June 10, 2024

OOPS, the compiled program is not called acarsdec but acarsdec.sdrplay

If this is as expected you might want to update the README.

pi@MYPI-16B:~/acarsdec $ ./acarsdec.sdrplay -v -s 131.525 131.725 131.825
Fc = 131850000, phase = -1.021018 (-325000.000000)
Fc = 131850000, phase = -0.392699 (-125000.000000)
Fc = 131850000, phase = -0.078540 (-25000.000000)
SDRplay_RSPI_VID_1DF7&PID_2500_BUS_001_PORT_002 B0001P0002
SDRplay device selects freq 131850000 and sets 39 as gain reduction
Decoding 3 channels
#3 too long

Not sure what the '#3 too long' means.
But that might become another issue.

Thanks, Dick

from acarsdec.

DickvanNoort avatar DickvanNoort commented on June 10, 2024

OOPS, the compiled program is not called acarsdec but acarsdec.sdrplay

If this is as expected you might want to update the README.

pi@MYPI-16B:~/acarsdec $ ./acarsdec.sdrplay -v -s 131.525 131.725 131.825
Fc = 131850000, phase = -1.021018 (-325000.000000)
Fc = 131850000, phase = -0.392699 (-125000.000000)
Fc = 131850000, phase = -0.078540 (-25000.000000)
SDRplay_RSPI_VID_1DF7&PID_2500_BUS_001_PORT_002 B0001P0002
SDRplay device selects freq 131850000 and sets 39 as gain reduction
Decoding 3 channels
#3 too long

Not sure what the '#3 too long' means.
But that might become another issue.

Thanks, Dick

from acarsdec.

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.