Welcome to Radarspotting. Please login or sign up.

June 15, 2026, 11:11:58 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.

Radio2.0

>>> I looking for People who want exchange the VRS Data with me. <<<
I life near LOWW / VIE and see Ground Traffic too.



Radio2.0

QuoteJust use the option "--rbs" and everything is fine!
thx can VRS Handle Mode A, C Data?
Here in Vienna Area there are more People who use Dongle to.
>>> I looking for People who want exchange the VRS Data with me. <<<
I life near LOWW / VIE and see Ground Traffic too.

LX-LGN

Hi all,

Last few nights I have set up RTL1090 on to an old laptop with asdbscope and it's working ok. I tried tried to set up the modesdeco2 on to it but it seems slower and not as good. I know that modesdeco is a good program and was hoping to use it.

1. Is there a step by step for setting up modesdeco (and modemixer) for those that are not quite as good at doing it?

2. On sonicGoose's site he had a good article on setting up the RTL1090 and base station. It is VERY fiddly and can go wrong. He mentions in a comment that the modesdeco/modemixer can be used to access the basestation a lot better than the way he originally did it. Is there a step by step set of instructions on doing this?

Thanks in advance.

Triple7

I might have a go at setting this combination up over the weekend and if it works, I'll try and do a write up - unless Ian H comes along with one of his excellent step by step's first.

I already use ModeSMixer2 to take the feed from my SBS and feed it into Basestation so I can feed the output to more than one machine on my LAN. That works exceptionally well. So the bit needed (for me) is the front end decoding from a dongle.

You might be able to work through it yourself as there are some notes in the files with both programs.

But in essence, you need to extract ModeSDeco2 into a folder of your choice probably best to keep it outside the Program Files or Program Files (x86) folders, create a batch file using the parameters you require - see the text file extracted from the archive and then plug the dongle in and run the batch file.

A very brief look at the sample batch file provided would suggest as a minimum you need:

@echo off
cmd /c  modesdeco2.exe --gain 49.6 --freq-correction xx --sbs10001 10001 --web8088
PAUSE
exit


--freq-correction xx will need to be determined by using SDR#  see this post for using SDR# http://radarspotting.com/forum/index.php/topic,3182.msg22838.html#msg22838

That should give an output on port 10001 that can then be used by ModeSMixer2 to send the data to Basestation.  --web8088 gives an output so you can view it in a web browser see pic here http://radarspotting.com/forum/index.php/topic,2978.msg22583.html#msg22583

What I am not sure of is whether you need the Zadig drivers installed when using ModeSdeco2 - try it without and see.

Then extract ModeSMixer2, new folder, batch file etc. etc.

@echo off
cmd /c  modesmixer2.exe --inConnect IP Address of your PC with dongle (or maybe 127.0.0.1 might work - not sure):10001 --web 8088 --outServer sbs10001:10001
PAUSE
exit


In Basestation under Settings>>Hardware settings>> Network tab enter the IP address of your PC running the dongle, again maybe 127.0.0.1 might work.

The above are my first thoughts so should be seen very much as E&OE - corrections welcome.

There are a host of other options in Sergsero's programs so it's well worth reading the help files and looking at the example batch files provided. Not forgetting the Mode A/C switch --rbs as noted above.

I've used ModeSDeco2 on my RPi2 and slow, it certainly is not - it's a great piece of programming imo.

Tim

EDIT colon added between 10001's in ModeSDeco batch file code
EDIT2 colon removed again
SBS-1eR, FA ProStick + 1090 filter

Triple7

Update.

It works perfectly as I thought it would. Tested on my laptop Intel i3, 2.2 GHz, 6 GB RAM, Win 8.1 - 64 bit.

The only slight change is I didn't bother with the freq offset as I couldn't get SDR# to receive anything meaningful for me to check, but that doesn't seem to matter as ModeSDeco works absolutely fine without that setting.

So the (basic) ModeSDeco batch file is:

@echo off
cmd /c  modesdeco2.exe --gain 49.6 --sbs10001 10001 --location xx.xx:-xx.xxx --web 8088 --rbs
PAUSE
exit


Saved as MD2.bat in the ModeSDeco2 folder. With that running and decoding open a browser and assuming the dongle is on the same PC as you want to view the output on, you can use this URL - 127.0.0.1:8088 and you'll get the graphical display and tables displaying. You can then add any other commands you want, like the database location, silhouette location etc. to enhance the display

ModeSMixer same idea.

Batch file:
@echo off
cmd /c  modesmixer2.exe --inConnect 127.0.0.1:10001 --outServer sbs10001:10001 --filter-nocountry
PAUSE
exit


Saved as MM2.bat in the ModeSMixer2 folder.

You may want to add --outServer sbs30006:30006 as that should give the additional info for beamfinding (etc) in PP, it didn't work on my laptop but then that has never worked even when connected to my SBS1er so that is not a problem with either of the ModeSxx programs.

