Radarspotting

Other Software => ACARS => Topic started by: gcopter1 on May 03, 2018, 10:13:28 PM

Title: TLeconte´s acars for pi
Post by: gcopter1 on May 03, 2018, 10:13:28 PM
Does anyone here have been successful running this on a pi?
I sought help from another forum and after a couple of hours of help, I was not  getting anywhere.
The person helping me (to whom I´m grateful for) was very patient but at the end suggested I go back and start all over but, I´m still hitting a wall.

Following the instructions very carefully, I´m still getting errors like ¨ No such file or directory¨.

I know the files are there, when I click on the file manager, I see them.
I start to run into problems when on the second step, Downloading and compiling the multi channel ACARS decoder, I attempt to use the mkdir acars command.
In return, I get an error saying that mkdir cannot be created acars file already exists.

Obviously, I don´t ¨speak Raspberry¨ but, it seems that the instructions online, don´t cover all the situations.

So, if you have been successful running this on a pi, I´d like to hear from you.
Title: Re: TLeconte´s acars for pi
Post by: acarslogger on May 04, 2018, 03:11:17 PM
Hi

I have acarsdec running on a Raspberry Pi v3.

Open up a terminal / command line window and login with 'pi' and your password.
You should get a $ prompt.
Make sure the Pi is connected to the network.

To do a clean re-install I delete any existing acarsdec directory and all its sub-directories with

rm -rf acarsdec

Then install acarsdec with

git clone https://github.com/TLeconte/acarsdec.git

The acarsdec directory will be created.

cd acarsdec

Then compile the source code with either

make -f Makefile.air
or
make -f Makefile.rtl

depending on whether you are going to use an rtl_sdr or an Airspy.

List the acarsdec directory with
ls -l

There should now be an executable called acarsdec.

To check it works type

./acarsdec

It should display the help /options available.

That's what I do. Hope it works for you.

Stuart
Title: Re: TLeconte´s acars for pi
Post by: IanH on May 04, 2018, 03:17:03 PM
I started writing a reply after successfuly getting it to compile on a Debian variat on a PC.

Meanwhile Stuart has beaten me to the response with exactly the same instructions.  8)

The key difference to the web instructions if you are using the RTL-SDR dongle is to use make -f Makefile.rtl and not just make in Part 2.

Also ignore the command "chmod +x run-acars" in the instructions - that seems to  be left in from previous instructions.

Let us know how you get on and what still doesn't work.
Title: Re: TLeconte´s acars for pi
Post by: gcopter1 on May 05, 2018, 09:45:53 PM
acarslogger, thanks for your reply.

Followed those instructions, installed the Makefile for the RTL.
Used the list command, there´s an acarsdec directory.
Then I typed ./acarsdec and I get;
bash : ./acarsdec: Is a directory

Nothing else.
Heading out to work now, can´t reply but I´ll be watching the thread.
Many thanks!
Title: Re: TLeconte´s acars for pi
Post by: IanH on May 05, 2018, 11:01:31 PM
If there you can see an acarsdec directory
cd acarsdec
./acarsdec

You need to be in the correct directory before you can run the command.

Or just try~/acars/acarsdec/acarsdec from anywhere.

Title: Re: TLeconte´s acars for pi
Post by: gcopter1 on May 07, 2018, 05:53:13 AM
To update the thread, one of the moderators on another forum, helped me with this. Did a team viewer session and now everything works. He advised that I could do some housekeeping and remove some unneeded files, but at the same time he also advised to leave it alone. I saw him go back and forth whenever he tried a command that wasn't working. Seems that those tutorials scattered around in the Internet are outdated?

Either way, I now have a dedicated pi with an Acars mission!
Title: Re: TLeconte´s acars for pi
Post by: IanH on May 07, 2018, 10:36:23 PM
OK so it might have helped if you indicated what your source of instructions was when you asked for help.

The instructions I found after searching from your intial request were these:
http://www.satsignal.eu/raspberry-pi/acars-decoder.html

Apart from changing the "make" to "make -f Makefile.rtl " and ignnoring the "chmod +x run-acars" instruction, everything seemed to compile ok.

But it's working now so enjoy.
Title: Re: TLeconte´s acars for pi
Post by: gcopter1 on May 08, 2018, 09:24:58 AM
My apologies. Been posting about this in more than one place and sometimes, I overlook the detail. By posting the name of the software on the thread, I assumed everyone knew what was I talking about.