Welcome to Radarspotting. Please login or sign up.

May 30, 2026, 01:40:56 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 2 Guests are viewing this topic.

IanH

Carl

It seems that you have an SBS-1 so why are you trying to use ModeSDeco? That is only for getting information from a dongle. Or perhaps I am not understanding what you are trying to do.

If you are trying to get data from a dongle into BaseStation, what command line are you using? What is the content of your batch file - don't show the screen shot of what happens after you try to run it, show us the text that includes "modesdeco.exe" with the options you have selected.

Carlos

I am trying to use a dongle rather than my sbs box to get the data into basestation. The batch file I am using is just one I created from sergsero.

Thanks

Carl

IanH

Two possible batch files are shown in these threads:

http://radarspotting.com/forum/index.php/topic,2913.msg23144.html#msg23144

http://radarspotting.com/forum/index.php/topic,4885.msg22952.html#msg22952

Just make sure that you create the batch file in the same folder that ModeSDeco is in.

And show us your batch file so we can see possible errors!

Carlos

I tried both of the batch files from msg 23144 and 22952 and they both seem to get further than before.

In the command window now I get 'Coverage area was determined' and it says SBS-3 login.

However it still says 'Not connected to SBS-1'.

MrParanoia

Quote from: Carlos on February 17, 2015, 08:14:07 PM
I tried both of the batch files from msg 23144 and 22952 and they both seem to get further than before.

In the command window now I get 'Coverage area was determined' and it says SBS-3 login.

However it still says 'Not connected to SBS-1'.

Your network address in the Basestation software should be 127.0.0.1 and the port 10001 if you are running the software on the same PC that the dongle is connected to

IanH

QuoteYour network address in the Basestation software should be 127.0.0.1 and the port 10001 if you are running the software on the same PC that the dongle is connected to

I agree that using 127.0.0.1 is my normal setup in BaseStation but I tried Carlos' approach today of using the IP address in BaseStation. It works but takes a bit longer to get to the SBS-3 login prompt. 127.0.0.1 avoids the need to know the IP address of the PC.

But that isn't the problem.


IanH

Carl

Can you try adding --verbose to the end of the batch file?

That should generate a lot of output after the SBS-3 login prompt and will show that the dongle is actually receiving data. Do you get any output?

And you still haven't shared your batch file with us. We are trying to help but we need information!

------------------------------------------------------------------------------------------
My minimalist batch file which works is this - any extras can be added once you have a working set up.

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

------------------------------------------------------------------------------------------

If BaseStation is starting but not connecting, another option is something wrong with the BS files - too many operator flags can delay the start of BS, etc. So the problem may not be ModeSDeco - hence the need to check what is happening

blkno1

Trying to get silhouettes working.  This is on a ras pi.

All files are in /silos dir

pi@ironhide ~/modesdeco $ ls -la
total 7956
drwxr-xr-x  3 pi pi    4096 Feb 18 11:59 .
drwxr-xr-x 15 pi pi    4096 Feb 18 11:09 ..
-rwxr-xr-x  1 pi pi 6497948 Feb 16 13:38 modesdeco2
-rwxr-xr-x  1 pi pi 1581124 Feb 18 11:06 modesdeco2.bak
drwxr-xr-x  2 pi pi   36864 Feb 18 11:57 silos
-rw-r--r--  1 pi pi    4650 Feb 18 11:53 wmm.cof



pi@ironhide ~/modesdeco $ ./modesdeco2 --gain 49.6 --freq-correction 53 --web 8080 --silhouettes /home/pi/modesdeco/silos  --localtime
2015-02-18 12:18:55.218  INFO     ModeSDeco2 v.20150216
2015-02-18 12:18:55.253  INFO     Magnetic declinations coefficient file wmm.cof load successful
2015-02-18 12:18:55.283  INFO     Using device:  0 mnf: Realtek prod: RTL2838UHIDIR serial: 00000001
2015-02-18 12:18:55.855  INFO     Supported Gains (dB):  0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
2015-02-18 12:18:55.856  INFO     Sample Rate: 2.0 MHz
2015-02-18 12:18:55.857  INFO     Freq: 1090.0 MHz
2015-02-18 12:18:55.862  INFO     Freq Correction: 53 ppm
2015-02-18 12:18:55.915  INFO     Gain: 49.6 dB
2015-02-18 12:19:13.106  INFO     Magnetic declinations calculated done

Carlos

Sorry as you can guess I am a novice at this and do appreciate the help.

My batch file is just a copy of what I have been advised to use:

@echo off
cmd /c  modesdeco2.exe --device-index 0 --gain 49.6 --freq-correction 64 --sbs10001 10001 --verbose
PAUSE
exit

I added the --verbose and ran the batch file.

The output showed it is working as data is being received(I have attached a screen print of it)

I have tried 127.0.0.1 and the IP of my actual PC to no avail. It still keeps saying not connected.

[Attachment deleted by Admin to save file space]

IanH

Carl

Thanks for that information. Very helpful. It looks like ModeSDeco is generating data so lets look at BaseStation instead.

Can you check the setting shown below in the screenshot. You may be changing the IP address but unless set as shown, it won't receive over the network.

If that is ok, we will have to try something else  ;D

[Attachment deleted by Admin to save file space]

IanH

blkno1

Not tried that option yet so can't help at the moment  ;)

Sergsero keeps adding options and I can't keep up!

Carlos

Thanks Ian yes I have it set to network.
Could it be related to where my basestation is located on my computer?

Its a windows 7 laptop and I had to install it into the following location for it to work with my SBS box:
c:\Users\Duckworth\Appdata\Local\VirtualStore\Program Files (x86)

IanH

Carl

No idea if that is the problem.

But whenever I install BaseStation, during the install process I make sure that I change the install directory to something simple like C:\Kinetic\BaseStation. Makes life easier, I find.

Let's see if anyone else has an opinion.

You could save the current setup following these instructions: http://radarspotting.com/forum/index.php/topic,4929.msg23188.html#msg23188 and reinstall but I don't know if that would make any difference. Wait for other comments before doing that.

One thought - does BaseStation still work when connected to your SBS-1? Process of elimination to see if BaseStation is ok!

Ian

Carlos

Thanks Ian I will check that message.

Yes as soon as I change back to my sbs box with the setting changed to usb rather than network it works fine.

Its a strange one!

Thanks

Carl

sergsero

Hello,

New test version of ModeSDeco2 20150220.

+ fixed some bugs

+ added interpretation of airport codes on route. To see, place cursor in rotation on the ICAO airport codes

+ added second table on Google map that displays list of aircraft. To ON/OFF, you need to press on button in right side of header

+ added decoding and displays IC (Interrogator code): II (Interrogator identifier) and SI (Surveillance identifier)


Thanks,
sergsero

[Attachment deleted by Admin to save file space]