AirNav RadarBox
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 


Author Topic: MLAT  (Read 22078 times)

0 Members and 1 Guest are viewing this topic.

abcd567

  • Sr. Member
  • ****
  • Posts: 344
  • CYYZ - Toronto
Re: MLAT
« Reply #30 on: July 02, 2019, 03:16:14 AM »
Today I wrote latest Raspbian image (Buster) to microSD card and installed rbfeeder.
All went ok and the feeder is working fine.

However when I tried to install mlat-client by following command, it failed:

Code: [Select]
[email protected]:~ $ sudo apt-get install mlat-client

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mlat-client : Depends: python3 (< 3.6) but 3.7.3-1 is to be installed
E: Unable to correct problems, you have held broken packages.


I solved this problem by building the mlat-client package from source code as follows:

Code: [Select]
## Installed required packages (dependencies and build tools)
sudo apt update -y
sudo apt-get install -y git curl build-essential debhelper python-dev python3-dev

## Downloaded source code
cd /home/pi/
git clone https://github.com/mutability/mlat-client.git

## Built mlat-client's installation package
cd /home/pi/mlat-client
sudo dpkg-buildpackage -b -uc

## Above command took some time to build package
## After the package was built, installed it by following command
cd /home/pi/
sudo dpkg -i mlat-client_*.deb




ALTERNATE to building mlat-client from source code as above, you can now install pre-built package available at my Github site. Please see this post for details:

https://forum.radarbox24.com/index.php?topic=101771.msg433591#msg433591


.
« Last Edit: April 30, 2020, 08:32:50 AM by abcd567 »

whome82

  • New Member
  • *
  • Posts: 2
Re: MLAT
« Reply #31 on: July 02, 2019, 10:29:39 PM »
I too have had the same problem however tried running the code as provided and now get the following error-

error: cannot access archive 'mlat-client_*.deb': no such file or directory.

Any ideas? thanks

abcd567

  • Sr. Member
  • ****
  • Posts: 344
  • CYYZ - Toronto
Re: MLAT
« Reply #32 on: July 03, 2019, 01:34:04 AM »
I too have had the same problem however tried running the code as provided and now get the following error-

error: cannot access archive 'mlat-client_*.deb': no such file or directory.

Any ideas? thanks

Sorry, there was a mistake in the second last line.
It was wrongly written "cd /home/pi/mlat-client".
The correct command is "cd /home/pi/"

The last two commands should be like below. I have now corrected it in my original post also
Code: [Select]
cd /home/pi/
sudo dpkg -i mlat-client_*.deb
« Last Edit: July 03, 2019, 08:10:22 AM by abcd567 »

whome82

  • New Member
  • *
  • Posts: 2
Re: MLAT
« Reply #33 on: July 03, 2019, 05:30:58 PM »
Thank you, Perfect now working with MLAT on my Pi also!

Great stuff

kan84

  • New Member
  • *
  • Posts: 1
Re: MLAT
« Reply #34 on: July 16, 2019, 06:15:46 PM »
Thanks was able to get MLAT issue resolved for both my feeders. I had autostart_mlat set as true but that did not help, I had to put in the coordinates in the ini file for it to work.

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 29500
Re: MLAT
« Reply #35 on: July 16, 2019, 06:19:08 PM »
That's correct, Pi's require the lat/lon to be set for MLAT

Alan

anirbansen

  • New Member
  • *
  • Posts: 1
Re: MLAT
« Reply #36 on: November 28, 2019, 07:31:10 AM »
In my new installation with Buster, I faced the same problem and recreated "mlat-client_0.2.10_armhf.deb". After I ran dpkg -i, I copied the fa-mlat-client to /usr/bin and radarbox24 feeder picked it up and started MLAT.  I then removed the packages  build-essential debhelper python-dev python3-dev and the mlat-client folder.

But sudo apt-get update is again displaying the error:
The following packages have unmet dependencies:
 mlat-client : Depends: python3 (< 3.6) but 3.7.3-1 is to be installed
E: Unable to correct problems, you have held broken packages.


The above packages have several dependencies which I did not want to keep in the system.  I have kept git and curl though.

Its worth mentioning that mlat-client_0.2.10_armhf.deb package is also there under /home/pi/adsb-exchange and the sub folder adsb-exchange also contains another folder "mlat-client" but which may be a different version as judged by file size of fa-mlat-client:
1) /user/bin/fa-mlat-client * 2147bytes
2) /home/pi/adsb-exchange/mlat-client/fa-mlat-client * 2149 bytes
« Last Edit: November 28, 2019, 08:19:30 AM by anirbansen »

wiedehopf

  • Jr. Member
  • **
  • Posts: 54
Re: MLAT
« Reply #37 on: December 01, 2019, 02:23:37 PM »
You need python3 for mlat.

