Welcome to Radarspotting. Please login or sign up.

April 19, 2025, 12:29:36 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.

ModeSMixer2

Started by Dreamliner787, March 11, 2025, 06:22:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dreamliner787

Is there a guide to setup Basestation to receive data from raspberry pi ?

help appriciated

Anmer

There's no Guide here but it's quite easy.  I assume you're running a RPi with an SDR connected?

Basically you need to use ModeSMixer2 as "middleware" to get data from the RPi decoding software and make it available in BasseStaion format.

You can install ModeSMixer2 on the Windows PC running BaseStation.

What are you running on the RPi?
Here to Help.

Dreamliner787

ADSB.im on Raspberrypi 4 with a rtl-sdr V3 from jetvision.

Dreamliner787

do I install on my pc or on the pi itself ?

Anmer

Quote from: Dreamliner787 on March 11, 2025, 06:47:34 PMdo I install on my pc or on the pi itself ?

No, install ModeSMixer2.exe on the pC running BaseStation. Maybe create a new folder for it.

You then need to create a .txt BAT file such as this:

@echo off
CMD /c I:\MSM2\modesmixer2.exe --inConnect 192.168.1.136:30003 --filter-nocountry --outServer sbs10001:10002
exit

In the above example, my ModeSMixer2.exe is on my I drive in a folder named MSM2.  Your Bat file should replace that with your location path.

I assume ADSB.im outputs suitable data on the RPi?  For example, in the above, my RPI has a local IP address of 192.168.1.136 and suitable data is on port 30003.  Yours will be different.

In BaseStation you set the data source as Netweork and the local IP address of the PC running ModeSMixer and port 10002.

You can run ModeSMixer2 on the RPi, but you might find it easier on the PC.


.
Here to Help.

Dreamliner787

ok I downloaded mm2 on pi4, setup seemed to go alright .

I can see my data on 192.xxx.x.xxx: 8xxx.

cannot open mm2.conf on Pi, to enter location.

Msg , Directory '/user/share/mm2' does not exist

Dreamliner787

connect host 127.0.0.1:3xxxx,error connection refused

reconnecting in xx seconds

it's doing this with mlat

Anmer

Can you post your bat file contents please?
Here to Help.

Dreamliner787


Oldfella

G'day Dreamliner,

Check out this posting on Radarspotting site to get MM2 up and running.

https://radarspotting.com/forum/index.php/topic,16004.0.html

Use the 32 bit version not the 64 version as per ABCD's instructions.

Apparently you need to run the 32 bit version of Bookworm O/S on the Pi4 not the 64 bit version of Bookworm. By the way, MM2 will not run on the Pi5 because only the 64 version of Bookworm is available.
Oldfella

Dreamliner787

hi,

I'm using the ADSB Feeder Image from adsb.im, not sure if you can use that and bookworm ?
Or does MM2 work with adsb.im image.

Anmer

Why not save MMS2.exe and the bat file on the PC running BaseStation?

Wherever you place it the bat file has to be executed.
Here to Help.

Anmer

Can you post the contents of the bat file?
Here to Help.

Oldfella

#13
Quote from: Anmer on March 11, 2025, 06:38:50 PMThere's no Guide here but it's quite easy.  I assume you're running a RPi with an SDR connected?

Basically you need to use ModeSMixer2 as "middleware" to get data from the RPi decoding software and make it available in BasseStaion format.

You can install ModeSMixer2 on the Windows PC running BaseStation.

What are you running on the RPi?

Further to my earlier post, ABCD went on to help me set up MM2 on the Windows PC to get the ADSB data feed from my Pi5 running PiAware. I'm assuming that this setup will also run on a Pi4.

The last Windows version of MM2 that Sergsero released was 20190413. If you don't already have it, can be downloaded from ABCD's github site -

https://github.com/abcd567a/mm2/releases/download/v1/modesmixer2_windows_20190413.zip

I then unzipped this into a new folder in C:/ drive named ModesMixer2.

Copied the modesmixer2_example.bat file and renamed it MM2.bat file and edited it to something like this:-

@echo off
cmd /c c:/MM2/modesmixer2.exe --web 8888 --location -33.00:150.00 --inConnect 192.168.x.xx:30005 --inConnectId 192.168.x.xx:30105:MLAT --outServer sbs10001:10001 --outServer msg:30003 --outServer beast:31001 --outServer msg:30003 --valid-modes 0:5
PAUSE
exit

What this does is connect MM2 to your Pi's IP address (192.168.x.xx) that's running PiAware and takes the ADSB feed from port 30005 and MLAT feed from 30105 to your BaseStation port 10001. In BaseStation, in the settings option>Hardware Settings>Network, make sure 127.0.0.1 is in address and 10001 in port boxes. BTW I'm using the FlightAware blue dongle. Best to start the MM2.bat software first before BaseStation.

I, and sure others, owe ABCD and Anmer a big vote of thanks for all their hard work behind the scenes in helping us to enjoy this hobby.
Oldfella

Anmer

To add to Oldfella's latest post.

  • On what port does ADSB.im output the quivalent data to PiAware's port 30005?
  • Please post your contents of the MMS2 bat file which must always be executed to provide the data for BaseStation
  • This post may help.  Check the IP address for the RPi running ADSB.im
Here to Help.