Welcome to Radarspotting. Please login or sign up.

April 19, 2024, 04:28:30 AM

Login with username, password and session length

New Members

New Members

You should get an activation email when you join.  If not, please use the Contact option.

ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding

Started by sergsero, August 09, 2013, 03:08:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

abcd567

Quote from: sergsero on August 08, 2020, 06:36:25 AM
Hello,

Please use this version of modesmixer2 if your operating system is Ubuntu 20.04 64 bit: https://drive.google.com/file/d/1BH7zPxzk7qTMhhGOD6KPHMnM7qRf4_Dc/view?usp=sharing

Best regards,
sergsero

Thank you Sergsero!


abcd@ubuntu20-vm:~$ wget -O modesmixer2_ubuntu_20.04_x86_64_20200714.tgz "https://drive.google.com/uc?export=download&id=1BH7zPxzk7qTMhhGOD6KPHMnM7qRf4_Dc"

abcd@ubuntu20-vm:~$ sudo tar xvzf modesmixer2_ubuntu_20.04_x86_64_20200714.tgz   


abcd@ubuntu20-vm:~$ ./modesmixer2 --inConnect localhost:30005 --location 43.5:-79.6 --web 8787   
2020-08-08 23:05:59.452  INFO     ModeSMixer2 v.20200714
2020-08-08 23:05:59.452  INFO     The Magnetic Declination was calculated
2020-08-08 23:05:59.454  INFO     inConnect(localhost:30005) connecting 127.0.0.1:30005
2020-08-08 23:05:59.455  INFO     inConnect(localhost:30005) connected
2020-08-08 23:05:59.993  INFO     inConnect(localhost:30005) BEAST data stream detected
2020-08-08 23:06:19.239  INFO     The Coverage Area was determined
2020-08-08 23:06:19.239  INFO     The Magnetic Declination was calculated



abcd567

Automated Installation of ModeSMixer2 On Ubuntu 20.04 amd64 & Kali Linux 2020.2 amd64

(modesmixer2 is installed with Systemd Controls)


Uses following Linux binary for both the above noted distros (Ubuntu20 & Kali2020)

modesmixer2_ubuntu_20.04_x86_64_20200714.tgz

copy-paste following bash script and press the Enter key.


sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/mm2/master/install-mm2-ubuntu20.sh)"     




After script finishes, it displays following message

=======================
INSTALLATION COMPLETED
=======================
PLEASE DO FOLLOWING:

(1) If installed on RPi, in your browser, go to web interface at http://ip-of-pi:8787.
(2) If installed on Ubuntu20, in browser of Ubuntu go to web interface at http://localhost:8787 or http://127.0.0.1:8787


(3) Open file mm2.sh for editing by following command:

sudo nano /usr/share/mm2/mm2.conf

Add following line:

--location xx.xxxx:yy.yyyy

(Replace xx.xxxx and yy.yyyy by your
actual latitude and longitude)
After entering location, Save (Ctrl+o) and Close (Ctrl+x) file md2.conf
then restart mm2 by following command:

sudo systemctl restart mm2



To see status: sudo systemctl status mm2
To restart:    sudo systemctl restart mm2
To stop:       sudo systemctl stop mm2

CONFIGURATION

The configuration file can be edited by following command;

sudo nano /usr/share/mm2/mm2.conf



Default contents of config file
Default setting are for a decoder like dump1090-mutability or dump1090-fa running on the Computer on which ModeSmixer has been installed.
This can be changed by editing config file
You can add extra arguments, one per line starting with --

--inConnectId 127.0.0.1:30005:ADSB
--inConnectId 127.0.0.1:30105:MLAT
--web 8787


To see all config parameters

modesmixer2 --help

UNINSTALL

To completely remove configuration and all files, give following 4 commands:

sudo systemctl stop mm2
sudo systemctl disable mm2
sudo rm /lib/systemd/system/mm2.service
sudo rm -rf /usr/share/mm2
sudo rm /usr/bin/modesmixer2


IanH

sergsero

Any chance of a Debian Buster version of ModeSMixer2?

That is my preferred distro: Ubuntu has too many extras.

sergsero

Hello IanH,

I will see what differences there are in the library versions and try to compile it for debian quickly.