The only other things I needed to do was change the input setting in BaseStation from USB to Network and in Hardware Settings make sure the address is 127.0.0.1 and it's plotting perfectly.

It also connects into PP as well when using the SBS settings, but don't tell Satcom or he'll send the boys round   ;)

Thanks Sergsero for your work - these programs work really well. Next step will be to have a go with AcarsDeco2, but that's for another day.

Tim

EDIT colon added between 10001's in MD2.bat file code
EDIT2 colon removed again
SBS-1eR, FA ProStick + 1090 filter

LX-LGN

Cheers Tim you are amazing.

I now have the basestation and the modes/modemixer talking to one another..

I noticed one problem.

The basestation and the web browser (127.0.0.1:8088) do not show the plane registrations. It shows ICAO (hex) but not the registrations. What have I done wrong ?

Triple7

The amazing one is Sergsero, he wrote the programs, I just wrote a few words on how to use them.

I suspect you need to modify your MD2.bat file to include some or all of the following:

--db D:\temp\dbase\basestation.sqb --frdb D:\temp\dbase\flightroute.sqb --silhouettes D:\temp\images\silhouettes --pictures D:\temp\images\pictures

Meaning .....

--db enter the location of your basestation.sqb file
--frdb enter the location of your flightroute.sqb (if you have one)
--silhouettes enter the location of your silhouettes folder
--pictures enter the location of the folder you keep you photos in (if you have one)

That should then populate the web browser with with that information.

In BaseStation, is your basestation.sqb file in the same folder as the rest of the program?

Tim
SBS-1eR, FA ProStick + 1090 filter

LX-LGN

Quote from: Triple7 on April 26, 2015, 02:13:31 PM
The amazing one is Sergsero, he wrote the programs, I just wrote a few words on how to use them.

I suspect you need to modify your MD2.bat file to include some or all of the following:

--db D:\temp\dbase\basestation.sqb --frdb D:\temp\dbase\flightroute.sqb --silhouettes D:\temp\images\silhouettes --pictures D:\temp\images\pictures

Meaning .....

--db enter the location of your basestation.sqb file
--frdb enter the location of your flightroute.sqb (if you have one)
--silhouettes enter the location of your silhouettes folder
--pictures enter the location of the folder you keep you photos in (if you have one)

That should then populate the web browser with with that information.thanks.

In BaseStation, is your basestation.sqb file in the same folder as the rest of the program? yes it is.

Tim
I installed AD lite and it populated the basestation with the Regs.

I have added the other code you put up just now.

But again on starting the basestation it wasn't until starting AD Lite was started the regs showed up.

I amended the MD2 file

-@echo off
cmd /c  modesdeco2.exe --gain 49.6 --db C:\adsb\basestation\basestation.sqb --silhouettes C:\adsb\basestation\operatorflags\ --sbs10001 10001 --location 51.39:-0.09 --web 8088 --rbs
PAUSE
exit

Triple7

Maybe something or not, but your code should have a colon between the 2 x 10001's ...... --sbs 10001:10001 which I see is my error in my posts - I have amended them to reflect the correct syntax - sorry.

Otherwise your batch file looks fine.

Tim
SBS-1eR, FA ProStick + 1090 filter

LX-LGN

My MD1 (ModeSdeco .bat)bat

-@echo off
cmd /c  modesdeco2.exe --gain 49.6 --sbs10001 10001 --db C:\adsb\basestation\basestation.sqb --silhouettes C:\adsb\basestation\OperatorFlags --location 51.39:-0.09 --web 8088 --rbs
PAUSE
exit


MM2.bat (ModeMixer .bat file)

@echo off
cmd /c  modesmixer2.exe --inConnect 127.0.0.1:10001 --outServer sbs10001:10001 --filter-nocountry
PAUSE
exit


These now look right but alas when run I still get

ERROR unrecognised option '--sbs10001:10001'

If I leave out the : it works ...

maaw

Hi, could you compile the latest version of modesdeco2 for openwrt? Thank you

Triple7

Quote from: LX-LGN on April 26, 2015, 04:34:42 PM

ERROR unrecognised option '--sbs10001:10001'

If I leave out the : it works ...

Yes, upon checking the ModeSDeco2 files, it would seem that the ModeSDeco2 batch file does not require the colon, it's only the ModeSMixer2 batch file that does.

Sorry, can't see the wood for the trees, it's a pain in the colon, that's for sure.

Tim
SBS-1eR, FA ProStick + 1090 filter

sergsero

Hi Triple7,
Quote from: Triple7 on April 26, 2015, 02:13:31 PMI just wrote a few words on how to use them

You do the work, which is often more important, that programs will be finding its users.
And I'm very grateful for your help.

sergsero