Just install it with apt install.

Nigelrich

  • New Member
  • *
  • Posts: 4
Re: MLAT
« Reply #38 on: February 25, 2020, 07:54:35 PM »
I've tried this build for the MLAT client but still inactive. I'm running Buster Lite and dump1090-fa

Any suggestions of what else I could try?

Thanks

abcd567

  • Sr. Member
  • ****
  • Posts: 344
  • CYYZ - Toronto
Re: MLAT
« Reply #39 on: February 25, 2020, 10:07:16 PM »
(1) Have you added your latitude, longitude and altitude (lat, lon, alt) in settings?
Please see STEP-2 (or Alternate to STEP-2) in this post:

https://forum.radarbox24.com/index.php?topic=101771.msg389571#msg389571

(2) To make sure mlat-client is installed and working ok, post output of these two commands

Code: [Select]
apt-cache policy mlat-client

sudo systemctl status mlat-client

.
« Last Edit: February 25, 2020, 10:11:31 PM by abcd567 »

Nigelrich

  • New Member
  • *
  • Posts: 4
Re: MLAT
« Reply #40 on: February 25, 2020, 10:50:09 PM »
Yes, all the site details are input.

This is what I get from the two commands you requested:

[email protected]:~ $ apt-cache policy mlat-client
mlat-client:
  Installed: 0.2.11
  Candidate: 0.2.11
  Version table:
 *** 0.2.11 100
        100 /var/lib/dpkg/status

[email protected]:~ $ sudo systemctl status mlat-client
● mlat-client.service - LSB: Multilateration client
   Loaded: loaded (/etc/init.d/mlat-client; generated)
   Active: active (exited) since Tue 2020-02-25 19:44:49 GMT; 3h 1min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 320 ExecStart=/etc/init.d/mlat-client start (code=exited, status=0/SUCCESS)

Feb 25 19:44:48 raspberrypi systemd[1]: Starting LSB: Multilateration client...
Feb 25 19:44:49 raspberrypi mlat-client[320]: Not starting mlat-client daemon, disabled via /etc/default/mlat-client ... (warning).
Feb 25 19:44:49 raspberrypi systemd[1]: Started LSB: Multilateration client.

Thanks

Nigelrich

  • New Member
  • *
  • Posts: 4
Re: MLAT
« Reply #41 on: February 25, 2020, 10:56:32 PM »
After inputting those two commands that you suggested, it appears to be working now

Have they triggered it into action?

Many thanks

abcd567

  • Sr. Member
  • ****
  • Posts: 344
  • CYYZ - Toronto
Re: MLAT
« Reply #42 on: February 25, 2020, 11:34:33 PM »
After inputting those two commands that you suggested, it appears to be working now

Have they triggered it into action?

Many thanks

When you go to following page, do you see "Mlat active (xx stations synced)", as shown in screenshot below.

http://www.radarbox24.com/stations/EXTRPIxxxxxx
(Replace xxxxxx by your station number)

« Last Edit: February 25, 2020, 11:39:18 PM by abcd567 »

Nigelrich

  • New Member
  • *
  • Posts: 4
Re: MLAT
« Reply #43 on: February 26, 2020, 12:57:52 AM »
Yes I do. I did exactly the same re-build on another Pi and didn't have any problems, which puzzled me why one didn't work and another did. Anyway they are sorted now.

Many thanks for your help

abcd567

  • Sr. Member
  • ****
  • Posts: 344
  • CYYZ - Toronto
Re: MLAT
« Reply #44 on: February 26, 2020, 01:27:16 AM »
As an interim measure, I have built two mlat-client packages, one for Raspbian STRETCH and other for Raspbian BUSTER, and uploaded to my Github site.

These can be easily installed by following commands:

To install on RPi with Raspbian BUSTER:
Code: [Select]
## Download mlat-client package for BUSTER
wget https://github.com/abcd567a/mlat-client-package/releases/download/v1/mlat-client_0.2.11_BUSTER_armhf.deb   

## Install downloaded package
sudo dpkg -i mlat-client_0.2.11_BUSTER_armhf.deb   


To install on RPi with Raspbian STRETCH
Code: [Select]
## Download mlat-client package for STRETCH
wget https://github.com/abcd567a/mlat-client-package/releases/download/v1/mlat-client_0.2.11_STRETCH_armhf.deb 

## Install downloaded package
sudo dpkg -i mlat-client_0.2.11_STRETCH_armhf.deb 


If you are not sure your Raspbian is Stretch or Buster, issue this command to find out
Code: [Select]
lsb_release -sc


Instructions here:

https://github.com/abcd567a/mlat-client-package/blob/master/README.md


.
« Last Edit: February 26, 2020, 08:51:09 PM by abcd567 »