/sergsero

abcd567

I have Debian 10.5 (Buster) amd64.
As mm2 binary is not available for it, I tried to use Ubuntu18 binary "modesmixer2_Ubuntu_18.04_x86_64_20190223.tgz"
Failed due to missing "libssl.so.1.0.0"

$ INSTALL_FOLDER=/usr/share/mm2 
$ sudo mkdir ${INSTALL_FOLDER}
$ sudo wget -O ${INSTALL_FOLDER}/modesmixer2_Ubuntu_18.04_x86_64_20190223.tgz "https://drive.google.com/uc?export=download&id=1QzUqYTt-Bf-m817-i3W_RvodB019kxC5" 
$ sudo tar xvzf ${INSTALL_FOLDER}/modesmixer2_Ubuntu_18.04_x86_64_20190223.tgz -C ${INSTALL_FOLDER}
$ sudo ln -s ${INSTALL_FOLDER}/modesmixer2 /usr/bin/modesmixer2 

$ modesmixer2 --inConnect 127.0.0.1:30005 --web 8787 --location 43.5:-79.6
modesmixer2: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory




Debian package search showed "libssl1.0.0" is NOT available in Debian Buster and Stretch resources, but is available in Debian Jessie resources.
Downloaded Jessie version and tried to install, but failed:

$ sudo wget -O ${INSTALL_FOLDER}/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb "http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb" 

$ sudo dpkg -i ${INSTALL_FOLDER}/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb 

Selecting previously unselected package libssl1.0.0:amd64.
dpkg: regarding .../libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb containing libssl1.0.0:amd64, pre-dependency problem:
libssl1.0.0 pre-depends on multiarch-support
  multiarch-support is not installed.

dpkg: error processing archive /usr/share/mm2/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb (--install):
pre-dependency problem - not installing libssl1.0.0:amd64
Errors were encountered while processing:
/usr/share/mm2/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb





Installed package "multiarch-support" and could install the libssl1.0.0 from Jessie resources.

$ sudo apt install multiarch-support 

$ sudo dpkg -i ${INSTALL_FOLDER}/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb 




Now tested, Bingo! it is working

$ modesmixer2 --inConnect 127.0.0.1:30005 --web 8787 --location 43.5:-79.6 

2020-08-17 11:57:13.890  INFO     ModeSMixer2 v.20190216
2020-08-17 11:57:13.890  INFO     Magnetic declination calculated
2020-08-17 11:57:13.893  INFO     inConnect(127.0.0.1:30005) connecting 127.0.0.1:30005
2020-08-17 11:57:13.893  INFO     inConnect(127.0.0.1:30005) connected
2020-08-17 11:57:14.430  INFO     inConnect(127.0.0.1:30005) BEAST data stream detected
2020-08-17 11:57:26.697  INFO     Coverage area was determined
2020-08-17 11:57:26.697  INFO     Magnetic declination calculated


sergsero

Hello,

Intel x86-64 CPU

$ cat /etc/debian_version
10.5
The Debian 10 Buster 64 bit version of modesmixer2: https://drive.google.com/file/d/1gKtk2rP_IgOK53ZJQX2MAERCkoqvbAD6/view?usp=sharing


$ cat /etc/centos-release
CentOS Linux release 8.2.2004 (Core)
The CentOS 8 64 bit version of modesmixer2: https://drive.google.com/file/d/1ghZkpFjAIOWU84JZRgaZckkDIjIkKTyb/view?usp=sharing

% freebsd-version
12.1-RELEASE-p8
The FreeBSD 12 64 bit version of modesmixer2: https://drive.google.com/file/d/132F8njLcEFgacAOIa-w7taPZXiMgGjGW/view?usp=sharing

Best regards,
sergsero

abcd567

Thank you Sergsero for latest binaries.

On my Debian 10.5:
(1) Directly downloaded the .tgz file from Google Drive by following command:


$ sudo wget -O modesmixer2_debian_10_x86_64_20200714.tgz "https://drive.google.com/uc?export=download&id=1gKtk2rP_IgOK53ZJQX2MAERCkoqvbAD6"   



(2) Uncompressed downloaded .tgz file by following command:

