Welcome to Radarspotting. Please login or sign up.

July 01, 2026, 12:23:55 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 4 Guests are viewing this topic.

moon23

Hi Sergsero

My modesdeco2 bat file is like:

@echo off
cmd /c  modesdeco2.exe --gain 49.6 --filter-nocountry --freq-correction 63 --location xx.3891:xx.0156 --web 8088 --rbs --beast 30048 --msg 30030 --sbs10001 10000
PAUSE
exit

and modesmixer2 bat file is like:

cmd /c modesmixer2_xp.exe --inConnect 127.0.0.1:30030 --outServer msg:30033 msg:30003 beast:30048 sbs10001:10001 --web 8000 --location xx.3891:xx.0156 --localtime --log-level 4 --disable-web-log --metric m

and I am using 820 T2 SDR and  modesmixer v.20161227
My problem is; I can't see the WDIR,WSPD,TEMP and IC values and mode A/C on the web page.
Please let me say how should I configure the modesdeco and modesmixer bat files?

Regards Ayhan

sergsero

Hi Ayhan,

This values will be obtained by the calculation method of the TAS/IAS/MACH, when an aircraft is in the area of ground Mode S interrogator.
If you see these TAS/IAS/MACH in the left details form , then you should see and meteo conditions in WDIR/WSPD/Temp datasheet.

I would recommend to optimize your settings this way.

Data interchange between any programs must be made only through BEAST RAW data format, so as not to lose the received information.
MSG format is unsuitable here. And overall, today it would be better to forget about MSG format as insufficient and obsolete. Only for restricted use in data exchange with legacy programs.
In your case MSG format doesn't allow to transfer Mode A/C messages, so you couldn't see them

So, delete duplicate options (--web 8088, --msg 30030, --sbs10001 10000) in modesdeco2, leaving only its SDR receiver functions. Without WEB visualization on the Google map - it will be in the modesmixer2:

@echo off
cmd /c  modesdeco2.exe --gain 49.6 --freq-correction 63 --location xx.3891:xx.0156 --rbs --beast 30048
PAUSE
exit


The option --filter-nocountry  allows accepting messages from aircraft with ICAO unallocated address which may be just noise generated. Use depending on the situation with radio-jamming.

If both programs are running on the same computer, check - is it operating system Windows XP or Windows 7/8/10? Use the identical version .exe files for both programs.

The settings for modesmixer2 will be as follows:

@echo off
cmd /c modesmixer2.exe --inConnect 127.0.0.1:30048 --outServer msg:30033 --outServer sbs10001:10001 --web 8000 --location xx.3891:xx.0156 --localtime --disable-web-log --metric
PAUSE
exit


All output options in both programs supports multiple access, so one is enough for each type of format, no repeat.



Regards,
sergsero

moon23


sergsero

Hi,

According to my observations, I found the cause of the monotonous increase of CPU loading on ARM platforms.
I would be really grateful if someone can test this fixed version and confirm or deny this information.

Raspberry Pi 2/3: modesmixer2_rpi2-3_20170127.tgz https://drive.google.com/open?id=0B7NYXizl0U6iZHcyOUpxMUpnUUU (Raspbian GNU/Linux 8.0 (jessie))

I did not change the version number because I want to continue optimizing the program.

In the earlier message #901 on: 28-01-2017, 19:54:28 http://radarspotting.com/forum/index.php/topic,2978.msg32373.html#msg32373, I also replaced the executable files in archives, because the effect from code optimization for ARM CPU has proven to be useful for x86 platform too.

Sincerely,
sergsero

neilz

Hi sergsero,

I have just installed your revised version onto my pi3 and will let you know how it goes over the weekend.

Thanks again for your efforts with this!

neilz

spotter.ssol

--

neilz

Everything ok for me too so far. Been running for over 24 hours and CPU usage is still low :)
PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND   
1747 root      20   0   26640   7868   1848 S  23.2  0.8   2409:33 dump1090   
15064 piaware   20   0   13100   9772   6340 S  12.3  1.0 300:16.88 fa-mlat-cl+
17196 root      20   0   52400  24120   7564 S   7.0  2.5 113:16.90 modesmixer2
  765 root      20   0   88740   6640   3680 S   4.6  0.7 413:56.59 fr24feed   
  747 root      20   0   95976   5840   3856 S   3.7  0.6 281:44.30 pfclient   
  708 piaware   20   0   23180   9524   5432 S   0.7  1.0  48:25.99 piaware   

sergsero

Hi,

Thank you for the help of testing.
I hope that the result of CPU usage will not change after long-term run tests. :)

Best regards,
sergsero

neilz

Hi sergsero,

Been running from 10th 6.30am till today fine, unfortunately had a minor power outage around 5pm before I could login to check CPU but still looking good so far.

Thanks,
neilz

I_Need_help

Hi Sergsero et al,
             I just got a PI 3 so I can return to the world of ADS-B :)

I'm running modesdeco2_rpi3_20160520 and cant get the maps to display even by going to the table and clicking the world. it shows the map for a second then the oops message.

reading this thread i see that the Mixer has a fix --google-key <my API Key> I have tried adding the same key to Modesdeco2  but i guess it is not supported yet?

how should I get around this problem?

should I be using Modesdeod2 feeding in to ModeSMixer2 and using that to serve the map?

sergsero

Hi,

QuoteOops! Something went wrong.This page didn't load Google Maps correctly. See the JavaScript console for technical details.

This message indicates that map has been blocked by Google because missing an API key.

The current version for Raspberry Pi 3 now is modesdeco2_rpi3_20170127.tgz.
It supports Google API key and can be downloaded via the link in the first message of this forum thread.

Currently, however, the version of modesdeco2 for ARM can significantly use CPU resources when working with RTL dongle and high air traffic. That's why I do now his optimization, as was the case with modesmixer2.

Regards,
sergsero





I_Need_help

Thank you Sergsero, I down loaded it from http://xdeco.org/?page_id=30 I had thought this was the main site for the application.

sorry for that I will down load the one you say and watch this thread for an up date, keep up the great work, thanks.

neilz

Hi Sergsero,

Have had Modesmixer2 run for 5 days without any CPU issues so I think it's fairly safe to say the problem is fixed :)

Oldfella

G'day Sergsero,

Like Neilz, also have the latest Modesmixer2 running now and do not have any CPU issues.

Thanks again for your efforts.
Oldfella

larsras

Just wonder whether the MLAT functionality is of any usage for windows browser output or is it just RPi feature?