Welcome to Radarspotting. Please login or sign up.

May 25, 2026, 11:02:05 PM

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.

Anmer

Welcome Paul.

What are you running on the RPi that you expect to process the SBS-1 data?  I assume it's an SBS-1 without Ethernet?
Here to Help.

bumpy_up_here

Hi Anmer,

Your posts have been very helpful over the years, I have referenced many of them over the last few days - thank you.

I am running modesmixer2 and yes you are correct, it is an SBS-1 without ethernet.

One theory I had was that the SBS-1 wasn't getting enough power from the USB socket, so I dug out my original 5v power supply that it came with. Unfortunately it made no difference.

I have tried every combination of port/output I can think of, without success, hence why I've reached out for some help.

The command I am running is:-

./modesmixer2 --inSerial /dev/ttyUSB1:921600:none --outServer sbs10001:10001 --log-level 5 (I have also tried running this with sudo, plus I have done the sudo usermod command from Sergsero's post, mentioned earlier, rebooted etc. Have also tried USB0, have tried both USB0 and USB1 as 2 x inSerial inputs)

The PC based Basestation.exe is definitely talking OK to the RPi feed, as I see messages appear when I try to connect (different messages for different ports).

My gut feeling at the moment, which I have yet to explore further is either a) it won't work whatever I do due, to a change in either OS or modesmixer since 2016 (as per MrMac's entry) or whether I need to do anything with FTDI drivers on the RPi before it will work - I do note that there is no green light on the SBS-1 when connecting. I explored both dump1090 and modesdeco, but please correct if I'm wrong, they are for dongle based feeds only?

I do get an unusual message about SBS-3 LOGIN when connected, which seems to fail after a few seconds - I can provide the exact details if that would help?

MTIA.
Paul.

Edit - had a thought and referred back to Sergsero post on Page 33 - he specifically mentions a Pi 2 - I am using a Pi 3B+ so I wonder if anyone (maybe MrMac?) had this working on a Pi 3B+. I have a friend who can lend me an older Pi so will ask if I can borrow his for a test. Cheers.

Edit2 - borrowed an original Pi B, set it up with Stretch and downloaded the Pi1 version of modesmixer2 - get exactly the same symptoms as my Pi 3B+.
I don't suppose anyone has any older Pi1/Pi3 versions of modesmixer2 maybe from around 2015/16 they could let me try, please? Have tried searching for older versions without success. For me, the big clue is the lack of a green light on the SBS-1 when plugged into the Pi - all functions well when plugged into PC (including green light).

IanH

sergsero, any chance to have an x86_64 version of modesmixer2 for Debian Stretch that removes the following error?

./modesmixer2: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

I am having to use a 2015 version as a workaround for this. Various "ln -s" suggested fixes for similar problems have not worked  :(

sergsero

Hello IanH,

Quote from: IanH on June 22, 2019, 09:01:42 PM
...error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory...

I checked the current version of the libssl library in Debian 9 Stretch. At the moment it uses version 1.1.0 j-1~deb9u1:
sergsero@debian9:~$ lsb_release -a
Distributor ID: Debian
Description:    Debian GNU/Linux 9.9 (stretch)
Release:        9.9
Codename:       stretch
...
sergsero@debian9:~$ apt list libssl-dev
Listing... Done
libssl-dev/stable,stable,now 1.1.0j-1~deb9u1 amd64 [installed]


If you are maintaining a current versions of packages periodically executing command: 'sudo apt-get update && sudo apt-get upgrade' to install available updates for all packages installed on the system it would, most likely, that you already have this version installed.

Here is the modesmixer2 that was built with this version of the library:
https://drive.google.com/open?id=1RHGpQPmZgOrPEvhKNiADZqfmOQxmDZXN

The following is the output of ldd command for the modesmixer2 v.20190413 ('ldd' is a command line utility that is used to print the shared objects (shared libraries) required by each program):
sergsero@debian9:~$ ldd modesmixer2
        linux-vdso.so.1 (0x00007ffe40b02000)
libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f3ce93a1000)
libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f3ce8f08000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3ce8ceb000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3ce8ae3000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3ce88df000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3ce855d000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3ce8259000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3ce8042000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3ce7ca3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3ce9bb5000)


Best regards,
sergsero

IanH

sergsero

Thank you  ;D

My outpu of "lsb_release -a" and "apt list libssl-dev" were identical to what you posted.

The modesmixer2 v.20190413 version is now working on my system  8)


Thanks also to graeme61 who offered a fix for the problem - with the recent version of modesmixer2 I do not need to try that.

Ian



glenn68

With the problem with Google maps stuck into developers mode will there be a way or a update that will allow the use of other maping services or programs like open street or Bing map layers?

Glenn Blum
Central Texas, USA

mlino

Hi!

Where can I get the latest version of modesdeco2?

Cheers,

Marcio


abcd567

ModeSMixer2 installation script for RPi 2/3/4, Raspbian Stretch/Buster

Copy-paste following command in SSH console and press Enter key.
The script will install and configure modesmixer2.


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



After script finishes, it displays following message

=======================
INSTALLATION COMPLETED
=======================
PLEASE DO FOLLOWING:
Open file mm2.conf for editing by following command:
sudo nano /usr/share/mm2/mm2.conf
replace xx.xxxx and yy.yyyy
by your actual latitude and longitude
in following line:
--location xx.xxxx:yy.yyyy

Web interface at:  http://ip-of-pi:8787

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 data supplied by a decoder like dump1090-mutability or dump1090-fa running on the RPi.
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
--location xx.xxxx:yy.yyyy


doctorvenables

Hi everyone,

I've been using ModeSMixer for quite a while now. Very happy. Great product!

Just one thing bothers me - if I have to power down my pi for whatever reason, I lose all that lovely data I've built up.

Is there any way of backing this data up at all? Where is it stored. Couldn't find it in /var/www for example.
Thanks!

Anmer

Here to Help.

doctorvenables

Hi,
No I have piaware on my pizero, which feeds both the adsb and mlat data to modesmixer on a second pi. Not using VRS at all (used to - switched to modesmixer about a year ago.)

Anmer

Thanks.

I saw VRS in your signature and was going to ask if you have a BaseStation.sqb running with it.

I'm guessing there's no database with your setup?  But others, with ModeSMixer experience, may know better?
Here to Help.

abcd567

I am using latest version of modesmixer2 (modesmixer2_rpi2-3_deb9_20190223.tgz) on RPi. It retains all MAP data (maximum range plot) even after reboot.

I installed it using following bash script:


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


This method works on following images:

  • Piaware SD card image, with integral dump1090-fa.


  • Raspbian Stretch/Buster images with package install of piaware + dump1090-fa/dump1090-mutab.

Please see my above post for details.

https://radarspotting.com/forum/index.php/topic,2978.msg42781.html#msg42781

doctorvenables

Ahh I see my signature was well out of date. Have fixed.

Thanks Anmer - I do have BaseStation.sqb and flightroutes.sqb running at that's fab.
abcd567 - that's a new one on me to install like that. Previously I'd just been downloading the .tgz file unzipping into a folder and using a sh script involving the screen command. I'd been playing with trying to write a service yet it looks like that's all been taken care of! Will try reinstalling with your method - Im sure it'll work.