$ sudo tar xvzf modesmixer2_debian_10_x86_64_20200714.tgz 




(3) Tested:

$ ./modesmixer2 --inConnect 127.0.0.1:30005 --web 8787 --location 43.5:-79.6
2020-08-22 15:39:49.670  INFO     ModeSMixer2 v.20200714
2020-08-22 15:39:49.670  INFO     The Magnetic Declination was calculated
2020-08-22 15:39:49.670  INFO     no distances.json provided
2020-08-22 15:39:49.670  ERROR    unable to dump polar distances to file
2020-08-22 15:39:49.671  INFO     inConnect(127.0.0.1:30005) connecting 127.0.0.1:30005
2020-08-22 15:39:49.671  INFO     inConnect(127.0.0.1:30005) connected
2020-08-22 15:39:50.268  INFO     inConnect(127.0.0.1:30005) BEAST data stream detected
2020-08-22 15:40:10.548  INFO     The Coverage Area was determined
2020-08-22 15:40:10.548  INFO     The Magnetic Declination was calculated

abcd567

Automated Installation of ModeSMixer2 on Debian 10.5 (x86_64):

Copy-paste following single-line command in terminal and press Enter key. The script will do everything for you, and when installation is completed, will give brief guide.
(The single-line command is very long. Scroll right to see & copy it in full.)

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/mm2/master/install-mm2-debian10.sh)"   


To see status:  sudo systemctl status mm2
To restart:  sudo systemctl restart mm2 
To stop:  sudo systemctl stop mm2

To edit Config file:  sudo nano /usr/share/mm2/mm2.conf 
After editing & saving config file, restart modesmixer2:  sudo systemctl restart mm2

Default contents of config file:

--inConnectId 127.0.0.1:30005:ADSB
--inConnectId 127.0.0.1:30105:MLAT
--web 8787

You can add parameters such as --location, --outConnect, etc, one parameter per line

Folder containing all files:  /usr/share/mm2
Help:  modesmixer2 --help


For detailed instructions visit this web page:
https://github.com/abcd567a/mm2/blob/master/README.md


.

w4lron

Hi All

I'm using RPi3 + Kinetic Puck 1090.My settings are as follows

--inSerial /dev/ttyUSB1:3000000:none
--outServer beast:30005
--add-points 38.44:27.01
--location 38.44:27.01
--web 8787

but I have been getting a connection error for 2 days...

2020-08-31 00:08:39.056  ERROR    inSerial(/dev/ttyUSB1:3000000) error open No such file or directory
2020-08-31 00:08:39.056  INFO     inSerial(/dev/ttyUSB1:3000000) Reconnect in 10 seconds
2020-08-31 00:08:49.057  ERROR    inSerial(/dev/ttyUSB1:3000000) error open No such file or directory
2020-08-31 00:08:49.057  INFO     inSerial(/dev/ttyUSB1:3000000) Reconnect in 10 seconds
2020-08-31 00:08:59.057  ERROR    inSerial(/dev/ttyUSB1:3000000) error open No such file or directory
2020-08-31 00:08:59.057  INFO     inSerial(/dev/ttyUSB1:3000000) Reconnect in 10 seconds

I can't find the reason. Can you help me?


Before;
there was no problem  :(
Using SBS-1, Fr24Box, Puck1090

sergsero

Sorry, yes, it is my fault that the processor architecture is not explicitly specified. All these builds above are made for Intel x86-64 architecture.

IanH

sergsero

Thank you for the Debian 10 version. As abcd567 says Ubunti version does not run (despite trying to symlink libraries) so I have been using the 2015  ::) Debian version of MM2

abcd567

Ian H

I have successfully installed following latest version without need for any workaround for libraries:

On Ubuntu 20 amd64 & Kali Linux 2020 amd64
modesmixer2_ubuntu_20.04_x86_64_20200714.tgz

On Debian 10.5 amd64
modesmixer2_debian_10_x86_64_20200714.tgz



radioman1511

Hi greetings Why can´t see no registration code. I use dump1090-fa and Debian10.5.


[attachment deleted reduce file load]

Anmer

Here to Help.

radioman1511

I have it,the problem was the BaseStation.sql. Thanks for all.greetings radioman1511