Radarspotting

Mode-S Software => ModeSMixer & ModeSDeco => Topic started by: sergsero on August 09, 2013, 03:08:08 PM

Title: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 09, 2013, 03:08:08 PM
v.20180429 ModeSDeco2 for RTL2832 DVB-T dongle and AirSpy SDR

(http://i11.pixs.ru/storage/5/7/5/modesdeco2_6015997_30102575.jpg)

ModeSDeco2 is a console (command line) Mode S decoder specifically designed for working with RTL2832U chip dongles or AIRSPY SDR devices in Windows and Ubuntu Linux on Intel/ARM platform with sufficient computing power of processor.

Example for RTL:
C:\modesdeco2.exe --gain 42 --freq-correction 62 --location 32.51:104.98 --web 8088 --db D:\data\basestation.sqb --frdb D:\data\flightroute.sqb --silhouettes D:\data\silhouettes --pictures D:\data\pictures --beast 10003 --msg 30003 --sbs10001 10001 --metric --web-auth admin:admin  --google-key AIXXxxxxXXXXxxxxxXXXXXxxxxXXXX

Example for AirSpy:
C:\modesdeco2.exe --airspy --location 32.51:104.98 --web 8088 --db D:\data\basestation.sqb --frdb D:\data\flightroute.sqb --silhouettes D:\data\silhouettes --pictures D:\data\pictures --beast 10003 --msg 30003 --metric --add-reference-point 56.39252:85.22168:THR21 --add-points 56.23667:83.98861:NN 56.69139:85.32917:SP 57.00722:82.05972:BA --web-auth admin:admin


Run program with the one option "--help" for getting the command-line options.
To stop the program, press the key combination <Control+C>

Since June 2016, Google Maps requires a special Google Maps API key. Without this key, you cannot display Google Maps in ModeSDeco2.
Before you can set this API key in your ModeSDeco2, you'll need to generate it. You must have a Google account to generate a key for Google Maps Javascript API. Go to the Google API Console https://developers.google.com/maps/documentation/javascript/ (https://developers.google.com/maps/documentation/javascript/) and click 'Get A Key'. If you want to use an existing project, please select it from the list. Otherwise, select 'Create a new project' and enter a project name, for example, modesdeco2. Than click 'Enable the API' (existing projects) or 'Create and Enable API' for new projects.
Copy the API key you generated from the Google Maps API Manager and add to command line the option "----google-key XXXX", where XXXX is your API key.




The aircraft and tower icon courtesy of Andrew Whewell http://www.virtualradarserver.com/ (http://www.virtualradarserver.com/)
The silhouettes courtesy of Ian Kirby http://www.sbsbst.co.uk/iank/ (http://www.sbsbst.co.uk/iank/)
The WEB page "Charts" use Highcharts http://www.highcharts.com/ (http://www.highcharts.com/)



(https://lh5.googleusercontent.com/-pl1OAyTtjew/Uf0Bdu_tTrI/AAAAAAAAB-4/CzRCoTOME1k/s64/microsoft_64_new.jpg)
v. 20180429
Windows 7/8.1/10 modesdeco2_windows_20180429.zip https://drive.google.com/open?id=1aV0ZNNZEOnHbpDEp5zqD4CPudcvRBlj5 (https://drive.google.com/open?id=1aV0ZNNZEOnHbpDEp5zqD4CPudcvRBlj5)

When you run this version of modesdeco2.exe you can get an error that msvcp141.dll and msvcr141.dll are missing in your OS.
Please, download the Microsoft Visual C++ 2017 Redistributable from the Microsoft site.
This package installs run-time components of Visual C++ libraries and can be used to run such applications on a computer even if it does not have Visual Studio 2017 installed.

You could download Microsoft Visual C++ 2017 Redistributable from here: https://www.visualstudio.com/downloads/ (https://www.visualstudio.com/downloads/) - Microsoft Visual C++ Redistributable for Visual Studio 2017 - the second paragraph from the bottom and check option for x86.
You will need to install file of 32 bit version VC_redist.x86.exe regardless of what bitness has your operating system!


(https://lh5.googleusercontent.com/-bxNinalbePI/UZHzGH8FBII/AAAAAAAABdo/VlAyYEbtGxo/s64-no/linux.jpg)
Ubuntu 18.04 intel 64 bit: modesdeco2_x86_64_u18.04_20180429.tgz https://drive.google.com/open?id=1wOv1JK8sgWYlCskqW4Udr1bBA0vvRX89 (https://drive.google.com/open?id=1wOv1JK8sgWYlCskqW4Udr1bBA0vvRX89)
Ubuntu 16.04 intel 64 bit: modesdeco2_x86_64_u16.04_20180429.tgz https://drive.google.com/open?id=1Z-35cNUZQNPOrHSI6HK3L1HG_dVkSbCo (https://drive.google.com/open?id=1Z-35cNUZQNPOrHSI6HK3L1HG_dVkSbCo)

Ubuntu 14.04 intel 32 bit: modesdeco2_i386_20170127.tgz https://drive.google.com/open?id=0B7NYXizl0U6iMk5OcUpSb1psWVU (https://drive.google.com/open?id=0B7NYXizl0U6iMk5OcUpSb1psWVU)

(https://lh5.googleusercontent.com/-vqqCI6Mrg4w/UZo7x7P7TYI/AAAAAAAABk8/0S5t9wU7c8k/s64/arm.jpg)
Raspberry Pi 2/3 Debian 9 32bit: modesdeco2_rpi2-3_deb9_20180429.tgz https://drive.google.com/open?id=17jJgbHCQE0DUb6cjcLOlJjbkySSfEZ80 (https://drive.google.com/open?id=17jJgbHCQE0DUb6cjcLOlJjbkySSfEZ80)
Raspberry Pi 2/3 Debian 8 32bit: modesdeco2_rpi2-3_deb8_20180429.tgz https://drive.google.com/open?id=1qoHcsm595Ulwdp-zT3wA811z0-GKczqq (https://drive.google.com/open?id=1qoHcsm595Ulwdp-zT3wA811z0-GKczqq)

Orange Pi PC2 Debian 9 64bit: modesdeco2_aarch64_orange-pi-pc2_deb9_20180429.tgz https://drive.google.com/open?id=1Vz3284W5q8uH3k-m5xeL53BIEUae9RN3 (https://drive.google.com/open?id=1Vz3284W5q8uH3k-m5xeL53BIEUae9RN3)

(https://lh5.googleusercontent.com/-Vmvyv0uu2nM/UcWva8Hwd8I/AAAAAAAABxs/HzK6e1kPhKw/s64/macosx_1.jpg)
OS X Yosemite 10.10: modesdeco2_osx_20150815.tgz https://drive.google.com/open?id=0B7NYXizl0U6iZlNONVVnMHkyLVU (https://drive.google.com/open?id=0B7NYXizl0U6iZlNONVVnMHkyLVU)



(https://dl.dropboxusercontent.com/u/79709204/Pictures/64px-Right-pointing_hand_in_green_octagon.svg.png)ModesMixer2 http://radarspotting.com/forum/index.php/topic,2978.msg15240.html#msg15240 (http://radarspotting.com/forum/index.php/topic,2978.msg15240.html#msg15240)
Title: Re: ModeSDeco concole program for RTLSDR
Post by: Anmer on August 09, 2013, 04:28:56 PM
Can you explain what this does, who will be interested in using it and why?
Title: Re: ModeSDeco concole program for RTLSDR
Post by: sergsero on November 19, 2013, 09:14:33 AM
ModeSMixer2

(http://i6.pixs.ru/storage/5/4/9/modesmixer_8057361_30571549.jpg)

This is a console (command line) program that can do:
Merge the data into a single network stream from any number of sources in different formats: binary BEAST, AVR, AVRMLAT, SBS30006, RAW Kinetic SBS10001, Basestation_30003 MSG and/or from serial physical interfaces - USB/COM ports (Windows) or /dev/tty* (Linux) This stream, in turn, may be issued to the network in various formats simultaneously. Type data format from network sources is recognized automatically. The data input can be in inConnect mode (pull from <address>:<port>) and inServer mode (listen data on own tcp-port <port>). Or inSerial mode for serial physical interfaces.[/li][/list]
Decoding/transcoding the input data to output feeds in different formats: binary BEAST, AVR, AVRMLAT, SBS30006, RAW Kinetic SBS10001, Basestation_30003 MSG.[/li][/list]
The data output can be in outConnect mode (push <address>:<port>) and outServer mode (listen data requests on own tcp-port <port>). Each output server can service multiple clients simultaneously.[/li][/list]

Example:
C:\>modesmixer2.exe --inConnect 192.168.0.2:50040 --inSerial COM4:3000000:none --inConnect 192.168.0.170:10001 --outServer msg:30003 --outServer sbs10001:10001 --globes 31008:table2:UUDD --google-key Zxxxxxx
./modesmixer2 --inSerial /dev/ttyUSB2:3000000:none --inConnect 192.168.0.10:10003 --web 8888 --db ~/tmp/basestation.sqb --frdb ~/tmp/flightroute.sqb --pictures ~/tmp/images --silhouettes ~/tmp/silhouettes

Run program with the one option "--help" for getting the command-line options.
To stop the program, press the key combination <Control+C>


v.20180616

(https://lh5.googleusercontent.com/-pl1OAyTtjew/Uf0Bdu_tTrI/AAAAAAAAB-4/CzRCoTOME1k/s64/microsoft_64_new.jpg)
Windows Intel x86: modesmixer2_windows_20180616.zip https://drive.google.com/open?id=1ffpj9_Q47mxh37ZBKEVdNpH87Ts8rC1F (https://drive.google.com/open?id=1ffpj9_Q47mxh37ZBKEVdNpH87Ts8rC1F)

When you run this version of modesmixer2.exe you can get an error that msvcp141.dll and msvcr141.dll are missing in your OS.
Please, download the Microsoft Visual C++ 2017 Redistributable from the Microsoft site.
This package installs run-time components of Visual C++ libraries and can be used to run such applications on a computer even if it does not have Visual Studio 2017 installed.

You could download Microsoft Visual C++ 2017 Redistributable
from here: https://www.visualstudio.com/downloads/ - Microsoft Visual C++ Redistributable for Visual Studio 2017 - the second paragraph from the bottom and check option for x86.
You will need to install file of 32 bit version VC_redist.x86.exe regardless of what bitness has your operating system!



(https://lh5.googleusercontent.com/-vqqCI6Mrg4w/UZo7x7P7TYI/AAAAAAAABk8/0S5t9wU7c8k/s64/arm.jpg)
Raspberry Pi 2/3 debian 9: modesmixer2_rpi2-3_deb9_20180616.tgz https://drive.google.com/open?id=1lV_tUMVIj_CvM3kxdkk8PX2pLLAJskw_ (https://drive.google.com/open?id=1lV_tUMVIj_CvM3kxdkk8PX2pLLAJskw_)
Raspberry Pi B+ debian 9: modesmixer2_rpi1_deb9_20180616.tgz https://drive.google.com/open?id=1c118DuM8P1jydOMJq89ytrxVwuD2RdG_ (https://drive.google.com/open?id=1c118DuM8P1jydOMJq89ytrxVwuD2RdG_)

Raspberry Pi B+ (Broadcom SoC BCM2835, ARM1176JZFS) Wheezy: modesmixer2_rpi1_20170506.tgz https://drive.google.com/open?id=0B7NYXizl0U6ieklhdWg1ZVBWTUU (https://drive.google.com/open?id=0B7NYXizl0U6ieklhdWg1ZVBWTUU) (Debian GNU/Linux 7.11 (Linux 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l GNU/Linux))


(https://lh5.googleusercontent.com/-bxNinalbePI/UZHzGH8FBII/AAAAAAAABdo/VlAyYEbtGxo/s64-no/linux.jpg)
Ubuntu 16.04 Intel 64 bit: modesmixer2_x86_64_20170924.tgz https://drive.google.com/open?id=0B7NYXizl0U6iT01YRUFMcFZUVkU (https://drive.google.com/open?id=0B7NYXizl0U6iT01YRUFMcFZUVkU)
Ubuntu 14.04 Intel 32 bit: modesmixer2_i386_20170924.tgz https://drive.google.com/open?id=1JXON6fEhTxTxSBmMt7jrk33p3xZjRe9l (https://drive.google.com/open?id=1JXON6fEhTxTxSBmMt7jrk33p3xZjRe9l)

CentOS 7 Intel 64 bit: modesmixer2_CentOS7_x86_64_20170506.tgz https://drive.google.com/open?id=0B7NYXizl0U6ibm4yOGoxSGh6V2c (https://drive.google.com/open?id=0B7NYXizl0U6ibm4yOGoxSGh6V2c)

FreeBSD 11 Intel 64 bit: modesmixer2_FreeBSD11_x86_64_20170506.tgz https://drive.google.com/open?id=0B7NYXizl0U6ianp5YzFFYXBrTDA (https://drive.google.com/open?id=0B7NYXizl0U6ianp5YzFFYXBrTDA) (FreeBSD 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016 amd64)


(https://lh5.googleusercontent.com/-Vmvyv0uu2nM/UcWva8Hwd8I/AAAAAAAABxs/HzK6e1kPhKw/s64/macosx_1.jpg)
OS X 10.10 Yosemite: modesmixer2_osx_20150715.tgz https://drive.google.com/open?id=0B7NYXizl0U6ib3lOcjFPYmJXSDg (https://drive.google.com/open?id=0B7NYXizl0U6ib3lOcjFPYmJXSDg)

QuoteIf you see on the page Map that all aircraft are being plotted in the top-left corner and the Google map does not load, then you need to do bypass your cache in browser.
Bypassing your cache means forcing your web browser to re-download a web page from scratch, which can often solve website display glitches. It is also required after installing user scripts. Bypassing your cache is simple, safe, and causes no permanent changes.
Title: Re: ModeSDeco concole program for RTLSDR
Post by: Bethsalem on November 19, 2013, 05:06:18 PM
I use RTL1090 and Virtual Radar Server software in conjunction with my dongles. I find this setup really good.

What advantages would your software add?

Perhaps if you post a tutorial walking through set-up and options selection, or at least some screenshots of the program working that would give a better idea of what you're offering.

Stephen
Title: Re: ModeSDeco concole program for RTLSDR
Post by: sergsero on November 20, 2013, 08:39:04 AM
This software is just another one that works for SDR technology with RTL2832 DVB-T dongle. Does those or other characteristics of software its advantages, in my opinion, everyone decides for himself have firsthand knowledge.

Of the existing differences modesdeco with Andy's RTL1090 are:
- working with Basestation directly (c:\>modesdeco.exe --gain 49.6 --net 10001 --sbs10001 --location lat:lon),
- the program is designed for 24/7 work without supervision or control of the operator, so it has no GUI, and run from the command line without expending additional resources of computer.

The purpose of this publication was help me to test this software in regions with intensive air traffic and large number of the received Mode-S (ads-b) messages. Unfortunately, in my region there are no a large number of flight aircraft at a time.  If someone can help me, I'll very grateful to him. And it's does not require a change his habitual setup.
Title: Re: ModeSDeco concole program for RTLSDR
Post by: kdt1 on November 20, 2013, 01:34:58 PM
Works good Sergsero, Thanks

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco concole program for RTLSDR
Post by: sergsero on November 21, 2013, 02:33:39 PM
New ModeSMixer v.20131121
Title: Re: ModeSDeco concole program for RTLSDR
Post by: Keef on November 21, 2013, 07:20:43 PM
Thank you sergsero,

I tried this today and it works as advertised.
Your hard work is appreciated  :)

Cheers,

Keef.
Title: Re: ModeSDeco concole program for RTLSDR
Post by: coyotefxl on November 24, 2013, 07:17:08 PM
Hi Sergsero,

I'm testing Modesdeco and I must say that it has increased the packet rate between 30 to 50 percent compared to RTL1090 and it's producing good raw reports for Planeplotter with the avr-mlat output format but in AVR format, the signal report is missing (I think it's the format that doesn't allow though). So I tried also the Beast format. I has signal strenght but the raw reports are not usable for mlat and Beamfinder. It seems the timings are bad. So could it be possible to correct the Beast format or add the signal strenght in the avr-mlat format? Continue your good work!

Luc Fontaine
+qX in Planeplotter
Title: Re: ModeSDeco concole program for RTLSDR
Post by: sergsero on November 27, 2013, 02:45:29 PM
Hello Luc,
Quote from: coyotefxl on November 24, 2013, 07:17:08 PM... it's producing good raw reports for Planeplotter with the avr-mlat output format but in AVR format, the signal report is missing (I think it's the format that doesn't allow though). So I tried also the Beast format. I has signal strenght but the raw reports are not usable for mlat and Beamfinder. It seems the timings are bad. So could it be possible to correct the Beast format or add the signal strenght in the avr-mlat format?

I would like to clarify:
AVR-MLAT format does not provide data about the level of received signal. His format is: <@><6 byte MLAT counter><7 or 14 byte Mode-S><;><CR><LF>. The signal level is the invention of Gunther and is only present in BEAST binary format: <0x1a> <"3">  6 byte MLAT, 1 byte signal level, 7 or 14 byte Mode-S.

When the data is output in the AVR-MLAT format, are they suitable for MLAT or Beamfinder? Or they are not suitable as BEAST binary also?

Now the MLAT counter has a resolution of 83.333 ns for Mode-S, not 500 ns. It is possible that the reason is this.  I'll try to find out.

Thanks,
Sergsero
Title: Re: ModeSDeco concole program for RTLSDR
Post by: coyotefxl on November 27, 2013, 05:49:37 PM
Quote from: sergsero on November 27, 2013, 02:45:29 PM
I would like to clarify:
AVR-MLAT format does not provide data about the level of received signal. His format is: <@><6 byte MLAT counter><7 or 14 byte Mode-S><;><CR><LF>. The signal level is the invention of Gunther and is only present in BEAST binary format: <0x1a> <"3">  6 byte MLAT, 1 byte signal level, 7 or 14 byte Mode-S.

When the data is output in the AVR-MLAT format, are they suitable for MLAT or Beamfinder? Or they are not suitable as BEAST binary also?

Now the MLAT counter has a resolution of 83.333 ns for Mode-S, not 500 ns. It is possible that the reason is this.  I'll try to find out.

Thanks,
Sergsero

Hi Sergsero,
Yes AVR-MLAT seems good for mlat but I have to get a mlat fix since using your software as I think there were not sufficient data when I tried it to have good results and Beamfinder is OK like with RTL1090. But in Beast output format, the beams in Beamfinder are pointing almost anywhere and when I test in Planeplotter with the option Test Networking-->Check GS/MU status, the graph that is displayed with the dots at the bottom of the page print randoms dots instead of the oblique and nearly aligned dots with RTL1090 or Modesdeco in AVR-MLAT. So there's something wrong with your implementation of the Beast output format in Modesdeco.

I like to have the signal level of the signals I receive that if the Beast output format is fixed with good timings and/or reliability, that would be great because I would have best of both worlds.

BTW, I don't have too much traffic and especially this week so I cannot tell how it's doing with high packets rate but last sunday, it was stable with 75 packets/sec and it never crashed since I first tried it last saturday night.

Regards,
Luc Fontaine
+qX
Title: Re: ModeSDeco concole program for RTLSDR
Post by: sergsero on December 02, 2013, 02:11:21 PM
This program work by SDR technology.
Title: Re: ModeSDeco concole program for RTLSDR
Post by: kdt1 on December 03, 2013, 03:00:36 AM
Thanks
Title: Re: ModeSDeco concole program for RTLSDR
Post by: sergsero on December 05, 2013, 10:28:16 AM
Hi kdt1,
the ability to process information from TIS-B DF18 messages I checked in URSS - ground vehicles and obstacles:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20131130/1059E5_3_aaa.jpg)

Unfortunately, check the ADS-R, I can't for the want of it in my area - is it working correct?

Thanks,
Sergsero
Title: Re: ModeSDeco concole program for RTLSDR
Post by: kdt1 on December 05, 2013, 12:11:49 PM
Sergsero

Were you able to use the bin file I sent you? I have not seen any TIS-B logged yet, but will keep testing, I did notice that I only have to use the modesdeco and basestation to receive traffic verses  the initial modesdeco, modesmixer and basestation combination, can you confirm I am using your program correctly?



Basestation Version 1.2.3.180

modesdeco_xp.bat

(@echo off
cmd /c  modesdeco_xp.exe --filter-nocountry --rbs --device-index 0 --gain 49.6 --net 10001 --sbs10001 --location 44.827:-93.613
PAUSE
Exit)


Many thanks on your commitment

Kyle
Title: Re: ModeSDeco concole program for RTLSDR
Post by: Keef on December 06, 2013, 12:21:29 AM
Hi Sergsero,

I tested this at work but have now set it up at home as well.

A small point, but my home PC is x64 and installing the x64 version of Visual Studio 2012 Update 4 didn't resolve the .dll error, I needed to install the x86 version.
It's not really a problem but is perhaps worth mentioning alongside the need to install the Visual Studio update.

Also you say:

QuoteThe purpose of this publication was help me to test this software in regions with intensive air traffic and large number of the received Mode-S (ads-b) messages. Unfortunately, in my region there are no a large number of flight aircraft at a time

I can run this at home where I will get a fairly high number of aircraft received, is there a logging option so I can send you results from my setup?

Thanks again for the software.

Cheers,

Keef.
Title: Re: ModeSDeco concole program for RTLSDR
Post by: coyotefxl on December 06, 2013, 01:15:39 AM
Hi Sergsero,

I've tried the beast format, it works better now, Beamfinder works well but what I'm not understanding is that I can't never get hypercurves in Planeplotter with lots of raw reports which works always well with RTL1090, always "insufficient data for fix", maybe a little thing with the timings. Also, the signal level is working but much lower as in RTL1090 which may be explained as when using the --agc along the --gain 49.6 produces less packet rate than in RTL1090 but in RTL1090, it's doing the better packet rate and better signals.

Same in --avr-mlat for the "insufficient data for fix" thing.

Finally, the Mode-A/C pulse rates window in Planeplotter is plotting dots but not arranged in any way but printed randomly in the window and so the "Log Mode-A radar pulse interval pings" is always unavailable because no good data is produced.

You are near to have it working perfectly and it will be a blast with the packet rate it's achieving already.

Luc
+qX
Title: Re: ModeSDeco concole program for RTLSDR
Post by: sergsero on December 06, 2013, 12:22:38 PM
Hello kdt1,
Thank you for the sent file, I used the data from it.
Indeed, modesdeco and basestation is enough for receiving signals, decoding of data, output streaming to network, visualization them on screen and maintain the database.  Another program modesmixer serves for merging of network data streams from multiple sources, or from physical devices (USB/COM), and data output to network in various formats.  If you have multiple receivers or data feeds, it can retrieve information from them, to ensure its availability in different programs (Basestation, VirtualRadarServer and etc.) simultaneously.

I think that values --gain and --agc must be chosen experimentally for your receiving conditions and antenna-feeder device. This values is better to do the same as with RTL1090, for example, may be "auto". To do this delete the option --gain from cmd. If you, when working with RTL1090, use automatic gain control in RTL2832 chip, then add the option --agc
If the system has only one single dongle --device-index 0 can be skipped.  Also --rbs only used if you need information about Mode A/C. In Basestation it is not used and can be skipped too.

Thanks for your help,
Sergsero
Title: Re: ModeSDeco concole program for RTLSDR
Post by: sergsero on December 06, 2013, 12:34:15 PM
Hi Keef,
Yes, it's my mistake. I forgot to explicitly specify that need to use the 32 bit version of libraries, because program is 32 bits too. I already made a correction in the text. Many thanks.
I will be grateful for any information, which will help me evaluate the work of program in real conditions of intensive traffic.

Thanks for your help,
Sergsero
Title: Re: ModeSDeco concole program for RTLSDR
Post by: sergsero on December 06, 2013, 01:04:33 PM
Hi Luc,
I'll try to find out the cause "insufficient data for fix". For MLAT modes I am a "blind" because I don't use them in practice unfortunately.  But I'll work on that and I hope to find a solution.  It is obvious that RTL1090 will be the best choice for MLAT now.

I think that values --gain and --agc must be chosen experimentally for your receiving conditions and antenna-feeder device. This values is better to do the same as with RTL1090, for example, may be "auto". The  signal level is displayed in the same 0-210 as it exists in the hardware receiver Beast.

Thanks for your help,
Sergsero
Title: Re: ModeSDeco concole program for RTLSDR
Post by: coyotefxl on December 06, 2013, 01:27:42 PM
Thank you Sergsero,

I'll wait for an update from you as it will be my preferred decoder when mlat works as expected. Thanks for your time and replies.

Regards,
Luc
+qX
Title: Re: ModeSDeco concole program for RTLSDR
Post by: alsvieira on December 07, 2013, 08:00:23 AM
Hello,

First of all many thanks for the decoder and your hard work. I am trying to put it to work with planeplotter but I cannot manage to do it  :'(
I have modesdeco running but cannot link it to planeplotter. I also try to use modesmixer but without success.
Can someone help me with it please?

MAny thanks

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco concole program for RTLSDR
Post by: sergsero on December 07, 2013, 10:53:02 AM
Hello alsvieira,

Thanks for your interest in the program.
As seen in your screenshot, the modesdeco works and gives AVR messages on console.
Next:
1. Run modesdeco with the settings as you have now. The values --gain and --agc which are output maximum number of messages. You need to find the best values for your antenna experimentally once. And add two options to cmd for output data stream to network: --beast --net <port> --location <lat>:<lon> . For example: C:\>modesdeco.exe --gain 49.6 --beast --net 30048 --location 38.42:18.55
Now output AVR-messages to the console is locked but they are transferred to network. On console you can see only log messages.

2. In PlanePlotter settings select the type of receiver and its tcp:port as on attachment screenshot 2 and 3. IP is 127.0.0.1 if modesdeco and planeplotter are on the same computer or IP address of computer where running modesdeco if they are on different.

3. Next planeplotter setting is Input data as screenshot 4.

4. Press the green button to start processing and you will see in table:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20131207/PP_tab.gif)

and the same on map with Signal Level, Interrogator (II)/Surveillance (SI) Identifier in aircraft label :
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20131207/PP_map_01.jpg)

Thanks,
Sergsero


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco concole program for RTLSDR
Post by: alsvieira on December 08, 2013, 09:17:09 PM
Thank you very much sergsero. Now everything is working.
Best regards
Title: Re: ModeSDeco concole program for RTLSDR
Post by: Keef on January 27, 2014, 04:48:01 PM
sergsero,

I've been running your ModeSDeco software feeding Basestation for the last couple of weeks in a fairly high traffic area and it's worked without any problems.

Basestation Reporter indicates 50421 entries over the 18 days I've had it running so it's been quite busy.

I've just restarted the PC to do some Windows updates and have moved the antenna to a better position so am pulling in more contacts.
I'll keep an eye on it for a while to see how it copes with the increase in traffic.

Thanks again for writing the software, it's a really nice solution.

Keef.
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: sergsero on March 02, 2014, 12:58:13 PM
ModesMixer2 - release 20140421

Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: Chriso on April 04, 2014, 07:23:42 PM
Is this program (modesdeco) running under Windows Server 2003?
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: Breitling on April 23, 2014, 01:59:21 PM
Hi sergsero, are you there for some questions?
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: sergsero on April 23, 2014, 03:03:47 PM
Hi Breitling,

I'm here - what is your question?
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: Breitling on April 23, 2014, 05:49:44 PM
Thank you. I'm testing your software on Windows XP and Windows 7, seems to work fine on both. My receiver is a R820T dongle and PlanePlotter. This is the commandline I use:

modesdeco2_xp.exe --agc --gain 36.4 --beast --net 31001 --rbs --location 43.0030:-7.5533

One of the best features I find on modeSdeco is the ability to decode simultaneously both Mode S and Mode A/C with the same dongle. But now the questions:

- I can see both Mode S and A/C altitudes (pressing "C") as well as message rate. But I can see very few Mode S radar pulses, not even enough for PP to allow radar pulse logging. Is not possible to do with modeSdeco?

- Mode A/C pulses are not shown at all. Is it not possible to log either?

- What's the signal strength range (max-min)?  Just to compare with different gain settings.

I'd like to see if I can get better results for Beamfinder feature rather than using RTL1090.
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: sergsero on April 24, 2014, 02:56:09 AM
Hi Breitling,

- If you are interested in simultaneous reception of data in Mode S and Mode A/C, use the new version of MD2 from 20140428 - modesdeco2_windows_20140428.zip

+ changed options for output listen ports
- deleted option "--net <arg>"
+ modified decoding algorithm for DF18 (TIS-B) messages
+ modified the algorithm of automatic detection of receiving area
+ added mode a single reception can be decoded into the correct location without an even/odd pair
+ modified decoding algorithm for Mode A/C
+ modified algorithm of determining magnitudes of I/Q signals
+ added option "--verbose" - extended mode console output for decoded information from messages
+ changed format options "--avr-mlat" to "--avrmlat"
+ added option "--input-file <arg>" - read mode of I/Q signals that were recorded to binary file by rtl_sdr program from package sdr.osmocom.org


- In MD2 is usually better not to use the --agc for RTL. The program has internal gain control algorithm - separately for receiving chip and RTL. It constantly monitors the level of the signal and noise and calculates the instantaneous value threshold. Adding to this process no way associated --agc from dongle usually only prevents.  Although there are exceptions for specific antenna setup.

- For the same reason, the value of --gain for receiving chip R820T is desirable to establish fixed and maximum (48 or 49.6 dB). The program is able to make the necessary gain adaptation themselves.

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140423/MD2_radar_pulse_intervals.png) (https://dl.dropboxusercontent.com/u/79709204/Pictures/20140423/MD2_altitudes.png)

Unfortunately, in my area there is no Mode-S Secondary Surveillance Radar and I can't test the program with Mode S radar pulses

Thanks,
sergsero
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: miodzicho on April 29, 2014, 03:38:27 PM
Hello all.
First of all thanks for nice software, looks impressive.
My question is, i just installed it on Rpi, works fine. I have PlanePlotter in trial version on Windows 7.
Unfortunately I don't see anything under Type or Route .
Should it be configured somehow ?

(http://s14.directupload.net/images/140429/rjowt3o6.jpg)
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: sergsero on April 29, 2014, 04:05:21 PM
Hi miodzicho,

I think that your question does not apply to ModeSDeco and ModeSMixer  :). However, PlanePlotter require additional data files so that it displays Type and Route. These data are not transmitted in Mode-S messages.

Code type of aircraft  will taking from the database file basestation.sqb. It should be placed in some directory and set path to it in PlanePlotter: <Options/SQB database options/SQB database directory>. The file is available http://pp-sqb.mantma.co.uk/ (http://pp-sqb.mantma.co.uk/).

Flight paths you can take from a file PlanePlotter\Log files\flightroute.sqb. The file is extracted from the archive should be renamed to flightroute.sqb. The file (last now) flightroute-2014-04-27-0900.icao.zip is available in Yahoo group: https://groups.yahoo.com/neo/groups/PP-logs-and-routes/files (https://groups.yahoo.com/neo/groups/PP-logs-and-routes/files). Probably will first need to register there.

Thanks,
sergsero
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: miodzicho on April 29, 2014, 04:10:03 PM
Pardon ignorance I though those date are taken from ModeSDeco which I'm using to feed PlaneSpotter...
Thank you for pointing me in proper direction  :)
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: Breitling on May 02, 2014, 12:14:06 PM
Thanks sergsero, I'm already using MD2 decoding both mode-S and mode-AC signals.

Max gain value is good for the standard dongle antenna, but I'm using a homebrew 8 element coax collinear antenna that works better with lower values.

No way, I can't log any pulse interval. I'm receiving both modes, see below what I get.



[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: sergsero on May 04, 2014, 03:14:53 PM
The second channel for RadarCape receiver on dongle RTL2832 by SDR technology.

The feed from RadarCape is outputted in Beast binary format from 10006 port. Also in the receiver works Angstrom's version of ModesDeco2 with RTL dongle, which connected to USB port. There is output Mode-S data feed in AVR format on port 33033. Next program - ModesMixer2, which also works inside RadarCape, makes merge both data streams, transcoding and output it to BaseStation.exe on port 10001 in SBS format.

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140504/radarcape_rtlsdr_modesdeco2_1_1.jpg)
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: seriewoordenaar on May 04, 2014, 04:00:23 PM
I'm using RTL1090/PlanePlotter on a 12 year old PC running Windows XP Pro SP3 with all updates, and on this old hardware the setup runs fine with my NooElec TV28T dongle - even with CPU cycles to spare.
After reading the positive comments on ModeSDeco, I wanted to give this a try.
I put all the files on the Google Drive into one folder, installed the VSU_4\vcredist_x86.exe, and gave it a go from the command prompt (without arguments).
It simply crashes on startup : modesdeco2_xp.exe has encountered a problem and needs to close.
Any ideas ?
???
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: sergsero on May 04, 2014, 04:32:11 PM
Please, name the type of processor in your computer.
If you run the program with only one option --help at the command line - is also the program crashes on startup?
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: Anmer on May 04, 2014, 04:50:49 PM
Quote from: sergsero on May 04, 2014, 04:32:11 PM
Please, name the type of processor in your computer.

On a 12-year old PC running XP, my guess is 32 bit.
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: seriewoordenaar on May 04, 2014, 06:11:22 PM
Quote from: sergsero on May 04, 2014, 04:32:11 PM
Please, name the type of processor in your computer.
If you run the program with only one option --help at the command line - is also the program crashes on startup?

It's a 32-bit AMD Athlon 1.3GHz single-core.
Your software crashes immediately with whatever argument I give it.
The dongle is connected and working fine with the RTL1090/PlanePLotter setup, and I don't use RTL1090 & your software simultaneously.  :-X
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: Breitling on May 08, 2014, 10:21:53 AM
Hi sergsero, finally I managed to log radar pulse intervals both on Mode S and Mode A/C. But I had to use the --avrmlat parameter on ModeSdeco2 and configure PP to use an AVR receiver.
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: TTECH on May 08, 2014, 01:10:01 PM
Hello sergsero,

I can't connect ModeSDeco to PlanePlotter.
I only see shared aircraft, but not my own received.

I use this command:

Desktop\modesdeco2_windows_20140428\modesdeco2.exe --agc --gain 49.6 --avrmlat 31002 --rbs --location 50.82382:4.766023

What am I doing wrong?
I want to see Mode S and Mode AC at the same time.

Regards,
Tibo


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: sergsero on May 09, 2014, 02:11:24 AM
Hello Tibo,

For output data stream the program provides a standard format for AVR and BEAST messages.
Therefore, to connect to PlanePlotter need to use the corresponding modes. In PP input configuration use any binary mode: Beast receiver TCP or RTL>RPi+Dump1090 and in modesdeco2 the format of output data stream should be changed to --beast 31002.

In modesdeco2 is usually better not to use the --agc for RTL chip. The program has internal gain control algorithm - separately for receiving chip and RTL. It dynamically monitors level of the signal and noise and calculates the instantaneous value threshold. Adding to this process no way associated --agc from dongle usually only prevents.  Although there are exceptions for specific antenna setup  and it should be found experimentally.

Regards,
sergsero
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: TTECH on May 09, 2014, 08:38:12 AM
Thank you, now it works!

I have two questions:
- How can I lookup the aircraft type of the Mode AC code like 'XX5440'? (see attachment)
- Is ModeSDeco able to provide useable raw data as Dump1090 does?

Regards,
Tibo

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: sergsero on May 09, 2014, 09:11:05 AM
- Only if you have access to data of your atraffic service. The "A" value of squawk is assigned by ATC each time for any aircraft that takes off from your airport or flying through controlled airspace. On other hand, the value of squawk can be the barometric altitude flight if it's "C". The squawk is in no way directly associated with the type of the aircraft.

- I want to hope that this is so and in this issue I hope for your help (if you have the time) for md2 testing. Unfortunately in my area there are no land secondary radars with Mode-S select requests.

Regards,
sergsero
Title: Re: ModeSDeco and ModeSMixer - concole programs for RTLSDR and transcoding
Post by: TTECH on May 09, 2014, 10:45:06 AM
- So I can't do anything with the Mode-A/C data? The Alpha Jets are using this so it would be nice to know when they're flying.
- How can I help to test it?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 31, 2014, 01:21:35 PM
The second channel in RadarCape via USB connection the Beast and merge data to feed by ModeSMixer2.

In some situations, such tandem helps maximize to use of two independent antennas. For example, the highly directional antenna for receiving from one sector (closest airport) and omnidirectional collinear antenna for maximum range of coverage.

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140531/modesmixer2_radarcape_beast.jpg)
   
When connecting Beast into the USB port of RadarCape in the system should be created device /dev/ttyUSB0. This is verified by running command:
root@radarcape:~# ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 May 31 11:10 /dev/ttyUSB0


If devices ttyUSB* is not found, it means that Radarcape's Angstrom not contain a kernel module for ftdio_sio. So it can be installed by:
opkg install kernel-module-ftdi-sio

Then run ModesMixer2 for merge received data from two receivers to feed and output it through, for example, three servers for PlanePlotter in binary Beast on port 33033, for BaseStation in RAW on port 10001 and for Globe-S_RTL in http table2 on port 31008:
root@radarcape:~/sdr# ./modesmixer2 --inSerial /dev/ttyUSB0:3000000:hardware --inConnect 127.0.0.1:10005 --outServer beast:33033 --outServer sbs10001:10001 --globes 31008:table2:UNNT

Below the large screenshot combines screens of all programs. CPU usage by modesmixer2 <10%:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140531/RadarCape_Beast_ModeSMixer2_BaseStation_GlobeS_PlanePlotter_1.jpg)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 07, 2014, 11:58:52 AM
In ModeSMixer2 each command line option is formed from two parts, which characterize the process as an input or output and the data reception method.

In General, in ModeSMixer2 exist rules of choice the options for send-receive pair couple. In any pair is always defined the roles of sides: the initiating party (master) of process and slave side. First (prefix) part - the direction:



The second part of the option - the mode:

Default for network connections between modesmixers2 is used TCP protocol. If there is sufficient reason to use UDP protocol (low-overhead operation and reduced latency), then for him there are two special options: --outConnectUdp and --inServerUdp.
However, it is recommended to always use the TCP protocol, as it provides control the network connection, error checking and delivery validation.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 18, 2014, 06:38:16 AM
There are new versions of ModeSDeco2 v.20140616 and ModeSMixer2 v.20140616 in first http://radarspotting.com/forum/index.php/topic,2978.msg13471.html#msg13471 (http://radarspotting.com/forum/index.php/topic,2978.msg13471.html#msg13471) and second http://radarspotting.com/forum/index.php/topic,2978.msg15240.html#msg15240 (http://radarspotting.com/forum/index.php/topic,2978.msg15240.html#msg15240) messages of this thread.

+ changed the algorithm of determining of PI (Parity/interrogator identifier) - downlink field that have parity overlaid on the interrogator's identity code and shall appear in the Mode-S all-call reply, DF = 11 and in the extended squitter, DF = 17 or DF = 18. May be used to beamfinder+ in PlanePlotter

For ModeSDeco2 only. However, there is necessity to test this version of ModeSDeco2 in comparison with previous v.20140428. And determine, the total number of messages, that are issued, left unchanged or not -  wasn't decreased?
Just in case, here is the previous version v.20140428



+ changed the algorithm of processing of Interrogator Codes II (Interrogator Identifier) and SI (Surveillance Identifier) for data transcoding in RAW SBS format (--sbs10001)

For ModeSMixer2, due to incomplete support by PlanePlotter bidirectional data communication for starting procedure of SBS10001 connection, should be used sbs30006 output mode: "... --outServer sbs30006:30006 ..."

I would be very grateful for your testing and feedback.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on June 18, 2014, 07:32:00 AM
The latest version of ModeSMixer (0616) is the one I have been using for a few days now and is working perfectly.

Thank you sergsero for your work on this great "enabler".

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 18, 2014, 10:38:59 AM
Hi Tim,
   
Once again thank you for testing!

The testing modesdeco2 together with planeplotter for beamfinder in Volga region:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140618/modesdeco2_planeplotter_beamfinder_1.jpg)  (https://dl.dropboxusercontent.com/u/79709204/Pictures/20140618/modesdeco2_planeplotter_beamfinder_2.jpg)

However, there is necessity to test this version of ModeSDeco2 in comparison with previous v.20140428. And determine, the total number of messages, that are issued, left unchanged or not -  wasn't decreased?
Just in case, here is the previous windows version v.20140428: https://drive.google.com/file/d/0B7NYXizl0U6iNE1vQVhEaWdlODA/edit?usp=sharing (https://drive.google.com/file/d/0B7NYXizl0U6iNE1vQVhEaWdlODA/edit?usp=sharing)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 09, 2014, 01:40:17 PM
A special version ModesDeco2 v.20140809  for Windows with GPS receiver emulation.

+ added option "--nmea <arg>" for emulation a GPS receiver and output GPS data based on the NMEA-0183 protocol from any aircraft with ADS-B transponder. The null-modem com0com http://com0com.sourceforge.net/ (http://com0com.sourceforge.net/) or other emulator can be used to provide serial interface for device emulators. In this case modesdeco2 uses one port of the pair and the other port can be used by Windows application that requires a COM port to communicate with GPS device.

+ added option "--nmea-logfile <arg>" for saving output NMEA data to a logfile.

modesdeco2_windows_20140809.zip
Features of the GPS mode emulation.
1. Generates four types of NMEA sentences: GGA, RMC, GLL and VTG.

2. The field 10 of GGA, instead of the antenna height above the geoid, is used barometric altitude. Onboard barometric altimeter may be set to appropriate setting for the phase of flight.
These are:
Standard Pressure setting (760 mm Hg/1013 hPa/29.92 inHg) or QNE is set when climbing and cleared to a FL (Flight Level). Altimeter indicates Pressure Altitude (FL), and is used by all aircraft operating above the transition altitude to provide a common datum for vertical measurement. The Standard Pressure is equivalent to the air pressure at mean sea level (MSL) in the International Standard Atmosphere (ISA).

Regional or airfield pressure setting (QNH) is set when flying by reference to altitude above mean sea level below the transition level. With QNH set, an aircraft altimeter indicates height above mean sea level. The QNH may be the pressure observed at the airfield, or the lowest pressure observed throughout a specified geographical area.

Altimeter pressure setting indicating height above airfield or touchdown (QFE) is set when approaching to land at airfield where this procedure is in use. With QFE set, an aircraft altimeter indicates height above the QFE datum, which may be a point in the aerodrome environment or the touch-down zone of the runway in use.

3. In this version field 11 of GGA uses geometric height above MSL rather than above the WGS-84 ellipsoid.

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140721/FM_0.png)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 09, 2014, 01:50:39 PM
There's new version 20140908 of ModeSMixer2 in message #2 of this forum thread

+ changes in the work with serial port, which increase the stability of data transmission and monitoring connection.
+ changes in the algorithm of decoding DF-18 messages (TIS-B).

TIS-B complements the operation of ADS-B by providing ground-to-air broadcast of surveillance data on aircraft that are not equipped for 1090 MHz ADS-B. The basis for this ground surveillance data may be an ATC Mode S radar, a surface or approach multilateration system or a multisensor data processing system The TIS-B ground-to-air transmissions use the same signal formats as 1090 MHz ADS-B and can therefore be accepted by a 1090 MHz ADS-B receiver.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dualc on September 24, 2014, 09:51:39 AM
Hi SergSero.

My first post here, .. and i wonder if u can put ModeSMixer2 files somewhere alse to download?.

As i tried ur Google download place and it says the quote is overloaded and i cant download the files.

/M
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 24, 2014, 12:29:16 PM
I hope soon to complete the creation of the website, which will contain all my programs and their descriptions.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dualc on September 24, 2014, 02:21:19 PM
Thx SergSero, it works perfect now.. :)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 30, 2014, 07:47:45 AM
The version 20140930 of modesdeco2 is being tested with HackRF One open source software radio platform:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140930/modesdeco2_hackRF.png)

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141003/ModeSDeco2_hackRF_msg_out.jpg)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on October 06, 2014, 04:23:31 PM
ModeSMixer for MIPS 74Kc architecture router TP-Link TL-WDR3600 (SoC: Atheros AR9344 rev 2 - CPU 560MHz/FLASH 8MB/RAM 128MB) with OpenWrt BarrierBreaker 14.07:

modesmixer_ar71xx_MIPS_20140908.zip
System requirements: https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/openwrt-ar71xx-generic-tl-wdr3600-v1-squashfs-factory.bin for upgrade from TP-Link factory firmware
                     or https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/openwrt-ar71xx-generic-tl-wdr3600-v1-squashfs-sysupgrade.bin to upgrade from earlier versions of OpenWRT!

Installation:
Update list of available packages: opkg update
Put the package modesmixer_20141006-1_ar71xx.ipk from archive into any directory in TP-Link TL-WDR3600 and run the installation: opkg install modesmixer_20141006-1_ar71xx.ipk

For example, the picture below shows the connection BEAST to TP-Link TL-WDR3600 in its USB port:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141006/modesmixer_TL-WDR3600_BEAST.jpg)

and modesmixer has directly connected to program BaseStation through port 10001 and as TCP-server for output MSG messages on port 30003:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141006/modesmixer_TL-WDR3600_BEAST_BaseStation_MIPS.png)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on October 08, 2014, 06:30:04 PM
The new ModeSDeco2 for MIPS architecture was tested on TP-Link TL-WDR3600 router with RTL2832 dongle and direct connections to BaseStation:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141008/modesdeco2_TP-Link_TL-WDR3600_MIPS_BaseStation_direct_1.png)

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141008/modesdeco2_TP-Link_TL-WDR3600_MIPS_2.jpg)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on October 11, 2014, 10:53:34 AM
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141011/WDR4300_1.jpg)

ModeSMixer http://radarspotting.com/forum/index.php/topic,2978.msg15240.html#msg15240 (http://radarspotting.com/forum/index.php/topic,2978.msg15240.html#msg15240) and ModeSDeco http://radarspotting.com/forum/index.php/topic,2978.msg13471.html#msg13471 (http://radarspotting.com/forum/index.php/topic,2978.msg13471.html#msg13471)

for MIPS 74Kc SoC architecture as TP-Link: TL-WDR3500/3600/4300 (SoC: Atheros AR9344 - CPU 560MHz/FLASH 8MB/RAM 128MB) and TL-MR3020/3220/3420 (SoC: Atheros AR7241 - CPU 400MHz/FLASH 4MB/RAM 32MB) with USB flash memory stick.

Basic Equipment Requirements:
•   TP-LINK routers TL-WDR3500/3600/4300/7500/AC1750 or TL-MR3020/3220/3420 with OpenWRT Linux distribution for embedded devices and release of Barrier Breaker 14.07.
•   USB hub for routers that have only one USB port. Possible that you will have to use a USB hub with external power supply if the USB receiver will be connected to the same router in its USB port. Another solution that I use, replacement of standard power supply to a more powerful 5V/3A.
•   External storage medium, which can be a USB stick.

Unfortunately TL-MR3020/3220/3420 routers have only 4MB flash (memory), so (depending on the selected image/firmware) after installing OpenWrt there will be just about ~450 kB of free memory available. If you now want to install one or more extensions for OpenWrt, which is one of the main benefits of using a OpenWrt system, you will be confronted with "no space available" messages.

One solution to "bypass" this problem is to "ExtRoot" your router. ExtRoot is a functionality that can be used to outsource the OpenWrt file system of the router to an external storage medium. This can be, for example, a USB flash drive. Set up the root filesystem on a USB stick. It's best to partition and format the USB stick (/dev/sdX in the listing – you might need to adjust this X) on your PC. Besides the root partition, you'll want a home partition and, above all, swap space.

System requirements:
https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/openwrt-ar71xx-generic-tl-wdr3600-v1-squashfs-factory.bin (https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/openwrt-ar71xx-generic-tl-wdr3600-v1-squashfs-factory.bin) for upgrade from TP-Link factory firmware
or https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/openwrt-ar71xx-generic-tl-wdr3600-v1-squashfs-sysupgrade.bin (https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/openwrt-ar71xx-generic-tl-wdr3600-v1-squashfs-sysupgrade.bin) to upgrade from earlier versions of OpenWRT!


ModeSMixer installation:
1. Copy the archive modesmixer_20141010-1_ar71xx.tar.gz to any directory on your router TP-Link TL-MR3020/3220/3420 and unzip it. The file modesmixer_20141010-1_ar71xx.ipk is an installation package.
2. Run the command: opkg update for making update the list of available packages.
3. Next, install the package by running the command: opkg install modesmixer_20141010-1_ar71xx.ipk. The program will be installed into your system.
4. In the directory /etc/config/ will be created configuration file modesmixer. Edit it according to your needs. For example, to retrieve data from a feed with IP address 192.168.1.170 and port 30005, and make direct connection for BaseStation, Globe-S and output MSG feed to fr24 sender specify the following options:

MODESMIXER_ARGS="--inConnect 192.168.1.170:30005 --outServer msg:30003 --outServer sbs10001:10001 --globes 31008:table2:UUDD --log-noconsole"

5. Run the program by: /etc/init.d/modesmixer start
6. Other syntax: /etc/init.d/modesmixer [command]
Available commands:
        start Start the service
        stop Stop the service
        restart Restart the service
        reload Reload configuration files (or restart if that fails)
        enable Enable service autostart
        disable Disable service autostart


ModeSDeco installation:
Routers TP-Link models TL-MR3020/3220/3420 have a low frequency of CPU 400 MHz, resulting In some instances, high CPU utilization, up to ~85%! Routers TP-Link models TL-WDR3500/3600/4300/7500/AC1750 have a processor speed 560 - 720 MHz and do not have this problem.
1. Copy the archive modesdeco_20141009-1_ar71xx.tar.gz to any directory on your router TP-Link TL-WDR3500/3600/4300 or TL-MR3020/3220/3420 and unzip it. The file modesdeco_20141009-1_ar71xx.ipk is an installation package.
2. Run the command: opkg update for making update the list of available packages.
3. The archive also includes new versions of library files: libusb-1.0_1.0.19-1_ar71xx.ipk and librtlsdr_0.5.3_ar71xx.ipk. Install them using the command: opkg install *.ipk - first libusb then librtlsdr.
4. Next, install the package by running the command: opkg install modesdeco_20141009-1_ar71xx.ipk. The program will be installed into your system.
5. In the directory /etc/config/ will be created configuration file modesdeco. Edit it according to your needs. For example, to make output beast format server for PlanePlotter (with Mode A/C) and MSG feed for fr24 sender specify the following options:

MODESDECO_ARGS="--gain 49.6 --freq-correction 63 --beast 30005 --msg 30003 --location 46.25:44.33 --rbs --filter-nocountry"

6. Run the program by: /etc/init.d/modesdeco start
7. Syntax: /etc/init.d/modesdeco [command]

Available commands:
        start Start the service
        stop Stop the service
        restart Restart the service
        reload Reload configuration files (or restart if that fails)
        enable Enable service autostart


(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141011/modesdeco_MR3220.jpg)


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Saudistu on October 15, 2014, 07:15:07 AM
Forgive my ignorance. Is there an idiots guide to using this with Basestation ? When I run the ModeSDeco2 I am unable to type anything in the command line for some reason. Any help appreciated...
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on October 15, 2014, 11:19:01 AM
Hello Saudistu,

What operating system are you using?

If it's windows, then in the program's archive is the *.bat file.

1. Rename it as you wish and open it for editing in a simple text editor. Inside its content is:
@echo off
cmd /c  modesdeco2.exe --device-index 0 --gain 48.0 --freq-correction 64 --sbs10001 10001 --location 43.25:39.33 --filter-nocountry --rbs
PAUSE
exit

Options specified on the command line and are separated by spaces. For direct connection with BaseStation use the following options:
--device-index 0 - Select RTL device (default: 0) - the option can be omitted if you are using a single device?
--gain 48.0 - Set gain in Receiver, dB (default: Auto) - specify the optimum level for your conditions of the radio broadcast depends on the efficiency of the antenna and the availability of out-of-band interference. 49.6 for R820T or 42.0 for E4000.
--freq-correction 64 - Set frequency correction, ppm (default: 0) -     specify the value for your specific instance of dongle.
--sbs10001 10001 - Enable SBS-1/3 output listen port (default: off) - the port number, leave 10001 if you have not changed it in the BaseStation, which in her 10001 default.
--location 43.25:39.33 - Receiver's location Lat:Lon - set your Lat:Lon.
--rbs - Enable RBS decoding - use this if you really need to simultaneously receive and Mode A/C messages. Or skip it.

2. Save the changes in the file.
3. Create a desktop shortcut to this file.
4. Run it to launch the program.

For initial configuration, for example, to find the optimal gain, run the program from the command line in console. To do this, follow - click on the Start button (in Win7). Type cmd. A console window opens. Navigate to the directory where you unzipped the program's archive. And type there the string:
C:\>modesdeco2.exe --device-index 0 --gain 48.0 --freq-correction 64 --sbs10001 10001 --location 43.25:39.33 --filter-nocountry --rbs

If BaseStation is on the same computer, where modesdeco2 runs, then in BS settings, specify the IP as 127.0.0.1 and Port as 10001.
If your OS is Windows XP, then use the exe file with name *_xp.exe.
   
The full list of available options displayed by command: modesdeco2 --help.
Cancel the program by <Control-C>

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Saudistu on October 16, 2014, 07:02:29 AM
Hi Sergsero,

Thanks for your information. I will give it a go later today and report back....

Regds.....Stu
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Saudistu on October 16, 2014, 10:02:02 AM
Hi Sergsero,

It works perfectly. Thanks for your help !!

Regds.....Stu

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on October 18, 2014, 02:15:05 PM
New version modesmixer2 for OS X 10.10 Yosemite:

modesmixer2_osx_Yosemite_20141018.tgz
In this example modesmixer2 works with BEAST, that is connected to USB port of Mac:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141018/modesmixer2_Beast_usb_osx_Yosemite.png)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on October 18, 2014, 02:52:51 PM
New version modesmixer2 for FreeBSD v.10 64 bit (in this version without USB/serial, only network options)

modesmixer2_amd64_FreeBSD_20141015.tgz
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141018/modesmixer2_freeBSD.png)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on October 26, 2014, 08:33:29 PM
Do you have the capability to compile a version for the Marvell Kirkwood CPU?

This was used in a variety of low power devices : http://en.wikipedia.org/wiki/SheevaPlug

I have two of the Seagate FreeAgent DockStar which seem to run dump1090 on Debian ok but I would like to try ModeSDeco2 to connect to BaseStation/GlobeS.

dump1090 provides instructions to compile source code so it gets the correct source code.

More info here:
http://wiki.openwrt.org/toh/seagate/dockstar
http://www.marvell.com/embedded-processors/armada-300/assets/armada_310.pdf

I have tried the RPi version but it doesn't work - will not run so must be different code.


Edit: Or perhaps I just use Modesmixer on a PC to convert the dump1090 output?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on October 31, 2014, 12:42:27 PM
Hello IanH,

Please, test these packages for your Marvell Kirkwood CPU:

modesmixer_20141010-1_kirkwood.tar.gz https://dl.dropboxusercontent.com/u/79709204/MM2/modesmixer_20141010-1_kirkwood.tar.gz (https://dl.dropboxusercontent.com/u/79709204/MM2/modesmixer_20141010-1_kirkwood.tar.gz)

modesdeco_20141009-1_kirkwood.tar.gz https://dl.dropboxusercontent.com/u/79709204/MD2/modesdeco_20141009-1_kirkwood.tar.gz (https://dl.dropboxusercontent.com/u/79709204/MD2/modesdeco_20141009-1_kirkwood.tar.gz)

The modesdeco archive also includes new versions of library files: libusb-1.0_1.0.19-1_kirkwood.ipk and librtlsdr_0.5.3_kirkwood.ipk,  that I made from the last version.

Unfortunately, I do not have this device, so they have not been tested in real work. However, I hope that they will be healthy for your device.
It is also necessary to monitor the CPU utilization for modesdeco, because that is possible that computing power of Marvell Kirkwood will not be enough.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 03, 2014, 03:00:37 AM
It is important the new versions of library files: libusb-1.0_1.0.19-1_kirkwood.ipk and librtlsdr_0.5.3_kirkwood.ipk to install in the first place.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 15, 2014, 02:33:49 PM
New version of ModeSDeco2 v.20141114

+ use new version of Boost C++ libs
+ use new algorithm of calculation that allows to more accurately determine the value of threshold level, that, under certain conditions, may to few increase the number of received messages
+ improvements and changes in code


In the archive is also a debian package libusb-1.0-0_1.0.19-1_armhf.deb with new version 1.0.19 of library libusb-1.0-0.  In the moment a repository of packages for Raspbian still installs the outdated (~2 years ago) version 1.0.11. I compiled it to replace the current version, if the program will not work correctly, because it uses the new features of the latest version 1.0.19 of the libusb library.

For installation new version you should run the command: sudo dpkg -i libusb-1.0-0_1.0.19-1_armhf.deb

I would be very grateful for your feedback and issues found.

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 15, 2014, 04:56:44 PM
Sorry, not had chance to try the Kirkwood files yet. Too many other things going on.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on November 16, 2014, 09:57:16 AM
Hi sergsero,

I just wanted to express my thanks for your continued development of this useful and versatile software.

I really appreciate the effort you have put in to developing it.

Thanks again,

Keef.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LX-LGN on November 21, 2014, 02:08:21 PM
Hi sergsero,

Will Modedeco feed into  adsbScope?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 21, 2014, 03:57:50 PM
Hi LX-LGN,

This is not a problem.

1. Start ModeSDeco2 from *.bat file, as:
@echo off
cmd /c  modesdeco2.exe --device-index 0 --gain 49.6 --freq-correction 67 --beast 31001
PAUSE
exit

Use the gain value and the freq-correction in ppm for your conditions and dongle.

2. Next connect ADSBScope to the ModeSDeco2. Start by choosing other > Network > Network Setup from the menus.
A dialog box will open that shows some fields for port numbers for different purposes. Ignore those for now and concentrate on the buttons in the area for RAW-data-client at the bottom. There are four buttons, labeled adsbScope, BEAST, RTL1090 and ADSB#. You'll be using ModeSDeco2 to decode your data into BEAST output format, so click the BEAST button.

3. Notice how the port number changes depending on which button you press. For BEAST it changes to 31001.

4. Click local to ensure the IP address reads 127.0.0.1. This assumes you are running your ModeSDeco2 and ADSBScope on the same computer. If you are using two computers, then you'll need to change the ip address in the URL field to match the ip address of the computer on your network that is running the ModeSDeco2. Once you have the right configuration setup, click Close.

5. If you want ADSBScope to remember all of this information (your location and your network setup), the choose File > save default.

6. Start Plotting with this minimum setup needed to make ADSBScope work, you need to enable the connection to the decoder software. You can do this in one of two ways. Either select other > Network > RAW-data Client active, or click the third icon beneath the Navigation menu (the icon looks like a series of connected computers).

7. If you've done everything correctly up to this point, you should see something like this:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141121/modesdeco2_adsbscope.png)



Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 22, 2014, 03:13:09 AM
In the first message of this thread is new version of ModeSDeco2 v.20141121

+ used new version of Boost C++ libraries
+ changed the determining algorithm of a stationary background noise level and noise spikes, which in some conditions can give an increase the number of received messages up to 8-10%
+ improvements and changes in code
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 22, 2014, 11:08:53 AM
sergsero

Regarding the  Marvell Kirkwood CPU files, I see they are for Open WRT. Currently running Debian on these boxes so  need to read how to install Open WRT without bricking!

Then I can see if it works.

Ian
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 22, 2014, 11:51:19 AM
In the third message of this thread is new version of ModeSMixer2 v.20141121 (FlightAware)

+ implemented the first stage of data processing for send data to FlightAware. Added TCP server, which outputs data into the same filtered format as FlightAware fork of dump1090_mr produces.This is achieved by adding to the command line the option:
--outServer fatsv:Port
The support program piaware, which establishes an encrypted session to FlightAware and forwards data is still required.

+ fixed purely cosmetic issues
+ use new version of Boost C++ libs

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141121/modesmixer2_FlightAware.png)

I would be very grateful for testing.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LX-LGN on November 24, 2014, 08:12:11 PM
Initially had the problem of the missing file a download later and BINGO we're up and running.

At this time of night (20:09) my dongles will pick up just the one or two aircraft in its current location. Tonight with Modesdeco2 it's picking up 4 or 5 at a time in the same location!!!!!!

It has crashed twice inside 3 minutes. No reason or fault shown other than "it has stopped working" and

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 24, 2014, 11:05:46 PM
Do you really are using the latest version 20141121 from archive modesdeco2_windows_20141121.zip
Modesdeco2 with the one --help option will show the version number in console.

In my test case pair modesdeco2 and adsbScope27 still work without problems from the start time on 21 october:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141124/modesdeco2_adsbScope27.png)

Possible, you need to get the actual Microsoft Visual C++ Redistributable for Visual Studio 2012 Update 4 from the Microsoft site: http://www.microsoft.com/en-US/download/details.aspx?id=30679 (http://www.microsoft.com/en-US/download/details.aspx?id=30679), the 32 bit version.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LX-LGN on November 25, 2014, 07:38:06 AM
Hi sergsero,

Yes I am using the new version and I downloaded the Microsoft Visual C++ Redistributable for Visual Studio 2012 Update 4 and ran the vcredist_x86.exe

I have re-downloaded them again and will run them again.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 28, 2014, 03:04:27 PM
Testing version v.20141128 ModeSDeco2 with receiver AirSpy:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141128/modesdeco2_vrs_airspy_test.jpg)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 11, 2014, 03:25:25 PM
Can ModeSDeco send data directly to GlobeSRTL1090?

Or do I need ModeSMixer to do a conversion from sbs10001 to globes?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 11, 2014, 04:39:24 PM
No, the current version ModeSDeco2 does not support direct data output in GlobeS format. The reason is that GlobeS uses HTTP protocol for data exchange. Therefore a program, that feeds data to it, should have a built-in HTTP server, which consumes additional CPU resources.

However ModeSMixer2 has such a built-in HTTP server and is able to convert data from any format of the input data to the suitable for GlobeS. The best setup to minimize CPU load, when the output data from ModeSDeco2 come in to ModeSMixer2 in the BEAST format.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 11, 2014, 07:51:15 PM
Thank you. It means that I had read the documentation correctly  ;D. Just wanted to make sure I wasn't missing anything.

I'll use a combination of ModeSDeco and ModeSMixer.

ModeSDeco to ADSBScope worked fine using instructions in this thread. Just trying to see which combination I prefer.

Ian

Edit: Passing data from ModeSDeco to ModeSMixer and then to GlobeSRTL worked ok  ;D
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 21, 2014, 05:09:40 PM
Its possible to combine 3x Antenna Outputs together to see all Aircraft in my Area in PP?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on December 29, 2014, 09:30:42 PM
Quote from: sergsero on November 28, 2014, 03:04:27 PM
Testing version v.20141128 ModeSDeco2 with receiver AirSpy:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141128/modesdeco2_vrs_airspy_test.jpg)

Sergsero, can you give an update report on your tests with the Airspy receiver?

I have ordered one in the second batch for delivery early in the New Year.

What changes did you make to ModeSDeco2 to accommodate the Airspy?

Many thanks for your program and support, Happy New Year to you and yours.

Oldfella
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 01, 2015, 03:33:22 AM
Hello Oldfella,

AirSpy is a very good SDR receiver. Not less important, I think, because Youssef and Co. are very good programmers, that in Software Defined Radio system is essential :).
I think that the opportunities of AirSpy for ADS-B can be compared with Gunter's Beast. With one exception, that being wide-band, it does not have a narrow preselector on 1090MHz. And it will need help from BPF.

I did only test version of the program to verify that it works for ADS-B with new SDR receivers AirSpy and HackRF. It is works. However, this was done by simply replacing the front-end. To get real benefits compared with RTL dongle, need to rewrite the decoder, which will be able to fully use the potential of the more powerful hardware. First of all to take advantage of the oversampling and 70-75dB dynamic range due to 12bit ADC (AirSpy) instead of the ~46dB with RTL dongle.

In my opinion, given its high performance and cost, it is more appropriate to use as a full band SDR receiver.

Soon to be a new version ModeSDeco2 with a WEB interface for viewing statistics and maps:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141231/md2_flights2map.png)

Happy New Year

Sincerely,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 01, 2015, 07:39:37 AM
In the first message of this thread updated version ModeSDeco2 20141230

+ added option "--web Port" of WEB interface for displaying statistical data, for example: --web 8080.
When the program is  running, the WEB server will be accessible via IP:Port, where the IP is address of the computer where the program is running and Port is the number of the HTTP port, that was specified in the option --web.

It's strongly recommended to specify the coordinates of the receiving station as --location Lat:Lon. The new decoding algorithm for determining location of aircraft uses coordinates of the receiving station when it cannot get of the ether both messages of CPR pair. Great precision is not required - just one or two digits after the decimal point. For example, --location 54.32:108.46


+ added option "--device-serial arg" for select RTL device by serial no, for example: --device-serial 13
For R820T receiver chip in dongles only. This option is only interesting to those users that operate more than one dongle in their installation and want to assign specific modeSDeco2 instances to a specific dongle.
You can change the default serial number if use RTL1090 software from rtl1090.jetvision.de with command line option "/eeprom". Check the subsection: "4.6 Serial number programming and selective dongle operations" at http://rtl1090.jetvision.de/ (http://rtl1090.jetvision.de/) website for details.

+ changed the filtering of a false air targets (ghosts)

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150101/modesdeco2_20141230_web.png)

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150101/modesdeco2_20141230_web_stats.png)

In this version has not yet implemented some custom settings to display objects on WEB pages. Hope I can make them in the next version.
I will be very grateful for testing this release and feedback.

Happy New Year,

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on January 01, 2015, 08:41:25 AM
But how can i compaire 2, 3, 4, 5,... Antenna, SDR Dongle together?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: obj on January 04, 2015, 04:36:56 PM
modesdeco2 appears to link to librtlsdr, which is GPL licensed. Is modesdeco2 available under a GPL-compatible license?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: airbus340 on January 06, 2015, 11:05:09 AM
I am a new user of ModeSDeco2 and it is a great software!

One question, how do i set auto gain?

When first installed it was set to 48.9 and only weird flights came in so I set it to 20.9 which have given me best in other software, exept in Dump1090 that was better in auto gain.

I have tried Auto, auto and -100 as I read somewhere but Auto and auto give a error message and -100 decodes nothing...
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 06, 2015, 12:29:31 PM
Hello airbus340,

To activate the "auto" mode, just don't use the option --gain

Instruction is always available, if you run the program with only --help

modesdeco2.exe --help
2015-01-06 18:25:34.528  INFO     ModeSDeco2 v.20150106
Program options:
  -h [ --help ]         This help message
  --device-list         List Available devices
  --device-index arg    Select RTL device (default: 0)
  --device-serial arg   Select RTL device by serial no
  --gain arg            Set gain in Receiver, dB (default: auto)
  --agc                 Enable Automatic Gain Control in RTL (default: off)
  --freq arg            Set frequency, Hz (default: 1090000000)
  --freq-correction arg Set frequency correction, ppm (default: 0)
  --input-file arg      Set input filename with I/Q signals
  --rbs                 Enable RBS decoding (default: off)
  --beast arg           Enable Beast output listen port (default: off)
  --avr arg             Enable AVR output listen port (default: off)
  --avrmlat arg         Enable AVR MLAT output listen port (default: off)
  --sbs10001 arg        Enable SBS-3 output listen port (default: off)
  --msg arg             Enable MSG output listen port (default: off)
  --web arg             Enable Web Server on port (default: off)
  --location arg        Receiver location Lat:Lon
                        Example: 36.2:-15.3
  --verbose             Verbose mode (default: off)
  --localtime           Local Time in MSG format output (default: UTC)
  --filter-expire arg   Filter record expire time, sec (default: 20)
  --filter-count arg    Filter record min count (default: 6)
  --filter-time arg     filter record min time, sec (default: 60)
  --filter-nocountry    Disable ICAO Country filter (default: on)
  --nmea arg            Enable GPS Emulation.
                        Format: ICAO:Port:BaudRate
  --nmea-logfile arg    Set GPS Emulator logfile


However, I recommend that you experiment with the selection of the optimal initial fixed gain. Further, the program will be calculate the required signal gain based on this value.
For dongle with receiver chip R820T the supported gain values (29): 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


Thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: airbus340 on January 06, 2015, 02:29:57 PM
Thank you very much sergsero!

I will try the different settings instead of use auto then. When I watch the message rate in adsb# my message rate start to decrease at 19.9 and 22.9 and peak at 20.7 and thats why I put it to 20.7.

But maybe different software need different gain settings, so I will experiment.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 09, 2015, 11:40:42 AM
I'll recommend for tests to use the version 20150106, in which were fixed bugs. Just download the archive again. It is a new binary version. It is able to extract the classic Mode-S squawks (DF5/DF21) and new DF17 from transponder v.2 Airbus 380 and some business jets.
While not made for version 1, for example, Boeing 744-800.

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150109/modesdeco2.jpg)

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on January 12, 2015, 02:03:02 PM
Hi,

I am a new user to Modesdeco, unfortunately I cannot get it to work. I have attached an image and as can be seen it is showing as logged in but I don't receive any aircraft hits. When I change back to my sbs box it works fine.
I have changed the setting to network in basestation rather than USB.

I have a windows 7 64 bit machine.

Hope you can help.

Best Regards

Carl


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 12, 2015, 02:10:48 PM
Hi Carl,

Common recommendation the command line for direct connection Basestation.exe through the IP network: --sbs10001 10001

For example, my SBS-3 has IP:Port as 192.168.64.170 and 10001. Accordingly, Basestation.exe uses to connect these settings: 192.168.64.170 and 10001.
My computer with running program modesdeco2 has IP 192.168.64.161. It will be the new source of RAW data for Basestation.exe. The port will save, for simplicity, the same - 10001.
Then the command line would be: modesdeco2.exe --device-index 0 --gain 49.6 --freq-correction 125 --sbs10001 10001

New network settings in Basestation.exe visible in the picture: 192.168.64.161 10001:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150111/modesdeco2_basestation_direct.png)

If all is successful, the message at the bottom should change from: "Not connected to SBS-1" to "Connected to SBS-1" as on picture.


It is possible that the start of the data exchange process will take a few seconds. To verify that data is received, add the option --verbose to the command line. If the data is there, you will see them in the console:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150111/modesdeco2_verbose.png)

I did this test direct connection right now in windows 8.1 64 bit machine.

I can recommend you to update the version modesdeco2. During this time there were bugs that were fixed. The latest version 20150106 can be downloaded from the first message of this thread.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on January 12, 2015, 10:20:43 PM
Hi Sergsero,

Thank you for the quick reply. I will try this with the latest version. When I check my settings I am using the settings as can be seen in the attached image.

Thanks

Carl

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on January 13, 2015, 05:45:03 AM
Quote from: sergsero on January 01, 2015, 03:33:22 AM

I did only test version of the program to verify that it works for ADS-B with new SDR receivers AirSpy and HackRF. It is works. However, this was done by simply replacing the front-end. To get real benefits compared with RTL dongle, need to rewrite the decoder, which will be able to fully use the potential of the more powerful hardware. First of all to take advantage of the oversampling and 70-75dB dynamic range due to 12bit ADC (AirSpy) instead of the ~46dB with RTL dongle.


Hello again Sergsero,

Received my AirSpy yesterday and have been doing some tests and so far very very impressed.

Naturally, very interested to hear if you are going ahead with a rewrite the decoder to fully explore the benefits of the AirSpy.

Again, thank you for your efforts they are very much appreciated.

Oldfella
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: OH8MDT on January 13, 2015, 07:12:28 AM
Thank you, great programming work, excellent work on Ubuntu 14.04.

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on January 14, 2015, 08:16:59 PM
Would like to add my thanks for such a big advancement to the ModeSDeco2 program Sergsero. Much appreciate your work and skill.

Thanks also to OH8MDT for his input regarding the options setup.


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tebrown on January 15, 2015, 07:51:27 PM
Hi sergsero,

Thanks for all the hard work. So far, I am very impressed with your work. The only issue I have found thus far is the error in the coverage map after I have the program running for about a day.  See the screenshot below.  I am guessing some position reports are bogus, or some math has gone wrong.

Thanks,
Travis

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: masa5582 on January 16, 2015, 01:07:11 AM
Hi.

Thank you for always. I'm worried now. Or from ModesDeco2 you are running in another computer, via a ModesDeco2 running on a personal computer in a remote location, it is sent over the network, you want to run the BaseStation.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 17, 2015, 11:56:36 AM
Hello tebrown,

I will try to fix the errors of CPR zone determination on map in the next version of program.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: maximus_mike on February 06, 2015, 04:22:23 AM
Hi Sergsero,

Many thanks for the latest version of modesdeco2 with all the maps, charts, flights etc. I am using it with a r820t2 dongle and getting excellent results out to around 250km.

This is now my main Mode-s program.

Thanks - Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: MrParanoia on February 06, 2015, 03:50:40 PM
Hi Sergsero,

I previously used ModeSDeco2 with an RTL device but am now using ModeSMixer to transcode data from Airnav Radarbox to GlobeS RTL so thanks for your great work.

Is there any plan to implement the web interface for statistical data into ModeSMixer?

Thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on February 06, 2015, 03:51:35 PM
How about UDP?  ???
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 06, 2015, 05:30:16 PM
I'm very grateful for tests and feedbacks of this version ModeSMixer2 with the WEB interface modesmixer2_windows_20150209_test_only.zip

ModeSMixer2 v.20150209 test version

+ added option "--web Port" for displaying statistics data in WEB interface, for example: --web 8888

+ added option "--db /path/to/*.sqb" for use aircraft database in Sqlite3 format, coinciding with the basestation.sqb, for example: --db C:\Tmp\basestation.sqb. If this file is in the same directory from which you'll run the program, the path can be omitted. To work with database the file sqlite3.dll should be in the same directory from which you'll run the program.

 
Notice! After putting command <Control-C> for stop the program, be sure to wait for save all data to the database file!
The console will display a special message about. Depending on the number of observed aircraft the time for safely save data to the database can be up to one minute.

 
+ added option "--frdb /path/to/*.sqb" for use flight routes database in Sqlite3 format, coinciding with the flightroute.sqb, for example: --db C:\Tmp\flightroute.sqb. If this file is in the same directory from which you'll run the program, the path can be omitted.

+ added functionality, that computes magnetic declination by WMM2015 model (Magnetic Declination is the angle on the horizontal plane between Magnetic North and True North).
For correct calculation of Magnetic Declination file wmm.cof should be in the same directory from which you'll run the program.

+ added filters, which provide error correction of display aircraft trails on map, if possible. When signal is interrupted, this segment of the trails will be shown by the dotted line.

+ fixed some bugs of CPR decoding, when there is no data about coordinates of the station.

+ improved data decoding from register BDS 6,2 (Target State and Status (TSS) of information MCP/FCU Selected Altitude or FMS Selected Altitude. Separately display FMS information from aircrafts with transponder ver.2.

+ added data decoding and displays information, if transmitted, about status: AutoPilot (AP), Vertical Navigation (VNAV), Altitude Hold (AHOLD), Approach (APPR).

+ added indication about presence of TCAS (ACAS) system and type of its output messages: advisory air traffic information (TA), or recommendations for the prevention of collision (RA).

+ getting squawk from aircrafts with transponder ver.1, for example, Boeing 788 or Boeing 748, when no selective interrogator (Mode S) in the FIR.

+ color scheme of aircraft trails was moved to color as VRS (for uniformity of perception). Added detection of touchdown point (or liftoff) on runway, which is marked by changing the color of the trajectory (from yellow to black).

With this test version of program do not use as a database *.sqb file, which is only for your primary station. Make a copy of your basestation.sqb file and use with this ModeSMixer2 only this copy.

Example of display in FIR with presence of ground selective interrogator (Mode S):
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150207/modesmixer2_transponder_V0_ModeS.jpg)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: MrParanoia on February 06, 2015, 06:47:40 PM
Quote from: sergsero on February 06, 2015, 05:30:16 PM
I'm very grateful for tests and feedbacks of this version ModeSMixer2 with the WEB interface modesmixer2_windows_20150207_test_only.zip: https://dl.dropboxusercontent.com/u/79709204/MM2/modesmixer2_windows_20150207_test_only.zip (https://dl.dropboxusercontent.com/u/79709204/MM2/modesmixer2_windows_20150207_test_only.zip)

ModeSMixer2 v.20150207 test version

+ added option "--web Port" for displaying statistics data in WEB interface, for example: --web 8888

Unfortunately not working for me, it appears as if no data is being output which is also confirmed by http://127.0.0.1:31008/table2 returning a blank page in the web browser.


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 07, 2015, 02:38:37 AM
Hi MrParanoia,

What format of output data from your source 127.0.0.1:30003? Seeing that the port is 30003, I can assume that this feed has MSG Kinetic.
Something like this: "MSG,3,0,0,424131,0,2015/02/07,02:04:51.756,2015/02/07,02:04:51.756,,34000,,,58.047847,88.485168,,,,,,0"

If this is true, then the necessary for work ModeSMixer2 and Globe-S RAW data are missing in your feed.

Therefore  on the WEB page Stats no data in the table, because you do not give program the required information. Use as input source any of RAW formats: Beast, AVR, SBS-1/3_RAW.

If you have only MSG source, then you better use VirtualRadarServer.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 07, 2015, 04:47:08 AM
Example of running ModeSMixer2 on OS X 10.10 Yosemite with --web option, when use output feed from SBS-3 BaseStation.exe  RAW from port 30006:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150207/modesmixer2_web_OSX_sbs-3_30006_RAW_1.png)

modesmixer2_osx_20150207_test_only.tgz
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 07, 2015, 09:55:35 AM
Example of running ModeSMixer2 on Raspberry Pi (Linux raspberrypi 3.12.35+ #730 PREEMPT Fri Dec 19 18:31:24 GMT 2014 armv6l GNU/Linux) with --web option and CPU utilization ~50-60% with 135 aircrafts:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150207/modesmixer2_web_RPi_135_aircrafts.png)



Apparently in case with RPi, in further design need to put on a new Raspberry Pi 2 with 4 cores  :)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on February 07, 2015, 10:50:24 AM
But how can i send the Data out via UDP?
I will buy the new Raspbery 2 and need IDP instead of TCP.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: MrParanoia on February 07, 2015, 11:32:06 AM
Quote from: sergsero on February 07, 2015, 02:38:37 AM
Hi MrParanoia,

What format of output data from your source 127.0.0.1:30003? Seeing that the port is 30003, I can assume that this feed has MSG Kinetic.
Something like this: "MSG,3,0,0,424131,0,2015/02/07,02:04:51.756,2015/02/07,02:04:51.756,,34000,,,58.047847,88.485168,,,,,,0"

If this is true, then the necessary for work ModeSMixer2 and Globe-S RAW data are missing in your feed.

Therefore  on the WEB page Stats no data in the table, because you do not give program the required information. Use as input source any of RAW formats: Beast, AVR, SBS-1/3_RAW.

If you have only MSG source, then you better use VirtualRadarServer.

Thanks,
sergsero

Hi Sergsero

The previous non-test version worked fine using the following in the .bat file
modesmixer2.exe --inConnect 127.0.0.1:30003 --globes 31008:table2:UUDD 
and outputs this transcoded data:

40090D:A-:TOM2KG:0:6:31:56:5772:53.484797:-1.396718:8:0:F380:38000:0:0:::1:0:0::327:::::412:::::::::0::0::0:0:0:0:0:0::::17:0:0:0:0:0:0:::::2:2:::2:2:4:::2::::::::::::1423308028:58:UUDD.

The new test version doesn't output anything, even with the web interface command not called from the batch file.

Thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 07, 2015, 11:35:20 AM
Hi Radio2.0,

What is your problem? If you display a list of all program options run it with one --help, among them you will found --outConnectUdp <arg>.

Use it if you need output data to send over UDP (as client) to a remote UDP server.

As argument to specify the format (only one) of output data sent (beast,avr,avrmlat,msg,sbs30006,sbs10001,fatsv), IP address of the remote UDP server and number of Port on which it listens UDP.


If you need to get such data over UDP, use the option UDP server: --inServerUdp <arg>. The <arg> is one - UDP Port.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on February 07, 2015, 11:36:30 AM
thx i dont know that your application support udp.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on February 07, 2015, 11:51:38 AM
2015-02-07 12:48:35.981  ERROR    unrecognised option '--outConnectUdp' :-\
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 07, 2015, 12:15:25 PM
Hi MrParanoia,

Unfortunately, you didn't answer me about the data format of your source, but I'm sure that it's decoded MSG.

Above I said that in this version there is no reverse coding from MSG to RAW formats.

Thus, this test version will be to create output format of Globe-S only from input data in RAW formats: BEAST, AVR, SBS30006, SBS10001.  But will not work with MSG.

I hope that I will restore the function of reverse coding in next version.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 07, 2015, 12:40:30 PM
Hi Radio2.0,

I hope we are talking now about ModeSMixer2, not ModeSDeco2?  :)

ModeSDeco2 works only with TCP protocol.

If you are interested in these programs, you can use them in a couple. ModeSDeco2 will be as SDR receiver, which outputs data by TCP protocol to ModeSMixer2. And ModeSMixer2 retransmits their to your remote server via UDP protocol.

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: MrParanoia on February 07, 2015, 12:47:49 PM
Quote from: sergsero on February 07, 2015, 12:15:25 PM
Hi MrParanoia,

Unfortunately, you didn't answer me about the data format of your source, but I'm sure that it's decoded MSG.

Above I said that in this version there is no reverse coding from MSG to RAW formats.

Thus, this test version will be to create output format of Globe-S only from input data in RAW formats: BEAST, AVR, SBS30006, SBS10001.  But will not work with MSG.

I hope that I will restore the function of reverse coding in next version.

Thanks,
sergsero

Hi Sergsero

Its port 30003 from Airnav Radarbox which after some investigation this past hour I believe is not true RAW data.

Back to the old version for me then  :(

Thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on February 07, 2015, 12:49:22 PM
QuoteIf you are interested in these programs, you can use them in a couple. ModeSDeco2 will be as SDR receiver, which outputs data by TCP protocol to ModeSMixer2. And ModeSMixer2 retransmits their to your remote server via UDP protocol.
ok i try again...
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 07, 2015, 12:56:44 PM
Should be something like:

./modesdeco2 ... --beast 33033 ...
and
./modesmixer2 --inConnect 127.0.0.1:33033 --outConnectUdp Port

If both programs are on the same computer. If no, that ./modesmixer2 --inConnect IP_of_modesdeco2_computer:33033 --outConnectUdp Port
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 08, 2015, 05:19:42 AM
Preparing to run the program ModeSMixer2, using the WEB functions


Example:
modesmixer2.exe --inConnect 192.168.64.170:60006 --web 8888 --db basestation.sqb --frdb flightroute.sqb --outServer msg:30003

A number of the HTTP-port (this is 8888) can be changed at your discretion. But make sure that your chosen port values do not used by other programs.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: giacomo892 on February 09, 2015, 03:58:58 PM
Thanks for your great program! I'm running it on rpi since a week but after some day of uptime I got a strange behaviour in the coverage pattern. See the attached file.



[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 09, 2015, 04:08:08 PM
Hello giacomo892,

Yes, this is known bug in that version of program.

It is due to incorrect determination of zone CPR. In the next version ModeSDeco2, which is now being finalized, it is now fixed.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 09, 2015, 04:09:18 PM
New test version 20150209 of ModeSMixer2:


+ fixed bug where planes from previous session continued to displayed on Google map after restart of the program

+ fixed error when the value MHdg could exceed 359°

+ resumed functionality of reverse coding MSG2RAW, again available mode --globes, when the source data in MSG format

+ positioning of Google maps when you first start program makes in area of aircraft location

+ fixed bug where it was required to simultaneously use both database basestation.sqb and flightroute.sqb

+ fixed bug of incorrect scaling on WEB page Charts

Thank you for testing and help to find these errors.
I would appreciate for testing this new version 20150209 and report of any errors or failures of the work - preferably with details of how and where it happened.

Thanks,
sergsero

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: giacomo892 on February 09, 2015, 04:56:11 PM
Quote from: sergsero on February 09, 2015, 04:08:08 PM
Hello giacomo892,

Yes, this is known bug in that version of program.

It is due to incorrect determination of zone CPR. In the next version ModeSDeco2, which is now being finalized, it is now fixed.

Thanks,
sergsero

Many thanks for your effort!

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: MrParanoia on February 09, 2015, 10:13:59 PM
Quote from: sergsero on February 09, 2015, 04:09:18 PM
New test version 20150209 of ModeSMixer2:

I would appreciate for testing this new version 20150209 and report of any errors or failures of the work - preferably with details of how and where it happened.

Thanks,
sergsero

Hi Sergsero

Tested and working well - I have attached screenshots from WEB interface

1 question - should there be a Distance histogram and Polar coverage plot on the chart tab (like in ModeSDeco2)? - as this is missing from mine.  I have tried adding --location argument in the .bat file but this returns "unrecognised option" 

Also I only ran it for a 3 minute test period but the command window was still trying to Close DB Session 9 minutes later so did not reach the shutdown command.  A 2nd test (again 3 minutes) and it closed the database within seconds.  Edit: A 3rd test (20 hours) and database closed within seconds again

Thanks again

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 14, 2015, 10:17:25 AM
Test version ModeSDeco2 20150214

+ added option "--db /path/to/*.sqb" for use aircraft database in Sqlite3 format, coinciding with the basestation.sqb, for example: --db C:\Tmp\basestation.sqb. If this file is in the same directory from which you'll run the program, the path can be omitted.
  To work with database the file sqlite3.dll should be in the same directory from which you'll run the program.
   
  Notice! After putting command <Control-C> for stop the program, be sure to wait for save all data to the database file!
  The console will display a special message about. Depending on number of observed aircraft the time for safely save data to database can be up to one minute.

 
+ added option "--frdb /path/to/*.sqb" for use flight routes database in Sqlite3 format, coinciding with the flightroute.sqb, for example: --db C:\Tmp\flightroute.sqb. If this file is in the same directory from which you'll run the program, the path can be omitted.

+ added option --silhouettes /path/to

+ added option --pictures /path/to

+ added functionality, that computes magnetic declination by WMM2015 model. For correct calculation of Magnetic Declination file wmm.cof should be in the same directory from which you'll run the program.

+ added filters, which provide error correction of display aircraft trails on map, if possible. When signal is interrupted, this segment of the trails will be shown by the dotted line.

+ fixed some bugs of CPR decoding, when there is no data about coordinates of the station.

+ improved data decoding from register BDS 6,2 (Target State and Status (TSS) of information MCP/FCU Selected Altitude or FMS Selected Altitude. Separately display FMS information from aircrafts with transponder ver.2.

+ added data decoding and displays information, if transmitted, about status: AutoPilot (AP), Vertical Navigation (VNAV), Altitude Hold (AHOLD), Approach (APPR).

+ added indication about presence of TCAS (ACAS) system and type of its output messages: advisory air traffic information (TA), or recommendations for the prevention of collision (RA).

+ getting squawk from aircrafts with transponder ver.1, for example, Boeing 788 or Boeing 748, when no selective interrogator (Mode S) in the FIR.

+ color scheme of aircraft trails was moved to color as VRS (for uniformity of perception). Added detection of touchdown point (or liftoff) on runway, which is marked by changing the color of the trajectory (from yellow to black).

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on February 16, 2015, 04:49:00 PM
Hi Sergsero,

Hopefully you can help me some more as I'm still stuck trying to get ModesDeco2 to work. I am using your software from 20150106 as you previously advised. I copied it to my desktop and had to add in rtlsdr.dll to the folder. I run the exe(modesdeco2.exe) then open my sbs basestation. I have set the basestation datasource to Network and changed the hardware networks settings address from 127.0.0.1 to my pcs ip address.

However I keep getting the error 'Unable to connect to SBS-1 socket'.

Do you know what I may be doing wrong?

Hope you can help.

Best Regards

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 16, 2015, 05:16:48 PM
Hi Carl,

Please, write here the full your command line (with --options) for running modesdeco2.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on February 16, 2015, 05:39:16 PM
Hi Sergio,

I have attached an image of this.

Thanks

Carl

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 16, 2015, 06:11:24 PM
Hi Carl,

To understand the cause of your problem I need to see which options you used for run the program. The screenshot does not give this information.

To create an output data stream in format of SBS RAW, you need to specify it via the appropriate option --sbs10001 10001.

Command-line represents something like:

C:\modesdeco2 --gain 49.6 --freq-correction 46 --location 52.38:-1.25 --web 8888 --db D:\temp\dbase\basestation.sqb --frdb D:\temp\dbase\flightroute.sqb --silhouettes D:\temp\images\silhouettes --pictures D:\temp\images\pictures --sbs10001 10001

Even better, if you create a bat file with this line inside and make a shortcut on your desktop to start (for last version 20150214):
@echo off
cmd /c  modesdeco2.exe --gain 48.0 --freq-correction 46 --location 52.38:-1.25 --web 8888 --db D:\temp\dbase\basestation.sqb --frdb D:\temp\dbase\flightroute.sqb --silhouettes D:\temp\images\silhouettes --pictures D:\temp\images\pictures --sbs10001 10001
PAUSE
exit


It seems to me that you just run the modesdeco2.exe file in your console (cmd) without specifying any options...

Thanks,
sergsero

Russian forum: http://forum.adsbradar.ru/f39/konsolnaya-programma-modesdeco-dlya-mode-s-1393/ (http://forum.adsbradar.ru/f39/konsolnaya-programma-modesdeco-dlya-mode-s-1393/) and
http://forum.adsbradar.ru/f25/adsbsender-priem-peredacha-raw-avr-dannyh-po-tcp-dlya-linux-1025/ (http://forum.adsbradar.ru/f25/adsbsender-priem-peredacha-raw-avr-dannyh-po-tcp-dlya-linux-1025/)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on February 16, 2015, 06:29:44 PM
Thanks Sergio.

I have created a bat file as you suggested. When I run it I get an error as follows:

2015-02-16 18:26:22.385 ERROR unrecognised option '--db'
press any key to continue . . .

Is this the problem or me not creating the batch file correctly?

Thanks

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 16, 2015, 06:35:09 PM
If you're not using the latest version from 20150214, then remove all database and web options. Leave only required for output stream in SBS format:

@echo off
cmd /c  modesdeco2.exe --gain 48.0 --freq-correction 46 --location 52.38:-1.25 --sbs10001 10001
PAUSE
exit


The *.bat file be sure to put in the same directory where modesdeco2.exe is.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on February 16, 2015, 06:59:39 PM
Hi Sergio,

this is what I am seeing now from the batch file. It still say not connected to sbs-1 on my basestation though.

Thanks

Carl

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on February 16, 2015, 08:01:53 PM
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.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on February 16, 2015, 09:47:28 PM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on February 16, 2015, 10:08:38 PM
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!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: 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'.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: MrParanoia on February 17, 2015, 10:03:14 PM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on February 17, 2015, 10:35:15 PM
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.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on February 17, 2015, 10:42:41 PM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: blkno1 on February 18, 2015, 02:20:00 PM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on February 18, 2015, 05:20:19 PM
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]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on February 18, 2015, 06:27:26 PM
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]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on February 18, 2015, 06:31:05 PM
blkno1

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

Sergsero keeps adding options and I can't keep up!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on February 18, 2015, 07:47:05 PM
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)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on February 18, 2015, 08:19:32 PM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on February 18, 2015, 08:24:43 PM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 19, 2015, 02:35:49 PM
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]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 20, 2015, 03:29:56 PM
Hello,

New test version of ModeSMixer2 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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on February 20, 2015, 06:48:40 PM
blkno1

I have now tried the latest version with Raspberry Pi Plus and I agree.

I can't get the --db or  --silhouettes options to work.

** --db option does work once I have a good BaseStation.sqb file!
** --silhouettes option works once I get the path correct!

All the other bits of the web interface seem to be working.

So the question is - what silhouette files are you using? I copied IanK's files into the required folder - see link on right of web page.

Ian
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: APO1972 on February 20, 2015, 08:49:52 PM
Hello to all,
Me too i have problem feeding data to BaseStation from a USB RTL dongle via ModeSDeco2 (.bat file    @echo off
cmd /c modesdeco2.exe --gain 49.6 --sbs10001 10001
PAUSE
exit)
See the attachment snapshot , pressed debug button at BaseStation menu.


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: blkno1 on February 20, 2015, 09:28:37 PM
I have the *.zip of silhouettes (*.bmp files) from Iank's site in a dir named /silos.  I've double checked the paths.

./modesdeco2_2015_02_20 --gain 49.6 --freq-correction 53 --silhouettes ~/modesdeco/silos --web 8080 --localtime


I've tried both ~/modesdeco/silos    and /home/pi/modesdeco/silos paths.


-blkno1
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on February 20, 2015, 10:57:54 PM
Make sure the *.BMP files are in /home/pi/modesdeco/silos path.

Do an "ls" in that path since unzipping IanK's file creates another directory!  I had to move the BMP files.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: blkno1 on February 21, 2015, 12:37:21 AM
Can confirm that all the *.BMP files are in fact in the /home/pi/modesdeco2/silos dir path.

snippet of dir listing

-rw-r--r-- 1 pi pi    5176 Aug 15  2008 YK182SEAT.bmp
-rw-r--r-- 1 pi pi    5176 Feb 16  2009 YURO.bmp
-rw-r--r-- 1 pi pi    5176 Mar  8  2009 Z26.bmp
-rw-r--r-- 1 pi pi    5176 Jul  5  2008 ZEPHYR.bmp
-rw-r--r-- 1 pi pi    5176 Apr 16  2009 ZERO.bmp
-rw-r--r-- 1 pi pi    5176 Feb  1  2009 ZZZZ.bmp
pi@ironhide ~/modesdeco/silos $
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 21, 2015, 02:01:06 AM
Hello APO1972,

Can you confirm that you use the last version 1.2.4.184 of Basestation.exe?

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: APO1972 on February 21, 2015, 06:22:52 AM
Ahhh...nope...i'm still using v161...because my device is old SBS-1 MKI(5v) with an SBS1-EM(Ethernet module) Firmware 306 and the last version of BaseStation can run well MapModeS Server(MMS Server)-- if you know(sharing datas from different SBS Kinetic devices)-- was 161.
When to the past test 184 didn't worked the ability of MMS.
Nevermind i'll try 184 in an another folder and tell you.
Thanks :)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: APO1972 on February 21, 2015, 04:13:05 PM
OK that was the problem...today i run it on v184 and worked perfectly!!!
Thanks a lot
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on February 21, 2015, 06:02:07 PM
Hi Apo.

MMS (SBS1 Client) should work OK with BaseStation 184.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: APO1972 on February 21, 2015, 06:54:04 PM
Hi Anmer!
How are you?
I run the mmccepbep of Boris...http://mode-s.66ghz.com/ , not the MMS Client ,modified as you know the Basestation.ini such as below:
[DataInterface]
DataSourceType=1
SocketIntfIPAddress=192.168.1.170
SocketIntfPort=10001
IsConfigured=1
MapModeSSetToUse=1  <-------------------then must appear on menu bar the MapModeS tab
MapModeSIntfIPAddress=192.168.1.2
MapModeSIntfPort=20070

But unfortunately in v184 do nothing...it's not working at all
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on February 21, 2015, 07:17:27 PM
Sorry, I thought it was SBS1 Client, my mistake.

I am fine.  How are you?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: APO1972 on February 21, 2015, 07:49:23 PM
I'm fine!
Recently i bought 2 dongles and begun tests...i want to find out their capabilities(sensitivity,size of data can recieve per day,maximum range) in comparison with my older SBS-1 MKI...
I purchased some antenna adaptors for the time being and waiting for them , you know from ...mcx to UHF female , BNC Female , because i   must do the tests with the same antenna...and antenna position of course...
That's all
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on February 21, 2015, 11:05:26 PM
Hi sergsero,

I've run the latest 'test' version for 24 hours with no problems on a Win 8.1 64 bit machine.
I was pulling in about 40-50 contacts most of the day, obviously fewer at night, and all worked well throughout.

I was set up to feed Basestation as well as having the web interface enabled with silhouettes, pictures and sqb paths defined.

I like the web interface you have created, it's very well done.

Thanks for the effort you've put in to developing the software.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: APO1972 on February 22, 2015, 01:00:50 PM
I'm very happy! after my tests with modesdeco2 v20150220 feeding data from USB Donlge to Basestation.
Is very stable and in <<real time>> , i mean the targets are in same position on the same time as with the SBS-1 device feeding Basestation.
Also non-ADSB aircrafts shows on the Basestation aircraft list.
My .bat file is the below :
@echo off
cmd /c modesdeco2.exe --device-index 0 --gain 49.6 --freq-correction 64 --rbs --sbs10001 10001 --location 40.64:22.93
PAUSE
exit
Have you got any better than this?





[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 23, 2015, 08:57:48 AM
Last ModeSMixer2 installed and running in RadarCape receiver, receiving input data from the port 10003 and outputs them in RAW format for BaseStation.exe and Globe-S and WEB on port 8088:

./modesmixer2 --inConnect 127.0.0.1:10003 --outServer msg:30033 --web 8088 --db ~/data/basestation.sqb --frdb ~/data/flightroute-2015-02-18-1515.icao.sqb --silhouettes ~/data/Silhouettes  --outServer sbs10001:10001 --globes 31008:table2:UNNT

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150223/modesmixer2_radarcape_basestation_globes.png)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: loch-loman on February 25, 2015, 08:50:18 AM
Sergsero,

Firstly, awesome software. After months of struggling with unstable RTL1090 and Dump1090, your software is solid. Many thanks.

A few questions.
Can you share the Database table layout ?
Does the software allow 'filtering' or messages ? I would like to filter the re-output messages. Ie; in beast and out beast minus the filtered conditions. Filter on ICAO code, ie :3A*. with a permit/deny or ultimately co-ordinate ranges ?

Cheers.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 26, 2015, 05:37:47 AM
Hello loch-loman,

1. Programs modesdeco2/modesmixer2 can works with a database in sqlite3 format. The database structure may be identical to basestation.sqb used in BaseStation.exe, VirtualRadarServer (plugin), PlanePlotter and others.

If you run the command: $ sqlite3 basestation.sqb ".schema" > table_layout.txt,
you will have file table_layout.txt as:
CREATE TABLE DBInfo(OriginalVersion smallint not null,CurrentVersion smallint not null);
CREATE TABLE DBHistory(DBHistoryID integer primary key,TimeStamp datetime not null,Description varchar(100) not null);
CREATE TABLE Locations(LocationID integer primary key,LocationName varchar(20) not null,Latitude real not null,Longitude
real not null,Altitude real not null);
CREATE TABLE SystemEvents(SystemEventsID integer primary key,TimeStamp datetime not null,App varchar(15) not null,Msg
varchar(100) not null);
CREATE TABLE Sessions(SessionID integer primary key,LocationID integer not null,StartTime datetime not null,EndTime
datetime,CONSTRAINT LocationIDfk FOREIGN KEY (LocationID) REFERENCES Locations);
CREATE TABLE Aircraft(AircraftID integer primary key,FirstCreated datetime not null,LastModified datetime not null,ModeS
varchar(6) not null unique,ModeSCountry varchar(24),Country varchar(24),Registration varchar(20),CurrentRegDate
varchar(10),PreviousID varchar(10),FirstRegDate varchar(10),Status varchar(10),DeRegDate varchar(10),Manufacturer
varchar(60),ICAOTypeCode varchar(10),Type varchar(40),SerialNo varchar(30),PopularName varchar(20),GenericName
varchar(20),AircraftClass varchar(20),Engines varchar(40),OwnershipStatus varchar(10),RegisteredOwners varchar(100),MTOW
varchar(10),TotalHours varchar(20),YearBuilt varchar(4),CofACategory varchar(30),CofAExpiry varchar(10),UserNotes
varchar(300),Interested boolean not null default 0,UserTag varchar(5),InfoURL varchar(150),PictureURL1
varchar(150),PictureURL2 varchar(150),PictureURL3 varchar(150),UserBool1 boolean not null default 0,UserBool2 boolean
not null default 0,UserBool3 boolean not null default 0,UserBool4 boolean not null default 0,UserBool5 boolean not null
default 0,UserString1 varchar(20),UserString2 varchar(20),UserString3 varchar(20),UserString4 varchar(20),UserString5
varchar(20),UserInt1 integer default 0,UserInt2 integer default 0,UserInt3 integer default 0,UserInt4 integer default
0,UserInt5 integer default 0,OperatorFlagCode varchar(20));
CREATE TABLE Flights(FlightID integer primary key,SessionID integer not null,AircraftID integer not null,StartTime
datetime not null,EndTime datetime,Callsign varchar(20),NumPosMsgRec integer,NumADSBMsgRec integer,NumModeSMsgRec
integer,NumIDMsgRec integer,NumSurPosMsgRec integer,NumAirPosMsgRec integer,NumAirVelMsgRec integer,NumSurAltMsgRec
integer,NumSurIDMsgRec integer,NumAirToAirMsgRec integer,NumAirCallRepMsgRec integer,FirstIsOnGround boolean not null
default 0,LastIsOnGround boolean not null default 0,FirstLat real,LastLat real,FirstLon real,LastLon
real,FirstGroundSpeed real,LastGroundSpeed real,FirstAltitude integer,LastAltitude integer,FirstVerticalRate
integer,LastVerticalRate integer,FirstTrack real,LastTrack real,FirstSquawk integer,LastSquawk integer,HadAlert boolean
not null default 0,HadEmergency boolean not null default 0,HadSPI boolean not null default 0,UserNotes
varchar(300),CONSTRAINT SessionIDfk FOREIGN KEY (SessionID) REFERENCES Sessions,CONSTRAINT AircraftIDfk FOREIGN KEY
(AircraftID) REFERENCES Aircraft);
CREATE TABLE Active (ID integer primary key, ModeS varchar(6) not null, FlightID integer not null, SessionID integer not
null, FirstCreated DateTime not null, LastModified DateTime not null, Country varchar(24) null, Registration varchar(10)
null, Callsign varchar(10) null, Type varchar(50) null, ICAOType varchar(8) null, ConstructionNumber varchar(20) null,
Operator varchar(50) null, ICAOOperator varchar(4) null, SubOperator varchar(10) null, RadioCallsign varchar(20) null,
Route varchar(12) null, UserTag varchar(5) null, Interested boolean default 0, Populated boolean default 0, Alert
boolean default 0, FirstAltitude integer default 0, LastAltitude integer default 0, FirstLongitude real null,
LastLongitude real null, FirstLatitude real null, LastLatitude real null, FirstVerticalRate integer default 0,
LastVerticalRate integer default 0, FirstTrack real null, LastTrack real null, FirstSquawk integer default 0, LastSquawk
integer default 0, UserString1 varchar(20) null, UserString2 varchar(20) null, UserString3 varchar(20) null, UserString4
varchar(20) null, UserString5 varchar(20) null, UserInt1 integer default 0, UserInt2 integer default 0, UserInt3 integer
default 0, UserInt4 integer default 0, UserInt5 integer default 0, UserBool1 boolean default 0, UserBool2 boolean
default 0, UserBool3 boolean default 0, UserBool4 boolean default 0, UserBool5 boolean default 0, UserNotes varchar(300)
null, NeedsPopulating boolean default 0, NewEntry boolean default 0, Miscode boolean default 0, GroundCode boolean
default 0, Temp2 boolean default 0, CodeType varchar(2) null, SquawkTrans varchar(20) null);
CREATE TABLE Alerts (ID integer primary key, AlertType char(1) null, AlertValue char(10) null);
CREATE INDEX AircraftAircraftClass ON Aircraft(AircraftClass);
CREATE INDEX AircraftCountry ON Aircraft(Country);
CREATE INDEX AircraftGenericName ON Aircraft(GenericName);
CREATE INDEX AircraftICAOTypeCode ON Aircraft(ICAOTypeCode);
CREATE INDEX AircraftInterested ON Aircraft(Interested);
CREATE INDEX AircraftManufacturer ON Aircraft(Manufacturer);
CREATE INDEX AircraftModeS ON Aircraft(ModeS);
CREATE INDEX AircraftModeSCountry ON Aircraft(ModeSCountry);
CREATE INDEX AircraftPopularName ON Aircraft(PopularName);
CREATE INDEX AircraftRegisteredOwners ON Aircraft(RegisteredOwners);
CREATE INDEX AircraftRegistration ON Aircraft(Registration);
CREATE INDEX AircraftSerialNo ON Aircraft(SerialNo);
CREATE INDEX AircraftType ON Aircraft(Type);
CREATE INDEX AircraftUserTag ON Aircraft(UserTag);
CREATE INDEX AircraftYearBuilt ON Aircraft(YearBuilt);
CREATE INDEX FlightsAircraftID ON Flights(AircraftID);
CREATE INDEX FlightsCallsign ON Flights(Callsign);
CREATE INDEX FlightsEndTime ON Flights(EndTime);
CREATE INDEX FlightsSessionID ON Flights(SessionID);
CREATE INDEX FlightsStartTime ON Flights(StartTime);
CREATE INDEX LocationsLocationName ON Locations(LocationName);
CREATE INDEX SessionsEndTime ON Sessions(EndTime);
CREATE INDEX SessionsLocationID ON Sessions(LocationID);
CREATE INDEX SessionsStartTime ON Sessions(StartTime);
CREATE INDEX SystemEventsApp ON SystemEvents(App);
CREATE INDEX SystemEventsTimeStamp ON SystemEvents(TimeStamp);
CREATE INDEX ActiveModeS ON Active(ModeS);
CREATE INDEX ActiveRegistration ON Active(Registration);
CREATE INDEX ActiveAlert ON Active(Alert);
CREATE INDEX ActivePopulated ON Active(Populated);
CREATE INDEX ActiveInterested ON Active(Interested);
CREATE INDEX ActiveLastModified ON Active(LastModified);
CREATE INDEX ActiveNeedsPopulating ON Active(NeedsPopulating);
CREATE INDEX ActiveCallsign ON Active(Callsign);
CREATE INDEX ActiveRadioCallsign ON Active(RadioCallsign);
CREATE INDEX ActiveCountry ON Active(Country);
CREATE INDEX ActiveICAOType ON Active(ICAOType);
CREATE INDEX ActiveConstructionNumber ON Active(ConstructionNumber);
CREATE INDEX ActiveICAOOperator ON Active(ICAOOperator);
CREATE INDEX ActiveOperator ON Active(Operator);
CREATE INDEX ActiveSubOperator ON Active(SubOperator);
CREATE INDEX ActiveRoute ON Active(Route);
CREATE INDEX ActiveType ON Active(Type);
CREATE INDEX ActiveNewEntry ON Active(NewEntry);
CREATE INDEX ActiveMiscode ON Active(Miscode);
CREATE INDEX ActiveGroundCode ON Active(GroundCode);
CREATE INDEX ActiveCodeType ON Active(CodeType);
CREATE INDEX AlertsAlertType ON Alerts(AlertType);
CREATE INDEX AlertsAlertValue ON Alerts(AlertValue);
CREATE TRIGGER AircraftIDdeltrig BEFORE DELETE ON Aircraft FOR EACH ROW BEGIN DELETE FROM Flights WHERE AircraftID =
OLD.AircraftID;END;
CREATE TRIGGER SessionIDdeltrig BEFORE DELETE ON Sessions FOR EACH ROW BEGIN DELETE FROM Flights WHERE SessionID =
OLD.SessionID;END;


2. No, the output data feed to network has full RAW data, as its are in source Mode S messages transmitted from transponder.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: loch-loman on February 26, 2015, 06:34:58 AM
Thanks Sergsero. Appreciate the detailed reply.

Let me open up my second question broadly. I have a feed from ADSBhub (which can have 8-900 aircraft). Its the one I use to test the ModeMixer software. Plenty of messages in the feed but I want to just be able to take the entire feed and strip out the regions I dont want to monitor at the time.

Thoughts ?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 28, 2015, 05:47:20 AM
Hello,

Version ModeSMixer2 for MIPS architecture Atheros AR9344 rev 2 (TP-LINK TL-WDR3600/4300/4310):
modesmixer2_mips_ar71xx_20150314.zip

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150309/modesmixer2_mips.jpg)

Install for OpenWRT BarrierBreaker 14.07 with rootfs on External Storage (extroot on USB Storage):
   
1. Put the package modesmixer_20150314-1_ar71xx.ipk in any directory of your router.

2. Check if a previous version of modesmixer was installed earlier. If yes, then remove it:

opkg remove modesmixer

3. Installed the package modesmixer_20150314-1_ar71xx.ipk to router system:

opkg install modesmixer_20150314-1_ar71xx.ipk

4. In directory /etc/config find the settings file modesmixer. Make editing it for your needs. For example:

MODESMIXER_ARGS="--inConnect 192.168.1.10:10003 --web 8888 --db /root/data/basestation.sqb --frdb /root/data/flightroute.sqb --silhouettes /root/data/Silhouettes --log-noconsole"


5. Put the file wmm.cof in system root directory: (/wmm.cof)

6. Run command to start the program: /etc/init.d/modesmixer start

7. Run command to stop the program: /etc/init.d/modesmixer stop

8. Run command: /etc/init.d/modesmixer enable if you want to enable autostart the program after reboot system.

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150228/modesmixer2_openwrt_ar71xx.png)


Thanks,
sergsero

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 02, 2015, 02:22:11 PM
ModeSDeco2 version 20150303:

+ added option --flight-expire-time <arg>, sec (default: 3600). Specifies the time when aircraft leaves out from coverage area, after which data are written to database. Min 60, max 10800.
+ stalks after 5 km map scale

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on March 05, 2015, 07:28:45 PM
Was is different between ModeSDeco2 and Dump1090 ?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 08, 2015, 06:10:43 AM
In the first message of this thread is new version of ModeSDeco2 v.20150308

+ fixed some bugs
+ added option --flight-expire-time <arg>, sec (default: 3600). Specifies the time when aircraft leaves out from coverage area, after which data are written to database. Min 60, max 10800.
+ stalks after 1 km map scale
+ no longer required libraries sqlite3.dll and rtlsdr.dll

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 08, 2015, 06:13:52 AM
In the third message of this thread is new version of ModeSMixer2 v.20150307

+ fixed some bugs
+ added option --flight-expire-time <arg>, sec (default: 3600). Specifies the time when aircraft leaves out from coverage area, after which data are written to database. Min 60, max 10800.
+ stalks after 1 km map scale
+ no longer required libraries sqlite3.dll

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 09, 2015, 09:21:44 AM
ModesBeast receiver is connected to second USB port of router TPLink TL-WDR3600:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150309/modesbeast_modesmixer2_tplink3600.jpg)

Version ModeSMixer2 for MIPS modesmixer2_mips_ar71xx_20150307.zip https://drive.google.com/open?id=0B7NYXizl0U6iajNJSU1HRXVURHc&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iajNJSU1HRXVURHc&authuser=0) works on router.
Its command line:
MODESMIXER_ARGS="--inSerial /dev/ttyUSB0:3000000:none --web 8888 --db /root/data/basestation.sqb --frdb /root/data/flightroute.sqb --silhouettes /root/data/Silhouettes --outServer msg:30003 --outServer sbs10001:10001 --log-noconsole"

The program pulls output data from receiver through the serial port /dev/ttyUSB0 and displays them via the built-in WEB server.

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150309/TL-WDR3600.jpg)

Simultaneously modesmixer2 outputs a RAW data stream for program Basestation.exe.

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150309/modesbeast_modesmixer2_basestation_mips.png)

String Driven Thing - Heartfeeder (1973)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LSZH on March 11, 2015, 12:14:20 PM
Hi great software,
just one question
I try to use --nmea 12345:/dev/ttyUSB0:19200 and --nmea-logfile nmea,
but w/o success no data in the logfile nor on the ttyUSB0, what I am doing wrong?

I use modesdeco2_rpi2_20150308.tgz
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LSZH on March 11, 2015, 10:27:25 PM
Ah got it now,I have the data from one ICAO plane, but is it possible to stream all planes to ttyUSB0?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 12, 2015, 06:32:13 AM
Hello LSZH,

This option creates GPS - NMEA sentence for one aircraft with specific ICAO24.

In Linux you can use ptmx, pts - pseudoterminal master and slave through socat.

For example:
1. Install the program socat: sudo apt-get install socat

2. In first terminal run the program: socat PTY,link=/tmp/com0 PTY,link=/tmp/com1

3. In other terminal run modesdeco2: ... --nmea 4243CC:/tmp/com0:9600
Here the specified values (4243CC, 9600) should be changed for your needs.

4. The NMEA sentence available on the device com1: cat /tmp/com1

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 14, 2015, 10:09:47 AM
In the first/third messages of this thread are new versions of ModeSDeco2 v.20150315 for all and  ModeSMixer2 v.20150314 for some platforms:


modesmixer2_windows_20150314.zip
modesmixer2_i386_20150314.tgz
modesmixer2_x86_64_20150314.tgz
modesmixer2_osx_20150314.tgz
modesmixer2_rpi_20150314.tgz
modesmixer2_rpi2_20150314.tgz
modesmixer2_bbw_angstrom_radarcape_20150314.tgz


+ fixed bugs
+ changed operation read/write to database file
+ changed CPR control algorithm


Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on March 14, 2015, 10:44:50 AM
I've registered to this forum just to say thank you, sergsero! Great piece of work!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: aeroradio on March 14, 2015, 01:17:30 PM
Hello sergsero,

First, would like to thank you for ModeSdeco2, a very nice piece of software !
I have a question : even when running ModeSdeco2 for a day long, I never see the line "coverage area was determined" and every time I restart ModeSdeco2, it starts computing again the coverage area and drawing the diagram. Is there a way to stop this process and keep the last coverage data that was computed ?

Thanks.

aeroradio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 15, 2015, 01:56:18 AM
Hello aeroradio,

Modesdeco2 has two ways of determining a reference point for plotting coverage area diagram. The first uses the location coordinates, which are specified in command line when starting the program. This is the preferred way.
On the other hand, program always tries to calculate the location of receiver by performing analysis of the received coordinates from aircrafts. Typically, this value is sufficient to unambiguously identify of CPR zone.
If your antenna has a circular pattern, the calculated value in addition is close to the actual.

Current versions does not keep the last coverage data the antenna pattern after restart program.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: aeroradio on March 15, 2015, 08:18:22 AM
Thanks a lot, sergsero, for your explanations. Here, I use the location coordinates in the command line.

I thought it was possible to keep the last computed antenna pattern. By the way, this is not a problem, of course and, even more, could give the user a good indication on waves propagation changes as we observed here, a week ago.

Have a nice sunday !

aeroradio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: caius on March 15, 2015, 05:45:18 PM
Hello Sergsero,

I've been using modesdeco2 on the raspberry pi, which so far is working well. The latest version (20150315) appears to be causing a problem with its beast output however. Previously planeplotter would work quite happily on this output, but this version causes it to crash on launch as soon as I activate processing.

Edit: Ignore me, it was my cock up. The IP address wasn't entered correctly. It's working again.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on March 15, 2015, 09:30:10 PM
Hey sergsero please tell me what is different to Dump1090?
Title: Re: ModeSDeco concole program for RTLSDR
Post by: spotter.ssol on March 16, 2015, 01:39:56 AM
@Radio2.0  ;)

Quote from: sergsero on November 20, 2013, 08:39:04 AM
This software is just another one that works for SDR technology with RTL2832 DVB-T dongle. Does those or other characteristics of software its advantages, in my opinion, everyone decides for himself have firsthand knowledge.

Of the existing differences modesdeco with Andy's RTL1090 are:
- working with Basestation directly (c:\>modesdeco.exe --gain 49.6 --net 10001 --sbs10001 --location lat:lon),
- the program is designed for 24/7 work without supervision or control of the operator, so it has no GUI, and run from the command line without expending additional resources of computer.

The purpose of this publication was help me to test this software in regions with intensive air traffic and large number of the received Mode-S (ads-b) messages. Unfortunately, in my region there are no a large number of flight aircraft at a time.  If someone can help me, I'll very grateful to him. And it's does not require a change his habitual setup.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LSZH on March 16, 2015, 09:47:37 AM
Will there be in the future also for ModeSMixer2 a outSerial function ?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: fat-tony on March 16, 2015, 04:56:53 PM
@sergsero,

I've registered on this forum to give you some feedback on my testing of modesmixer on the RPi receiving data from the Beast receiver. I had posted on the modesbeast group on Yahoo!, but I'm not sure that you are a regular visitor there. Anyway - my thoughts:

Congratulations on the new version - a brilliant implementation of the google api. The tabs are well laid out and informative. I'm using copies of the standard basestation db and also the flight route database which I use on my PP installation and they are working well. I particularly like the way the aircraft details pop out when you click on the map and the tooltips for the flight origin and destination and the metric conversions on altitude, speed etc.

The only minor presentation issues are font problems on Firefox (ubuntu 14.10) with the numeric characters on the stats page - the numbers 5 and 7 are lower in height than others. I'm assuming it's a rendering issue as it's ok on Chrome. (It seems to be related to the Robotica font implementation on ubuntu).

One typo on the stats page:

"Surveillance (rool call) Ident" should read "Surveillance (roll call) Ident"

The web server and db update do not seem to be causing too much of an impact on the CPU utilisation on the RPi over and above the standard modesmixer2 usage. The biggest impact is when I turn on my PP client and the TCP traffic on my desktop machine jumps from < 1KB/s (even with the web browser running) to ~ 30 KB/s. It may be the way the PP client pulls the data from modesmixer2 is very inefficient.

One actual bug (or is it a feature?) discovered. At the start of each hour on the "Charts" tab the total for the "Messages" value is reset to zero but the "Positions" total for that hour is not. I have been running for almost three days now. The memory usage is slowly increasing. Total memory used in the RPi is now about 86MB which is an increase from about 37Mb on Day 1. This is in contrast with no memory creep on the previous version of modesmixer2 with no db/web server support.

On Friday last (13th) My Raspberry Pi 2 arrived! I downloaded your multicore version of modesmixer2 and, with 40 aircraft and  500/600 mode-s messages/sec, I'm seeing < 20% CPU used! It's a real step-up in performance with 4 cores running at 900MHz and 1GB RAM.

Thanks for some excellent software!

Regards,

Joe (w2 and XS on Planeplotter)


edit - just noticed you posted an update on 1503, so I have downloaded that and will check if memory usage is still creeping up. I tested modesdeco2 also with my RTL stick. Excellent diagrams on the charts page of receiver coverage. One typo, though - Histrograms should read "Histograms"
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: thebaldgeek on March 16, 2015, 11:07:30 PM
Hello Sergsero,

First up, thanks for the great modesmixer program. Without, there would be many things I could not do and test. Very grateful for your time.

Like the previous post, I see a rather bad memory leak on at least the latest version.
This results in the program crashing and losing data.

Here is the command that I am using;

@echo off
cmd /c  modesmixer2.exe --inConnect 192.168.1.101:33005 --inConnect 192.168.1.102:34005 --inConnect 192.168.1.103:35005 --outServer beast:39005 --outServer msg:39006 --outServer sbs10001:33336
PAUSE
exit


I have 3 Raspberry Pi running dump1090-mutablity with different antennas, so want a master Beast(RAW) output, which you provide on  port 39005.
This feeds into my VRS and FR24.exe.
The msg port is for ModeSLogger
sbs10001 is for PlanePlotter (and my flightaware/planefinder feeds).

As you can see, your software is critical to making this work.

The attachment shows my windows task monitor over about 1/2 hour. The memory creep is modesmixer2.exe
After a while, it gets to max and then something makes it drop back down to normal. Its when it drops that it often (but not always) crashes.

Im running it on a Win7 64bit IBM laptop.

Please let me know if I can run any tests for you.

Again, thanks for your program and time.

I have

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on March 17, 2015, 12:24:05 AM
Does anyone test Manual Gain vs. Auto Gain?

The are some ideas. Many Geeks fly around and want capture the hole ADSB Data for an funder replay.
Maybe you can do some Record and Replay for the Rawr ADSB Data and an offline Mode for the Map (for example offline Open Street View) with GPS Support.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 18, 2015, 02:14:30 PM
Hello fat-tony,

Thanks for your testing and founded errors. Spelling errors I fixed that.
QuoteAt the start of each hour on the "Charts" tab the total for the "Messages" value is reset to zero but the "Positions" total for that hour is not.
Now I think that it is a feature :).

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 18, 2015, 02:16:26 PM
Hello thebaldgeek,

Thanks for your testing and founded errors. I am trying to find a memory leak and hope that the weekend will be a new version for testing.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: kidshare on March 20, 2015, 03:50:37 AM
I have this issue with modesdeco2 mapping, planes are hundreds and thousands of miles away



[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 20, 2015, 04:22:10 AM
Hello kidshare,
   
Do you use the version of modesdeco2 from 20150315 which is  in the first message of this thread and sets the coordinates of your location in option --location <arg>?

Early version, a screenshot of which you bring, has contained this bug of coverage area, which was corrected in new versions. Please, use actual version of modesdeco2 from http://radarspotting.com/forum/index.php/topic,2978.msg13471.html#msg13471 (http://radarspotting.com/forum/index.php/topic,2978.msg13471.html#msg13471).

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: commar on March 20, 2015, 12:09:15 PM
Hi, I have OpenWrt router platform mpc85xx (Freescale P2020) is the ability to compile ModeSmixer2 or ModeSDeco2 for this platform?
Or provides the source code for my compilation?

   Thanks for the answer ... Martin
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 20, 2015, 12:27:32 PM
Hi Martin,

Unfortunately, under the terms of my employer, program code is not available. The opportunity to make a binary of modesmixer2 for your MIPS will be considered.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: kidshare on March 20, 2015, 04:40:03 PM
Hi sergsero,

I changed to ver. 3.15. yesterday, I was using one from February. I have always used the location option in the batch file. This map started 24 hours ago and so far no plots outside of the normal range, so far so good.


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 22, 2015, 04:56:05 AM
Hello,

In the first message of this thread is new version of ModeSDeco2  v.20150321 and in the third message is new version of ModeSMixer2 v.20150323

The main changes in the code to avoid memory leaks. However, this needs to be tested.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: fat-tony on March 22, 2015, 01:22:58 PM
Thanks, sergsero. Have downloaded RPi2 version and will monitor memory usage.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: thebaldgeek on March 22, 2015, 06:14:21 PM
Hello Sergsero,

Thanks for the new version, I have tested it out this morning for 3-4 hours.
Please see the attachment. The memory leak is the same.
I am using the same command line as last time.
(the --web command works on one PC, but not the other, I will look into that some more).

Thanks for taking the time to look into it.
Again, if there is any tests I can do for you, please let me know.

EDIT. A few moments after I posted this, I caught the program crash and it releasing the memory.
See the second screen shot for the drop in memory.


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 23, 2015, 01:51:44 AM
Hello thebaldgeek,

I can't reproduce your problem. Why do you have such a high memory utilization? In my test setup (sorry, Russian only) not memory leak occurs. I continue to monitor:

Thanks,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on March 23, 2015, 11:20:15 AM
Quote from: fat-tony on March 16, 2015, 04:56:53 PM
I have been running for almost three days now. The memory usage is slowly increasing. Total memory used in the RPi is now about 86MB which is an increase from about 37Mb on Day 1. This is in contrast with no memory creep on the previous version of modesmixer2 with no db/web server support.
I've detected the same problem, but it seems to be solved in 20150321 version. I'm running modesdeco2 for 48+ hours and memory usage is steady at 43MB.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: thebaldgeek on March 23, 2015, 02:43:31 PM
Hello Sergsero,

I have found direct link between Message rate and memory leak.

No leak overnight when message rate is less than 200 messages per second.
At day time, when many aircraft, message rate above 500 messages per second, the memory leak is bad.

I often have message rate of around 1500 messages per second and memory leak is very very bad.

Perhaps this is why you can not reproduce the problem, what message rate do you have?

@spotter.ssol, what message rate do you have?
I have tested 3 versions of modeSmixer2.exe and all versions have memory leak when message rate is above 500 messages per second.

EDIT: Added attachment to show my typical weekend message rate.
As I look at the memory graph and the message rate there is a clear link.

Sergsero, if you can try and raise your message rate, you should be able to reproduce the problem.
Once you hit 1000 messages per second, the leak is very bad.

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on March 23, 2015, 05:17:04 PM
@thebaldgeek

I'm sorry , but I'm running the RPi (Linux ARM) version. The leak I was referring is the one reported by @fat-tony.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: fat-tony on March 24, 2015, 01:07:31 PM
@thebaldgeek - are you logging mode-A as well as mode-S messages? Suppressing mode-A will significantly reduce your message rate, but you may need these for some purpose. (in my area of sky there is sufficient mode-S and ADSB traffic  :) )

I'm running on ARM (RPi2) platform and confirm the memory leak is gone since version 201500321. I've monitored for two days now.

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: thebaldgeek on March 24, 2015, 04:12:57 PM
I have found that if I turn off '--outServer msg:39006' the memory leak is almost zero. 

In other words, I am not sure its the message rate, but the message type that is the issue.

Will keep trying to track it down.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Dmi3 on March 25, 2015, 09:18:21 AM
ModeSMixer2 v.20150323
1st setup:
36 hrs run on ODROID U3 With following parameters: --inSerial /dev/ttyUSB0:3000000:hardware --outServer beast:30010 --web 8080

No changes for RAM consumption:
Private 3.14 mb + Shared 362.00 kb = 3.49 mb         modesmixer2
2nd setup:
ODROID U3 With following parameters: --inSerial /dev/ttyUSB0:3000000:hardware --outConnect beast:vrs-russia.DDNS.NET:XXXX --outServer beast:30010 --web 8080 --frdb flightroute.sqb --db basestation.sqb
After 1 hour:
Private 3.41 mb + Shared 321.00 kb = 3.73 mb         modesmixer2
After 12 hours:
Private 18.71 mb + Shared 342.00 kb = 19.05 mb         modesmixer2
After 18 hours:
Private 19.20 mb + Shared 338.00 kb = 19.53 mb         modesmixer2
After 84 hours:
Private 20.64 mb + Shared 346.00 kb = 20.97 mb         modesmixer2
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: eblot on March 29, 2015, 06:14:53 PM
Hi, any chance to add --inSerial option to modesdeco2, or a way to route modesmixer2 output to modesdeco2 input, so that receiver such as microadsb devices can be used with modesdeco2 the same way modesmixer2 is able to?

Thanks.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: herrmann-s on April 01, 2015, 11:02:00 AM
just a question i am missing the option -- location in modesMIXER because i like the grafical output of the webinterface. are there any plans to add this feature to modesmixer2 like it is in modexdeco too?

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: fat-tony on April 01, 2015, 03:46:35 PM
You don't really need position information for modesmixer2 for the web interface. When you first zoom to your location using the map interface, a cookie is set with the location coordinates. If you disallow cookies in your browser, though, you may have an issue!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: herrmann-s on April 01, 2015, 08:55:55 PM
i dont see the radius screen thats why i was asking. if it drops a cookie do you see the radius information like with modesdeco?
maybe it is a browser setting issue then which i dont know yet what cause this issue.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: thebaldgeek on April 02, 2015, 01:04:28 AM
I also would like the --location option in modesMixer2.exe for the web data it provides (range plot in HighCharts).

I also do not see radius lines on the map in any of the three browsers I have tested on.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on April 04, 2015, 06:03:13 PM
what shuld i add and use to get the planes into VRS?
which port use it: --beast 10003 --msg 30006
thx!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on April 05, 2015, 02:06:43 AM
Quote from: Radio2.0 on April 04, 2015, 06:03:13 PM
what shuld i add and use to get the planes into VRS?
which port use it: --beast 10003 --msg 30006
thx!

I used --msg 30003.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on April 05, 2015, 02:08:26 AM
that is what not work and took a long time to fix...
So i witch to other port.
What sind the settings in the VRS?

I will compaire it to rtl1090 and dump1090 when i got the brandnew  dongle.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 05, 2015, 10:06:19 AM
It is possible to use both formats of data for transmission in VRS. However, MSG is capable of transmitting only the basic parameters, which are transmitted by aircraft transponder.
If you are interested in viewing in VRS additional information (types of alt, speed, heading, target alt/hdg, signal level (only in beast)), you should use BEAST or AVR formats.

We can imagine it as a triple system: transmitter (aircraft transponder) - SDR receiver (modesdeco2) - Visualizer (VRS). All elements of the our system provide work with full amount of data.

If you use MSG format between MD2 and VRS, because of its limitations, it will act as a filter, which cuts off all modern types of data. Unlike the BEAST or AVR formats.

We received full Mode-S/ADS-B data and decoded their, but part of them will lost in process of network transferring to VRS.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: eblot on April 07, 2015, 11:01:11 PM
BTW, modes2mixer seems unreliable on RPi2. After a couple of second running, it crashes:

Starting program: /usr/local/bin/modesmixer2 --inSerial /dev/ttyACM0 --web 8888 --outServer msg:30003
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
2015-04-07 21:57:58.290  INFO     ModeSMixer2 20150323
2015-04-07 21:57:58.291  ERROR    Magnetic declinations coefficient file wmm.cof load fail
2015-04-07 21:57:58.291  INFO     InputServer added
2015-04-07 21:57:58.296  INFO     inSerial(/dev/ttyACM0) connected
2015-04-07 21:57:58.296  INFO     OutputServer added
2015-04-07 21:57:58.296  INFO     outServer(msg:30003) started
[New Thread 0x76c84460 (LWP 1875)]
[New Thread 0x76484460 (LWP 1876)]

Program received signal SIGSEGV, Segmentation fault.
0x76e651f4 in sincosl () from /lib/arm-linux-gnueabihf/libm.so.6
(gdb)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on April 08, 2015, 02:37:27 AM
Quote from: eblot on April 07, 2015, 11:01:11 PM
BTW, modes2mixer seems unreliable on RPi2. After a couple of second running, it crashes:

Starting program: /usr/local/bin/modesmixer2 --inSerial /dev/ttyACM0 --web 8888 --outServer msg:30003
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
2015-04-07 21:57:58.290  INFO     ModeSMixer2 20150323
2015-04-07 21:57:58.291  ERROR    Magnetic declinations coefficient file wmm.cof load fail
2015-04-07 21:57:58.291  INFO     InputServer added
2015-04-07 21:57:58.296  INFO     inSerial(/dev/ttyACM0) connected
2015-04-07 21:57:58.296  INFO     OutputServer added
2015-04-07 21:57:58.296  INFO     outServer(msg:30003) started
[New Thread 0x76c84460 (LWP 1875)]
[New Thread 0x76484460 (LWP 1876)]

Program received signal SIGSEGV, Segmentation fault.
0x76e651f4 in sincosl () from /lib/arm-linux-gnueabihf/libm.so.6
(gdb)

I'm also running on RPi and no problems so far. But I had similar problems in the past. Those segfaults could be related to the power source. Make sure you got a good power source with at least 2A output.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 08, 2015, 10:14:49 AM
Hello eblot,

Additionally, I would note, looking at the example you mentioned settings: /dev/tty*:Port_Speed:Flow control. For example for Miro's microADSB: /dev/ttyACM0:115200:none.
Please use one --help option for details or reread file modesmixer2.readme in archive.

1. the option --inSerial must contain all of its components:
2. file wmm.cof must be present in the same directory from which you'll run your program (and not just to be in the same folder with it).

sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: commar on April 10, 2015, 02:54:47 PM
Quote from: sergsero on March 20, 2015, 12:27:32 PM
Hi Martin,

Unfortunately, under the terms of my employer, program code is not available. The opportunity to make a binary of modesmixer2 for your MIPS will be considered.

Thanks,
sergsero

It's too bad, I'm sorry, this is the best software that I have seen so far, when a change occurs in the conditions I am very happy. Your work is very good.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on April 11, 2015, 10:57:30 AM
Hi!

I'm newbie using modesmixer2 and I would like some help in regard to the following question.

Does anyone who uses the --outConnectId argument can me explain how does it works and in which case is better to use it instead of using outConnect?

Thanks! :-\
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 11, 2015, 02:42:27 PM
Hi mlino,

This is a special mode for the single project. This option establishes connection to a remote server by TCP protocol and outputs AVR messages with additional text information at the end of each: [:name:lat:lon:TEXT:freq].

However, the incoming server must be able to parse this additional information to use. In this project Mode S/ADS-B stations are transmitting their position, name, the oscillator frequency for MLAT and so on.

The option not used outside of this project.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on April 11, 2015, 04:20:01 PM
Quote from: sergsero on April 11, 2015, 02:42:27 PM
Hi mlino,

This is a special mode for the single project. This option establishes connection to a remote server by TCP protocol and outputs AVR messages with additional text information at the end of each: [:name:lat:lon:TEXT:freq].

However, the incoming server must be able to parse this additional information to use. In this project Mode S/ADS-B stations are transmitting their position, name, the oscillator frequency for MLAT and so on.

The option not used outside of this project.

Thanks,
sergsero

Thank you.

Seems you are the guy behind the modesmixer2, so I would like to ask if is there any limitation of the number of sources sending data to a modesmixer2 app running in a server.
I'm questioning you regarding this, because my remote stations are able to connect to my modesmixer2 server, but I couldn't see their's airplanes on the server web instance.

I mean that I can see airplanes on remote station web server instance, but even using --outConnect to my modesmixer2 server I couldn't see any of them on server web instance.

Regards,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 12, 2015, 02:47:04 AM
Hi Marcio,

No, in the program there are no restrictions of number of input sources. The same, as number of formed output feeds.

Restrictions are determined by a computing capability of the computer and the network bandwidth.

Yours the task should work without problems. Moreover, in input section of the server you can set several separate ports or one common port. Formats the incoming data may be the same or different.
Here 192.168.64.131 is server and 192.168.64.168 and 192.168.64.170 are sources:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150412/modesmixer2_with_feeds.png)

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on April 12, 2015, 12:46:25 PM
Quote from: sergsero on April 12, 2015, 02:47:04 AM
Hi Marcio,

No, in the program there are no restrictions of number of input sources. The same, as number of formed output feeds.

Restrictions are determined by a computing capability of the computer and the network bandwidth.

Yours the task should work without problems. Moreover, in input section of the server you can set several separate ports or one common port. Formats the incoming data may be the same or different.
Here 192.168.64.131 is server and 192.168.64.168 and 192.168.64.170 are sources:

Thanks,
sergsero

@sergsero,

I'm using a linux droplet at digitalocean.com receiving input from five different sources. In just one case I couldn't get the airplanes on the server map and no matter I do I can get it working. I gonna make more tests to see what's happening.

I would like to have a styled map using Google Maps API to pretend to be a real radar screen as shown in the attached picture. It's possible to change the way map is shown?

Cheers,

Marcio

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 12, 2015, 01:17:31 PM
H Marcio,

You need look for the reason of non-receipt of data from some sources. There are existing examples when merged data from about 20 sources simultaneously.
In the next version I will try to increase the number of options for maps that Google supports.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on April 12, 2015, 01:28:57 PM
Quote from: sergsero on April 12, 2015, 01:17:31 PM
H Marcio,

You need look for the reason of non-receipt of data from some sources. There are existing examples when merged data from about 20 sources simultaneously.
In the next version I will try to increase the number of options for maps that Google supports.

Thanks,
sergsero

@sergsero,

Nice to hear that. I gonna try to fix this thing, but for now it's working with 4 sources. Please take a look at 162.243.32.213:8088/#Map

Cheers,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on April 14, 2015, 12:40:45 PM
@Sergsero,

Would be great if you can add an way to identify the remote station that is sending data to a modesmixer2 instance, such as a label shown on flights page.

Cheers,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on April 15, 2015, 12:37:37 PM
Hello,

Is it possible ti run modesdeco2 on a cubie board running the following Linux image?

Linux Cubian 3.4.75-sun7i #35 SMP PREEMPT Sat Feb 8 02:10:31 CST 2014 armv7l GNU/Linux

Regards,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 15, 2015, 04:14:13 PM
Hello,

In Cubieboard family now there are 4 models. If you say about Cubieboard-2, which built SoC A20 ARM Cortex-A7 Dual-core (ARMv7-A) 1 GHz, please use a version of software for the same platform - Banana Pi: modesdeco2_bpi_20150321.tgz.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on April 15, 2015, 04:40:13 PM
Quote from: sergsero on April 15, 2015, 04:14:13 PM
Hello,

In Cubieboard family now there are 4 models. If you say about Cubieboard-2, which built SoC A20 ARM Cortex-A7 Dual-core (ARMv7-A) 1 GHz, please use a version of software for the same platform - Banana Pi: modesdeco2_bpi_20150321.tgz.

Thanks,
sergsero

@Sergsero,

Yes, is the Cubie-2 board with A20 processor. I will get the mentioned file.

Thanks,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on April 16, 2015, 09:49:30 PM
Hello all,

I see earlier in the thread that it had been advised to upgrade Basestation to version 1.2.4.184. I still cant get modesdeco2 to work with Basestation and am wondering now if its down to my version which is 1.2.3.146?

Best Regards

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on April 16, 2015, 10:16:57 PM
Carl,

I think it is almost certain your basestation version is the issue.
I believe the login handshake was changed in Basestation and ModeSDeco2 uses the later protocol.

All you need to do is download the .184 exe and replace the .exe file (make a backup of your original .exe as .old just in case).

http://www.kinetic-avionics.co.uk/basestationdownloads1.php#1 (http://www.kinetic-avionics.co.uk/basestationdownloads1.php#1)

There is no need to re-install the software, a simple replacement of basestation.exe will do the trick.
Make sure you extract the .zip file and use the extracted .exe though.

Cheers,

Keef.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on April 16, 2015, 11:04:59 PM
Keef,

That was it!!!  ;D I have replaced the exe and it now works!

When I go back to my sbs-1 that works too.

I am so happy as this has been so frustrating.

Thank you for your help Keef it is very much appreciated.

Also thanks to others who have given me help previously on this.

Best Regards

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on April 16, 2015, 11:08:00 PM
Good to hear you're up and running  :)

Cheers,

Keef.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: prog on April 20, 2015, 01:58:31 PM
Quote from: sergsero on January 01, 2015, 03:33:22 AM
Hello Oldfella,

AirSpy is a very good SDR receiver. Not less important, I think, because Youssef and Co. are very good programmers, that in Software Defined Radio system is essential :).
I think that the opportunities of AirSpy for ADS-B can be compared with Gunter's Beast. With one exception, that being wide-band, it does not have a narrow preselector on 1090MHz. And it will need help from BPF.

I did only test version of the program to verify that it works for ADS-B with new SDR receivers AirSpy and HackRF. It is works. However, this was done by simply replacing the front-end. To get real benefits compared with RTL dongle, need to rewrite the decoder, which will be able to fully use the potential of the more powerful hardware. First of all to take advantage of the oversampling and 70-75dB dynamic range due to 12bit ADC (AirSpy) instead of the ~46dB with RTL dongle.

In my opinion, given its high performance and cost, it is more appropriate to use as a full band SDR receiver.

Soon to be a new version ModeSDeco2 with a WEB interface for viewing statistics and maps:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20141231/md2_flights2map.png)

Happy New Year

Sincerely,
sergsero


Hi Sergsero et al.

Thanks for the kind words :-) I developed recently an ADSB decoder for Airspy which takes advantage of the oversampling and runs on the Real (not IQ) stream to provide a very good time resolution. It can be downloaded from http://airspy.com/downloads/adsbspy.zip
It's still in beta stage but the performance is quite acceptable. If you're interested in integrating this algo into your decoder, I can send some code.

Youssef

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 21, 2015, 02:06:10 PM
Hello Youssef,

I have "exe"-versions in retrospect, starting with the first of 5 April.

If I understand you correctly, of course, I will be interesting to see the source code of your new decoding algorithm, which takes advantage of the oversampling and runs on the real stream, to be able to use it for implement support of airspy receiver in modesdeco2.

I think that the details can be discussed in PM.

Sincerely,
Sergey /sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: prog on April 21, 2015, 08:42:33 PM
Email sent.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: caius on April 23, 2015, 03:12:19 AM
Quote from: thebaldgeek on April 02, 2015, 01:04:28 AM
I also would like the --location option in modesMixer2.exe for the web data it provides (range plot in HighCharts).

I also do not see radius lines on the map in any of the three browsers I have tested on.

I'd like to see this too. I'm using dump1090-mutability to decode, and modesmixer to distribute data elsewhere. It would be good to have a local display of the polar plot, histogram and map coverage without having to run more software continuously. VRS does some of it, but it's a bit of a hack running it on a raspberry pi.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: EDDG on April 23, 2015, 08:02:20 PM
Hey Sergsero,

is there something wrong with my configuration when i receive no Mode A/C? I'm using latest software version with a R820T2 USB-Stick.

RTL1090 is receiving Mode A/C data. Maybe the problem is in front of the hardware :) ;)!

Do you have any ideas?

Best regards,
Peter


EDIT: Ok, it`s in front of the hardware :) - with --rbs everything is ok :)!

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on April 23, 2015, 08:06:50 PM
the same here....
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: EDDG on April 23, 2015, 08:08:04 PM
Quote from: Radio2.0 on April 23, 2015, 08:06:50 PM
the same here....

Just use the option "--rbs" and everything is fine!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on April 23, 2015, 08:25:02 PM
yes, see

http://radarspotting.com/forum/index.php/topic,4965.msg23388.html#msg23388

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on April 23, 2015, 08:44:32 PM
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.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LX-LGN on April 24, 2015, 01:49:47 PM
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.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on April 24, 2015, 04:13:48 PM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on April 26, 2015, 10:52:16 AM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LX-LGN on April 26, 2015, 01:01:40 PM
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 ?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: 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.

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

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LX-LGN on April 26, 2015, 03:47:25 PM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on April 26, 2015, 04:20:29 PM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LX-LGN on April 26, 2015, 04:34:42 PM
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 ...
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: maaw on April 26, 2015, 06:22:10 PM
Hi, could you compile the latest version of modesdeco2 for openwrt? Thank you
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on April 26, 2015, 06:29:59 PM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 27, 2015, 08:01:02 AM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 27, 2015, 08:37:51 AM
Hi,

The difference in structure of program options really exist and it is because in ModeSMixer2 is necessary to additionally specify the server type (in.../out..., ...Server/...Connect). At the time in ModeSDeco2 network output is always as listening TCP-server and differences only in format of output data and ports.

sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LX-LGN on April 27, 2015, 09:11:32 AM
Quote from: sergsero on April 27, 2015, 08:01:02 AM
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

BOTH of you are AWESOME.

I noticed a couple of thing that initially ModeS was a little slower with the basestation than adsbScope. After about 20 minutes I was picking up a LOT MORE than normal.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on April 27, 2015, 08:02:11 PM
Hi Guys.

First of all I would like to thank sergsero for these great apps.

Now I have 2 questions:
1) Is it possible to hide the Log option on the web server? I would like to hide logs from other people. (i dont mean console)
2) Is it possible to show a Coverage pattern in ModeSmixer2? It looks like a great feature and i would appreciate it there.
Many thanks for answers.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 28, 2015, 01:49:49 AM
Hi zachmart,

Thanks for the kind words.

1) In the current version in WEB window display information is taken from the console and is identical with it. If you suppress output to the console, then it will not be in the WEB window too.
2) In next versions I plan to add a circular scale. This will require to set in options coordinates of all remote sources.

sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: manamana on April 28, 2015, 05:52:40 AM
Hi,
I'm a new user of ModeSDeco2 and ModeSMixer2.... great sw!!!!

Quote from: sergsero on April 28, 2015, 01:49:49 AM

2) In next versions I plan to add a circular scale. This will require to set in options coordinates of all remote sources.

sergsero


It should be great to :
1) add a single circular graph for the whole merged coverage (centered in a given point [ center of the "system" ])
And
2) add circular graph for each source.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on April 28, 2015, 06:02:34 PM
Thanks for answer sergsero.
May I have a question again?
When i open aircraft info in map, almost every aircraft i am detecting does have a temperature value. May I ask you from which DF/TC are you decoding this value?
Same question for IC codes? Are they decoded from parity field?
Many thanks.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: maaw on April 28, 2015, 11:47:09 PM
Quote from: maaw on April 26, 2015, 06:22:10 PM
Hi, could you compile the latest version of modesdeco2 for openwrt? Thank you
Sorry to repeat this, but could you sergsero? If not, can we get the source code? Please reply. Sorry for the insisting. Thanks again.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on April 29, 2015, 09:14:35 AM
On page 14 of this thread...

"Unfortunately, under the terms of my employer, program code is not available.".

I'm not speaking for sergsero but I think he might have already answered your second question!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on April 29, 2015, 04:22:36 PM
Hi again sergsero.

Sorry for making another post but i might have found a bug of ModeSmixer2.

Description:
Web server is running, but it is not showing realtime information - no flights, no messages/sec - nothing.
I have set 3 batch files and they all have the same problem but when i restart them, it works great again.
The main reason of this bug might be my port forwarding, because on another server i dont have port forwarding and it works fine:
I have set up port forwarding on my server via netsh interface portproxy. I am forwarding a feed from a remote ip x.x.x.x:xxxx to the localhost 127.0.0.1:xxxx
When i connect to the 127.0.0.1:xxxx with putty, it works fine everytime i try but with ModeSmixer2 it works only for about 9 hours (tested multiple times).

My batch file:
@echo off
cmd /c  modesmixer2.exe --inConnect 127.0.0.1:xxxx --web yyyy --silhouettes C:\...\SilhouettesLogos --db C:\...\ModeSmixer2\data\BaseStation.sqb --log-file C:\xxx_log.txt
PAUSE
exit

Do you know where could be a problem?
Thanks.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on April 29, 2015, 04:46:12 PM
Quote from: sergsero on April 28, 2015, 01:49:49 AM
1) In the current version in WEB window display information is taken from the console and is identical with it. If you suppress output to the console, then it will not be in the WEB window too.

I have tried this, console is black but there as still the log information even after blocking the console log.
http://prntscr.com/6zk736

batch:
@echo off
cmd /c  modesmixer2.exe --inConnect x.x.x.x:yyyy --log-noconsole  --web zzzz --silhouettes C:\...\SilhouettesLogos --db C:\...\data\BaseStation.sqb
PAUSE
exit
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: APO1972 on May 01, 2015, 05:11:08 PM
The modesmixer2 is a very nice , stable and strong tool for our hobby!!!
Thanks sergsero!!!
Today i'm very happy because i combined  very easy and quickly the datas from a different devices and now i can see the targets on one radar screen!!!
For me it's better than VRS and i'll keep it to broadcast my radar screen to the web , instead of VRS.
Two suggestions...selection ability of what i want to see on the aircraft labels, and polar diagram ability...
One problem that i saw is that the bandwidth meter is always "0" zero , why??? where is the problem...
I must say that the devices exists on my LAN(Local network).


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on May 01, 2015, 07:09:16 PM
Hi!
I doesn't have any other software running, except ModeSDeco2. Is possible to sabe stats data to retrieve in the next run? I saw some database option, but it can't create itself, looks like I need to poitn to alread exist database.....but I don't have it.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on May 01, 2015, 08:05:15 PM
Quote from: APO1972 on May 01, 2015, 05:11:08 PM
One problem that i saw is that the bandwidth meter is always "0" zero , why??? where is the problem...

I have found this too. If you set up output like --outServer, the bandwidth will work. Im not sure if its intended or a bug
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: APO1972 on May 01, 2015, 08:22:06 PM
Thanks my friend, that was , i fixed it adding an --outServer beast:30005
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on May 02, 2015, 07:30:30 PM
Sergsero, may I have 2 sugestion?

1) Put a button/switch to change from NM to KM view in charts page (histogram and coverage pattern)
2) Save all statistics data (packaets, number os flights, local time/hours, etc) and restore it on every program restart. Better: using a combobox, user could select to see all-time statstics or session (since last program start) statistics.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on May 02, 2015, 09:45:07 PM
1) Is there an way to send the data out like VRS (Push Receiver) ?
2) I have all Aircraft Route from the official Information can you make it possible to integrate like the Cometrail?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: APO1972 on May 04, 2015, 08:29:49 PM
Hello to all again,
Is it possible for an RTL Dongle through modesdeco2 or modesmixer2 to feed with data the earlier versions of Basestation e.g. v161?
Thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on May 04, 2015, 09:36:25 PM
Quote from: sergsero on April 28, 2015, 01:49:49 AM
Hi zachmart,

Thanks for the kind words.

1) In the current version in WEB window display information is taken from the console and is identical with it. If you suppress output to the console, then it will not be in the WEB window too.
2) In next versions I plan to add a circular scale. This will require to set in options coordinates of all remote sources.

sergsero

Hi Sergsero,

What do you mean to "suppress output to the console..."? As the other guy I would like to hide log from web page, but hiding the console output doesn't remove log.

I have used modesdeco2 --options >nul, but the log still on the web page. This will be a great feature in future release.

I have another question regarding on how to determine the frequency correction ppm value. Is there any way to to that?

Regards,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on May 05, 2015, 01:57:10 AM
Marcio,

about frequency correction:
http://www.satsignal.eu/raspberry-pi/acars-decoder.html#kalibrate
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 05, 2015, 02:22:30 AM
Hi Marcio,

This is true for modesmixer2. To do this, it has the option --log-level [0 - 5].

Initially modesdeco2 was not intended for public use when you need to restrict access to displayed information.
If you need it, at the moment you can use a combination of two programs.

The error is ~ +-20-120 PPM (low  precision 28.8MHz quartz crystal), relatively stable once warmed up, and stable from day to day for a given dongle. There are two pieces of good news the offset is linear and once the crystal has warmed up it generally does not drift very much. Because the error is linear across the whole frequency range, only one correction value is required.

Perform a one-time calibration of dongle oscillator is usually not difficult. This can be done in the program SDR#.

With sufficient accuracy (for ADS-B) it can be done, if you tune into an AM radio station with a known frequency, for example, ATIS nearest airport.

In SDR# switch the receiving mode to DSB and Sample Rate in 2.048 MSPS.

Change the value in PPM correction and find the lowest tone of the beating between the carrier frequency of the AM radio station and local from SDR# (beats between cofrequencies).
This value will correspond to the required correction in PPM.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on May 05, 2015, 12:37:28 PM
Quote from: spotter.ssol on May 05, 2015, 01:57:10 AM
Marcio,

about frequency correction:
http://www.satsignal.eu/raspberry-pi/acars-decoder.html#kalibrate

Valeu...
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on May 05, 2015, 12:41:46 PM
Quote from: sergsero on May 05, 2015, 02:22:30 AM
Hi Marcio,

This is true for modesmixer2. To do this, it has the option --log-level [0 - 5].

Initially modesdeco2 was not intended for public use when you need to restrict access to displayed information.
If you need it, at the moment you can use a combination of two programs.

The error is ~ +-20-120 PPM (low  precision 28.8MHz quartz crystal), relatively stable once warmed up, and stable from day to day for a given dongle. There are two pieces of good news the offset is linear and once the crystal has warmed up it generally does not drift very much. Because the error is linear across the whole frequency range, only one correction value is required.

Perform a one-time calibration of dongle oscillator is usually not difficult. This can be done in the program SDR#.

With sufficient accuracy (for ADS-B) it can be done, if you tune into an AM radio station with a known frequency, for example, ATIS nearest airport.

In SDR# switch the receiving mode to DSB and Sample Rate in 2.048 MSPS.

Change the value in PPM correction and find the lowest tone of the beating between the carrier frequency of the AM radio station and local from SDR# (beats between cofrequencies).
This value will correspond to the required correction in PPM.

Thanks,
sergsero

Hi Sergsero,

The log-level option work flawlessly in modesmixer2. Thanks! Regard the freq-correction I used the Kalibration to find out the value since SDR# was not an option, because I was running modesdeco2 on RPI.

Regards,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: CommsAlpha on May 05, 2015, 11:18:05 PM
First off, love the program and the web output.  I have it running on two machines using ModeSMixer2.

Sorry if this has been asked before. I dont see the coverage map when running the ModeSMixer web server. Is this normal or have I missed something? 

I have ModeSDeco2 running locally with a rtl-sdr along with ModeSMixer2 taking in data from another remote computer running ModeSDeco2 and an rtl. The local ModeSMixer2 web is enabled and thats the views im watching.

Im really interested in the coverage I can get using different antenna configurations and would love to be able to see the coverage of both receivers.

Many thanks,
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: maaw on May 10, 2015, 01:31:49 AM
Quote from: Keef on April 29, 2015, 09:14:35 AM
On page 14 of this thread...

"Unfortunately, under the terms of my employer, program code is not available.".

I'm not speaking for sergsero but I think he might have already answered your second question!
Yeah, that's what I thought. Thank you.
Still no modesdeco2 for openwrt :(, nor any answer from sergsero though.
Anyway thank you for your reply and sergsero for this excellent piece of software. Hopefully sometime the newer version will be available for openwrt.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: manamana on May 10, 2015, 09:29:13 AM
Hi everybody, one question:
I'm running modes2deco on raspberry. On the same machine I'm running RPI-Monitor to verify the hw performances.
I noted every morning a periodic peak ( 04:30 a.m. ) of cpu load and network activity, this is not related to peak on number of airplanes
is it only a my phenomenon ? Does anybody know about it ?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: kryder on May 10, 2015, 02:34:46 PM
Hi Sergsero,

It is possible to ModeSDeco2 to show mode A/C squawks in AdsbScope ?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on May 12, 2015, 04:52:20 PM
Hi Sergsero,

I noticed that even using the latest basestation.sqb file the planes are not identified by their registration.

Is there any specific format for that file or we can use the Kinetic SBS file?

Regards,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 12, 2015, 06:41:11 PM
Hi Marcio,

The database, which is contained in file basestation.sqb, is not something mysterious. Use any software, that is able to view (and, if necessary, to edit) fields in sqlite3 database, for example, SQLiteStudio http://sqlitestudio.pl/ (http://sqlitestudio.pl/) database manager. With it, you can check does your database information about the aircraft.  Including, to find out whether there's the registration number.

Since the registration numbers of aircraft are not transmitted in Mode S/ADS-B messages, the information about them must be entered manually.
But the recording of this aircraft is created by modesmixer2/modesdeco2 with the first received message that contains its icao24 address. Similarly, as other information that arrives from the ether.

All other data about it, that is not received directly from the aircraft, must be added to database manually from external sources. Including its registration number.

It is because of availability of existing databases in the Kinetic format modesmixer2/modesdeco2 uses the same it. Whereas Sqlite3 is not the best choice among modern databases when you want to store large amount of information.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on May 12, 2015, 06:47:50 PM
Which information send the Aircraft?
IACO24, Registration,...?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on May 12, 2015, 07:27:44 PM
Quote from: Radio2.0 on May 12, 2015, 06:47:50 PM
Which information send the Aircraft?
IACO24, Registration,...?

The only identifier that's transmitted by the aircraft is its hex code.  Sometimes referred to as Mode-S code:

http://en.wikipedia.org/wiki/Aviation_transponder_interrogation_modes#Mode_S

http://en.wikipedia.org/wiki/Automatic_dependent_surveillance_%E2%80%93_broadcast
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on May 12, 2015, 09:01:15 PM
Quote from: sergsero on May 12, 2015, 06:41:11 PM
Hi Marcio,

The database, which is contained in file basestation.sqb, is not something mysterious. Use any software, that is able to view (and, if necessary, to edit) fields in sqlite3 database, for example, SQLiteStudio http://sqlitestudio.pl/ (http://sqlitestudio.pl/) database manager. With it, you can check does your database information about the aircraft.  Including, to find out whether there's the registration number.

Since the registration numbers of aircraft are not transmitted in Mode S/ADS-B messages, the information about them must be entered manually.
But the recording of this aircraft is created by modesmixer2/modesdeco2 with the first received message that contains its icao24 address. Similarly, as other information that arrives from the ether.

All other data about it, that is not received directly from the aircraft, must be added to database manually from external sources. Including its registration number.

It is because of availability of existing databases in the Kinetic format modesmixer2/modesdeco2 uses the same it. Whereas Sqlite3 is not the best choice among modern databases when you want to store large amount of information.

Best regards,
sergsero

Hi Sergsero,

I have used SQLMaestro to look into the basestation.sqb file. There, there are eight tables, and one of them, called Aircraft has the information I need in two fields.

The first (primary key) is the ICAO24 Hex code, from where I can get the registration in another field, called Registration. What I didn't get is how to tell to modesmixer2 to use the correct table and fields to get the data.

Regards,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: APO1972 on May 13, 2015, 04:24:50 PM
Hello sergsero,
I observed that over internet at address http://xxxxx.ddns.net:8888 pictures of the planes doesn't uploading...instead over my LAN http://192.x.x.x:8888 are corectly uploading.
Is this a bug? or something else
my current .bat  :  modesmixer2 --inConnect 192.168.1.4:30003 --outServer msg:30003 --web 8888 --db C:\modesmixer2\BaseStation.sqb
pause

Thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on May 14, 2015, 07:14:13 PM
What shall i add to the ModeSDeco2 launch, to enable data format for the FR24 feeder program?
So far i added --msg 30003, but there is no NW datatransfer going on at all in the FR24 feeder prog.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on May 14, 2015, 09:17:09 PM
You could try adding "--sbs10001 10001" without quotes, that might give you the output required for the FR24 feeder.

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on May 16, 2015, 04:16:35 AM
Hey sergsero

just a few questions. i absolutely love your Deco suite of apps. however being the guy i am i like to keep the bleeding edged without having to search multiply places. do you have a github or a website referencing all your apps update status and download links?

i'm highly interested in an app, like modesmixer, that will accept AIS/ACARS/MODE-S/MODE-AC "In Connects" and output it all in a nice combines web interface. will you have anything like that soon? that would be really exciting for alot of us im sure.

finally. i like to personalize and customize my web portals, however i noticed ModeSMixer does not have physical files i can edit to customize the portal. is there a version which makes this possible? this would be a make or break feature for me.

thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 16, 2015, 05:28:58 AM
Hi Marcio,

I think that I can't fully understand your question.
The structure of sqlite3 database in the file basestation:.sqb fully complies with the requirements of Kinetics, which is used by the program BaseStation.exe together with the receiver SBS-1/3.

May be to test another instance of the database file?

Best regards,
sergsero


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 16, 2015, 05:39:40 AM
Hello APO1972,

Unfortunately, I don't use address .ddns.net and can't replicate your setup.

However modesmixer2 generates a direct link to the website www.airport-data.com to obtain image of the aircraft.
If the site www.airport-data.com gives data on request with ddns.net addresses, the image would be displayed on the web page.

On the attached screenshot the image of aircraft was obtained from site www.airport-data.com by using its direct link: http://www.airport-data.com/images/aircraft/thumbnails/000/973/973956.jpg

Best regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 16, 2015, 06:06:40 AM
Hi GregoryGHarding,

Website now is in creation stage. Hope it will be finished after some time. New version of programs and discussion are on this forum.

Because "...AIS/ACARS/MODE-S/MODE-AC..." are different in character and application tasks, they are implemented in separate programs of xDeco family.
Here I have not found a suitable topic, that is reasonable in the aviation forum, for ship thematic program AisDeco2 and it is published on a Russian forum: http://forum.adsbradar.ru/f39/konsolnaya-programma-aisdeco-dlya-sdr-priema-ais-signalov-1686/ (http://forum.adsbradar.ru/f39/konsolnaya-programma-aisdeco-dlya-sdr-priema-ais-signalov-1686/) and Yahoo group ShipPlotter.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 16, 2015, 06:49:14 AM
Hello,

On the code-based decoder, which was kindly provided by Youssef - the author of wonderful programs SDR# and ADSBSpy and AirSpy hardware, is implemented support of AirSpy receiver in modesdeco2.

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150517/modesdeco2_airspy_0.jpg)

If you have time, I would appreciate for testing this first test version of modesdeco2 (v.20150515) and feedback.

Windows: https://dl.dropboxusercontent.com/u/79709204/MD2/20150515/modesdeco2_windows_20150515_test_airspy.zip (https://dl.dropboxusercontent.com/u/79709204/MD2/20150515/modesdeco2_windows_20150515_test_airspy.zip)

Ubuntu 14.04 (Intel):
32 bit https://dl.dropboxusercontent.com/u/79709204/MD2/20150515/modesdeco2_i386_20150515.tgz (https://dl.dropboxusercontent.com/u/79709204/MD2/20150515/modesdeco2_i386_20150515.tgz)
64 bit https://dl.dropboxusercontent.com/u/79709204/MD2/20150515/modesdeco2_x86_64_20150515.tgz (https://dl.dropboxusercontent.com/u/79709204/MD2/20150515/modesdeco2_x86_64_20150515.tgz)


For switching on AirSpy receiver use the new option --airspy. Other him settings can be left default.
The work with RTL dongle is not different from previous versions - simply set value in --gain  and  --freq-correction. The other options of program have not changed.
Also, the program is optimized to reduce the size.

The option --rbs and signal level will be finalized in the next version.

When you launch this version of modesdeco2.exe you can get an error that msvcp120.dll and msvcr120.dll are missing in your OS.
Please, download the Visual C++ Redistributable Package for Visual Studio 2013 from the Microsoft site: https://www.microsoft.com/en-US/download/details.aspx?id=40784.
You will need to install file of 32 bit version vcredist_x86.exe regardless of what bitness has your operating system!
The Visual C++ Redistributable Packages install run-time components that are required to run applications that are developed by using Visual Studio 2013, on computers that don't have Visual Studio 2013 installed. These packages install run-time components of libraries.

In the archive acarsdeco2_xp.exe is the same program, but was compiled with Platform Toolset property to Visual Studio 2013 – Windows XP (v110_xp) for compatibility with windows XP.


Best regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on May 16, 2015, 08:56:48 AM
Quote from: sergsero on May 16, 2015, 06:06:40 AM
Hi GregoryGHarding,

Website now is in creation stage. Hope it will be finished after some time. New version of programs and discussion are on this forum.

Because "...AIS/ACARS/MODE-S/MODE-AC..." are different in character and application tasks, they are implemented in separate programs of xDeco family.
Here I have not found a suitable topic, that is reasonable in the aviation forum, for ship thematic program AisDeco2 and it is published on a Russian forum: http://forum.adsbradar.ru/f39/konsolnaya-programma-aisdeco-dlya-sdr-priema-ais-signalov-1686/ (http://forum.adsbradar.ru/f39/konsolnaya-programma-aisdeco-dlya-sdr-priema-ais-signalov-1686/) and Yahoo group ShipPlotter.

Best regards,
sergsero
thanks, is there a way i can edit the web portal modesmixer creates?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on May 16, 2015, 09:52:57 AM
Quote from: sergsero on May 16, 2015, 05:28:58 AM
Hi Marcio,

I think that I can't fully understand your question.
The structure of sqlite3 database in the file basestation:.sqb fully complies with the requirements of Kinetics, which is used by the program BaseStation.exe together with the receiver SBS-1/3.

May be to test another instance of the database file?

Best regards,
sergsero

Hi Sergsero,

I would like to know what was the the structure modesmixer2 would looking for inside the database. The images you have attached to your post tells me the answer.

Thanks

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on May 16, 2015, 01:52:52 PM
Quote from: sergsero on May 16, 2015, 06:49:14 AM

On the code-based decoder, which was kindly provided by Youssef - the author of wonderful programs SDR# and ADSBSpy and AirSpy hardware, is implemented support of AirSpy receiver in modesdeco2.

If you have time, I would appreciate for testing this first test version of modesdeco2 (v.20150515) and feedback.

The option --rbs and signal level will be finalized in the next version.


Many thanks Sergsero for including the AirSpy in your program. Thanks also to Youssef for helping to make this possible.

Been running the new version now for about 6 hours and have not seen any problems so far and think there has been a slight improvement in the range covered.

Looking forward to your next enhancement.

Best regards,

Oldfella
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on May 17, 2015, 12:32:49 PM
Hi Sergsero,

Which of the formats sent by using the --outServer is the raw format for ADS-B messages? I mean which of them is the one received by the SDR device before being decoded.

Cheers,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 17, 2015, 12:57:17 PM
Hi Marcio,

It's a good question.
True RAW apparently this is IQ magnitudes, that are already processed and identified as elements of the message. However, they are not a output format.
On their basis is formed the format of communication: ascii AVR and its binary equivalent - BEAST.

If we're talking about modesmixer2 there any input formats is converted to special internal format, that are processed in the core of program. And here the closest to it are formats AVR/BEAST too.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on May 17, 2015, 01:02:23 PM
Hey
Please make an way to Record the RAW Feed for an Playback in the future.
I am a Frequent flyer and i want record the hole flight and replay the File Home to create an Copit view in Google Earth or see all Aircraft who are near by.
THX!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: maximus_mike on May 18, 2015, 12:52:41 AM
Hi Sergsero,

Many thanks for the new AirSpy version of Modesdeco2 - Working very well here and I am now receiving aircraft at about 330km from here on a colinear antenna which has only 7 elements and only about 4m above ground in a valley.

Keep up the great work.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sonicgoose on May 18, 2015, 02:59:55 PM
How can I feed the data from a SBS1e, connected via USB, to ModeSMixer2? I'm assuming I need to use an --inSerial parameter, which requires knowing the port number for the USB device, but how do I find out the port number? Windows doesn't exactly give friendly names to USB ports. I've tried using USBView to get an address, but many addresses are returned and I have no idea which one to use.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on May 19, 2015, 07:10:18 PM
Quote from: sergsero on May 17, 2015, 12:57:17 PM
Hi Marcio,

It's a good question.
True RAW apparently this is IQ magnitudes, that are already processed and identified as elements of the message. However, they are not a output format.
On their basis is formed the format of communication: ascii AVR and its binary equivalent - BEAST.

If we're talking about modesmixer2 there any input formats is converted to special internal format, that are processed in the core of program. And here the closest to it are formats AVR/BEAST too.

Best regards,
sergsero

Hi Sergsero,

I got it.  Do you know if there are some java decoding library to decode AVR/BEAST format? I have seen a java class to decode raw format but not for these "pre-decoded" format such as both above mentioned.

Cheers,

Marcio

Regards,
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on May 22, 2015, 10:20:33 AM
My thanks to Sergsero for developping this great tool.

I'm running ModeSdeco2 on my raspberry pi 2 without any problem, it runs for days and days and never stops working.

I would like to know if there are future plans for a 'metric' option.

Also I wouldlike to know if it is possible to use offline maps which I can upload to my pi, so I could use my Pi totally autarc, only pi + 7" display + sdr-rtl dongle, no wifi, no internet.

And at last; what are the logging options, what data can be written to sd card for later evaluation.

Looking forward to your reply !
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on May 22, 2015, 03:44:52 PM
Sergsero,

just a suggestion for ModeSMixer2..

InConnect Labels:

Ex: --inConnect example.org:30054:NL-GAND

this would produce an output on the stats web page connecting traffic from example.org:30054 to a ground station labeled as NL-GAND. exabling a whole new section of ground station specific stats, as well as realtime diagnostic of which A/C are being picked up from which Ground Station.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on May 24, 2015, 05:26:24 PM
Offset to use?

Is there any way of detecting (without measurement equipment) the offset to use for a particular dongle?
Current one is a Terratec Synergi TStick RC.

Great apps by the way :-)

br Lars
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dschaper on May 24, 2015, 06:03:52 PM
Kalibrate. There is a guide to using it on RPi by Dave Taylor over at http://www.satsignal.eu/raspberry-pi/acars-decoder.html#kalibrate (http://www.satsignal.eu/raspberry-pi/acars-decoder.html#kalibrate)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: rtlsdr_SCN on May 24, 2015, 11:41:49 PM
Hello everyone, first of all thank you guys for this amazing set of tools, you are doing an excelent job, CONGRATULATIONS..!

Now, I'm using "modesdeco_20141009-1_ar71xx.tar.gz" in my TP-LINK WR-3600 and ModeSMixer2, both work excellent (I mean low memory & cpu) and my question is: there is not 2015 ModeSDeco2 for ar71xx?, can someone with access to the source code build the app with the latest source?.

Thank you very much before hand.

Here I put my 3 days stats getting around 3GB of data.

(http://i.imgur.com/yikHzur.png)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on May 25, 2015, 09:49:03 AM
its important what kind of data we talk about.
Mode-S, ADSB?
Map Images?
Shares?

All together?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: G0HEU on May 25, 2015, 05:16:27 PM
HI All

thanks for a cracking piece of software

2 small question I am running it on RPI2

is there a log file to which stores captured aircraft data for the last 24 hours ??

I am unable to get the silhouettes working, I have download and extracted the files I have tried ~/modesdeco2/sil and also /home/pi/modesdeco2/sil. I can conform the bmp files are in the sil folder

neither seem to work 

thanks

Paul
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on May 25, 2015, 05:41:13 PM
Quote from: dschaper on May 24, 2015, 06:03:52 PM
Kalibrate. There is a guide to using it on RPi by Dave Taylor over at http://www.satsignal.eu/raspberry-pi/acars-decoder.html#kalibrate (http://www.satsignal.eu/raspberry-pi/acars-decoder.html#kalibrate)
I've discovered that kalibrate is not very reliable. The method desbribed in this video is more accurate: https://www.youtube.com/watch?v=gFXMbr1dgng
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on May 25, 2015, 10:04:31 PM
Hello,

Does someone have used modesdeco --input-file <arg> option? I tried to decompile messages saved to a file without success.

Here what I did:

modesdeco2.exe --input-file messages.txt --web 8080

Here what I got:

INFO          ModesDeco2 v.20150321
INFO          Magnetic declination coefficiente file wmm.cof load successful

Here are small fragment of messages.txt's content:

8daca25158bf0422183e6b000000
8d48cb1560bf050cd1aa04000000
8d48cb1599117d19a00499000000
903c1ff810820820820820000000
8d3c542f90ab059065c5d7000000
8d3c542f9901e202e00400000000
8d3c542f200834f2c70da0000000
8d405f3358bb446c653c46000000
8d405f3399148d2b68908e000000
8d3c60d460b98110a1dc9c000000
903c1ff6105054d4c72cf4000000
903c1fb0c124ac08000100000000
8d3c54299901ca0b088000000000
8daca251e948be28413810000000
8d3c60d49940653268089c000000
8d3c542c99009633080400000000
8d405f33201082f7c70c60000000
903c1ff910820820820820000000
8d48cb1560bf019c4db59a000000
8daca25158bf00ad5c4dab000000
8d3c542c200834f9db0820000000
8d3c60d460b98110c1dca0000000
8d3c542f90ab05906dc5f2000000
8d3c542f9901e202c00400000000
8d405f3358bb30f93d44cb000000
903c1fb2c2140003bc27dd000000
8d405f3399148d2b68948e000000


Regards,

Marcio

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 26, 2015, 05:25:17 PM
If you have time, I would appreciate for testing this new test version of modesdeco2 (v.20150525) and feedbacks.

Windows: modesdeco2_windows_20150525_test.zip https://dl.dropboxusercontent.com/u/79709204/MD2/20150525/modesdeco2_windows_20150525_test.zip (https://dl.dropboxusercontent.com/u/79709204/MD2/20150525/modesdeco2_windows_20150525_test.zip)

Raspberry Pi 2: modesdeco2_rpi2_20150525_test.tgz https://dl.dropboxusercontent.com/u/79709204/MD2/20150525/modesdeco2_rpi2_20150525_test.tgz (https://dl.dropboxusercontent.com/u/79709204/MD2/20150525/modesdeco2_rpi2_20150525_test.tgz)

OS X: modesdeco2_osx_20150525_test.tgz https://dl.dropboxusercontent.com/u/79709204/MD2/20150525/modesdeco2_osx_20150525_test.tgz (https://dl.dropboxusercontent.com/u/79709204/MD2/20150525/modesdeco2_osx_20150525_test.tgz)



(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150525/modesdeco2_20150525_0.jpg)

+ improved support for AirSpy (10MSpS) and a new dongle AirSpy-mini (6MSpS)

+ improved handling multipath signals and signal overlapping

+ added option --metric - that switches distance measurements in metric

+ added option --web-auth <username:password> - authentication of access to the website

+ added option --disable-web-log - it disables console messages to the WEB Log page

+ some changes and additions in the WEB interface:
the mini table on page Map contains more data
added opportunity to choose the type of Google maps
added choice a number rows and its content for aircraft label (click the wrench button)
current coordinates of the cursor and its distance from the location of station
METAR for one airport (decode by click on the text)

+ the program size is reduced to ~2.5 times


The option --rbs and signal level will be finalized in next version.

When you launch this version of modesdeco2.exe you can get an error that msvcp120.dll and msvcr120.dll are missing in your OS.
Please, download the Visual C++ Redistributable Package for Visual Studio 2013 from the Microsoft site: https://www.microsoft.com/en-US/download/details.aspx?id=40784.
You will need to install file of 32 bit version vcredist_x86.exe regardless of what bitness has your operating system!
The Visual C++ Redistributable Packages install run-time components that are required to run applications that are developed by using Visual Studio 2013, on computers that don't have Visual Studio 2013 installed. These packages install run-time components of libraries.

In the archive acarsdeco2_xp.exe is the same program, but was compiled with Platform Toolset property to Visual Studio 2013 – Windows XP (v110_xp) for compatibility with windows XP.


Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: EDDG on May 26, 2015, 06:36:15 PM
Hey sergsero,

is there a chance to get a testversion for a Raspverry Pi2 :)?

Best regards,
Peter
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on May 26, 2015, 06:46:10 PM
@sergsero
Maybe you can Build an Version who can send the data out directly to VRS?
My Problem is when i am Travelling i have no Public IP and i need to run an local VRS...
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on May 26, 2015, 06:56:05 PM
It's working just perfect and it's nice looking too. :-*
Strange enough not all values are metric.

Maybe a PI2 version ?

Also I would like to have to possibility to load my own maps and some logging.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: G0HEU on May 26, 2015, 10:51:29 PM
Hi

seems to be working fine except I cannot get the silhouette's or aircraft type to display in either the flights or the new map info

Paul
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 27, 2015, 07:32:07 AM
Hello,

Collection of silhouettes should be placed in any directory on your computer.
The option to use silhouettes is: --silhouettes <full\path\to>
For example, your collection is located in the following directory C:\temp\mysilhouettes. Then the option will look like this:
--silhouettes C:\temp\mysilhouettes
Please note that at the end of path there is no slash.


If your database contains information about the type of this aircraft, it should be displayed in tables.
And vice versa - if your database do not knows the type of this aircraft, it is unknown what kind of silhouette needs to be used for display.

Regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on May 27, 2015, 07:43:49 AM
Same problem here, but i guess it is because the type is blank. As i have understood that requires the flightroute db to be present?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 27, 2015, 08:04:35 AM
The file flightroute.db is a database of routes. With the type of aircraft it does not correlate. On the contrary, an information about the type of aircraft stores in the file basestation.db.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on May 27, 2015, 08:36:15 AM
for modesmixer, is the website running off a separate directory or is it built into the exe? id like to be able to edit the website myself, is this possible? can the exe be made to run the website from a folder?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 27, 2015, 10:55:21 AM
In #312 added test version of ModeSDeco2 for Raspberry Pi 2 and OS X.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: G0HEU on May 27, 2015, 11:18:35 AM
hi

Silhouettes and type working now

I didn't realise that I needed the basestation database to display to silhouettes and the type

thanks

Paul
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on May 27, 2015, 05:30:51 PM
Not sure i completely understand the concept of the basestation.sqb file.
Shall both modesdeco2 and modesmixer2 reference this file?
I guess something external shall update the file with the type information. Tried with Active Display Light, but this just crashes 9/10 times i launch the program. Any other programs for this updating?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: G0HEU on May 27, 2015, 08:13:30 PM
Hi

is there any form of logging of the aircraft built within the switches

Paul
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on May 27, 2015, 08:34:16 PM
I use Planeplotter for Logging.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: rtlsdr_SCN on May 28, 2015, 05:24:13 AM
Dear friends, I did used Modesdeco2 ar71xx like server and modesmixer2 ar71xx like client over a week (5 days and 8h) then modesdeco2 crashed and restarted (all the stats was disapear), there is no updates to modesdeco2 ar71xx?

Thanks & cheers.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on May 29, 2015, 02:56:37 AM
do you have a github page with your different software and versions? i think its a good idea. it would help people like me trying to GIT remotely on a pi
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dschaper on May 30, 2015, 01:58:10 AM
Would it be possible to get a RasPi 1 version to test out?

Thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mzs on May 30, 2015, 06:43:18 PM
I tried the RPi2 version (modesdeco2_rpi2_20150525_test) on a Banana Pi. I know that it was compiled for 4 ARM cores instead of 2, but I figured it would probably work, and it does okish.
I tried the official Airspy firmware 10/2.5MSPS and my screen was flooded with "ERROR    Lost data" (about 50 drops a second) any chance of a option to manually select a lower sample rates.  This option would also be useful for the RPi2 as it's USB bus is shared and not exclusive like the BPi.

Even though the BPi has enough USB bandwidth to transfer data at the maximum rate, it may fall short in CPU processing power for realtime analysis at the maximum sample rate. The fact that I was using a 4 core version instead of a 2 core version probably did not help much either, but I was curious if it would work at all and it does :)
mzs@bananapi:~/modesdeco2_rpi2_20150525_test$ airspy_rx -t4 -a 0 -r /dev/null
Device Serial Number: 0x1234DELETED56789
Stop with Ctrl-C
Streaming at 40.00 MSPS
... snip ...
Streaming at 40.00 MSPS
^CCaught signal 2

User cancel, exiting...
Total time: 60.0912 s
Average speed 40.0002 MSPS Real
done
mzs@bananapi:~/modesdeco2_rpi2_20150525_test$

Any chance of a Airspy BPi version with the ability to select lower sample rates (that are available from the firmware) ?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 31, 2015, 04:15:50 AM
The version for Raspberry Pi 2 was designed only to work with the RTL2832 dongles.

If you have the AirSpy receiver that please use versions for Windows/Linux x86/OS X.
For ARM processors, there is hope that will be able to provide work at lower (6 or 4 MSpS) bitrates. However now, even on this Samsung Exynos 5 Octa processor the CPU utilization ~ 110%.

My tests so far say that stable operations of airspy receiver with 10 MSpS samplerate starts since mobile versions of i3 processors as Intel® Core™ i3-3217U (3M Cache, 1.80 GHz).

Thanks,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on May 31, 2015, 12:49:07 PM
Hi

Wonder whether there can be added a switch to enable plane type lookup and dump to the DB file, as it is already possible to get the information on the map when a plane is selected?

br Lars
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dschaper on June 01, 2015, 05:25:51 AM
Two feature requests for consideration.


Thanks!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on June 01, 2015, 11:25:42 AM
is there some "ready to use" Image?
I want to place an Pi on my Grandparents House and i never use an Pi. (Ok i dont have any now.)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on June 01, 2015, 12:34:48 PM
Quote from: Radio2.0 on June 01, 2015, 11:25:42 AM
is there some "ready to use" Image?

An "image" of what?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on June 01, 2015, 02:30:04 PM
The .tgz images for the RPi's are here:

http://radarspotting.com/forum/index.php/topic,2978.msg13471.html#msg13471

You need to do a bit of work yourself but you can follow IanH's helpful instructions here:

http://radarspotting.com/forum/index.php/topic,4965.msg23345.html#msg23345

and / or here:

http://radarspotting.com/forum/index.php/topic,4965.msg23360.html#msg23360

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on June 01, 2015, 11:33:49 PM
i dont have an pi now.
everythink on linux is ssooo difficult...
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on June 02, 2015, 04:32:00 AM
any reason why im not getting any Mode A/C packets running ModeSMixer2 with multiple network receivers?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dschaper on June 02, 2015, 05:02:10 AM
What are your arguments? Need to know a little more information to help you out. I have it running okay. What platform, how are you calling the program, any logs, things like that.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on June 02, 2015, 05:53:23 AM
Quote from: dschaper on June 02, 2015, 05:02:10 AM
What are your arguments? Need to know a little more information to help you out. I have it running okay. What platform, how are you calling the program, any logs, things like that.

@echo off
TITLE ABS-B Server
cmd /c  modesmixer2_xp.exe ^
--log-file Logs/debug.txt ^
--localtime UTC-02:30  ^
--flight-expire-time 7200  ^
--db BaseStation.sqb ^
--frdb flightroute.sqb ^
--outServer msg:400 ^
--inConnect 127.0.0.1:111 ^
--inConnect 127.0.0.1:113 ^
--inConnect 127.0.0.1:115 ^
--inConnect 127.0.0.1:117 ^
--inConnect 127.0.0.1:119 ^
--web 8087 ^
PAUSE
exit
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dschaper on June 02, 2015, 06:35:17 AM
Okay and what software are you using for the inConnect servers? Since you're connecting to localhost are the decoders all running on the same machine as modesmixer?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on June 02, 2015, 06:53:50 AM
Quote from: dschaper on June 02, 2015, 06:35:17 AM
Okay and what software are you using for the inConnect servers? Since you're connecting to localhost are the decoders all running on the same machine as modesmixer?

im receiving Mode-S and ADS-B perfectly fine, i know my setup works, im wondering why i do not receive any Mode A/C packets.

the bat shown is the masterserver, there are other instances of MSM2 running for each localhost input, which then are connected to remote hosts

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on June 02, 2015, 07:41:23 AM
The option you need in ModeSDeco2 is --rbs

Assuming you are using ModeSDeco2 of course

http://radarspotting.com/forum/index.php/topic,4965.msg23386.html#msg23386

Tim

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 02, 2015, 03:29:33 PM
ModeSDeco2 v.20150603

+ added support for AirSpy receivers (Firmware Version: Base AirSpy NOS v1.0.0-rc4-0-g23d1436 2015-03-22 and special AirSpy NOS v1.0.0-rc3-2-g23d1436-dirty 2015-03-22) with Intel x86 CPU (Windows, Linux, OS X)
+ added option --airspy-sr <arg> Set AirSpy sample rate (default: max available). Example: 4, 6, or 10 (for use with special fw AirSpy NOS v1.0.0-rc3-2-g23d1436-dirty 2015-03-22 only)
+ added option --avrmlatas <arg> Enable AVR MLAT AirSpy format (*<frame>;<timestamp: 4 bytes>;<samples_per_pulse: 1 byte>;\r\n) output listen port (default:off)
+ added option --web-auth <arg> Enable web auth username:password (default: off)
+ added option --filter-ic Enable Interrogator Code filter (default: off)
+ added option --metric Enable metric system of distance measurement
+ added ability to select rows for aircraft's label on the map
+ added ability to display METAR data (with decoding them by pushing on the string) for one airport
+ added ability to select the map style
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: manchild on June 02, 2015, 05:32:37 PM
Nice app!  I was looking for a way to see the TCAS,AP,VNAV,AHOLD, etc..  Perfect!  Is there an output format that supports those?  Is there a way to output decoded information to a port?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on June 02, 2015, 09:58:20 PM
Great! Any news about the Raspberry Pi version?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on June 03, 2015, 04:10:05 AM
Quote from: Triple7 on June 02, 2015, 07:41:23 AM
The option you need in ModeSDeco2 is --rbs

Assuming you are using ModeSDeco2 of course

http://radarspotting.com/forum/index.php/topic,4965.msg23386.html#msg23386

Tim

I was aware of the -RBS switch in Deco, but im using Mixer, im not running RTL Dongles for ADS-B/Mode-S/Mode-A/C.

i have 5 remote receivers, 3 outputting SBS-3, 2 Outputting AVR/BEAST
im running 5 copies of "slave" ModeSMixer, one for each remote receiver, converting to AVRMLAT and outputting on localhost
then i have a "Master" ModeSMixer polling the Slaves, and configured for web output and various sharing outputs for partners.

It looks Like this:


REMOTE RECEIVER A |-----------> SLAVE MSM2 (A) |-----------V

REMOTE RECEIVER B |-----------> SLAVE MSM2 (B) |-----------V

REMOTE RECEIVER C |-----------> SLAVE MSM2 (C) |-----------+-------> MASTER MSM2 |-----------> HTTP / SHARESERVER/ ETC

REMOTE RECEIVER D |-----------> SLAVE MSM2 (D) |-----------^

REMOTE RECEIVER E |-----------> SLAVE MSM2 (E) |-----------^                       
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dschaper on June 03, 2015, 04:19:50 AM
Can you check and see if the slave mixers are getting and sending Mode A/C? I'm sorry if these are pedantic questions but to troubleshoot from a message board is kind of difficult, especially with the set up you have running. Are you able to just get rid of the slave mixers and feed all 5 feeders directly in to the master, or do you need the slave mixers for other feeding tasks besides the master?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on June 03, 2015, 04:26:20 AM
Quote from: dschaper on June 03, 2015, 04:19:50 AM
Can you check and see if the slave mixers are getting and sending Mode A/C? I'm sorry if these are pedantic questions but to troubleshoot from a message board is kind of difficult, especially with the set up you have running. Are you able to just get rid of the slave mixers and feed all 5 feeders directly in to the master, or do you need the slave mixers for other feeding tasks besides the master?
i need the slave mixers for other tasks, otherwise the setup would be redundant.
how would i determine if their receiving mode a/c?
what requirements have to be met to receive mode a/c?

the remote equipment are 3 Kinetic 1090 pucks, and 2 flightradar beast receivers
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dschaper on June 03, 2015, 04:32:29 AM
Quote from: GregoryGHarding on June 03, 2015, 04:26:20 AM
i need the slave mixers for other tasks, otherwise the setup would be redundant.
how would i determine if their receiving mode a/c?
what requirements have to be met to receive mode a/c?

the remote equipment are 3 Kinetic 1090 pucks, and 2 flightradar beast receivers

The easiest way to check would be to turn on the web server in the slave mixers and check the web interface, you would see numbers by the S icon and the A icon if both modes were functioning.  FlightRadar Beast's are able to do S and A/C, it's just a matter of dip switch settings, FlightRadar blueboxes are actually just RasPi's running dump1090. Not sure about the Kinetics, but I'm sure a Google search would get you the info you need.

Edit: Sorry, the blueboxes are FlightAware's thing...
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on June 03, 2015, 10:52:58 PM
Quote from: dschaper on June 03, 2015, 04:32:29 AM
Quote from: GregoryGHarding on June 03, 2015, 04:26:20 AM
i need the slave mixers for other tasks, otherwise the setup would be redundant.
how would i determine if their receiving mode a/c?
what requirements have to be met to receive mode a/c?

the remote equipment are 3 Kinetic 1090 pucks, and 2 flightradar beast receivers

The easiest way to check would be to turn on the web server in the slave mixers and check the web interface, you would see numbers by the S icon and the A icon if both modes were functioning.  FlightRadar Beast's are able to do S and A/C, it's just a matter of dip switch settings, FlightRadar blueboxes are actually just RasPi's running dump1090. Not sure about the Kinetics, but I'm sure a Google search would get you the info you need.

Edit: Sorry, the blueboxes are FlightAware's thing...

yeah no results there. and as far as a hardware jumper on the FR24 boxes. when i said remote.. i meant it. their about 5 hours drive away lol
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: rtlsdr_SCN on June 04, 2015, 11:48:56 PM
Quote from: sergsero on June 02, 2015, 03:29:33 PM
ModeSDeco2 v.20150603

+ added support for AirSpy receivers (Firmware Version: Base AirSpy NOS v1.0.0-rc4-0-g23d1436 2015-03-22 and special AirSpy NOS v1.0.0-rc3-2-g23d1436-dirty 2015-03-22) with Intel x86 CPU (Windows, Linux, OS X)
+ added option --airspy-sr <arg> Set AirSpy sample rate (default: max available). Example: 4, 6, or 10 (for use with special fw AirSpy NOS v1.0.0-rc3-2-g23d1436-dirty 2015-03-22 only)
+ added option --avrmlatas <arg> Enable AVR MLAT AirSpy format (*<frame>;<timestamp: 4 bytes>;<samples_per_pulse: 1 byte>;\r\n) output listen port (default:off)
+ added option --web-auth <arg> Enable web auth username:password (default: off)
+ added option --filter-ic Enable Interrogator Code filter (default: off)
+ added option --metric Enable metric system of distance measurement
+ added ability to select rows for aircraft's label on the map
+ added ability to display METAR data (with decoding them by pushing on the string) for one airport
+ added ability to select the map style

Windows: modesdeco2_windows_20150603.zip https://drive.google.com/open?id=0B7NYXizl0U6idjZSMnlXcjhIUTg&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6idjZSMnlXcjhIUTg&authuser=0)

Ubuntu 14.04 64 bit: modesdeco2_x86_64_20150603.tgz https://drive.google.com/open?id=0B7NYXizl0U6iOU02a1h0NXNPaVk&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iOU02a1h0NXNPaVk&authuser=0)

OS X: modesdeco2_osx_20150603.tgz https://drive.google.com/open?id=0B7NYXizl0U6iZTBCN0NCUU1MaGs&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iZTBCN0NCUU1MaGs&authuser=0)

Raspberry Pi 2 for dongle RTL2832: modesdeco2_rpi2_20150603.tgz https://drive.google.com/open?id=0B7NYXizl0U6iSG41VXdDdVRQMUk&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iSG41VXdDdVRQMUk&authuser=0)

hey sergsero, thank you very much for this release, and what about MIPS (openwrt) build, this one dont get updates please? hehe :)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on June 05, 2015, 06:50:13 AM
Win10?

Again, great app :-)
Working perfectly on my win7 pc.
Then i tried on a PC running win10 (latest update from MS), just for fun. Installed MSVC2012 bistro, and the driver of course. Getting this then:

2015-06-05 07:44:52.495  INFO     ModeSDeco2 v.20150603
2015-06-05 07:44:52.526  INFO     Device: 0 already in use)
libusb_open error -12
2015-06-05 07:44:52.542  ERROR    Can't open device: sdr_open(): Bad file descri
ptor
Press any key to continue . . .

Anyone succeed on win10?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on June 05, 2015, 08:15:36 AM
150603 version. On the Flights page i now see some aircraft listed as both ADS-B and Mode S (2 lines per aircraft).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 05, 2015, 04:40:07 PM
Hello,

You should not have any problems with running modesdeco2 on Windows 10 (screenshot attached).

Did you use zadig http://zadig.akeo.ie/ (http://zadig.akeo.ie/) that installs generic USB drivers for access USB devices?

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on June 05, 2015, 07:22:13 PM
Hi Sergsero,

It's possible to include a sender identification to messages sent using modesmixer2? This would be a great feature to users that have more than one remote stations sending data to a modesmixer2 server.

A feature like this one would give us an way to know exactly from where the messages are comming from.

Regards,

Marcio 
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: swn on June 06, 2015, 09:16:13 AM
Hi Sergsero,

there will be the new version of modesdeco2 also for RPI and not only for RPI v2 ?

And also form modesmixer ?

regards

swn
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on June 08, 2015, 09:27:13 AM
Quote from: sergsero on June 05, 2015, 04:40:07 PM
Hello,

You should not have any problems with running modesdeco2 on Windows 10 (screenshot attached).

Did you use zadig http://zadig.akeo.ie/ (http://zadig.akeo.ie/) that installs generic USB drivers for access USB devices?

Yes i use those drivers. Done the same setup as i have working on my Win7 PC.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tmaster on June 08, 2015, 08:46:27 PM
Well I have both running on my xp but when I try to run them on a xp laptop they both just crash any ideals what causes them to crash? I even tried the one compiled for 1013 it also just crashes.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dschaper on June 09, 2015, 08:06:42 AM
Quote from: tmaster on June 08, 2015, 08:46:27 PM
Well I have both running on my xp but when I try to run them on a xp laptop they both just crash any ideals what causes them to crash? I even tried the one compiled for 1013 it also just crashes.

Which versions / release dates of the ModeS' are you running. Are you getting any error messages or are the programs just shutting down. What are the commands you are using to start the programs (batch scripts or command lines with arguments would be helpful.) 32 bit or 64 bit OS?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: map5623 on June 09, 2015, 05:25:30 PM
Evening Gents
This question did not get an answer and is an area that I am interested in.
If not AdsbScope is there software available that will display?

TVM
Mike


Quote from: kryder on May 10, 2015, 02:34:46 PM
Hi Sergsero,

It is possible to ModeSDeco2 to show mode A/C squawks in AdsbScope ?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dschaper on June 09, 2015, 08:56:41 PM
Quote from: map5623 on June 09, 2015, 05:25:30 PM
Evening Gents
This question did not get an answer and is an area that I am interested in.
If not AdsbScope is there software available that will display?

TVM
Mike


Quote from: kryder on May 10, 2015, 02:34:46 PM
Hi Sergsero,

It is possible to ModeSDeco2 to show mode A/C squawks in AdsbScope ?

Have you tried PlanePlotter?

Edit--
If you are looking for Mode A/C Sqwks then you don't need another program, ModeSDeco2 and Mixer2's web pages display that info. See the attachment.

If you want that info in AdsbScope I'll have to find a copy and fire it up to see what it can do.


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: map5623 on June 10, 2015, 04:14:44 PM
Thanks DS,
I have seen the output on ModeSdeco2 but I am interested in a display similar to ADSBscope or similar that will display S and A/C at the same time.
I have read on the PP site that they use something called 'beamfinder' for mode A/C and was interested to know if it is an inhouse add-on or another app that is available.

I am also interested to know if anyone has displayed 868Mhz at the same time.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dschaper on June 10, 2015, 05:02:04 PM
Quote from: map5623 on June 10, 2015, 04:14:44 PM
Thanks DS,
I have seen the output on ModeSdeco2 but I am interested in a display similar to ADSBscope or similar that will display S and A/C at the same time.
I have read on the PP site that they use something called 'beamfinder' for mode A/C and was interested to know if it is an inhouse add-on or another app that is available.

I am also interested to know if anyone has displayed 868Mhz at the same time.

Mike

Mike, you can display sq's on PlanePlotter (I've attached 3 shots, 1st is the list view, second is the chart view and third is the options of what you can display in chart view.) Beamfinder is a method of using Mode A/C and Mode S to determine radar site locations and is kind of hit and miss depending where you are at. Here in So Cal it doesn't really work since there are multiple radar sites that use the same ID, and this is a major area for testing Mode S to take over many of the applications for ground based radar. So you can go with PP out of the box and if you qualify for ground station status and can share you might be able to get a free license for it.

I still haven't looked at asdbScope to see it's layouts but I can if you are really interested in that particular product.

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: map5623 on June 10, 2015, 07:51:22 PM
Hello Ds
Thanks for the offer. I am only using adsbScope as it was suggested by a friend of mine. I will have a look at the other software around to see what that has to offer.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: MotherTeresa on June 12, 2015, 08:46:41 AM
Hi.
I have problem with MODESDECO, all versions. When I try to start program i got this message always:

2015-06-12 09:41:20.890  INFO     ModeSDeco2 v.20150603
2015-06-12 09:41:21.687  INFO     Device: 0 already in use)
libusb_open error -3
2015-06-12 09:41:22.140  ERROR    Can't open device: sdr_open(): Bad file descri
ptor


Windows XP SP3, LIBUSB drivers (from ZADIG). RTL1090 works ok.

Sorry for my not perfect English.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 12, 2015, 01:48:25 PM
ModeSMixer2 v.20150616 test version

+ fixed bug in CPR decoder's filter
+ used the release version v=3.20 of Google Maps API

20150612
+ added option --web-auth <arg> Enable web auth username:password (default: off)
+ added option --filter-ic Enable Interrogator Code filter (default: off)
+ added option --metric Enable metric system of distance measurement
+ added ability to select rows for aircraft's label on the map
+ added ability to display METAR data (with decoding them by pushing on the string) for one airport
+ table on Google map is draggable. Move it by clicking on it with the mouse and dragging it anywhere within the viewport
+ added option --location <arg> for one point with lat:lon
+ added option --filter-ic Enable Interrogator Code filter (default: off)
+ added option --disable-web-log suppresses console messages on WEB page Log (default: on)


QuoteIf you see on the page Map that all aircraft are being plotted in the top-left corner and the Google map does not load, then you need to do bypass your cache in browser.

Bypassing your cache means forcing your web browser to re-download a web page from scratch, which can often solve website display glitches. It is also required after installing user scripts. Bypassing your cache is simple, safe, and causes no permanent changes.

When you are on the page "Map":
In most Windows and Linux browsers: Hold down Ctrl and press F5.
In Apple Safari: Hold down ⇧ Shift and click the Reload toolbar button.

Or use menu: Control+Shift+Del

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on June 12, 2015, 02:26:51 PM
Version 20151612 working perfectly under Win7 64bit.

Thanks Sergsero for the new enhancements.

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sonicgoose on June 12, 2015, 02:28:00 PM
Quote from: map5623 on June 09, 2015, 05:25:30 PM
Evening Gents
This question did not get an answer and is an area that I am interested in.
If not AdsbScope is there software available that will display?

TVM
Mike


Quote from: kryder on May 10, 2015, 02:34:46 PM
Hi Sergsero,

It is possible to ModeSDeco2 to show mode A/C squawks in AdsbScope ?

In ADSBScope, choose Config > Aircraft track > Label > 4 lines and squawks will display on the fourth line.

Rob

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 12, 2015, 02:55:11 PM
Thank you for the feedback.

However, in the program code were made multiple changes to reduce the size of it and to ensure cross platform. Therefore, the program needs testing for errors.    
I will be grateful for your help in this testing.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on June 13, 2015, 11:28:41 AM
Need some help.

I don't find the right way to set the path to the silhouttes on my pi2.

BaseStation.sqb is found and working, ie. REG info is shown in webbrowser.
But I would also like to see the silouettes.

Now I use the command:
./modesdeco 2 --gain 48.0 --rbs --location 49.572:7.601 --web 8000 --metric --db BaseStaion.sqb --silhouettes /modesdeco/Outlines

Folder Silouettes with silouettes files is in folder modesdeco.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on June 13, 2015, 01:37:02 PM
Have you added a ICAO type code (that matches a silhouette image file name) for each aircraft record in your BaseStation.sqb file?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on June 13, 2015, 01:55:53 PM
Hi Anmer,

Files are named for example: A320.bmp.
On my PC this is working when I use modesdeco2.
I think it has something to do with the path of these files on my PI2.
I don't know how to set the correct path in the command line options.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: nurmiin on June 13, 2015, 02:14:14 PM
Quote from: Rockwell on June 13, 2015, 11:28:41 AM


Now I use the command:
./modesdeco 2 --gain 48.0 --rbs --location 49.572:7.601 --web 8000 --metric --db BaseStaion.sqb --silhouettes /modesdeco/Outlines


Hi,

Are you really using a sqb named like that?

Best Reagards
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on June 13, 2015, 02:19:54 PM
No, of course not is just a typing error. "t" is missing.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: nurmiin on June 13, 2015, 02:30:44 PM
Quote from: Rockwell on June 13, 2015, 11:28:41 AM

./modesdeco 2 --gain 48.0 --rbs --location 49.572:7.601 --web 8000 --metric --db BaseStaion.sqb --silhouettes /modesdeco/Outlines

Folder Silouettes with silouettes files is in folder modesdeco.


Hi,

You can try bare name of the folder like this:
--silhouettes Outlines

Best Regards
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 13, 2015, 02:44:08 PM
Hi Rockwell,

QuoteFolder Silouettes with silouettes files is in folder modesdeco

If this is true, then why are you in the line to run program, use --silhouettes /modesdeco/Outlines?
And if the directory is not in a root, but in your user directory, default /home/pi, I can say that missing the "~":  --silhouettes ~/modesdeco/Silhouettes.
Or specify the full path to the folder: --silhouettes /home/pi/modesdeco/Silhouettes.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on June 13, 2015, 02:55:39 PM
Hi sergsero,

Thanks much, now it is working.   ;D
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sonicgoose on June 13, 2015, 04:32:04 PM
Seeing an issue with the latest modesdeco2 (20150603) and modesmixer2 (20150612) for Windows. When loading the web map in my browser (Safari 8.0.6, OS X 10.10.3 and Google Chrome 43.0.2357.124, Win 7 Ultimate 32-bit), all aircraft are being plotted in the top-left corner and the Google map does not load. See attachment for a screenshot. I'm seeing this on three separate computers. This is a sporadic issue: sometimes it loads properly and sometimes it doesn't.

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on June 13, 2015, 06:44:25 PM
Quote from: sonicgoose on June 13, 2015, 04:32:04 PM
Seeing an issue with the latest modesdeco2 (20150603) and modesmixer2 (20150612) for Windows. When loading the web map in my browser (Safari 8.0.6, OS X 10.10.3 and Google Chrome 43.0.2357.124, Win 7 Ultimate 32-bit), all aircraft are being plotted in the top-left corner and the Google map does not load. See attachment for a screenshot. I'm seeing this on three separate computers. This is a sporadic issue: sometimes it loads properly and sometimes it doesn't.

Same is happening when I open browser on my pi2.  Charts, Stats, Flights and Log just working fine but map same problem as Sonicgoose.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: map5623 on June 13, 2015, 08:02:14 PM
Hello Sergsero
Would it be possible in ModeSDeco2 to filter aircraft above/below a certain flight level or altitude.

thanks
Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on June 14, 2015, 01:21:39 AM
Sorry for this dumb question, but what is meant by the letters "A" and "S" precisely?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dschaper on June 14, 2015, 01:56:24 AM
Quote from: spotter.ssol on June 14, 2015, 01:21:39 AM
Sorry for this dumb question, but what is meant by the letters "A" and "S" precisely?

Mode A/C and Mode S
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 14, 2015, 04:17:50 AM
Hi sonicgoose,

You need to do bypass your cache in browser.

To speed things up and conserve communications bandwidth, browsers attempt to keep local copies of pages, images, and other content you've visited, so that it need not be downloaded again later. Occasionally this caching scheme goes awry (e.g. the browser insists on showing out-of-date content) making it necessary to bypass the cache, thus forcing your browser to re-download a web page's complete, up-to-date content.

Bypassing your cache means forcing your web browser to re-download a web page from scratch, which can often solve website display glitches. It is also required after installing user scripts. Bypassing your cache is simple, safe, and causes no permanent changes.


When you are on the page "Map":
In most Windows and Linux browsers: Hold down Ctrl and press F5.
In Apple Safari: Hold down ⇧ Shift and click the Reload toolbar button.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 14, 2015, 04:40:52 AM
Hi spotter.ssol,

These letters signify the type of transponder, which is used on this aircraft.
For uniformity of characters with VRS, where they also used, the letter (https://dl.dropboxusercontent.com/u/79709204/Pictures/20150614/adsb.png) means ADS-B (selection criteria is coordinates and DF17 messages)
and the letter (https://dl.dropboxusercontent.com/u/79709204/Pictures/20150614/modes.png) corresponds to Mode S.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sonicgoose on June 14, 2015, 09:58:40 PM
Quote from: sergsero on June 14, 2015, 04:17:50 AM
Hi sonicgoose,

You need to do bypass your cache in browser.

To speed things up and conserve communications bandwidth, browsers attempt to keep local copies of pages, images, and other content you've visited, so that it need not be downloaded again later. Occasionally this caching scheme goes awry (e.g. the browser insists on showing out-of-date content) making it necessary to bypass the cache, thus forcing your browser to re-download a web page's complete, up-to-date content.

Bypassing your cache means forcing your web browser to re-download a web page from scratch, which can often solve website display glitches. It is also required after installing user scripts. Bypassing your cache is simple, safe, and causes no permanent changes.


When you are on the page "Map":
In most Windows and Linux browsers: Hold down Ctrl and press F5.
In Apple Safari: Hold down ⇧ Shift and click the Reload toolbar button.

Regards,
sergsero

I have tried bypassing the cache, and have even gone so far as to empty the cache completely, but I'm still experiencing the issue. This is an issue that did not appear in previous versions of both modesdeco2 and modesmixer2.

Rob
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on June 15, 2015, 11:13:46 PM
Quote from: sergsero on June 14, 2015, 04:40:52 AM
Hi spotter.ssol,

These letters signify the type of transponder, which is used on this aircraft.
For uniformity of characters with VRS, where they also used, the letter (https://dl.dropboxusercontent.com/u/79709204/Pictures/20150614/adsb.png) means ADS-B (selection criteria is coordinates and DF17 messages)
and the letter (https://dl.dropboxusercontent.com/u/79709204/Pictures/20150614/modes.png) corresponds to Mode S.

Regards,
sergsero

Thanks sergsero! Is there any plans to upgrade the raspberry pi version of modesdeco2?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on June 16, 2015, 04:51:02 PM
Quote from: sergsero on June 12, 2015, 01:48:25 PM
ModeSMixer2 v.20150612

+ added option --web-auth <arg> Enable web auth username:password (default: off)
+ added option --filter-ic Enable Interrogator Code filter (default: off)
+ added option --metric Enable metric system of distance measurement
+ added ability to select rows for aircraft's label on the map
+ added ability to display METAR data (with decoding them by pushing on the string) for one airport
+ table on Google map is draggable. Move it by clicking on it with the mouse and dragging it anywhere within the viewport
+ added option --location <arg> for one point with lat:lon
+ added option --filter-ic Enable Interrogator Code filter (default: off)
+ added option --disable-web-log suppresses console messages on WEB page Log (default: on)


  • Windows (MSVS2013): modesmixer2_windows_20150612.zip https://drive.google.com/open?id=0B7NYXizl0U6ieUFkYTFrZjhJWkE&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6ieUFkYTFrZjhJWkE&authuser=0)

  • Intel Ubuntu 14.04 32bit: modesmixer2_i386_20150612.tgz https://drive.google.com/open?id=0B7NYXizl0U6iN3dLblBPWGJYR2M&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iN3dLblBPWGJYR2M&authuser=0)
  • Intel Ubuntu 14.04 64bit: modesmixer2_x86_64_20150612.tgz https://drive.google.com/open?id=0B7NYXizl0U6iVDRvRWhEcVRNY1E&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iVDRvRWhEcVRNY1E&authuser=0)

  • Raspberry Pi (Broadcom SoC BCM2835, ARM1176JZFS): modesmixer2_rpi_20150612.tgz https://drive.google.com/open?id=0B7NYXizl0U6iVGdvWDJpZGRXWjg&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iVGdvWDJpZGRXWjg&authuser=0)
  • Raspberry Pi 2 (Broadcom SoC BCM2836, quad-core): modesmixer2_rpi2_20150612.tgz https://drive.google.com/open?id=0B7NYXizl0U6iQzJOUExiTmM4NU0&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iQzJOUExiTmM4NU0&authuser=0)
  • BeagleBone Angstrom RadarCape (AM335x 720MHz ARM® Cortex™-A8): modesmixer2_beaglebone_angstrom_20150612.tar.gz https://drive.google.com/open?id=0B7NYXizl0U6iQW51OW9xbEt1dDA&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iQW51OW9xbEt1dDA&authuser=0)
  • Odroid U3 (Samsung Exynos4412 Cortex-A9 Quad Core): modesmixer2_odroid_U3_20150612.tgz https://drive.google.com/open?id=0B7NYXizl0U6iblZZaWJtRjVhMWM&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iblZZaWJtRjVhMWM&authuser=0)

  • OS X 10.10 Yosemite: modesmixer2_osx_20150612.tgz https://drive.google.com/open?id=0B7NYXizl0U6iM0hsQk1pY2pxX1k&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iM0hsQk1pY2pxX1k&authuser=0)

  • OpenWrt Barrier Breaker 14.07 MIPS ar71xx (TP-LINK TL-WDR3500/3600/4300): modesmixer2_mips_ar71xx_20150612.zip https://drive.google.com/open?id=0B7NYXizl0U6ic0FkM29HdjgtcFk&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6ic0FkM29HdjgtcFk&authuser=0)

QuoteIf you see on the page Map that all aircraft are being plotted in the top-left corner and the Google map does not load, then you need to do bypass your cache in browser.

Bypassing your cache means forcing your web browser to re-download a web page from scratch, which can often solve website display glitches. It is also required after installing user scripts. Bypassing your cache is simple, safe, and causes no permanent changes.

When you are on the page "Map":
In most Windows and Linux browsers: Hold down Ctrl and press F5.
In Apple Safari: Hold down ⇧ Shift and click the Reload toolbar button.

Good Job Sergsero!

Thank you so much for the improvements on modesmixer.

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 17, 2015, 03:12:38 AM
Hi sonicgoose,

In #366 message of the thread is corrected version 20150616.

+ fixed bug in CPR decoder's filter
+ used the release version v=3.20 of Google Maps API

I hope that the changes will solve the  problem:
Quoteall aircraft are being plotted in the top-left corner and the Google map does not load

Unfortunately it's possible that  you'll have to clear your browser's cache (via menu Control-Shift-Del), which was previously used with version 20150612.

I will be grateful to you for testing and feedback.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: grezz on June 17, 2015, 12:41:26 PM
sergsero,

I have a problem with these new versions of modesmixer2 on my RPI2.

Using version 20150323 I used to be able to share the output from my Beast with flightaware and other sites with this call:

/home/pi/mm2/modesmixer2 --inSerial /dev/ttyUSB0:3000000:hardware --web 8081 --outServer beast:30005 --outServer sbs10001:10002 --outServer sbs30006:30003 --outServer fatsv:10001 --log-noconsole

With the new versions and the exact same call, I can see modesmixer2 working fine when I browse its web server page (I love the improvements there by the way!) but data is not being received by piaware. The log shows connections to ports 30005 and 10001 but piaware does not receive anything. I have had to revert to version 20150323 which works as it always did.

Regards
grezz
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sonicgoose on June 17, 2015, 04:03:03 PM
Quote from: sergsero on June 17, 2015, 03:12:38 AM
Hi sonicgoose,

In #366 message of the thread is corrected version 20150616.

+ fixed bug in CPR decoder's filter
+ used the release version v=3.20 of Google Maps API

I hope that the changes will solve the  problem:
Quoteall aircraft are being plotted in the top-left corner and the Google map does not load

Unfortunately it's possible that  you'll have to clear your browser's cache (via menu Control-Shift-Del), which was previously used with version 20150612.

I will be grateful to you for testing and feedback.

Regards,
sergsero

Hi, sergsero

I've installed 20150616 from message #366. I'm still experiencing the same map issue in both Safari and Chrome in OS X. Chrome in Windows appears to be ok, though.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 17, 2015, 06:42:01 PM
Hi sonicgoose,

Unfortunately, I can't reproduce the issue on my Mac in Safari 8 and Google map is displayed correctly.

Regards,
sergsero


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 17, 2015, 06:56:52 PM
Hi grezz,

There is indeed a issue in working with piaware soft. If you need this feature, use the previous version 20150323.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: grezz on June 18, 2015, 07:04:50 AM
Thanks for the info sergsero. Is the piaware issue something that will be worked on in future versions?

Regards
grezz
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on June 18, 2015, 06:28:20 PM
Any idea why i often see the same airplane twice, often once as Mode-S and once as ADS-B, but here it is 2 x Mode-S? See screenshot attached.
I believe it started with the latest ModesDeco2 update.

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 18, 2015, 06:44:40 PM
Hi larsras,
   
As far as I can see on the screenshot, all clones apply only to Mode S aircraft. An error occurs in the decoding of one bit. All three aircraft with ADS-B (4CA53F, 4CA73B and 45AB41) are present in a single instance.
Try adding the option --filter-ic and please let me know, would that to affect the issue.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on June 18, 2015, 07:25:05 PM
I added the filter, but it didn't seem to help. The previous screenshot was also an unusual example with only Mode-S, but i have attached new screenshoots, as i normally see it. Both are after i enabled this filter.



[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on June 19, 2015, 08:39:55 AM
This strange behaviour happen also with older version.
Tried as suggested filter but this doesn't solve the doubles.
Also zoom behaviour is strange; to big or to small.




[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 19, 2015, 01:54:20 PM
Hi larsras and Rockwell,

Think I know the reason of this issue and I will try to fix it in future versions.

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 19, 2015, 02:00:52 PM
Hi grezz,

I think I fixed the bug in program with output piaware format. Just download again the archive, inside it there is a changed version of an executable file. Please, test it.

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: grezz on June 22, 2015, 08:05:02 AM
sergsero,

It works so far! Thanks for the quick fix - love your work.

grezz
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: G0HEU on June 24, 2015, 09:58:42 AM
HI

is the fix for PC as well ??

thanks

Paul
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: grezz on June 24, 2015, 10:29:11 AM
G0HEU,

The fix is for modesmixer2 to play nice with piaware, which runs on the RPI, so I doubt it.

grezz
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on June 24, 2015, 02:21:57 PM
Hi Sergsero,

Is there any chance to include the feature suggested into msg #355 in a future release?

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: VE7LFL on June 26, 2015, 12:33:39 PM
First posting....I am using an older version of Modesmixer2, and now would like to update with the latest....how would I do the update, do I remove the older version, or will the newer version over write the older....Modesmixer2 runs very well with my remote RPI and Beast...

Cheers

Doug
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 27, 2015, 08:15:56 AM
Hi mlino,

In future releases I will try to fulfil your request. Sending an identifier is not difficulty. Unfortunately back detection in receiving mode requires further development of the program.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 27, 2015, 08:30:38 AM
Hello Doug,

Which previous version of modesmixer2 you are using now?
If the previous version was distributed and installed as a debian package, then stop it and just replace the existing binary file in /usr/bin on new.

If the version was distributed as tgz archive, just use the new binary.

This weekend will be released a fixed version 20150628.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 28, 2015, 01:56:39 PM
ModeSMixer2 version 20150628 test

+ fixed read/write to database file






QuoteIf you see on the page Map that all aircraft are being plotted in the top-left corner and the Google map does not load, then you need to do bypass your cache in browser.

Bypassing your cache means forcing your web browser to re-download a web page from scratch, which can often solve website display glitches. It is also required after installing user scripts. Bypassing your cache is simple, safe, and causes no permanent changes.

When you are on the page "Map":
In most Windows and Linux browsers: Hold down Ctrl and press F5.
In Apple Safari: Hold down ⇧ Shift and click the Reload toolbar button.

Or use menu: Control+Shift+Del
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 28, 2015, 02:18:29 PM
ModeSDeco2 version 20150628 test

+ fixed operation read/write to database file

Windows: modesdeco2_windows_20150628.zip https://drive.google.com/open?id=0B7NYXizl0U6iTzA0VzBuZFlwbG8&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iTzA0VzBuZFlwbG8&authuser=0)

Ubuntu 14.04 32 bit: modesdeco2_i386_20150628.tgz https://drive.google.com/open?id=0B7NYXizl0U6iRC04OHBiMDJmZWc&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iRC04OHBiMDJmZWc&authuser=0)
Ubuntu 14.04 64 bit: modesdeco2_x86_64_20150628.tgz https://drive.google.com/open?id=0B7NYXizl0U6iWEFtVGFOODRTWms&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iWEFtVGFOODRTWms&authuser=0)

OS X: modesdeco2_osx_20150628.tgz https://drive.google.com/open?id=0B7NYXizl0U6iVWd3dnRoMENMaWs&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iVWd3dnRoMENMaWs&authuser=0)

For dongle RTL2832 only:
Raspberry Pi 2 (Broadcom SoC BCM2836, Quad Core): modesdeco2_rpi2_20150628.tgz https://drive.google.com/open?id=0B7NYXizl0U6ibHg4OW5FSXB4Mzg&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6ibHg4OW5FSXB4Mzg&authuser=0)
Odroid U3 (Samsung Exynos4412 ARM® Cortex™-A9 Quad Core): modesdeco2_odroid_U3_20150628.tgz https://drive.google.com/open?id=0B7NYXizl0U6iZGNkVjJNNnJKUHc&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iZGNkVjJNNnJKUHc&authuser=0)
Odroid С (Amlogic S805 : Quad Core Cortex™-A5 processor with Dual Core Mali™-450 GPU): modesdeco2_odroid_C_20150628.tgz https://drive.google.com/open?id=0B7NYXizl0U6iRnpzY2NhX0RHTlU&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iRnpzY2NhX0RHTlU&authuser=0)
CuBox-i4Pro (Freescale i.MX6Q SoC, 4x ARM® Cortex™-A9): modesdeco2_CuBoxi4Pro_iMX6Quad_20150628.tgz https://drive.google.com/open?id=0B7NYXizl0U6iaVJUX3hqUUg0ekU&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iaVJUX3hqUUg0ekU&authuser=0)
Banana Pi (AllWinnerTech SoC A20, ARM® Cortex™-A7 Dual-Core): modesdeco2_bpi_20150628.tgz https://drive.google.com/open?id=0B7NYXizl0U6iSVNuYnNOVnU2OUk&authuser=0 (https://drive.google.com/open?id=0B7NYXizl0U6iSVNuYnNOVnU2OUk&authuser=0)

QuoteIf you see on the page Map that all aircraft are being plotted in the top-left corner and the Google map does not load, then you need to do bypass your cache in browser.

Bypassing your cache means forcing your web browser to re-download a web page from scratch, which can often solve website display glitches. It is also required after installing user scripts. Bypassing your cache is simple, safe, and causes no permanent changes.

When you are on the page "Map":
In most Windows and Linux browsers: Hold down Ctrl and press F5.
In Apple Safari: Hold down ⇧ Shift and click the Reload toolbar button.

Or use menu: Control+Shift+Del
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on June 29, 2015, 04:47:03 PM
Hi Sergsero,

Tested both versions, 1 for windows and 1 for PI2.
Both version still have problems with map display.

Map display in PI2 is terible slow, older versions were ok.
Map display in Windows is again al planes in upper left corner.

Also there are still double ones in the flights screen.

But ModeSDeco2 is still my favorit !
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 30, 2015, 03:18:46 AM
Hi Rockwell,

Thank you for your feedback.
In this version have been fixed the only error writing to database. All other issues still exist. In my opinion for ARM devices most appropriate version is remains modesdeco2 v.20150321.

In new versions for restoration of partially distorted Mode S signals with interference and multipath wave propagation needs enough processor performance, which is not always enough in ARM CPU.     
Or I can't do that on ARM SoC effectively...

About Google Maps issue - in my tests, one-time clearing browser cache using menu by Control+Shift+Del fixed the problem.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on June 30, 2015, 05:14:15 AM
Hi Sergsero,

I tried this with Windows 8.1 and Firefox; CTRL + SHIFT + DEL, but unfortunately this doesn't solve the problem, all planes in map display are cluttered in upper left corner.

On the PI2 there are enough processor resources, when running with 38 planes in view only 11% processing capacity is used.

Regards, Rockwell
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: vsboost on June 30, 2015, 07:07:39 AM
Hi there,

Any chance for hackrf support?

Thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on July 03, 2015, 06:39:19 PM
Hi Sergsero,

Is there a chance to run two instances of modesmixer2 in Linux?

Regards,

Marcio Lino
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 04, 2015, 02:12:56 AM
Hi Marcio,

This should not be a problem.
However, be aware that the value of ports should not match. Or to be already occupied by anyone in the system.

If you are using the database file, only one instance can work with it, to avoid access conflicts.

Finally, performance of CPU of your computer should be sufficient for all tasks.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dfroula on July 06, 2015, 02:05:58 PM
Hi, all,

I found that clearing the cache was not sufficient to fix the modesmixer2 map issue with the overlapping icons in Chrome. I also needed to clear the cookies in the browser for the IP address of the Pi. That resolved the issue for me and sped up access on the other pages besides the map.

Cookies can be wiped by selecting the correct box in the clear "Clear browsing data" dialog, brought up with "ctrl-shift-del". Be sure the clear cache selection is made as well.

Best,

Don
WD9DMP

Quote from: sergsero on June 30, 2015, 03:18:46 AM
Hi Rockwell,

Thank you for your feedback.
In this version have been fixed the only error writing to database. All other issues still exist. In my opinion for ARM devices most appropriate version is remains modesdeco2 v.20150321.

In new versions for restoration of partially distorted Mode S signals with interference and multipath wave propagation needs enough processor performance, which is not always enough in ARM CPU.     
Or I can't do that on ARM SoC effectively...

About Google Maps issue - in my tests, one-time clearing browser cache using menu by Control+Shift+Del fixed the problem.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on July 07, 2015, 04:39:10 PM
Hi Sergsero,

Is there anyway to resolve the strange zoom behaviour ?

When I click the + or - button in map display either the map is drawn to big or to small, same is happening when I use the zoom slider.

Greetings, rockwell
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 09, 2015, 08:09:22 AM
Hi Rockwell,

I'm afraid I don't fully understand your question.
Map zooming is possible in two ways. Clicking by cursor on the buttons +/- (or dragging the slider) of built-in controls you can use in Google maps. Either on keyboard by pressing keys +/-.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on July 10, 2015, 02:46:06 PM
Hi Sergsero,

When I zoom in or zoom out, the map is to big or the map is to small.

Regards, rockwell
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on July 10, 2015, 04:18:37 PM
Sorry to jump in, but if it helps to clarify. I think Rockwell is referring to the way the zoom option functions. It is quite 'coarse' in other words the steps for each press of the + or - make the map move a large amount. Is there a way to make the zooming more fine like Google maps - in other words more controllable so it moves in or out in smaller steps.

For example, in my normal mode MSM2 displays from Swansea, UK to Aachen, DE - West to Eest and from Coventry, UK to Caen, FR - North to south. With just a single press on the '-' key it moves out to Waterford, EI to Munich, DE - West / East and Leeds, UK to Basel DE - North to South. So you will appreciate that is a very large 'step' for a single zoom click.

Does that help explain?

Thanks,

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on July 10, 2015, 04:48:20 PM
Hi Tim,

Thanks much for your help.
You explain my problem so much better.

Regards, rockwell
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dfroula on July 12, 2015, 07:58:45 PM
I am reasonably sure the zoom steps are a function of Google Maps and cannot be changed/controlled by the software using the API.

I notice the same issue with coarse zoom levels on lightningmaps.org, which overlays lightning strike data onto Google Maps.

Best,

Don
WD9DMP
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Rockwell on July 13, 2015, 04:09:08 PM
Hi Don,

Strange enough google maps has no slider, only +/- button or scroll wheel on mouse.
But google maps used in modesdeco2 has also a slider.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 15, 2015, 10:07:57 AM
Hi,

Sorry for the delay!

Tim, thanks for your clarification, now I understand what Rockwell asked.
Unfortunately indeed, as Don said, current version of Google Maps API does not allow to change the size of zoom step. And we do not consider non-API methods: scaling properties of browsers, or gradually CSS-zoom the map canvas and use a cluster algorithm.

There is no way to zoom in using smaller increments. The  number of steps to zoom a map is fixed depending of the area your are looking on.

"The Google Maps API could not possibly load all map imagery at the higher zoom levels that are most useful; instead, the Maps API breaks up imagery at each zoom level into a set of map tiles, which are logically arranged in an order which the application understands.
By dividing the pixel coordinates by the tile size and taking the integer parts of the result, you produce as a by-product the tile coordinate at the current zoom level."

zoom = 1   =>   tiles = 2^1 * 2^1 = 2 * 2 = 4
zoom = 2   =>   tiles = 2^2 * 2^2 = 4 * 4 = 16
zoom = 3   =>   tiles = 2^3 * 2^3 = 8 * 8 = 64
etc.

Increasing the zoom level (in the range from 1 to 17 or 18, in few regions up to 21) by 1 doubles the level of detail. The zoom level is an integer value. It corresponds to the discrete value of the slider control on Google maps.

Suppose you show map at zoomLevel = 6. Now you want to increase a bit the zoom, say to 6.2. The message is: you cannot do that; you have to increase to 7. And if it is too detailed you need to keep the zoom at 6. There are no intermediate levels between 6 and 7.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 15, 2015, 10:43:46 AM
Hi,

I'll be grateful for help in testing this new test version of ModeSMixer2:

Windows: modesmixer2_windows_20150715_test.zip https://drive.google.com/open?id=0B7NYXizl0U6ic3k4TUd5SWJPMDQ (https://drive.google.com/open?id=0B7NYXizl0U6ic3k4TUd5SWJPMDQ)
Raspberry Pi 2: modesmixer2_rpi2_20150715.tgz https://drive.google.com/open?id=0B7NYXizl0U6iTW1NelhTdnJuYzA (https://drive.google.com/open?id=0B7NYXizl0U6iTW1NelhTdnJuYzA)

+ fixed the "top-left corner" bug on Google Maps (requires additional testing on different browsers)
+ fixed main menu on mobile devices
+ additional optimizations to reduce CPU load (requires additional testing)
+ improved work with serial port
+ no longer required wmm.cof file
+ fixed same bugs

Regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: fat-tony on July 17, 2015, 11:50:54 AM
@sergsero,

Don (post #421 above) and I have been doing quite a bit of testing with modesmixer2 on the RPi2 in conjunction with Guenter's Beast as input and Planeplotter server and MLAT. All is going well and we have been fine-tuning the shutdown and re-boot of the RPi to ensure modesmixer2 and ppup1090 start sequences are correct etc.
Both of use have noticed that when a kill command is issued to terminate modesmixer2 there seems to be a lot of SD card activity (while it updates basestation.sqb presumably?). You do refer to this in the notes, but I would have expected only a couple of seconds, perhaps. It seems to take upwards of a minute or more. I have reduced the flight-expire-time parameter to 600 seconds from the default on my setup. I haven't rebooted since but will do some tests later today. I think Don has just turned off basestation.sqb processing and that has resolved the issue for him. Do you have any indication as to how long database commits should take when shutting down modesmixer2 on the RPi?

Joe
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 18, 2015, 05:01:58 AM
Hi Joe,

QuoteBoth of use have noticed that when a kill command is issued to terminate modesmixer2 there seems to be a lot of SD card activity (while it updates basestation.sqb presumably?). You do refer to this in the notes, but I would have expected only a couple of seconds, perhaps.

Indeed, when sending a signal (by "Ctrl+C" or "kill") to stop the program will be intensive activities with memory card.

The algorithm works with a database like this. When the aircraft comes in range of your station and was received at least one message from him (any, including without coordinates), a new entry is created in a database file.
You can check it, if make a copy of the basestation.sqb file when modesmixer2 runs. In table "Flights" you find incomplete records for all current aircrafts in the air.

After that, all subsequent incoming data from the aircraft will be stored in program memory. Until you are receiving messages from him.

When the aircraft leaves the coverage area of your radar and the flow of data was interrupted, the program is expecting them for some time. By default, it is 3600 sec (1 hour), and can be changed by option "flight-expire-time".

After this time interval modesmixer2 makes decision that the aircraft finally left the coverage area, writes all his data from memory to the database file and removes the session of this aircraft from memory.

QuoteIt seems to take upwards of a minute or more. I have reduced the flight-expire-time parameter to 600 seconds from the default on my setup. ...Do you have any indication as to how long database commits should take when shutting down modesmixer2 on the RPi?

In my testing I usually use "Transcend Class 10 microSDHC Flash Memory Card", a speed of 10MB/s. The delay time for database closing does not exceed ~2 seconds (for 100-120 aircrafts). However, with less high-speed SD cards the delay time to keep data safe in the database file should not exceed 10 sec. You can check this time for your device, if run the program in console by hand and then to stop it by Ctrl+C.

Also I think needs considering in the script, that in console "Ctrl+C" - the interrupt signal, sends SIGINT to the job running in the foreground. And when the program is running, in memory there are several related processes and the SIGINT signal needs to be sent to the parent.


Regards,
sergsero



[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on July 18, 2015, 10:31:33 AM
FLARM decoding, is this possible?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on July 18, 2015, 12:47:14 PM
Hmm.. Just discovered that FLARM is on another frequency :-) Hoped it could be decoded together with all the other good stuff that comes out of Deco2/Mixer2 :-)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dfroula on July 18, 2015, 02:43:06 PM
Quote from: sergsero on July 18, 2015, 05:01:58 AM
Also I think needs considering in the script, that in console "Ctrl+C" - the interrupt signal, sends SIGINT to the job running in the foreground. And when the program is running, in memory there are several related processes and the SIGINT signal needs to be sent to the parent.

Thanks for that explanation! Very helpful.

I have a push button wired to three of the GPIO pins in the Pi v2, along with a daemon to monitor the button state. A short press of the button initiates an interrupt and "/sbin/poweroff" command. A press >= 2 seconds initiates a reboot with a "/sbin/shutdown -r now" command. I believe that both commands cause the "stop" portion of my /etc/init.d/beast.sh script to run as part of the shutdown/reboot process.

The beast.sh script issues a "killall modesmixer2" command, which I believe will send a SIGTERM (rather than a SIGINT) to the modesmixer2 parent process. It appears that the SIGTERM initiates the database writes, just as a CTR-C/SIGINT signal would do. Can you verify that both signals are detected by the code and act the same?

I checked, and I am using a Class 4 HC microSD card, which likely accounts for the 70+ second write time with 140 or so Mode-S aircraft tracked at 130 Mode-S messages/sec..

Best regards,

Don
WD9DMP
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dfroula on July 18, 2015, 03:02:33 PM
Quote from: sergsero on July 15, 2015, 10:43:46 AM
I'll be grateful for help in testing this new test version of ModeSMixer2

Thanks for adding the RPi2 version. I just noticed it!

The menu issue while in map view seems fixed for both Safari and Chrome on my Iphone 6 with latest OS updates. However, the plane icons are still collapsed in the upper-left corner on all of the map views, despite clearing the browser data on both apps.

EDIT: After killing the Chrome and Safari apps completely on my Iphone 6, the maps display perfectly on both browsers. Thanks!

My Nexus 7 tablet running latest Android OS works fine with the new version, as does Chrome on my desktop computer.

Regards,

Don
WD9DMP

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: fat-tony on July 19, 2015, 12:51:41 PM
@sergsero - thanks for the reply. Like Don, I am using a class 4 SD card for the moment. I did try to do an image copy to a new class 10 card in the past week, but the RPi2 would not boot with it! It's the same size (8GB) but a different manufacturer - Sandisk vs Kingston. I may just try to build a new image from scratch and see how I get on. I've reduced to flight expire time to 600 seconds, so there does not seem to be such a large backlog of data to be written in any case, so that is working ok for me at the moment. Off to a local airshow just now, so will test your new version of modesmixer2 later!

Joe
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jensnds on July 19, 2015, 01:18:48 PM
Hi,
i 've tried the  modesmixer2_rpi2_20150715 on Raspi2 and again we habe the "Google Maps Problem". Testet with many other Users. We've only the Problem in Firefox.

Maybe problem in the Google API?

@sergsero

What you think about the idea to use OpenStreet Map?

Greets Jens
EDVE
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 19, 2015, 03:46:59 PM
Hi,

I think that your time interval from "Ctrl+C" to moment of close program is longer for some reasons.

I recorded a 30 sec video (avi) from my desktop: modesmixer2_delay-db-time.zip https://dl.dropboxusercontent.com/u/79709204/Pictures/20150718/modesmixer2_delay-db-time.zip (https://dl.dropboxusercontent.com/u/79709204/Pictures/20150718/modesmixer2_delay-db-time.zip)
Program stop by "Ctrl+C" at 08:06:20.246 and start procedure of closing database session. It ended in 08:06:21.240, or DB phase duration of ~1 sec.
To the basestation.sqb file were recorded data from ~100 aircraft. Perhaps that message rate is not important here, since to the database is written only initial and final values of every flight.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dfroula on July 19, 2015, 07:43:57 PM
I noticed that the "Stats" web page of modesmixer2 does not seem to report DF18 messages. I was wondering if it would be possible to  add this, as well as decoding and displaying position reports encoded in DF18 messages?

DF18 messages are not widely used outside of the US. Within the US, they are often used for the TIS-B service on 1090MHz. This service is broadcast from some ground stations to send traffic positions to a specific capable aircraft when it is interrogated. Coverage is limited to a defined area around the aircraft and persists only as long as the aircraft is within range of the ground station. The TIS-B data sent includes positions from non-Mode-S aircraft received by conventional ground radar. It also may include ground vehicle traffic and repeated data from UAT-equipped aircraft operating on 978MHz.

I can occasionally receive DF18 messages from nearby ground stations when a capable aircraft flies within range and activates the TIS-B broadcast. The Mode-S Beast can decode them, but I believe Mode-S mixer just ignores them on its web interface, although they do get decoded and displayed by PlanePlotter receiving its data from modesmixer2.

Regards,

Don
WD9DMP
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: fat-tony on July 20, 2015, 12:12:06 PM
@sergsero - I installed your latest update 20150715 on my RPi2. Works great! No issue with "collapsed" top-left corner noted. I did have it several versions ago, but a clear of the cache fixed that for me on Firefox (version 39 on ubuntu). This new version of the Google API seems to have fixed the font (typeface) issue I had with the numeric characters on the stats page. It had always worked ok for me on Chrome, but Firefox now seems to be using the proper font also. The new feature on the map settings page where you can get the met report for a specific airport works great too!

I tested the shutdown time manually using a console start up and using CTRL-C for shutdown. like you, it was about three seconds, so no issue there. Here's a screen grab:

pi@raspberrypi ~/dump1090 $ ./modesmixer2 --inSerial /dev/ttyUSB0:3000000:hardware --outServer beast:10001 --web 8888 --db BaseStation.sqb --frdb flightroute.sqb --location 53.xx:-6.xx --flight-expire-time 600
2015-07-20 11:48:35.247  INFO     ModeSMixer2 v.20150715
2015-07-20 11:48:35.253  INFO     Open DB session
2015-07-20 11:48:37.061  INFO     outServer(beast:10001) started
2015-07-20 11:48:37.065  INFO     inSerial(/dev/ttyUSB0:3000000) connected
2015-07-20 11:48:38.004  INFO     inSerial(/dev/ttyUSB0:3000000) BEAST data stream detected
2015-07-20 11:48:40.833  INFO     Coverage area was determined
2015-07-20 11:48:54.799  INFO     outServer(beast:10001) 127.0.0.1:59952 connected
^C2015-07-20 11:51:28.890  INFO     outServer(beast:10001) 127.0.0.1:59952 disconnected
2015-07-20 11:51:32.923  INFO     Close DB session
2015-07-20 11:51:33.818  INFO     Closed successfully
pi@raspberrypi ~/dump1090 $
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dfroula on July 21, 2015, 01:57:43 AM
Apologies!

I saw 23 DF18 messages show up on the Stats web page of modesmixer2 today as "EXTENDED SQUITTER/SUPPLEMENTARY", so they clearly are supported. It shows how rare reception is here, even though I am only 30 miles West of O'Hare airport (KORD) in Chicago.

Thanks and regards,

Don
WD9DMP
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: nurmiin on July 21, 2015, 11:43:17 AM
Hi sergsero,

Fine job with Modes's, thanks a lot. Both works very well on Pi2, XP, Ubuntu14 and Debian8.

But how could I get in sight on screen buttons "flights" and "tools"? My screen is an old T43, 1028x768px and using Firefox39 on XP.

Best Regards
nurmiin

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 21, 2015, 01:49:43 PM
Hi nurmiin,

Two years ago an initial version of the software was created as a console program - without Web GUI.
By the way, I found an old ASUS with XGA resolution. If you're asking about the buttons in top-right corner, they are displayed on the screen.But only on the page "Map".

Page "Flight" with a resolution of 1024 pixels, has a bottom horizontal scroll bar. Although I will try to fit it in a 1024 pixel in the future without scrolling.

Regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: nurmiin on July 21, 2015, 02:21:12 PM
Hi Sergsero,

Thanks for your reply. My map screen is like in this picture.

Regards
nurmiin

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 21, 2015, 02:25:53 PM
Hi nurmiin,

Please upgrade your version to last v.20150715, as displayed on my picture. The download link is in the message #424 this thread.

sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 21, 2015, 02:42:28 PM
Hi Don,

Thank you for testing DF18.
Modesmixer2 code has theoretical capability of decoding all 4 of 8 types of format DF18 ICAO Annex 10 Volume IV - Surveillance and Collision Avoidance Systems (or DO-260B).

However, in Russia now really used only Code 0 (ADS-B ES/NT devices that report the ICAO 24-bit address in the AA field). And I have no way to check other modes.

Based on your's observation, it can be assumed that the Code 5 (TIS-B messages that relay ADS-B messages that use other addressing techniques in the AA field) and Code 6 (ADS-B rebroadcast using the same type codes and message formats as defined for DF17 ADS-B messages) are also decoded and displayed in the table.

In case of Code 0 the program is able to differentiate it from DF17 (aircraft) and will display this ES/NT (extended squitter/non-transponder) devise using a individual label on Google map. The attached screenshot displays tower and vehicles of apron management services.

Regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: nurmiin on July 21, 2015, 04:33:16 PM
Quote from: sergsero on July 21, 2015, 02:25:53 PM
Hi nurmiin,

Please upgrade your version to last v.20150715, as displayed on my picture. The download link is in the message #424 this thread.

sergsero

Hi Sergsero,

Oh yes, buttons are in sight and working fine now with Pi2. Older Debian version only flashes buttons when loading page.
I think you are working hard with other versions and all can't be ready in same time.

I lift my hat to you

Best Regards
nurmiin


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: G0HEU on July 23, 2015, 09:39:16 AM
Hi all

I am trying to test the mixer2 can someone please check the start line

cmd /c modesmixer2.exe  --inConnect 127.0.0.1:31001 --location 54.8822:-1.5493 --web 8080 --silhouette c:\modes\sil --db c:\modes\basestation.sqb --frdb c:\modes\flightroute.sqb

I am getting an error "inconnect(127.0.0.1:31001) connect to host 127.0.01:31001 error no connection could be made because the target machine activity refused it"

I have the deco2 running no problems

Thanks
Paul
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on July 23, 2015, 10:15:13 AM
My immediate thought is what is providing the port 31001 output for input into ModeSMixer?

If you are picking up date from ModeSDeco, what is your ModeSDeco command line?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: G0HEU on July 23, 2015, 10:21:08 AM
hi

the port came from some instructions I found online I wasn't sure about the port

command line for deco2

cmd /c modesdeco2.exe --gain 49.6 --freq-correction 68 --location 55.6050:-1.7243 --rbs --web 8080 --silhouette c:\modes\sil --db c:\modes\basestation.sqb --frdb c:\modes\flightroute.sqb

the dongle is plugged into the machine I am testing on

thanks

paul
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 23, 2015, 11:05:22 AM
Hi Paul,

Unlike other programs, modesdeco2, by default, has not activated output servers. To get an output data stream, you must explicitly specify the required output option.

In your case, to modesmixer2 able to get anything on the port 31001 (--inConnect 127.0.0.1:31001), modesdeco2 must output data in some format through this port 31001.
So, for example, in BEAST format: just add the option  --beast 31001 to modesdeco2 cmd.

cmd /c modesdeco2.exe --gain 49.6 --freq-correction 68 --location 55.6050:-1.7243 --rbs --web 8080 --silhouette c:\modes\sil --db c:\modes\basestation.sqb --frdb c:\modes\flightroute.sqb --beast 31001

   
Additionally, I note that:
- the simultaneous operation of the two programs with the same database file can cause issues with competition access. Specify this db settings only for some one of the programs, for example, modesmixer2.
- use the option --rbs only if you are absolutely sure that its data you'll required. Otherwise, Mode A/C messages will be only to additionally use resources CPU and clog output data.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on July 23, 2015, 11:10:26 AM
Looks like you need an output from ModeSDeco. At the moment it is just going to a web page.

And Sergsero beat me to the answer.  ;D

Well at least it was the same as I was going to suggest.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 23, 2015, 11:57:40 AM
Hi IanH,

I'm sorry. Seeing your clarifying question, I knew immediately that you know the right answer :).
I'm always grateful to you!

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on July 23, 2015, 12:16:57 PM
sergsero

No problem - you are the expert. We try to help out if you are not around  ;)

Ian
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: G0HEU on July 23, 2015, 01:34:29 PM
thanks for the reply

for the moment I just want to test with the output going to the webpage to test, what would be the correct port ??

Paul
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on July 23, 2015, 02:09:42 PM
Hi Paul,

You can choose any port you like so long as it's not in use by something else, port 8080 is fine. You have --web 8080 so all you need to do  is type 127.0.0.1:8080 in your web browsers address bar and all being well the data will show, click on the the word 'map' at the top of the ModeSDeco2 (Edit: or ModeSMixer2) screen and you should see the plots.

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: fat-tony on July 23, 2015, 03:21:55 PM
G0HEU - just to clarify something for me. Are you trying to use modesmixer2 to merge several sources of ADSB data? modesdeco2 on its own will process the info from an RTL-type dongle and output it on a TCP port in various formats including SBS-3, AVR or Beast which can be used to feed a radar display program like Planeplotter or Basestation etc. Additionally it provides a web output which is very capable in its own right. All you need is to point a browser at it on whatever port you have set. You may not need to use modesmixer2 at all unless you are merging data sources.

I use modesmixer2 on its own to handle serial input from a Beast receiver. I don't use modesdeco2 usually unless I'm testing dongle reception.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on July 23, 2015, 04:40:20 PM
As fat-tony says, you don't need to both programs if your needs are simple.

There are couple of tutorials here that might help you to understand what each one does.
http://sonicgoose.com/category/tutorials/

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: G0HEU on July 23, 2015, 09:33:20 PM
Hi Fat tony

I am just having a play with the mixer see how it compares to the deco2, at the moment I only have the dongle plugged into the machine I am trying to test it on, the issue I had was the error message "no connection could be made because the target machine activity refused it"

I have the deco2 running very well on another machine

thanks

Paul
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: fat-tony on July 23, 2015, 11:05:50 PM
Hi Paul,

I'm not sure what you are comparing, though. The deco is used primarily to take the output from an RTL-dongle and present a variety of possible output formats on a TCP port which could be used on either the same or a remote PC.

modesmixer2 on its own can't accept input from an RTL-type dongle. It's more of a sophisticated router of TCP/UDP inputs (or true decoded data from a serial port like the Beast or the micro-ADSB stick) which can accept a variety of input formats and also output a variety of formats.

If you can't connect to the TCP output port of modesdeco, though, it would seem to me that you have a firewall blocking problem or a port number mismatch. The Windows firewall may be your issue, or if you have some other software firewall it may need to be configured to allow connections. You should be able  to connect to modesdeco TCP output (including its web server) from another machine on your own local network providing you have the IP address and port number specified correctly and firewall is not blocking. My Raspberry Pi runs modesmixer2 and uploads through my home network through the router to the Planeplotter server. Same instance of modesmixer2 also provides a web feed on port 8888 to my separate desktop machine and a raw feed on port 10001 to my Planeplotter display. modesdeco2 is capable of doing the same.

Joe
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on July 26, 2015, 09:11:13 PM
Is possible to use SBSplotter with ModesDeco2? I've tried using --sbs10001 30003, but doesn't work. Simple don't get any message from modesdeco2.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on July 26, 2015, 09:36:43 PM
I didn't try SBSPlotter but I did get ModeSDeco2 to show plots in BaseStation using ModeSMixer2 to transcode.

http://radarspotting.com/forum/index.php/topic,2978.msg24218.html#msg24218

That may enable you to use SBSPlotter. But do bear in mind that both ModeSDeco2 and ModeSMixer2 have inbuilt maps that display your reception range.

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on July 26, 2015, 09:51:53 PM
Quote from: Triple7 on July 26, 2015, 09:36:43 PM
I didn't try SBSPlotter but I did get ModeSDeco2 to show plots in BaseStation using ModeSMixer2 to transcode.

http://radarspotting.com/forum/index.php/topic,2978.msg24218.html#msg24218

That may enable you to use SBSPlotter. But do bear in mind that both ModeSDeco2 and ModeSMixer2 have inbuilt maps that display your reception range.

Tim

Tks!
But ModesDecos2 doesn't save data after restart and also doesn't show the longest aircraft, just range rings. that's why I'm looking to make SBSplotter to work.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on July 26, 2015, 11:22:38 PM
--sbs10001 30003 doesn't work since the parameter "--sbs10001" sends data in "10001" format to the port you specify, in this case 30003.

But it does NOT convert the data to "30003" format.

Hence SBSplotter does not understand - it is receiving "10001" data not "30003" data.

Hope that makes sense.


I don't have a PC set up with a dongle right now to test, but I think that you need to run ModeSDeco with the option "--sbs10001 10001"

But also run ModeSMixer with  the options "--inConnect 127.0.0.1:10001 --outServer msg:30003"

ModeSDeco is sending 10001 data to ModeSmixer which coverts it to 30003 data. SBSPlotter should pick this up.

I'm assuming for the above that you are running everything on the same PC.

Of it doesn't work. let us know  ;D
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 27, 2015, 06:56:04 AM
Hello jmaurin,

Modesdeco2 has built-in ability for output data to network (as listen TCP server) in the following formats:

--beast <arg> Enable Beast output listen port (default: off)
--avr <arg> Enable AVR output listen port (default: off)
--avrmlat <arg> Enable AVR MLAT output listen port (default: off)
--avrmlatas <arg> Enable AVR MLAT AirSpy output listen port (default: off)
--sbs10001 <arg> Enable SBS-3 output listen port (default: off)
--msg <arg> Enable MSG output listen port (default: off)


The format of options is a bit different from Modesmixer2, but I hope that it is also apparent of names.

For example, to enable data output in Kinetic MSG, just specify type msg and the port number.
That is --msg 30003 (together with other program options):

C:\modesdeco2.exe --gain 49.6 --freq-correction 62 --location 32.471:104.998 --web 8088 --db D:\temp\dbase\basestation.sqb --frdb D:\temp\dbase\flightroute.sqb --silhouettes D:\temp\images\silhouettes --pictures D:\temp\images\pictures --beast 10003 --msg 30003

The port number can be changed.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on July 27, 2015, 10:25:34 AM
Sergsero

That's useful to know. I had not realised what the "--msg" output was from ModeSDeco  :-[

So no need to involve ModeSMixer here ;)

Ian
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 27, 2015, 02:22:53 PM
Hi Ian,

Since the main function of ModeSDeco2 is SDR receiving, it's output is limited only via one type of TCP server. There is no need to specify it. In options only need to specify format and port.

In Kinetic format first field of each message always contains MSG. Hence the name "msg". :)

However, it should be noted that the format from Kinetic is obsolete and unable to transfer full range of modern data which we are now able to decode from a DF transponder messages.
I think for data transfer it is better to use any of the RAW formats (BEAST or AVR), if only not to work with legacy programs or if for the task just enough to use a limited set of data.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on July 29, 2015, 10:13:56 PM
Hi Sergey and all,
I tested your ModeSDeco2 software in these days: it work very well and I can say you did a very good job (the same as AcarsDeco2 and AisDeco).
To receive and display the air traffic I use usually ADSB# with Virtual Radar Server and I noted a greater signal s decoding with improved coverage on ModeSDeco2.

But I have some questions:
I use v.20150628 with this setting:
cmd /c \Radio\ModeSdeco2\modesdeco2.exe --gain 48.0 --freq-correction 61 --location 42.xx:11.xx --web 8088 --db C:\Radio\VirtualRadar\BaseStation\basestation.sqb --silhouettes C:\Radio\VirtualRadar\BaseStation\Silhouettes --pictures C:\Radio\VirtualRadar\BaseStation\Pictures --filter-nocountry --metric

Roby

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Pidea on July 29, 2015, 11:56:03 PM
Sergsero, I'm trying to get modesmixer2 to connect to an SBS-1 that connected to my laptop running Windows by USB so that I can access it without needing BaseStation to be running.

How can I achieve this ?  I've tried:

modesmixer2.exe --inSerial ttyUSB0:3000000 --outServer beast:31007

but I'm not specifying the USB port correctly as the error says that it cannot find the file specified.

What would the format be for Windows ?

Thanks in advance

Phil
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 30, 2015, 09:11:02 AM
Hi Roby,

1. The number of messages with coordinates depends on ratio of the observed aircraft with extended squitter (ADS-B) transponder and Mode S in coverage area of your radar. What ratio do you have in yours? It value can be compared to similar programs, for example, RTL1090 or ADSB#.
In my area (screenshot attached) the ratio of the three days of observations: total number messages - 19116328, 1090EX - 13672883, with (valid) coordinates - 6324088. Or there is ~72% and ~46%.
Radio-jamming and/or overload receiver chip by wrong gain setting can be the reason of low number of validity coordinates.


2. Company name, Aircraft type and other information about aircrafts are extracted by the program from the database file basestation.sqb. But this information for every specific aircraft should be exist there previously to be obtained from.


3. What ICAO code are you use?
Enter ICAO code to input field and METAR data (in string on Google map) will be automatically updated approximately every thirty minutes (via randomization interval).


4. It will be displayed at the top of the form. Information about the route of the flight program takes from the database file flightroute.sqb, which has the same format as in PlanePlotter.
To use it add the option: --frdb /path/to *sqb. In your case, for example, --frdb C:\Radio\VirtualRadar\BaseStation\flightroute.sqb

Regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on July 30, 2015, 10:53:55 AM
Hi Sergey,

1. My ratio after 1 day and 13 hours of observation are:
   - total messagges 926629
   - ADS-B total 181863 (20%)
   - ADS-B positions 75257 (41%)
The positions percentage is not bad, but the ADS-B messages are few in comparision of total.
I will test another gain value or auto and it could be that I will have fewer messages, but higher quality.
I remember that using ADSB# with ADSBScope the quality was about 70%.
Anyway, with ModeSDeco2 I had 225 Km. as max coverage, even if my antenna is 15 m. high from ground and I have not 360° open space.
I know that a better antenna would enhance the reception! :-[

2. A some time ago I downloaded a basestation.sqb file from http://pp-sqb.mantma.co.uk/ for Virtual Radar Server, but now the site is not longer available. May be the informations in that file are not complete.
I think is better to install PlanePlotter and to use the file inside.

3. I use LIQO ICAO code (Monte Argentario) and this morning I see that the METAR info are updated regularly.
Yesterday evening the info were updated about 0955UTC even if on the web I founded new METAR at 1655UTC.

4. For the flight route I think the only solution is to install PlanePlotter and extract the file.

I will post on my blog a tutorial for italian users about your good software.
Thanks again for your help.

Roby

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on July 30, 2015, 01:06:59 PM
Quote from: robybenjy on July 30, 2015, 10:53:55 AM
4. For the flight route I think the only solution is to install PlanePlotter and extract the file.

You don't actually need to install PlanePlotter, in fact doing so won't give you an up to date flightroute.sqb file. If you join this Yahoo list, you can download an updated file twice a week. Just rename it flightroute.sqb and save it to you hard drive in the location you have referenced in ModeSDeco2. So something like --frdb C:\Radio\VirtualRadar\BaseStation\flightroute.sqb as Sergsero suggests.

https://groups.yahoo.com/neo/groups/PP-logs-and-routes/info

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dfroula on July 30, 2015, 01:11:49 PM
Quote from: Pidea on July 29, 2015, 11:56:03 PM
Sergsero, I'm trying to get modesmixer2 to connect to an SBS-1 that connected to my laptop running Windows by USB so that I can access it without needing BaseStation to be running.

How can I achieve this ?  I've tried:

modesmixer2.exe --inSerial ttyUSB0:3000000 --outServer beast:31007

but I'm not specifying the USB port correctly as the error says that it cannot find the file specified.

What would the format be for Windows ?

Thanks in advance

Phil


If you were running on a Pi or Linux system,  for serial input, the entire path to the port must be specified. I would also specify the handshaking mechanism to avoid uncertain what type is being used. The Modes-S Beast requires hardware handshaking. Basestation may be different. Your string should look like:

modesmixer2.exe --inSerial /dev/ttyUSB0:3000000 --outServer beast:31007

Since you are running on Windows, "ttyUSB0" is incorrect. You should use the Windows designation for the USB serial port: COM1, COM2, etc.

modesmixer2.exe --inSerial COM25:3000000:hardware --outServer beast:31007

Look in the Device Manager under "Ports (COM & LPT)" to see what is available.

Best,

Don
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Pidea on July 30, 2015, 01:25:20 PM
Excellent Don, thanks I'll try that shortly.

Regards

Phil
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on July 30, 2015, 01:28:12 PM
Hi Sergsero, may I have some sugestions for ModesDeco?

1) Include an option/config to save data (statistics) before shutdown and reload these data after start. User could be select to see session data (since last program startup) or cumulative data.

2) An option to set max range line color (that one that's gray today)

3) Multi-lingual. Would be cool if modesdeco could load interface texts from external file. With this, users could translate web interface for any language.

4) An option to add html text to header/footer of web interface. We could include information about QTH, page counter, information of hardware, etc...

And the last one I think it's a little bug. Using android cell phone, when you bavigate to modesdeco2 page, I can see and select main menu to switch tabs. But after selecting MAP, I can't open main menu anymore to go to another tab. The menu it's on screen, but doesn't open.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on July 30, 2015, 02:10:27 PM
Quote from: Triple7 on July 30, 2015, 01:06:59 PM
Quote from: robybenjy on July 30, 2015, 10:53:55 AM
4. For the flight route I think the only solution is to install PlanePlotter and extract the file.

You don't actually need to install PlanePlotter, in fact doing so won't give you an up to date flightroute.sqb file. If you join this Yahoo list, you can download an updated file twice a week. Just rename it flightroute.sqb and save it to you hard drive in the location you have referenced in ModeSDeco2. So something like --frdb C:\Radio\VirtualRadar\BaseStation\flightroute.sqb as Sergsero suggests.

https://groups.yahoo.com/neo/groups/PP-logs-and-routes/info

Tim

Hi Tim,
thanks for suggestion.
In fact, I installed PP but there is not any basestation or flightroute files inside.

Roby
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on July 30, 2015, 04:58:14 PM
I tested my dongle in ModeSDeco2 with gain 42.1 and I noted that the ADS-B percentage is more or less the same, but the coverage is worse than the gain 48.0.
Now I'm testing with "Gain:Auto" and the "Agc:Off" and I noted the coverage increases.
For Sergsero: the "--gain" work on the RTL and the "--agc" work on the Tuner, is it right?
Tomorrow I'll test with "Agc:Auto" to compare.
The problem is the best Signal/Noise ratio to have more good messagges from long distance.

If other users of RTL-SDR showed their experience on how to set their dongle for a better result, I would be grateful to them.
Anyway, I think in my area there are more type S transponder than ADS-B, so the percentage is different.

I downloaded the flightroute.sqb from yahoo group and now I have the route on the info.

Roby

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 31, 2015, 08:12:59 AM
Hi Roby,

The settings are in reverse order.

The option --gain refers to receiver chip R820T. Its value can be explicitly specified by user in decibels. Supported fixed gain values (29): 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. Or you can to choose in settings <--auto>.

If all components of the setup (narrow-band antenna on highest elevation, no interference) are optimal I recommend setting a maximum gain of 49.6 "in hardware" and allow the program to determine this value based on monitoring the conditions of radio reception.
Or get it value experimentally according actual operating conditions.

"--agc" enable Automatic Gain Control (AGC) in RTL2832 chip (default: off).

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on July 31, 2015, 11:58:54 AM
Hi Sergey,

I thank you for the clarification.
I have not yet tested with "AGC Auto", but I will soon.

I tried instead to send data to ADSBScope to have a "easy to read" log of the aircrafts received and then I added the command --beast 31001.
Now the planes are also displayed on ADSBScope and I noticed a couple of things: the Data-Quality is always between 90 and 100% higher than with ADSB #, and some planes are displayed here before then in ModeSDeco2. In fact, in ModeSDeco2 coordinates do not appear in the "Flights" list if they are in Mode S and therefore the planes do not appear on the map, whereas they already appear on the map of ADSBScope. What is this due to?

In addition, I connected to ADSBScope "ADSB-Display", contained in Mike's Transport Displays software, so you have on the screen even the current traffic, in addition to the log of all received aircraft.

More I use your software and more I'm finding out that you did a good job!

Roby

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dfroula on July 31, 2015, 12:54:14 PM
Quote from: sergsero on July 31, 2015, 08:12:59 AM
Hi Roby,

The settings are in reverse order.

The option --gain refers to receiver chip R820T. Its value can be explicitly specified by user in decibels. Supported fixed gain values (29): 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. Or you can to choose in settings <--auto>.

If all components of the setup (narrow-band antenna on highest elevation, no interference) are optimal I recommend setting a maximum gain of 49.6 "in hardware" and allow the program to determine this value based on monitoring the conditions of radio reception.
Or get it value experimentally according actual operating conditions.

"--agc" enable Automatic Gain Control (AGC) in RTL2832 chip (default: off).

Regards,
sergsero

Just to clarify further, the R820T actually has three gain settings internally. When an R820T setting is set explicitly, the gain value is used as an index into a table of three gain values that set the three gain stages in the R820T. It is a known discrepancy that setting the R820T gain to "auto" will allow a slightly larger gain than setting the R820T gain to its maximum value manually.

The other RTL2832 gain switch, if switched on, doesn't really provide any true gain at all. It simply normalizes the decoded data to avoid clipping. It doesn't seem to provide any advantage, at least in my system when I was running a dongle receiver.

Best regards,

Don
WD9DMP
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on July 31, 2015, 07:05:44 PM
Another report: Windows 10 + Chrome (fresh install) = doesn't show map.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on August 01, 2015, 03:30:43 PM
QuoteIn fact, I installed PP but there is not any basestation or flightroute files inside.

Roby

Roby

If you want the latest basestation.sqb file, go to:

http://planebase.biz/bstnsqb

I heard that because this was now available, the other link don't bother with creating one any more.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on August 01, 2015, 05:51:58 PM
Hi Ianh,

thanks for the good suggestion: I replaced my basestation.sqb file with it and now I have the complete info about aircrafts type on ModeSDeco2.

For Sergsero,
today the software crashed with this error message: libusb_callback xfer status: 4
Is it a bug or my pc status?

Roby
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 02, 2015, 03:50:40 AM
Hi jmaurin,
Quote from: jmaurin on July 31, 2015, 07:05:44 PM
Another report: Windows 10 + Chrome (fresh install) = doesn't show map.

1. Visual C++ Redistributable Packages for Visual Studio 2013 - 32 bit https://www.microsoft.com/en-US/download/details.aspx?id=40784 (https://www.microsoft.com/en-US/download/details.aspx?id=40784)
2. Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) - 32 bit http://www.microsoft.com/en-us/download/details.aspx?id=8328 (http://www.microsoft.com/en-us/download/details.aspx?id=8328)
3. Zadig for Windows Vista or later http://zadig.akeo.ie/downloads/zadig_2.1.2.exe (http://zadig.akeo.ie/downloads/zadig_2.1.2.exe)
4. Google Chrome v.44.0.2403.125 m
5. The result is shown in the screenshot

Regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 02, 2015, 05:07:09 AM
Hi Roby,

Quote from: robybenjy on August 01, 2015, 05:51:58 PM
today the software crashed with this error message: libusb_callback xfer status: 4
Is it a bug or my pc status?

This is not a bug of the program. But well known manifestation of problems with USB or power supply. Your message was received from the libusb-1.0 library, which is evident by the name - libusb_callback xfer status.

Data from dongle are delivered through a kind of sandwich:
- first libusb, which you replaced the original library (in Windows using zadig, in Linux - blacklist to kernel and new install libusb-1.0-0) and which provides the required SDR access to the hardware,
- than librtlsdr to control the hardware of dongle, and the end of the chain
- modesdeco2, which processes data, outputs data and/or displays their.

When librtlsdr is experiencing problems with stream from dongle, it asks libusb library about status of USB connection.

[size=8pt]static void LIBUSB_CALL _libusb_callback(struct libusb_transfer *xfer)
{
rtlsdr_dev_t *dev = (rtlsdr_dev_t *)xfer->user_data;

if (LIBUSB_TRANSFER_COMPLETED == xfer->status) {
if (dev->cb)
dev->cb(xfer->buffer, xfer->actual_length, dev->cb_ctx);

libusb_submit_transfer(xfer); /* resubmit transfer */
dev->xfer_errors = 0;
} else if (LIBUSB_TRANSFER_CANCELLED != xfer->status) {
#ifndef _WIN32
if (LIBUSB_TRANSFER_ERROR == xfer->status)
dev->xfer_errors++;

if (dev->xfer_errors >= dev->xfer_buf_num ||
    LIBUSB_TRANSFER_NO_DEVICE == xfer->status) {
#endif
dev->dev_lost = 1;
rtlsdr_cancel_async(dev);
fprintf(stderr, "cb transfer status: %d, "
"canceling...\n", xfer->status);
#ifndef _WIN32
}
#endif
}
}[/size]


In libusb-1.0-0 enum of libusb_transfer_status the transfer status codes "4" is "LIBUSB_TRANSFER_STALL - interrupt endpoints: halt condition detected (endpoint stalled)". http://libusb.org/static/api-1.0/group__asyncio.html#ga9fcb2aa23d342060ebda1d0cf7478856 (http://libusb.org/static/api-1.0/group__asyncio.html#ga9fcb2aa23d342060ebda1d0cf7478856)

In some programs, this problem is ignored until it is possible. However, in modesdeco2 I think that issues with connection dongle (or power quality) should be resolved, not silenced.

Check reliability of the USB connection cable to connectors, its quality.
Often USB cables are 28/28 AWG, meaning that their power wires are significantly smaller than the standard 28/24 AWG cable. (Unintuitively, "28" is a smaller size than "24.")

Another reason of the issues may be inability of the PSU to provide current to 2A, not less.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 02, 2015, 06:19:52 AM
Quotesome planes are displayed here before then in ModeSDeco2. In fact, in ModeSDeco2 coordinates do not appear in the "Flights" list if they are in Mode S and therefore the planes do not appear on the map, whereas they already appear on the map of ADSBScope. What is this due to?

This is because in modesdeco2 the stages of data processing for their output to network and to displaying them on own Google map are different.

For displaying we need not only decoding the positions of the aircraft, but make validation for unambiguous coordinates, that is a bit more complicated. Naturally, we would assume to read latitude and longitude directly from the data frame. Unfortunately its not that simple...

In fact, two different types of the position messages (odd and even frames) are needed to find out the LAT and LON of the aircraft. The position is described in so called Compact Position Reporting (CPR) format.

Before output the label from the aircraft on map, the program is analyzes the several CPR messages for: the stationary of increments, the admissibility condition and determine to the area.
All of this takes time. Until then, the aircraft will be displayed only in table, as without coordinates.

Opposite, output the CPR data (odd and even frames) to network from this new aircraft begins at once. The task of validating the position data, in this case, will be delegated to the receiving side (ADSBScope).

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on August 02, 2015, 08:21:01 AM
Hi Sergsero

You are very thorough in your replies, and doing a very good job in those apps here. Thanks for your effort! :-)

Win10: Works also great here.

Additions to an old issue. Dual display of aircrafts in the Flights list.
Some (strange) observations:
ICAO is different
Callsign is the same
Reg is different
Squawk is the same
Altitude is  (nearly) the same (i guess this is just due to update rate differences seen when planes are climb/decend).

I'm a bit confused now why some of the fields are different above?

Keep up the good work! :-)



[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 02, 2015, 08:37:11 AM
Hi larsras,

Yes, I remember about your issue. Unfortunately, I can't get this situation on a real aircraft signal in my area. But I'll look for a solution.

Maybe if you can record the output stream in text AVR format in that moment (1-2 minutes), when you see these paired rows for the same aircraft, it will help me.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on August 02, 2015, 08:49:24 AM
Hi Sergey,

thanks for your answers always very thorough and clear, although I am not a programmer.

My dongle is connected to the PC with a USB cable of about 50 cm. and when the problem was there the room temperature was quite high (hot summer here on the coast of Tuscany!) then it may be that there was a problem of supply current to the dongle.

For different view on ADSBScope, I had already thought it was related to the different functioning of software in data management.

Have a good Sunday!

Roby
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on August 02, 2015, 10:19:00 AM
Hi Sergsero

Dual flights displayed. Is this usable?

br Lars

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on August 02, 2015, 12:02:27 PM
Quote from: larsras on August 02, 2015, 08:21:01 AM
Additions to an old issue. Dual display of aircrafts in the Flights list.
Some (strange) observations:
ICAO is different
Callsign is the same
Reg is different
Squawk is the same
Altitude is  (nearly) the same (i guess this is just due to update rate differences seen when planes are climb/decend).

I'm a bit confused now why some of the fields are different above?

Keep up the good work! :-)

I have the same issue.

Roby
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 02, 2015, 12:11:54 PM
Hi,

Thanks for the detected problem and the log. It is obvious that the closest ICAO24 clones are formed from DF20/21 messages (and that are not used in my region). So the log is the only way to find the cause.
I'll look for a solution.

Sergey
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 02, 2015, 12:52:09 PM
Hi all,

Raspberry Pi 2 test version of ModeSMixer2 for direct connection to SBS-1/3 receivers via USB port: modesmixer2_rpi2_sbs_20150715.tgz https://drive.google.com/open?id=0B7NYXizl0U6iNk5xSS03U1c4QmM (https://drive.google.com/open?id=0B7NYXizl0U6iNk5xSS03U1c4QmM)


+ added direct connection to SBS-1/3 receivers via USB (serial) port.

When connecting the receiver to Linux, in the system creates two devices:

$ ls -l /dev/ttyUSB*
crw-rw---T 1 root dialout 188, 0 aug  2 17:15 /dev/ttyUSB0
crw-rw---T 1 root dialout 188, 1 aug  2 17:15 /dev/ttyUSB1

To output data used the second device in the pair.

Use the option --inSerial /dev/ttyUSB1:921600:none - for SBS-1 or --inSerial /dev/ttyUSB1:3000000:none - for SBS-3.

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150802/modesmixer2_rpi2_sbs-1_serial.jpg)


Regards,
sergsero


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on August 02, 2015, 03:56:48 PM
Quote from: sergsero on August 02, 2015, 03:50:40 AM
Hi jmaurin,
Quote from: jmaurin on July 31, 2015, 07:05:44 PM
Another report: Windows 10 + Chrome (fresh install) = doesn't show map.

1. Visual C++ Redistributable Packages for Visual Studio 2013 - 32 bit https://www.microsoft.com/en-US/download/details.aspx?id=40784 (https://www.microsoft.com/en-US/download/details.aspx?id=40784)
2. Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) - 32 bit http://www.microsoft.com/en-us/download/details.aspx?id=8328 (http://www.microsoft.com/en-us/download/details.aspx?id=8328)
3. Zadig for Windows Vista or later http://zadig.akeo.ie/downloads/zadig_2.1.2.exe (http://zadig.akeo.ie/downloads/zadig_2.1.2.exe)
4. Google Chrome v.44.0.2403.125 m
5. The result is shown in the screenshot

Regards,
sergsero

Actually, I managed to get this working. I've tested in 3 fresh-install of windows 10 and none of then showd the map (running modesdeco on linux machine, just acessing). BUT, after 2 or 3 refresh, everything started to work again. I don't know why
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: menglish on August 03, 2015, 03:33:58 AM
Let me add to the mystery.  I have not yet upgraded to Win10 (have not had the time this weekend), but I too have lost my map on all browsers.  I am running Win7 Home Premium 64 and have never had issues with the map before. All the aircraft appear in a stack in the upper left corner of the page on Chrome 44, Firefox 39, and IE 11.  I am am running modesdeco2 v20150628 with a single RTL820T and a homebrew 8-legged spider (only 7 really since one got knocked off in a storm) antenna on the roof.  VRS is showing the map correctly.
-Matt 
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on August 03, 2015, 12:40:19 PM
Quote from: menglish on August 03, 2015, 03:33:58 AM
Let me add to the mystery.  I have not yet upgraded to Win10 (have not had the time this weekend), but I too have lost my map on all browsers.  I am running Win7 Home Premium 64 and have never had issues with the map before. All the aircraft appear in a stack in the upper left corner of the page on Chrome 44, Firefox 39, and IE 11.  I am am running modesdeco2 v20150628 with a single RTL820T and a homebrew 8-legged spider (only 7 really since one got knocked off in a storm) antenna on the roof.  VRS is showing the map correctly.
-Matt 

Exactly what happens here!
After some refresh, was working again.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on August 04, 2015, 10:07:48 PM
Sergey.

How long it takes to ModeSDeco2 commit changes to BaseStation.sqb? I'm buildind and LOG Webpage that shows Flights history reading direct from BaseStation (the same used by ModeSDeco2), but I can't see changed/updated in Flights table unless I shutdown modesdeco. I got no errors or locks, just not updated data (since last ModeSDeco2 start).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 05, 2015, 02:10:27 AM
jmaurin,

Some questions on this topic recently discussed in the message #426 of 18 July.
Briefly, the time interval is set by the option "flight-expire-time", by default, it is 3600 seconds, after receiving last message from this aircraft.

The program version not lower than v.20150628.

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on August 05, 2015, 12:14:29 PM
Quote from: sergsero on August 05, 2015, 02:10:27 AM
jmaurin,

Some questions on this topic recently discussed in the message #426 of 18 July.
Briefly, the time interval is set by the option "flight-expire-time", by default, it is 3600 seconds, after receiving last message from this aircraft.

The program version not lower than v.20150628.

/sergsero
Tks!
I didn't know this options also aftes database writtes....I thought it was just an internal control to expire or not flights (for example, when you don't use DB). But it make sense.

Tks anyway.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on August 09, 2015, 11:11:44 PM
Hi Sergsero.

I have just found out that timestamp in AVRMLAT output format is dependent on a system time. I have Radarcape receiver so i already have AVRMLAT output, but i would like modeSmixer2 to rebroadcast exactly the same messages as it receives. Is it possible somehow with your program? I know how to use windows port forward but I dont want to use it.

Thanks
Martin
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 10, 2015, 09:22:12 AM
Hi Martin,

In general case this dependence is actually not supposed to exist,  if the receiver has a classic scheme - not SDR.

The MLAT time stamp for each subsequent message is generated (as a derivative) with a frequency of his own clock oscillator.

Of course the value of time stamp is preserved in all formats transformation of the message.

You can easily check this, for example, to send through modesmixer2 the message and then comparing the copy with the original.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on August 14, 2015, 11:41:17 AM
Here's an example again (I get it often) of a double decoding with the same Callsing and Squawk, but ICAO and Reg different one unit more.
Even a Balloon with a transponder !?  :o

Roby

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on August 14, 2015, 11:50:11 AM
Possibly a faulty transponder sending out wrong hex code on some messages?

Hex code is just one character difference.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 14, 2015, 03:09:34 PM
Hi robybenjy,

Yes, I know about this issue from the messages that have been here before. In modesdeco2's Flights table aircraft sometimes have the pair of the true target and his ghost in areas with Mode S interrogator. The reason for this is clear.
In future versions I'll try to fix it.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on August 14, 2015, 05:04:12 PM
Hi Sergey,

my post was only to highlight that the Type decoded was also different, then an obvious error in the decoding of some signals received.
I am convinced that soon you'll be able to solve this problem.

Roby
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: gadget006 on August 17, 2015, 08:13:20 PM
Hello Sergsero !

great job !!

are you planning a version for banana Pi ?

Best regard
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: masa5582 on August 19, 2015, 12:10:35 PM
Hello, Sergsero.

modeSdeco2 Thank you.

The other day, I received the aircraft of the United States Air Force. Mode S: B648D9
However, it could not be decoded by modeSdeco2.
There is a display of RAW data from the Beast.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on August 20, 2015, 04:40:43 AM
would someone do me a HUGE favor and explain the differences between output types?
which are better/farser/contain mode data
what are the benefits and losses etc?

it would be much appreciative

thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 23, 2015, 03:05:06 AM
Hello masa5582,

If you try to determine which country belongs to a given address, that you will see that ICAO24-address B648D9 was not allocated for any country.
Modesdeco2 and Modesmixer2 have a built-in filter, that by default blocks messages from such unallocated addresses, because more often they are formed under influence of interference.

If you nonetheless wish to receive these messages, add the option --filter-nocountry.

However, search ICAO24-address B648D9 gives the result. Boeing reg. 09-0540 C-40C (737-7DM) US Air Force (USAF) mistakenly uses it, but should be used address AE48D9 (allocated for USA).
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150823/09-0540.png)

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 23, 2015, 04:15:00 AM
Hello GregoryGHarding,

If you asking about the types of data output, that briefly answer is: use everywhere, when there is a choice, data in a RAW format.

As I think, today universal RAW is BEAST or AVR. (Or subtype AVRMLAT = AVR + time stamp for MLAT, if you necessary MLAT function.) The BEAST format contains the MLAT time stamp always.
They are identical in their ability to transfer all current data.

The difference between them is only that the BEAST is a binary format and its messages cannot be readable in text console. BEAST is most compact in size for network transmission.
Whereas AVR is ASCII format and each message can be viewed as separate human-readable string of text. Additionally BEAST has capability of transferring received signal level.

All other formats, in my opinion, or have become obsolete, as 'MSG', and are suitable (and exist) for old programs. It generates a lot of traffic in transit. Or when it is enough to transmit only a part of basic data. About existence of modern data they simple are not know.

Or they are proprietary to particular software, as sbs10001, piaware, globes, etc.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 23, 2015, 02:34:48 PM
Hello,

In version 20150825 you can use modesmixer2 for obtain data from SBS-3 receiver when it is plugged directly into a USB port. The new version of modesmixer2 20150528 in message #2 of this topic.

When you connected SBS-receiver directly to Linux via USB port, in the system will be created two serial devices.

To determine your devices run the command:

$ ls -l /dev/ttyUSB*
crw-rw---T 1 root dialout 188, 0 aug  2 17:15 /dev/ttyUSB0
crw-rw---T 1 root dialout 188, 1 aug  2 17:15 /dev/ttyUSB1


In your case numbers in devices may be differ, but always paired.

To output data use always SECOND device in this pair. Value 'none' for flow control and appropriate baud rate: 3000000 for SBS-3 and 921600 for SBS-1.

For example, use one of the option:
--inSerial /dev/ttyUSB1:921600:none - for SBS-1 or
--inSerial /dev/ttyUSB1:3000000:none - for SBS-3.



If user on Raspberry (usually by default it is 'pi') is not included in the group 'dialout', execute the following command to include it in there:
sudo usermod -a -G dialout pi

Note! In case of SBS-1 to initialize the port you may need to disconnect and reconnect the receiver or use the switch power supplies on the rear side of device.
In tests SBS-1 used receiver SBS-1eR.

Regards,
sergsero




[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: masa5582 on August 24, 2015, 02:13:08 PM
Hallo! sergsero

Thanks!
I will use the --filter-nocountry.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: gadget006 on August 24, 2015, 09:17:18 PM
Hello sergsero

i try the version V20150608 for bananapi and there is 2 problems :

many flights are displayed in double and the signal is always 255 for all flights

best regard , irving

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on August 25, 2015, 11:12:22 PM
Hello sergsero

Modesdeco has been working wonderfully well for me. However i'm coming up against a problem installing on Windows 8.1. I have attached an image of the issue that I am getting. Are you able to assist with what the problem could be please?

Many Thanks

Carl

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 26, 2015, 04:00:55 AM
Hello Carl,

The log shows that modesdeco2 is trying to establish a connection to dongle, which has the device number 0. But this device 0 is already occupied or used by other program.

Or how many dongles do you have connected? To see the current situation, please run the program with the only option --device-list.
Change number to 1, for example, if this device is free.

Regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 26, 2015, 09:34:46 AM
v.20150815 ModeSDeco2 with AirSpy SDR receiver on OS X 10.10:

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150826/modesdeco2-airspy.jpg)


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on August 26, 2015, 01:25:13 PM
Hi Sergsero.

I see you have just added distance graph and coverage pattern - thanks for that. I would like to ask you if its work in progress or if it should work because i have updated to v.20150825 but my distance graph and coverage pattern arent working.
picture: http://prntscr.com/892oj7
Command i use:
cmd /c  modesmixer2.exe --log-level %log_lvl% --metric --disable-web-log --location 14.4656:50.0468 --inConnect x.x.x.x:y --web %web_port% --silhouettes C:\SBS-resources\Files\SilhouettesLogos --db C:\SBS-resources\Files\Registration\BaseStation.sqb --log-file %log_path%\%log_filename%
%xxxx% are variables in BATCH
Thanks for answer.
Martin
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 26, 2015, 01:35:47 PM
Hi Martin,

Try resetting the cache in your browser by pressing F5 or ctrl+F5 while on this page.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on August 26, 2015, 01:42:37 PM
Quote from: sergsero on August 26, 2015, 01:35:47 PM
Try resetting the cache in your browser by pressing F5 or ctrl+F5 while on this page.

Hi.

Thanks for fast answer. I have reloaded the page several times with F5 and ctrl+F5. The picture was from firefox.
I have tried Chrome with same result - i have cleaned history and cache. Nothing helped.
Its not showing the data on multiple PCs (tested with 2PCs+iPad).

Martin
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 28, 2015, 02:41:32 AM
Hello,

This test only version of ModeSDeco2 has the additional option --disable-correction  that disables correction of damage signals. It is possible that this will be enough to solve the issue of 'ADS-B/Mode S twins':

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20150828/duble_cut_11.jpg)

modesdeco2_bpi_20150815_test_only.tgz https://dl.dropboxusercontent.com/u/79709204/MD2/20150828/modesdeco2_bpi_20150815_test_only.tgz (https://dl.dropboxusercontent.com/u/79709204/MD2/20150828/modesdeco2_bpi_20150815_test_only.tgz)
modesdeco2_windows_20150815_test_only.zip https://dl.dropboxusercontent.com/u/79709204/MD2/20150828/modesdeco2_windows_20150815_test_only.zip (https://dl.dropboxusercontent.com/u/79709204/MD2/20150828/modesdeco2_windows_20150815_test_only.zip)

Unfortunately, in my area it doesn't occur due to absent of ground-based interrogation stations. And there is no possibility to check it out.

If the above process doesn't work, I have other ways.
Please, test it.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on August 28, 2015, 10:27:52 AM
i havent the time to read all does anythink chance on ModeSDeco2 ?

thats my stats:
DF Messages Description
0 237199429 Short Air to Air ACAS
4 151800835 Surveillance (roll call) Altitude
5 111652424 Surveillance (rool call) Ident
11 379592809 All-Call Reply
16 18071071 Long Air to Air ACAS
17 252715098 Extended Squitter (ADS-B)
18 3004086 Extended Squitter / Supplementary (ADS-B)
19 16 Extended Squitter Military Application (ADS-B)
20 253865000 Comm-B Altitude
21 142044940 Comm-B Ident
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: vasekm on August 28, 2015, 10:33:23 AM
Hello,

I just tested version with --disable-correction and twins are still present.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 28, 2015, 12:03:10 PM
Hello vasekm,
   
Thanks for your testing. I think that issue needs the special 'twins' filter and its would have to be built into program.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on August 28, 2015, 02:39:32 PM
Hi

Also tried the test version now, and i also have the double aircrafts with the added command line parameter.

br Lars
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on August 31, 2015, 12:47:24 AM
Is here anyone who made Coverage pattern work? Do I have a mistake somewhere or is it global bug?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on August 31, 2015, 09:02:24 AM
Coverage pattern working fine here on both ModeSMixer2 and ModeSDeco2.

Tim

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on August 31, 2015, 10:40:34 AM
Well... thats not cool... for me :D can you send me your execution command (without any IPs ofcause) please?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on August 31, 2015, 01:13:56 PM
No issues with IP's for me, it's only a LAN one anyway. This is the contents of my modesmixer.bat file. I have the ModeSDeco2 one on my laptop, if you need that, please let me know.


@echo off
E:\ModeSMixer\modesmixer2.exe --inConnect 192.168.1.170:10001 --outServer sbs10001:10001 --outServer sbs30006:30006 --filter-nocountry --web 8080 --db E:\BaseStation\basestation.sqb --silhouettes E:\BaseStation\OperatorFlags --frdb "E:\PlanePlotter\log files\flightroute.sqb" --location XXX:YYY
PAUSE
exit


Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on August 31, 2015, 03:22:07 PM
thanks for command. Sadly it did not help. I have tried everything and coverage pattern still doesnt work... I dont know why...
http://prntscr.com/8azlc0
no coverage on map or in charts...
Any ideas?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on August 31, 2015, 05:13:17 PM
You are missing a lot of graphic information from the Charts page!

See attached to see what I have.



[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on August 31, 2015, 05:14:54 PM
Did you enter your location in the format --location 50.11:14.27?

Not sure if it makes a difference, but worth a try if you haven't.

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on August 31, 2015, 05:24:09 PM
QuoteYou are missing a lot of graphic information from the Charts page!
my look exact the same.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on August 31, 2015, 05:46:06 PM
Nice idea Tim.

Just looked at earlier post from zachmart where he gives the command line:

--location 14.4656:50.0468

Given his position in Europe, those should be reversed!

--location 50.0468:14.4656   That would be NE of Prague.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on August 31, 2015, 08:37:37 PM
Yes IanH, Thanks... ;) That helped.
Now it works just fine. Thanks guys for help.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on August 31, 2015, 11:19:37 PM
You helped us by providing the command line you were using  ;D

Tim's suggestion that location might be the problem and there was the answer.

Glad everything is now ok.

Ian
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tebrown on September 02, 2015, 04:00:19 PM
sergsero,

Would it be possible to add a feature to differentiate the source of the feed? Since FlightAware added MLAT support to piAware, it would be nice to have a quick and easy way to see which flights are locally sourced versus sourced some other way.  The FlightAware fork of dump1090 color codes the planes, which is nice.  There might be another way to do this, but it is not obvious to me. 

Great software! Thanks for making it!

Travis
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on September 02, 2015, 04:15:23 PM
Quote from: tebrown on September 02, 2015, 04:00:19 PM
sergsero,

Would it be possible to add a feature to differentiate the source of the feed? Since FlightAware added MLAT support to piAware, it would be nice to have a quick and easy way to see which flights are locally sourced versus sourced some other way.  The FlightAware fork of dump1090 color codes the planes, which is nice.  There might be another way to do this, but it is not obvious to me. 

Great software! Thanks for making it!

Travis

Travis, Modesdeco2 doesn't receive MLAT dat from piaware. I asked exactly this for sergsero, this is the reply:
Quote
Hi jmaurin!

Quote from: jmaurin on August 06, 2015, 07:45:02 pm
In ModeSDeco2, the option '--avrmlat' allows ModeSDeco2 to receive or send MLAT data?

Modesdeco2 was written in spring of 2013. And it initially has the option --avrmlat, which provides TCP server for output data to the network (as listener process) with the addition of time stamp for Planeplotter.
So, neither one thing nor the other - only output when client asks data.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tebrown on September 02, 2015, 04:20:01 PM
Hi jmaurin,

Thanks! I thought I looked through all the posts for this, but missed it. Thanks for following up.

Cheers,
Travis
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tebrown on September 02, 2015, 07:00:22 PM
I did some experimenting, and ran a copy of modesmixer with this option: --inServer 30004.  The logs from piaware.out indicated it was sending data to modesmixer, and sure enough, when I looked at the web interface, it had about 8 aircraft visible. There was no signal level, which makes sense.  So, I started running modesmixer and modesdeco with web interfaces.  Most of the Mode-S only transmissions turned into ADS-B data. The new ADS-B tracks are the from the MLAT feed, and the signal level is from the modesmixer/RTL-SDR.  That's really slick.  The only problem is I can't easily identify which planes are which.  So, jmaurin, I think if you gave modesmixer a whirl, it would do what you wanted.

Cheers,
Travis
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on September 02, 2015, 07:26:04 PM
Quote from: tebrown on September 02, 2015, 07:00:22 PM
I did some experimenting, and ran a copy of modesmixer with this option: --inServer 30004.  The logs from piaware.out indicated it was sending data to modesmixer, and sure enough, when I looked at the web interface, it had about 8 aircraft visible. There was no signal level, which makes sense.  So, I started running modesmixer and modesdeco with web interfaces.  Most of the Mode-S only transmissions turned into ADS-B data. The new ADS-B tracks are the from the MLAT feed, and the signal level is from the modesmixer/RTL-SDR.  That's really slick.  The only problem is I can't easily identify which planes are which.  So, jmaurin, I think if you gave modesmixer a whirl, it would do what you wanted.

Cheers,
Travis

hummm.....+- !

Since i'm not familiar with PiAware code, I'm not sure if they can make difference between two data. That's what I tought: use modemixer ro receive data from PiAware (MLAT) and ModeSDeco2 (SDR-RTL), then send both to PiAware......but since ModeMixer doesn't make any difference between MLAT and data from RTL, ModMixer will send both data do piaware......so MLAT data will be duplicated.....right? I'm note sure if piaware can make differene between these planes....
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tebrown on September 02, 2015, 07:38:08 PM
Quote from: jmaurin on September 02, 2015, 07:26:04 PM

hummm.....+- !

Since i'm not familiar with PiAware code, I'm not sure if they can make difference between two data. That's what I tought: use modemixer ro receive data from PiAware (MLAT) and ModeSDeco2 (SDR-RTL), then send both to PiAware......but since ModeMixer doesn't make any difference between MLAT and data from RTL, ModMixer will send both data do piaware......so MLAT data will be duplicated.....right? I'm note sure if piaware can make differene between these planes....

Yes, I believe you are correct.  I will run some experiments to see if I can confirm this or not. This is why it would be nice if modesmixer could optionally not forward data from a specific port.  I am not sure what dump1090 does, but it's also worth a look.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on September 03, 2015, 06:56:16 AM
what is the function of the -location option in mixer2? is it only for web interface or is it passed for mlat/etc?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tebrown on September 03, 2015, 02:30:19 PM
Quote from: jmaurin on September 02, 2015, 07:26:04 PM
hummm.....+- !

Since i'm not familiar with PiAware code, I'm not sure if they can make difference between two data. That's what I tought: use modemixer ro receive data from PiAware (MLAT) and ModeSDeco2 (SDR-RTL), then send both to PiAware......but since ModeMixer doesn't make any difference between MLAT and data from RTL, ModMixer will send both data do piaware......so MLAT data will be duplicated.....right? I'm note sure if piaware can make differene between these planes....

So I was thinking about this last night (instead of sleeping), and I think my setup will actually work as intended.  Here is a very rough network diagram of how everything is connected:


-----------       -------------            --------------     --------------
| RTL-SDR |  ---> | MODESDECO |----------->| MODESMIXER |---->| WEB CLIENT |
-----------       -------------   BEAST    --------------     --------------
                   |    |        (30005)         ^
             BEAST |    | BEAST                  |
           (30005) |    | (30005)                | BEAST
                   V    V                        | (30004)
       -------------   ------------------        |
       |  piaware  |   | fa-mlat-client |--------'
       -------------   ------------------

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 04, 2015, 07:14:25 AM
Modesmixer2/Modesdeco2 has a built-in algorithm for the approximate determination of the location of the receiver. Its accuracy is enough for decoding unpaired CPR messages.

However, for aircraft on ground and accurately measure distance to the target, you should use the option --location <lat:lon>. For example, --location 35.55:-82.89.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: SpikeBox on September 04, 2015, 07:48:29 PM
Hi sergsero

How do I connect 2 RTL Dongles whit the ModeSDeco2 ?

I get this error when i try

2015-09-04 19:46:50.499  INFO     ModeSDeco2 v.20150815
2015-09-04 19:46:50.621  INFO     Device: 1 mnf: Realtek prod: RTL2838UHIDIR seial: 00000002 usb_claim_interface error -12
2015-09-04 19:46:50.649  ERROR   Can't open device: sdr_open(): Bad file descrptor

The other RTL2838UHIDIR has serial  00000001


Cheers

Peter
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 04, 2015, 08:21:21 PM
Hi Peter,

Each instance of a program that only works with a single SDR device.

Option '--device-serial' or '--device-index' uses to assign the specific dongle for the program instance. There is  difference between first - it selects dongle via his serial number (constant attribute) but second is number of device (variable attribute) in the operating system.

Run program with the one option '--device-list' and determine serial numbers of your dongles.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on September 04, 2015, 08:56:50 PM
Hi sergsero,

could you please keep the download link of the modesmixer2 for raspberry pi (outdated) at the start page?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 05, 2015, 11:33:38 AM
Hi spotter.ssol,

What version are you interested for?

Here is the outdated, which is different from the last:
modesmixer2_rpi_20150323.tgz https://drive.google.com/open?id=0B7NYXizl0U6iZmplTWRlYmE3a28 (https://drive.google.com/open?id=0B7NYXizl0U6iZmplTWRlYmE3a28)

Previous or intermediate versions have bugs or changes, which were fixed later.

Regards,
sergsero


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on September 06, 2015, 04:19:24 AM
Hi sergsero,

I'm sorry, my english is not that good and I didn't make myself clear enought. I understand that you ceased development of raspberry pi's version of modesdeco2. I'm asking if you could keep a download link for the last version you developed for raspberry pi.
And thanks for this wonderful piece of software!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sonicgoose on September 08, 2015, 03:28:04 PM
sergsero,

Received a message from the PlanePlotter people over the weekend that my timestamps were all out of whack. My setup had modesdeco2 feeding avrmlat to modesmixer2 feeding beast to planeplotter.  When i take modesmixer2 out of the mix, and feed modesdeco2 beast directly to planeplotter, the timestamp issue goes away.

Both modesdeco2 and modesmixer2 are running on the same PC, which has NTP installed and running and up-to-date. Planeplotter is running on a separate machine but also has NTP installed and running and up-to-date.

Do I need to specify the --localtime argument to have modesmixer2 handle timestamps properly?

Rob
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tebrown on September 08, 2015, 03:31:34 PM
Quote from: sonicgoose on September 08, 2015, 03:28:04 PM
sergsero,

Received a message from the PlanePlotter people over the weekend that my timestamps were all out of whack. My setup had modesdeco2 feeding avrmlat to modesmixer2 feeding beast to planeplotter.  When i take modesmixer2 out of the mix, and feed modesdeco2 beast directly to planeplotter, the timestamp issue goes away.

Both modesdeco2 and modesmixer2 are running on the same PC, which has NTP installed and running and up-to-date. Planeplotter is running on a separate machine but also has NTP installed and running and up-to-date.

Do I need to specify the --localtime argument to have modesmixer2 handle timestamps properly?

I had a similar issue with modesdeco this weekend. It works great on the raspberry pi that is set to UTC, but I get all sorts of weird timestamp problems when I am running it on my x86 Linux box.  I didn't think of the localtime option, but I will give it a try and report back.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on September 08, 2015, 05:26:12 PM
can you share a link yo your updated client for AIS and ACARS please
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 08, 2015, 06:26:53 PM
Hello Rob,

Although timestamp keeps the same value when converting formats, I recommend use BEAST everywhere, If are possible to choose from several.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 08, 2015, 06:31:26 PM
Hello GregoryGHarding,

Now I'm on vacation (in Siberian taiga) only with a smartphone - sorry only links on Russian forum:

acarsdeco2 http://forum.adsbradar.ru/f24/acarsdeco2-multikanalnyi-windows-linux-rtlsdr-priem-1625/#post22146 (http://forum.adsbradar.ru/f24/acarsdeco2-multikanalnyi-windows-linux-rtlsdr-priem-1625/#post22146)
aisdeco2 http://forum.adsbradar.ru/f39/konsolnaya-programma-aisdeco-dlya-sdr-priema-ais-signalov-1686/#post24267 (http://forum.adsbradar.ru/f39/konsolnaya-programma-aisdeco-dlya-sdr-priema-ais-signalov-1686/#post24267)

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: SpikeBox on September 09, 2015, 05:30:56 PM
Hi Sergsero

Is there a way to get the console to show when it receives something?

I use multiple dongles and it's a bit hard to see which one of the dongles that do not receive

Best Reg
Peter
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: zachmart on September 09, 2015, 07:22:54 PM
Quote from: SpikeBox on September 09, 2015, 05:30:56 PM
Hi Sergsero

Is there a way to get the console to show when it receives something?

I use multiple dongles and it's a bit hard to see which one of the dongles that do not receive

Best Reg
Peter
U can use --log-level 5 option (debug) to show everything in console but i am not sure if you will see the source of message..
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: JackR on September 11, 2015, 03:36:15 AM
Sergsero:

A suggestion -  Flight Levels (FL) begin at 18,000 feet above MSL.  So in the air traffic control system a clearance would be given as " Aeroflot 220 climb and maintain FL250".  The thousands are omitted and understood.  However below 18,000 feet MSL the clearance would be given as  " Aeroflot 220 climb and maintain 16,000".

So - If you ever update the program for a "real" reason in the future ---  In the modesdeco2 "Map" display could you change the "Flight List" altitude column to show FL for greater than or equal to 18000 and just numbers without the FL for less than 18000 MSL. 
Basically the same way you do it in the Map "Flights" tab.   

Think your program is great. Hope you are enjoying your vacation.

Jack
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 11, 2015, 03:42:43 AM
Hello,

To test the aircraft-twins filter I need help. Could you save data to a file in AVR format, when there are observed aircraft-twins: a double decoding with the same Callsing and Squawk, but ICAO and Reg different one unit more.
And put this file somewhere for download.

Recording time 1-2 minutes, if only among other really was able to record 1-2 pairs of twins.

For this use modesdeco2 with the option '--avr <Port>'  and write to the file received from this port AVR data stream.

In Linux this can be done by running the command in other console (or from other computer on the network): nc 127.0.0.1 Port > any_file_name.txt (or nc IP Port > any_file_name.txt).

Will be formed file any_file_name.txt with text content like:
*8D7807D658BF01628ADEE4DC75C8;
*5D4CAB18125255;
*8D4245FB99158D1A0004223413B5;
*8D4240DB9945111C607C110B3A40;
*8D4245FBE990A531E1380049C4D5;
...

In windows you can use putty.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 11, 2015, 05:19:44 AM
Hello Jack,

I'll think what can be done to set the switching level.

Really in the US and Canada, the transition altitude is fixed at 18000 feet. In Europe and much of the rest of the world, the transition altitude varies from airport to airport and is published on the airport documentation, approach plates, AIP etc.

In Russia, for example, this level is usually 5,000 feet and may depend on the current pressure.

Plus it has additional differences - during the flight at the transition height or below (from take-off till reaching the transition height and from the transition level till landing) the aircraft position in the vertical plane shall be assigned by the controller and reported by the pilots in height values in metres based upon the QFE (height) within the aerodrome area and based upon QNH (altitude) outside the aerodrome area.

During the flights at transition level or above in Russia as the rest of the world the aircraft position in the vertical plane is expressed in terms of flight levels (flight level/FL).

So in Russia the phrase in your example will be sound:
'... below 18,000 feet MSL the clearance would be given as  "Aeroflot 220 climb and maintain FL50 (or FL40)".'

Thank you for your interest in the program.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on September 11, 2015, 08:12:16 AM
Greetings Sergsero,

Sorry to hi-jack this modeSdeco2 forum, but is there any possibility that you could have a look at modifying your aisdeco2_windows software to include an option to work with the AirSpy dongle.

I use the AirSpy with modeSdeco2 with great success on my laptop when I'm out and about and it would very much appreciated, if when by the sea side, that be able to swap over to aisdeco2 with the minimum of fuss for a bit of marine monitoring.

Thank you in advance.

Oldfella

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: SpikeBox on September 11, 2015, 08:23:56 AM
Quote from: sergsero on September 11, 2015, 03:42:43 AM
Hello,

To test the aircraft-twins filter I need help. Could you save data to a file in AVR format, when there are observed aircraft-twins: a double decoding with the same Callsing and Squawk, but ICAO and Reg different one unit more.
And put this file somewhere for download.

Recording time 1-2 minutes, if only among other really was able to record 1-2 pairs of twins.

For this use modesdeco2 with the option '--avr <Port>'  and write to the file received from this port AVR data stream.

In Linux this can be done by running the command in other console (or from other computer on the network): nc 127.0.0.1 Port > any_file_name.txt (or nc IP Port > any_file_name.txt).

Will be formed file any_file_name.txt with text content like:
*8D7807D658BF01628ADEE4DC75C8;
*5D4CAB18125255;
*8D4245FB99158D1A0004223413B5;
*8D4240DB9945111C607C110B3A40;
*8D4245FBE990A531E1380049C4D5;
...
In windows you can use putty.

Regards,
sergsero



HI sergsero

And tanks for a wonderful program :)

i have made a link for the avr data stream format is in avr and its from putty 

https://www.dropbox.com/s/c83pkh8x2y2jrh9/Avrtwinputty.log?dl=0

I can set up a port for you whit the avr format so you have live data if you are interested in it ? then you have det live data

best reg
Peter
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 11, 2015, 08:46:30 AM
Hi Peter,
   
Thank you for your help and the file.
I plan to come back home after this weekend and will try to do programming...

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: SpikeBox on September 11, 2015, 08:20:31 PM
Quote from: sergsero on September 11, 2015, 08:46:30 AM
Hi Peter,
   
Thank you for your help and the file.
I plan to come back home after this weekend and will try to do programming...

Regards,
sergsero

Hi sergsero

Your welcome :)

And just say it if your need more or a live avr data port i have lots of air traffic about 3000 aircraft a day

another questions is it possible to use the Airnav RadarBox software ?

Best Reg
Peter
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on September 12, 2015, 10:40:42 AM
hey  sergsero

What does i need for MLAT Out?
cmd /c  modesdeco2.exe --rbs --device-serial 298 --gain 49.6 --freq-correction 30 --location XXXX:XXXXX --web 8010 --db X:\temp111\dbase\basestation.sqb --frdb X:\temp111\dbase\flightroute.sqb --silhouettes X:\temp111\images\silhouettes --pictures X:\temp111\images\pictures --beast 10008

(GPS is replaced with X)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Arie_spotter on September 12, 2015, 09:08:01 PM
Hello Sergsero,

I wondered: when I use modesdeco2 with the --verbose tag, I see the LAT and LON parts from both odd and even messages. In order to figure out the exact co-ordinates of the plane, do I need to make any further calculations (I mean any of the complex calculations regarding odd and even messages) or are these values already the exact values of the plane on every single message (no matter if its odd or even)?

Thanks in advance!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on September 13, 2015, 07:32:53 AM
Quote from: sergsero on September 08, 2015, 06:31:26 PM
Hello GregoryGHarding,

Now I'm on vacation (in Siberian taiga) only with a smartphone - sorry only links on Russian forum:

acarsdeco2 http://forum.adsbradar.ru/f24/acarsdeco2-multikanalnyi-windows-linux-rtlsdr-priem-1625/#post22146 (http://forum.adsbradar.ru/f24/acarsdeco2-multikanalnyi-windows-linux-rtlsdr-priem-1625/#post22146)
aisdeco2 http://forum.adsbradar.ru/f39/konsolnaya-programma-aisdeco-dlya-sdr-priema-ais-signalov-1686/#post24267 (http://forum.adsbradar.ru/f39/konsolnaya-programma-aisdeco-dlya-sdr-priema-ais-signalov-1686/#post24267)

/sergsero
have you thought about a github account. it would really make things easier for everyone, even automate updating for users
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on September 15, 2015, 02:39:27 PM
Hi Sergsero,

I would like to disable the map "mouse wheel" zoom. Is there an easy way to do that?

Regards,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: SpikeBox on September 16, 2015, 08:08:04 AM
Hi Sergsero

Are you planing to make a VDL-2 decoder ? or have you made one ?

Best Reg

Peter
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Tcheno on September 29, 2015, 02:51:06 PM
Hi sergsero,

Is modesmixer2 range capped in any way?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 29, 2015, 03:59:28 PM
Hi Tcheno,

Yes, of course. Because the maximum distance is determined by line-of-sight radio-wave propagation and is limited by curvature of earth. Irregular propagation of radio waves from long distances can sometimes be due to tropospheric effects. However, it only distorts the actual antenna pattern.

So the coverage area is displayed within the range when it doesn't exceed 550 km in metric system and 300 nautical miles in imperial.
All this applies only to display the coverage area on the page of own WEB site.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Tcheno on September 29, 2015, 05:15:12 PM
Can you change modesmixer2 so that the user can define it?
My setup does more that that since my site is 250m high



[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on September 29, 2015, 10:45:52 PM
I have been trying to use ModeSMixer command InSerial to get data from PlaneGadget Radar (connected via USB) and direct it to something else such as a web page. The driver software converts the USB connection to a serial port.

The PlaneGadget appears as COM7 on Windows 7 so I use that with --InSerial COM7:115200:software.

ModeSMmixer says it has connected to COM7 but no web output. Also tried sending it to GlobeSRTL but no success. (GlobeSRTL does connect to a redirected SBS-1e). Also tried output to MSG format on 30003 for SBSPlotter - connects but no data.

Monitoring the serial port shows lots of activity if the PlaneGadget Radar is connected to PlanePlotter Lite (with 11520, 8 data, No parity, 1 stop). When I try with ModeSMixer, I can see initial data sent to the PlaneGadget Radar but there is no date sent from it.

Is there a magic fix for this that I am missing? And same problem with trying to connect to microADSB. it works with ADSBScope but no success with ModeSMixer.

Has anyone got the serial output from a USB connection to work with ModeSMixer?

Ian


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: EGTE24 on October 01, 2015, 12:21:36 PM
Hi sergsero,

I've been trying to connect modesmixer2 to a microADSB Bullion receiver, but without success.

I can connect either VRS or PlanePlotter direct to the receiver and then connect modesmixer2 to VRS or PP and see a/c plotted on the modesmixer2 web page, however if I connect modesmixer2 direct to the receiver I see nothing plotted.

I've run modesmixer2 in debug mode and below is a sample of the output:

2015-10-01 00:15:35.012  DEBUG    SbsMsg() invalid format 17ED8406B79F
2015-10-01 00:15:35.701  DEBUG    SbsMsg() invalid format A9A48038573@EE644A000A3800009B9@EE647D85DDABCC
2015-10-01 00:15:35.715  DEBUG    SbsMsg() invalid format EE641285D438FB6
2015-10-01 00:15:35.858  DEBUG    SbsMsg() invalid format 64181D4068CC2
2015-10-01 00:15:36.142  DEBUG    SbsMsg() invalid format F18200A66D@EE641D88D4888B9800797@EE64F105DDABCD@EE641302001E1FF
2015-10-01 00:15:36.424  DEBUG    SbsMsg() invalid format AFD4063755
2015-10-01 00:15:36.429  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:36.563  DEBUG    SbsMsg() invalid format 08D499407A82D69
2015-10-01 00:15:36.569  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:36.574  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:37.002  DEBUG    SbsMsg() invalid format 70A16690F58A0544785
2015-10-01 00:15:37.110  DEBUG    SbsMsg() invalid format A08B623C352E70
2015-10-01 00:15:37.116  DEBUG    SbsMsg() invalid format 3739
2015-10-01 00:15:37.124  DEBUG    SbsMsg() invalid format 8E1A62A49989804065
2015-10-01 00:15:37.265  DEBUG    SbsMsg() invalid format 1897F900CAC30A6038F
2015-10-01 00:15:37.270  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:37.275  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:37.281  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:37.286  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:37.364  DEBUG    SbsMsg() invalid format 340602A4B63@EE6D685D6DABCD@EE64482802ECF40E6418280009142
2015-10-01 00:15:37.373  DEBUG    *5D40690F2D129D;
2015-10-01 00:15:37.377  DEBUG    DF11 ICAO: 40690F CA 5 GR 0 II 14 TIMESTAMP 1443654937
2015-10-01 00:15:37.383  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:37.513  DEBUG    SbsMsg() invalid format 71EE641485D46375BE6418C5D406271C
2015-10-01 00:15:37.791  DEBUG    SbsMsg() invalid format 8CA6D62A4B
2015-10-01 00:15:37.796  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:37.802  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:37.882  DEBUG    SbsMsg() invalid format 618A0801050CDD47
2015-10-01 00:15:37.888  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:37.893  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:38.167  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:38.177  DEBUG    SbsMsg() invalid format 8F50262A4B
2015-10-01 00:15:38.321  DEBUG    SbsMsg() invalid format 85A4B63@EE64EA8207891A@EE641805D4ABCDCE641905D406CDC
2015-10-01 00:15:38.886  DEBUG    SbsMsg() invalid format 191E60690FA
2015-10-01 00:15:39.294  DEBUG    SbsMsg() invalid format 92881068B6D
2015-10-01 00:15:39.440  DEBUG    SbsMsg() invalid format 4285D4B6373EE641985D40128
2015-10-01 00:15:39.585  DEBUG    SbsMsg() invalid format 9470468B6D
2015-10-01 00:15:39.590  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:39.595  DEBUG    Suspected DF11 Message - Filtered
2015-10-01 00:15:39.731  DEBUG    SbsMsg() invalid format 1961100CAC0
2015-10-01 00:15:39.878  DEBUG    SbsMsg() invalid format 44E05DF2D12
2015-10-01 00:15:40.293  DEBUG    SbsMsg() invalid format 0311CD7EB2
2015-10-01 00:15:40.701  DEBUG    SbsMsg() invalid format E641D85D463718@19899E18D1FA
2015-10-01 00:15:40.708  DEBUG    *8D4068B699503F3628043AD60DE8;
2015-10-01 00:15:40.713  DEBUG    DF17 Type 19 ICAO: 4068B6 CA 5 NUCR 2 GNSS 1425 VSRC 0 VR 0 TT 8.16724 GS 436.426 GR 0 IC 0 SSC 0
IFR 1 TIMESTAMP 1443654940


What is puzzling me are the lines saying "SbsMsg() invalid format" (the Bullion outputs AVR format), as I thought modesmixer2 should automatically detect the format and handle it appropriately?

Any help would be most appreciated.

Terry
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on October 03, 2015, 01:25:28 PM
Hello,

Unfortunately, I am completely not familiar with the receiver PlaneGadget Radar and don't know the format of the initialization session.

I have a receiver microADSB from Miroslav (the first version with four dip switches) and it works on Linux on Intel platform when connected via usb.

Also I tested its network version - Bullion v.1. Officially this receiver is not supported by modesmixer2.

However, it works with modesmixer2. But one major caveat is that  when connect Bullion through a network, the program does not issue to him initialization codes: #43-02\r and #43-00\r.
But it not able to initialize itself  and sometimes the data does not issue.

Now I would not want to add them, so as not to impede operation with SBS receiver. Perhaps in later versions support for Bullion will be implemented.

Regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: rtlsdr_SCN on October 03, 2015, 01:34:01 PM
Quote

    If you see on the page Map that all aircraft are being plotted in the top-left corner and the Google map does not load, then you need to do bypass your cache in browser.

    Bypassing your cache means forcing your web browser to re-download a web page from scratch, which can often solve website display glitches. It is also required after installing user scripts. Bypassing your cache is simple, safe, and causes no permanent changes.

    When you are on the page "Map":
    In most Windows and Linux browsers: Hold down Ctrl and press F5.
    In Apple Safari: Hold down ⇧ Shift and click the Reload toolbar button.

    Or use menu: Control+Shift+Del
Hello everyone, @sergsero, I did have this problem in Firefox (41.0.1), and none of this worked in my case, so I decided to read a bit and I did found something about cookies and google maps, so I decided to install "Cookie Manager" then I did deleted all cookies from my router IP, and EUREKA..! it worked!.

Hope helps someone more! @sergsero  thanks a lot for your work!.

Cheers. 
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: EGTE24 on October 03, 2015, 05:04:16 PM
Many thanks for the explanations, sergsero.

Quote from: sergsero on October 03, 2015, 01:25:28 PM
........ Also I tested its network version - Bullion v.1. Officially this receiver is not supported by modesmixer2.
The network version is the one that I have.

Quote
However, it works with modesmixer2. But one major caveat is that  when connect Bullion through a network, the program does not issue to him initialization codes: #43-02\r and #43-00\r.
But it not able to initialize itself  and sometimes the data does not issue.
Is there any way to issue the initialization codes seperately, perhaps from within the .bat used to start modesmixer2?
Quote

Now I would not want to add them, so as not to impede operation with SBS receiver. Perhaps in later versions support for Bullion will be implemented.
OK, understood, however if you can manage to add support for the Bullion at some point, without impacting SBS operation, then that would be great.

Regardless of the above, many thanks for all your work on the programmes - it is much appreciated.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on October 03, 2015, 10:36:35 PM
Sergsero

Thanks for the explanation about the initialisation.

I have found now open source code for the PlaneGadget Radar (PGR). https://code.google.com/p/adsb-pgr/source/checkout

It includes the following in https://code.google.com/p/adsb-pgr/source/browse/trunk/mds02.h:

#define I_F_NAME  "/dev/ttyACM0"
          /* default path for input data */
#define I_FMT   "PGR"
          /* default input data format
           *  select "PGR" or "AVR" */
#define I_INIT_PGR  "G-G+"
#define I_TERM_PGR  "G-"
#define I_INIT_AVR  "#43-02\r"
#define I_TERM_AVR  "#43-00\r"

Those AVR codes look like the ones you mentioned for the Bullion so I seem to have found the ones for the PGR.

So I also want to know if initialization codes can be sent to the receiver?


The MicroADSB is not the version with any dip switches. I'll try running it from Linux.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on October 11, 2015, 06:40:25 AM
Hi Sergsero

Any news regarding the double display of traffic?
Do you need to get something tested by us or some more logging?

br Lars
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on October 14, 2015, 05:37:43 PM
Hi Sergsero

Attached a file with flight double displayed.

br Lars


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on October 15, 2015, 08:18:55 PM
QuoteAre you planing to make a VDL-2 decoder ? or have you made one ?
sergsero dont answer any question...
I asked many Questions about ACARS but i never get an Answer.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Arie_spotter on October 29, 2015, 09:15:58 PM
Is there a version of Modesdeco2 that works for the Raspberry Pi 1? I can't seem to find one in the post with the downloads on the first page. I can only see a version for the rpi2.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on October 30, 2015, 09:33:21 AM
The last version for the Pi that I have is modesdeco2_rpi_20150321.tgz

Doesn't seem to be in this thread any more.

Searching the internet I found it here:

http://forum.planefinder.net/threads/modesdeco2-and-modesmixer2-for-the-dongle.154/page-2
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Arie_spotter on October 30, 2015, 04:52:16 PM
Thanks IanH
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on November 04, 2015, 03:34:20 PM
I'm using ModeSDeco2 with R820T dongle and it work well.
Now I've found the site http://www.adsbexchange.com/ a community of co-op ADS-B Data and I've tried to send my data there via the command --beast 30005 (as indicated in "How to feeed") but without results.
Have I to use ModeSMixer2 to send my data to "feed.adsbexchange.com" port 30005?
Someone are using it?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on November 04, 2015, 03:56:51 PM
Vou need an Virtual Radar Server for.  ;D
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on November 04, 2015, 04:10:05 PM
Quote from: Radio2.0 on November 04, 2015, 03:56:51 PM
Vou need an Virtual Radar Server for.  ;D

For what?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on November 04, 2015, 05:00:09 PM
for sharing with other.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on November 04, 2015, 05:08:14 PM
Quote from: Radio2.0 on November 04, 2015, 05:00:09 PM
for sharing with other.

VRS is not required to share data with adsbexchange.com which runs a VRS server.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on November 04, 2015, 05:19:54 PM
ModeSDeco2 cant send data to other systems.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 04, 2015, 06:23:21 PM
How do you know if you are successfully sharing with adsbexchange? Nothing obvious.

Anyway the modeSmixer2 command is

--outConnect beast:feed.adsbexchange.com:30005

Running this gives an output in the batch file window showing it is connecting - no idea if it was successful!

Obviously you also need some input!


Edit: seems it works. G-JECX moved while I was connected, stopped when I disconnected  ;D
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on November 04, 2015, 06:43:58 PM
which format did you use?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 04, 2015, 07:48:07 PM
for output to adsbexchange it is shown in the outconnect code = beast format
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on November 04, 2015, 08:16:22 PM
Can i get the same data to?  ;D
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 04, 2015, 08:44:24 PM
No because I'm only testing to answer questions - not connected 24/7.

In fact not connected more than 10 minutes.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on November 05, 2015, 12:48:35 AM
Thanks all for your answers.
I used VRS to send data to "feed.adsbexchange.com" port 30005 via rebroadcast server and it work well.
I can see my receptions both on my VRS map and on http://global.adsbexchange.com/VirtualRadar/desktop.html the Global Radar View address.
I would not use VRS for this service.
I suspected (as Radio 2.0 told) that the command --beast 30005 on ModeSDeco2 is not able to send data to that site and I need to use ModeSMixer2 to do this, but I think my settings are wrong.

I launch ModeSDeco2 with this batch file:
\modesdeco2.exe --freq-correction 60 --gain 48 --location xx.xx:xx.xx --web 8088 --db C:\Radio\VirtualRadar\BaseStation\basestation.sqb --silhouettes C:\Radio\VirtualRadar\BaseStation\Silhouettes --pictures C:\Radio\VirtualRadar\BaseStation\Pictures --frdb C:\Radio\VirtualRadar\BaseStation\flightroute.sqb --filter-nocountry --metric

Then I launch ModeSMixer2 with this batch file:
\modesmixer2.exe -–outConnect beast:feed.adsbexchange.com:30005
But on the task that appears I have only the message "Press to continue..." and then the task desappears.
I think I have to set the incoming data from ModeSDeco2 to ModeSMixer2, but I don't know how.
Any help?
IanH, what are your setting?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on November 05, 2015, 07:50:00 AM
Quote from: robybenjy on November 05, 2015, 12:48:35 AM
Then I launch ModeSMixer2 with this batch file:
\modesmixer2.exe -–outConnect beast:feed.adsbexchange.com:30005

It looks like you don't have an input (as IanH mentioned that you need) to ModeSMixer2 - see my post here:

http://radarspotting.com/forum/index.php/topic,2978.msg24218.html#msg24218

You need something along the lines of

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


Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on November 05, 2015, 09:31:16 AM
Many thanks Triple7, now it work!
I would never have thought of using the command --sbs to connect the two software, since I use a USB RTL dongle: I believe that I still have a lot to learn!

Now my basic batch file for ModeSDeco2 is:
\modesdeco2.exe --freq-correction 60 --gain 48 --web 8088 --sbs10001 10001

My basic batch file for ModeSMixer2 is:
\modesmixer2.exe --inConnect 127.0.0.1:10001 --outServer sbs10001:10001 --outConnect beast:feed.adsbexchange.com:30005

Now I can see my receptions both on my local host and on Global Radar View on adsbexcange.com
It will be interesting to see if I succeed to increase the number of aircraft displayed, using the MLAT system, as it is said in that site.
I conclude that I will have to study the system to send and receive MLAT data ...another task to do!  ;D
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on November 18, 2015, 02:04:35 PM
Hi Sergsero,
I had a new error using ModeSdeco2:

INFO     ModeSDeco2 v.20150815
INFO     Device: 0 mnf: Generic prod: RTL2832U serial: 77771111153705700
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
INFO     Freq Correction: 60 ppm
INFO     Gain: 48.0 dB
INFO     AGC: Off
INFO     Start AVR Server on port 47806
INFO     Open DB session
INFO     Connected 127.0.0.1:49323
ERROR     sqlite3_step<> database is locked 5
ERROR     sqlite3_finalize<> database is locked 5


I used ModeSDeco2 outputting data to Virtual Radar Server.

Another question: what is the best mode to use for sending data with VRS or other platforms between AVR and Beast?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 18, 2015, 04:14:25 PM
My initial thought is what else is accessing basestation.sqb database?

If another program has locked the database (because it is using it) then modesdeco will not be able to write to it.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on November 18, 2015, 10:29:42 PM
Maybe you're right IanH, because the basestation.sqb file I use with ModeSDeco2 is the same for VRS.
Can I disable the use of the file by ModeSDeco2 without losing information for its operation?

Any suggestion for AVR or Beast best mode?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 19, 2015, 02:41:35 AM
Hi robybenjy,

I agree with IanH. This message is received at the initialization phase of the program and its environment. When you try to access the database file it's reported that currently already blocked. Probably, if the VRS also uses the same file then it may cause such a conflict.

You can disable the use of the database in modesdeco2 (don't use the option --db) and delegate this function to VRS (with Database Writer Plugin).


BEAST vs AVR:

In my opinion, they are two different ways of the same raw data presentation. The format "BEAST" is a binary's option of "AVR" format. However, BEAST has some additional features: always contains time stamp and signal level information.

There are only three frame formats in the binary protocol, in order to keep some control characters:
<esc> "1" : 6 byte MLAT timestamp, 1 byte signal level, 2 byte Mode-AC
<esc> "2" : 6 byte MLAT timestamp, 1 byte signal level, 7 byte Mode-S short frame
<esc> "3" : 6 byte MLAT timestamp, 1 byte signal level, 14 byte Mode-S long frame


Here fields '2 byte Mode-AC' or '7 byte Mode-S short frame' or '14 byte Mode-S long frame' are AVR data - depending on what a message will be encapsulated there.

The binary BEAST format is more compact and is preferred for transmission over communication channels. Text AVR format more suitable for a visual analysis of messages.
For data exchange between programs I recommend to always use a BEAST.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on November 19, 2015, 10:22:47 AM
Hi Sergsero and thanks for your clear explanations.
I used already Database Writer Plugins and now I will take away the --db function.

I will change AVR mode with Beats for sending data from ModeSDeco2 to other software.

I also hope that you will be able to solve the problem of double messages with the same callsign.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 19, 2015, 11:12:19 AM
Hi robybenjy,

Quote from: robybenjy on November 19, 2015, 10:22:47 AMI also hope that you will be able to solve the problem of double messages with the same callsign.

I'm sorry for the delay in solving this problem. I remember about it.
Unfortunately in 2015 year circumstances and events turned out to be stronger than my programmer's plans.

But I hope when I'll return from business trip to finish implementation of double message filters in the program.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 19, 2015, 12:19:03 PM
sergsero

I looked back at the older versions of modesdeco2 and tried some of them again.

There are no duplicates in the 2150321 version.

The problem starts with the 20150603 version which includes "pthreadVCE2.dll".

I switched between the two versions several times and the difference was immediate.

Something important changed between the two versions.  ???
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on November 19, 2015, 01:52:32 PM
Quote from: sergsero on November 19, 2015, 02:41:35 AM
I agree with IanH. This message is received at the initialization phase of the program and its environment. When you try to access the database file it's reported that currently already blocked. Probably, if the VRS also uses the same file then it may cause such a conflict.

You can disable the use of the database in modesdeco2 (don't use the option --db) and delegate this function to VRS (with Database Writer Plugin).

I deleted the function --db in my batch file ModeSDeco2, but now Silhouette and Type of planes are not displayed in the web console, although they have been included in the batch file.
Apparently the function --db is necessary for the display of the other.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 19, 2015, 03:02:38 PM
Looks like that's correct.

Why not use another copy of basestation.sqb and point ModeSDeco to one and VRS to the other?

That is what I was doing when I was testing two dongles on the same machine to avoid the locking problem.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: robybenjy on November 19, 2015, 03:46:54 PM
Quote from: IanH on November 19, 2015, 03:02:38 PM
Why not use another copy of basestation.sqb and point ModeSDeco to one and VRS to the other?

That is what I was doing when I was testing two dongles on the same machine to avoid the locking problem.
I think this could be the better solution.  ;)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: clipsnotebook on November 20, 2015, 05:32:19 PM
Hi,
I have a strange problem. I have modesmixer2 running on a pi that is connected to a radarcape feeder. The pi is connected wirelessly to a repeater and the radarcape is connected to the main wireless router through a wired connection. After some time, the modesmixer2 stops displaying any data and even the log does not display any additional information. The modesmixer does not recover thereafter.
I have a script running in the background that keeps a check on the wireless connection and informs me if the wireless link breaks. I noticed that there was no break in the wireless link between the pi, the repeater and the main router.
I start modesmixer2 through a background script called through rc.local:
modesmixer2 --inConnect 192.168.x.xx:30003 --outServer beast:30005 --outServer avr:30002 --web 80 --location xx.xx:xx.xx

Anyone has any insights? Thanks!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on November 21, 2015, 12:34:18 AM
Quote from: clipsnotebook on November 20, 2015, 05:32:19 PM
Hi,
I have a strange problem. I have modesmixer2 running on a pi that is connected to a radarcape feeder. The pi is connected wirelessly to a repeater and the radarcape is connected to the main wireless router through a wired connection. After some time, the modesmixer2 stops displaying any data and even the log does not display any additional information. The modesmixer does not recover thereafter.
I have a script running in the background that keeps a check on the wireless connection and informs me if the wireless link breaks. I noticed that there was no break in the wireless link between the pi, the repeater and the main router.
I start modesmixer2 through a background script called through rc.local:
modesmixer2 --inConnect 192.168.x.xx:30003 --outServer beast:30005 --outServer avr:30002 --web 80 --location xx.xx:xx.xx

Anyone has any insights? Thanks!

A first aproach is to connect the rpi to your router through a wired connection and see if the problem persists.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 21, 2015, 02:34:38 AM
Hi clipsnotebook,

Indeed, at first please check the problem with another type connection, as advised spotter.ssol.

Additionally I strongly recommend use the input data in RAW format, which is available from Radarcape via port 10003. In the case of MSG, which is able to transfer only a part of received data, you lose valuable information.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: maaw on November 23, 2015, 06:44:00 PM
Feature request: Is there any chance we get a top ten or something list of the most seen aircraft in the stats page?
Thank you for your amazing job.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 23, 2015, 10:47:33 PM
If we are asking for features, how about the ability to exclude particular hex codes that give spurious results.

Unless it is already included but I haven't figured it out.

Hex 76EB00 is a ground station NW of EGNX that I can receive  ???

The consequence is a spike at 40 km in the ModeSMixer charts info as shown below:

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: vsboost on November 25, 2015, 04:03:17 AM
Hi there,

Any chance of adding support for the SdrPlay ?

Thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on November 30, 2015, 06:51:54 PM
hmm what does i need for mlat on my Pc?
GPS Device?

I see Mlat Airplane in VRS and i dont know where the come from.  ;D
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 02, 2015, 09:56:21 PM
The new version crash all time on my win pc.  ???
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 02, 2015, 10:15:10 PM
The new version of what?

The most recent version of modesmixer2 is 20150825.

The most recent version of modesdeco2 is 20150815.

Neither are "recent" (Aug 2015) and since no one else is reporting crashes, you must be doing something wrong. Read the text files that come with the program that is causing the problem. What error messages do you get?

No one can help you unless you give more information.

"Crashing" - could be your PC hardware such as bad memory, could be a virus.

Who knows?

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 02, 2015, 10:42:42 PM
Windows modesdeco2_windows_20150815.zip https://drive.google.com/open?id=0B7NYXizl0U6iMmNjdXIyY1haTWc

olt version work. sorry i have to go to bed tomorroy early in the morning is the flight....  :-*
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tanis8472 on December 06, 2015, 10:14:49 PM
Where has modesdeco2 for pi B+ etc gone.  I was running it on a pi but reinstalled it all and now cant seem to find it on this thread anymore :(

Thanks guys
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 07, 2015, 09:03:50 AM
Posted a response to a similar question here:

http://radarspotting.com/forum/index.php/topic,2978.msg26475.html#msg26475

Not here any more but look at last post on this page:

http://forum.planefinder.net/threads/modesdeco2-and-modesmixer2-for-the-dongle.154/page-2

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 27, 2015, 03:02:02 PM
Hello,

I'd be grateful for testing these beta releases of ModeSDeco2 and ModeSMixer2 v.20151226. Most changes were made in the internal algorithms and need to testing for bugs.
Also added a few options.

ModeSMixer2

Windows: modesmixer2_windows_20151226_for_test_only.zip https://drive.google.com/open?id=0B7NYXizl0U6idkVYckdwcTdLVVU (https://drive.google.com/open?id=0B7NYXizl0U6idkVYckdwcTdLVVU)
Raspberry Pi 2: modesmixer2_rpi2_20151226_for_test_only.tgz https://drive.google.com/open?id=0B7NYXizl0U6ieTljRktvSUM2OGc (https://drive.google.com/open?id=0B7NYXizl0U6ieTljRktvSUM2OGc)
Raspberry Pi 1: modesmixer2_rpi1_20151226.tgz https://drive.google.com/open?id=0B7NYXizl0U6iaFBRY2k3RFMwb1U (https://drive.google.com/open?id=0B7NYXizl0U6iaFBRY2k3RFMwb1U)

+ made changes in internal algorithms of program which need testing for bugs
+ add option --add-reference-point <arg> Add a new reference point, for example, Final Approach Waypoint (FAWP) with lat:lon:[Label] for calculating distance and azimuth on map. Example: 38.5:-12.6:FAWP
+ add option --add-points <arg>               Add additional points, for example, Intermediate Waypoint (IWP) (single or list) with coordinates on map. Example: 36.2:-15.3:[IWP1] [38.5:-12.6:[IWP2]
+ add option --inServerId <arg>                Input server with Id. Format: port:id. Aircrafts, for which data will be received through the listening server --inServerId, will be marked with id.


ModeSDeco2

Windows: modesdeco2_windows_20151226_for_test_only.zip https://drive.google.com/open?id=0B7NYXizl0U6iUHczUVZXYWlEZjQ (https://drive.google.com/open?id=0B7NYXizl0U6iUHczUVZXYWlEZjQ)
Raspberry Pi 2: modesdeco2_rpi2_20151226_for_test_only.tgz https://drive.google.com/open?id=0B7NYXizl0U6iRFdodUFITlRJM1U (https://drive.google.com/open?id=0B7NYXizl0U6iRFdodUFITlRJM1U)

+ made changes in internal algorithms of program which need testing
+ add option --add-reference-point <arg> Add a new reference point, for example, Final Approach Waypoint (FAWP) with lat:lon:[Label] for calculating distance and azimuth on map. Example: 38.5:-12.6:FAWP
+ add option --add-points <arg>               Add additional points, for example, Intermediate Waypoint (IWP) (single or list) with coordinates on map. Example: 36.2:-15.3:[IWP1] [38.5:-12.6:[IWP2]
+ add option --filter-dup                            Enable Duplicate filter (default: off). If among the received messages are found pairs with icao24 addresses that differ by one, possibly the issue could be reduced by using this option.
+ add option --disable-correction              Disable correction of corrupted signals (Default: on). Additionally you can add also this option with option --filter-dup.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 27, 2015, 04:25:02 PM
QuoteDisable correction of corrupted signals (Default: on).
hmm why should someone turn it off? What is the reason for that switch?
QuoteAdd a new reference point, for example, Final Approach Waypoint (FAWP) with lat:lon:[Label] for calculating distance and azimuth on map. Example: 38.5:-12.6:FAWP
only for visual or does it have an effect of accuracy?
thx

(i will test it for windows now.)


Can you make an image for Raspberry Pi 2?
I have one home but I dont know anything about Linux or so. It would be an great think.  ;D

Stupid question how stable run the Linux version? A Shop owner next to an Airport (!!!) allow me to put an Pi next to the Window. He see the Runway maybe 100m away.  8) I cant call him every week to reboot the Pi if it now run stable.
(And Yes I share my Data!)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 27, 2015, 04:43:48 PM
hmm what is wrong....
x:
cd "X:\modesdeco2_windows_20151226_for_test_only"
cmd /c  modesdeco2.exe --gain 49.6 --freq-correction 30 --location xxxxxx --web 8080 --db X:\temp1\dbase\basestation.sqb --frdb X:\temp1\dbase\flightroute.sqb --silhouettes X:\temp1\images\silhouettes --pictures X:\temp1\images\pictures --msg 30003 --add-points 480436.83:0162819.64:WW296
PAUSE
exit

(my pos is replave here with xx)
2015-12-27 17:41:44.671  ERROR    sqlite3_open X:\temp1\dbase\basestation.sqb unable to open database file 14

and X is my Ramdisk.  :-[
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 27, 2015, 05:11:07 PM
and there is an huge error on the map:
Quote(http://i.share.pho.to/73a90c24_o.png)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 27, 2015, 11:46:30 PM
Quoteand there is an huge error on the map:

Just refresh the browser window. I had the same but then it was ok
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 27, 2015, 11:50:02 PM
Still the problem in modesdeco2 with duplicate flights - see attached. This was not a problem in earlier versions before the use of pthreadVCE2.dll.

Something changed at that time.

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 27, 2015, 11:55:15 PM
Quotehmm what is wrong....

Check that location for basestaion.sqb really exists.

The --db command works ok for me  ;D
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 28, 2015, 12:07:11 AM
if the need ite can create the files there.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 28, 2015, 01:57:09 AM
Hi IanH,

Thanks for testing.
Was your screenshot obtained by using the option --filter-dup? And (probably) additional with --disable-correction.
The filter was set for search addresses that differ by one in least-significant digit. I would like to know - this filter can to block this kind of duplicates?

This library is used for compatibility with the airspy receiver.  It is possible that I have to go back to the old version of my decoder. Or until when in my area will be to deployed Mode S interrogator for on-air testing.  :)

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 28, 2015, 02:43:04 AM
Hello Radio2.0,

Quote from: Radio2.0 on December 27, 2015, 04:25:02 PMCan you make an image for Raspberry Pi 2?

I think will be more convenient for you to use ready-made images, for example, from flightaware. Something like this: 'PiAware on Raspbian Linux 2.1-3' http://flightaware.com/adsb/piaware/build (http://flightaware.com/adsb/piaware/build), assembled on basis of dump1090, which is always possible adjustment to the desired outputs.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 28, 2015, 10:58:04 AM
QuoteWas your screenshot obtained by using the option --filter-dup?

No I missed that option in the latest version.  ???

I've now tried the --filter-dup option and it does remove the duplicates.

BUT, what happens if the icao24 address differing by one is real?

Looking at the non-filtered data on my screen the icao24 address +/-1 could be real for easyJet (G-EZWW/V), Aer Lingus (EI-DEI/J), Lufhansa (D-AIST/U) and Ryanair (EI-FIE/F). Probably others.


Edit:

And as I posted previously:
QuoteI looked back at the older versions of modesdeco2 and tried some of them again.

There are no duplicates in the 2150321 version.

The problem starts with the 20150603 version which includes "pthreadVCE2.dll".

I switched between the two versions several times and the difference was immediate.

Something important changed between the two versions.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 28, 2015, 11:01:12 AM
fresh download and settings
1) the same call sign with different iaco24
http://i.share.pho.to/12acf477_o.png

2) the map dont work (again)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ytsejam on December 28, 2015, 11:20:22 AM
Not sure if this is a bug:

Symptom: modesdeco2 uses different device ID then rtl_sdr
Affected version: 20151226, 20150815 (not sure about previous versions)

<----- For rtl_sdr, device 0 has SN #4 and device 1 has SN#3

# rtl_test
Found 2 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000004
  1:  Realtek, RTL2838UHIDIR, SN: 00000003

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 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
[R82XX] PLL not locked!
Sampling at 2048000 S/s.

<----- For modesdeco2, device 0 is SN#3 and device #1 is SN#4

# ./modesdeco2 --device-list
2015-12-28 18:28:28.996  INFO     ModeSDeco2 v.20151226

Available RTL Devices:
0 mnf: Realtek prod: RTL2838UHIDIR serial: 00000003
1 mnf: Realtek prod: RTL2838UHIDIR serial: 00000004

No Available AirSpy devices




Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 28, 2015, 11:38:49 AM
sorry the Map dont work. I try FF, Chrone.

WTF on the IE work the Map?!  >:(
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 28, 2015, 11:57:08 AM
Map worked for me on Chrome - I just pressed F5 key to refresh.

Same on Firefox - press F5.

To remove the duplicates, you need to add --filter-dup to command line
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 28, 2015, 01:21:27 PM
Hello ytsejam,

I'll try to check it soon. The device number is read in response to the request to the specific device instance.

If you reliably know the true serial number of each dongle and what kind of antenna is connected to each, could you also test in real conditions - which of the programs correctly determines this number?
In this case, the numbers that the system assigns (0,1,2...) can changing every time for each dongle, while the serial number is constant.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 28, 2015, 01:58:06 PM
Hi IanH,

At this stage of testing filter it's important be convinced in effectiveness blocking of duplicates.

The filtering algorithm is analyzes and uses a variety of factors.

The filter continuously monitors the data stream and selects the adjacent pair with icao24 addresses that differ by ±1 (hex), and mark them as potentially positive for duplicate.
Further in the each selected pair will be determined Callsign and Squawk (and additionally transponder type). If they are the same, then the pair is passed to the second filter that counts the number of received messages from each instance in the pair. Also monitored altitude and vertical speed. These parameters are collated with the duration of observation. And so on for a number of other signs. As a result the pair can be recognized as duplicates.  One of her instances as real aircraft and its data will be presented at the output. While the ghost will be blocked.

However, I evaluate calculation value of efficiency the filter about 80% and in specific cases errors can reach 20%. And field experiment gives real estimate.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ytsejam on December 28, 2015, 02:20:38 PM
Quote from: sergsero on December 28, 2015, 01:21:27 PM
Hello ytsejam,

I'll try to check it soon. The device number is read in response to the request to the specific device instance.

If you reliably know the true serial number of each dongle and what kind of antenna is connected to each, could you also test in real conditions - which of the programs correctly determines this number?
In this case, the numbers that the system assigns (0,1,2...) can changing every time for each dongle, while the serial number is constant.

Thanks,
sergsero

Hi Sergsero,

Thank you very much, I do understand that I can use --device-serial to specify the device to use, that's why I was not quite sure if it is a bug.

I was in the impression that the index should be the same with rtl_sdr, and recently while I try to figure our the ppm error by rtl_test, I realized that the device ID used in modesdeco2 is not the same with rtl_sdr.

However, on my system, ARM Linux based, the index arranged by rtl_sdr is always the same and is in the same order with USB ports.
For example, the dongle in UBS port 1 is always assigned with ID 0, and USB port 2 is ID1.
Just think that it will be good if modesdeco2 has the same behavior.

Regards,
Ytsejam
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 28, 2015, 02:29:44 PM
Quote from: IanH on December 28, 2015, 11:57:08 AMTo remove the duplicates, you need to add --filter-dup to command line

Probably, for enhance the result, you can optionally add the second option that may affect this issue: --disable-correction
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on December 28, 2015, 02:35:44 PM
Quote from: Radio2.0 on December 28, 2015, 11:38:49 AM
sorry the Map dont work. I try FF, Chrone.

WTF on the IE work the Map?!  >:(

Hit Ctrl+F5.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 28, 2015, 02:38:03 PM
Chrome -> dont work
IE -> work

:o

@sergsero
Which Format is needed for the Position ? WG48 or how the called?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 28, 2015, 03:34:18 PM
OK - looks like you already considered the possibility of real icao24 addresses that differ by 1.

I will continue testing  :)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 28, 2015, 03:39:32 PM
(http://i.share.pho.to/12acf477_o.png)

i dont know why the do it?!


Can someone tell me what exactly the Aircraft send out for Data???  >:(
There are many websites about but the dont tell it exactly.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 28, 2015, 03:44:19 PM
Hi ytsejam,

I did a comparison of both programs on identity in determination of index device and its serial number.
According to information received discrepancies not identified.

Please, see attached screenshot.

In the test were used 2 dongle.
Found 2 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001
  1:  Realtek, RTL2838UHIDIR, SN:


The first based on Rafael Micro R820T tuner with SN: 00000001 and the second based on Elonics E4000 tuner with SN: (without number).
This was determined  in program rtl_sdr.

Alternately running the program for the device with index 0 and 1 you can see the difference in tuner chip.

ModeSDeco2 has issued, in its turn, the same indexes and serial numbers.

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ytsejam on December 29, 2015, 01:49:14 AM
Quote from: sergsero on December 28, 2015, 03:44:19 PM
Hi ytsejam,

I did a comparison of both programs on identity in determination of index device and its serial number.
According to information received discrepancies not identified.

Please, see attached screenshot.

In the test were used 2 dongle.
Found 2 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001
  1:  Realtek, RTL2838UHIDIR, SN:


The first based on Rafael Micro R820T tuner with SN: 00000001 and the second based on Elonics E4000 tuner with SN: (without number).
This was determined  in program rtl_sdr.

Alternately running the program for the device with index 0 and 1 you can see the difference in tuner chip.

ModeSDeco2 has issued, in its turn, the same indexes and serial numbers.

Hi sergsero,

Much appreciated for the testing.

Actually in my case, both RTL dongles are the same with R820T2 tuner.


I also took a look at the rtl_sdr source code.
I think rtl_sdr uses libusb to determine the index of devices.

<----- In librtlsdr.c

int rtlsdr_get_device_usb_strings(uint32_t index, char *manufact,
               char *product, char *serial)
{
   int r = -2;
   int i;
   libusb_context *ctx;
   libusb_device **list;
   struct libusb_device_descriptor dd;
   rtlsdr_dongle_t *device = NULL;
   rtlsdr_dev_t devt;
   uint32_t device_count = 0;
   ssize_t cnt;

   r = libusb_init(&ctx);
   if(r < 0)
      return r;

   cnt = libusb_get_device_list(ctx, &list);   <-----  device list is created here in the same oder determined by libusb

   for (i = 0; i < cnt; i++) {
      libusb_get_device_descriptor(list, &dd);

      device = find_known_device(dd.idVendor, dd.idProduct);

      if (device) {
         device_count++;

         if (index == device_count - 1) {
            r = libusb_open(list, &devt.devh);
            if (!r) {
               r = rtlsdr_get_usb_strings(&devt,
                           manufact,
                           product,
                           serial);
               libusb_close(devt.devh);
            }
            break;
         }
      }
   }

   libusb_free_device_list(list, 1);

   libusb_exit(ctx);

   return r;
}


<------ The order reported by lsusb should also determine the order of devices in rtl_sdr


root@ADSB:/opt/adsb# lsusb
Bus 002 Device 002: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 004 Device 002: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@ADSB:/opt/adsb#

root@ADSB2:/home/cubie# lsusb -v -d 0x0bda:0x2838

Bus 001 Device 002: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x2838 RTL2838 DVB-T
  bcdDevice            1.00
  iManufacturer           1 Realtek
  iProduct                2 RTL2838UHIDIR
  iSerial                 3 00000004   <-------------- The frist one is SN#00000004
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          4 USB2.0-Bulk&Iso
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              5 Bulk-In, Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              5 Bulk-In, Interface
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      2
Device Status:     0x0000
  (Bus Powered)

Bus 003 Device 002: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x2838 RTL2838 DVB-T
  bcdDevice            1.00
  iManufacturer           1 Realtek
  iProduct                2 RTL2838UHIDIR
  iSerial                 3 00000003  <----------- The 2nd one is SN#00000003
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          4 USB2.0-Bulk&Iso
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              5 Bulk-In, Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              5 Bulk-In, Interface
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      2
Device Status:     0x0000
  (Bus Powered)
root@ADSB2:/home/cubie#

<------ rtl_sdr follows the same order ID#0 = SN#4 and ID#1 = SN#3

root@ADSB2:/home/cubie# rtl_test
Found 2 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000004  <----
  1:  Realtek, RTL2838UHIDIR, SN: 00000003  <----

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 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
[R82XX] PLL not locked!
Sampling at 2048000 S/s.

Info: This tool will continuously read from the device, and report if
samples get lost. If you observe no further output, everything is fine.

Reading samples in async mode...
lost at least 136 bytes
^CSignal caught, exiting!

User cancel, exiting...
Samples per million lost (minimum): 25
Segmentation fault

<------ But it seems modesdeco2 will sort the devices by serial number first before determine the device ID.

root@ADSB2:/home/cubie# modesdeco2 --device-list
2015-12-29 09:06:22.724  INFO     ModeSDeco2 v.20151226

Available RTL Devices:
0 mnf: Realtek prod: RTL2838UHIDIR serial: 00000003  <----
1 mnf: Realtek prod: RTL2838UHIDIR serial: 00000004  <----

No Available AirSpy devices.
root@ADSB2:/home/cubie#


Regards,
ytsejam
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 29, 2015, 03:25:00 PM
Hello,

The possible use of the new options in ModeSMixer2 v.20151226 when testing it.

--add-reference-point <Lat:Lon:Label>
The option creates on the map an alternative point to '--location', as the reference point for calculating distance and azimuth to the selected aircraft. This new value will be displayed in detail.
This reference point can be the only single with arbitrary name. Usage - mark out the runway threshold.
Usage: --add-reference-point 54.2446:82.7991:RW.



--add-points <Lat:Lon:Label [Lat1:Lon1:Label1 Lat2:Lon2:Label2]>
The option creates on the map one or several points with given coordinates. Near the points will be displayed the distance from the selected aircraft.
You can specify one or several points, their coordinates and the name must be separated from each other by a space.
Usage - mark out Initial/Final approach waypoints (IAWP/FAWP) or LOM/LMM for approach path observation: --add-points 54.2882:88.0451:LOM 54.4557:89.3456:LMM



--inServerId <Port:Label>
Option allows you to assign a name to the listening input server(s).
Usage: to indicate the aircraft, data for which come from third-party sources, for example, from reverse MLAT channel: --inServerId 30104:MLAT.


I will be grateful for your feedback.

Thanks,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: rtlsdr_SCN on December 29, 2015, 03:30:35 PM
@sergsero Please don't forget the OpenWRT builds!  ;D (if you can of course)

Best regards!.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ytsejam on December 29, 2015, 04:44:02 PM
Quote from: sergsero on December 29, 2015, 03:25:00 PM
Hello,

The possible use of the new options in ModeSMixer2 v.20151226 when testing it.

--add-reference-point <Lat:Lon:Label>
The option creates on the map an alternative point to '--location', as the reference point for calculating distance and azimuth to the selected aircraft. This new value will be displayed in detail.
This reference point can be the only single with arbitrary name. Usage - mark out the runway threshold.
Usage: --add-reference-point 54.2446:82.7991:RW.



--add-points <Lat:Lon:Label [Lat1:Lon1:Label1 Lat2:Lon2:Label2]>
The option creates on the map one or several points with given coordinates. Near the points will be displayed the distance from the selected aircraft.
You can specify one or several points, their coordinates and the name must be separated from each other by a space.
Usage - mark out Initial/Final approach waypoints (IAWP/FAWP) or LOM/LMM for approach path observation: --add-points 54.2882:88.0451:LOM 54.4557:89.3456:LMM



--inServerId <Port:Label>
Option allows you to assign a name to the listening input server(s).
Usage: to indicate the aircraft, data for which come from third-party sources, for example, from reverse MLAT channel: --inServerId 30104:MLAT.


I will be grateful for your feedback.

Thanks,
sergsero

Hi sergsero,

That's the feature I was looking for a long time. Thanks a ton for the great feature, I've been using it for two days with all the AERO Waypoints and VOR/DME points, works well.



[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on December 30, 2015, 08:37:18 PM
Quote from: sergsero on December 29, 2015, 03:25:00 PM

--add-reference-point <Lat:Lon:Label>
The option creates on the map an alternative point to '--location', as the reference point for calculating distance and azimuth to the selected aircraft. This new value will be displayed in detail.
This reference point can be the only single with arbitrary name. Usage - mark out the runway threshold.
Usage: --add-reference-point 54.2446:82.7991:RW.



--add-points <Lat:Lon:Label [Lat1:Lon1:Label1 Lat2:Lon2:Label2]>
The option creates on the map one or several points with given coordinates. Near the points will be displayed the distance from the selected aircraft.
You can specify one or several points, their coordinates and the name must be separated from each other by a space.
Usage - mark out Initial/Final approach waypoints (IAWP/FAWP) or LOM/LMM for approach path observation: --add-points 54.2882:88.0451:LOM 54.4557:89.3456:LMM


Great features :-) But does not work on Safari OSX, which i use. I dusted of an old PC to test my setup, and here my points were displayed in IE.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on December 31, 2015, 06:49:06 AM
So tried to clear the browser cache, and then i was hit by the problem with aircrafts located on the upper left corner of the map. After endless retries of refresh and clear cache (started last night but gave up, and retried some times this morning), i finally got the map working again, and my points are also displayed now.
I may say that this is the first time i observe the map problem here, and i'm quite surprised how difficult it is to get it working again.
But great feature now it is working.

What about the possibility to define the CTR/TMA areas? ;-)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on December 31, 2015, 05:45:21 PM
CRTL + F5, people!
http://refreshyourcache.com/en/cache/

Quote from: larsras on December 31, 2015, 06:49:06 AM
So tried to clear the browser cache, and then i was hit by the problem with aircrafts located on the upper left corner of the map. After endless retries of refresh and clear cache (started last night but gave up, and retried some times this morning), i finally got the map working again, and my points are also displayed now.
I may say that this is the first time i observe the map problem here, and i'm quite surprised how difficult it is to get it working again.
But great feature now it is working.

What about the possibility to define the CTR/TMA areas? ;-)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on January 02, 2016, 11:25:34 AM
Hello all,

I'm trying to run modesdeco2 on a windows 10 tablet but keep coming up with an error. I have managed to get it running on windows 7 and 8.1 but am coming across this problem with windows 10:

"modesdeco2.exe - Entry Point Not Found

The procedure entry point ?in@?$codecvt@DDH@std@@QBEHAAHPBD1AAPBDPAD3AAPAD@Z could not be located in the dynamic link library c:\modesdeco2_windows20150106\modesdeco2.exe"

Has anyone else experienced this issue or know how this can be fixed please? I have checked on the web but nothing suggested so far has managed to fix this for me. I have downloaded the latest distribution package from Microsoft to get the latest dll's but that didn't fix this either.

Hope someone can help.

Many thanks

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on January 02, 2016, 12:52:47 PM
Try a more recent version of modesdeco?

The error message suggests you are using the 16 Jan 2015 version. There have been several later versions since including a very recent testing version (26 Dec 2015).

See recent posts.

Edit: http://radarspotting.com/forum/index.php/topic,2978.msg27353.html#msg27353
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on January 02, 2016, 02:50:51 PM
Thanks Ian I will try that to see if that fixes it.

Best Regards

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on January 02, 2016, 04:55:38 PM
I've just run up the latest version under Win 10 and it works okay.

I can't find a copy that version you're having problems with so can't test that.

I know this doesn't help much but it does prove the latest version will run on Win 10.

Cheers,

Keef.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on January 02, 2016, 09:19:45 PM
Keef

If you want to check the old version as a check, I've uploaded it here:

http://www.ihld.co.uk/modesdeco2_windows_20150106.zip


Why do I keep these old versions?  :-\
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on January 02, 2016, 10:28:19 PM
I keep old stuff as well.
As storage is no longer an issue I tend to keep everything, you never know when it will come in useful.

You should see my loft and my shed :-[

Anyhow, thanks for the old version Ian.

Using 20150106 did throw an error about libgcc_s_dw2-1.dll missing.
I found a copy of that in a SDR# directory I have so copied that in to the modesdeco2 folder.

I then got a message about libusb-1.0.dll missing, I also found that in the same SDR# directory so copied it as before.

Modesdeco2 then ran okay.

Whilst I couldn't reproduce the exact failure Carl had it would seem a later version will fix things for him.

Look forward to hearing how it goes...

Cheers,

Keef.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on January 03, 2016, 12:18:34 PM
I downloaded the latest test version and it worked!  :)

I just needed to copy my batch file and it worked straight away!  :)

Many thanks for your help with this Ian and Keef. Its very much appreciated.

Best Regards

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on January 04, 2016, 05:48:00 PM
Quote from: spotter.ssol on December 31, 2015, 05:45:21 PM
CRTL + F5, people!
http://refreshyourcache.com/en/cache/

Wonder what that comment were meant for. Offending people or just a stupid answer?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on January 04, 2016, 06:19:26 PM
Quote from: larsras on January 04, 2016, 05:48:00 PM
Wonder what that comment were meant for. Offending people or just a stupid answer?

I think he was trying to be helpful.  Many people do not know how to clear the browser cache which can cause many issues.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ytsejam on January 06, 2016, 01:03:17 PM
Quote from: larsras on January 04, 2016, 05:48:00 PM
Quote from: spotter.ssol on December 31, 2015, 05:45:21 PM
CRTL + F5, people!
http://refreshyourcache.com/en/cache/

Wonder what that comment were meant for. Offending people or just a stupid answer?


For users using browser on iPhone or other mobile, try to change the map type to Radar (blue) and then change back.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ytsejam on January 06, 2016, 01:06:04 PM
Quote from: larsras on December 30, 2015, 08:37:18 PM
Quote from: sergsero on December 29, 2015, 03:25:00 PM

--add-reference-point <Lat:Lon:Label>
The option creates on the map an alternative point to '--location', as the reference point for calculating distance and azimuth to the selected aircraft. This new value will be displayed in detail.
This reference point can be the only single with arbitrary name. Usage - mark out the runway threshold.
Usage: --add-reference-point 54.2446:82.7991:RW.



--add-points <Lat:Lon:Label [Lat1:Lon1:Label1 Lat2:Lon2:Label2]>

The option creates on the map one or several points with given coordinates. Near the points will be displayed the distance from the selected aircraft.
You can specify one or several points, their coordinates and the name must be separated from each other by a space.
Usage - mark out Initial/Final approach waypoints (IAWP/FAWP) or LOM/LMM for approach path observation: --add-points 54.2882:88.0451:LOM 54.4557:89.3456:LMM


Great features :-) But does not work on Safari OSX, which i use. I dusted of an old PC to test my setup, and here my points were displayed in IE.

It does work on Safari/OSX.
My picture was capture from Safari.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on January 06, 2016, 03:02:05 PM
No dude, I was just trying to help by being emphatic. This kind of problem was addressed many times in this thread, including in the same page you've stated your problem, just few posts before.  ;)

Quote from: larsras on January 04, 2016, 05:48:00 PM
Quote from: spotter.ssol on December 31, 2015, 05:45:21 PM
CRTL + F5, people!
http://refreshyourcache.com/en/cache/

Wonder what that comment were meant for. Offending people or just a stupid answer?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on January 08, 2016, 07:15:23 AM
I'm looking to get modesdeco running on beaglebone. I've tried using the rpi arm release but that fails to run.

Any help would be great
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: joma on January 11, 2016, 12:00:47 AM
Hi,

I have Modesdeco2 running in a Rpi.
Now I want to buy a Orange Pi PC ($15), but i don't know if modesdeco2 works with this board.
Anybody have tried it?

Thanks in Advance.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on January 11, 2016, 12:42:14 PM
I can confirm that modesdeco2 will run on an Orange Pi PC - just tested it.

You will need the RPi version of modesdeco2 (NOT the RPi2 version)

The link to the RPi version is no longer on this forum but I have posted previously where it can still be found:

http://forum.planefinder.net/threads/modesdeco2-and-modesmixer2-for-the-dongle.154/page-2

which links to here:
https://drive.google.com/open?id=0B7NYXizl0U6iRmpQUXp0Z1Q0SG8&authuser=0
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: GregoryGHarding on January 11, 2016, 12:51:55 PM
Quote from: IanH on January 11, 2016, 12:42:14 PM
I can confirm that modesdeco2 will run on an Orange Pi PC - just tested it.

You will need the RPi version of modesdeco2 (NOT the RPi2 version)

The link to the RPi version is no longer on this forum but I have posted previously where it can still be found:

http://forum.planefinder.net/threads/modesdeco2-and-modesmixer2-for-the-dongle.154/page-2

which links to here:
https://drive.google.com/open?id=0B7NYXizl0U6iRmpQUXp0Z1Q0SG8&authuser=0
any ideas on a beaglebone black
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 11, 2016, 01:44:00 PM
Hello,

I am grateful to IanH for helping answers.

Can only add that:

- modesmixer2 for beaglebone black is undergoing testing stage (screenshot attached).

- modesdeco2 needs to be additionally optimized for single-core processors for decreasing CPU utilization. If it is successful, this version will also be released. However, the main use of modesdeco2 will be with a Quad-core SoC, as Raspberry Pi 2 and x86.

- Also new versions for BBB will be only for Debian platform, which is now also used on Radarcape receiver:
debian@beaglebone:~$ uname -a
Linux beaglebone 4.1.13-ti-r38 #1 SMP PREEMPT Thu Dec 31 23:38:01 UTC 2015 armv7l GNU/Linux


- For new platform Opange Pi (plus) 2 of 2015 year that uses CPU Allwinner H3 (4x Cortex-A7@1.2 GHz), the version for RPi2 also should work. However, I plan to test this additionally.

Regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on January 11, 2016, 10:57:42 PM
Hi sergsero,

could you please explain what exactly the option "--filter-nocountry" do?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 12, 2016, 01:04:30 AM
Hi spotter.ssol,

--filter-nocountry — disable ICAO Country filter (default: on).

The aircraft address (ICAO24) shall be one of 16 777 214 twenty-four-bit aircraft addresses. At any one time, no address shall be assigned to more than one aircraft. All ICAO24 are separated on blocks of aircraft addresses that shall be allocated by ICAO to the State of Registry.

For example, Brazil has 262144 number of addresses in its block and any ICAO24 represents pattern: 1 1 1 0 0 1 - - - - - - - - - - - - - - - - - -.

By default, to each received message is checked that the ICAO24 has been assigned to some of State. And will be blocked if it does not belong to any block.

This option controls whether ICAO address that are not assigned to a country will be accepted as valid.

http://xdeco.org/?page_id=48 (http://xdeco.org/?page_id=48)

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on January 16, 2016, 11:25:19 AM
The post was directed to me, as you quoted me. If you have read my previous post, you would have noticed that i'm using OS X and Safari, so Ctrl+F5 is not an issue for me!
I don't believe that people in general don't know how to clear the cache, and i have now personally experienced how difficult it actually can be to fix this "planes in the map corner" issue. Clearing the cache numerous times, restart browser, restart computer, did not fix the issue, so i understand why people then ask how to fix it.

Quote from: spotter.ssol on January 06, 2016, 03:02:05 PM
No dude, I was just trying to help by being emphatic. This kind of problem was addressed many times in this thread, including in the same page you've stated your problem, just few posts before.  ;)

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on January 28, 2016, 04:26:54 PM
Anyone had success using ModesDeco2 or Mixer with Flightaware and MLAT data? I could not get MLAT data to work, even with ModesMixer
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on January 28, 2016, 05:35:11 PM
the problem is you ned an server who supprt mlat and there isnt any free.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on January 28, 2016, 06:04:47 PM
Quote from: Radio2.0 on January 28, 2016, 05:35:11 PM
the problem is you ned an server who supprt mlat and there isnt any free.
Ah? Why a need an server?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on January 28, 2016, 07:36:37 PM
You need many Station who receive an Signal and a Server must calculate in real time where the Plane is.
There is no System out there who work without an external Server.
Like Planeplotter. You share your Data to there Server and the Return you (some) Flight back.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on January 29, 2016, 09:13:20 AM
Quote from: jmaurin on January 28, 2016, 04:26:54 PM
Anyone had success using ModesDeco2 or Mixer with Flightaware and MLAT data? I could not get MLAT data to work, even with ModesMixer

What PiAware port number are you using?

It is possible to use Mode-S and MLAT data from PiAware.

PiAware will display MLAT plots that your local receiver "helps" fix.  The plot is returned from the FlightAware server via PiAware, free of charge.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on January 29, 2016, 10:16:18 AM
Original post o Flightaware here:
http://discussions.flightaware.com/ads-b-flight-tracking-f21/piaware-can-t-listen-mlat-t36701.html

My initial response was going to be: why not use dump1090-mutability (the standard feeder for Piaware) to check things are working ok before moving to modesdeco2.

But seems like lack of other MLAT feeders was the reason. It is working with modesdeco2 but stats show just a couple of MLAT aircraft.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evertonma on January 31, 2016, 04:02:31 AM
Quote from: sergsero on December 29, 2015, 03:25:00 PM

--add-points <Lat:Lon:Label [Lat1:Lon1:Label1 Lat2:Lon2:Label2]>
The option creates on the map one or several points with given coordinates. Near the points will be displayed the distance from the selected aircraft.
You can specify one or several points, their coordinates and the name must be separated from each other by a space.
Usage - mark out Initial/Final approach waypoints (IAWP/FAWP) or LOM/LMM for approach path observation: --add-points 54.2882:88.0451:LOM 54.4557:89.3456:LMM


Hi
I'm trying to set some waypoints, but I'm getting the error below:
ERROR    Parse command line unrecognised option '-23.45333:-46.96333:SP603'


The init string used was:

--add-points -23.56500:-46.82833:KOMGU [-23.52500:-46.98500:ROPEN -23.45333:-46.96333:SP603 -23.48500:-46.80222:IAWP -23.50194:-46.73380:FAWP]


It doesnt work neither running from the script, nor direct from command line.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 31, 2016, 04:18:50 AM
Hi evertonma,

Thanks for your testing. Indeed, this is a bug.

Please, temporarily use the full form of this option for the each point. I will correct this issue.
./modesmixer2 --add-points -23.56500:-46.82833:KOMGU  --add-points -23.52500:-46.98500:ROPEN  --add-points -23.45333:-46.96333:SP603  --add-points -23.48500:-46.80222:IAWP  --add-points -23.50194:-46.73380:FAWP

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20160131/evertonma.jpg)

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evertonma on January 31, 2016, 04:28:39 AM
Quote from: sergsero on January 31, 2016, 04:18:50 AM
Hi evertonma,

Thanks for your testing. Indeed, this is a bug.

Please, temporarily use the full form of this option for the each point. I will correct this issue.
./modesmixer2 --add-points -23.56500:-46.82833:KOMGU  --add-points -23.52500:-46.98500:ROPEN  --add-points -23.45333:-46.96333:SP603  --add-points -23.48500:-46.80222:IAWP  --add-points -23.50194:-46.73380:FAWP

Regards,
sergsero
Perfect! Thank you!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 31, 2016, 04:34:50 AM
I will try to make a new version quickly. This method is only temporary. And on the console you may be receive an error message.

The reason of the issue is in the negative coordinate value, which I overlooked  being itself in a positive latitude and longitude :).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evertonma on January 31, 2016, 04:36:34 AM
Quote from: sergsero on January 31, 2016, 04:18:50 AM
Hi evertonma,

Thanks for your testing. Indeed, this is a bug.

Please, temporarily use the full form of this option for the each point. I will correct this issue.
./modesmixer2 --add-points -23.56500:-46.82833:KOMGU  --add-points -23.52500:-46.98500:ROPEN  --add-points -23.45333:-46.96333:SP603  --add-points -23.48500:-46.80222:IAWP  --add-points -23.50194:-46.73380:FAWP

Regards,
sergsero
Is it possible to set the waypoints list on a separate file? It would be much easier to edit, instead of editing the script/command line.

for example: --add-points /home/pi/modesmixer/waypoints.txt (this file would contain all waypoints)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 31, 2016, 04:43:30 AM
Yes, since next version of release all parameters of setting will be set from a configuration file that can be edited online (after authorization) through a WEB interface.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evertonma on January 31, 2016, 04:45:37 AM
Quote from: sergsero on January 31, 2016, 04:43:30 AM
Yes, since next version of release all parameters of setting will be set from a configuration file that can be edited online (after authorization) through a WEB interface.

Sounds amazing!

Thanks again.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evertonma on January 31, 2016, 11:45:21 PM
Quote from: sergsero on January 31, 2016, 04:43:30 AM
Yes, since next version of release all parameters of setting will be set from a configuration file that can be edited online (after authorization) through a WEB interface.

Hi again!!
What about a way to link waypoints, creating a line, so we can create STARs and SIDs, for example? Is that possible?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on February 01, 2016, 12:10:51 AM
They're called Outlines.  ;)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on February 01, 2016, 08:35:55 AM
 ;D those data are available in the local "AIP" and is huge work to copy all together.  >:(

The majo Problem is there is an Lower and Upper Airspace and the have different Routes.
And there is also the Airport Arrival and Departure Routes.  :P

It would be great when there is an quick access Button who allow to switch between them or to show 2 (like lower + airport).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on February 01, 2016, 02:49:04 PM
Hi Sergsero,

I would like to know in which situation inSerialId would be used and if there is a similar option for outConnect command.

I just want to be able to track which remote station is sending data to my ModesMixer2 server and show the information on map.

Regards,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on February 10, 2016, 04:51:12 PM
Hi Sergsero,

Regarding --add-points feature I would like to suggest to include the type of navaid or waypoint added to the map, e.g. NDB, RNAV, VOR, and for each one, you could define a icon to be shown to match the type.

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Nevermind on February 10, 2016, 09:13:39 PM
Quote from: sergsero on January 31, 2016, 04:43:30 AM
Yes, since next version of release all parameters of setting will be set from a configuration file that can be edited online (after authorization) through a WEB interface.
My prayers were answered.  ;D
What do you think how long it takes until the next version?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Devonian on February 12, 2016, 09:13:47 AM
@ sergsero (or anyone who knows for sure)

Can I use the ModeSMixer2 program to send (push) data to a public IP address that would be listening for data on a certain port?
I think I could use the 'outConnect' argument ?

Reason:
I want to use a R-Pi on a remote hilltop that would connected to the internet by 3G/4G mobile broadband.
Typically, these 3G/4G mobile broadband equipment cannot accept an incoming request to the device (because of the providers NAT/proxying), so my only option is to 'push' the data to my home, which has a fixed public IP address.
I would be using dump1090 on the remote R-Pi and then 'push' the output to my home, over the internet.
It has the potential to 'see' over 250+ nautical miles and hundreds of aircraft!

Thanks in advance.

Nigel.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on February 12, 2016, 09:18:12 AM
Hi Nigel

Welcome.

How are you able to "push" the data via your 3G/4G service?  What device are you going to use for the 3G/4G connection?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Devonian on February 12, 2016, 09:34:25 AM
You could use one of these 'mobile dongles'
https://shop.ee.co.uk/dongles/pay-as-you-go-mobile-broadband/huawei-e3533/details

I have something similar attached to a Vigor router, which has worked during tests through router to router VPN, but if I can eliminate the router from the scenario, it would be less strain on the solar powered solution.

I'm fortunate that the remote site has shelter and will have a 250w solar panel feeding a couple of truck batteries, plus it's nearly 300 metres ASL with no obstructions for many, many miles.

Nigel.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on February 12, 2016, 10:12:05 AM
Thanks Nigel

I have a Huawei E5756:

http://www.amazon.co.uk/Huawei-E5756-Mobile-Wi-Fi-Modem/dp/B00AEJNEGE

I'm away from home at the moment so can't test if there's any "push" capability.

But the Security Settings look as though they will allow remote access from recognised IP addresses.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Devonian on February 12, 2016, 10:37:44 AM
The 'push' capability would come from ModeSMixer2 as it appears to be able to establish a TCP connection (even over the internet) to a remote IP address and therefore 'send' the data to a listening device (requires port forwarding on my home router to an internal IP address on my home network, but not a problem for me).

This is the opposite to the normal of 'get' data from a device.

I have tried to establish a 'reverse' connection over the internet from my home to the remote device, but all ISP's providing the cheap mobile broadband use NAT and proxy servers for the connections.  This makes it impossible to 'get' data - hence the idea to 'push' the data instead and that's where I believe/hope ModeSMixer2 will do the job just fine.

The only way I have been able to establish a connection with the remote device over mobile broadband is to install the 3G modem on a Vigor router, setup to use the 3G 'fallback' connection.  This requires a point to point VPN being established, which then allows me to 'get' data from the remote R-Pi.
2 problems with this are that the router will suck another 1 amp from the precious battery source and unless you setup VLAN's, there is the potential that if someone plugs into the remote router, they are then on your home network as well - not good!!
ModeSMixer2 could/would make the connection so much simpler.

Nigel.

edit:

Your  Huawei E5756 may work OK (I doubt it somehow because of NAT/proxying), but in my scenario, it is another consumer of power as the R-Pi will then need a wifi dongle to connect to the wifi of the  Huawei E5756 that then connects to the internet.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on February 12, 2016, 12:02:56 PM
Can you explain the setup you're planning to achieve?

What hardware and software will be at the hilltop location and at the other site?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Devonian on February 12, 2016, 12:40:40 PM
The hilltop would be:
R-Pi + RTL dongle + dump1090 + ModeSMixer2 + mobile broadband dongle (pushing data out)

Home would be running VRS to 'collect' the data that's pushed from the R-Pi.

After further digging and reading, I think I have it figured now and the outConnect argument would seem to do what I want.
From the http://xdeco.org website...

--outConnect <arg> — program establishes an outbound TCP connection to remote input server with[host:port]and pushes data to it in format [type] over network.
The [host:] can be an IP address or Domain name. A format [type:] can be beast, avr, avrmlat, msg or sbs30006.

example:
modesmixer2 --outConnect beast:192.168.1.20:10003 [--outConnect msg:192.168.1.20:30013]

Nigel.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on February 12, 2016, 12:49:51 PM
Thanks Nigel

What IP address and port settings will you use in VRS?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Devonian on February 12, 2016, 01:10:54 PM
That's a very good question !!

Hmmm, as it's 'pushing' to my public IP address and my home router will be port forwarding to the internal address I specify, I guess it will be that address & port I define in VRS (actually itself).

Hopefully have some time over the weekend to test things out by having the 'remote station' on my bench beside me...

Nigel.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on February 12, 2016, 01:57:20 PM
Thanks Nigel.  Please let us know how you get on.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 12, 2016, 02:20:09 PM
Hello Nigel,

It seems to me that an answer to the question was received during the discussion - just a little add.

Indeed, it is one of possible applications of the program. And it works on multiple setups that I  know for several years, including on cellular networks.
Originally on both ends were used modesmixer2 - one as push-client (modesmixer2 --outConnect beast:ip:port) and the other as listen-server (modesmixer2 --inServer port). I recommend you to use the binary format beast, as the most suitable for compact transmitting data.
With each other they more reliably maintain the tcp connection and restore it automatically in case of lost connection.

Now, however, and VRS is able to listen for incoming connections, and I think your scheme will work too.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Devonian on February 12, 2016, 07:56:59 PM
Hello sergsero,

Thanks for the hint and for a good way to implement your program - I hadn't thought of using ModeSMixer2 on both ends of the connection, it makes perfect sense.
I think I prefer it the way you suggest as it sounds more reliable and once the data is in my home, I can send it where I want (via ModeSMixer2).

I pretty much talked myself through my initial question and how to implement the 'push' - good of you to confirm it.

Kind Regards,

Nigel.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Devonian on February 15, 2016, 09:55:27 PM
@ sergsero,

I am running Debian 7 32bit (wheezy) on an Intel Atom - will any version of modesmixer2 run on my platform?

I downloaded the Ubuntu 32bit version, untar'd it and issued modesmixer2 -h (from my directory where modesmixer2 is) and got a "command not found" message.  I'm guessing it's not liking my Debian system?

Any help would be appreciated.

I have a new R-Pi2 on order and will install it on that, but for testing and probable home use, I am using the Intel Atom platform.
It is a re-purposed Thin Client, now with 2GB RAM and 120 Gb SSD for not a lot of money and runs pretty cool with no moving parts and uses 11W of electricity.
http://www.ebay.co.uk/itm/151722941399
Modified like this (but neater with right angled connectors)
http://www.parkytowers.me.uk/thin/hp/t5740/mods.shtml

I did battle with this and a 3g dongle over the weekend - all to no avail.
The R-Pi2 will have a USB wifi dongle and will likely connect to a MiFi unit like Anmer described above for my hilltop station.

Nigel.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on February 15, 2016, 10:36:51 PM
It does work in Debian. Ubuntu is not a lot different.

Try ./modesmixer2 -h instead.

That is a "./" in front of the command since the folder that you installed modesmixer2 is not in "the path".

So you need to tell Debian to look in the current folder = ./

Edit: "the path" is a list of folders that the operating system will search to find the command - if not found in the path, even though on the computer, it will give the "command not found" error message. Those who remember DOS will recall this  ::)


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Devonian on February 16, 2016, 09:39:48 AM
OK, got it to run in Wheezy.

It requires GLIB_2.15 and Debian defaults to GLIBC_2.13

To upgrade requires adding in sources.list
deb http://ftp.debian.org/debian experimental main

Then,
apt-get update

Then,
apt-get -t experimental install libc6-amd64 libc6-dev libc6-dbg

Worked for me thus far.

Nigel.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Jonas300 on February 22, 2016, 06:12:00 PM
Hello Guys,
I have a problem with ModesDeco2. Namely lack error correction?
1 callsign two planes?
And why can not write to the Modesdeco2 Basestation.sqb the callsign?

otherwise a super program



[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on February 22, 2016, 06:21:53 PM
Quote from: Jonas300 on February 22, 2016, 06:12:00 PM
Hello Guys,
I have a problem with ModesDeco2. Namely lack error correction?
1 callsign two planes?

Did you try the '--filter-dup' and '--disable-correction' commands?

http://radarspotting.com/forum/index.php/topic,2978.msg27353.html#msg27353

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Jonas300 on February 22, 2016, 07:19:14 PM
Thanks Tim, I try the same!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Jonas300 on February 22, 2016, 07:27:40 PM
TIM! Version 26122015 :( I can not download)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on February 22, 2016, 08:39:37 PM
Worked fine for me, you did click on the "download" arrow?

Tim

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on February 25, 2016, 10:56:53 AM
Hi!
Sergsero, is possible to add an option to hide our receiver location? Or, at least, change it by a few KM's, like Flightaware map. I'm using the exactly location of my receiver in '--location', but this make my home/receiver location available to anyone in the map.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Jonas300 on February 27, 2016, 08:38:59 AM
Hi sergsero!
ModesMixer 2_xp.exe X-Mas writes no Callsign in the Basestation.sqb
Greeting Sven
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Jonas300 on February 27, 2016, 01:26:00 PM
and ModesMixer2.exe X-mas too
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Jonas300 on February 27, 2016, 02:22:17 PM
possible with all versions and Explorer, Opera, Firefox

shift + F5 does not help

Greeting Sven

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on March 02, 2016, 08:00:39 AM
Hi Sergsero,

I am using MM2 on a RPi with PiAware and Dump1090-mutability and I am only looking to display Mlat info from the Flight Aware return feed. This part works fine but I am not seeing Flight No. or Squawk when I do this. I have to add port 30005 to my MM2 command line but then I get all the received aircraft, which is not what I really want.

Please see this post:

http://radarspotting.com/forum/index.php/topic,5175.msg28317.html#msg28317

Is it possible to amend something in MM2 to fix this please?

Many thanks,

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: 9aplus on March 04, 2016, 07:15:46 AM
Just one question regarding ModeSdeco2 and SDRPlay RSP, any known use (Win) and cmd line parameters ?

At the moment I am using SDRPlay with SDR# and ADSBPlugin together with ModeSMixer2 but only Mode S and ADSB are visible. Now looking for solution on Mode A and C signals...

Tnx
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 04, 2016, 11:45:10 AM
Hello all,

I am grateful for your interest to the software. I try, whenever possible, to read the forum. I'm sorry for the delay or lack of my answers.
Unfortunately, at the moment I'm in hospital after having surgery and I can't release a new (test) version of mm2/md2 that will contain some new features that have been requested.
But I hope to be able to cope with my ailments...

Best regards,
Sergey
/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Devonian on March 04, 2016, 11:52:24 AM
Hello Sergey,

Thank you for your efforts so far and hope your recovery is successful and complete.
Please keep us informed when you are able to.

Kind regards,

Nigel
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: AVDB on March 04, 2016, 06:31:04 PM
I got an rtlsdr from noelec recently and modesco2 is by far the best program for adsb.
I use modes2mixer to forward AVR to Virtual Radar and it works great.

Everytime I stop modesco2 or modes2mixer, the web interface statistics are reset, how can I store this information displayed by the modesco2/modes2mixer web interface across program restarts?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on March 04, 2016, 10:54:31 PM
AVDB,

the current version is not capable of doing this yet.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: AVDB on March 05, 2016, 01:34:53 PM
Quote from: spotter.ssol on March 04, 2016, 10:54:31 PM
AVDB,

the current version is not capable of doing this yet.
Oh? I thought that's why it used sql, thanks for clearing that up.
Any chance of this feature being added in the future?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: 9aplus on March 05, 2016, 05:41:33 PM
Quote from: sergsero on March 04, 2016, 11:45:10 AM
But I hope to be able to cope with my ailments...

Best regards,
Sergey
/sergsero
Dear Sergey,
Thank you for update, we all hope for your quick and full recovery.

SRRPlay is nice HW platform, hope you can manage something in future.
Kind Regards
Djani
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tekmanoid on March 26, 2016, 11:38:23 AM
Quote from: sergsero on August 02, 2015, 12:52:09 PM

+ added direct connection to SBS-1/3 receivers via USB (serial) port.

When connecting the receiver to Linux, in the system creates two devices:

$ ls -l /dev/ttyUSB*
crw-rw---T 1 root dialout 188, 0 aug  2 17:15 /dev/ttyUSB0
crw-rw---T 1 root dialout 188, 1 aug  2 17:15 /dev/ttyUSB1

I get:

$ ls -l /dev/ttyUSB*
crw-rw---T 1 root dialout 188, 0 aug  2 17:15 /dev/ttyUSB0

On my SBS-1 (serial 006696) I only get one /dev/ttyUSB0 when I connect it to my linux machine  :(
I tried turning the unit on and off as stated in the instructions but I am starting to fear its not possible with the early SBS version.

FYI: doing 'lsusb' gives:
"Future Technology Devices International, Ltd FT232 Serial (UART) IC"
and not
"Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC"
that I have seen online for similar issues. From what I understand the FTDI chip itself only has ONE serial-usb converter..not TWO

Thanks for any help guys
Alex
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on March 27, 2016, 12:17:09 PM
According to this page, SBS-1 with Serial < 5000 had a FT2232 chip while later ones had a FT232R. http://jetvision.de/xport.shtml

That explains your findings.

Since you only have one ttyUSB, does modesmixer work with that?

If not, you will need to see what sergsero has to say when he next visits.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tekmanoid on March 27, 2016, 01:48:28 PM
Hi Ian, thanks for the reply,

Well, when I issue the "--inSerial /dev/ttyUSB0:921600" command to modesmixer it says "Connected" but nothing...although there is traffic
By the way...I read that the SBS protocol used on the USB is proprietary, does that mean that sergsero has found a way to communicate with these boxes?

Alex
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 02, 2016, 01:36:19 PM
Hello all,

Unfortunately, I still can't cope with my illness...
I'm sorry I can't be useful and to release new versions of programs.

Of what is available now:

ModeSMixer2 v. 20160119 with new --inConnectId option.

Raspberry Pi2 Jessie: modesmixer2_rpi2_jessie_test_20160119.tgz
-----

version for Raspberry Pi3 has not been tested because I don't have this version of computer. It is possible that it will not work. Please check, if the program runs in Rpi3 at all.

Raspberry Pi3 Jessie: modesmixer2_rpi3_jessie_test_20160119.tgz


Sincerely,
Sergey
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on April 02, 2016, 01:50:23 PM
Thanks Sergey.

We all hope you get better soon so you can relax and enjoy some personal time.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 02, 2016, 02:05:25 PM
Hello Anmer,

I am thankful for your support

Sincerely,
Sergey
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LFKA on April 02, 2016, 03:58:05 PM
Hello all

Thanks sergsero for this information I waiting my Raspberry Pi3 and test .
For the moment I test modesmixer2 to my Raspberry Pi2 jessie.

Thanks again

Patrick  ;)



Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LFKA on April 09, 2016, 12:23:33 PM
Hello all,

I have my raspberry pi 3 and first test with modesmixer2 for pi3.
Here is the result no working, I have this message  -bash: ./modesmixer2: No such file or directory

I have dump1090 working in Pi 3

Best regards

Patrick
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 09, 2016, 01:49:32 PM
Hello Patrick,

Could you run in console the following command: uname -a
and report the results here?

And could you try the version for RPi2 - it also will not work?

Please check is run or not on RPi3 this binary file? modesmixer2_20160119_test_only.tgz

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LFKA on April 09, 2016, 03:34:19 PM
Hello all
Hello sergsero


Quote from: sergsero on April 09, 2016, 01:49:32 PM
Hello Patrick,

Could you run in console the following command: uname -a
and report the results here? pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux







And could you try the version for RPi2 - it also will not work?

Please check is run or not on RPi3 this binary file? modesmixer2_20160119_test_only.tgz https://dl.dropboxusercontent.com/u/79709204/MM2/20160119/Rpi3/modesmixer2_20160119_test_only.tgz (https://dl.dropboxusercontent.com/u/79709204/MM2/20160119/Rpi3/modesmixer2_20160119_test_only.tgz)

Regards,
sergsero


Regards

Patrick
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on April 11, 2016, 06:37:18 PM
Sergsero, do you have any plans to add mysql support to modesdeco2/modesmixer? Or any type of connector?

Today, I need to run an script every minute to sync BaseStation DB to my SQL database and use these data on my website. Would be very cool if ModeSdeco have an 'connector' to export data to external programs/databases.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LFKA on April 22, 2016, 01:28:15 PM
Hello all
Hello sergsero

I test again modesmixer2 to my rpi3 jessie and the result it work !
thank sergsero for your job.

Best regards

Patrick  ;)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: lucaberta on April 24, 2016, 10:38:59 AM
(dupe post, maybe we should keep everything here so I am crossposting from the other thread)

Bonjour Patrick,

I have refreshed my install and changed to the newly received Pi3 with the FlightAware stick.

I have installed dump1090-mutability, FlightAware client and am using modesmixer2 for the Pi3, but somehow I cannot see the map.

I also get Lat: NaN°  Lon: NaN°,  Dist: NaN nmi on the bottom line, though the coordinates seems to be correctly set in the command line, I did not change anything from the old Pi2 configuration. The METAR and TAF for the local airport are shown correctly.

Can you confirm that you see the map correctly?

Bye, Luca
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: LFKA on April 24, 2016, 01:21:21 PM
Quote from: lucaberta on April 24, 2016, 10:38:59 AM
(dupe post, maybe we should keep everything here so I am crossposting from the other thread)

Bonjour Patrick,

I have refreshed my install and changed to the newly received Pi3 with the FlightAware stick.

I have installed dump1090-mutability, FlightAware client and am using modesmixer2 for the Pi3, but somehow I cannot see the map.

I also get Lat: NaN°  Lon: NaN°,  Dist: NaN nmi on the bottom line, though the coordinates seems to be correctly set in the command line, I did not change anything from the old Pi2 configuration. The METAR and TAF for the local airport are shown correctly.

Can you confirm that you see the map correctly?

Bye, Luca


Bonjour Luca,

on my Rpi3 jessie I have dump1090 and modesmixer2 .
the map web page work for me.

if you have the plane top left, refresh the web page and normally it works.

Best regards

Patrick
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 24, 2016, 01:46:45 PM
Hello Luka,

I completely agree with Patrick. The web browser's cache temporarily stores images, scripts, and other parts of websites you visit in order to speed up your browsing experience.
Once clear your browser cache by any available method.

In most computer-based web browsers, to open menus used to clear your cache, cookies, and history, press Ctrl-Shift-Delete (Windows) or Command-Shift-Delete (Mac).
Or just press for reload: F5 or Ctrl-R, or for reload with override cache: Ctrl-F5, or Ctrl-Shift-R.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: lucaberta on April 24, 2016, 08:09:20 PM
Dear Patrick, dear sergsero,

thanks for your comments. And it's good to read you again sergsero, hope your health is rapidly improving!

I did try to clear the cache and I have also used different browsers (Chrome is my usual, but I also have Safari and Firefox installed) on two different OS X machines. Still no luck.

And of course, just right now during the writing of my message, the map is now working on a Chrome window on a machine where it was previously not working... I was getting NaN on lat, long and distance in the bottom right corner, and now I have numbers. Go figure!

More testing will be underway, as I am getting back into ADS-B lately and a lot of things have changed!

And you sergsero, Sir, you have written quite an amazing piece of software. Hats off to you!

Ciao, Luca
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: lucaberta on April 24, 2016, 09:16:19 PM
This is getting more and more bizarre...

Now I see the map, but I see no traffic whatsoever on it! Strange, as if I go on the dump1090 webpage I can see that I receive quite a bit of traffic...

Then I go and check the "flights" tab, and they are all shown as "mode A" and not "mode S". I have seen one traffic become S, then almost immediately it was turned into an A.

Last night, when I did the initial setup, things were working fine, except for the map. Now I have the map displayed, but no traffic on it!  >:(

Any clue on what I have done wrong?

Thanks,

Luca
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: micked on May 16, 2016, 11:41:01 AM
Hi, is thre any arg to activate bias-t from the airspy in modesdeco2 ?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 26, 2016, 12:07:28 PM
Hello micked,

The possibility of software switching on the supply voltage +4.5 V to LNA is available in version 20160520 with option --airspy-rfbias    [Enable AirSpy RF Bias +4.5V (default: off)]:
modesdeco2_windows_20160520.zip
Do not use this option without LNA for short-circuited antennas!

Attention! The voltage remains switched on after stopping the program. To switch off the voltage you need to run the program again, but without this option. Or disconnect the receiver from the USB port and connect it again.

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: AVDB on June 01, 2016, 06:09:03 PM
Hey sergsero,

Sorry to hear that you're still sick, I hope you feel better soon.

To anyone looking to run modesdeco/mixer at Windows startup without a cmd prompt window showing, use VBscript.

Here's my example, perhaps sergsero can add it alongside the sample .bat file.
It's 2 parts, we use a .bat file as usual for our actual commands, we call it via VBscript (rtlsdr.vbs) to hide the cmd window and background the process.

Change paths as required.
It works well for me, tested on Windows 10 Pro and started at logon via Task Scheduler:

rtlsdr.vbs:
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "C:\Users\Heisenberg\Downloads\modesdeco2_windows_20150815\modesdeco2_rtlsdr.bat" & Chr(34), 0
Set WinScriptHost = Nothing


modesco2_rtlsdr.bat:
@echo off
cmd /c modesdeco2.exe --device-index 1 --gain 49.6 --location 66.477823:77.905452 --web 8089 --db C:\rtlsdr\flightroutes\basestation.sqb --frdb C:\rtlsdr\flightroutes\flightroute-2016-02-24-2305.iata.sqb --silhouettes C:\rtlsdr\Silhouettes --pictures C:\rtlsdr\Pictures\sbs-r-logos --avr 32000 --beast 10003 --msg 30003 --sbs10001 10001
PAUSE
exit


Enjoy!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: hsran on July 07, 2016, 03:50:33 AM
./modesdeco2 --airspy --airspy-rfbias --airspy-sr 6 --disable-correction --location xx:xx --web 8080 --beast 30005 --localtime --metric   > /dev/null &
./modesdeco2 --airspy --airspy-rfbias --location xx:xx --web 8080 --beast 30005 --localtime --metric   > /dev/null &

ModeSDeco2 doesn't seem to work with AirSpy Mini on RasPi2.Gives Error Lost Data!


(http://img04.imgland.net/MOgGgnx.png)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 07, 2016, 09:15:25 AM
Hello hsran,

My apologies for the delay with the answer. At the moment there is only the test version, which uses a new decoder from Youssef Touil. It works on RPi3, but the CPU usage is still high.

Raspberry Pi 3 (Linux 4.4.13-v7+ #894 SMP Mon Jun 13 13:13:27 BST 2016 armv7l GNU/Linux) modesdeco2_rpi3_20160803_test.tgz

Windows modesdeco2_windows_20160803.zip

Due to changes in the airspy decoder were added several new options and one was changed to reverse:
+ add option  --airspy-workers <arg>      Set Airspy decoding worker threads (default: 1)
+ add option  --airspy-decimation <arg>   Set Airspy decoding decimation factor (default: 1)
+ add option  --airspy-packing            Enable Airspy bit packing
+ add option  --airspy-fecbits <arg>      Forward Error Correction (FEC) bits (0..2) (default: 1)
+ add option  --airspy-linearity <arg>    Select Airspy linearity gains (0..21)
+ add option  --airspy-crc-valid          Select only CRC valid frames (default: off)

+ changed option  --filter-nodup            Disable Duplicate filter (default: on)


example:
./modesdeco2 --airspy --airspy-linearity 21 --location 36.1741:104.1471 --web 8088 --db ~/data/basestation.sqb --frdb ~/data/flightroute.sqb --silhouettes ~/data/silhouettes --pictures ~/data/pictures --beast 10003 --msg 30033 --sbs10001 10001 --add-points 37.025:104.567:IWP1 37.080:106.567:IWP2



For windows version you need install Visual C++ Redistributable for Visual Studio 2015 (The Visual C++ Redistributable Packages install run-time components that are required to run C++ applications built using Visual Studio 2015) https://www.microsoft.com/en-US/download/details.aspx?id=48145 (https://www.microsoft.com/en-US/download/details.aspx?id=48145)

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on August 07, 2016, 12:54:06 PM
 ;D what is new?
Better recognise?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: herrmann-s on August 08, 2016, 02:52:52 PM
hi sergsero, you still dont have any plans to add filtering to modemixer2? perfect would be if you can use a simple txt file which modesmixer reads with similar code like planplotters condex.txt file. that shouldnt be such a big deal i guess?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: maaw on August 09, 2016, 03:31:31 PM
Hi sergsero, thank you very much for your great work. Recently I've started having this issue when accessing ModeSMixer externally via internet. Could you add an api-key to the google maps script, or allow us to pass our api key as a parameter? Thank you very much.

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: hsran on August 25, 2016, 05:13:58 AM
Quote from: sergsero on August 07, 2016, 09:15:25 AM
Hello hsran,

My apologies for the delay with the answer. At the moment there is only the test version, which uses a new decoder from Youssef Touil. It works on RPi3, but the CPU usage is still high.

Raspberry Pi 3 (Linux 4.4.13-v7+ #894 SMP Mon Jun 13 13:13:27 BST 2016 armv7l GNU/Linux) modesdeco2_rpi3_20160803_test.tgz https://drive.google.com/open?id=0B7NYXizl0U6iTzUyczkxTThJV3M (https://drive.google.com/open?id=0B7NYXizl0U6iTzUyczkxTThJV3M)

Windows modesdeco2_windows_20160803.zip https://drive.google.com/open?id=0B7NYXizl0U6iU202OHZpNThUaWM (https://drive.google.com/open?id=0B7NYXizl0U6iU202OHZpNThUaWM)

Due to changes in the airspy decoder were added several new options and one was changed to reverse:
+ add option  --airspy-workers <arg>      Set Airspy decoding worker threads (default: 1)
+ add option  --airspy-decimation <arg>   Set Airspy decoding decimation factor (default: 1)
+ add option  --airspy-packing            Enable Airspy bit packing
+ add option  --airspy-fecbits <arg>      Forward Error Correction (FEC) bits (0..2) (default: 1)
+ add option  --airspy-linearity <arg>    Select Airspy linearity gains (0..21)
+ add option  --airspy-crc-valid          Select only CRC valid frames (default: off)

+ changed option  --filter-nodup            Disable Duplicate filter (default: on)


example:
./modesdeco2 --airspy --airspy-linearity 21 --location 36.1741:104.1471 --web 8088 --db ~/data/basestation.sqb --frdb ~/data/flightroute.sqb --silhouettes ~/data/silhouettes --pictures ~/data/pictures --beast 10003 --msg 30033 --sbs10001 10001 --add-points 37.025:104.567:IWP1 37.080:106.567:IWP2



For windows version you need install Visual C++ Redistributable for Visual Studio 2015 (The Visual C++ Redistributable Packages install run-time components that are required to run C++ applications built using Visual Studio 2015) https://www.microsoft.com/en-US/download/details.aspx?id=48145 (https://www.microsoft.com/en-US/download/details.aspx?id=48145)

Best regards,
sergsero
A quick run and its working fine on a RasPi2.

Does the --rbs switch work with AirSpy?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: john3exonets on September 29, 2016, 08:58:16 PM
I'm trying to use either the modesdeco2 or the modesmixer2, and both seem to have the same issue.  I have a Raspberry Pi 3 and I'm using the latest version of both ( modesdeco2_rpi2_20150815.tgz, modesmixer2_rpi3_20160119.tgz ) that I could find, and neither one can display the map :(  The map page just says "Opps! Something went wrong", but the Java Console says:
https://maps.googleapis.com/maps/gen_204?target=api&ev=api_viewport&cad=hos...9x42.07764,size:1915x864,relsize:0.94,token:7kzmmg79o9,src:apiv3,ts:or76xe Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
js?sensor=false&libraries=geometry&v=3.exp:34 Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error_.kb @ js?sensor=false&libraries=geometry&v=3.exp:34
util.js:206 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
util.js:206 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required


Now that Google Maps requires an API key, I'm guessing none of the Raspberry Pi ARM distros have been updated to use your API Key??
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: swn on October 04, 2016, 07:51:18 PM
Quote from: maaw on August 09, 2016, 03:31:31 PM
Hi sergsero, thank you very much for your great work. Recently I've started having this issue when accessing ModeSMixer externally via internet. Could you add an api-key to the google maps script, or allow us to pass our api key as a parameter? Thank you very much.

me too.... what a pity. Also with dump1090 there is this issue with GOOGLE API KEY , but it's possibile to configure and set it....
but with ModesMixer ...

Is there a solution ? To set a google api-key ? To use openstreet map ??

Thanks

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on October 04, 2016, 08:02:01 PM
Use Virtualradar server.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on October 05, 2016, 01:31:48 AM
Hello,

At the moment new version of modesmixer2 in which can specify the API Key is tested and will soon be published for testing.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on October 09, 2016, 10:34:45 AM
Hello,

Now all Google Maps JavaScript API applications require authentication and you must include an API key when loading the API.

This version adds new option: --google-key <arg>
that allows you to specify a Google API key and include it as the value of a key parameter when loading the API.

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: A380 on October 09, 2016, 01:31:23 PM
Thanks SergSero,

with API is working fine.
Please can you add a function to BlackList Hexcodes like Groundstations (not write in the SQB and Display in the Flightgrid/Map).

Thanks
A380
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on October 11, 2016, 12:01:19 PM
Hello,

Now all Google Maps JavaScript API applications require authentication and you must include an API key when loading the API.

This version adds new option: --google-key <arg>
that allows you to specify a Google API key and include it as the value of a key parameter when loading the API.


Intel Windows: modesdeco2_windows_20161010.zip
(The Visual C++ Redistributable Packages with run-time components that are required to run this C++ application. ModeSDeco2 built using Visual Studio 2015.
Microsoft Visual C++ 2015 Redistributable Update 3 https://www.microsoft.com/en-us/download/details.aspx?id=53840 (https://www.microsoft.com/en-us/download/details.aspx?id=53840) - file vc_redist.x86.exe)

I would be grateful for help in testing this option.

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on October 11, 2016, 06:44:17 PM
Hi sergsero,

Is there a solution for the issue show in the attached image? I have cleared Firefox's cache but it doesn't work. Version in use is v.20160119.

Regards,

Mlino


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on October 12, 2016, 02:39:16 PM
Hi Mlino,

Try this method:
1. Using the menu in header go to page "Flights".
2. In table select any aircraft with coordinates.
3. Move mouse cursor to his icon of earth (right-most) and left click.
4. You will be redirected to page "Map". Probably the Google map will be distorted.
5. Press keys (possibly several times) Control+F5 or Control+Shift+R.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on October 13, 2016, 05:28:46 PM
Quote from: sergsero on October 12, 2016, 02:39:16 PM
Hi Mlino,

Try this method:
1. Using the menu in header go to page "Flights".
2. In table select any aircraft with coordinates.
3. Move mouse cursor to his icon of earth (right-most) and left click.
4. You will be redirected to page "Map". Probably the Google map will be distorted.
5. Press keys (possibly several times) Control+F5 or Control+Shift+R.

Regards,
sergsero

Hi sergsero,

The above solution doesn't work in my case. I have pressed the key combination several times but nothing has changed...

Thank you

Mlino
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on October 21, 2016, 07:37:38 PM
ModeSMixer and ModeSDeco are abandoned?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on October 21, 2016, 09:03:51 PM
Why do you suggest that?

If current versions work, why would they need updating?

Explain your negative comment!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on October 21, 2016, 09:08:24 PM
QuoteIs there a solution for the issue show in the attached image? I have cleared Firefox's cache but it doesn't work.

i had the same problem in Chrome. Clearing the cache did not work - I had to go into Chrome advanced settings and clear a lot of old data = "clear browsing data". Then it worked. Don't know the equivalent for Firefox but just clearing the cache does not seem to be enough.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on October 21, 2016, 09:08:46 PM
Quote from: IanH on October 21, 2016, 09:03:51 PM
Why do you suggest that?

If current versions work, why would they need updating?

Explain your negative comment!

Negative comment? Are you trying to cause mess? It's just a question!
And why I asked this? Simples: some time ago sergsero said that next version would have a lot of features, including the option to edit configuration in WebUI....also, there are some bugs, like that one with negative points if you add multiple......the workaround is to add the same parameter more than one, but still a bug until next version. Also, Sergsero had a health problem, meaning that they couldn't work in this program for a while. This would be more than enought to leave development of modes, since it's closed source.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on October 21, 2016, 10:16:56 PM
TL;DR
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: AVDB on October 25, 2016, 03:27:24 AM
Quote from: sergsero on October 11, 2016, 12:01:19 PM
Hello,

Now all Google Maps JavaScript API applications require authentication and you must include an API key when loading the API.

This version adds new option: --google-key <arg>
that allows you to specify a Google API key and include it as the value of a key parameter when loading the API.


Intel Windows: modesdeco2_windows_20161010.zip https://drive.google.com/open?id=0B7NYXizl0U6iQlpNUy1DLXhCUGc (https://drive.google.com/open?id=0B7NYXizl0U6iQlpNUy1DLXhCUGc)

I would be grateful for help in testing this option.

/sergsero

modesmixer2_windows_20161009 works like a charm with the new --google-key option but modesdeco2_windows_20161010 gives me this error in spite of installing Microsoft Visual C++ 2015 Redistributable Update 3:
Quote---------------------------
modesdeco2.exe - Ordinal Not Found
---------------------------
The ordinal 4684 could not be located in the dynamic link library C:\Program Files (x86)\Nmap\SSLEAY32.dll.
---------------------------
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on November 02, 2016, 11:50:02 PM
Hi sergsero! Hope you're recovering fine.

I have a remote station running dump1090, feeding BEAST to piaware at home. The piaware's MLAT return feed is then pointed to modesmixer on the same system, mixing adbs+mlat data for local view.
This setup was working, but recently I've upgraded piaware (debian package) from version 2 to 3, as required. Now I'm not getting MLAT plots anymore.

Everything still looks absolutely ok:

-FA's user page says ok and connected:
Feeder Type: PiAware (Debian Package Add-on) 3.1.0
Multilateration (MLAT): Supported / Enabled (synchronized with 28 nearby receivers)


-piaware's log says ok and connected:
Oct 28 22:01:03 ednas piaware[5204]: mlat-client(5257): Beast-format results connection with 127.0.0.1:30104: connection established
Oct 28 22:04:25 ednas piaware[5204]: 22960 msgs recv'd from the ADS-B data program at ***/8080 (243 in last 5m); 22960 msgs sent to FlightAware
Oct 28 22:09:25 ednas piaware[5204]: 23138 msgs recv'd from the ADS-B data program at ***/8080 (178 in last 5m); 23138 msgs sent to FlightAware
Oct 28 22:14:10 ednas piaware[5204]: mlat-client(5257): Receiver status: connected
Oct 28 22:14:10 ednas piaware[5204]: mlat-client(5257): Receiver status: connected
Oct 28 22:14:10 ednas piaware[5204]: mlat-client(5257): Server status: synchronized with 17 nearby receivers
Oct 28 22:14:10 ednas piaware[5204]: mlat-client(5257): Receiver: 37.7 msg/s received 27.2 msg/s processed (72%)
Oct 28 22:14:10 ednas piaware[5204]: mlat-client(5257): Server: 0.1 kB/s from server 0.0kB/s TCP to server 0.4kB/s UDP to server
Oct 28 22:14:10 ednas piaware[5204]: mlat-client(5257): Results: 63.6 positions/minute
Oct 28 22:14:10 ednas piaware[5204]: mlat-client(5257): Aircraft: 2 of 4 Mode S, 7 of 8 ADS-B used


-modesmixer's log says ok and connected:
2016-10-28 22:01:03.332 INFO inServer(30104) 127.0.0.1:50980 connected
2016-10-28 22:01:05.353 INFO inServer(30104) 127.0.0.1:50980 BEAST data stream detected


-here's some raw data from mlat client and modesmixer taken with tcpdump:
1a33ff004d4c41540092e488ad90ad11f01c586e364db11a33ff004d4c41540092e488ad90ad162c1c97fca9c8481a33ff004d4c41540092e488ad99009e2d38440062e953
1a33ff004d4c41540092e48e3890abb14590079cf07fc91a33ff004d4c41540092e48e3890abb5846848a367370e1a33ff004d4c41540092e48e389900f02eb020007871a6
1a33ff004d4c41540092e48a0990b982282de2b7c6f4281a33ff004d4c41540092e48a0990b986633e233dae39111a33ff004d4c41540092e48a09990503ac500400eb9513
1a33ff004d4c41540092e484d690b9b082828d334ad8a41a33ff004d4c41540092e484d690b9b4c49acbcbaf536f1a33ff004d4c41540092e484d699051f95500c0059e614
1a33ff004d4c41540092e488ad90abf1f0fc58a0f0adb81a33ff004d4c41540092e488ad90abf62cf8982dfd75551a33ff004d4c41540092e488ad99009f2d584400ae67e6
1a33ff004d4c41540092e48a0990b98227a1e286f83ac01a33ff004d4c41540092e48a0990b98662b4230d1beb0d1a33ff004d4c41540092e48a09990502ac500400e89fdd


Am I missing something? Is modesmixer compatible with piaware anymore? :(
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on November 03, 2016, 07:53:18 AM
Are you using the correct ports?

https://flightaware.com/adsb/faq

Can I access a streaming ADS-B data feed from FlightFeeder or PiAware? (Back to top) (Edit)

Yes, FlightFeeders and PiAware supports TCP connections to the following ports for data access:

30002 for raw/unparsed messages in AVR format

30003 for parsed messages in BaseStation format

30005 for raw/unparsed messages in Beast binary format

30105 for multilateration results (only) in Beast binary format (for FlightFeeders, the device must be running 7.x or newer software)

30106 for multilateration results (only) in extended BaseStation format (for FlightFeeders, the device must be running 7.x or newer software)


Additionally, the following data input ports are available for PiAware devices:

30104 for injecting raw messages in Beast binary format (messages will be forwarded to PiAware, shown on the local map and forwarded to port 30005 but multilateration results will not be forwarded to PiAware or port 30005)

30004 for injecting raw messages in Beast binary format (identical functionality to port 30104 but exists for backwards compatibility)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 03, 2016, 08:38:57 PM
See posts here: http://discussions.flightaware.com/ads-b-flight-tracking-f21/any-changes-to-beast-mlat-format-in-piaware-3-t38113.html

Simple answer is that modesmixer2 is NOT compatible with Piaware 3

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on November 04, 2016, 07:09:44 AM
Quote from: IanH on November 03, 2016, 08:38:57 PM
See posts here: http://discussions.flightaware.com/ads-b-flight-tracking-f21/any-changes-to-beast-mlat-format-in-piaware-3-t38113.html

Simple answer is that modesmixer2 is NOT compatible with Piaware 3

Thanks IanH! Installed version 2 and everything is OK again.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 04, 2016, 11:01:31 AM
Hello,

This version should work with the Google API key. If it's indeed confirmed in tests, it will become the release.

If you want find out what version of Linux is used, then try the console commands:
cat /etc/*-release
and
cat /proc/version


---
As for the new format of data in return channel in Piaware 3, when mlat-client now returns results as DF 18 TIS-B positions,  I hope to understand what has made Oliver with the Piaware.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 06, 2016, 04:38:56 PM
Good news - looks like modesmixer2 is mostly compatible with Piaware 3  ;D

I had been testing the output of modesmixer2 in PlanePlotter and was combining the data to sbs30006 format - that seems to be the problem.

If I combine the Piaware outputs from port 30005 and 30105 and serve it in Beast format, both ADSB and MLAT data are plotted.
modesmixer2.exe --inConnect 192.168.0.179:30005 --inConnect 192.168.0.179:30105 --outServer beast:31005

Serving as sbs10001 to BaseStation also works.

Just the sbsb30006 conversion seems to cause problems.

So returning to the question from spotter.ssol, what is your modesmixer command line?

We should be abler to get it to work with Piaware 3

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on November 06, 2016, 11:51:45 PM
modesmixer2 --inConnect xxx.xxx.xxx.xxx:8080 --outServer beast:30005 --inConnect localhost:30004

How it flows:
-MM2 connects to my remote station feeding BEAST on port 8080 (--inConnect xxx.xxx.xxx.xxx:8080);
-MM2 serves BEAST on port 30005, in which Piaware connects (--outServer beast:30005);
-Piaware's MLAT feed is serving on port 30004, in which MM2 connects (--inConnect localhost:30004).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 07, 2016, 09:57:25 AM
Piaware's MLAT feed is no longer on port 30004. The information is not so easy to find.

There are two versions of dump1090 used by Flightaware. I'm using the "mutability" version where Beast MLAT output is available on port 30105.

For the Flightaware version of dump1090, the MLAT output might be on port 30104 (which was deliberately changed from port 30004).

Try whichever applies to you and let us know which works.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on November 07, 2016, 10:12:48 AM
Quote from: IanH on November 07, 2016, 09:57:25 AM
Piaware's MLAT feed is no longer on port 30004. The information is not so easy to find.

Can I access a streaming ADS-B data feed from FlightFeeder or PiAware?

Yes, FlightFeeders and PiAware supports TCP connections to the following ports for data access:

30002 for raw/unparsed messages in AVR format

30003 for parsed messages in BaseStation format

30005 for raw/unparsed messages in Beast binary format

30105 for multilateration results (only) in Beast binary format (for FlightFeeders, the device must be running 7.x or newer software)

30106 for multilateration results (only) in extended BaseStation format (for FlightFeeders, the device must be running 7.x or newer software)

https://flightaware.com/adsb/faq#datafeed
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 07, 2016, 11:16:47 AM
Ah should have found that instead of looking in obscure places.  :-[

Anyway also found my source for default ports as set up on dump1090 according to "obj":

QuoteThe default configuration is to return results in three ways:

* Connecting to localhost:30104 and sending results there; this is used to feed the dump1090 map.
* Listening on port 30105 and providing Beast-format results
* Listening on port 30106 and providing "extended basestation" format results

VRS can be configured to connect to either 30105 or 30106 to receive mlat results. This is in addition to port 30005; you need to configure two feeds, one to receive the off-the-air data, one to receive the mlat results. You can combine them within VRS if you like

http://discussions.flightaware.com/ads-b-flight-tracking-f21/vrs-show-both-dump1090-adsb-and-fa-mlat-positions-t36086-75.html

Hence in my setup I am taking the ADSB data from the RPi on port 30005 and combining it with MLAT results sent back from Flightaware on port 30105 to serve on another port of my choosing (since I don't use the alternative VRS to combine the two data streams).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on November 07, 2016, 12:38:23 PM
Hi all!

I don't think that the problem in my case is related to port values. There's a very common misunderstanding that those values cannot be changed. They're just the default settings, and you can overwrite to other values in config. You just have to make sure that services that need to be connected are pointed to the correct ports. This capability is necessary, otherwise many users like me, with remote stations, may have trouble with firewalls from ISP's.
For more info about advanced configuration in V3, see https://flightaware.com/adsb/piaware/advanced_configuration (https://flightaware.com/adsb/piaware/advanced_configuration).
Right now I'm proceeeding tests with piaware v3 with default port values, but still no go.  :(
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on November 07, 2016, 12:41:31 PM
Just to remember, the same setup with V2 works 100%.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 07, 2016, 01:19:13 PM
Hello,

From myself I can add that was conducted experiment to verify that modesmixer2 can process non-transponder-based (Downlink Format 18 (DF=18)) 1090 MHz Extended Squitter (1090ES) messages in compliance with published standards, as Federal Aviation Administration (FAA) DO-260B Minimum Operational Performance Specifications (MOPS) were issued on December 13, 2011.

The non-transponder-based 1090ES target messages (DF=18) were properly formatted, processed at the required rate, and essentially indistinguishable from the similar transponder-based (DF=17) target messages. The transmission descriptor decoded in accordance with RTCA Document DO-181C.

As is well known, the DF=18 format used as for the generation of ADS-B Out messages in aircraft that are not equipped with Mode S transponders, as for much of general aviation. The MOPS specifically allows for the generation of ADS-B Out messages in these aircraft that may only have Mode A/C - Air Traffic Control Radar Beacon System (ATCRBS) transponders.

For these aircraft, the DF field shall be set to DF=18 (binary 10010) for all ADS-B message transmissions from transmission devices that are not Mode S transponder based systems.

At the same time these DF=18 messages can be used for Traffic Information Services-Broadcast (TIS-B). The three-bit Code Format (CF) field serves to differentiate DF=18 ADS-B messages and DF=18 TIS-B messages.

DF=18, CF=0 indicates that the Aircraft Address (AA) field holds the aircraft's permanent 24-bit International Civil Aviation Organization (ICAO) address.
DF=18, CF=1 is used for all other non-transponder-based ADS-B message generation where the AA field holds another kind of address for the transmitting ADS-B client, which can be a self-assigned "anonymous" airborne target address, a surface vehicle address, or a fixed obstruction address.

The ADS-B messages from ADS-B transmitting sub-systems that are not based on Mode S transponders shall use CF=0 or 1, according to the type of address conveyed in the AA field.

As Oliver reported: "mlat-client now returns results as DF 18 TIS-B positions." Unfortunately, I am unable to test the real MLAT data feed from FlightAware server. But if it conform to standard requirements, it shall be processed by modesmixer2.

However, I will investigate the problem further.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 07, 2016, 03:00:59 PM
I agree that any ports can be set up - I just suggested to try with the default values.

Curious it doesn't work - you obviously know what you are doing.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on November 07, 2016, 06:59:53 PM
IanH,

which version of mm2 are you running? On which OS and platform?

Quote from: IanH on November 06, 2016, 04:38:56 PM
Good news - looks like modesmixer2 is mostly compatible with Piaware 3  ;D

I had been testing the output of modesmixer2 in PlanePlotter and was combining the data to sbs30006 format - that seems to be the problem.

If I combine the Piaware outputs from port 30005 and 30105 and serve it in Beast format, both ADSB and MLAT data are plotted.
modesmixer2.exe --inConnect 192.168.0.179:30005 --inConnect 192.168.0.179:30105 --outServer beast:31005

Serving as sbs10001 to BaseStation also works.

Just the sbsb30006 conversion seems to cause problems.


So returning to the question from spotter.ssol, what is your modesmixer command line?

We should be abler to get it to work with Piaware 3
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on November 07, 2016, 08:19:58 PM
Running MM2 on Windows XP, MM2 version 20150825

(Win XP because it needs less resource than Win7  ;D)

But I can try other OS if it helps


Edit: Beast output from MM2 seems to work ok on Debian 8.6 x64 showing combined ADSB and MLAT  from both Piaware 2 and Piaware 3. Two USAF C130 targets seen but not much MLAT at this time of night

Might be worthwhile trying VRS to see how that works - can be useful for diagnosing problems
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on November 07, 2016, 11:13:17 PM
Hi sergsero,

first, thanks for your continuous support. If it could help, here's some data for you.
I've setted up 2 stations, one with piaware v2.1-5 (working mlat) and other with v3.1 (non working mlat). Both with same behavior:
-MM2 connecting to a remote station on port 8080 (--inConnect xxx.xxx.xxx.xxx:8080);
-MM2 serving BEAST on port 30005, in which Piaware connects (--outServer beast:30005);
-Piaware's MLAT feed is serving on port 30105, in which MM2 connects (--inConnect localhost:30105).

All logs saying ok an connected. I've captured traffic using tcpdump on both machines, filtering the mlat data feed on port 30105. If anybody see some error in this setup, please contribute to the discussion.

Here's some raw data flowing from V2 (working):
ff004d4c4154008de4838790af85c45014e1a74d4d1a33ff004d4c4154008de48387990487aff8040065eb87
1a33ff004d4c4154008de4838790af81862fd2ddfe37c41a33ff004d4c4154008de4838790af85c3f214d9c13ef61a33ff004d4c4154008de48387990486b058040005bcce
1a33ff004d4c4154008de482bc906511eb265796be95c41a33ff004d4c4154008de482bc906516273a972841ab601a33ff004d4c4154008de482bc9901048a380400c4b60a
1a33ff004d4c4154008de482b3908d0084a9e0c67046111a33ff004d4c4154008de482b3908d04c6b8228161ef1b1a33ff004d4c4154008de482b39905968e188c004ed281
1a33ff004d4c4154008de482b3908bf0848be0aafb85ee1a33ff004d4c4154008de482b3908bf4c6982265f6f2ca1a33ff004d4c4154008de482b39905928e188c0042f9b9
1a33ff004d4c4154008de482bc906511eafe57c84545891a33ff004d4c4154008de482bc90651627149759bbdac61a33ff004d4c4154008de482bc9901038a58040002061b
1a33ff004d4c4154008de48617909b90c54ffd8d0109521a33ff004d4c4154008de48617909b95064a3ec2ddba5a1a33ff004d4c4154008de486179900c42d905c0057ddf4
1a33ff004d4c4154008de482bc906511ead657f86fbac01a33ff004d4c4154008de482bc90651626ec9788fdd02a1a33ff004d4c4154008de482bc9901028a7804004470fc1a33ff004d4c4154008de48d4290914154bc0d6262cc111a33ff004d4c4154008de48d4290914593524e4db48c721a33ff004d4c4154008de48d429900f02a106000d4c1f1
1a33ff004d4c4154008de4838790af918547d2b71194051a33ff004d4c4154008de4838790af95c30e14b4ad5b5f1a33ff004d4c4154008de48387990485b05004006e0194
1a33ff004d4c4154008de482b3908bb08445e03e1c4f311a33ff004d4c4154008de482b3908bb4c65421fb18ea601a33ff004d4c4154008de482b399058d8e3888001e7d6a
1a33ff004d4c4154008de48617909bc0c68bfddddbdf841a33ff004d4c4154008de48617909bc5077e3f115eb1be1a33ff004d4c4154008de486179900c52df05c009b5341
1a33ff004d4c4154008de4838790af9183b9d275579d1c1a33ff004d4c4154008de4838790af95c18614738552d81a33ff004d4c4154008de48387990485b07004002b7dbd
1a33ff004d4c4154008de482bc906511ea9e5846d7dff31a33ff004d4c4154008de482bc90651626b497d538118b1a33ff004d4c4154008de482bc9901028a98040061f02a
1a33ff004d4c4154008de482b3908b6083eddfa1fa7db41a33ff004d4c4154008de482b3908b64c5fe2162ce718f1a33ff004d4c4154008de482b399058c8e188800580b8d
1a33ff004d4c4154008de4838790af918313d25b8c7ae31a33ff004d4c4154008de4838790af95c0e414597b2eb51a33ff004d4c4154008de48387990485b0b004004b8142
1a33ff004d4c4154008de48617909d10c84dfe596ca7ee1a33ff004d4c4154008de48617909d15093a3f8b0ac7e21a33ff004d4c4154008de486179900c72e305c0081bdd7
1a33ff004d4c4154008de48d429091c156d20e1a1ad2beaf1a33ff004d4c4154008de48d429091c595604f0247ae821a33ff004d4c4154008de48d429900ed29b060002065e6
1a33ff004d4c4154008de482bc906511ea6458925e4cf11a33ff004d4c4154008de482bc906516267c981f68ea2b1a33ff004d4c4154008de482bc9901028a98040061f02a
1a33ff004d4c4154008de482b39089f08385dedd083bd11a33ff004d4c4154008de482b39089f4c59820a187eb841a33ff004d4c4154008de482b399058a8df8840043e80a
1a33ff004d4c4154008de4838790af91821fd231fc5a1b1a33ff004d4c4154008de4838790af95bff21430c42e7d1a33ff004d4c4154008de48387990486b0d00400811a1a6b
1a33ff004d4c4154008de48d429091b156d20e1a1a41f80f1a33ff004d4c4154008de48d429091b595604f02d4e8221a33ff004d4c4154008de48d429900ed29b05c00b6a3ef
1a33ff004d4c4154008de482bc906511ea3a58c448eca81a33ff004d4c4154008de482bc906516265298516c1a1aad1a33ff004d4c4154008de482bc9901018ad80400ee172a
1a33ff004d4c4154008de48d429091f1581e0e8ce597321a33ff004d4c4154008de48d429091f596a64f7224fb261a33ff004d4c4154008de48d429900eb29905800c1d762
1a33ff004d4c4154008de482bc906511e9ea59288252781a33ff004d4c4154008de482bc906516260498b31207621a33ff004d4c4154008de482bc9901018af80400ab6b03
1a33ff004d4c4154008de4838790af818133d209ad2f2f1a33ff004d4c4154008de4838790af85bf0a14099c415e1a33ff004d4c4154008de48387990486b0d80400efb863
1a33ff004d4c4154008de48d4290930158aa0ebe5daa551a33ff004d4c4154008de48d4290930597304fa4ec939f1a33ff004d4c4154008de48d429900ed29d058004111941a33ff004d4c4154008de482b390898082fdddf3df61301a33ff004d4c4154008de482b3908984c5121fbb0fff251a33ff004d4c4154008de482b39905898df8840046f758
1a33ff004d4c4154008de482bc906511e9be595ee0391b1a33ff004d4c4154008de482bc90651625da98e86d18301a33ff004d4c4154008de482bc9901018b180400a51686
1a33ff004d4c4154008de4838790af818035d1d5bc10581a33ff004d4c4154008de4838790af85be1213d6d5bfa51a33ff004d4c4154008de4838799048ab1380400f5b8ae
1a33ff004d4c4154008de48d42909311593e0ef0453d7e1a33ff004d4c4154008de48d4290931597c24fd5c2053a1a33ff004d4c4154008de48d429900ef2a1058005bff02
1a33ff004d4c4154008de482bc906511e98259aa246ed01a33ff004d4c4154008de482bc906516259e99332541e01a33ff004d4c4154008de482bc9901018b180400a51686
1a33ff004d4c4154008de482b390896082e7ddcdaf23ca1a33ff004d4c4154008de482b3908964c4fc1f9664dd841a33ff004d4c4154008de482b39905898e1884001f707b
1a33ff004d4c4154008de482b39087f0827bdd0de702f11a33ff004d4c4154008de482b39087f4c4921ed9393bf31a33ff004d4c4154008de482b39905878df88400549f8c
1a33ff004d4c4154008de482b39087b0827bdcbcd26f501a33ff004d4c4154008de482b39087b4c4921e8a0703d91a33ff004d4c4154008de482b39905888d3888006d5b69
1a33ff004d4c4154008de482b3908790825bdc72f29b581a33ff004d4c4154008de482b3908794c4741e426bd6851a33ff004d4c4154008de482b39905868cf88800343211
1a33ff004d4c4154008de482b39087208217db9e25dae51a33ff004d4c4154008de482b3908724c42e1d718ed99e1a33ff004d4c4154008de482b399058c8c588800850979


And here's some raw data from V3 (non working):
1a33ff004d4c41540092e482bc9065120e05d22816efa41a33ff004d4c41540092e482bc906516498212fa7cc6ad1a33ff004d4c41540092e482bc99010b84b00400c48dcb
1a33ff004d4c41540092e47e759099510d1dbe558767491a33ff004d4c41540092e47e759099554ce400b04d7e181a33ff004d4c41540092e47e759904f1adb8800075f87e
1a33ff004d4c41540092e482bc9065120defd2783901b51a33ff004d4c41540092e482bc906516496e13480883441a33ff004d4c41540092e482bc99010b84b00400c48dcb
1a33ff004d4c41540092e4838790af922d0bc59de0c6e21a33ff004d4c41540092e4838790af96680606a8aa99de1a33ff004d4c41540092e483879905808ab00800fc79e0
1a33ff004d4c41540092e482b3909b80bdda50a73ef8e81a33ff004d4c41540092e482b3909b84fef4905ac94b981a33ff004d4c41540092e482b39905b68d90040093b830
1a33ff004d4c41540092e4838790af922cedc54dc627991a33ff004d4c41540092e4838790af9667e8065abb167d1a33ff004d4c41540092e483879905818ab00800ff732e
1a33ff004d4c41540092e482bc9065120dddd2ad4138491a33ff004d4c41540092e482bc906516495c137c8a0aa11a33ff004d4c41540092e482bc99010b84b00400c48dcb1a33ff004d4c41540092e482b3909b80bd9c50499de96d1a33ff004d4c41540092e482b3909b84feb88ffd59c3121a33ff004d4c41540092e482b39905b98dd80400668070
1a33ff004d4c41540092e47e759097b10b8bbdc5c0708a1a33ff004d4c41540092e47e759097b54b580023fc1cb91a33ff004d4c41540092e47e759904f2acd88800e4f2041a33ff004d4c41540092e4838790af922c99c48e16d6c41a33ff004d4c41540092e4838790af966796059d02ce9c1a33ff004d4c41540092e483879905808ab00800fc79e0
1a33ff004d4c41540092e482bc9065120dc3d2e22204ff1a33ff004d4c41540092e482bc906516494213b011d8c51a33ff004d4c41540092e482bc99010a84f004004d7f57
1a33ff004d4c41540092e4838790af922c91c46982e0f81a33ff004d4c41540092e4838790af96678e0579b454a21a33ff004d4c41540092e4838799057f8a7008006432ac
1a33ff004d4c41540092e482bc9065120db1d34e23eebc1a33ff004d4c41540092e482bc9065164932141a1a2f93291a33ff004d4c41540092e482bc99010b84b00400c48dcb
1a33ff004d4c41540092e4838790af922c73c41bbe76bf1a33ff004d4c41540092e4838790af966770052d0d90641a33ff004d4c41540092e483879905808a7008009c851f
1a33ff004d4c41540092e482b3909b70bd084f1dcde2731a33ff004d4c41540092e482b3909b74fe268ed63559c61a33ff004d4c41540092e482b39905b68db80400b866111a33ff004d4c41540092e482bc9065120d9fd381dfecf31a33ff004d4c41540092e482bc9065164920144cea382e1a33ff004d4c41540092e482bc99010a84b00400c78705
1a33ff004d4c41540092e482b3909b80bcee4ec70cb7561a33ff004d4c41540092e482b3909b84fe0c8e82efa1421a33ff004d4c41540092e482b39905b58d700400b327b4
1a33ff004d4c41540092e47e759097010949bcca3615b01a33ff004d4c41540092e47e759097054923ff2deb82681a33ff004d4c41540092e47e759904fcab3880007084bf
1a33ff004d4c41540092e4838790af922c0dc331c5601d1a33ff004d4c41540092e4838790af96670c04474a80241a33ff004d4c41540092e483879905818a7008009f8fd1
1a33ff004d4c41540092e482b3909b70bc8e4e18d123b41a33ff004d4c41540092e482b3909b74fdae8dd7201a1a1f1a33ff004d4c41540092e482b39905b58db80400bd7943
1a33ff004d4c41540092e4838790af822bd9c29e5bbd171a33ff004d4c41540092e4838790af8666d803b7f4bc341a33ff004d4c41540092e4838799057e8a300800edc030

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on November 07, 2016, 11:34:24 PM
Thanks again, IanH. Followed your suggestion and installed VRS, pointed to the same machine where piaware V3 is installed. MLAT feed from V3 is working on VRS.
I'm concluding that the problem may be two things:
-the way I set up to connect things in V3 is not right, even if it's working for V2 OR;
-MM2 is having trouble to understand the mlat format.
Let's wait and see if we discover anything new about this. I'm done for today.  ;)

Quote from: IanH on November 07, 2016, 08:19:58 PM
Running MM2 on Windows XP, MM2 version 20150825

(Win XP because it needs less resource than Win7  ;D)

But I can try other OS if it helps


Edit: Beast output from MM2 seems to work ok on Debian 8.6 x64 showing combined ADSB and MLAT  from both Piaware 2 and Piaware 3. Two USAF C130 targets seen but not much MLAT at this time of night

Might be worthwhile trying VRS to see how that works - can be useful for diagnosing problems
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 08, 2016, 12:22:03 AM
Hi spotter.ssol,

Thank you for the information. I'll try to fix the issue using the above sample messages.
It is possible that I will need your help with getting more data, preferably as file in binary data format beast, which I can somewhere download.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on November 08, 2016, 11:25:02 AM
Hi sergsero,

I've sent you by PM a live link to my MLAT return feed (v3.1). Please report if you have success connecting.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on November 16, 2016, 06:44:25 PM
PROBLEM FIXED. THE flightroute.sqb DATABASE WAS CORRUPT. I HAVE DOWNLOADED AGAIN AND WORKED. Thanks.

Hello to everyone
I have installed and run ModeSDeco2 and a very happy with it. Added BaseStation.sqb and it is updating the database and adding new aircraft.
My problem is with flightroute.sqb database. It is placed in the same flder than  BaseStation.sqb and the route in my .bat file is the same.
When I run the bat I get errors:

2016-11-16 19:02:46.018  INFO     Magnetic declination value was calculated
2016-11-16 19:02:46.102  INFO     Device: 0 mnf: Realtek prod: RTL2838UHIDIR serial: 00000001
2016-11-16 19:02:46.646  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
2016-11-16 19:02:46.650  INFO     Freq Correction: 0 ppm
2016-11-16 19:02:46.703  INFO     Gain: 49.6 dB
2016-11-16 19:02:46.710  INFO     AGC: Off
2016-11-16 19:02:46.711  INFO     Start Beast Server on port 30005
2016-11-16 19:02:46.712  INFO     Start MSG Server on port 30003
2016-11-16 19:02:46.716  INFO     Open DB session
2016-11-16 19:02:54.316  ERROR    sqlite3_prepare_v2() SELECT route FROM FlightRoute WHERE flight = ? ORDER BY updatetime DESC LIMIT 1; no such table: FlightRoute
2016-11-16 19:02:54.319  ERROR    sqlite3_step() no such table: FlightRoute 1
2016-11-16 19:03:33.619  ERROR    sqlite3_prepare_v2() SELECT route FROM FlightRoute WHERE flight = ? ORDER BY updatetime DESC LIMIT 1; no such table: FlightRoute
2016-11-16 19:03:36.918  ERROR    sqlite3_step() no such table: FlightRoute 1
2016-11-16 19:04:06.438  ERROR    sqlite3_prepare_v2() SELECT route FROM FlightRoute WHERE flight = ? ORDER BY updatetime DESC LIMIT 1; no such table: FlightRoute
2016-11-16 19:04:06.472  ERROR    sqlite3_step() no such table: FlightRoute 1
2016-11-16 19:04:09.873  ERROR    sqlite3_prepare_v2() SELECT route FROM FlightRoute WHERE flight = ? ORDER BY updatetime DESC LIMIT 1; no such table: FlightRoute
2016-11-16 19:04:09.879  ERROR    sqlite3_step() no such table: FlightRoute 1
2016-11-16 19:04:53.934  ERROR    sqlite3_prepare_v2() SELECT route FROM FlightRoute WHERE flight = ? ORDER BY updatetime DESC LIMIT 1; no such table: FlightRoute
2016-11-16 19:04:53.934  ERROR    sqlite3_step() no such table: FlightRoute 1
2016-11-16 19:07:57.727  ERROR    sqlite3_prepare_v2() SELECT route FROM FlightRoute WHERE flight = ? ORDER BY updatetime DESC LIMIT 1; no such table: FlightRoute
2016-11-16 19:07:57.732  ERROR    sqlite3_step() no such table: FlightRoute 1
2016-11-16 19:13:37.299  ERROR    sqlite3_prepare_v2() SELECT route FROM FlightRoute WHERE flight = ? ORDER BY updatetime DESC LIMIT 1; no such table: FlightRoute
2016-11-16 19:13:37.299  ERROR    sqlite3_step() no such table: FlightRoute 1
2016-11-16 19:20:38.343  ERROR    sqlite3_prepare_v2() SELECT route FROM FlightRoute WHERE flight = ? ORDER BY updatetime DESC LIMIT 1; no such table: FlightRoute
2016-11-16 19:20:38.343  ERROR    sqlite3_step() no such table: FlightRoute 1
2016-11-16 19:23:27.510  ERROR    sqlite3_prepare_v2() SELECT route FROM FlightRoute WHERE flight = ? ORDER BY updatetime DESC LIMIT 1; no such table: FlightRoute
2016-11-16 19:23:27.510  ERROR    sqlite3_step() no such table: FlightRoute 1
2016-11-16 19:24:45.924  ERROR    sqlite3_prepare_v2() SELECT route FROM FlightRoute WHERE flight = ? ORDER BY updatetime DESC LIMIT 1; no such table: FlightRoute
2016-11-16 19:24:45.924  ERROR    sqlite3_step() no such table: FlightRoute 1
2016-11-16 19:30:38.829  ERROR    sqlite3_prepare_v2() SELECT route FROM FlightRoute WHERE flight = ? ORDER BY updatetime DESC LIMIT 1; no such table: FlightRoute
2016-11-16 19:30:39.122  ERROR    sqlite3_step() no such table: FlightRoute 1

If I delete --frdb D:\_MODESDECO\dbase\flightroute.sqb from the .bat file all works fine (without routes, of course)

Can anyone help?

Thanks in advance

Antonio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: AVDB on November 23, 2016, 09:13:40 PM
Any chance for an OpenWRT/LEDE x86/64 binary, the Ubuntu binary won't work?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 06, 2016, 05:57:20 PM
Sergsero,

I'm running modesdeco2_windows_20160803 on Windows 10 64-bit with an Airspy (rc10 firmware).   This version seems to run great, but the --rbs switch doesn't seem to enable mode A/C.

If I run the previous version of modesdeco2 (modesdeco2_windows_20160520), it crashes on me.   But the --rbs does output the mode A/C data.

Do you have any idea why --rbs is not enabling Mode A/C decode on modesdeco2_windows_20160803 ?

Thank you,

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 06, 2016, 06:02:13 PM
Quote from: ktso44615 on December 06, 2016, 05:57:20 PM
Sergsero,

I'm running modesdeco2_windows_20160803 on Windows 10 64-bit with an Airspy (rc10 firmware).   This version seems to run great, but the --rbs switch doesn't seem to enable mode A/C.

If I run the previous version of modesdeco2 (modesdeco2_windows_20160520), it crashes on me.   But the --rbs does output the mode A/C data.

Do you have any idea why --rbs is not enabling Mode A/C decode on modesdeco2_windows_20160803 ?

Thank you,

Mike

I should have mentioned that I run the following command line:

modesdeco2.exe --airspy --location 40.xxxxxx:-81.xxxxxx --beast 30005 --airspy-if 15 --airspy-lna 15 --airspy-mixer 15 --web 8181 --rbs --filter-nocountry --filter-nodup --airspy-packing

I'll be installing a HAB/nevis filter/amp today and will be attempting to use the --airspy-rfbias option as well.

Mike


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 10, 2016, 09:48:15 AM
Hello Mike,

Sorry, in versions with airspy the option "--rbs" (Mode A/C decode) is only valid when working with rtl2832 dongle.


p.s. In first post of the thread was updated version of modesdeco2 on 20161031 for Windows. Soon there will be versions for other operating systems.

Note that actions of some options were changed.
Anti-duplication filter option "--filter-nodup" now is "On" by default and its use opposite disable the anti-duplication filter.

Regards,
Sergey
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 11, 2016, 04:57:02 PM
SergSero,

I apologize for not seeing that the first post had the most updated version of ModesDeco2.

I have an issue though.   On the latest Windows version (20161031), I can't enable the bias tee.

--airspy-rfbias on # gives the problem below
--airspy-rfbias 1 # gives the problem below

2016-12-11 11:51:09.590  ERROR    Parse command line option '--airspy-rfbias' is ambiguous and matches different versions of '--airspy-rfbias'
Press any key to continue . . .

My command line is pretty simple:

modesdeco2.exe --airspy --airspy-packing 1 --airspy-rfbias on --location 40.xxxx:-81.xxxx --beast 30005 --web 8585

The above command line worked in the 201608 windows version.

I tried:

--airspy-rfbias
--airspy-rfbias on
--airspy-rfbias 1

None of those options work, and of course it default's to having the bias tee turned off [which makes the unit totally deaf if you have an amp in place that needs to be powered via the bias tee].

mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 12, 2016, 05:26:12 PM
Sergsero,

In addition to my message directly above, could you provide me with some clarification of what these options in ModesDeco2 do?

  --avr arg                 Enable AVR output listen port (default: off)
  --avrmlat arg             Enable AVR MLAT output listen port (default: off)
  --avrmlatas arg           Enable AVR MLAT AirSpy output listen port (default: off)

Are these providing MLAT-compatible data _out_ that should be sent _to_ MLAT servers via MLAT clients?   Or, are these expecting input [return MLAT results] _from_ MLAT clients?

I'm unclear if ModesDeco2 is supposed to be capable of "being" an MLAT client and sending out MLAT data directly to an MLAT server, or if those ports are to accept MLAT results _from_ MLAT servers in order to display MLAT results in the web interface?

And can you tell me the difference between avrmlat and avrmlates ?   for example, in what case would I use avrmlates instead of avrmlat ?

Thanks!

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 13, 2016, 12:52:49 PM
Mike,

Thank you for your interest in the program.
The option "--airspy-rfbias" really contains a bug in version 20161031. Thanks for your help. This is already fixed in the new version. At the moment the program undergoes more testing.

About avr* output formats.
Modesdeco2 works with SDR receiver and can output only their own data, which were decoded from.
AVR is a basic ASCII RAW format, such as *8D7582F658C381C31D2F326C4478;.
AVRMLAT and AVRMLATAS are the same output formats, but additionally contain TIMESTAMP of moment of their arrivals to decoder - @00000809F8928D7582F658C37515433512A84884; and *8D7582F658C385162534AAD6BD61;28CE3B85;14; (variant of MLAT from airspy)

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 14, 2016, 10:58:41 AM
Quote from: ktso44615 on December 12, 2016, 05:26:12 PM
I'm unclear if ModesDeco2 is supposed to be capable of "being" an MLAT client and sending out MLAT data directly to an MLAT server, or if those ports are to accept MLAT results _from_ MLAT servers in order to display MLAT results in the web interface?

As far as I know, neither of the two. ModesDeco2 is only used to provide the data output on a port (server mode), it cannot send the data to a server, neither it can pull data from an external source. But you can use it in combo with ModexMixer2, that is capable of retrieving the data from ModesDeco2 or any other feeder like dump1090 (inConnect), it can accept an incoming stream, in example from MLAT mutuality (inServer) and it can send the data anywhere else (outConnect) and listen the request from an out source (outServer), and it has an identical web interface of ModesDeco2, where you can show all the data "combined".
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 14, 2016, 11:02:18 AM
Quote from: arctic on December 14, 2016, 10:58:41 AM
Quote from: ktso44615 on December 12, 2016, 05:26:12 PM
I'm unclear if ModesDeco2 is supposed to be capable of "being" an MLAT client and sending out MLAT data directly to an MLAT server, or if those ports are to accept MLAT results _from_ MLAT servers in order to display MLAT results in the web interface?

As far as I know, neither of the two. ModesDeco2 is only used to provide the data output on a port (server mode), it cannot send the data to a server, neither it can pull data from an external source. But you can use it in combo with ModexMixer2, that is capable of retrieving the data from ModesDeco2 or any other feeder like dump1090 (inConnect), it can accept an incoming stream, in example from MLAT mutuality (inServer) and it can send the data anywhere else (outConnect) and listen the request from an out source (outServer), and it has an identical web interface of ModesDeco2, where you can show all the data "combined".

Thanks.  I simply got confused for a moment.   Of course, I still don't understand why there is an avrmlatas option, considering that I know of nothing that uses that / can use that at this time.

Per your help in another forum, I'm using ModesDeco2 with the Airspy in conjunction with ModesMixer2 and mlat-client.

I'm waiting for the new [in testing] release of ModesDeco2 though, since I really need to have the rfbias option working so that the amp works.    If the amp isn't on, everything behind it is totally deaf in my case.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 14, 2016, 04:16:08 PM
Quote from: ktso44615 on December 14, 2016, 11:02:18 AM
Thanks.  I simply got confused for a moment.   Of course, I still don't understand why there is an avrmlatas option, considering that I know of nothing that uses that / can use that at this time.

It's just different formats... they are the for compatibility.

QuotePer your help in another forum, I'm using ModesDeco2 with the Airspy in conjunction with ModesMixer2 and mlat-client.

I'm waiting for the new [in testing] release of ModesDeco2 though, since I really need to have the rfbias option working so that the amp works.    If the amp isn't on, everything behind it is totally deaf in my case.

Atm i'm using a standard rtl.. as I use the airspy for the airband... however what's the issue with the rfbias? I have a LNA on the Airspy and when I used it, it was working fine for me with ModesDeco2 and this command line:

modesdeco2.exe --airspy --airspy-rfbias --airspy-if 11 --airspy-mixer 11 --airspy-lna 8 --location X:X --web 8088 --beast 30005
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 14, 2016, 04:25:55 PM
Quote from: arctic on December 14, 2016, 04:16:08 PM
Quote from: ktso44615 on December 14, 2016, 11:02:18 AM
Thanks.  I simply got confused for a moment.   Of course, I still don't understand why there is an avrmlatas option, considering that I know of nothing that uses that / can use that at this time.

It's just different formats... they are the for compatibility.

QuotePer your help in another forum, I'm using ModesDeco2 with the Airspy in conjunction with ModesMixer2 and mlat-client.

I'm waiting for the new [in testing] release of ModesDeco2 though, since I really need to have the rfbias option working so that the amp works.    If the amp isn't on, everything behind it is totally deaf in my case.

Atm i'm using a standard rtl.. as I use the airspy for the airband... however what's the issue with the rfbias? I have a LNA on the Airspy and when I used it, it was working fine for me with ModesDeco2 and this command line:

modesdeco2.exe --airspy --airspy-rfbias --airspy-if 11 --airspy-mixer 11 --airspy-lna 8 --location X:X --web 8088 --beast 30005

See my message above from Dec 11th.    --airspy-rfbias is not a valid switch [supposed to be, but is a bug] - and is turned off by default in the latest version (201061031 or whatever).

20160520 -- crashes on me ; doesn't do --airspy-packing ; --rbs works
201608xx -- works fine ; does --airspy-packing; doesn't support Mode A/C (at least with packing)
20161031 -- latest thing out, but I can't use it / try it because I have no amp if I do

So I'm waiting for the release of the next version.   In the meantime I'm using the 201608xx version.

Mike

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 14, 2016, 08:44:47 PM
Maybe I was using the 1010 version....

Returning to my previous message, unfortunately I have verified that MLAT doesn't work in ModeSMixer2 web plugin, but it outputs the  merged data correctly (this is not the full command line, but only the relevant part):

modesmixer2 --inConnect 127.0.0.1:30005 --inServer 30107 --outServer beast:30108

The above receives the receiver data (127.0.0.1:30005), the MLAT data (returned from mlat-client and pushed via mlat-client connect to the port 30107), and output everything to the port 30108 in beast format.

When I connect to the ModeSMixer2 web page, the MLAT airplanes aren't there, there's only those ones received directly from the receiver. But if I connect to the port 30108 with an external viewer (in example VRS), all the airplanes are there: the ones received directly and the ones returned by the MLAT calculation.

I believe it is a bug, because with dump1090 it works (this is not the full command line, but only the relevant part):

dump1090-mutability --net-bi-port 30107 --net-bo-port 30005

...when I connect to the dump1090 webpage, I see both the airplanes coming from the receiver, and also those ones coming from from the MLAT on the port 30107.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 15, 2016, 02:54:27 AM
Although I don't have the data to back it up, I agree with you.  I've tried countless permutations and don't seem to be able to do anything useful with MLAT data with ModesMixer.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 15, 2016, 01:04:49 PM
I did an additional test... so as I wrote in my previous post: when connecting to the port 30108 (output from ModesMixer2) with VRS, all the airplanes are visualized, so I tried to run a second instance of ModesMixer2, conneting to the same 30108 port... but the MLAT airplanes were missing again. So it's not properly a bug, it's ModesMixer2 not supporting MLAT at all, unfortunately.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on December 15, 2016, 01:09:58 PM
Quoteall the airplanes are visualized

Including MLAT plots?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 15, 2016, 01:13:22 PM
Quote from: arctic on December 15, 2016, 01:04:49 PM
I did an additional test... so as I wrote in my previous post: when connecting to the port 30108 (output from ModesMixer2) with VRS, all the airplanes are visualized, so I tried to run a second instance of ModesMixer2, conneting to the same 30108 port... but the MLAT airplanes were missing again. So it's not properly a bug, it's ModesMixer2 not supporting MLAT at all, unfortunately.

Ok, so you are saying that ModesMixer2 isn't having a problem with taking MLAT data in and feeding it back out on another port / in another format -- the problem lies with ModesMixer2 displaying any MLAT results locally in its web interface.  Is that right?

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 15, 2016, 02:36:31 PM
Quote from: Anmer on December 15, 2016, 01:09:58 PM
Quoteall the airplanes are visualized

Including MLAT plots?

What do you mean with "plots"? in VRS they are shown like other planes, but the callsign/icao has a "*" next to the name.

Here's an example (I cut the image) the first aircraft has a mode-s transmitter, but the position is sent back by MLAT to me and then feeded to VRS:

(http://i.imgur.com/Oa0XWTI.png)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 15, 2016, 02:41:03 PM
Quote from: ktso44615 on December 15, 2016, 01:13:22 PM
Quote from: arctic on December 15, 2016, 01:04:49 PM
I did an additional test... so as I wrote in my previous post: when connecting to the port 30108 (output from ModesMixer2) with VRS, all the airplanes are visualized, so I tried to run a second instance of ModesMixer2, conneting to the same 30108 port... but the MLAT airplanes were missing again. So it's not properly a bug, it's ModesMixer2 not supporting MLAT at all, unfortunately.

Ok, so you are saying that ModesMixer2 isn't having a problem with taking MLAT data in and feeding it back out on another port / in another format -- the problem lies with ModesMixer2 displaying any MLAT results locally in its web interface.  Is that right?

Mike

Exact... they are merged together with the other data and passed to the output port, but the ModesMixer2 is unable to visualize them in its own web interface.
I'm not sure about the difference of a direct ADSB data, and those ones reported back by dump1090-mutability, but both dump1090 web interface and VRS are capable of handling it and visualize the MLAT planes, ModesMixer2 doesn't, maybe it gets confused by the fact that the airplane is read two times: one directly from the ADSB receiver (but without the position) and the other reported back via MLAT (with the position) and it may discard the second packet believing it is a duplicate (I'm just guessing).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on December 15, 2016, 02:46:54 PM
Quote from: arctic on December 15, 2016, 02:36:31 PM
What do you mean with "plots"? in VRS they are shown like other planes, but the callsign/icao has a "*" next to the name.

MLAT positions are "plotted" as opposed to the aircraft position being transmitted in the Mode-S message.  However, I would expect the Mode-S message to include a flight ID (callsign) and ICAO hex code.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 15, 2016, 02:52:09 PM
Quote from: Anmer on December 15, 2016, 02:46:54 PM
Quote from: arctic on December 15, 2016, 02:36:31 PM
What do you mean with "plots"? in VRS they are shown like other planes, but the callsign/icao has a "*" next to the name.

MLAT positions are "plotted" as opposed to the aircraft position being transmitted in the Mode-S message.  However, I would expect the Mode-S message to include a flight ID (callsign) and ICAO hex code.

Do you mean the triangulation... yes I received the mode-s signal, and i transmit my data to the server, if there's 2 or more people on the server, receiving the same airplane and trasmitting MLAT (timecode), the airplane is triangulated and its position is sent back to all of us in beast format (mutability):

(http://i.imgur.com/Oa0XWTI.png)

...I dunno what how this packet is different than the normal one, but VRS can handle it.. ModesMixer2 doesn't.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on December 15, 2016, 02:56:11 PM
What software are you using to plot the non-ADS-B aircraft and achieve an MLAT position?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 15, 2016, 03:16:20 PM
Quote from: Anmer on December 15, 2016, 02:56:11 PM
What software are you using to plot the non-ADS-B aircraft and achieve an MLAT position?

I believe you mean what "service" ...?

Anyway, as software I use dump1090-mutability to receive the data from my receiver; then I use mlat-client to send (and receive back) the MLAT data to/from the servers, I then use both dump1090 or Virtual Radar Server to visualize the MLAT calculated positions.
At the moment there's two (global / non private) services that are sending back the MLAT calculations taking advantage of the mutuality, but only when you partecipate to the triangulation, one is FlightAware, the other is ADSBEXchange.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 15, 2016, 03:21:03 PM
Quote from: arctic on December 15, 2016, 02:52:09 PM
Quote from: Anmer on December 15, 2016, 02:46:54 PM
Quote from: arctic on December 15, 2016, 02:36:31 PM
What do you mean with "plots"? in VRS they are shown like other planes, but the callsign/icao has a "*" next to the name.

MLAT positions are "plotted" as opposed to the aircraft position being transmitted in the Mode-S message.  However, I would expect the Mode-S message to include a flight ID (callsign) and ICAO hex code.

Do you mean the triangulation... yes I received the mode-s signal, and i transmit my data to the server, if there's 2 or more people on the server, receiving the same airplane and trasmitting MLAT (timecode), the airplane is triangulated and its position is sent back to all of us in beast format (mutability):

(http://i.imgur.com/Oa0XWTI.png)

...I dunno what how this packet is different than the normal one, but VRS can handle it.. ModesMixer2 doesn't.

A few things.

1.   In VRS, the * next to the callsign does not denote MLAT

The * next to the callsign indicates the callsign may not be correct [and was obtained from a lookup of previous data from an external location most likely].

If you want to see what is MLAT, go into the VRS web interface, select Options, then select LIST, click the lock to unlock the structure, and add MLAT and RECEIVER to the list.

That way, you can see what was coming in from MLAT results as well as see what is coming in from each RECEIVER that you have set up.

Of note:   If you are connecting to Dump1090 on piaware (because you are primarily feeding FA) and pull that data into VRS, that data includes both ADSB and MLAT.

I have these receivers in my VRS:

DUMP1090 (from piaware/FA)
AIRSPY
ADSBExchange MLAT

Results i get in specifically from ADSBExchange MLAT are tagged with the "ADSBExchange MLAT" receiver line in the aircraft list
Results I get in specifically from my Airspy (which is only ADSB) are tagged with "AIRSPY" in the receiver line
Results I get in from DUMP1090 (my FA stuff) are tagged as DUMP1090 in the receiver line
* and those BEAST results pulled from DUMP1090 include both the  ADSB I feed to FA as well as the results froM FA

I'm guessing that the reason that the FA ADSB and MLAT results all come in via the BEAST port on Dump1090 is because the FA MLAT results are being fed directly into Dump190 (by the FA scripts) so that the MLAT can be seen on the Dump1090 screen.

That does concern me, because I don't want to send back out [to any other network] MLAT results from FA.  It's not fair.  Nobody else deserves FA's MLAT results.   FA is gracious enough to allow me to have access to the MLAT results and as such I don't want to propogate those results back out to anybody else.

I suspect that anybody feeding to FA using piaware / dump1090, and who grab BEAST data from Dump1090 and inject it into somebody else's plane network, are actually injecting ADSB and MLAT (from FA) into that other network.   And I don't know that there is a way to prevent that.   The "other" networks might claim that they are dropping that MLAT data, but I wouldn't be so sure about that.

Mike


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on December 15, 2016, 03:35:57 PM
Quote from: arctic on December 15, 2016, 03:16:20 PM
I believe you mean what "service" ...?

No I meant what software.

I assume you're not running your own MLAT server?  If not, which remote service are you using?  FlightAware, ADSBExchange or a different one?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 15, 2016, 03:38:41 PM
Quote from: Anmer on December 15, 2016, 03:35:57 PM
Quote from: arctic on December 15, 2016, 03:16:20 PM
I believe you mean what "service" ...?

No I meant what software.

I assume you're not running your own MLAT server?  If not, which remote service are you using?  FlightAware, ADSBExchange or a different one?

He is feeding MLAT to FA and ADSBExchange, and he is grabbing the MLAT results of both FA and ADSBExchange and plotting them in VRS.

m
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 15, 2016, 04:07:13 PM
Yes, I mentioned them above (FA and ADSBEx).

I didn't know about the "*", but coincidentally it appears on each MLAT plane because the callsign is merged between the two data (MODE-S and the data returned by MLAT), now I added the MLAT column on VRS, tnx.

I send the MLAT calculation to both dump1090 and ModexMixer2 adding a second --result output to the FA mlat client command line:

--results beast,connect,localhost:30104 --results beast,connect,localhost:30107

30104 is the net-bi-port of dump1090, and 30107 is the --inServer port of ModeSMixer2.

I'm feeding VRS via the output port of ModexMixer2.
Also, I think dump1090 doesn't provide any MLAT output on the 30005 port (bo-port), otherwise the data will be redundant, it only output the data received from the receiver... but I will check this.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on December 15, 2016, 04:10:08 PM
Quote from: ktso44615 on December 15, 2016, 03:38:41 PM
He is feeding MLAT to FA and ADSBExchange, and he is grabbing the MLAT results of both FA and ADSBExchange and plotting them in VRS.

Thanks.  And that appears to work OK, displaying the MLAT traffic in VRS?  But when attempting to forward MLAT using ModeSMixer2, the MLAT traffic doesn't show?  Both from FlightAware and ADSBExchange?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 15, 2016, 04:18:32 PM
Quote from: Anmer on December 15, 2016, 04:10:08 PM
Quote from: ktso44615 on December 15, 2016, 03:38:41 PM
He is feeding MLAT to FA and ADSBExchange, and he is grabbing the MLAT results of both FA and ADSBExchange and plotting them in VRS.

Thanks.  And that appears to work OK, displaying the MLAT traffic in VRS?  But when attempting to forward MLAT using ModeSMixer2, the MLAT traffic doesn't show?  Both from FlightAware and ADSBExchange?

If you use ModesMixer2 (at least the version he and I have tried) to grab input MLAT data and forward it elsewhere, the forwarding of the MLAT data works.   BUT, if you view the local web interface of that ModesMixer2 instance, the ModesMixer2 web interface itself does not display any of the MLAT results that are passing through it.   It only displays ADSB.

But, now that I think about it, I think even MLAT results shows up as "ADSB" -- because they do on my VRS.   So I will have to try this again and see if the MM2 web display is truly showing only ADSB or if it is showing ADSB+MLAT under the same "A" icon.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 15, 2016, 04:19:56 PM
Quote from: Anmer on December 15, 2016, 04:10:08 PM
Quote from: ktso44615 on December 15, 2016, 03:38:41 PM
He is feeding MLAT to FA and ADSBExchange, and he is grabbing the MLAT results of both FA and ADSBExchange and plotting them in VRS.

Thanks.  And that appears to work OK, displaying the MLAT traffic in VRS?  But when attempting to forward MLAT using ModeSMixer2, the MLAT traffic doesn't show?  Both from FlightAware and ADSBExchange?

ModesMixer2 forwards the data correctly (VRS can visualize its output), but it's not capable to visualize the MLAT traffic in its own web map (as dump1090 or VRS can do).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on December 15, 2016, 04:22:49 PM
Thanks to both of you, I understand the problem better.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 15, 2016, 04:25:11 PM
Quote from: Anmer on December 15, 2016, 04:10:08 PM
Quote from: ktso44615 on December 15, 2016, 03:38:41 PM
He is feeding MLAT to FA and ADSBExchange, and he is grabbing the MLAT results of both FA and ADSBExchange and plotting them in VRS.

Thanks.  And that appears to work OK, displaying the MLAT traffic in VRS?  But when attempting to forward MLAT using ModeSMixer2, the MLAT traffic doesn't show?  Both from FlightAware and ADSBExchange?

Using modesmixer2 20160119 on RPI3, I ran the following as a test:

./modesmixer2 --location 40.xxxx:-81.xxxx --web 9999 --filter-nocountry off --inConnect localhost:30105

a.   this connects to fa-mlat-client BEAST output on TCP 30105
b.   If I browse to http://192.168.0.14:9999 , there is nothing on the display

If I add an --outConnect to my VRS server [which has a listening BEAST port], I can see that the MLAT traffic is being forwarded _through_ modexmixer2.   It's just that the modesmixer2 web interface is showing 0 aircraft (thus meaning it is not displaying MLAT results)

Mike

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 15, 2016, 04:26:12 PM
Quote from: ktso44615 on December 15, 2016, 04:18:32 PM
But, now that I think about it, I think even MLAT results shows up as "ADSB" -- because they do on my VRS.   So I will have to try this again and see if the MM2 web display is truly showing only ADSB or if it is showing ADSB+MLAT under the same "A" icon.

It's not a matter of terminology.. the airplane is visually missing from the map (in example in VRS you see 4 airplanes on the map while 1 is MLAT... in ModesMixer2 you see only 3 airplanes on the map and the one doing MLAT is only listed in the flights list as MODE-S because the position is unknown and the MLAT data is ignored).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on December 15, 2016, 05:57:45 PM
Quote from: ktso44615 on December 15, 2016, 04:25:11 PM
Using modesmixer2 20160119 on RPI3, I ran the following as a test:

./modesmixer2 --location 40.xxxx:-81.xxxx --web 9999 --filter-nocountry off --inConnect localhost:30105

a.   this connects to fa-mlat-client BEAST output on TCP 30105
b.   If I browse to http://192.168.0.14:9999 , there is nothing on the display
Mike

Mike,

I think your --inConnect command may need amending. Maybe try this:

--inConnect 192.168.0.14:30105

In other words, remove the word "localhost" and replace it with the IP address of your RPi.

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 15, 2016, 06:02:28 PM
Quote from: Triple7 on December 15, 2016, 05:57:45 PM
Quote from: ktso44615 on December 15, 2016, 04:25:11 PM
Using modesmixer2 20160119 on RPI3, I ran the following as a test:

./modesmixer2 --location 40.xxxx:-81.xxxx --web 9999 --filter-nocountry off --inConnect localhost:30105

a.   this connects to fa-mlat-client BEAST output on TCP 30105
b.   If I browse to http://192.168.0.14:9999 , there is nothing on the display
Mike



Mike,

I think your --inConnect command may need amending. Maybe try this:

--inConnect 192.168.0.14:30105

In other words, remove the word "localhost" and replace it with the IP address of your RPi.

Tim

No, the --inConnect is fine.     The RPI is 192.168.0.14.    ModesMixer2 is running on the RPI.   As such, I connect to localhost:30105.   If I were running ModesMixer2 on some other machine, then I'd have to connect to 192.168.0.14:30105.   But since ModesMixer2 is running on the same machine, I use localhost.   The connection was never an issue and is not what we are discussing.

What is being discussed is the lack of MLAT output on the ModesMixer2 web page.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on December 15, 2016, 07:41:17 PM
I run ModeSMixer2 on my RPi2 it has an IP address of 192.168.1.67. The only way I can see the output on my browser (on my windows PC) is by using the code I gave, albeit modified to reflect my RPi's IP address.

What are you using to browse to "http://192.168.0.14:9999" the RPi or another machine?

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 15, 2016, 07:54:00 PM
Quote from: Triple7 on December 15, 2016, 07:41:17 PM
I run ModeSMixer2 on my RPi2 it has an IP address of 192.168.1.67. The only way I can see the output on my browser (on my windows PC) is by using the code I gave, albeit modified to reflect my RPi's IP address.

What are you using to browse to "http://192.168.0.14:9999" the RPi or another machine?

Tim

When you access the device from outside (ie: the web interface) you're using it's LAN IP or it's public IP (if the request comes from Internet); when you're passing the data from an app to another running on the same device, you gonna use the loopback interface (localhost or 127.0.0.1).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on December 15, 2016, 07:59:42 PM
Quote from: arctic on December 15, 2016, 07:54:00 PM
When you access the device from outside (ie: the web interface) you're using it's LAN IP or it's public IP (if the request comes from Internet); when you're passing the data from an app to another running on the same device, you gonna use the loopback interface (localhost or 127.0.0.1).

Hence my question: What are you using to browse to "http://192.168.0.14:9999" the RPi or another machine?

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 15, 2016, 08:54:02 PM
Quote from: Triple7 on December 15, 2016, 07:59:42 PM
Quote from: arctic on December 15, 2016, 07:54:00 PM
When you access the device from outside (ie: the web interface) you're using it's LAN IP or it's public IP (if the request comes from Internet); when you're passing the data from an app to another running on the same device, you gonna use the loopback interface (localhost or 127.0.0.1).

Hence my question: What are you using to browse to "http://192.168.0.14:9999" the RPi or another machine?

Tim

I use either one -- http://127.0.0.1:9999 or http://192.168.0.14:9999.    The mixer binds to all interfaces by default.  If you are on the RPI you can access via either one, and as arctic said you have to use the external IP when browsing from something other than the RPI.  Of course I wouldn't dream of using to browse it.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on December 15, 2016, 10:39:32 PM
Good luck with finding a solution then, because I obviously can't help you.

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 12:00:44 AM
If we talk about the visualization of the MLAT in traffic in ModeSMixer2 ... there's no "solution" I can think of, not at the moment... the software apparently is not capable of handling/visualizing correctly that data. The only solution may come from the developer (sergsero).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on December 16, 2016, 07:41:09 AM
Works fine for me!

Tim

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 11:12:24 AM
Quote from: Triple7 on December 16, 2016, 07:41:09 AM
Works fine for me!

Tim

I don't see any MLAT triangulated airplane in that screen, neither MODE-S transponder... what's working exactly?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 16, 2016, 11:57:19 AM
Quote from: arctic on December 16, 2016, 11:12:24 AM
Quote from: Triple7 on December 16, 2016, 07:41:09 AM
Works fine for me!

Tim

I don't see any MLAT triangulated airplane in that screen, neither MODE-S transponder... what's working exactly?

Ditto.  I was using 20160119 and saw that Triple7 was using20161028.   So I found/grabbed 20161028.   No change -- no MLAT on display.

I don't even get anything on the Chart / Stats pages.

Looks to be specific to any MLAT traffic.    I can connect to pretty much anything else using modesmixer2 and have it be recognized, except for MLAT.   Now, it's FA-MLAT specifically that I'm trying to connect and pull, via BEAST or EXT_BASESTATION, and ModesMixer2 isn't recognizing FA-MLAT data in either of those formats.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 02:13:18 PM
I may sniff the traffic and check what's the difference between the MLAT data and the normal BEAST data... but it would be easier for sergsero to figure what's wrong, since he wrote the app, he can easily debug it.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 02:41:08 PM
I did some research, and apparently the MLAT constructed data is identical to the BEAST data with the obvious exception of the TIMECODE (it's fixed, and it's the parameter used to identify that the position is injected and doesn't come from the original data), maybe MODES get confused by it (just guessing).
In the meantime, to avoid confusione, I changed the switches in my command line using the "ID" labeling, so I can identify from where the data is coming from: "-inConnectID localhost:30005:DIRECT --inServerID 30107:MLAT " ...so I'm sure there's no MLAT data shown on the map.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 16, 2016, 03:03:03 PM
In Win7 2x ModeSDeco2 run.
Ho
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 16, 2016, 03:27:49 PM
In Win7 2x ModeSDeco2 run.
How abour an Pi2? Does there 2 ModeSDeco2 run parallel (1x Areal + 1 Yagi) ?

I see some people here know more about the Protokoll the Aircraft use.
Its possible to pipe out the TCAS Warning Messages?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 16, 2016, 03:46:26 PM
Finally realised what this is all about.

Modesmixer2 (MM2) worked fine with plotting MLAT until Piaware 3 was released. The details on differences between Piaware 2 / 3 are on the Flightaware forums but don't mean much to me,

Tim is still using Piaware 2 so he sees the MLAT traffic in MM2.

Sergsero is aware that changes have happened - just that he is not well and hence has not had time to fix this.

MM2 seems to understand the MLAT data from Piaware 3 since it can combine it with ADSB and serve the combined data - that is how I use MM2. It just doesn't seem to display MLAT data any more.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 04:23:42 PM
Quote from: IanH on December 16, 2016, 03:46:26 PMModesmixer2 (MM2) worked fine with plotting MLAT until Piaware 3 was released

Thanks, this explains everything.
Hoping Sergsero will get well soon.
Regards.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 16, 2016, 04:24:53 PM
does Mlat work offline with the SDR Dongle?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on December 16, 2016, 04:26:39 PM
Quote from: IanH on December 16, 2016, 03:46:26 PM
Tim is still using Piaware 2 so he sees the MLAT traffic in MM2.

Hi Ian,

I'm not actually, I mentioned to you via PM that it updated itself and that did cause issues until I reconfigured MM2 with the correct port No.

piaware -v

Yields this: 3.1.0

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 04:30:16 PM
I found the tech info of why ModeSMixer2 won't show those MLAT planes from the FA Staff:

Quotemlat-client now returns results as DF 18 TIS-B positions.
modesmixer apparently doesn't understand those.
As modesmixer is closed source, I can't offer a fix for that, you will need to contact the modesmixer author.

So ModeSMixer2 isn't compatible with the DF18 messages, that's all. It can combine the traffic fine, but it won't visualize the airplane on the map.

As said, only sergsero can fix it... when he'll be back.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 04:33:50 PM
Quote from: Radio2.0 on December 16, 2016, 04:24:53 PM
does Mlat work offline with the SDR Dongle?

In theory it could work, but practical it won't: the MLAT is a triangulation, you need at least 3 receivers receiving the same airplane data, and by combining the feed it can triangulate the position. Those 3 receiver must be apart (some KM's as minimum), and since you won't run a KM's long (!) cable, you cannot have the MLAT working offline, you still need a way to have all those 3 receivers to communicate, and the easiest way to have it running is to connect them to internet.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 16, 2016, 05:10:45 PM
Quote from: arctic on December 16, 2016, 04:30:16 PM
I found the tech info of why ModeSMixer2 won't show those MLAT planes from the FA Staff:

Quotemlat-client now returns results as DF 18 TIS-B positions.
modesmixer apparently doesn't understand those.
As modesmixer is closed source, I can't offer a fix for that, you will need to contact the modesmixer author.

So ModeSMixer2 isn't compatible with the DF18 messages, that's all. It can combine the traffic fine, but it won't visualize the airplane on the map.

As said, only sergsero can fix it... when he'll be back.

FYI, It looks like the same is probably true for ADSBExchange MLAT as well.   When I view the ADSBExchange MLAT results and the FA MLAT results in VRS (in my VRS web Options --> List --> List Settings I have TIS-B enabled as a list setting to show), both the ADSBEX MLAT and the FA MLAT show "yes" under the TIS-B column.

Well, at least we don't have to play around with this anymore trying to get it to work.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 16, 2016, 05:50:01 PM
@   arctic
With "offline" I mean without leave my Country.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 16, 2016, 07:07:00 PM
QuoteI'm not actually, I mentioned to you via PM that it updated itself and that did cause issues until I reconfigured MM2 with the correct port No.

Code: [Select]
piaware -v

Yields this: 3.1.0

Ah yes, forgot about that  :-[.

Anyway on the same version of Piaware (3.1.0), I don't see MLAT plotted.

On Piaware version 2.1.5, MLAT is plotting.

You must have a strange mix of components caused by an update you did not ask for.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 07:47:45 PM
Quote from: IanH on December 16, 2016, 07:07:00 PM
You must have a strange mix of components caused by an update you did not ask for.

There's no evidence that he's showing MLAT at all... in that pictures all of those planes appears to transmit their ADS-B position.
I think there's a lot of confusion around MLAT... MLAT return data is similar to the usual beast binary data but in a slight different format (DF18 TIS-B) because it is supposed to be sent by the ground stations (it's true for us, and it's true in the real scenarios: real CTR used to stream in the air the MLAT data as well).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 07:48:45 PM
Quote from: Radio2.0 on December 16, 2016, 05:50:01 PM
@   arctic
With "offline" I mean without leave my Country.

It would be better to explain what you're trying to achieve... and are you sure you understood what's MLAT about?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 16, 2016, 07:49:58 PM
Quotereal scenarios: real CTR used to stream in the air the MLAT data as well).
Ground Station send also on 1090?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 16, 2016, 07:54:20 PM
sorry for not edit my post becouse so many people write here....
Quoteand are you sure you understood what's MLAT about?
Sure a Server combine the Information from different Clients who receive the Radar Echo.

All MLAT Systems I know use an external Server who is located anywhere in the World. So in my Country 1090 Reception is technical legal but share the (raw) Data out.
Then I process the Data its gone gray not black.  ;D

So when I share any raw Data out i could get to jail.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 16, 2016, 08:36:23 PM
QuoteThere's no evidence that he's showing MLAT at all... in that pictures all of those planes appears to transmit their ADS-B position.

If you look at the types shown, for instance FlyBe DHC-8-400, they don't appear as ADSB plots, only MLAT.

Not sure what you are expecting from MM2 - all plots are shown in the same way, whether MLAT or ADSB.

I have attached a screenshot from my Piaware2 data - the red circles I have added to show MLAT data. MM2 does not differentiate the source of data. But does VRS?

(http://ihld.co.uk/MM2.jpg)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 08:59:11 PM
QuoteGround Station send also on 1090?

Yes.

Quote from: Radio2.0 on December 16, 2016, 07:54:20 PM
sorry for not edit my post becouse so many people write here....
Quoteand are you sure you understood what's MLAT about?
Sure a Server combine the Information from different Clients who receive the Radar Echo.

All MLAT Systems I know use an external Server who is located anywhere in the World. So in my Country 1090 Reception is technical legal but share the (raw) Data out.
Then I process the Data its gone gray not black.  ;D

So when I share any raw Data out i could get to jail.

Right, so to have it working you need to share your data with others, if your Country legislation won't let you do.. then you can't do it.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 09:04:14 PM
Quote from: IanH on December 16, 2016, 08:36:23 PM
QuoteThere's no evidence that he's showing MLAT at all... in that pictures all of those planes appears to transmit their ADS-B position.

If you look at the types shown, for instance FlyBe DHC-8-400, they don't appear as ADSB plots, only MLAT.

Not sure what you are expecting from MM2 - all plots are shown in the same way, whether MLAT or ADSB.

I have attached a screenshot from my Piaware2 data - the red circles I have added to show MLAT data. MM2 does not differentiate the source of data. But does VRS?

Both MM2 and VRS can differentiates the data, in VRS it's done automatically (it recognizes the DF18 format and tag it as MLAT, even if it's a combined traffic data). In MM2 you have the option to show the source of the data by using the "ID" variant of the command line switches (--inServerID and inConnectID), so you can distinguish the direct traffic received on a port, and the MLAT data received on another port. As said, if you're (really) using Piaware3, it provides back the MLAT data in DF18 and the current version of MM2 doesn't have the decoder for it (yet).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on December 16, 2016, 09:09:30 PM
Right, I'm done with this thread.

I know what I see on my screen, I know that it is only the returned Mlat data from Flight Aware because that is how I have set it up. Anyone looking at my screen grab will instantly know none of those aircraft are equipped with ADSB out, only Mode-S. Suggestions of "no evidence" are puerile. I provided a screen shot of what I see, that is evidence enough or are you suggesting it was a fabrication or photo-shopped in some way. Don't answer - it's rhetorical.

Believe what you want, I have no problem with that. My mark 1 eyeballs don't lie  ;D

Time out ......

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 16, 2016, 09:09:54 PM
QuoteRight, so to have it working you need to share your data with others, if your Country legislation won't let you do.. then you can't do it.
sure i know some other in my area.

Is there any application or way to select an Aircraft when I am onboard an see all relevant Data like TCAS Messages?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 09:42:02 PM
Quote from: Triple7 on December 16, 2016, 09:09:30 PM
Believe what you want

I told you how to write (on screen) the source of the traffic (by using the ID switch) so you may know immediately what is the source without guessing it. There's also a chance, as pointed already IanH, that despite the fact that you believe to be using PiAware3 data format, you're still using the old client.
In the last picture you posted, you're receiving only two MODE-S airplanes, but you evidenced four MLAT plotted planes, but the MLAT returns only the calculation you participated to, so those number doesn't matches, the MLAT planes may comes from a ground source and not returned by PA (hence the importance of plot the source next to the plane!).

As you see, the evidences aren't needed because we don't trust you, but because we need exact data (not guessed) to understand exactly what's going on or we'll never set the point.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on December 16, 2016, 10:54:57 PM
Quote from: arctic on December 16, 2016, 09:42:02 PM
As you see, the evidences aren't needed because we don't trust you

Oh dear, whatever next?

I'm sorry, but this sort of comment doesn't help anyone.

Triple7 is a longstanding and highly respected contributor to this forum.  Like everyone else, he's trying to help whereas your post doesn't.

Please respect the forum rules. 

Furthermore, as can be seen from the attached screenshot, Triple7 is running PiAware 3.1.0.  All 2.5.0 installs were automatically upgraded last week.

Unlike some, I totally trust Triple7 and I'm sure the majority here do too.

An apology wouldn't go amiss.

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 16, 2016, 11:05:06 PM
Quote from: Anmer on December 16, 2016, 10:54:57 PM
Quote from: arctic on December 16, 2016, 09:42:02 PM
As you see, the evidences aren't needed because we don't trust you

Oh dear, whatever next?

I believe you missed the word "AREN'T" ... evidences AREN'T needed because someone doesn't trust someone else, but because having the TECHNICAL DATA (instead of simple words) will help to understand what's going on.

QuotePlease respect the forum rules. 

I'm respecting the forum rules, please calm down.

QuoteFurthermore, as can be seen from the attached screenshot, Triple7 is running PiAware 3.1.0.  All 2.5,0 installs were automatically upgraded last week.

Great, attaching the data ID would help to figure from WHERE the data is coming from (the data may comes from the actual receiver and not from the MLAT data returned from FA, adding the ID to the switches will actually tag each airplane with the data ID).

QuoteUnlike some, I totally trust Triple7 and I'm sure the majority here do too.

You totally missed the point of my post, this is not a matter of faith.

QuoteAn apology wouldn't go amiss.

Read the posts (fully) and be serious. Also, I invite you to not derail this thread with a flame (that is against the forum rules, since you talked about them), here's we're talking about technical matters, I'm not here for kids fight or trolling. Thank you.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 17, 2016, 04:09:38 AM
ModeSDeco2 version 20161214

+ fixed option "--airspy-rfbias" for powering a preamplifier directly from Airspy by injecting DC
+ option "--filter-nodup" has been changed to the opposite - by default it "On"
But there is an overhead of extra memory bandwidth required on the host side to unpack the data into a useful format, so for optimal performance bit packing is disabled.

- disabled option "--airspy-packing" for AirSpy bit packing mode where 4 sets of 12 bit samples are packed into 3 sets of 16 bits for the transfer across the USB bus and this is good for some computers with cheap USB chipsets. But there is an overhead of extra memory bandwidth required on the host side to unpack the data into a useful format, so for optimal performance bit packing is disabled.

When you run this version of program you can get an error that msvcp140.dll and msvcr140.dll are missing in your OS.
Please, download the Visual C++ Redistributable for Visual Studio 2015 from the Microsoft site: https://www.microsoft.com/en-US/download/details.aspx?id=48145 (https://www.microsoft.com/en-US/download/details.aspx?id=48145). This is for English interface OS or select your language on the Microsoft site page.
There are multiple files available for this download. Once you click on the "Download" button, you will be prompted to select the files you need.
You will need to install file of 32 bit version vcredist_x86.exe regardless of what bitness has your operating system!
The Visual C++ Redistributable Packages install run-time components of Visual C++ libraries. These components are required to run C++ applications that are developed using Visual Studio 2015 and link dynamically to Visual C++ libraries.


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on December 17, 2016, 07:53:34 AM
Quote from: arctic on December 16, 2016, 11:05:06 PM
QuoteAn apology wouldn't go amiss.

Read the posts (fully) and be serious. Also, I invite you to not derail this thread with a flame (that is against the forum rules, since you talked about them), here's we're talking about technical matters, I'm not here for kids fight or trolling. Thank you.

This forum has operated peacefully for 5 years and I'd like it to continue this way.  So I've taken the unusual step of putting Arctic "on ice" for 7 days.  ;)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 17, 2016, 08:37:03 AM
ModeSMixer2 version 20161216 for testing

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20161216/modesmixer2_20161216_mlat_piaware_v3.jpg)

Added capability to decode of TIS-B messages with DF=18 CF=2, which are used in piaware v.3+ reverse data channel

When you run this version of program you can get an error that msvcp140.dll and msvcr140.dll are missing in your OS.
Please, download the Visual C++ Redistributable for Visual Studio 2015 from the Microsoft site: https://www.microsoft.com/en-US/download/details.aspx?id=48145 (https://www.microsoft.com/en-US/download/details.aspx?id=48145). This is for English interface OS or select your language on the Microsoft site page.
There are multiple files available for this download. Once you click on the "Download" button, you will be prompted to select the files you need.
You will need to install file of 32 bit version vcredist_x86.exe regardless of what bitness has your operating system!
The Visual C++ Redistributable Packages install run-time components of Visual C++ libraries. These components are required to run C++ applications that are developed using Visual Studio 2015 and link dynamically to Visual C++ libraries.




I would like to express my gratitude to spotter.ssol for help with the his data source.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 17, 2016, 10:59:55 AM
What happened here?  ???

Anyway a big thank you to sergsero for fixing modesmixer2 so that it displays MLAT from Piaware3. Not only does it display them, it also differentiates between ADSB and MLAT for those that need that information.  ;)

If you get an error message about MSVCP140.DLL missing, download and install vc_redist.x86.exe from Microsoft. You need the x86 version even if you are running 64 bit Windows.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 17, 2016, 11:19:31 AM
So what did happen here?

Ok from reading the notes, it seems that the 2016 version of modesmixer2 could display a tag to differentiate the source of data. I didn't know that because:

Seems like the radarspotting community is descending into the realms of what happened in the Flight Simulator community as it "matured". Criticism of FREE software so that some authors decided to remind users "if you don't like it, find something else - you haven't paid for it"


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 17, 2016, 12:01:57 PM
Quote from: sergsero on December 17, 2016, 08:37:03 AM
Added capability to decode of TIS-B messages with DF=18 CF=2, which are used in piaware v.3+ reverse data channel

Thank you, no Raspberry version yet?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on December 17, 2016, 12:06:28 PM
Quote from: IanH on December 17, 2016, 11:19:31 AM
So what did happen here?

Ok from reading the notes, it seems that the 2016 version of modesmixer2 could display a tag to differentiate the source of data.

That is what I invited to do from "some" messages, until it turned into a "you don't trust me!"... :) ...it helps to "debug" the data, so you can figure what's coming from where. All the confusion about the MLAT data coming from PA3 was due to the fact that who were claiming it to work, where gathering the data directly from the receiver (maybe some ground station delivering MLAT data in DF=17 format; it happens in area in major airports in the USA), the evidence of it (not working) has been just demonstrated by sergsero releasing a version that is capable of plot the DF=18 data coming from PA3.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on December 17, 2016, 12:12:29 PM
You could also quote the rest of my reply

QuoteI don't care what the source is - I just want to see the whole picture
Having used modesmixer2 since 2014, the initial version did what I wanted and so I didn't pay much attention to what has been added since

I DON'T CARE - it does what I need

And that is my final response on this topic.

Bye
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 17, 2016, 12:38:00 PM
Hello,

Maybe I'm not quite sure I understand the issue.
However, input data format is detected automatically in any income channel and in any mix of formats. If aircraft's label was created based on DF=18/CF=2 data, it will be displayed separate green label. If you use *Id option for receiving piaware back channel you can specify the name of the source at your option.

Version modesmixer2_rpi2-3_20161216.tgz for RPi2/3 was added. I would be very interesting to know how much the CPU utilization on ARM devices in areas, where high intensity of ADS-B/Mode S air traffic and additionally exists MLAT data - I'll grateful for the feedback message.
p.s. But I still want to work with code for better optimize for ARM processor.

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Giurap on December 17, 2016, 01:44:07 PM
Quote from: IanH on December 17, 2016, 12:12:29 PM
You could also quote the rest of my reply

QuoteI don't care what the source is - I just want to see the whole picture
Having used modesmixer2 since 2014, the initial version did what I wanted and so I didn't pay much attention to what has been added since

I DON'T CARE - it does what I need

And that is my final response on this topic.

Bye

You may don't care, but if it wasn't for those chaps reporting this issue, proving that mlat wasn't working whit the pi3 data, you wouldn't have the fixed version today, and you wouldn't have figured that it wasn't working correctly. This thread help sergero to debug the app, if every of us wouldn't care, the app couldn't progress.
Bye.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Giurap on December 17, 2016, 01:47:43 PM
Quote from: sergsero on December 17, 2016, 12:38:00 PM
Hello,

Maybe I'm not quite sure I understand the issue.
However, input data format is detected automatically in any income channel and in any mix of formats. If aircraft's label was created based on DF=18/CF=2 data, it will be displayed separate green label. If you use *Id option for receiving piaware back channel you can specify the name of the source at your option.

Version modesmixer2_rpi2-3_20161216.tgz for RPi2/3 was added. I would be very interesting to know how much the CPU utilization on ARM devices in areas, where high intensity of ADS-B/Mode S air traffic and additionally exists MLAT data - I'll grateful for the feedback message.
p.s. But I still want to work with code for better optimize for ARM processor.

/sergsero

Not much traffic atm (9 aircraft):

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                         
  444 dump1090  15  -5   28284  10076   2052 S  12.3  1.1 183:23.18 dump1090-mutabi                                                                                                     
  920 root      20   0   37524   9052   6520 S   3.3  1.0  30:01.32 modesmixer2

Same traffico with new version:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                         
  444 dump1090  15  -5   27784   9256   1840 S  14.8  1.0   0:07.72 dump1090-mutabi                                                 
  921 root      20   0   37128   8164   5708 S   2.6  0.9   0:01.14 modesmixer2     
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 17, 2016, 02:07:24 PM
Maybe I will be better to write this in Russian ;)

The reason that the modesmixer2 has stopped working with back channel data in PA3, that in PA2 used the standard BEAST binary format. And the data are encoded in ADS-B DF=17 (or TIS-B DF=18 with CF=0,1 or 6 which processing is identical to DF=17). In PA3 was used a different kind of TIS-B: DF=18 with CF=2, which in reality now yet are not widely used in the world. In addition to this uses with modified format of BEAST.

Similar changes were made by PA3 authors in the ASCII MSG format, when in a new single message "MLAT,3" were merged data which accordance with the SBS Kinetic standard should to be in two messages: "MSG,3" and "MSG,4".

But anyway, I agree with the opinion that it contributes to the development of the program.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Giurap on December 17, 2016, 02:17:53 PM
I confirm mlat is working now, but it does something odd with the labeling.
I have the two ports identified as "RECEIVER" and "MLAT" on the map, when the mlat data is received on its port, the airplane on the map is labeled "MLAT", but just for 1 second, then it switches to "RECEIVER".
I think it's due to the fact that the airplane is both received on the RECEIVER port (MODE-S) and on the MLAT port (data streamed back from FlightAware), so MM2 gets a little "confused" on how to label it.
It would be possible to add a new label specifically for the mlat? So you don't have to identify the data by just the port. Thanks.

EDIT: never mind, I figured that the MLAT airplanes are painted "green".

On RB Pi3 with 12 ariplanes and two MLAT:

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
442 dump1090  15  -5   28040   9720   2064 R  14.9  1.0   3:58.28 dump1090-mutabi
921 root      20   0   37260   7848   5708 S   4.0  0.8   0:46.89 modesmixer2   
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on December 17, 2016, 02:27:03 PM
Many thanks, sergsero! Will test RPI version ASAP!

Edit: Working 100%! Thanks again for your attention and time!
Edit 2: The map you've posted is very familiar!  8)

Quote from: sergsero on December 17, 2016, 08:37:03 AM
ModeSMixer2 version 20161216 for testing

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20161216/modesmixer2_20161216_mlat_piaware_v3.jpg)

Added capability to decode of TIS-B messages with DF=18 CF=2, which are used in piaware v.3+ reverse data channel


Windows: modesmixer2_windows_20161216.zip https://drive.google.com/open?id=0B7NYXizl0U6iNnB6MXg5MHB4Ukk (https://drive.google.com/open?id=0B7NYXizl0U6iNnB6MXg5MHB4Ukk)

Raspberry Pi 3: modesmixer2_rpi2-3_20161216.tgz https://drive.google.com/open?id=0B7NYXizl0U6iYklBNFplWmRVckE (https://drive.google.com/open?id=0B7NYXizl0U6iYklBNFplWmRVckE)



I would like to express my gratitude to spotter.ssol for help with the his data source.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 17, 2016, 02:42:40 PM
so I ask again its possible to run 2x Software on an Pi2?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Giurap on December 17, 2016, 02:58:37 PM
Quote from: Radio2.0 on December 17, 2016, 02:42:40 PM
so I ask again its possible to run 2x Software on an Pi2?

Two instances of dump1090 ? Yes, there shouldn't be any issue.
What you want to do exactly? Place two dongles with two antennas in different spots?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 17, 2016, 05:58:20 PM
Quote from: sergsero on December 17, 2016, 04:09:38 AM
ModeSDeco2 version 20161214

+ fixed option "--airspy-rfbias" for powering a preamplifier directly from Airspy by injecting DC

Hello Sergsero,

Thank you.   I can confirm that the --airspy-rfbias option now works.

However, the --airspy-packing option does not work now.   The --airspy-packing option does not exist / is missing from the help screen, and if I try to add --airspy-packing on or --airspy-packing 1 it will not start.   This is Windows version 20161214.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 17, 2016, 06:40:26 PM
Quote from: Anmer on December 17, 2016, 07:53:34 AM
Quote from: arctic on December 16, 2016, 11:05:06 PM
QuoteAn apology wouldn't go amiss.

Read the posts (fully) and be serious. Also, I invite you to not derail this thread with a flame (that is against the forum rules, since you talked about them), here's we're talking about technical matters, I'm not here for kids fight or trolling. Thank you.

This forum has operated peacefully for 5 years and I'd like it to continue this way.  So I've taken the unusual step of putting Arctic "on ice" for 7 days.  ;)

You know, this all stems from so many of us having different primary [first] languages.    The meaning can be misinterpreted.

As you see, the evidences aren't needed because we don't trust you, but because we need exact data (not guessed) to understand exactly what's going on or we'll never set the point.

When I read this response, I understood it immediately.   He was really saying "We trust you.   We aren't asking for evidence because we do not trust you, but rather because we need exact technical data to understand exactly what is going on so that we are able to let Sergsero know exactly what the issue is."

The issue Arctic and I were attempting to bring up, and which Sergsero undertood, was this:

Modesmixer2 was properly passing FA MLAT data in/out, but there was absolutely nothing showing up on our Modesmixer2 web interfaces when that FA MLAT traffic was passing through ModesMixer2.    And I believe I had noticed the same thing with ADSBExchange MLAT data.    If I tried to feed FA / ADSBEX MLAT data into Modesmixer2, it was converting / passing the data in and out just fine.  But if I pulled up the web interface,it would show 0 planes.   Sergsero has made some modifications in the past day or so that have fixed that issue.

I completely understand how some people took Arctic's words the wrong way, but I'm confident that he in no way meant to insult anyone -- The translation of the comment between languages / dialects was the only issue.

Mike


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 17, 2016, 06:43:25 PM
Quote from: sergsero on December 17, 2016, 08:37:03 AM
ModeSMixer2 version 20161216 for testing
Windows: modesmixer2_windows_20161216.zip https://drive.google.com/open?id=0B7NYXizl0U6iNnB6MXg5MHB4Ukk (https://drive.google.com/open?id=0B7NYXizl0U6iNnB6MXg5MHB4Ukk)

Sergsero,

Thank you so much for making the necessary modifications.   The ModesMixer2 web interface is now (a) showing FA and ADSBEX MLAT and (b) showing it in a way that was very well thought out.   I think the way you have made the web interface display the MLAT data is beautiful.    Great job!      Thanks for your efforts, and those of others who helped gather data for you.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 17, 2016, 06:46:00 PM
QuoteWhat you want to do exactly? Place two dongles with two antennas in different spots?
Yes 1 Areal + 1 Yagi
And you got an PM.  ;D
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Giurap on December 17, 2016, 07:06:13 PM
Quote from: Radio2.0 on December 17, 2016, 06:46:00 PM
QuoteWhat you want to do exactly? Place two dongles with two antennas in different spots?
Yes 1 Areal + 1 Yagi

I see, do you want to have more range towards a certain direction? I'm asking because installing two dongles in the same place on the same frequency (1090) is convenient on a very limited number of situations. What's the reason behind your decision? Maybe a different setup (or a different single antenna mounting) could be better than investing in an additional dongle.

QuoteAnd you got an PM.  ;D

I got it.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 17, 2016, 07:09:11 PM
Here is what ModesMixer2 20161216 looks like now with MLAT.

I have four inputs, with IDs attached (using --inConnectID)

RPI-DATA:  RPI3+Dump1090 providing BEAST data on TCP 30005
WIN-DATA:  WIN+ModesDeco2 providing BEAST data on TCP 30005
ADSBEXMLAT:  MLAT results in BEAST format from ADSBExchange
FAMLAT:   MLAT results in BEAST format from FA

WHITE planes = ADSB Fixes
GREEN planes = Mode S + MLAT

What I really like is that while the MLAT planes always stay green, the source ID on them changes depending upon whether the last update heard was a Mode-S update or an MLAT update.   So it is possible for a green MLAT plane to show one source ID one minute and another source ID the next.

Very very cool.

Mike


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 17, 2016, 07:53:04 PM
QuoteWhat's the reason behind your decision?
To get everything I could get on LOWW. I see ~50% of the Ground Traffic the rest are behind the Building.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Giurap on December 17, 2016, 08:03:46 PM
Quote from: ktso44615 on December 17, 2016, 07:09:11 PM
What I really like is that while the MLAT planes always stay green, the source ID on them changes depending upon whether the last update heard was a Mode-S update or an MLAT update.   So it is possible for a green MLAT plane to show one source ID one minute and another source ID the next.

I reported this "issue" already, and IMO this should be fixed, because MODE-S data doesn't send the position and the source data on the map (where you see the aircraft) is about the MLAT data, not about the MODE-S. The source changes because internally MM2 reads the data for that specific ID and it overrides the label, but the logic behind it is wrong in my opinion, on the map you should only have the ADSB-B airplanes with position and MLAT airplanes with position.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 18, 2016, 12:59:20 AM
Quote from: Giurap on December 17, 2016, 08:03:46 PM
Quote from: ktso44615 on December 17, 2016, 07:09:11 PM
What I really like is that while the MLAT planes always stay green, the source ID on them changes depending upon whether the last update heard was a Mode-S update or an MLAT update.   So it is possible for a green MLAT plane to show one source ID one minute and another source ID the next.

I reported this "issue" already, and IMO this should be fixed, because MODE-S data doesn't send the position and the source data on the map (where you see the aircraft) is about the MLAT data, not about the MODE-S. The source changes because internally MM2 reads the data for that specific ID and it overrides the label, but the logic behind it is wrong in my opinion, on the map you should only have the ADSB-B airplanes with position and MLAT airplanes with position.

I guess I see it differently.   The way it works may or may not be intended, but I like the way it works.    Only the lat/long plot is about MLAT, everything else is about Mode-S.   So, although one is looking at aircraft plots on that page, the data displayed in the web interface for MLAT entries is derived from Mode-S + MLAT.   All one has to do is look at an MLAT-only feed, at which time you would see there aren't any callsigns in the MLAT data.   The callsigns are Mode-S.   I only displayed the source ID in my screenshot for the benefit of showing others how well it is working.   Normally I would show the callsign / registration.

If a plane is green (because it's MLAT) and a Mode-S update comes in for that plane (and they frequently do), I think it's perfectly fine for the source ID (which most people likely don't even use / display) to switch between the ADSB data "Id" and the MLAT data "Id"

Guess we'll have to just disgree on this one.   I simply don't consider it an issue that would need fixing.    On the other hand, if Sergesero looks at it and believes that it an unintended consequence of some coding logic, it certainly wouldn't bother me if he changed it either.    I'm equally happy, either way it's done.

Mike

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 18, 2016, 01:06:58 AM
I removed my comment that was here since it does not seem relevant.

mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 18, 2016, 02:01:29 AM
Mike,

I really forgot to specify in the comments that in this version 20161214 of modesdeco2 the option "--airspy-packing" is disabled.

As intended this bit-packing when "packing ADC samples to 12 bits instead of using 16 bits (where 4 sets of 12 bit samples are packed into 3 sets of 16 bits), packing uses 25% less USB bandwidth versus No Packing" and this might help some computers or USB interfaces handle Airspy's 10 MSPS (10MHz) rate.
But there is an overhead of extra memory bandwidth required on the host side to unpack the data into a useful format, so for optimal performance bit packing is disabled.

I doubt though that any computer not able to transfer the 10MSPS rate will be able to run modesdeco2 with that amount of data because sometimes I have seen the opposite.
However, I continue to work on this possibility in the program.


Mike, I'm really interested in your comment about defects to display of registration numbers of aircraft. Could you explain it more?

/Sergey
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ktso44615 on December 18, 2016, 02:09:38 AM
Quote from: sergsero on December 18, 2016, 02:01:29 AM
Mike,

I really forgot to specify in the comments that in this version 20161214 of modesdeco2 the option "--airspy-packing" is disabled.

As intended this bit-packing when "packing ADC samples to 12 bits instead of using 16 bits (where 4 sets of 12 bit samples are packed into 3 sets of 16 bits), packing uses 25% less USB bandwidth versus No Packing" and this might help some computers or USB interfaces handle Airspy's 10 MSPS (10MHz) rate.
But there is an overhead of extra memory bandwidth required on the host side to unpack the data into a useful format, so for optimal performance bit packing is disabled.

I doubt though that any computer not able to transfer the 10MSPS rate will be able to run modesdeco2 with that amount of data because sometimes I have seen the opposite.
However, I continue to work on this possibility in the program.

Sergsero,

Thanks for the explanation.    Anybody running on Windows is likely using a full blown PC and likely doesn't need the bit packing.   I do _not_ need the bit packing on windows but was running it out of habit.   When I used the same batch file on the new ModesDecode2 I realized it didn't work and thought I'd mention it.   I did figure that it might have been your intention to remove it.

With that said, if you have removed bit packing on the RPI version, I'd really recommend that you don't.   I understand you are trying to alleviate CPU overhead, but I'm not sure that the RPI's USB subsystem can handle things without packing enabled.

I do plan on trying my Airspy again on the RPI with the latest ModesDeco2 tomorrow and will see what happens.   I run an Airspy R2 (not a mini) and attempt to run it at maximum performance when possible.

If you care, i'll share my experience with the Airspy R2 + Modesdeco2 20161214 after I get a chance to play around with it tomorrow.   The last time I ran the Airspy (with Modesdeco2) on the RPI was a month ago, and at that time I was running the Airspy as a second receiver with Dump1090 + RTL Dongle as main receiver on the PI, and when doing that the RPI didn't have enough CPU left over to adequately process MLAT during peak times.   So I completely understand that you want to lessen CPU burden with ModesDeco.

Mike
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 18, 2016, 02:42:36 AM
Regarding the display of labels when uses both MLAT data and Mode S data.

Unfortunately, as I noted earlier, there are no regular MLAT from piaware (as any other) in my area, that makes difficult for me testing this mode  in real operation condition. So all this is emulated on the computer and can be incorrectly in some details.

It seemed to me appropriate to inform the user about what information is used in a given time.
In any case, for this mode, the aircraft label on map is formed only from MLAT coordinates data and it should be auto removed from screen when there is no MLAT data more than 40 seconds.

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: A380 on December 19, 2016, 08:46:40 PM
Quote from: sergsero on December 17, 2016, 12:38:00 PM

p.s. But I still want to work with code for better optimize for ARM processor.


I have ModesMixer 2016-12-16 running on a rpi2, with flightaware 3.1/MLAT, dump1090-mutability

top shows after 6h running:
50-60 % CPU modesmixer2
13-18 % CPU dump1090

two connection on port 10001
one connection on http

modesmixer2 Commandline is_ --inConnect localhost:30005 --inConnectId localhost:30107:MLAT --outServer sbs10001:10001 --web 8081 --db /home/pi/mm2/BaseStation.sqb  --google-key xxxxx

Kind Regards

Rene
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: swn on December 22, 2016, 08:10:35 PM
Quote from: sergsero on November 04, 2016, 11:01:31 AM
Hello,

This version should work with the Google API key. If it's indeed confirmed in tests, it will become the release.

Windows: modesmixer2_windows_20161028.zip https://drive.google.com/open?id=0B7NYXizl0U6iWUtXay1DOGRkdWc (https://drive.google.com/open?id=0B7NYXizl0U6iWUtXay1DOGRkdWc)

You need the Microsoft Visual C++ 2015 Redistributable, that installs run-time components of Visual C++ libraries. These components are required to run C++ applications that are developed using Visual Studio 2015 Update 3 and link dynamically to Visual C++ libraries. Use file vc_redist.x86.exe from Microsoft site: https://www.microsoft.com/en-us/download/details.aspx?id=53840 (https://www.microsoft.com/en-us/download/details.aspx?id=53840)


Raspberry Pi 2/3: modesmixer2_rpi2-3_20161028.tgz https://drive.google.com/open?id=0B7NYXizl0U6iclJZN3NCdDhBQ0k (https://drive.google.com/open?id=0B7NYXizl0U6iclJZN3NCdDhBQ0k)

For Raspbian GNU/Linux 8.0 (jessie) Linux 4.4.26-v7+ #915 SMP Thu Oct 20 17:08:44 BST 2016 armv7l GNU/Linux.

If you want find out what version of Linux is used, then try the console commands:
cat /etc/*-release
and
cat /proc/version


---
As for the new format of data in return channel in Piaware 3, when mlat-client now returns results as DF 18 TIS-B positions,  I hope to understand what has made Oliver with the Piaware.

Best regards,
sergsero

Hi sergsero,

I wanted to ask if you have the opportunity to release version compatible with GOOGLE  API KEY for RASPBERRY B+  ... because I'm still using the rpi b +  and I don't have the possibility to change them ( They are working uninterruptedly for two years without any problem )


Regards

Swn
It would be possible ?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: holloman47 on December 23, 2016, 02:48:02 PM
Hi
I have successfully installed modesmixer2_rpi3 on to my pi3  alongside dump1090 / piaware.
i am testing at the moment and can manually get modesmixer to start via putty, but i am completely stumped on how i can configure my pi to autostart the program from a reboot without me having to go through the whole manual process again to restart it?...anybody got some scripts or instructions on how i can set this up.
i am a novice with linux ,,but if given some instruction i could probaly muddle my way through it!
thanks
John
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 23, 2016, 02:54:22 PM
same question here... for beginner its very hard to do this without any information.
Thats why I run it on my Win Server there everything work.

So I have a question... when i use the Auto Gain Command the Receiving Rate is very low.
When I set it manually to the highest Gain 49.6 the Rate "explode".  ;D
Why is the Auto Gain feature so bad? I use an Filter + LNA.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on December 23, 2016, 03:52:04 PM
Quote from: holloman47 on December 23, 2016, 02:48:02 PM
Hi
anybody got some scripts or instructions on how i can set this up.

Hi

Have a look here:

http://www.satsignal.eu/raspberry-pi/dump1090.html#automated-start

I changed it to mm2.sh and modified the section near the top to suit my requirements. I also added a DELAY=20 to allow everything to sort itself out before starting MM2 - not sure it's entirely necessary, but it doesn't do any harm. So mine looks likes this:

#
### END INIT INFO
## Fill in name of program here.
PROG="modesmixer2"
PROG_PATH="/home/pi/adsb/mm2"
PROG_ARGS="--inConnect 192.168.1.67:30105 --filter-nocountry --web 8088 --db basestation.sqb --silhouettes ./silos --frdb flightroute.sqb --location xx.xx:yy.yy
PIDFILE="/var/run/mm2.pid"
DELAY=20


If you later SSH and log into the RPi, you can stop or restart MM2 with the commands:


sudo /etc/init.d/mm2.sh stop

or

sudo /etc/init.d/mm2.sh start

Obviously changing 'mm2.sh' to reflect the filename you chose above.

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on December 23, 2016, 04:09:25 PM
does it work with the sdr thing to?  :o
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on December 23, 2016, 04:19:32 PM
Try it and see!

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: holloman47 on December 23, 2016, 10:20:54 PM
Thanks Triple7
it worked a treat!...after a bit of fiddling :)
cheers
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on December 24, 2016, 07:29:59 AM
Quote from: holloman47 on December 23, 2016, 10:20:54 PM
it worked a treat!...after a bit of fiddling :)

Thanks for the feedback, glad it worked for you.

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ytsejam on December 29, 2016, 07:34:29 AM
Hi sergsero,

Can I request an updated version for Ordroid XU ?
The current version 20150715 does not support --add-points feature.

Much appreciated!!!

Regards,
Yngwie
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on December 29, 2016, 09:13:42 AM
Hi Yngwie,

As soon as the current test version will be released as the main release of modesmixer2, I will make it for multiple platforms.
I hope it will happen soon.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ytsejam on December 29, 2016, 04:22:29 PM
Quote from: sergsero on December 29, 2016, 09:13:42 AM
Hi Yngwie,

As soon as the current test version will be released as the main release of modesmixer2, I will make it for multiple platforms.
I hope it will happen soon.

Regards,
sergsero

Much appreciated, Sergsero. Wish you have great new year holidays in advance!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 04, 2017, 07:33:49 AM
ModeSMixer2 version 20161227



I would like to express my gratitude to spotter.ssol and ffa1978 for help with their data sources.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on January 12, 2017, 11:48:35 AM
Any chance to compile this test version for CentOS 7? There's some lib problems when try to run Ubuntu version.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 13, 2017, 10:04:40 AM
Hi jmaurin,

Test this version for CentOS 7 1611 (Linux 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux):



        linux-vdso.so.1 =>  (0x00007ffec4f59000)
        libssl.so.10 => /lib64/libssl.so.10 (0x00007fcdecbed000)
        libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007fcdec803000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fcdec5e6000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fcdec3de000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fcdec1da000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fcdebed0000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fcdebbce000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fcdeb9b8000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fcdeb5f6000)
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fcdeb3a8000)
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fcdeb0c1000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fcdeaebc000)
        libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fcdeac8a000)
        libz.so.1 => /lib64/libz.so.1 (0x00007fcdeaa74000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fcdece64000)
        libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fcdea864000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fcdea660000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fcdea446000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fcdea21e000)
        libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fcde9fbd000)

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on January 13, 2017, 11:06:08 AM
Quote from: sergsero on January 13, 2017, 10:04:40 AM
Hi jmaurin,

Test this version for CentOS 7 1611 (Linux 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux):

modesmixer2_centOS7_x86_64_20161227.tgz https://drive.google.com/open?id=0B7NYXizl0U6iR0VsVUZqZE9tT28 (https://drive.google.com/open?id=0B7NYXizl0U6iR0VsVUZqZE9tT28)

        linux-vdso.so.1 =>  (0x00007ffec4f59000)
        libssl.so.10 => /lib64/libssl.so.10 (0x00007fcdecbed000)
        libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007fcdec803000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fcdec5e6000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fcdec3de000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fcdec1da000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fcdebed0000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fcdebbce000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fcdeb9b8000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fcdeb5f6000)
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fcdeb3a8000)
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fcdeb0c1000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fcdeaebc000)
        libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fcdeac8a000)
        libz.so.1 => /lib64/libz.so.1 (0x00007fcdeaa74000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fcdece64000)
        libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fcdea864000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fcdea660000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fcdea446000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fcdea21e000)
        libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fcde9fbd000)

Regards,
sergsero


Works! :)
Thank you very much!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on January 14, 2017, 07:11:58 PM
Quote from: sergsero on January 04, 2017, 07:33:49 AM
ModeSMixer2 version 20161227

For some reason on a Pi3... all the airplanes are shown as MLAT traffic (green icon) and the ID is blank, despite the source is specified. It works OK in the previous version.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: arctic on January 14, 2017, 10:16:55 PM
Quote from: arctic on January 14, 2017, 07:11:58 PM
Quote from: sergsero on January 04, 2017, 07:33:49 AM
ModeSMixer2 version 20161227

For some reason on a Pi3... all the airplanes are shown as MLAT traffic (green icon) and the ID is blank, despite the source is specified. It works OK in the previous version.

Fixed by clearing the browser cache (it was retaining the previous version info).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: neilz on January 15, 2017, 11:34:40 AM
Hi sergsero,

Enjoying using ModeSMixer2 on my Pi3, thanks for your hard work. I'm using v.20161227 and viewing it in Safari 10.0.2 and have a couple of issues:
Following browser console errors get repeated when trying to trigger this ajax functionality: "http://IPADDRESS:8080/jsonFailed to load resource: The network connection was lost.".

Oddly these above problems don't exist in Chrome and it works fine so I'm thinking it might be a way Safari handles the JSON requests?

There is one minor bug I found consistent across browsers and that is in the settings dialog on the map view where it is not showing what the current aircraft labels are set to?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 16, 2017, 04:59:34 AM
Hi neilz,

Indeed, I don't often use the Safari browser. I checked how displays pages and found that ICAO code of airport is not translated to uppercase in Safari as in other browsers. If you enter, for example, UNNT (not untt) - it works for me.
I'll look what can be done.

Additionally, some functions may not work if not clear the cache on these pages.

Regards,
sergsero


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: neilz on January 16, 2017, 12:44:26 PM
Hi sergsero,

Thanks for your reply. I've tried the clear caches/disable cache and it appears to have made no difference when trying UNNT. Attached a screenshot showing the console errors when attempting to use it.

I'll do some more investigating myself tonight and see if I can find out what is different in the requests between Safari and Chrome for these.

Edit
Used curl in terminal to compare the requests and noticed that the one for notam returns all the JSON but the transfer is closed early from the error I can see.
curl -H "Content-Type: application/json" -X POST -d '{"req":"api","data":{"api":"notam","q":"UNNT"}}' http://192.168.0.38:8080/json


..."value\":0}],\"requestID\":0}","status":"OK"}
curl: (18) transfer closed with outstanding read data remaining

I then ran a command that works e.g. the getStats one and that one returns the JSON without any trailing error messages.

curl -H "Content-Type: application/json" -X POST -d '{"req":"getStats","data":{"statsType":"counters"}}' http://192.168.0.38:8080/json

{"status":"OK","stats":{"counters":{.........},"additionalPoints":""}}


I'm guessing from this that the methods in the program are not sending the requests properly like the working ones? Where Chrome is more tolerable, Safari is seeing the data and error but going with that is has all failed instead.

Hope these findings help you fix the bugs.

Thanks,
Neilz

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco concole program for RTLSDR
Post by: chrisc550 on January 27, 2017, 10:27:47 AM
Quote from: sergsero on November 19, 2013, 09:14:33 AM
(https://lh5.googleusercontent.com/-vqqCI6Mrg4w/UZo7x7P7TYI/AAAAAAAABk8/0S5t9wU7c8k/s64/arm.jpg)
Raspberry Pi (Broadcom SoC BCM2835, ARM1176JZFS) Jessie:
Raspberry Pi 2/3 (Broadcom SoC BCM2836/37 ARMv7 Quad Core) Jessie: modesmixer2_rpi2-3_20161227.tgz https://drive.google.com/open?id=0B7NYXizl0U6iNnEyRGtwWWRnN28 (https://drive.google.com/open?id=0B7NYXizl0U6iNnEyRGtwWWRnN28)

Is there a version of ModeSMixer2 for the Raspberry Pi 1 (BCM2835) available? I have a Raspberry Pi B+ running Debian Wheezy and ModeSMixer2 version 20150825, but I just updated to the latest Piaware and dump1090-fa, so it would be great to have the latest ModeSMixer2 version as well :)

Thanks for the great software, sergeso!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on January 27, 2017, 12:26:54 PM
Last version that I have for RPi1 is the same as you: 20150825.

Perhaps the RPi1 was not powerful enough to run the extra options so no newer version?

Edit:
Found a slightly more recent version (20160119) on a Russian forum
http://forum.adsbradar.ru/f25/modesmixer2-windows-linux-com-tcp-mixer-transcoder-modes-1451/
The file listing is not in Russian  ;)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 27, 2017, 12:55:16 PM
Hello,

I'll try to compile a version of modesmixer2 for RPi1 this weekend.

I fully agree with IanH, that for use extra options it is desirable have RPi2 or RPi3.

However, the main difficulty is to maintain on the deprecated version of Debian Wheezy 7. Today the current version is Debian Jessie 8 and it would be preferably to switch to it completely.
Because for building and optimizing programs I need a modern version of the gcc compiler and libraries.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on January 28, 2017, 12:54:28 PM
ModeSMixer2 version 20170127



I would like to express my gratitude to spotter.ssol and ffa1978 for help with their data sources.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tiger on January 31, 2017, 05:04:08 PM
Hi Sergsero

My configuration is, Kinetic sbs1 Mk2(there is no ethernet connection port) in home and  another reciever where in different place that I am connecting  with modesmixer,May I connect the two different receiver at the same time to the  base station and Can I see the mode C traffics on the modesmixer2 web interface list?

Regards Alex
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: XXaK on January 31, 2017, 08:10:08 PM
Hi, I have a slight problem with modesmixer2, last week I lost my SD card (ded), so I completely reinstalled my pi with all things up-to-date (that means also latest modesmixer) and when I leave modesmixer running long enough it takes up a LOT of CPU after few hours which causes my receiving rate drop significantly (3M msgs/hr to 0,8M msgs/hr, the rate drops really low, as soon as I kill mm2 the msg rate rises a lot)

Parameters:
--inConnect localhost:30005 --inConnect localhost:30106 --inConnect localhost:30107 --web 9599 --web-auth usr:pass --metric --location STATION_LAT:STATION_LON --silhouettes /home/pi/modesmixer2/silhouettes --db /home/pi/basestation.sqb

Pi2, piaware image, everything default except modesmixer and one private MLAT client
thank you.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 01, 2017, 03:46:15 AM
Hi Alex,

I have no sbs-1 receiver Mk2 model without Ethernet port to test functionality of the modesmixer2 via the USB port. As for the rest everything should be work.
(Если вы говорите по-русски, то предлагаю обсудить ваш вопрос на http://forum.adsbradar.ru/forum.php (http://forum.adsbradar.ru/forum.php))

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 01, 2017, 04:40:28 AM
Hi XXaK,

Please specify what version of modesmixer2 you used previously without this problem with cpu loads? Or at least approximately year of its release, did it was with WEB interface?

Top - the Linux program provides a dynamic real-time view of a running system. What percentage of the CPU uses dump1090-fa and piaware software when you see Linux tasks in the top?

I don't think this will solve the problem, but in your setup I see parameter --inConnect localhost:30005 is a RAW data output in BEAST format.
And other the --inConnect localhost:30106 which is output of back MLAT data in decoded ASCII MSG format.

Try to use the same RAW format for MLAT by changing the option to --inConnect localhost:30105.
In modesmixer2 all data processing are performed in a RAW format and this will eliminate the need for additional reverse transcoding of the input feed.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: XXaK on February 01, 2017, 07:28:59 AM
Hi sergsero,
it was probably somewhere from 2015 as I started feeding in the beginning of 2016 (yes, it had web interface).Here (http://puu.sh/tJoHw/a44fd089a6.png) is a snippet from top, mm2 has been started 12h ago. I changed the settings of all outputs for MM2 to BEAST so I will see if that helps. I will let you know. Thank you.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: tiger on February 01, 2017, 06:54:45 PM
Hi Sergsero

Thanks for your answering.(Спасибо. Зарегистрируюсь на рус. форуме, там продолжим.)

Regards Alex
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: neilz on February 01, 2017, 09:02:05 PM
Hi Sergsero,

I'm also using your latest version on a RPi 3 (previously your late december one) and having the problem XXaK has had. I've attached my top output for you showing the modesmixer2 CPU % being over 100%. Once I stopped the service the average loads dropped right down to  load average: 0.33, 1.07, 1.52 from load average: 2.06, 2.06, 1.89.

I'm using RAW format for both my inputs into the program.

Thanks,
Neilz

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 02, 2017, 12:53:28 AM
Hi Neilz,

Thank you for your message. I will investigate the issue of abnormal CPU usage in version modesmixer2 20170127 on ARM.

Such high CPU usage occurs when there is high traffic or after a continuous working?
Or does it occur by itself regardless of load conditions and/or time?
Had this problem with previous versions of the program?

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 02, 2017, 04:50:45 AM
Hello,

I can assume that the problem is in RPi network interface with intensive stream of traffic.
Well known that on RPi 2 and previous models the USB and Ethernet bandwidth is shared and USB/Ethernet bus is something of a bottleneck.
By the way RPi3 WiFi/Bluetooth chip doesn't use USB.

However, this will require further investigation.

At the moment, if you have time, please try this test version: modesmixer2_rpi2-3_test_20170127a.tgz https://dl.dropboxusercontent.com/u/79709204/MM2/20170127/modesmixer2_rpi2-3_test_20170127a.tgz (https://dl.dropboxusercontent.com/u/79709204/MM2/20170127/modesmixer2_rpi2-3_test_20170127a.tgz)

I wonder whether it has the same problem CPU usage?
The download will remain the same, will be more or less?

Here is my test of CPU usage in piaware 3.3.0 with ~125 aircraft and 70-80 KB/s traffic via Ethernet interface:
(https://dl.dropboxusercontent.com/u/79709204/Pictures/20170202/modesmixer2_20170127_armv7.png)

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: neilz on February 02, 2017, 06:40:40 AM
Hi sergsero,

Thanks for your reply. It appears it is after continuous working on first look.

Version 20161216 was the last one I used which seemed to be ok running for a long time continuously.

My traffic averages 200 msg/sec - 500 msg/sec at busy times.

I have just started the program up again now and will leave it going and see how long it takes / what it takes for it to happen again. Will update you with the results.

Thanks again,
neilz
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 02, 2017, 06:51:28 AM
Hi neilz,

You're right, it really is the problem - CPU usage increases when the version 20170127 runs for a long time on ARM platform.

Thank you again for the problem found. I will look into it.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: XXaK on February 02, 2017, 08:08:27 AM
OK, I see, that the problem still persists, I put up the testing version and we will see. Here is the CPU graph: (http://puu.sh/tKMyL/914daecd03.jpg)
When CPU logging started, there was modesmixer running for approx. 3 hours.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: XXaK on February 03, 2017, 01:16:54 PM
Testing version is the same. Yesterday after 8:00 I changed the modesmixer version.

(http://puu.sh/tMvPe/d7a624fa9b.jpg)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: moon23 on February 05, 2017, 02:41:26 PM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 06, 2017, 09:45:32 AM
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.

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20170206/modesmixer2_20170127.jpg)

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: moon23 on February 06, 2017, 10:21:40 AM
Dear Sergsero
Thanks a lot for your helpness and kindness

Ayhan
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 10, 2017, 05:07:16 AM
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 (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 (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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: neilz on February 10, 2017, 06:21:32 AM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on February 10, 2017, 07:49:53 PM
After ~10h everything OK on RPi2/raspbian jessie.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: neilz on February 11, 2017, 08:36:40 AM
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   
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 11, 2017, 11:53:32 AM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: neilz on February 13, 2017, 06:28:00 PM
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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: I_Need_help on February 14, 2017, 10:20:42 AM
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?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on February 14, 2017, 02:17:53 PM
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




Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: I_Need_help on February 14, 2017, 06:01:39 PM
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.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: neilz on February 18, 2017, 01:42:51 PM
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 :)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on February 18, 2017, 06:47:09 PM
G'day Sergsero,

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

Thanks again for your efforts.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on February 26, 2017, 03:20:46 PM
Just wonder whether the MLAT functionality is of any usage for windows browser output or is it just RPi feature?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evangel on February 28, 2017, 11:02:37 AM
Hi Sergsero

all OK with my pi3 and latest modesmixer2. nice feature the beastmlat and the NOTAMs.

will be nice to see mlat added to the stats/charts.

brgds/evangel

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: chrisc550 on March 01, 2017, 03:09:11 AM
Quote from: IanH on January 27, 2017, 12:26:54 PM
Last version that I have for RPi1 is the same as you: 20150825.

Perhaps the RPi1 was not powerful enough to run the extra options so no newer version?

Edit:
Found a slightly more recent version (20160119) on a Russian forum
http://forum.adsbradar.ru/f25/modesmixer2-windows-linux-com-tcp-mixer-transcoder-modes-1451/
The file listing is not in Russian  ;)

Good find, IanH! Thanks for the help, I appreciate it :)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: chrisc550 on March 01, 2017, 03:13:00 AM
Quote from: sergsero on January 27, 2017, 12:55:16 PM
Hello,

I'll try to compile a version of modesmixer2 for RPi1 this weekend.

I fully agree with IanH, that for use extra options it is desirable have RPi2 or RPi3.

However, the main difficulty is to maintain on the deprecated version of Debian Wheezy 7. Today the current version is Debian Jessie 8 and it would be preferably to switch to it completely.
Because for building and optimizing programs I need a modern version of the gcc compiler and libraries.

Regards,
sergsero

Hi sergeso,

Thanks for compiling your latest version for RPi1! I understand that it's a pain to maintain for old hardware and OSes so I appreciate the extra effort you took. This version should last me until I can switch over to a newer model, so I won't be expecting any future updates for this old architecture in the future.

Cheers,
chrisc550
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: APO1972 on March 04, 2017, 07:32:58 AM
Hello to all,
Today i updated my modesmixer2 to v.20170127 without changing my .bat file.
Then after i observed that the "source id" dissapeared from the aircrafts coming from my local source...to all others whose coming from remote sources appearing well. 


***UPDATE***
I don't know how? , but from yesterday i've left it as it was and today working well!!!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: grezz on March 06, 2017, 09:32:20 PM
Hi sergsero,

I am trying to run modesdeco2_rpi2-3_20170127.tgz on an rpi 2 and I get "error while loading shared libraries: libyeppp.so: cannot open shared object file: No such file or directory"

I can't find a source for Libyeppp.so - i've tried the yeppp.info site but it seems to be down.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 07, 2017, 12:31:02 PM
Hi grezz,

I'm sorry, in this archive was erroneously placed the test version in which was used the dynamic library. Now I replaced the file. Please, download the archive again:
https://drive.google.com/open?id=0B7NYXizl0U6iNWJpQk5LTUktZ0E (https://drive.google.com/open?id=0B7NYXizl0U6iNWJpQk5LTUktZ0E)

Thank you for found an error in the archive.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 08, 2017, 12:06:28 PM
In post #3 http://radarspotting.com/forum/index.php/topic,2978.msg15240.html#msg15240 (http://radarspotting.com/forum/index.php/topic,2978.msg15240.html#msg15240) added version for CentOS 7: modesmixer2_CentOS7_x86_64_20170218.tgz

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on March 27, 2017, 06:26:34 PM
Hi

What is wrong with my data here?

I often have a number of planes (especially Norwegian I think) that is not displayed with all details, in the ModeSMixer2 (20170218) Flights list. It is "Register" and "Type" that is empty (and then also the silhouette as Type is missing). If I do a lookup in Basestation.sqb it looks like I here have full details on the plane (incl. ID and Type), by searching on the ICAO code. I guess Basestation.sqb is used, but is there also some online lookup involved?

br Lars
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on March 27, 2017, 10:29:57 PM
Are you certain that you are telling ModeSmixer2 to use the correct basestation.sqb?

If you have several on your PC, it might be reading from a different one to the version you are looking at!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on March 28, 2017, 05:43:04 PM
Yes I am, and I only have one version on my PC. The lookup works in 95% of the flights I have displayed. In this moment I see 29 ADSB and 12 ModeS. I have 6 planes right now where the Register and Type is missing, and 4 of them ar Norwegian(NAX)/Nortrans(IBK), and two KLM. I have tried to do a lookup in the basestation.sqb for the NAX/IBK and all 4 can be found with all information displayed.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on March 28, 2017, 05:47:39 PM
Do you run Basestation too?

What's the folder path for your sqb file?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on March 28, 2017, 08:37:45 PM
Actually I can see my signature was outdated. For a long time I have only been using ModeSMixer2.

c:\Apps\BaseStation.sqb

and command line in startup includes:

--db c:\Apps\BaseStation.sqb

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: spotter.ssol on March 30, 2017, 02:05:10 AM
Suggestion: make a copy of your database into another folder, install and configure VRS to use it and see if the same behaviour occurs. This probably will point if the problem is the database or mm2.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on March 30, 2017, 07:59:34 AM
Quote from: spotter.ssol on March 30, 2017, 02:05:10 AM
Suggestion: make a copy of your database into another folder, install and configure VRS to use it and see if the same behaviour occurs. This probably will point if the problem is the database or mm2.

This is a good idea.

Can you also post a screen capture of any of the "missing data" records as viewed in the sqb?  What are you using to view these records?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on March 31, 2017, 06:17:47 PM
YEs, great test. SO did a copy of current SQB into my VRS directory, and changed the VRS config to point to this.


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on March 31, 2017, 06:30:02 PM
Thanks.

Can you post a screen capture of the source data in the sqb file?  Showing the ModeS, ICAOTypeCode and OperatorFlagCode data fields.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on March 31, 2017, 06:35:55 PM
Except that I had the Lookup Flag enabled in VRS :-( So now I see a new plane coming in that has no Type and Registration in neither MSM nor VRS.
I use DB Browser for SQLite to look into the SQB, and I have no idea why I the other day could find the 3-4 planes data I checked in the SQB but wasn't displayed in MSM, and today I can't find other than ICAO and Country for the planes...
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on March 31, 2017, 07:03:02 PM
Do you have only 1 x sqb file on your PC?

The starting point is making sure the sqb database has the relevant data.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on April 01, 2017, 06:18:50 AM
Right now I have one for MSM and for test, one for VRS.
Wonder whether I can set MSM to only read from the file so I can have VRS doing the updating of the same file?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 01, 2017, 06:31:36 AM
Hi Lars,

I would like to understand what could be the cause of your issue with the data.

Could you upload somewhere your basestation.sqb file and to write to my email so that I'll downloaded it and explored.
If it is possible please inform me about the url by my email (the same my nickname on gmail.com)

And please clarify are you using the Windows version 20170218?

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on April 01, 2017, 07:10:02 AM
Hi Sergsero

Yes I am using 20170218.

I guess the problem now is that I don't have the full details on all flights in the sqb file. So unless MSM (like VRS) does pickup missing data from the internet, then I guess I just have to figure out how to update the sqb file with the missing data (automatically).

I will have a look later today when I discover planes with missing data and grab a copy of the file you can have a look at.

br Lars
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 01, 2017, 07:53:28 AM
Ok, I'll wait for the results of your investigation.

In the meantime, I have simulated a flight one of this Norwegian's aircraft (4CA5BF / EI-FHU) to fly over Siberia  :).
And information of its registration and the type is immediately displayed in the details area of modesmixer2 with my database instance.

Regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 02, 2017, 05:33:42 AM
Hi Lars,

Thank you for your basestation.sqb file.
I tested it and sent you the results with details by email.

How I can understand - the reason of your issue is in insufficiency of some information in the database file. I agree with you that the problem is in the difference obtaining of (missing) data between VRS и MM2.

As is known, the basestation.sqb database file consists of seven tables, but two of them are major. There are 'Flights' - a table of operational data and 'Aircraft' - a table with reference data about aircraft.

Operational flight data, that are recorded in the table Flights, both programs  performs equivalently.
The differences are in the sources of reference information for specific aircraft.

VRS can to search for some reference details on third party Internet resources that missing in database.
Modesmixer2 operates using only its own database file basestation.sqb. And you need to fill the null (empty) fields of the table by any method.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: I_Need_help on April 05, 2017, 09:28:44 PM
hi Sergio, i was just wondering if there was any news on the new version ModeSDeco2 with the memory fix?
I'm currently running modesdeco2_rpi2-3_20170127 which i believe is the latest?


thanks

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 06, 2017, 02:11:08 AM
Hi,

Yes, the version modesdeco2_rpi2-3_20170127.tgz is now latest.

Last time I mentioned that the current versions can "significantly use CPU resources when working with RTL dongle and high air traffic."

Do you have some problem with increasing memory utilization for modesdeco2 process on RPi3? If this was so, please specify details of the situation under which it occurs.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: I_Need_help on April 06, 2017, 07:42:32 AM
No as I set up a job to reboot the RPI 3 each night at 23:59.

I will remove the job and see what happens, I added the reboot as I thought it was a known issue...
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on April 06, 2017, 10:50:11 AM
I am also experiencing out of memory errors using the version modesmixer2_x86_64_20170127.tgz on Ubuntu server as a virtual machine.

The VM has 512Mb RAM. After two days it crashes with the error:

(http://ihld.co.uk/mm2_crash.jpg)

I tried it using InConnect instead of InConnectId but same problem.

Not a big deal since I have gone back to using an older version modesmixer2_x86_64_20150825.tgz which has been running for months on a Debian server.


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 06, 2017, 03:10:55 PM
Hi Ian,

I hope that your problem with modesmixer2 only because of my mistake that I didn't changed the name of the archives on new 20170218.
Although the problem of increasing memory utilization has been resolved. And  the binary files in old archives (with the name 20170127) were replaced without renaming the archives.

Now I changed names of the modesmixer2's archives in accordance with their versions (in message #3 of this forum).

Used for Ubuntu 16.04 Intel 64 bit: modesmixer2_x86_64_20170218.tgz https://drive.google.com/open?id=0B7NYXizl0U6iUFdUdnVIZ3BnMlE (https://drive.google.com/open?id=0B7NYXizl0U6iUFdUdnVIZ3BnMlE)
Probably for Debian will be used the previous version of Ubuntu 14.04 Intel 64 bit: modesmixer2_x86_64_ubuntu_14_04_20170218.tgz https://drive.google.com/open?id=0B7NYXizl0U6iaWZvZEo1LVIxMk0 (https://drive.google.com/open?id=0B7NYXizl0U6iaWZvZEo1LVIxMk0)

I would be very grateful if you find additional time to test the version 20170218 on possibility of its use without memory errors for a long time.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on April 06, 2017, 04:16:58 PM
Sergsero

Thank you for that quick response. I have just started the Ubuntu 16.04 version so if you hear nothing, it is working fine. ;)  I'll report back occasionally to let you know how long it's been running ok.

Ian
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 08, 2017, 01:15:01 PM
Hello,

New version of modesmixer2 v.20170506 for test.

+ fixed some bugs

+ added option --dbro <path/to/basestation.sqb> for to open a read-only database

+ added option --keep for keeping network connection to remote client when output MLAT data in BEAST FA format if the client program can drop it

+ added capability to directly connect the SBS-3 via USB port in Linux, for example: ./modesmixer2 --inSerial /dev/ttyUSB1:3000000:none for SBS-3.

(http://i9.pixs.ru/storage/1/7/2/mm2sbs3dir_5045624_26127172.png)

When you connect the device in system creates the pair of virtual serial ports: /dev/ttyUSB0 and /dev/ttyUSB1 (0 and 1 - if there are no other connected devices in the USB ports). Use the second in the pair - ttyUSB1.
The SBS-3 is most likely attached to user group dialout. Just add your user to the dialout group so you have appropriate permissions on the device:
sudo usermod -a -G dialout $USER
You may need to logout and back in for the new group to take effect.

+ added capability to display charts for altitude and speed. To look charts of altitude and speed for the aircraft click to button "Flight Graph". To keep the chart when the aircraft will leave of radar coverage, click button "Keep".

(http://i12.pixs.ru/storage/0/0/8/4245AEarrd_6098760_26127008.png)


Intel Windows 7/8.1/10: modesmixer2_windows_20170506.zip https://drive.google.com/open?id=0B7NYXizl0U6iSFM1eHRrVmpMU2s (https://drive.google.com/open?id=0B7NYXizl0U6iSFM1eHRrVmpMU2s)

Intel Ubuntu 16.04 64 bit: modesmixer2_x86_64_20170506.tgz https://drive.google.com/open?id=0B7NYXizl0U6idngwOFJaLUctRWc (https://drive.google.com/open?id=0B7NYXizl0U6idngwOFJaLUctRWc)
Intel Ubuntu 14.04 32 bit: modesmixer2_i386_20170506.tgz https://drive.google.com/open?id=0B7NYXizl0U6iWFc1TWhUaFNvR1k (https://drive.google.com/open?id=0B7NYXizl0U6iWFc1TWhUaFNvR1k)

ARM Raspberry Pi 2/3 Debian 8 Jessie: modesmixer2_rpi2-3_20170506.tgz https://drive.google.com/open?id=0B7NYXizl0U6iVGlEOEw5RUQwdkk (https://drive.google.com/open?id=0B7NYXizl0U6iVGlEOEw5RUQwdkk)


I would be very grateful if you find time to test the version 20170506 of modesmixer2 on possibility of it use without memory errors for a long time.

Best regards,
sergsero


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evangel on May 11, 2017, 11:59:51 AM
hi Sergesero

new ver runs ok on my pi with modesdeco. also the web page (wifi conx -> Win 7 / Opera ).
need some help with MLAT though
when I run dump1090-mutability, I get the green figurines and labels, but not otherwise.
how can i fix this please ?

thanks

edit: it appears it generates more messages than dump1090-mutability
        ( i use planeplotter's message window to compare the rates)

(//) 



[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 11, 2017, 02:04:36 PM
Hi evangel,

Sorry, it is possible that I do not quite understand your question.
However, the modesmixer2 is able to automatically detect a type of data as ADS-B, Mode S and MLAT (calculated by triangulation). Accordingly, it displays labels with different colors: ADS-B blue, Mode S brown and MLAT as green.

The dump1090-mutability is a specially modified version of the original dump1090 to be used with other Flightaware's programs for proprietary MLAT from Flightaware.
Modesdeco2 directly can't work in combination with other Flightaware program and for MLAT you need to use the dump1090-mutability from Oliver Jowett.

Regards,
sergsero

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evangel on May 11, 2017, 02:42:39 PM
hi Sergsero

in short  I use 2 different configurations in 2 different SD cards on pi3 :
-  conf A : decoder: dump1090-mutability , modesmixer reads 30005 beast and displays MLAT while feeding FA.
-  conf B : decoder: modesdeco, modesmixer reads 30005 beast but does NOT display MLAT while feeding FA.

and the command lines for both:

- conf A:
/xdeco/modesdeco2 --freq-correction 6 --rbs --beast 20005 --location 37.92:23.74 --filter-expire 90 --disable-web-log & 

/xdeco/modesmixer2 --web 7788 --google-key xxxxxxxxxx --inConnect 127.0.0.1:20005 --outServer beast:30004 --outServer beast:30104
--outServer beast:30005 --outServer beast:30105 --outServer beastmlat:30204 --outServer msgmlat:41007 --outServer
avrmlat:41008 --location 37.92:23.74 --add-reference-point 37.92:23.74 --keep --filter-expire 90 --log-noconsole --log-file /xdeco/modemix4.log &



- conf B

modesmixer here gets data from mutability

/xdeco/modesmixer2 --web 7788 --google-key xxxxxxxx --inConnect 127.0.0.1:30005 --outServer beast:40005 --location 37.92:23.74 --add-reference-point
37.92:23.74 --keep --filter-expire 90 --log-noconsole &


hope now is clear, thanks for your help

evangel

UPDATE 1

my full config is  deco / mixer in PI ----> WIFI -----> PC Win 7 modesmixer2 ---> PP, VRS etc
it seems MLAT appears now only on the modesmixer running on PC but not the RPi. ????!!!!






(//)

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 11, 2017, 03:35:01 PM
Hi Evangel,

In your setup for modesdeco2 I found the option --rbs. It's can significantly loading of computer resources. Probably this option is better not to set if you don't use Mode A/C messages, if only for Planeplotter.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evangel on May 11, 2017, 03:43:17 PM
Hi Sergsero

yes i do need to display A+C and I feed Planeplotter that's why i put it, (try to get anything within my range of any kind) but I only use the RPi / dongle for ADS-B so I did not notice any memory problem or other.

any news on the MLAT please ?

best regards
evangel
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 11, 2017, 04:05:11 PM
Hi  Evangel,

Unfortunately, at the moment in my area there is no aircraft with MLAT. But I checked version for RPi with the MLAT source of my friend from Brazil, who help me with program testing by providing access to his feeds.
There are no differences in work the versions for PC and RPi.

/sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evangel on May 11, 2017, 04:46:19 PM
Hi Sergsero

thank your reply. There is still the issue why the combination dump1090-mutabilty / modesmixer displays MLAT in modesmixer web page, while modesdeco / modesmixer do not display MLAT as you can see in the pictures (because I prefer the second combination). Please note that in both case piaware is running.
when i check with flightaware, mlat data received from the deco/mixer combo just not displayed on modesmixer web page.
Tried many combinations but cant make it work (modesmixer) without mutability running.

brgds
Evangelos

(//)


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: MrMac on May 11, 2017, 11:08:46 PM
Quote from: evangel on May 11, 2017, 02:42:39 PM


/xdeco/modesmixer2 --web 7788 --google-key xxxxxxxxxx --inConnect 127.0.0.1:20005 --outServer beast:30004 --outServer beast:30104
--outServer beast:30005 --outServer beast:30105 --outServer beastmlat:30204 --outServer msgmlat:41007 --outServer
avrmlat:41008 --location 37.92:23.74 --add-reference-point 37.92:23.74 --keep --filter-expire 90 --log-noconsole --log-file /xdeco/modemix4.log &


You need to configure an input for the mlat-results, how else are you going to get them into modeSmixer ? You have only the raw data from the decoder.

Check the process "fa-mlat-client", you will se where it sends/makes available the results from the FA mlat server.

BR /M
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: MrMac on May 11, 2017, 11:49:21 PM
Hi Sergsero,

First of all, big THANK YOU for a very useful program. I use ModeSmixer2 on a large number of remote RPi-based systems with different types of receivers, DVBT/Dump, SBS, Beast and Radarcapes. It works very well indeed!



Some of the things I have found that could be further improved;

1. In log-level 5 mode the timestamps displayed are not complete, at last not for Radarcape timestamps. Several identical are displayed which is impossible, I think the field is too short?

2. When data is discarded, for example in the "nocountry" filter, it would be good to see which hex code is discarded.

3. The Radarcape status messages are discarded as no ModeS message (or similar), but they are important and should be forwarded in the beast data stream. Without them, Piaware will not activate mlat for a Radarcape receiver. Even better, they could be decoded to give GPS position and GPS lock status etc.

4. I am missing an "inSerialID" connector. Preferably, all the input connectors should have an "ID" version, it's a great idea to see different receivers.

5. When using an inConnectID that contains one or more "-", the lines in the flights list are broken and takes double space, even with a very short ID. Try using for example --inConnectId localhost:30005:P-ESGG1-D .



Some other suggestions for new functionality;

A. Reducing the bandwidth used for remote feeding stations. This is becoming a challenge in our network, both for the remote ends with limited data on mobile broadband, limited bandwidth, and the accumulated data on the server side.

Some different approaches;

A1. Downsample filter. We use this extensively in AIS feeds. Downsample with an adjustable time t seconds. After one DFx/ICAO combination has been transmitted, the same DFx/ICAO is blocked for t seconds. With a 3s downsample, all flights update once per 3 seconds, instead of several times per second.

A2. Configurable filter for DF types.

A3. Only transmit ModeS messages( DF4,5 etc) if no ADSB (DF17) is available for each ICAO.

A4. JSON output connector compatible with VRS JSON input, with configurable update interval

Filters should be set per output connection, so that full data is available locally, but a filtered set sent over the remote connection.


I would be very interested in discussing these things further or help with dev and testing.


BR
/M
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evangel on May 12, 2017, 01:51:07 AM
MrMac

Thanks that did it !  changed --outServer beast:30104 to inServer 30104  and it worked !  ;)

best regards

Evangel


and mlat-only display in adsbscope...nice...




[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 13, 2017, 02:42:30 AM
Hello MrMac,

Thank you for your feedback and suggestions for further improved the project. I'll try to realize them in new versions of the program.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: A380 on May 13, 2017, 12:48:06 PM
Hi Sergsero,

also a custom icao24 filter would be fine to exclude, "Hex codes" from the output (example Groundstations from the Airport).

And CSV and/or Mysql logging of the sessiondata (expamle first/lastcontact, first/lst position, callsign, etc  of an aircraft).

Thanks

A380
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evangel on May 14, 2017, 08:11:11 PM
Hi Sergsero

after 24hrs running modesmixer2 the only things still working is the charts and stats.
no traffic in googlemaps and nothing in flights tab  ??? I use Opera or Vivaldi but both do
not have issues with other sites. also, the header line properly displays number of S/A/M tracked aircraft. any ideas ?
same results in the  conf file version and the May version (maybe good idea to change ver nbr
instead of all being modesmixer2 and also a traffic log).

brgds

evangel


UPDATE : it worked again briefly then map stays but nothing... see 2nd image.



(//)

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on May 14, 2017, 08:47:01 PM
I am using ModeSMixer2 version with configuration file and it's working fine. (Google Chrome Versión 58.0.3029.110)

At the same time that it's feeding FlightRadar24 MLAT and FlightAware MLAT I've been editing the Basestation aircraft and routes database and all is working.

Are both versions of ModeSMixer2 (with and without configuration file) going to merge in the future?

Hi, evangel

There is an updated version v.20170509, that has some improvements:

- Made improvements when working with Google map.

- Added online capabilities to enable and disable data sources.

- Added support of Waypoint and Outline data files by SBS standard. These are simple text files that add a dot to the display with a name tag or create lines.


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evangel on May 14, 2017, 11:04:14 PM
Hi Conexia

thanks for the info. Actually the images are from the 'cf' version
but have the same problems with the recent one. I have google API key
and I just cant explain the sudden break in display, though charts and data reception
appears normal.

as for dots a lines is interesting but tidious so far, untill a proper config file is
made (similar to PlanePlotter) where you can have different files for different data.
I say tidious coz as it is now, it means you have to embed whole lot of data in the
same BATch file.

brgds
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on May 22, 2017, 08:04:41 AM
Hi, Sergsero
From yesterday my modeSmixer2 version v.20170506 is not working as before. I have modeSdeco2+modeSmixer2+PiAware MLAT+FR24Feeder in a Raspberry Pi 3 model B.

The left Highcharts graphics in the Chats page are missing. Also the planes footprint in the map and the distance rings are not shown.

I've cleared cache several times and tested it in Chrome versión 58.0.3029.110 and Microsoft Edge 38.14393.0.0

Maybe the error is in Highcharts.

Greetings


[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: shinesamuel on May 31, 2017, 11:40:40 PM
Hi, Sergsero,

   i have tried running modesmixer2_rpi2-3_20170506, I am running it on Raspberry pi3 and its getting crushes.
checked the log seeing

May 31 18:12:18 kernel: [38915.750569] Out of memory: Kill process 14859 (modesmixer2) score 643 or sacrifice child
May 31 18:12:18  kernel: [38915.750600] Killed process 14859 (modesmixer2) total-vm:737732kB, anon-rss:693664kB, file-rss:0kB, shmem-rss:0kB

what is the solution for this error?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 01, 2017, 09:40:24 AM
Hi shinesamuel,

As I think, a size of the virtual memory that a process uses is listed as total-vm. Part of it is really mapped into the RAM itself as allocated and used. This is RSS.
Part of this RSS is allocated in real memory blocks and this is anonymous memory (anon-rss). There is also RSS memory blocks that are mapped into devices and files, are listed as file-rss.
Based on the above log, modesmixer2 requested memory allocation in total-vm:737732kB of 1 GB total in RPi3. And the kernel, which does not has such a memory, killed the process.

Please, specify if possible some additional information:

- which set of options you used in command line when starting the program?

- how fast the process was killed? The program works for some time or was stopped immediately after run?

- how many aircraft were at this time in observation?

- do you have connected a database files as basestation.sqb?

- what other programs are running on the same RPi3? It would be nice to see a output of the program top on console.

On the attached screenshot below the loading of RPi3 resources (VIRT MEM = 36812kB) when traffic handling of ~100 aircraft.
I'll additionally checking the lot of memory allocation (probably, never used) when the total-vm would be higher, but no real memory would be used. So the rss values would be low as in the your case.

Best regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: shinesamuel on June 07, 2017, 03:10:42 PM
Hi Sergsero

   which set of options you used in command line when starting the program?

/home/pi/XDECO/modesmixer2 --inConnect localhost:30003 --inConnect localhost:30005 --inConnect localhost:30002 --inConnect 192.168.XX.XX:30009 --inConnect 192.168.XX.XX:30015 --inConnect 192.168.XX.XX:30011 --outConnect beast:feed.adsbexchange.com:30005 --outConnect avr:feed.adsbexchange.com:30005 --outConnect avrmlat:feed.adsbexchange.com:30005 --outConnect avr:sdrsharp.com:47806 --outConnect beast:data.avdelphi.com:24999 --inConnect 192.168.XX.XX:30030 --inConnect 192.168.XX.XX:30014 --inConnect 192.168.XX.XX:30005 --outServer avr:30030 --outServer beast:31001 --globes 31008:table2:KRDU --outServer beast:31002 --location XXXXX:XXXXX --metric --web 8001 --outServer beast:30007 --outServer sbs10001:10001 --outServer msg:30014 --localtime --google-key XXXXXXXXXXXXXXXX --silhouettes /home/pi/XDECO/SilhouettesLogos --db /home/pi/XDECO/BaseStation.sqb --frdb /home/pi/XDECO/flightroute/flightroute_w.sqb --filter-expire 20 --filter-count 6 --filter-nocountry off --filter-ic off --filter-dup off --filter-time 60 --flight-expire-time 3000 --log-noconsole

how fast the process was killed? The program works for some time or was stopped immediately after run?


i have moved to different RPi2 and process run for a day and then its get killed.

do you have connected a database files as basestation.sqb?

no

what other programs are running on the same RPi3? It would be nice to see a output of the program top on console?

only dump1090-mut

i restarted the console program and seeing the memory is growing up

top - 10:09:04 up 2 days, 15:24,  1 user,  load average: 1.51, 1.64, 5.44
Tasks: 131 total,   3 running, 128 sleeping,   0 stopped,   0 zombie
%Cpu(s): 28.8 us,  8.3 sy,  0.0 ni, 62.0 id,  0.0 wa,  0.0 hi,  0.8 si,  0.0 st
KiB Mem:    994240 total,   228124 used,   766116 free,    15352 buffers
KiB Swap:   102396 total,    29604 used,    72792 free.    57012 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
5725 root      20   0  149040 112316   7116 R  99.7 11.3   9:39.47 modesmixer2
  480 dump1090  15  -5   28684   9088   1020 S  26.1  0.9   1044:14 dump1090-mutabi
13323 pi        20   0    5240   2588   2144 R   1.0  0.3   0:00.16 top
    7 root      20   0       0      0      0 R   0.3  0.0  11:15.46 rcu_sched
   23 root      rt   0       0      0      0 S   0.3  0.0   0:08.30 migration/3

Please help why the memory is growing up which is causing the console is being killed.




[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 07, 2017, 04:49:48 PM
Hi shinesamuel,

Thank you for your answers.
On your screenshot I see the maximum utilization of CPU, not memory. Probably that you are using the huge number of options for transforms data from one format to another, as well as sharing it via network and have reached the limit for RPi2/3 CPU.

It would be nice to know the answer to a question that was also - how many aircraft you observed in that moment? To estimate the amount of processed data traffic.

Also note that options --filter-nocountry and --filter-ic  do not have arguments and for options: --filter-expire, --filter-count and --filter-time you set their default values and not required. Although it shouldn't cause the such big CPU usage.
And you are using a database files: "--db /home/pi/XDECO/BaseStation.sqb --frdb /home/pi/XDECO/flightroute/flightroute_w.sqb"

If you have an possibility, check the same setup on a computer with Intel processor and Intel version of the program.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: shinesamuel on June 07, 2017, 07:32:10 PM
Sergsero,

    how many aircraft you observed in that moment?

they were 133 aircraft at this moment.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 08, 2017, 03:05:10 AM
Shinesamuel,
thank you for helping.

It can be assumed that in this situation the number of aircraft does not affect the problem, because their numbers comparable with my tests. It remains to test multiple simultaneous conversion of message formats and input/output network's transactions.

I performed similar tests for the Intel platform. And even on outdated computers with CPU core2duo I don't have the problem.

I'll try to do this stress test for the ARM platform.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on June 19, 2017, 04:14:36 PM
@sergsero
When you have a minute, would you be so kind to review my last messages about modeSmixer2 version v.20170506 in this same thread and The version of Modesmixer2 with a configuration file?

If you want me to check anything feel free to contact. I'm attaching a Stats screen.

Greetings

Antonio

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Barrow Wight on August 30, 2017, 04:47:30 AM
Hello, I just startind using this software and made a couple of discoveries that lead to some questions I have.
My apologies if either of these questions have been asked before.

1. What is the status on updating the Raspberry Pi version to Raspbian stretch. It appears that libcrypto and libssl are now installed as versions 1.0.2 and 1.1, so this software will not work anymore without an update.

2. When I use either modesdeco or modessmixer, the map does not show all of the aircraft that other ads-b software displays. Furthermore, the chart that shows messages received is reporting a much lower number than the messages sent display on rtl1090.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: aldoir on September 02, 2017, 09:57:29 PM
@sergsero,

I would like to run MM2 behind a HTTPS proxy, would you mind changing the script/references to href="//fonts.googleapis.com" and src="//code.highcharts.com" to let the browser choose the best protocol?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: exCzAF member on September 21, 2017, 06:13:21 PM
Modesdeco2 latest issue....
have a problem : Database 14 error
My OS:  Win 7 64bit and

After start program shortly running "black window" and it is all.
Me tried run .bat file a here is a stop in dialog window " database 14"

What is a mean???
Thanks for advice and opinions.
Larry - ex CzAF member.
Czech republic - LKPD
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: freemantp on September 21, 2017, 06:52:53 PM
Hi Sergsero

I tried to run modesmixer2 behind nginx (as a reverse proxy). In my configuration ningx exposes a https interface and forwards all http requests to the web-interface of modesmixer2.
This basically works in older browser, however newer versions of chrome, firefox and edge don't display any charts or the map. I got to the bottom of this, and found out that these browsers don't like https and http content to be mixed : https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content

This is due to the fact that resources from these sources are not requested via https.
http://fonts.googleapis.com/
http://code.highcharts.com

Both are reachable via https, too, so i guess it would be an easy fix. I would have fixed this myself and sent you a pull request, but I guess the source code is not publicly available, right?

Cheers
freemantp
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on September 24, 2017, 02:34:02 PM
Hi,

The version 20170924 of ModeSMixer2.

+ now resources from these sources http://fonts.googleapis.com/ and http://code.highcharts.com are requested via https.
+ fixed same bugs

Windows Intel x86: modesmixer2_windows_20170924.zip https://drive.google.com/open?id=0B7NYXizl0U6iSnU3amVldVVfUWc (https://drive.google.com/open?id=0B7NYXizl0U6iSnU3amVldVVfUWc)

Raspberry Pi 2/3 jessie: modesmixer2_rpi2-3_20170924.tgz https://drive.google.com/open?id=0B7NYXizl0U6iZlY0MTlhWlRWTEE (https://drive.google.com/open?id=0B7NYXizl0U6iZlY0MTlhWlRWTEE)
Raspberry Pi 2/3 stretch: modesmixer2_rpi2-3_deb9_20170924.tgz https://drive.google.com/open?id=0B7NYXizl0U6iclAyNUl1clRkbU0 (https://drive.google.com/open?id=0B7NYXizl0U6iclAyNUl1clRkbU0)

Ubuntu 16.04 Intel 64 bit: modesmixer2_x86_64_20170924.tgz https://drive.google.com/open?id=0B7NYXizl0U6iT01YRUFMcFZUVkU (https://drive.google.com/open?id=0B7NYXizl0U6iT01YRUFMcFZUVkU)
Ubuntu 14.04 Intel 32 bit: modesmixer2_i386_20170924.tgz https://drive.google.com/open?id=1JXON6fEhTxTxSBmMt7jrk33p3xZjRe9l (https://drive.google.com/open?id=1JXON6fEhTxTxSBmMt7jrk33p3xZjRe9l)

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: gleven on October 22, 2017, 07:16:22 PM
Hi Sergsero.

Is there any way of combining two streams into one using modesdeco/modesmixer but filtering out MLAT information from one of the streams?
I currently have one omni antenna to get the traffic around me and i'm planning to have an additional yagi antenna pointing at the local airport so i can get more positions from the planes landing/taking off.

I have tried many combinations of stream types (avr, avrmlat, beast, msg, msgmlat, fatsv, but it seems that the MLAT positions picked up by the yagi antenna gives me the following message in piaware log:

QuoteWarning: the timestamps provided by your receiver do not seem to be self-consistent. This can happen if you feed data from multiple receivers to a single mlat-client, which is not supported; use a separate mlat-client for each receiver.

I'm using the latest versions of the executables (modesdeco2_rpi2-3_20170127.tgz / modesmixer2_rpi2-3_20170924.tgz)


P.S. I figured out how to do it.Everything is working fine now.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on October 28, 2017, 04:28:18 AM
Quote from: exCzAF member on September 21, 2017, 06:13:21 PM
Modesdeco2 latest issue....
have a problem : Database 14 error
My OS:  Win 7 64bit and

After start program shortly running "black window" and it is all.
Me tried run .bat file a here is a stop in dialog window " database 14"

What is a mean???
Thanks for advice and opinions.
Larry - ex CzAF member.
Czech republic - LKPD

G'day Larry, did you ever get this "database 14" error sorted?
Also have this error now occurring after a hdd upgrade. I didn't receive it before hand.

TIA
Oldfella
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Extranet on November 14, 2017, 02:34:49 PM
Quote from: Barrow Wight on August 30, 2017, 04:47:30 AM
Hello, I just startind using this software and made a couple of discoveries that lead to some questions I have.
My apologies if either of these questions have been asked before.

1. What is the status on updating the Raspberry Pi version to Raspbian stretch. It appears that libcrypto and libssl are now installed as versions 1.0.2 and 1.1, so this software will not work anymore without an update.

2. When I use either modesdeco or modessmixer, the map does not show all of the aircraft that other ads-b software displays. Furthermore, the chart that shows messages received is reporting a much lower number than the messages sent display on rtl1090.

I found this as a work around for the libssl issue using Stretch until modesmixer2 is updated to use the newer libraries

wget http://ftp.nl.debian.org/debian/pool/main/o/openssl/libssl1.0.0_1.0.2l-1~bpo8+1_armhf.deb

sudo dpkg -i libssl1.0.0_1.0.2l-1~bpo8+1_armhf.deb


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: DerStefan on February 22, 2018, 04:25:02 PM
Hi all,
please post anyone a working nginx configuration to reverse_proxy modesmixer2 ?!?!
I dont't get it working ) - :
best regards Stefan
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: pellonet on March 03, 2018, 04:48:51 AM
Quote from: gleven on October 22, 2017, 07:16:22 PM
Hi Sergsero.

Is there any way of combining two streams into one using modesdeco/modesmixer but filtering out MLAT information from one of the streams?
I currently have one omni antenna to get the traffic around me and i'm planning to have an additional yagi antenna pointing at the local airport so i can get more positions from the planes landing/taking off.

I have tried many combinations of stream types (avr, avrmlat, beast, msg, msgmlat, fatsv, but it seems that the MLAT positions picked up by the yagi antenna gives me the following message in piaware log:

QuoteWarning: the timestamps provided by your receiver do not seem to be self-consistent. This can happen if you feed data from multiple receivers to a single mlat-client, which is not supported; use a separate mlat-client for each receiver.

I'm using the latest versions of the executables (modesdeco2_rpi2-3_20170127.tgz / modesmixer2_rpi2-3_20170924.tgz)


P.S. I figured out how to do it.Everything is working fine now.
Hi, I know this is an old posting but would you consider sharing the solution to your problem as I have a situation where I want to combine  2 receivers onto one piaware feed & I will get the same problem with timestamps.?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evangel on March 09, 2018, 08:36:47 AM
hi Pellonet

provided that you are on same (fast) network ie 192.168.1.xxx with 2 different pi/PC and decoders and both are running NTP :

on 1st pi/PC (receiving the most traffic)
          decoder output beast:33005 only
on 2nd pi/PC
          decoder output beast 33006 only

on 1st or 2nd pi/PC or a 3d PC connect to Flightaware for MLAT

          modesmixer2  string : modesmixer2 --inConnect 1st IP:33005 --inConnect 2nd IP:33006 --outServer beast --inServer 30004 --inServer 30104 --inConnect  30105 --inConnect 30106 --outServer beastmlat:33007 --location lat:long &

as you see mixer combines 2 different streams and outputs it to piaware on standard port 30005. time anomaly could still exist though, specially if receivers/antennas are on different network and/or different location.
port 33007 will only provide mlat info to VRS or adsbscope.

HTH
Evangel



[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 13, 2018, 04:08:18 AM
Test version of modesmixer2 20180311

+ added --valid-modes <arg> - for Mode S these values indicate how many times an aircraft's ICAO24 has to be seen over a given number of seconds in messages that can be tested for corruption before it is assumed to be correct in this cycle of validation.
The default values are 0:5, max 100:30.
The default values are 0 messages over 5 seconds and modesmixer2 will never accept an ICAO24 from a message where it cannot be sure that the parity is correct. Also the filter simultaneously uses other current flight parameters like altitude and number of received messages.

+ added --valid-adsb <arg> - for ADS-B these values indicate how many times an aircraft's ICAO24 has to be seen over a given number of seconds in messages that can be tested for corruption before it is assumed to be correct in this cycle of validation.
The default values are 6:60, max. 10:60.

- no longer used options:
  --filter-count arg        Filter min count (default: 6)
  --filter-time arg         Filter min time, sec (default: 60)

+ added input format "Compressed VRS" for compatibility with VirtualRadarServer with automatic recognition.
This version has a limitation of the output "Compressed VRS" format. It can be used if a data were received from incoming messages MSG or Compressed VRS.

+ some changes in the code and in WEB interface.


(https://lh5.googleusercontent.com/-pl1OAyTtjew/Uf0Bdu_tTrI/AAAAAAAAB-4/CzRCoTOME1k/s64/microsoft_64_new.jpg)
This version was compiled in Microsoft Visual Studio 2017. When try to open the exe you can get an error which says "MSVCP141.dll is missing".
You could download Microsoft Visual C++ Redistributable for Visual Studio 2017 from here: https://www.visualstudio.com/downloads. The file is located at the bottom of the page, in the section:
"Other Tools and Frameworks".
You should choose a x86 version, regardless of the bitness of your operating system - VC_redist.x86.exe.


(https://lh5.googleusercontent.com/-vqqCI6Mrg4w/UZo7x7P7TYI/AAAAAAAABk8/0S5t9wU7c8k/s64/arm.jpg)
(https://lh5.googleusercontent.com/-bxNinalbePI/UZHzGH8FBII/AAAAAAAABdo/VlAyYEbtGxo/s64-no/linux.jpg)
(https://lh5.googleusercontent.com/-Vmvyv0uu2nM/UcWva8Hwd8I/AAAAAAAABxs/HzK6e1kPhKw/s64/macosx_1.jpg)
I will be very grateful for testing and feedback.

/sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on March 16, 2018, 10:03:36 AM
Hi, sergsero
Thanks again for your work. I've tested the modesmixer2 20180311 version under Raspberry Pi 3 and it's working fine and the UI is better, except that:
- Some of the Highcharts graphics do not show (I'm attaching a screen print)
- The marker that defines the total receiving area covered does not show (it shows Ok in the mode3Sdeco2 in the same Raspberry)

What can I do for solving these?
Thanks in advance.

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 16, 2018, 12:01:37 PM
Hi,

You need force-refresh a page in your browser.
On Windows you should press  F5 (may be twice). Or reload the current page ignoring cached content by 'Control+Shift+r' or 'Control+F5'.

More details can be found here: https://www.wikihow.com/Force-Refresh-in-Your-Internet-Browser

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on March 16, 2018, 02:51:40 PM
Thanks, sergsero
I've tried to refresh the page but no luck. The same with Chrome Versión 66.0.3359.33,  Edge 41.16299.15.0 and Firefox 59.0 (32-bit)

In the console it shows an error with Highcharts (see attached image)

In order to know it is something related with my PC I've tested with a more modern one, and the result is the same.

Again, thank you very much

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on March 16, 2018, 06:18:07 PM
I was having difificulty downloading any of the new files.

Finally figured it out so it works for me although you might not be having problems:

Copy the web link to a browser- for example:

http://%22https//drive.google.com/open?id=1SQTIZGyT3KFIkULEC9Y0bsWQTsn5hJ6u%22

Delete the http%22 at the beginning and delete the %22 at the end. Then add a : after https and the link should work.

Now to test the Ubuntu version.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on March 16, 2018, 08:38:30 PM
Thanks, IanH
But my problem is related to some Highcharts bug or misconfiguration on my side.
I've downloaded and installed ModeSMixer2 on my Raspberry Pi and everything except the charts works

Greetings
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 17, 2018, 03:07:47 AM
Hi IanH,

Thank you for testing and found a issue with the URL. Now I have changed the links to the files by placing them directly on the page.

Do you have the same problem with the page CHARTS?

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 17, 2018, 04:55:08 AM
Hi Conexia,

I just checked the program on Raspberry Pi 3 and could not reproduce your problem. In the screenshots to this message all graphs are displayed.

Maybe you should check the option --location lat:long set correctly. You must use this option because the distance chart and coverage chart are based on its coordinates.

Regards,
sergsero

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: davidtriggs on March 17, 2018, 06:00:23 AM
Hi Sergsero,

On a slightly different topic, I have just tried to start ModeSDeco with the --add-point argument and a list of waypoints. The first two are
-27.0216666666:121.323333333:AGREK -23.3966666666:125.696666667:BATOP 

The first point will load, but the second will not. The problem seems to be the - sign in front of the latitude of the waypoint. Any single point will read fine, but the second point with a negative number will not, I suspect because the command line interpreter thinks it is a switch.



David

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 17, 2018, 07:23:11 AM
Hi David,

Indeed, for negative geographic coordinates require each additional point to be specified as a single point in the option.
And just repeat this option --add-points by the number of required points as:
--add-point -27.0216666666:121.323333333:AGREK --add-point -23.3966666666:125.696666667:BATOP ...

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on March 17, 2018, 07:40:57 AM
Hi, Sergsero
With your help, all is working now
The problem was that I had set --location XX.X:YY.Y only on ModeSdeco, and not in ModeSmixer (both are running in the same Raspberry Pi)

Thanks again, keep the good work

Antonio

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evangel on March 17, 2018, 07:46:43 PM

Hi Sergsero

Nice update.
Works OK under Win7x64 browsers Opera and Vivaldi.
Works OK under RPi3 Jessie 8 lite.

unable (as from previous version) (or is it the RPI update ?) to use
/home/pi/modesmixer2 \
--inConnect etc etc
  to avoid long single line. I think a proper .conf file
is needed  :)

unable to save the polar plot (.json or .csv or .out) except for screen dump.

unable draw lines by connecting reference points.

best regards
Evangel






Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on March 18, 2018, 08:24:17 AM
Hi, Sergsero
After getting it to work I don't know if --location and --web in the modeSdeco2 are needed.

This is my actual configuration. With it I'm updating my own database and feeding FlightRadar24 and FlightAware and all seem to work.

home/pi/modesdeco2/modesdeco2 --gain 48.0 --web 8080 --beast 31001 --location 39.46:-0.35 --rbs &
sleep 8
home/pi/modesmixer2/modesmixer2 --google-key XXXXXXXXXXXXXXXXXXXXXXXXXXXXX --web 8081 --location 39.46:-0.35 --db home/pi/modesdeco2/dbase/BaseStation.sqb --frdb home/pi/modesdeco2/dbase/FlightRoute.sqb --silhouettes home/pi/modesdeco2/images/silhouettes --pictures home/pi/modesdeco2/images/pictures --inConnectId 127.0.0.1:31001:RPi  --inServerId 30104:MLAT4 --outServer beast:30005 --keep --add-reference-point 39.41:-0.27:[IAF] --add-points 41.32360:-2.62973:BAN 42.73375:-1.70200:PPN 41.30712:2.10781:BCN 41.14786:1.14616:RES 41.12960:0.16526:MLA 40.86728:-1.29805:CMA 40.85386:-3.24662:RBO 40.37196:-2.54460:CJN 41.53018:-5.63970:ZMR 41.32356:-2.62979:BAN 40.25293:-3.34804:PDT 42.45331:-2.88071:DGO 40.21881:0.08923:CTN 39.92748:3.11461:POS 41.01681:-5.45644:BBI 39.86362:4.21635:MHN 39.78076:-3.46399:VTB 39.70717:-0.98632:CLS 39.69775:3.43436:CDP 39.56467:2.74659:JOA 39.48563:-0.48303:VLC 38.86835:1.36593:IBZ 38.36079:-2.35271:YES 38.26829:-0.57012:ALT 38.15254:-3.62471:BLN 37.77980:-0.81277:VSJ 36.83317:-2.25945:AMR 36.81432:-4.36958:MGA 38.50813:-5.09968:HIJ 39.54944:2.39586:ADX 41.51985:2.10975:SLL 41.93118:2.77197:GIR 41.94769:3.20886:BGR 39.96946:-4.33747:TLD 40.36868:-4.24942:NVS 37.42758:-5.76222:SVL 39.52451:-6.43474:CCS 39.44:-0.35:PND 39.67:-0.21:SGO 39.62:-0.47:EBT 38.95:-1.86:TAB &
sleep 3


An like evangel says, It would be nice to use a configuration file and be able to draw lines between points.

Thanks again
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: davidtriggs on March 18, 2018, 09:05:11 AM
Quote from: sergsero on March 17, 2018, 07:23:11 AM
Hi David,

Indeed, for negative geographic coordinates require each additional point to be specified as a single point in the option.
And just repeat this option --add-points by the number of required points as:
--add-point -27.0216666666:121.323333333:AGREK --add-point -23.3966666666:125.696666667:BATOP ...

Regards,
sergsero

Hi sergsero,

Thanks for your help, that fixed it! Bit messy, but got there. I have managed to build ATS waypoints, Approach Waypoints and airports into the bat file, results attached. Pretty ugly but very effective.

Thanks for your help

David

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 18, 2018, 09:37:44 AM
Hi,

As for the configuration file - such option of modesmixer2 is existing and even there is an outdated test version: https://radarspotting.com/forum/index.php/topic,6786.msg32610.html#msg32610
It is possible that in the future these branches will be combined into one.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on March 18, 2018, 09:58:37 AM
Hi Antonio,
Quote from: Conexia on March 18, 2018, 08:24:17 AMAfter getting it to work I don't know if --location and --web in the modeSdeco2 are needed.

Because the main function of modesdeco2 is to receive signals and extracting messages via SDR method I think you may disable the WEB option as it has an auxiliary function and basic visualize of your data better make in modesmixer2.

A "--location lat:lon" option I recommend you to use because it is used in method called "local decoding". This takes a single message and calculates the location of the aircraft using a reference your location, with the proviso that the aircraft has to be within 180 nautical miles (for airborne traffic) or 45 nautical miles (for surface traffic) of the reference location. So use this option in both applications.
The necessary accurate of coordinates to 2 decimal place.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on March 18, 2018, 10:17:07 AM
Quote from: sergsero on March 18, 2018, 09:58:37 AM
Hi Antonio,
Quote from: Conexia on March 18, 2018, 08:24:17 AMAfter getting it to work I don't know if --location and --web in the modeSdeco2 are needed.

Because the main function of modesdeco2 is to receive signals and extracting messages via SDR method I think you may disable the WEB option as it has an auxiliary function and basic visualize of your data better make in modesmixer2.

A "--location lat:lon" option I recommend you to use because it is used in method called "local decoding". This takes a single message and calculates the location of the aircraft using a reference your location, with the proviso that the aircraft has to be within 180 nautical miles (for airborne traffic) or 45 nautical miles (for surface traffic) of the reference location. So use this option in both applications.

Regards,
sergsero

Thanks again, Sergsero
You've been of much help

I've been reviewing the ModeSmixer with configuration file that I already was testing and it is very interesting. The posssibility of having points of different classes (FIXES, VOR, NDB,...) will be very useful for mapping.

Greetings
Antonio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on March 18, 2018, 04:51:24 PM
Sergsero

Everything seesm to be working ok on Ubuntu 16.04.4   ;D
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on April 15, 2018, 09:59:10 AM
Currently not able to download any of the versions 20180311
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on April 15, 2018, 11:23:10 AM
I´ve just tried

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on April 15, 2018, 02:47:29 PM
Tried again. Same problem in Safari on Mac and IE on WIN10. Switched to Chrome. Still and error message, but I got it downloaded.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on April 21, 2018, 11:46:43 AM
Hi,

I am thinking about replacing my current tablet with a Amazon fire tablet as mine will no longer get Microsoft security updates from next month.
My question is will modesdeco2 work on a fire tablet? I have looked through the thread but cant see any mention that it does. If it doesn't then that rules out a fire tablet.

Hope someone can help.

Many Thanks

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on April 21, 2018, 07:04:21 PM
Amazon Fire tablets run on a version of Android.

There is no version of modesdeco2 for Android.

What is your current tablet? Probably something running Windows (7/8/1/10) I suspect.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on April 21, 2018, 10:11:26 PM
Thanks for the reply Ian. My tablet is Windows 10. I only thought about the Amazon tablet as I need to replace my current tablet due to windows security updates no longer working on it and it is on offer on QVC. If modesdeco2 doesn't work on it then theres no point me getting it.

Thanks

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on April 22, 2018, 06:25:08 PM
Ah yes Fire HD10 on offer. I looked at that, figured out how big it was and decided 8 inches is big enough for portable use.

Windows 10 should still be updating and not just security updates.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on April 22, 2018, 08:48:18 PM
It's only a 16gb tablet so not enough space sadly for the updates.I will just have to buy a new Windows one and install on that.I can't live without having modesdeco2. :-)

Thanks for you help Ian.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on April 23, 2018, 10:55:34 PM
Google how to install Win10 upgrades for 16Gb tablets. Seems that you can download the update to an SD card or USB stick and run the update from there. That way the tablet does not need the space for the download.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on April 25, 2018, 05:14:38 PM
Cheers tried that but it still needed over 5gb on the actual tablet hardrive.

Thanks anyway Ian
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on May 09, 2018, 07:22:44 PM
I use modeSdeco+modeSmixer, and feed ADS-B and MLAT data to FR24 and FlightAware
Today I've found that some of the aircraft that I get as MLAT (green M) do not show in the map, and have empty position data in the flights list.

Is it a misconfiguration in my side or is it a normal case?

I am attaching the flights list with a sample.

Thanks in advance
Antonio

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 10, 2018, 05:37:46 AM
Hello Antonio,

Information about a spatial attitude of the aircraft with Mode S transponder is calculated and sent to you via the reverse data channel from Flightaware.

The modesmixer2 has the internal  time-out after which removes outdated data and aircraft's label from display. This time is several tens of seconds between the time of the last MLAT message, received for an aircraft, and the time, when the server will stop showing it on the Google map and his outdated data in tables.

At the same time, your station can directly receive the actual Mode S messages from this aircraft and program will display it as an aircraft without coordinates.

In this case I can suppose that the MLAT data arrival interval is longer than the specified time-out used in modesmixer2.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on May 10, 2018, 06:02:25 AM
Hi, sergsero
Thank you very much for your quick and informative response.

Quote from: sergsero on May 10, 2018, 05:37:46 AM
At the same time, your station can directly receive the actual Mode S messages from this aircraft and program will display it as an aircraft without coordinates.

I understand it, but should it still be showing the MLAT (green M) when it is receiving only Mode S messages or should it show the brown S instead?

Thanks again and best regards
Antonio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on May 10, 2018, 06:17:03 AM
Of course, this is a dilemma - how to properly display the aircraft, which can change status while in flight.

In current versions of the program MLAT-status has priority.
If for the given ICAO address was received at least one message (not necessarily with coordinate information) via reverse data channel from Flightaware, the aircraft is considered to be serviced by MLAT.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: K0HYD on June 04, 2018, 03:55:25 PM
I use both RTL-SDR and AirSpy R2 dongles. I have been able to download the versions for Raspberry Pi, Ubuntu 16.04 and Windows however I would need to run these in a virtual machine which uses only have of my processor cores. The link for the MacOS does not work. I noticed it was dated 2015 while the rest of the versions are dated 2018.

Is there a link for a MacOS version that I can compile and run. If not is there a set of instructions that details what I would need to do to compile one of the other versions on MacOS High Sierra. Which one would be the best to start with?

Hoping for a link to a MacOS version I can compile and run native.

Thanks,

Dale - K0HYD
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jmaurin on June 25, 2018, 08:19:44 PM
Link for Centos 7 x64 is invalid......can you upload again, please?

Thank you!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: OvaleZ on July 09, 2018, 12:25:26 PM
Hi All!

I just started using ModeSDeco2 (Сергей, спасибо за Вашу разработку!) and I have a question:

Is there any way to save the aircrafts that I have received with the zone diagramm (I mean the caverage area)? In database, or CSV etc..

Because once my OrangePi is reboot (lost of power...) the coverage zone on the map starts drawing from the beginning and previous data are lost.

Thanks!
(Sorry for bad Engilsh :) )
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: G-PHIL on July 16, 2018, 04:19:26 PM
Hi,

I've only recently come across Modesdeco2 and think it's great.

I have an RTL Dongle and i want to use it with the Basestation software, what it the best way to connect the Dongle to the software or should i say what's the best line of text to put in the command program?

Any help is greatly appreciated and will be saved for future reference.

I'm using Windows 7 Pro on a laptop.

MTIA

Phil 
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on July 16, 2018, 11:03:41 PM
What software are you intending to use to get the data from the RTL dongle?

On Windows, options include dump1090, modeSdeco2 or RTL1090.

Need to know to add the correct port for data into modeSmixer2.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on July 22, 2018, 11:57:18 AM
Hi all,

I am having issues again trying to run modesdeco2 on a new tablet.(I have probably missed something quite simple again!  :) )

Its a windows 10 64 bit one. I have downloaded the latest distribution package from Microsoft to get the latest dll's but I keep getting the error.

The error is 'The application was unable to start correctly (0xc000007b). Click Ok to close the application.'

If I run it as an administrator I get the following error:

'modesdeco2.exe' is not recognised as in internal or external command, operable program or batch file

I have tried all the suggestions on the web but just cannot get past this error.

Hopefully someone can help me on this please.

Many Thanks

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 22, 2018, 12:08:24 PM
Hi Carl,

There are a number of reasons as to why you might receive the 0xc00007b error while running an application on a Windows.
0xc000007b error usually comes from mixing up a 32-bit environment with a 64-bit one. For example, the modesdeco2 is 32-bit application. If you load a 64-bit Microsoft Visual C++ Redistributable Package that can causing 0xc000007b error. Check it's version for 32 bit. In this case you need to reinstall this components.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on July 23, 2018, 12:03:52 AM
Hi Sergsero,

Yes i have installed the x86 one but it still gives me the same error. I am at a loss what to try next as i have been trying to get this working for the last month. I have made sure that the versions i have match my 64 bit laptop which it does work on. The only difference is that the tablet runs windows 10.

Best Regards

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: QF1 on July 25, 2018, 10:37:41 AM
Hi there

I am new to using a Raspberry Pi as I have been using an SBS3 for many years.  I have tried installing ModeSMixer2 on both a Raspberry Pi 2 and 3 but finding that I do not see any aircraft within about 5nm of my home location whilst all others appear to plot correctly.  I am using ModeSMixer2 to feed to Basestation.   I can see the aircraft on FR24 but I cannot see them in Basestation.   Any  suggestions much appreciated, as I have followed instructions as far as I can. 

Cheers
Mark
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on July 25, 2018, 11:30:43 AM
Were you able to see local aircraft within 5nm using the SBS-3?

What software are you running on the RPi and what receiver and antenna?

Are the aircraft you see on FR24 ADS-B?  Bear in mind that FR24 "predicts" the continuing aircraft track even when the signal is no longer being received.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: QF1 on July 26, 2018, 11:58:31 AM
Hi Anmer

Yes, I could see all local aircraft with the SBS3.  I am running ModesMixer2 with a FlightAware ProStick with RF Amp/1090mhz filter.  The antenna is a DPD ADSB Vertical antenna.

Interestingly a friend had given me a copy of his SD card and it all worked fine, but the Flightaware was set up with his settings/sharer code, so I started from scratch so that I could get my own code, so can only presume that there has been a problem with the software downloaded.

Cheers
Mark
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on July 26, 2018, 12:01:36 PM
Thanks Mark.

Did you download the PiAware "build"?

https://flightaware.com/adsb/piaware/build

Do you see the local aircraft on your Skyview map?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: QF1 on July 29, 2018, 03:45:09 AM
Hi Anmer

The aircraft were also not showing on the Skyview map.   The missing aircraft are up to about 15nm from my location.   Another friend of mine appears to have a similar problem when using the Stretch version of
the software.

I have gone back to using the FlightAware dongle with ModesDeco plugged straight into the USB port of my notebook.   All working fine and all aircraft displaying.   The only thing is I now do not have the advantage of the MLAT aircraft being displayed.

I tend to think that there is an issue with the Stretch/ModeSMixer2 software for now.

Cheers
Mark
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on July 29, 2018, 08:09:56 AM
Quote from: QF1 on July 29, 2018, 03:45:09 AM
The aircraft were also not showing on the Skyview map.

Hmmm.  That's strange as the Skyview map takes tha data directly from PiAware. 

There's a new PiAware 3.6.2 image just released for Stretch:

https://discussions.flightaware.com/t/announcing-piaware-3-latest-version-3-6-2/18829

http://piaware.flightcdn.com/piaware-sd-card-3.6.2.img.zip

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: graeme61 on July 29, 2018, 11:16:14 AM
Hello everyone

Ive just finished compiling UK NavAids for Modesdeco2.

I have enclosed 2 files as attachments

1 x file compiled with Notepad ++

1 x file compiled as a normal .txt

Just copy and paste into your configuration file .

I have tested it on my system with only one error which occured but have now corrected it and is all working .

Please let me know if i have missed anything or if any data is outdated and i will update it.

NOTE....

I also have a file which i started several weeks ago with some waypoints for my location in Aberdeen and a couple of navaids for eham .
This file is working, but is a work in progress.

Hope the 2x files i have enclosed are of use to everyone using Modesdeco2 ?

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: graeme61 on July 29, 2018, 11:20:35 AM
Sorry,I looked at the preview then sent but noticed 1 x file missing.
Here it is attached.

Kind Regards
Graeme

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: graeme61 on July 29, 2018, 11:50:46 AM
Hello again

I must apologise as i have sent the uncorrected files by mistake .

Please find the zip file enclosed with the 2x corrected  files in it .

I am very sorry for this mistake

Kind Regards
Graeme

[Attachment deleted by Admin to save file space]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on July 29, 2018, 03:23:17 PM
pls keep in my mind a Pi can create much more noise than everyone expect.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on July 29, 2018, 03:53:39 PM
Quote from: Radio2.0 on July 29, 2018, 03:23:17 PM
pls keep in my mind a Pi can create much more noise than everyone expect.

Can you share any evidence of this?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on July 29, 2018, 03:56:55 PM
not now because the Pi are somewhere in a junk box.  ;D
I use an Splitter and everytime when the Pi is firing up the noisefloor gues up extreme >:(
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on July 29, 2018, 04:16:39 PM
Strange. There are, I estimate, 30,000 or more people using the RPi with a DVB-T SDR to track Mode-S aircraft.  I have 5 here.

I don't think the RPi is gereating unacceptable noise.  But I could be wrong.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on July 29, 2018, 04:44:03 PM
 ;D you can check it by our own.

1) Take an Notebook and an LNA, Dongle + Antenna put it in your room.
2) turn it on and watch the spectrum
3) turn the Pi on and see if anything change.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on July 29, 2018, 04:47:56 PM
If the RPi is generating so much noise, why doesn't it impact adversely on the 1090 MHz data?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on July 29, 2018, 09:18:30 PM
how sould you notice it?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on July 30, 2018, 08:16:46 AM
Quote from: Radio2.0 on July 29, 2018, 09:18:30 PM
how sould you notice it?

Since they outperform the specialist receivers, in aircraft tracked, I'm assuming the alleged "noise" is not adversely affecting the RPi based ones.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on August 03, 2018, 01:47:12 AM
Quote from: QF1 on July 29, 2018, 03:45:09 AM
Hi Anmer

The aircraft were also not showing on the Skyview map.   The missing aircraft are up to about 15nm from my location.   Another friend of mine appears to have a similar problem when using the Stretch version of
the software.

I have gone back to using the FlightAware dongle with ModesDeco plugged straight into the USB port of my notebook.   All working fine and all aircraft displaying.   The only thing is I now do not have the advantage of the MLAT aircraft being displayed.

I tend to think that there is an issue with the Stretch/ModeSMixer2 software for now.

Cheers
Mark


Following on from Mark's posting, I too am experiencing the same symptoms and can report it affects the Skyview map as well.

My setup is as follows:-

1. PC Intel CPU i7-7700, 16GB RAM with Windows 10 Pro 64bit connected to router via Ethernet
2. Raspberry Pi 3 running Stretch o/s connected to router via Ethernet
3. DPD ADS-B Antenna 1.8m above roof and 100m above sea level.
4. 7m of LMR400 coax feeding FlightAware Pro Stick connected to Pi
5. Sergsero's test version of modesmixer2_rpi2-3_deb9_20180311 installed on the Pi along with PiAware 3.6.2 (dump1090-fa), FR24 and Plane Finder 4.1.1
6. Running BaseStation ver 185, PlanePlotter 6.4.6.9 and PBLink3, max range 233nm.

Aircraft within the general area are normally shown with a steady trail however, as an aircraft approaches my location, their trail will change to a stream of dots which become further apart before disappearing all together then to reappear as they retreat. This normally occurs within a 8nm radius of my location but could vary depending on altitude and aircraft types. Light aircraft can be within 2 to 3nm, usually at 1500ft, before loss of signal occurs. Observation of the situation over the past couple of days has shown a real hit and miss of these symptoms with some RPT aircraft getting within 3nm while others could occur up to 10 to 12nm.

I cannot put a time when this started to occur, upgrading the Pi from Jessie to Stretch, installing the test version of Modesmixer2 or running PiAware 3.5.3 (3.6.2 installed 2 days ago). My take on the situation is that my system appears to get overloaded when some aircraft come close to my location. I noted that there has been recent discussion on the FlightAware forum about gain control and I wonder if the FlightAware Pro Stick along with improvements to the various software could be causing this problem.

Would be interested to hear from any other member who is also experiencing these symptoms.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on August 03, 2018, 07:54:18 AM
Thanks for sharing this.

Do the "missing" aircraft reappear on Skyview if ModeSMixer isn't being used?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 03, 2018, 09:52:49 AM
Hello,

Unlike SDR program, such as dump1090 or MD2, the main task of which is to extract Mode S messages from received radio signals and send them to a network, the visualization programs like VRS and MM2 display data on map contained in incoming messages from outside sources. Also them can perform conversion of message formats when it is set by user.

But they operate only with the information that comes in input messages.

The trail of track in form of dots occurs when no longer receive messages containing coordinates of the aircraft. Or the decoded coordinates are invalidated for some reason, for example, you received a new position message within exceeded the time limit between odd/even pair of position messages and etc.

This may be due to overload of receiver by strong signal from close aircraft when receiver has insufficient dynamic range and high sensitivity. The R820T2 receiver chip exhibits very high sensitivity, around -120 dBm typically.
The dynamic range is the relation between the strongest signal and weakest signal (noise floor) that can be digitized without distortion.  But SDR-chip RTL2832U has only 8 bit ADC (analog-to-digital converter) and this low number of bits limited his dynamic range.

Do you use the FlightAware Prostick (without internal filter) or their last version - FlightAware Prostick Plus?
Check, when labels of the aircraft hide on map, whether this aircraft remain in the table?
Check the signal level at border where label stops being displayed.

By default settings of piaware configure file for dump1090 are usually set gain value "-10" which means use of automatic mode.
Try to change this value to some possible values for the R820T2 chip gradually decreasing it from maximum of 49.6 and check to see if this restores the display of aircraft near your location.
(Not perhaps during this test, due to the gain reduction, you will not be able to receive signals from the most remote aircraft on the coverage border.)

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on August 04, 2018, 02:04:53 PM
Quote from: Anmer on August 03, 2018, 07:54:18 AM
Thanks for sharing this.

Do the "missing" aircraft reappear on Skyview if ModeSMixer isn't being used?

Thanks Anmer for your reply. With just the PiAware running and no Modesmixer, the nearby aircraft are still missing in action. It looks like the FlightAware Pro Stick Plus is out performing itself. Spoke to Mark (QF1) this afternoon and think it strange that we are the only two to have come across this problem.

Cheers.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on August 04, 2018, 02:15:39 PM
Quote from: sergsero on August 03, 2018, 09:52:49 AM
By default settings of piaware configure file for dump1090 are usually set gain value "-10" which means use of automatic mode.
Try to change this value to some possible values for the R820T2 chip gradually decreasing it from maximum of 49.6 and check to see if this restores the display of aircraft near your location.
(Not perhaps during this test, due to the gain reduction, you will not be able to receive signals from the most remote aircraft on the coverage border.)

Best regards,
sergsero


Many thanks again Sergsero for your assistance. I'm using the FlightAware Pro Stick Plus dongle and found it very interesting your explanation on how the stick operates. I will start a process of reducing the RF gain in steps from 49.6 to see what effects it has on the missing aircraft and report back.

Best regards.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on August 12, 2018, 10:55:51 PM
Quote from: sergsero on August 03, 2018, 09:52:49 AM
Check, when labels of the aircraft hide on map, whether this aircraft remain in the table?
Check the signal level at border where label stops being displayed.

Hello Sergsero, I have refitted the FlightAware filter and there hasn't been any noticed changes to the previously report circumstances.

With the max gain setting of -10 (49.6), aircraft within 5 to 7nm of my location disappeared off BaseStation. These aircraft still remain on the ModesMixer2 Flights Table and continued to show all data except for lat, lon and distance with the message rate dropping and the SGL reaching 210+. Aircraft at the border will drop off when the SGL goes below 37 with a range of about 199nm.

With the gain set at 40.2 there was no lost of aircraft close in and SGL stayed below the 200 mark. Border aircraft disappeared around the 192nm mark with a SGL of 7. Increasing the gain step by step to a setting of 48.0, there was only the occasional lost of aircraft within the 5 to 7 nm radius on my location. On the border edge, lost of aircraft occurred again at about 199nm with a SGL of 13.

These are average figures which varied over days depending on height and aircraft types. It would seem that a gain of 48.0 is the best overall setting for my setup.

Unfortunately I cannot noted when this event first occurred, either with the upgrade of the Pi from Jessie to Stretch or FlightAware from 3.5.3 to 3.6.2 but before these changes my system showed no signs of lost of aircraft within the 5 to 7nm except the occassional light aircraft passing low overhead. I'm planning to format a SD card with Jessie and install 3.5.3 and do some tests and see if the problem existed under that arrangement.

Thank you again for your program and help, it is very much appreciated.

Noel

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on August 13, 2018, 06:57:38 AM
Quote
Thanks for sharing this.

Do the "missing" aircraft reappear on Skyview if ModeSMixer isn't being used?

Does altering the gain affect the aircraft shown on Skyview?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on August 14, 2018, 11:25:41 PM
Quote from: Anmer on August 13, 2018, 06:57:38 AM
Does altering the gain affect the aircraft shown on Skyview?

Yes Anmer, it appears that changing the gain effects BaseStation, Skyview, modesmixer2 as well as PlaneFinder. Unfortunately, I haven't got a multi screen set up so it's a case of chasing the views on one monitor and from what I can gather, at max gain (-10), the aircraft within that 5 to 7nm radius all seem to disappear about the same time. With a gain setting of 48.0 there is very little to no lost of signal within the "Bermuda Circle". I'm happy with that setting and now will keep an eye on the max range side of things. So far haven't been able to spot any noticeable change.

Thanks again for Sergsero and your input and as Mark and I have commented, surprised that this effect hasn't been flagged before by members.

Best regards,

Noel
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: A380 on August 15, 2018, 06:25:57 PM
Hello,

what is your command line?

Do you have any --valid-adsb option or the default?

I'm living near the Airport and all planes on the screen.

I set have the following vaild setting:   --valid-adsb 1:1 

Kind Regards
Rene
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on August 16, 2018, 02:04:10 AM
Quote from: A380 on August 15, 2018, 06:25:57 PM
Hello,

what is your command line?

Do you have any --valid-adsb option or the default?

I'm living near the Airport and all planes on the screen.

I set have the following vaild setting:   --valid-adsb 1:1 

Kind Regards
Rene

Many thanks Rene for your question. I have always been concerned that I have the right settings in the command line. I have played around with the settings over a period of time and never sure that I got it right.

My current version is as follows

sudo ./modesmixer2 --google-key Axxxxxxxxxxxxxxxxx --inConnect 192.168.13.15:30005 --inConnect 192.168.13.15:30105 -outServer sbs10001:10001 --location -33.xxxxx:151.xxxxx --db/home/pi/ADSB/BaseStation.sqb --frdb /home/pi/ADSB/flightroute.sqb --silhouettes /home/pi/ADSB/OperatorFlags --web 8765

I have only just added the google key and the two sqb databases and the silhouettes folder. I have in the past included both the databases and the silhouettes folder but would always come up with an error and deleted those inclusions. This time it seems to be working well.  ;D

If you see any omissions that should be included please let me know. I would be very appreciative of any advice.

Just to repeat my software arrangements - Pi3 via Etherrnet feeding BaseStation (Address 192.168.13.15 Port 10001), PlanePlotter (RTL dongle RPi dump1090 (192.168.13.15:30105)) then via web browser FlightAware:8080, FR24:8754. PlaneFinder:30053 and ModesMixer2:8765. All working as per the book.

Thank you,
Noel

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: QF1 on August 20, 2018, 11:47:56 PM
Hi A380

I am very new to using ModeSMixer2 and I am interested in your suggestion and would like to try it.  Would you mind sharing your command line>
What is the effect of --valid -adsb 1:1

Like Noel (Oldfella) I am having similar problems around Sydney Airport.   It seems to affect aircraft between approx 500 feet and 6000 feet.   Overflights at higher altitudes do not seem to be affected.   I have turned the gain down a little but do not want to lose too much at max range.   I see gaps in the feed from about 6nm from my location.

Cheers
Mark
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dewoert on September 22, 2018, 10:27:20 AM
Would it be possible to use ModeSMixer2 to filter MLAT traffic from an input source ?
I receive data from an external receiver, and would like to only get the ADS-B flights.
The current data has ADS-B and MLAT combined into one Beast format. MLAT traffice is "tagged", so i can "see" it as MLAT in MM2.
It is not possible for me to change the source, so i would like to split this traffic.
Allready tried different output from MM2, but MLAT traffic will not dissapear.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on October 02, 2018, 01:55:45 AM
Now on modesmixer2 map, Google shows a warning and watermark. I can get rid of it if I add Google key, but I dont want to get a Google key.

Is there an option in ModeSMixer2 to display OpenStreet or leaflet map like VRS or dump1090-fa and dump1090-mutability  now have?

(https://i.postimg.cc/cHtK29ny/Mode_SMixer2-_Google_Map.png)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: w7psk on October 06, 2018, 03:39:41 PM
Quote from: abcd567 on October 02, 2018, 01:55:45 AM
Now on modesmixer2 map, Google shows a warning and watermark. I can get rid of it if I add Google key, but I dont want to get a Google key.

Is there an option in ModeSMixer2 to display OpenStreet or leaflet map like VRS or dump1090-fa and dump1090-mutability  now have?


I am in the same position. I dont want to pay for Google key,  can we use a different map?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: lucaberta on October 09, 2018, 06:36:12 AM
Quote from: w7psk on October 06, 2018, 03:39:41 PM
I am in the same position. I dont want to pay for Google key,  can we use a different map?
I got the key from Google, and had to leave my credit card number with them.

But there is nothing to pay to them until a sizeable amount of traffic hits the map on your website.

And since I use my MM2 setup locally, with nothing shared to other people, then I am sure I will never be able to reach the limit where I will begin to be charged.

Yes, receiving the monthly invoices from Google with a $0 amount is a bit of a nuisance, but still I prefer the trouble of the registration to the lame maps with washed colors...

Bye, Luca
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on October 10, 2018, 12:28:18 AM
Quote from: lucaberta on October 09, 2018, 06:36:12 AM
I got the key from Google, and had to leave my credit card number with them.

But there is nothing to pay to them until a sizeable amount of traffic hits the map on your website.

And since I use my MM2 setup locally, with nothing shared to other people, then I am sure I will never be able to reach the limit where I will begin to be charged.

Yes, receiving the monthly invoices from Google with a $0 amount is a bit of a nuisance, but still I prefer the trouble of the registration to the lame maps with washed colors...

Bye, Luca

I dont want to give Google my Credit card number, even if their invoice is zero.

VRS now provides both options: Leaflet/OpenStreet and Google. It is up to user to choose which one he/she wants.

(https://i.postimg.cc/SQv4pPYZ/VRS_Map_Options.png)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: w7psk on October 15, 2018, 04:01:16 PM
Quote from: abcd567 on October 10, 2018, 12:28:18 AM


I dont want to give Google my Credit card number, even if their invoice is zero.

VRS now provides both options: Leaflet/OpenStreet and Google. It is up to user to choose which one he/she wants.


Same here, I dont want them having a credit card nor a bill.  It would be very easy for them to start charging
for even 0 bytes transferred.

We need the option.  Other wise it gets un-installed.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: MrMac on October 21, 2018, 09:29:13 PM
Hello Sergsero,

Quote from: sergsero on August 23, 2015, 02:34:48 PM
In version 20150825 you can use modesmixer2 for obtain data from SBS-3 receiver when it is plugged directly into a USB port. The new version of modesmixer2 20150528 in message #2 of this topic.

Has anything changed in newer versions regarding SBS1 connectivity?

It was working fine with versions in 2015 and 2016 but now I can no longer connect to SBS1 boxes. The SBS1-Er works fine on PC with Basestation. I have tried 2 different ones.

/root/modesmixer2 --inSerial /dev/ttyUSB1:921600:none --log-level 5
2018-10-21 18:29:29.908  INFO     ModeSMixer2 v.20170924
2018-10-21 18:29:29.912  INFO     inSerial(/dev/ttyUSB1:921600) connected
2018-10-21 18:30:14.493  INFO     inSerial(/dev/ttyUSB1:921600) disconnected
2018-10-21 18:30:14.493  INFO     inSerial(/dev/ttyUSB1:921600) Reconnect in 10 seconds
2018-10-21 18:30:24.496  INFO     inSerial(/dev/ttyUSB1:921600) connected
2018-10-21 18:33:28.541  INFO     inSerial(/dev/ttyUSB1:921600) disconnected

Tried a power cycle of the SBS. The USB interface goes down and up, ModeSmixer re-connects but no furter comm or data...

Downloaded the latest but no difference;

/root/modesmixer2 --inSerial /dev/ttyUSB1:921600:none --log-level 5
2018-10-21 22:26:32.614  INFO     ModeSMixer2 v.20180616
2018-10-21 22:26:32.617  INFO     inSerial(/dev/ttyUSB1:921600) connected


BR

/Marcus
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on November 01, 2018, 06:12:35 PM
Windows
Is it possible to close down ModesSMixer2 automatically from a script, eventually by calling a ModeSMixer2 with a command line parameter?

I need to close it from the to time automatically to be able to do some updates on the SQB DB automatically.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on November 01, 2018, 10:04:21 PM
Hi larsras,

Below is the content of a batch file I used for stopping ModeSDeco2, pausing for 10 seconds and then starting ModeSDeco2.
I don't see why you couldn't modify it to do the same for ModeSMixer2.

TASKKILL /F /IM modesdeco2.exe
TIMEOUT /T 10
CD "C:\Virtual Radar\modesdeco2_windows_20180429"
start modesdeco.bat

First line force kills the image (process) so you could change that to modesmixer2.exe
Second line pauses the batch file for 10 seconds, you can make it any other value in seconds.
Third line makes sure the batch file working in the right place for where your normal batch file is, you would need to change the path. The quotes are needed if you have any spaces in the path but don't do any harm of there are no spaces.
last line starts your normal batch file, again you would change that to whatever your modesmixer batch file is called.

I but my batch file in the same directory as the 'original' batch file used to start the program.

If you only want to kill the program just create a batch file with:

TASKKILL /F /IM modesmixer2.exe

Hope that helps.

Cheers,

Keef.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on November 02, 2018, 11:38:55 AM
Hi

Thanks.

I have actually tried this also, but sometimes I get a message from taskkill that it is not possible to kill this process. I also think it is a dirty way of doing it :-) I use the SQB file, and I have also seen that in some cases this file was actually locked after having successfully killed MSM2. A reboot hereafter was the only way forward I have found.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on November 05, 2018, 02:51:51 PM
It is a scheduled task. Looks like setting "Run with highest priority" solved the problem (so far).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: gonzalu on November 06, 2018, 01:57:07 PM
While troubleshooting MAP errors, I see the following errors on my console. For the record, I have a proper account in Google APIs and have biling turned on etc. etc. I also have $300 left in the free quota for this API Key and the entire account. I only have ONE Key :(

Bing makes this much easier BTW.

(https://i.imgur.com/PW0c9Fo.png)

Also this message from Google API tool in Chrome

(https://i.imgur.com/cgAZr8X.png)

Thanks for your help

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on November 06, 2018, 09:16:12 PM
Hi gonzalu,

You have declared the --google-key xxxxxxxxxxxxxxxxxxx option (where the x's are your key) in the batch file have you?

Cheers,

Keef.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: gonzalu on November 06, 2018, 11:31:11 PM
Quote from: Keef on November 06, 2018, 09:16:12 PM
Hi gonzalu,

You have declared the --google-key xxxxxxxxxxxxxxxxxxx option (where the x's are your key) in the batch file have you?

Cheers,

Keef.

Yes of course :)


/home/pi/modesdeco2/modesdeco2 \
--device-serial 2 \
--gain 38.6 \
--web 8181 \
--location 40.88561:-73.913822
--localtime
--db /home/pi/data/BaseStation.sqb \
--frdb /home/pi/data/FlightRoutes.sqb \
--silhouettes /home/pi/data/SilhouettesLogos \
--google-key LIzaSyBDXXXGYNu5YYYWtVRjaIZZZZZZzmKIn8rY \
--rbs
--no-console



so I assume you do not have the error? How did you do it to not get an error like others and I have reported?

Thanks for your help!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on November 07, 2018, 11:24:08 AM
Hi,

I've not had any errors, just thought I'd ask the obvious question just in case.

One thing I would say is it is probably not a good idea to publicly post your key, it might be worth deleting that from your post.

Cheers,

Keef.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: gonzalu on November 07, 2018, 06:02:54 PM
Quote from: Keef on November 07, 2018, 11:24:08 AM

One thing I would say is it is probably not a good idea to publicly post your key, it might be worth deleting that from your post.

Cheers,

Keef.

That is NOT my actual key LOL. If I had put in X's you may have said "did you put in the real key?" LOL. So I put in a fake one... But thanks for the advice. ;)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on November 07, 2018, 06:57:23 PM
I didn't spot the substitution!

Do you have any other apps using your key that work OK?

If you PM me your key I can test it with my ModeSDeco2 setup to see if it works for me.
That does of course require you trust me with your key.
Should you send it t me I will only use it as a test once and then never use it again or share it with anyone.

I won't be in any way offended if you don't want to share the key with me!

Cheers,

Keef.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: gonzalu on November 07, 2018, 08:47:27 PM
Quote from: Keef on November 07, 2018, 06:57:23 PM
I didn't spot the substitution!

Do you have any other apps using your key that work OK?

If you PM me your key I can test it with my ModeSDeco2 setup to see if it works for me.
That does of course require you trust me with your key.
Should you send it t me I will only use it as a test once and then never use it again or share it with anyone.

I won't be in any way offended if you don't want to share the key with me!

Cheers,

Keef.

No problem at all. It's just an API key. I can always kill it if it gets used :P Thanks for the help. I will PM you the key.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on November 07, 2018, 10:41:37 PM
Hi,

Thanks for sending me your key, I just tried it and maps failed to load with an error saying to check the JavaScript console.
Looking at that I see the message:

Google Maps JavaScript API error: ExpiredKeyMapError
https://developers.google.com/maps/documentation/javascript/error-messages#expired-key-map-error

Maybe if you generate a new key and try that it will work?
I'm happy to test any new keys you generate if you PM them to me.

Cheers,

Keef.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: gonzalu on November 08, 2018, 12:09:46 AM
Interestingly enough, if I run the program in Windows, it works fine. If I run it on my RPi, it fails.... ugh... but I appreciate your help of course!! I am generating a new key as we speak. Let's see what happens. I will report back with results
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: gonzalu on November 08, 2018, 12:15:52 AM
OK, success. I ended up having to remove all security on the API Key. It still ONLY works in Windows... still not working from RPi Stretch :/

Still getting other errors as shown on console.

(https://i.imgur.com/d9eXQbv.png)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: vordme on February 15, 2019, 02:26:37 PM
Hello
Is there any way to not have to write all the lines every time you open modemixer or modedeco in Rpi3?

Thank you
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: thenjr on February 22, 2019, 04:29:53 PM
Hey all - New to radar spotting. I have my Raspberry setup and running with ModeSMixer2 to get around issues I had with lighttpd and Piaware/PiHole (they both try to hit the same port).

Thanks to this thread and a few others I have pretty much everything working, except I can't get MLAT to load and I can't get any of the icons or plane silhouettes to work. Here is my mm2.sh settings:

--inConnectId 127.0.0.1:30005:ADSB \
--inConnectId 127.0.0.1:30104:MLAT \
--web 8787 \
--location XX.812462: XX.301600 \
--google-key KEY \
--silhouettes /home/pi/mm2/opflag/opflag/opflag/sillogo \
--pictures /home/pi/mm2/opflag/opflag/opflag/oplogo \

Running netstat -lptnD I see that 127.0.0.1:30104 is the open port (vs 30105 or 106) so that's why I used it in the settings above. Using 105 or 106 would give me the "connect host 127.0.0.1:30105 error Connection refused" error. Not sure where to go next here.

I'm most interested in getting the images to work. Ignore my hilarious folder structure, I haven't been in a command prompt in a while and went a little crazy when SSHing files from my desktop to the Raspberry Pi :)

I have logos, silhouettes and pictures. Those file paths are correct and have a bunch of .bmp images inside. I killed the mm2 process and restarted after updating the settings. I'm not sure what to look for next, so I turn to you all.

While we're here, also curious if there is a way to display the public tracking data for a flight within the local browser view? Right now, if I see an interesting flight I copy its flight number and then look it up on FlightAware, but would much rather get it in the same window. I'm sure someone has already figured out how to do this.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on February 23, 2019, 10:05:43 AM
Quote from: vordme on February 15, 2019, 02:26:37 PM
Hello
Is there any way to not have to write all the lines every time you open modemixer or modedeco in Rpi3?

I use the script from David Taylor's web site (there are other ways):

http://www.satsignal.eu/raspberry-pi/dump1090.html#automated-start

You need to modify it so that it calls for MSM2 or MD2 as opposed to Dump1090 but once that is done, it will start up automatically as long as you run the lines of code at the bottom of that page to make it executable. Here's the lines I use to run ModeSMixer2 - I called the script file mm2.sh.

"Now we make this file executable with the following command:

    sudo chmod +x /etc/init.d/mm2.sh

Now we create the runlevel shortcuts with the command:

    sudo update-rc.d mm2.sh defaults

If we later log into the RPi, we can stop or restart mm2.sh with the commands:

    sudo /etc/init.d/mm2.sh stop
or
    sudo /etc/init.d/mm2.sh start"

I also added in a delay so it lets everything start-up before it runs the script - probably not necessary but it doesn't hurt. I added it at the end of this section:

### END INIT INFO
## Fill in name of program here.
PROG="modesmixer2"
PROG_PATH="/home/pi/mm2"
PROG_ARGS="--inConnect 192.168.1.67:30105 --filter-nocountry --web 8088 --db basestation.sqb --silhouettes ./silos --frdb flightroute.sqb --location xx.xx:yy.yy"
PIDFILE="/var/run/mm2.pid"
DELAY=20


Your PROG_ARGS line will of course be different to mine

Hope of use.

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: grassbox on March 05, 2019, 08:50:27 PM
Hi Sergsero,

I'm using the command below on a Raspberry Pi 3b+ and Orange Pi One with a Mode-S Beast :-

./modesmixer2 --inSerial /dev/ttyUSB0:3000000:hardware --outServer beast:30005

Using the hardware flow control option results in the error message below:-

inSerial(/dev/ttyUSB0:3000000) Can't set_option(flow_control) set_option: Operation not supported

This has happened since the change to Debian Stretch. I've searched for FTDI driver problems but had no luck.

Any idea how I can resolve the hardware flow control ?

Cheers,
Mark
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on March 24, 2019, 11:38:50 AM
Currently using Dump1090 and ModesMixer2 in a windows 7 PC. I feed to FR24.
Since FR24 now terminates Windows feeds, i will have to switch to a RPi feeding solution.
I really like the ModesMixer2 Flights page, so would be pretty damn hard to live without that.
I'm completely blank when it comes to RPi....

If i use the standard FR24 RPi image, can i then "tap" into the RPi received data and get them displayed (and possibly redirected to other modes/ports) with the ModesSmixer2 on my PC?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on March 24, 2019, 01:47:20 PM
QuoteI feed to FR24.
I would not do this anymore since the change there policy.  >:(
Do you share your feed?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on March 24, 2019, 02:25:42 PM
Yes it is really annoying this change in ploicy :-(
I do not have a website showing my received data if that is what you mean?
I use the combination of Dump1090 and ModesMixer2 to share into FR24 sharing app, PlanePlotter and PlaneFinder. Locally i look at the data via ModeSMixer2 and sometimes VRS.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on March 24, 2019, 02:28:46 PM
With the VRS You can share your data and you will receive other.
The Sky is the Limit.  ;D
When I think that is the easy was for the US Gov to track any aircraft wordwide much better than every.  ::)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Nigel on March 24, 2019, 04:37:30 PM
Once you have Dump1090 running on your RPi you can install and run modesmixer2 on the Pi and create maps/tables etc. much the same as the PC-based version. There are some excellent instructions on how to do this at the following link and it is fairly straightforward to do. abcd567 also provides excellent support and guidance if you get stuck

https://discussions.flightaware.com/t/how-to-get-vrs-like-coverage-map-on-rpi/31284

Nigel
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on March 24, 2019, 04:49:26 PM
 ;D i prefare modesdeco2.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: larsras on March 24, 2019, 06:50:18 PM
Thanks, that looks like some steps i can follow :-)

I believe i have to install the FR24 feed "manually" first, following the Raspbian install procedure, and not just using the ready made FR24 image?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: bumpy_up_here on April 04, 2019, 06:17:25 PM
Quote from: MrMac on October 21, 2018, 09:29:13 PM
Hello Sergsero,

Quote from: sergsero on August 23, 2015, 02:34:48 PM
In version 20150825 you can use modesmixer2 for obtain data from SBS-3 receiver when it is plugged directly into a USB port. The new version of modesmixer2 20150528 in message #2 of this topic.

Has anything changed in newer versions regarding SBS1 connectivity?

It was working fine with versions in 2015 and 2016 but now I can no longer connect to SBS1 boxes. The SBS1-Er works fine on PC with Basestation. I have tried 2 different ones.

/root/modesmixer2 --inSerial /dev/ttyUSB1:921600:none --log-level 5
2018-10-21 18:29:29.908  INFO     ModeSMixer2 v.20170924
2018-10-21 18:29:29.912  INFO     inSerial(/dev/ttyUSB1:921600) connected
2018-10-21 18:30:14.493  INFO     inSerial(/dev/ttyUSB1:921600) disconnected
2018-10-21 18:30:14.493  INFO     inSerial(/dev/ttyUSB1:921600) Reconnect in 10 seconds
2018-10-21 18:30:24.496  INFO     inSerial(/dev/ttyUSB1:921600) connected
2018-10-21 18:33:28.541  INFO     inSerial(/dev/ttyUSB1:921600) disconnected

Tried a power cycle of the SBS. The USB interface goes down and up, ModeSmixer re-connects but no furter comm or data...

Downloaded the latest but no difference;

/root/modesmixer2 --inSerial /dev/ttyUSB1:921600:none --log-level 5
2018-10-21 22:26:32.614  INFO     ModeSMixer2 v.20180616
2018-10-21 22:26:32.617  INFO     inSerial(/dev/ttyUSB1:921600) connected


BR

/Marcus

Hi Everyone,

I am new to this forum but have been a feeder to FR24 and Planeplotter for many years via my (very) old SBS-1, W10 setup, which all still actually works.

As you all will know, FR24 are dropping their windows feed which forced me into looking at switching my feeds to RPi (3B+). I do have a dongle, which, after a lot of research with some very useful posts and resources from a lot of people on here and other forums (thank you), I have managed to setup a Raspbian Stretch implementation, feeding FR24, Planeplotter, Planefinder and Flightaware.

However, as a project, I have been trying to get my SBS-1 working via the USB port on the RPi - there don't seem to be too many examples of this but I did find on Page 34 of this thread (post 506) an informative post from Sergsero regarding 'How to do it'. Mr Mac also refers to this setup in this, and a post on the FR24 forum suggesting it should be possible but now no longer works??

I cannot get it to work - I can see the SBS-1 using lsusb and dmesg|grep tty - if I run basestation on my PC and set it up to look at the RPi using network and port 10001 (after invoking modesmixer2 with --outServer sbs10001:10001 and /inSerial /dev/ttyUSB1:921600:none), I can see the PC connecting in but I get the message about SBS-3 LOGIN and then Disconnected.

I do not get any SBS Data Stream connected or anything similar.

So, as MrMac says, has something changed to prevent it working (either in Stretch or modesmixer2?)

Any help gratefully recieived.

Paul.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on April 04, 2019, 07:21:17 PM
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?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: bumpy_up_here on April 04, 2019, 10:22:37 PM
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).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on June 22, 2019, 09:01:42 PM
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  :(
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 23, 2019, 04:54:52 AM
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 (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
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on June 23, 2019, 11:55:56 AM
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


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: glenn68 on July 04, 2019, 09:33:34 PM
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?

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mlino on August 08, 2019, 05:58:28 PM
Hi!

Where can I get the latest version of modesdeco2?

Cheers,

Marcio
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on August 12, 2019, 11:12:23 PM
try xdeco.org
Title: ModeSMixer2 installation script for RPi 2/3/4, Raspbian Stretch/Buster
Post by: abcd567 on August 13, 2019, 10:47:58 AM
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

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 14, 2019, 07:43:16 PM
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!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on August 14, 2019, 07:46:59 PM
Welcome.

Are you using Virtual Radar Server?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 14, 2019, 07:58:51 PM
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.)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on August 14, 2019, 08:51:07 PM
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?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 14, 2019, 08:53:19 PM
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:
Please see my above post for details.

https://radarspotting.com/forum/index.php/topic,2978.msg42781.html#msg42781
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 14, 2019, 09:23:55 PM
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.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 14, 2019, 10:34:27 PM
Quote from: doctorvenables on August 14, 2019, 09:23:55 PM
.....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.

I does work on my Pi 2, tried several times before posting it on Github and here.

The installation script does following:

(1) Creates a folder /usr/share/mm2

(2) Downloads file modesmixer2_rpi2-3_deb9_20190223.tgz, and saves it in folder /usr/share/mm2.

(3) Unzips downloaded file in folder /usr/share/mm2.

(4) Creates config file /usr/share/mm2/mm2.conf. The config file is as follows:
(It can be edited by user at any time to add, remove, or change arguments).

--inConnectId 127.0.0.1:30005:ADSB
--inConnectId 127.0.0.1:30105:MLAT
--web 8787
--location xx.xxxx:yy.yyyy


(5) Creates a startup script file /usr/share/mm2/mm2.sh. The startup file is started by systemd service. When service starts it, it does two things:
(a) Reads arguments from config file mm2.conf.
(b) issues a command to start modesmixer2 using config arguments read from file mm2.conf.

The contents of startup file are below:

#!/bin/sh
CONFIG=""
while read -r line; do CONFIG="${CONFIG} $line"; done < /usr/share/mm2/mm2.conf
/usr/share/mm2/modesmixer2 ${CONFIG}


(6) Creates a service file /lib/systemd/system/mm2.service. The service file starts modesmixer2 at boot, and also used to restart, stop, and status during normal running.

The content of mm2.service file are as below:

# modesmixer2 service for systemd

[Unit]
Description=ModeSMixer2
Wants=network.target
After=network.target

[Service]
RuntimeDirectory=modesmixer2
RuntimeDirectoryMode=0755
ExecStart=/bin/bash /usr/share/mm2/mm2.sh
SyslogIdentifier=modesmixer2
Type=simple
Restart=on-failure
RestartSec=30
RestartPreventExitStatus=64
Nice=-5

[Install]
WantedBy=default.target


(7) Enables mm2.service by following command
sudo systemctl enable mm2

(8 ) Starts modesmixer2 by systemd start command
sudo systemctl start mm2

(9) Announces completion, and advises to add latitude & longitude to file /usr/share/mm2/mm2.conf
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 14, 2019, 11:14:41 PM
Thanks abcd567 - all proceeed well and it's now up and running. Will reboot in a bit and see what happens.

If it's of any use, the pi with modesmixer on it is an RPi3B with raspbian buster installed.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 14, 2019, 11:27:23 PM
Update - no joy I'm afraid. It does restart automatically but the data are gone.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 15, 2019, 12:44:40 AM
Did you point to Basestation.sqb in file mm2.conf?
You have to add this line in file /usr/share/mm2/mm2.conf

--db   /path/to/file/Basestation.sqb
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 15, 2019, 01:45:42 AM
Quote from: doctorvenables on August 14, 2019, 11:14:41 PM
If it's of any use, the pi with modesmixer on it is an RPi3B with raspbian buster installed.

Ok, just eliminate possibility of Buster causing this issue.
If you have a spare microSD card, download and write Raspbian Stretch:

http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-04-09/2019-04-08-raspbian-stretch-lite.zip

Install modesmixer on it (after installing dump1090-fa).

Alternatively install Piaware SD card image which is still Stretch based, then install modesmixer2.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: andrewt on August 15, 2019, 06:12:09 AM
Hi I am on holiday and was going through a few posts on FA, FR24. PFC and Radar Spotting and came across modesmixer2. i downloaded it github from abcd567a , it works MLAT and all , but don't matter how i load the basestation.sqb, silhouettes and logos it just wouln't populate. i was on this for four days all times of the day and night. Enough of the preamble, i need some desperate help to see r
this running. i tried it on dump1090-mutability and dump-fa just would not work. Help!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 15, 2019, 09:05:04 AM
This may be browser related.
Try another browser.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 15, 2019, 09:46:48 AM
Yes it could be browser related. Am using chrome so will try ie, edge, opera this morning.

Almost certainly not stretch related because I always had the same symptoms  - good guess though. Haven't got any spare microSD at the moment and my rpi3 has /root on usb ssd so I'd play with that at my peril for the time being.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 15, 2019, 09:50:09 AM
Connection to Basestation.sqb is almost certainly working - the file size is getting bigger so I assume that msm is writing to it.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on August 15, 2019, 09:56:08 AM
Quote from: doctorvenables on August 15, 2019, 09:50:09 AM
Connection to Basestation.sqb is almost certainly working - the file size is getting bigger so I assume that msm is writing to it.

If you have BaseStation Reporter do you see Sessions showing new data?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 15, 2019, 10:01:19 AM
OK - not a browser issue - did the same in opera.
Will have a look at basestation reporter.. Good idea anmer. Never used it so will install it ASAP
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 15, 2019, 06:10:14 PM
Github: ModeSMixer2 Automated installation

Installation Guide:
https://github.com/abcd567a/mm2/blob/master/README.md

Files:
https://github.com/abcd567a/mm2

.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 16, 2019, 12:33:23 AM
Hi abcd567 - is this an updated version?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 16, 2019, 03:48:19 AM
Quote from: doctorvenables on August 16, 2019, 12:33:23 AM
Hi abcd567 - is this an updated version?
It was updated 2 days ago. When did you install modesmixer2 using my script?

To check if your version is old one or updated give following command

sudo systemctl status mm2

If the output is "Unit mm2.service could not be found", your version is old one.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 16, 2019, 07:56:08 PM
OK - so I managed to download an SQLite browser and can confirm that BaseStation.sqb is being written to with sensible data about plane flights (lastlocation, lastgroundspeed, firstaltitude and all that stuff.
Glad it's not being populate with lots of zero..
Any other ideas?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 16, 2019, 10:24:43 PM
Interestingly, stopping and then starting the mm2 service also resets all of the data, without a reboot. That's odd?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 16, 2019, 10:47:42 PM
[NOT-SOLVED]
Thought the answer was that I'd put my BaseStation.sqb in a directory in ~/name/to/dir and not in /usr/share/mm2

I guess that the permissions were wrong to do it my previous way.
Have put BaseStation.sqb into /usr/share/mm2
Have now rebooted a couple of times still with no data persistance!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: andrewt on August 17, 2019, 03:46:59 AM
I tried the github download it works, as soon as i reboot there is no sign of modesmixer2 on the pi 3+ with Buster, dump1090-mutability and piaware, I also have a micro SD card with dump1090-fa with same set up, no folders, nothing. I like the software, but to get it functioning the way it is intended is very frustrating. Listing the series of code input is not giving the results. Maybe it just me.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 17, 2019, 06:57:19 AM
Quote from: doctorvenables on August 16, 2019, 10:47:42 PM
[NOT-SOLVED]
Thought the answer was that I'd put my BaseStation.sqb in a directory in ~/name/to/dir and not in /usr/share/mm2

I guess that the permissions were wrong to do it my previous way.
Have put BaseStation.sqb into /usr/share/mm2
Have now rebooted a couple of times still with no data persistance!

It does not matter where you put your file BaseStation.sqb, as long as you mention its full path in config file.

I have placed it in folder /usr/share/mm2 and the data has persistance and does not disappear on reboot.

File permission for BaseStation.sqb is 644 (rw--r--r)


ls -l /usr/share/mm2/BaseStation.sqb
-rw-r--r-- 1 root root 3931136 Aug 17 01:44 /usr/share/mm2/BaseStation.sqb



This is my config file. You can see I have specified the full path.
Also take care that some data files have capital S (BaseStation) while some have small s (Basestation). In config file you should use exact same spelling as is the file name. Capital and small letters make difference.


cat /usr/share/mm2/mm2.conf

--inConnectId 127.0.0.1:30005:ADSB
--inConnectId 127.0.0.1:30105:MLAT

--web 8787
--location 43.xxxx:-79.xxxx
--db /usr/share/mm2/BaseStation.sqb



ls /usr/share/mm2
BaseStation.sqb  mm2.sh                                modesmixer2.txt
LICENSE.MIT      modesmixer2
mm2.conf         modesmixer2_rpi2-3_deb9_20190223.tgz
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 17, 2019, 09:17:14 AM
Quote from: andrewt on August 17, 2019, 03:46:59 AM
I tried the github download it works, as soon as i reboot there is no sign of modesmixer2 ...... no folders, nothing.

(1) This can happen if your file system is mounted as "read only file system".
Give following command to make your file system "read and write", and after that run the github script to install modesmixer2.

sudo mount -o remount,rw /



(2) Please post output of following commands:

ls /usr/share/mm2/

ls /lib/systemd/system/mm2.service

sudo systemctl status mm2
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 17, 2019, 09:36:24 AM
I've been pretty careful about capitals etc.
Here are the relevant listings/config files. Location and google-api key altered obvs!
The rtl stick is attached to a pi-zero with IP 192.168.1.149 wouldn't have thought that made a difference though.

pi@venablespi:/usr/share/mm2 $ ls -l
total 104896
-rw-r--r-- 1 root root 50164736 Aug 17 09:25 BaseStation.sqb
-rw-r--r-- 1 root root 22287888 Aug 17 00:19 FLAGS_FOR_UPLOAD_SIDE_VIEWS_V12.zip
-rw-r--r-- 1 pi   pi       1117 Dec 31  2014 LICENSE.MIT
drwxr-xr-x 2 root root   262144 Aug 17 00:19 OperatorFlags
drwxr-xr-x 2 root root   258048 Aug 17 00:20 Silhouettes
drwxr-xr-x 2 root root    36864 Aug 17 00:18 Silhouettes.old
-rw-r--r-- 1 root root 15077376 Aug 16 22:33 flightroute-icao.sqb
-rw-r--r-- 1 root root 14377984 Aug 16 22:33 flightroute.sqb
-rw-r--r-- 1 root root      302 Aug 16 23:23 mm2.conf
-rw-r--r-- 1 root root      108 Aug 16 18:30 mm2.conf.bak
-rwxrwxrwx 1 root root      137 Aug 16 18:30 mm2.sh
-rwxr-xr-x 1 root pi    3197768 Feb 24 07:18 modesmixer2
-rw-r--r-- 1 pi   pi       9185 Feb 24 09:32 modesmixer2.txt
-rw-r--r-- 1 root root  1705150 Aug 16 18:30 modesmixer2_rpi2-3_deb9_20190223.tgz


pi@venablespi:/usr/share/mm2 $ cat mm2.conf
--silhouettes /usr/share/mm2/Silhouettes
--db /usr/share/mm2/BaseStation.sqb
--frdb /usr/share/mm2/flightroute.sqb
--inConnectId 192.168.1.149:30005:ADSB
--inConnectId 192.168.1.149:30105:MLAT
--web 8787
--location 52.xxx:1.xxx
--google-key My_key



Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 17, 2019, 10:04:58 AM
@doctorvenables:

All seems OK.

There is a possibility that BaseStation.sqb is corrupt or in a format different than what is acceptable to ModeSMixer2.

What is the source of your BaseStation.sqb? I have copied it from VRS (C:\Users\abcd\AppData\Local\VirtualRadar\BaseStation.sqb)

I have installed "database writer pluin" in my VRS,  which generated this file. It was very small size when generated (no data) but is gradually growing in size as more data is collected. I copied it from Windows Desktop to RPi using FileZilla SFTP.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 17, 2019, 10:30:54 AM
That's a good question. Will have a look through my history..
Simple answer is I can't remember. What I do know is that it is over 50 Mb now and growing all the time.

Perhaps the answer is to start afresh with BaseStation.sqb (as it doesn't seem to be doing me any favours anyway!)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on August 17, 2019, 10:48:58 AM
Yup think answer is to re-install VRS and go from there.

Can't remember now why I ditched VRS in the first place - perhaps it was the charts display in modesmixer.

Chances are I can have both running if VRS fixes the db problem...
THanks for all of your suggestions @abcd567
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 17, 2019, 11:40:57 AM
Hello doctorvenables,

I can assume that the issue is files permission and access modes in Unix. On your screenshot above (pi@venablespi:/usr/share/mm2 $ ls -l) the files in the directory related to different users (standard and privileged) and groups: pi and root. Above, superuser root is owner of the file "-rw-r--r-- 1 root root 50164736 Aug 17 09:25 BaseStation.sqb" and only it can write to this file.

If you run the program from the PI user, then all other related files must also belong to the pi user (or have read and write access for pi).
Your file is currently owned by root and is not writable by the modesmixer2 that has pi user rights.

I would suggest that you run a command that change the ownership of a directory and all the files contained inside (use the recursive option with the -R flag) to the "pi" user in the "pi" group:
sudo chown -R pi:pi /usr/share/mm2/

The chown command stands for "change owner" and is used to change the owner of a file.


Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: andrewt on August 17, 2019, 04:13:31 PM
Quote from: abcd567 on August 17, 2019, 09:17:14 AM
Quote from: andrewt on August 17, 2019, 03:46:59 AM
I tried the github download it works, as soon as i reboot there is no sign of modesmixer2 ...... no folders, nothing.

(1) This can happen if your file system is mounted as "read only file system".
Give following command to make your file system "read and write", and after that run the github script to install modesmixer2.

sudo mount -o remount,rw /



(2) Please post output of following commands:

ls /usr/share/mm2/

ls /lib/systemd/system/mm2.service

sudo systemctl status mm2


pi@raspberrypi:~ $ ls /usr/share/mm2/
LICENSE.MIT  mm2.sh       modesmixer2_rpi2-3_deb9_20190223.tgz
mm2.conf     modesmixer2  modesmixer2.txt
pi@raspberrypi:~ $ ls /lib/systemd/system/mm2.service
/lib/systemd/system/mm2.service
pi@raspberrypi:~ $
pi@raspberrypi:~ $ sudo systemctl status mm2
● mm2.service - ModeSMixer2
   Loaded: loaded (/lib/systemd/system/mm2.service; enabled; vendor preset: enab
   Active: active (running) since Sat 2019-08-17 01:53:04 EDT; 9h ago
Main PID: 453 (bash)
    Tasks: 5 (limit: 2200)
   Memory: 8.1M
   CGroup: /system.slice/mm2.service
           ├─453 /bin/bash /usr/share/mm2/mm2.sh
           └─472 /usr/share/mm2/modesmixer2 --inConnectId 127.0.0.1:30005:ADSB -

Aug 17 07:59:45 raspberrypi modesmixer2[453]: 2019-08-17 07:59:45.085  ERROR   
Aug 17 07:59:45 raspberrypi modesmixer2[453]: 2019-08-17 07:59:45.085  INFO     
Aug 17 08:00:10 raspberrypi modesmixer2[453]: 2019-08-17 08:00:10.086  INFO     
Aug 17 08:00:10 raspberrypi modesmixer2[453]: 2019-08-17 08:00:10.086  ERROR   
Aug 17 08:00:10 raspberrypi modesmixer2[453]: 2019-08-17 08:00:10.086  INFO     
Aug 17 08:00:56 raspberrypi modesmixer2[453]: 2019-08-17 08:00:56.087  INFO     
Aug 17 08:00:56 raspberrypi modesmixer2[453]: 2019-08-17 08:00:56.087  INFO     
Aug 17 08:02:56 raspberrypi modesmixer2[453]: 2019-08-17 08:02:56.644  INFO     
Aug 17 08:46:10 raspberrypi modesmixer2[453]: 2019-08-17 08:46:10.612  INFO     
Aug 17 08:46:10 raspberrypi modesmixer2[453]: 2019-08-17 08:46:10.612  INFO     
lines 1-20/20 (END)


Hi abcd567
Above is the outcome of what you ask me to do
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: andrewt on August 17, 2019, 04:27:03 PM
@abcd567 hi,
Forgive me i
I am new to how posting is done, where one can separate the code from the comments but you can scroll my recent post and let what has to be done to fix this 
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 17, 2019, 07:53:56 PM
Quote from: andrewt on August 17, 2019, 04:13:31 PM


pi@raspberrypi:~ $ sudo systemctl status mm2
● mm2.service - ModeSMixer2
   Loaded: loaded (/lib/systemd/system/mm2.service; enabled; vendor preset: enab
   Active: active (running) since Sat 2019-08-17 01:53:04 EDT; 9h ago
Main PID: 453 (bash)
    Tasks: 5 (limit: 2200)
   Memory: 8.1M
   CGroup: /system.slice/mm2.service
           ├─453 /bin/bash /usr/share/mm2/mm2.sh
           └─472 /usr/share/mm2/modesmixer2 --inConnectId 127.0.0.1:30005:ADSB -

Aug 17 07:59:45 raspberrypi modesmixer2[453]: 2019-08-17 07:59:45.085  ERROR   
Aug 17 07:59:45 raspberrypi modesmixer2[453]: 2019-08-17 07:59:45.085  INFO     
Aug 17 08:00:10 raspberrypi modesmixer2[453]: 2019-08-17 08:00:10.086  INFO     
Aug 17 08:00:10 raspberrypi modesmixer2[453]: 2019-08-17 08:00:10.086  ERROR   
Aug 17 08:00:10 raspberrypi modesmixer2[453]: 2019-08-17 08:00:10.086  INFO     
Aug 17 08:00:56 raspberrypi modesmixer2[453]: 2019-08-17 08:00:56.087  INFO     
Aug 17 08:00:56 raspberrypi modesmixer2[453]: 2019-08-17 08:00:56.087  INFO     
Aug 17 08:02:56 raspberrypi modesmixer2[453]: 2019-08-17 08:02:56.644  INFO     
Aug 17 08:46:10 raspberrypi modesmixer2[453]: 2019-08-17 08:46:10.612  INFO     
Aug 17 08:46:10 raspberrypi modesmixer2[453]: 2019-08-17 08:46:10.612  INFO     
lines 1-20/20 (END)


Hi abcd567
Above is the outcome of what you ask me to do

Hi Andrew
I can see two lines with ERROR at the end. The text after ERROR shows what has gone wrong. Unfortunately rest of the text after ERROR did not appear as width of your PuTTY window is small.

Please increase the width of PuTTy window and then give command sudo systemctl status mm2, and post the output.

Below is my output after I increased the width of PuTTY (almost doubled), and after increasing width issued command sudo systemctl status mm2

Scroll right to see in full


Aug 17 14:38:07 raspberrypi modesmixer2[3092]: 2019-08-17 14:38:07.013  INFO     inConnectId(127.0.0.1:30005:ADSB) connected
Aug 17 14:38:07 raspberrypi modesmixer2[3092]: 2019-08-17 14:38:07.295  INFO     inConnectId(127.0.0.1:30005:ADSB) BEAST data stream detected
Aug 17 14:38:10 raspberrypi modesmixer2[3092]: 2019-08-17 14:38:10.270  INFO     Coverage area was determined
Aug 17 14:38:10 raspberrypi modesmixer2[3092]: 2019-08-17 14:38:10.270  INFO     Magnetic declination calculated
Aug 17 14:38:10 raspberrypi modesmixer2[3092]: 2019-08-17 14:38:10.305  INFO     Coverage area was determined
Aug 17 14:38:10 raspberrypi modesmixer2[3092]: 2019-08-17 14:38:10.306  INFO     Magnetic declination calculated
Aug 17 14:38:10 raspberrypi modesmixer2[3092]: 2019-08-17 14:38:10.387  INFO     inConnectId(127.0.0.1:30105:MLAT) BEAST data stream detected
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 17, 2019, 09:21:14 PM
I have created a BaseStation.sqb by VRS using it's "Database Writer Plugin".
Before I created this file, I disconnected RPi (from where VRS used to get data), so it does not contain any aircraft data. Therefore it's size is only 44 kb.

I use it as starting point. I copied this data-less file to RPi folder /usr/share/mm2/, restarted modesmixer2, and the file BaseStation.sqb immediately started growing in size, indicating modesmixer2 has started storing data in it. However strange thing is that in spite of storing the data in BaseStation.sqb (as indicated by it's growing size), the data was NOT displayed on Map and Flights table .
I tried reboot after 15 minutes, then again after half an hour, the data did NOT disply.

I changed ownership of folder mm2 (recursive) to pi:pi, but data still did not display.

The size of file BaseStation.sqb however keeps growing. I started with a data-less BaseStation.sqb of size 44 kb few hours ago, and now it is 722 kb, and still growing.

Please see screenshot below showing missing info. This applies to ALL aircrafts, and even many hours after starting modesmixer2,

[attachment deleted reduce file load]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: andrewt on August 18, 2019, 02:08:36 AM
● mm2.service - ModeSMixer2
   Loaded: loaded (/lib/systemd/system/mm2.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2019-08-17 19:32:02 EDT; 1h 26min ago
Main PID: 447 (bash)
    Tasks: 5 (limit: 2200)
   Memory: 8.5M
   CGroup: /system.slice/mm2.service
           ├─447 /bin/bash /usr/share/mm2/mm2.sh
           └─450 /usr/share/mm2/modesmixer2 --inConnectId 127.0.0.1:30005:ADSB --inConnectId 127.0.0.1:30105:MLAT --web 8787 --location 13.09841:-59.58619

Aug 17 19:32:29 raspberrypi modesmixer2[447]: 2019-08-17 19:32:29.793  ERROR    inConnectId(127.0.0.1:30105:MLAT) connect host 127.0.0.1:30105 error Connection refused
Aug 17 19:32:29 raspberrypi modesmixer2[447]: 2019-08-17 19:32:29.793  INFO     inConnectId(127.0.0.1:30105:MLAT) reconnect in 37 seconds
Aug 17 20:52:24 raspberrypi modesmixer2[447]: 2019-08-17 20:52:24.199  INFO     inConnectId(127.0.0.1:30105:MLAT) connecting 127.0.0.1:30105
Aug 17 20:52:24 raspberrypi modesmixer2[447]: 2019-08-17 20:52:24.199  ERROR    inConnectId(127.0.0.1:30105:MLAT) connect host 127.0.0.1:30105 error Connection refused
Aug 17 20:52:24 raspberrypi modesmixer2[447]: 2019-08-17 20:52:24.199  INFO     inConnectId(127.0.0.1:30105:MLAT) reconnect in 77 seconds
Aug 17 20:52:28 raspberrypi modesmixer2[447]: 2019-08-17 20:52:28.560  INFO     Coverage area was determined
Aug 17 20:52:28 raspberrypi modesmixer2[447]: 2019-08-17 20:52:28.560  INFO     Magnetic declination calculated
Aug 17 20:53:41 raspberrypi modesmixer2[447]: 2019-08-17 20:53:41.200  INFO     inConnectId(127.0.0.1:30105:MLAT) connecting 127.0.0.1:30105
Aug 17 20:53:41 raspberrypi modesmixer2[447]: 2019-08-17 20:53:41.201  INFO     inConnectId(127.0.0.1:30105:MLAT) connected
Aug 17 20:55:41 raspberrypi modesmixer2[447]: 2019-08-17 20:55:41.939  INFO     inConnectId(127.0.0.1:30105:MLAT) BEAST data stream detected

@abcd567 above is the completed message
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 18, 2019, 05:07:05 AM
Hi andrewt

Great. The output you posted shows everything is ok.
What you see in your browser at following address?
IP-of-PI:8787

Analysis of output of command sudo systemctl status mm2:
(1) This shows your config is OK

   CGroup: /system.slice/mm2.service
           ├─447 /bin/bash /usr/share/mm2/mm2.sh
           └─450 /usr/share/mm2/modesmixer2 --inConnectId 127.0.0.1:30005:ADSB --inConnectId 127.0.0.1:30105:MLAT --web 8787 --location 13.xxxx:-59.xxxx


(2) The last 3 lines show that modesmixer2 is working OK and after several failed attempts, finally got connected to piaware mlat feed back at port 30105

INFO     inConnectId(127.0.0.1:30105:MLAT) connecting 127.0.0.1:30105
INFO     inConnectId(127.0.0.1:30105:MLAT) connected
INFO     inConnectId(127.0.0.1:30105:MLAT) BEAST data stream detected
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 18, 2019, 06:24:32 PM
Posted a new script at Github for automated installation of ModeSDeco2 on RPI 2/3/4 Raspbian Stretch/Buster


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


The script does following:
(1) Creates a  folder /usr/share/md2 to hold ModeSDeco2 files.
(2) Downloads ModeSDeco2's .tgz file from Google Drive, and un-compresses it inside folder /usr/share/md2.
(3) Creates a service file for start up, control, and monitoring of ModeSDeco2 by systemd service.
(4) Creates a config file /usr/share/md2/md2.conf shown below.
This file can be edited by user to add, delete or modify the configuration.
New arguments can be added, one per line, in format --argument value

--beast 30005
--msg 30003
--web 8787
--location xx.xxxx:yy.yyyy


(5) Announces completion and displays brief guide.

.

FOR DETAILS:
https://github.com/abcd567a/md2/blob/master/README.md



.
STATUS

pi@raspberrypi:~ $ sudo systemctl status md2

● md2.service - ModeSDeco2
   Loaded: loaded (/lib/systemd/system/md2.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2019-08-18 17:59:05 BST; 32min ago
Main PID: 697 (bash)
    Tasks: 7 (limit: 2200)
   Memory: 28.7M
   CGroup: /system.slice/md2.service
           ├─697 /bin/bash /usr/share/md2/md2-start.sh
           └─699 /usr/share/md2/modesdeco2 --beast 30005 --msg 30003 --web 8787 --location 43.xxx:-79.xxx

Aug 18 17:59:06 raspberrypi modesdeco2[697]: 2019-08-18 17:59:06.351  INFO     ModeSDeco2 v.20180729
Aug 18 17:59:06 raspberrypi modesdeco2[697]: 2019-08-18 17:59:06.352  INFO     The magnetic declination value is calculated
Aug 18 17:59:06 raspberrypi modesdeco2[697]: 2019-08-18 17:59:06.382  INFO     Device: 0 mnf: Realtek prod: RTL2832UFA serial: 00000101
Aug 18 17:59:07 raspberrypi modesdeco2[697]: 2019-08-18 17:59:07.027  INFO     Supported Gains (dB):  0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.
Aug 18 17:59:07 raspberrypi modesdeco2[697]: 2019-08-18 17:59:07.027  INFO     Freq Correction: 0 ppm
Aug 18 17:59:07 raspberrypi modesdeco2[697]: 2019-08-18 17:59:07.045  INFO     Gain: Auto
Aug 18 17:59:07 raspberrypi modesdeco2[697]: 2019-08-18 17:59:07.050  INFO     AGC: Off
Aug 18 17:59:07 raspberrypi modesdeco2[697]: 2019-08-18 17:59:07.050  INFO     Start Beast Server on port 30005
Aug 18 17:59:07 raspberrypi modesdeco2[697]: 2019-08-18 17:59:07.050  INFO     Start MSG Server on port 30003
Aug 18 17:59:07 raspberrypi modesdeco2[697]: Used 4 zero-copy with pre-allocated memory

.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: doctorvenables on September 07, 2019, 02:26:57 PM
@abcd567 re: your last post of Aug 17.

That's exactly what's happening to me (still).
I get silhouettes now that I've changed the full path back to a subdirectory of my home directory.
I get flightroutes data back now after the same change to mm2.conf

Still no data persistance however.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: andrewt on September 07, 2019, 08:49:59 PM
Hi All
I have a question, where can I get my hands on a working flightroute.sqb file for mm2? I've been searching the internet for the past three days and didn't come across a working one.
Can anyone help

Thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: MASHtm on September 18, 2019, 10:40:10 AM
I recently noticed that Firefox (at least 69.x) does not fetch the airplane pictures. The json request to mm2 is successful and the answer contains the correct URI to the picture, but it is never fetched (according to network debug). Chrome and Seamonkey still work.

Anybody else seeing this?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on September 18, 2019, 01:10:36 PM
Quote from: MASHtm on September 18, 2019, 10:40:10 AM
I recently noticed that Firefox (at least 69.x) does not fetch the airplane pictures.
.......
Chrome and Seamonkey still work.

Anybody else seeing this?

Same here.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evangel on October 02, 2019, 08:12:19 AM
Quote from: andrewt on September 07, 2019, 08:49:59 PM
Hi All
I have a question, where can I get my hands on a working flightroute.sqb file for mm2? I've been searching the internet for the past three days and didn't come across a working one.
Can anyone help

Thanks

hi
that file and companion basestation.sqb can be found at
https://groups.io/g/planeplotter/topic/latest_flightroute_sqb_file/26719164?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,26719164


brgds
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on October 07, 2019, 04:32:59 PM
@sergsero
Comments of @prog (Youssef Touil, developer of AirSpy software)
https://discussions.flightaware.com/t/airspy-ads-b-decoder/55825/58

Quote from: prog

Quote from: abcd567
@prog
Any comments about ModeSDeco2's AirSpy config? How relevant these are to current models of AirSpy?

ModeSDeco uses the old algorithm I developed for Airspy which has different settings.
Note that these same settings disappeared from airspy_adsb command line at some point. Now they result in a warning.
For the gain options, it's better to use the linearity mode with one global gain index rather than 3 individual gain stages (LNA/Mixer/IF). This is especially true if you use the device with an external LNA, which is almost always the case in ADSB/Mode S reception.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: radarvirtuel on November 09, 2019, 03:37:26 PM
Hi Sergsero
I looking for modesmixer2_radarcape_debian8_20150825.tgz but not available from googledrive..
Could you help me ?
Thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 23, 2019, 02:09:22 PM
Hi Radarvirtuel,

Unfortunately, that version is not available, but here (http://xdeco.org/?page_id=30#mm2) is the current one (modesmixer2_bbone_deb8_20190413.tgz) for beaglebone. I tested it on the radarcape' Linux radarcape 4.1.30-ti-r69 #1 SMP Sun Aug 14 11:23:09 UTC 2016 armv7l GNU/Linux.

Best regards,
sergsero

[attachment deleted reduce file load]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dlfergrd on November 23, 2019, 06:29:01 PM
Hi sergsero

Thanks for the great software. I have just recently started using it and everything runs great except for one thing.
If I close modesmixer2 and then restart it, all of the chart data on the charts page in the web interface is reset.
The aircraft plot data on the maps page is saved between restarts of modesmixer2.

I am on Windows 10 and running modesdeco and modesmixer as well as viewing the web interface on the same machine.
I thought it may have something to do with permissions so I tried running modesmixer as an administrator and have the same results.

My modesdeco.bat
@echo off
TITLE Decoder
cmd /c modesdeco2.exe --gain 49.6 --localtime --location xxx:-xxx --rbs --avr 31100 --beast 31011
PAUSE
exit


modesmixer.bat
@echo off
TITLE Mixer
cmd /c c:\sdr\modesmixer\modesmixer2.exe --google-key xxxxxxxx--web 8080 --db c:\sdr\database\basestation.sqb --frdb c:\sdr\database\flightroute.sqb --silhouettes c:\sdr\database\silhouettes --pictures c:\sdr\database\pictures --location xxx:-xxx --inConnectId 10.53.44.53:31011:ModeSDc --filter-expire 30 --valid-adsb 4:20 --outServer beast:33033 --outServer beastmlat:30115 --valid-modes 0:5
PAUSE
exit


The path to the database is correct, I can see the size of the file increasing.
I don't know if I have a setting wrong or missing of where the data is saved for the histograms.

Thanks for any help with this.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on November 24, 2019, 02:39:43 AM
Hi dlfergrd,
Quote from: dlfergrd on November 23, 2019, 06:29:01 PM
If I close modesmixer2 and then restart it, all of the chart data on the charts page in the web interface is reset.
The aircraft plot data on the maps page is saved between restarts of modesmixer2.
Indeed, this is a feature of the current versions of the programs and there are no errors in your settings.
The explanation for this is in the original purpose of modesmixer2 as a console (without any GUI or Web) program for operational data transcoding.

These programs usually store and use all data in the computer's RAM only while they are running. Only for the aircraft plot data on the maps page its values are saved in a separate file.
There are plans to add the same capability for the chart data on the charts page in the web interface.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: dlfergrd on November 24, 2019, 04:24:04 AM
Thanks very much for the quick response. I look forward to the next release.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: g0wfv on January 03, 2020, 11:47:31 AM
HTTP/1.1 response "Transfer-Encoding: chunked" breaks HTTP/1.0 mod_proxy on lighttpd.

I'm trying to use lighttpd's mod_proxy to make the ModesMixer2 web server appear under a directory on my main lighttpd webserver, however I always get a "502 Bad Gateway" error.

Looking at the error.log for the lighttpd webserver I get the following ...

2020-01-03 11:18:41: (http-header-glue.c.999) proxy backend sent invalid response header (Transfer-Encoding) to HTTP/1.0 request
2020-01-03 11:18:41: (gw_backend.c.2149) response not received, request sent: 733 on socket: tcp:127.0.0.1:81 for /msd?, closing connection


Some further searching turns up the same error  ... https://redmine.lighttpd.net/issues/2913 (https://redmine.lighttpd.net/issues/2913)

Some cursory testing with curl confirms that ModesMixer2 replies to a HTTP/1.0 request with a "Transfer-Encoding: chunked" reply, apparently breaking the RFC. (lighttpd's mod_proxy is HTTP/1.0 only)

pi@raspberrypi:~$ curl -0 localhost:81 -v

> GET / HTTP/1.0
> Host: localhost:81
> User-Agent: curl/7.64.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: text/html
< Content-Length: 55544
< Date: Fri, 03 Jan 2020 11:41:52 GMT
< Last-Modified: Wed, 01 Jan 2020 18:58:22 GMT
< Etag: 5e0cebce.55544
< Connection: close
< Transfer-Encoding: chunked


Any chance of a fix?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on April 25, 2020, 03:13:00 PM
Hi all,

I am hoping someone on here can help me out again. :-)

I use Modesdeco with an RTL dongle and has been working great for a long time now.

However i have damaged the casing of the dongle (It still works for now) so i have bought a new one.

Unfortunately i cannot get his new one to work. I get the following issue:

2020-04-25 15:08:27.389  INFO     ModeSDeco2 v.20151226
2020-04-25 15:08:27.452  INFO     Device: 0 mnf: Realtek prod: RTL2838UHIDIR serial: 00000001
2020-04-25 15:08:27.889  ERROR    Can't open device: sdr_set_freq(): Bad file descriptor
Press any key to continue . . .

I have searched the web but cant work out the problem.

If someone is able to point me in the right direction on how to fix this that would be great please.

Many thanks

Carl

[attachment deleted reduce file load]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on April 25, 2020, 03:21:43 PM
Hi

Do you have the spec of the replacement SDR "dongle"?

Maybe a link to the item if you bought it online?

Not all of them can process Mode-S data.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: fat-tony on April 25, 2020, 04:30:38 PM
It may be a clash with the old dongle - see post #540/541 (or it may be an unsuitable dongle as @anmer has indicated)
Here's a scrape of the posts I found:
-----------------------------------------------------------------------------------------------------------------------------

Hi sergsero

How do I connect 2 RTL Dongles whit the ModeSDeco2 ?

I get this error when i try

2015-09-04 19:46:50.499  INFO     ModeSDeco2 v.20150815
2015-09-04 19:46:50.621  INFO     Device: 1 mnf: Realtek prod: RTL2838UHIDIR seial: 00000002 usb_claim_interface error -12
2015-09-04 19:46:50.649  ERROR   Can't open device: sdr_open(): Bad file descrptor

The other RTL2838UHIDIR has serial  00000001


Cheers

Peter
Logged

    VirtualRadar, RTL1090,ModeSDeco2,Modesmixer2,acarsdeco2,

Offline sergsero

    Member
    ****
    Posts: 336
    Country: ru

Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
« Reply #541 on: September 04, 2015, 08:21:21 pm »
Hi Peter,

Each instance of a program that only works with a single SDR device.

Option '--device-serial' or '--device-index' uses to assign the specific dongle for the program instance. There is  difference between first - it selects dongle via his serial number (constant attribute) but second is number of device (variable attribute) in the operating system.

Run program with the one option '--device-list' and determine serial numbers of your dongles.

Regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on April 26, 2020, 06:13:33 AM
Quote from: Carlos on April 25, 2020, 03:13:00 PM

2020-04-25 15:08:27.389  INFO     ModeSDeco2 v.20151226
2020-04-25 15:08:27.452  INFO     Device: 0 mnf: Realtek prod: RTL2838UHIDIR serial: 00000001
2020-04-25 15:08:27.889  ERROR    Can't open device: sdr_set_freq(): Bad file descriptor
Press any key to continue . . .

Please do this and post the output of 2nd command


sudo apt-get install rtl-sdr   

rtl_test -t   
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on April 26, 2020, 09:23:29 AM
Hi all,

Thanks for the reply.

When I press any key it just closes the screen.

The dongle is using the same serial as my current one.

When I look on zadig the driver is WinUSB ( 6 1.7600.16385).I have tried changing the settings as in there it shows my current dongle as RTL2838UHIDIR. I tried adding a new one using RTL2832U but it didnt work.

I bought it from Amazon

JVSISM USB2.0 DAB FM DVB-T RTL2832U R820T2 SDR RTL-SDR Dongle Stick Digital TV Tuner Receiver IR Remote with Antenna

Maybe I have bought one which doesnt work with modesdeco as suggested. :-(

Thanks for your help.

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on April 26, 2020, 02:10:21 PM
Hello,

Your dongle is fully compatible with RTL2832U/U820T unit. To check its visibility and availability in the system you need to access it via the Command Prompt (Windows console).
Note: this description is based on Windows 10, but the majority of these methods should work in earlier versions of Windows, too.

While it's easy to just open the Command Prompt from the Start menu, that's not the only way to do it. Another way is to open Command Prompt from the Run Box.

Press Windows+R to open "Run" box. Type "cmd" and then click "OK" to open a regular Command Prompt. Type "cmd" and then press Enter to open a user Command Prompt or Ctrl+Shift+Enter to open it as an administrator.

You need to go to the directory where rtl_test is located if you want to use standard RTLSDR utilities.
Then execute the command (for example, let's assume that it is located on disk D:\, and you are currently on disk C:\)

C:\Temp>pushd D:\some\folder\where_you_put_rtl-sdr-release.
And run rtl_test -t.

Or move directly to the directory where modesdeco2 is located.
C:\Temp>pushd D:\some\folder\where_you_put_modesdeco2
And run modesdeco2 --device-list


If you only use a single instance of the dongle and it is the only one connected to the USB port, then exclude the option of any identification by serial number or index from the start line. Just run the program as usual, but without these options: --device-serial or --device-index.

And one more thing: Windows 10 will sometimes perform updated which overwrites the SDR drivers. So each time is updates you just need to run Zadig again and replace the driver.
When Zadig is running, go to 'Options' and make sure 'List all devices' is selected. At the 'Device' option, select 'Bulk-In, Interface (Interface 0)' (or in some cases, you might instead see 'RTL2832UHIDIR', then select this). Click on the big button labeled 'Replace Driver' or 'Install Driver'. Installing the driver may take a minute.
When installing the driver is done, you can now run modesdeco2 as usual via *.bat file or in command line with necessary options.

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on April 26, 2020, 09:17:59 PM
Hi Sergsero,

Thank you for the detailed reply. Unfortunately I cannot seem to get my command prompt to point to the right location. If possible are you able to include a screen print of the cmd prompt location so I can get a better idea of what I am doing wrong please?

Mine just defaults to c:\users\carl4.

My modesdeco 2 is located in c:\modesdeco2_windows_20151226_for_test_only

Best Regards

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Conexia on April 27, 2020, 07:53:58 PM
Hello to evryone
For several months I've been using this setup for feeding FR24 and FlightAware:

Raspberry Pi 3 model B+ with Raspbian GNU/Linux 9 (stretch)
FlightAware Pro Stick Plus (blue)
ModeSdeco2 modesdeco2_rpi2-3_deb9_20180729
ModeSmixer2 modesmixer2_rpi2-3_deb9_20190413

From ModeSmixer2 I send data to FR24 and FlightAware and receive MLAT from FR24

The aircraft map is the ModeSmixer2 one.

Until a couple of weeks ago I was able to see the aircraft in the ModeSmixer2 map, but I suspect after a recent PiAware update I can´t see them in http://192.168.1.xx:8081

I tried to see them in ModeSdeco2 web interface in port 8585 but it also doesn't work

And now all I can see is Skyaware in port 8080 (that previously to the PiAware update was not working

Flightaware and FR24 data upload are still working fine

Can anyone tell me why I can't see ModeSdeco2 and ModeSmixer2 web interfaces?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: adsb4fun on May 21, 2020, 10:12:32 AM
Hi!

Long time modesmixer2 user. First big thanks to the developer! Great work!

Im currently running modesmixer2 on the Dietpi image (dietpi.com), which in my case is running Debian Stretch. All is OK there.

Now im moving into a new Raspberry Pi and then the latest Dietpi image which is Debian Buster. And i can not get modesmixer2 to run.

I have downloaded the modesmixer2_rpi4_deb10_20190413.tgz.

The problem is, it runs but is not able to do any lookups. Or infact it does not seem to interpret the host/IP-field at all.

Regardless if i try www.google.com or 192.168.1.1 it says "can't resolve host xxx Service not found". Same with localhost

I want to stress that im in no way blaming modesmixer2. Im aware that im running a non "standard" image but need some hints on how to proceed. Is there something missing on the image that i need to install or take to the developer of Dietpi?

root@test:~# /root/modesmixer2_deb10 --inConnect localhost:30005 --outConnect beast:www.google.com:10000
2020-05-21 11:00:09.185  INFO     ModeSMixer2 v.20190413
2020-05-21 11:00:09.188  ERROR    outConnect(beast:www.google.com:10000) can't resolve host www.google.com Service not found
2020-05-21 11:00:09.189  INFO     outConnect(beast:www.google.com:10000) reconnect in 10 seconds
2020-05-21 11:00:09.190  ERROR    inConnect(localhost:30005) can't resolve host localhost Service not found
2020-05-21 11:00:09.190  INFO     inConnect(localhost:30005) reconnect in 10 seconds

root@test:~# /root/modesmixer2_deb10 --inConnect localhost:30005 --outConnect beast:192.168.1.1:10000
2020-05-21 11:00:13.750  INFO     ModeSMixer2 v.20190413
2020-05-21 11:00:13.755  ERROR    outConnect(beast:192.168.1.1:10000) can't resolve host 192.168.1.1 Service not found
2020-05-21 11:00:13.756  INFO     outConnect(beast:192.168.1.1:10000) reconnect in 10 seconds
2020-05-21 11:00:13.756  ERROR    inConnect(localhost:30005) can't resolve host localhost Service not found
2020-05-21 11:00:13.757  INFO     inConnect(localhost:30005) reconnect in 10 seconds

root@test:~# ping www.google.com
PING www.google.com (216.58.211.4) 56(84) bytes of data.
64 bytes from muc03s13-in-f4.1e100.net (216.58.211.4): icmp_seq=1 ttl=55 time=25.7 ms
64 bytes from muc03s13-in-f4.1e100.net (216.58.211.4): icmp_seq=2 ttl=55 time=28.4 ms
64 bytes from muc03s13-in-f4.1e100.net (216.58.211.4): icmp_seq=3 ttl=55 time=34.4 ms
64 bytes from muc03s13-in-f4.1e100.net (216.58.211.4): icmp_seq=4 ttl=55 time=25.5 ms
64 bytes from muc03s13-in-f4.1e100.net (216.58.211.4): icmp_seq=5 ttl=55 time=25.10 ms
64 bytes from muc03s13-in-f4.1e100.net (216.58.211.4): icmp_seq=6 ttl=55 time=25.1 ms

root@test:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.198 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.184 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.233 ms


Linux test 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"






Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oblivian on May 27, 2020, 09:19:41 AM
adsb4fun - looks like in some you are using the wrong commandlines

First one you are telling it to send your data to google.. :) (did you copy an example perhaps)

and the latter it is unable to resolve using the word 'localhost'. This has been an issue on trimmed OS as sometimes missed from /etc/hosts

You would be best to use --inConnect 127.0.0.1:30005 and nothing else and see if at least it can get to the local 30005 port rather than resolve 'localhost'

Then work out what the internal test it uses has been left off that distro.
It may be dnsutils/nslookup

I expect being diet, it is possibly missing stuff, or being blocked by Pihole which appears to come preloaded.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on June 03, 2020, 06:38:04 PM
On 27th May 2020, Raspberry Pi foundation (https://www.raspberrypi.org/forums/viewtopic.php?f=117&t=275370&sid=91848313695f827a00335342fca12d02) has released 64bit Raspbian (https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2020-05-28/2020-05-27-raspios-buster-arm64.zip) which can be used on RPi3 and RPi4 as both have 64bit cpu.

(1) I downloaded and wrote this 64bit Raspbian image to microSD card of RPi 4.

(2) Installed 64bit versions of dump1090-fa and piaware using bash scripts at my Github account:

https://github.com/abcd567a/piaware-64bit-raspbian/blob/master/README.md


(3) Installed ModeSMixer2 using bash script at my Github account:

https://github.com/abcd567a/mm2/blob/master/README.md

However ModeSMixer2 failed as armhf versions of files libssl.so.1.1 and  libcrypto.so.1.1 are missing (only aarch64 versions of these files are available).


Tried to install missing armhf versions of above two files by installing libssl1.1:armhf package by fllowing command:

sudo apt install libssl1.1:armhf


Execution of above command resulted in replacement of about 450 packages:arm64 by packages:armhf, and the system collapsed (Do not attempt it).


Solved it by following workaround.

sudo mkdir libssl-armhf 
wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1d-0+deb10u3_armhf.deb   
sudo dpkg -x libssl1.1_1.1.1d-0+deb10u3_armhf.deb libssl-armhf   

sudo cp libssl-armhf/usr/lib/arm-linux-gnueabihf/libssl.so.1.1 /usr/lib/arm-linux-gnueabihf/   
sudo cp libssl-armhf/usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1 /usr/lib/arm-linux-gnueabihf/   

sudo systemctl restart mm2 



After above workaround, ModeSMixer2 works OK. :)

.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 06, 2020, 10:43:58 AM
Hi abcd567,

I am very grateful for your messages that find a solution and explanation of issues with the software.

Below is a link to the 64 bit version of modesmixer2 that was built as aarch64 for the Raspberry Pi OS and Raspberry Pi 4. I hope that it will work with native OS packages. Otherwise, I will make a version with statically linked libraries.

https://drive.google.com/file/d/1EB_VunTA3UINzsJUduKTnssVwk-1XyFr/view?usp=sharing (https://drive.google.com/file/d/1EB_VunTA3UINzsJUduKTnssVwk-1XyFr/view?usp=sharing)

$ file modesmixer2
modesmixer2: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=22eaa58312b649b379d00647b4c1e98c8102b046


ldd modesmixer2
        linux-vdso.so.1 (0x0000007f913a2000)
        libssl.so.1.1 => /usr/lib/aarch64-linux-gnu/libssl.so.1.1 (0x0000007f90f0d000)
        libcrypto.so.1.1 => /usr/lib/aarch64-linux-gnu/libcrypto.so.1.1 (0x0000007f90c65000)
        libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007f90c36000)
        librt.so.1 => /lib/aarch64-linux-gnu/librt.so.1 (0x0000007f90c1e000)
        libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000007f90c0a000)
        libstdc++.so.6 => /usr/lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000007f90a7f000)
        libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000007f909c2000)
        libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000007f9099e000)
        libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f9082c000)
        /lib/ld-linux-aarch64.so.1 (0x0000007f91374000)


Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on June 06, 2020, 10:49:26 AM
Quote from: sergsero on June 06, 2020, 10:43:58 AM
Hi abcd567,

I am very grateful for your messages that find a solution and explanation of issues with the software.

As are lots of other forum members.  Thanks to both of you.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 06, 2020, 11:01:46 AM
Of course, I am always grateful to all forum members for help!

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on June 06, 2020, 11:09:36 AM
Sorry Sergsero.  I think you misunderstood my message.

I meant other forum members are grateful for the help offered by abcd567 and you.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on June 06, 2020, 07:39:34 PM
Hi Sergsero

Thank you very much for providing link for downloading "modesmixer2_64bit_rpi4_Raspberry_Pi_OS_20200426.tgz".

I have now added following bash script in my Github page.


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


Wrote a fresh image (Raspberry Pi OS 64 bit) to microSD card, booted RPi 4, and installed:
(1) dump1090-fa 64bit
(2) piaware 64bit
(3) ModeSMixer2 64bit (by running above bash command), and it is working OK. :)


CHECKED:


pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.4.42-v8+ #1319 SMP PREEMPT Wed May 20 14:18:56 BST 2020 aarch64 GNU/Linux




pi@raspberrypi:~ $ cd /usr/share/mm2

pi@raspberrypi:/usr/share/mm2 $ ls
LICENSE.MIT  mm2.conf  mm2.sh  modesmixer2  modesmixer2_64bit_rpi4_Raspberry_Pi_OS_20200426.tgz  modesmixer2.txt

pi@raspberrypi:/usr/share/mm2 $ file modesmixer2
modesmixer2: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=22eaa58312b649b379d00647b4c1e98c8102b046, stripped

pi@raspberrypi:/usr/share/mm2 $ ldd modesmixer2
        linux-vdso.so.1 (0x0000007f8a282000)
        libssl.so.1.1 => /usr/lib/aarch64-linux-gnu/libssl.so.1.1 (0x0000007f89def000)
        libcrypto.so.1.1 => /usr/lib/aarch64-linux-gnu/libcrypto.so.1.1 (0x0000007f89b47000)
        libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007f89b18000)
        librt.so.1 => /lib/aarch64-linux-gnu/librt.so.1 (0x0000007f89b00000)
        libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000007f89aec000)
        libstdc++.so.6 => /usr/lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000007f89961000)
        libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000007f898a4000)
        libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000007f89880000)
        libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f8970e000)
        /lib/ld-linux-aarch64.so.1 (0x0000007f8a254000)




pi@raspberrypi:~ $ sudo systemctl status mm2
● mm2.service - ModeSMixer2
   Loaded: loaded (/lib/systemd/system/mm2.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2020-06-06 19:11:56 BST; 15min ago
Main PID: 1008 (bash)
    Tasks: 5 (limit: 787)
   CGroup: /system.slice/mm2.service
           ├─1008 /bin/bash /usr/share/mm2/mm2.sh
           └─1009 /usr/share/mm2/modesmixer2 --inConnectId 127.0.0.1:30005:ADSB --inConnectId 127.0.0.1:30105:MLAT --web 8787 --location 43.5801:-79.62

Jun 06 19:18:56 raspberrypi modesmixer2[1008]: 2020-06-06 19:18:56.606  INFO     inConnectId(127.0.0.1:30105:MLAT) reconnect in 439 seconds
Jun 06 19:26:07 raspberrypi modesmixer2[1008]: 2020-06-06 19:26:07.139  INFO     inConnectId(127.0.0.1:30005:ADSB) disconnected
Jun 06 19:26:07 raspberrypi modesmixer2[1008]: 2020-06-06 19:26:07.139  INFO     inConnectId(127.0.0.1:30005:ADSB) reconnect in 10 seconds
Jun 06 19:26:15 raspberrypi modesmixer2[1008]: 2020-06-06 19:26:15.607  INFO     inConnectId(127.0.0.1:30105:MLAT) connecting 127.0.0.1:30105
Jun 06 19:26:15 raspberrypi modesmixer2[1008]: 2020-06-06 19:26:15.610  INFO     inConnectId(127.0.0.1:30105:MLAT) connected
Jun 06 19:26:17 raspberrypi modesmixer2[1008]: 2020-06-06 19:26:17.140  INFO     inConnectId(127.0.0.1:30005:ADSB) connecting 127.0.0.1:30005
Jun 06 19:26:17 raspberrypi modesmixer2[1008]: 2020-06-06 19:26:17.141  INFO     inConnectId(127.0.0.1:30005:ADSB) connected
Jun 06 19:26:17 raspberrypi modesmixer2[1008]: 2020-06-06 19:26:17.589  INFO     inConnectId(127.0.0.1:30005:ADSB) BEAST data stream detected
Jun 06 19:26:20 raspberrypi modesmixer2[1008]: 2020-06-06 19:26:20.866  INFO     Coverage area was determined
Jun 06 19:26:20 raspberrypi modesmixer2[1008]: 2020-06-06 19:26:20.866  INFO     Magnetic declination calculated





Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: adsb4fun on June 07, 2020, 08:45:44 AM
Im well aware im trying to sending data to www.google.com  :D

Its just for visualising that im having trouble to do DNS-lookups with modesmixer.

I have no trouble finding the DNS-record for www.google.com when i do a ping or a straight nslookup, but modesmixer does not seem to be able to.

It does not really matter if its a DNS name or an straight up IP-address, i just get "cant resolve host" from modesmixer.

The localhost vs 127.0.0.1 is of the same problem, modesmixer tries to do a lookup of the host set as inconnect, no matter if its an ip-address or hostname.

Its the "service not found". Which service?

root@test:~# /usr/bin/modesmixer2 --inConnect 127.0.0.1:30005 --outConnect beast:www.google.com:10000
2020-06-07 09:39:14.681  INFO     ModeSMixer2 v.20190413
2020-06-07 09:39:14.684  ERROR    outConnect(beast:www.google.com:10000) can't resolve host www.google.com Service not found
2020-06-07 09:39:14.684  INFO     outConnect(beast:www.google.com:10000) reconnect in 10 seconds
2020-06-07 09:39:14.685  ERROR    inConnect(127.0.0.1:30005) can't resolve host 127.0.0.1 Service not found
2020-06-07 09:39:14.685  INFO     inConnect(127.0.0.1:30005) reconnect in 10 seconds
2020-06-07 09:39:18.338  INFO     Closed successfully

root@test:~# nslookup www.google.com
Server:         8.8.8.8
Address:        8.8.8.8#53

Non-authoritative answer:
Name:   www.google.com
Address: 216.58.207.196
Name:   www.google.com
Address: 2a00:1450:400f:809::2004

root@test:~# ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.063 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.079 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.076 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.080 ms






Quote from: Oblivian on May 27, 2020, 09:19:41 AM
adsb4fun - looks like in some you are using the wrong commandlines

First one you are telling it to send your data to google.. :) (did you copy an example perhaps)

and the latter it is unable to resolve using the word 'localhost'. This has been an issue on trimmed OS as sometimes missed from /etc/hosts

You would be best to use --inConnect 127.0.0.1:30005 and nothing else and see if at least it can get to the local 30005 port rather than resolve 'localhost'

Then work out what the internal test it uses has been left off that distro.
It may be dnsutils/nslookup

I expect being diet, it is possibly missing stuff, or being blocked by Pihole which appears to come preloaded.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on June 07, 2020, 10:27:02 AM
Hello,
Quote from: adsb4fun on June 07, 2020, 08:45:44 AM
Its the "service not found". Which service?

Looks like a DNS issue. Might be due to PiHole service being stopped.
Whats the DNS server setting in dietpi-config > Networking Options > Ethernet?

Due to dietpi-services stopping pihole service prior to download.
May be the solution:
Check and enable pihole service during update.

Next check domain name resolution for local applications - it is handled by the service systemd-resolved
root@test:~# systemctl start systemd-resolved
root@test:~# systemctl enable systemd-resolved

Next - /etc/hostname and /etc/hosts is already updated when changing the host name via dietpi-config.
Please assure that entries in /etc/hostname and /etc/hosts match (and as well not all kind of characters are allowed).

E.g. example for test machine:
root@test:~# cat /etc/hostname
test

root@test:~# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 test


However for some reason to be fail-safe, /etc/hosts should look like this:
127.0.0.1 localhost
127.0.1.1 <hostname>
with matching /etc/hostname.

The 127.0.0.1 should be associated with localhost and optionally localhost.localdomain only.
The FQDN (fully qualified domain name)/host name otherwise should be associated with either a static external IP that points to this host directly or (AFAIK in all NAT situations) 127.0.1.1. Otherwise asking the system for the FQDN (e.g. hostname -f) would show the local domain instead of the wanted (external) FQDN.
If you indeed have a static external IP, then replace 127.0.1.1 with it.
127.0.0.1 localhost
127.0.1.1 <your_FQDN_hostname>

If this was not available on your LAN except via the static ip. To make it accessible internally have to add the line (example for network 192.168.x.x):
192.168.x.x <your_FQDN_hostname>

Best regards,
sergsero


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on June 08, 2020, 02:54:03 AM
A Little Enhancement to Automated install Script for ModeSMixer2

At the very start of installtion, the script creates a folder /usr/share/mm2
Next things script does are:
- downloads the .tgz file from Google Drive
- extracts binary modesmixer2
- creates config and startup script files.

The script stores all above files in the folder /usr/share/mm2
The purpose was for user to find all files at one place.

However it has the disadvantage that if someone wanted to run commands "modesmixer2 -h" or "modesmixer2 --inConnect 127.0.0.1:30005" from home folder, he would get responce "file not found". The person had to add full path to binary "/usr/share/mm2/modesmixer2 -h" or "/usr/share/mm2/modesmixer2 --inConnect 127.0.0.1:30005".

To overcome this shortcoming, in installation script I have added command to create a symlink to modesmixer2 binary in folder /usr/bin. In installs done from now on, commands issued from home folder will not require full path to the modesmixer2 binary.

For existing installs, users can add this symlink by manually issuing this command:

sudo ln -s /usr/share/mm2/modesmixer2 /usr/bin/modesmixer2



Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: adsb4fun on June 08, 2020, 10:29:42 AM
Hi!

Thanks for responding!

This is really a bare minimum installation. No added software at all from the dietpi repository. Only change is default Dropbear that has been replaced by OpenSSH.

So no Pihole.

These are all services running (except stopped adsb-related software)

root       102  0.0  0.6  37600  6660 ?        Ss   May27   0:20 /lib/systemd/systemd-journald
root       148  0.0  0.3  17624  3752 ?        Ss   May27   0:02 /lib/systemd/systemd-udevd
message+   231  0.0  0.2   6556  2936 ?        Ss   May27   0:02 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root       241  0.0  0.5  12908  5520 ?        Ss   May27   0:04 /lib/systemd/systemd-logind
root       247  0.0  0.0  27656    80 ?        SLsl May27   0:42 /usr/sbin/rngd -r /dev/hwrng
root       467  0.0  0.4   7912  4904 ?        Ss   May27   0:00 /sbin/dhclient -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
root       603  0.0  0.1   6616  1864 ttyS0    Ss+  May27   0:00 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyS0 vt220
root       898  0.0  0.1   4308  1240 tty1     Ss+  May27   0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
root       901  0.0  0.5  10724  5684 ?        Ss   May27   0:00 /usr/sbin/sshd -D
root       937  0.0  0.2   7948  2328 ?        Ss   May27   0:02 /usr/sbin/cron -f
root     24522  0.0  0.4  12284  4988 ?        Rs   Jun07   0:01 /usr/bin/ssh -o StrictHostKeyChecking=yes -o ExitOnForwardFailure yes -NT -R 9999:localhost:22 secure@tunnel.xxx.xxx

Started per your recommendation, no change, same problem.
systemd+ 27006  0.0  0.6  19164  6536 ?        Ss   10:56   0:00 /lib/systemd/systemd-resolved

/etc/hostname
root@test:~# more /etc/hostname
test

/etc/hosts
root@test:~# more /etc/hosts
127.0.0.1 localhost
127.0.1.1 test

No static IP

If i run tcpdump, doing a regular ping to www.google.com, works. Starting modesmixer, no packets.

root@test:~# tcpdump -nn -i eth0 -u port 53
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
11:21:03.057883 IP 192.168.1.228.45735 > 8.8.8.8.53: 37918+ A? www.google.com. (32)
11:21:03.084276 IP 8.8.8.8.53 > 192.168.1.228.45735: 37918 1/0/0 A 172.217.22.164 (48)
11:21:03.113808 IP 192.168.1.228.60363 > 8.8.8.8.53: 16195+ PTR? 164.22.217.172.in-addr.arpa. (45)
11:21:03.144789 IP 8.8.8.8.53 > 192.168.1.228.60363: 16195 2/0/0 PTR arn09s11-in-f4.1e100.net., PTR arn09s11-in-f164.1e100.net. (114)

As described before (se previous posts for examples), no other binary has problems doing lookups. Dump1090/Readsb, mlat-client, ping, nslookup, apt, curl, ntp etc, all work.

(I have been running ModeSMixer2 together with dump1090 and mlat-client on Dietpi since 2015. A few iterations and releases of dietpi (and Debian) since then, on multiple devices.)

Grateful that you take your time looking into this!



Quote from: sergsero on June 07, 2020, 10:27:02 AM
Hello,
Quote from: adsb4fun on June 07, 2020, 08:45:44 AM
Its the "service not found". Which service?

Looks like a DNS issue. Might be due to PiHole service being stopped.
Whats the DNS server setting in dietpi-config > Networking Options > Ethernet?

Due to dietpi-services stopping pihole service prior to download.
May be the solution:
Check and enable pihole service during update.

Next check domain name resolution for local applications - it is handled by the service systemd-resolved
root@test:~# systemctl start systemd-resolved
root@test:~# systemctl enable systemd-resolved

Next - /etc/hostname and /etc/hosts is already updated when changing the host name via dietpi-config.
Please assure that entries in /etc/hostname and /etc/hosts match (and as well not all kind of characters are allowed).

E.g. example for test machine:
root@test:~# cat /etc/hostname
test

root@test:~# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 test


However for some reason to be fail-safe, /etc/hosts should look like this:
127.0.0.1 localhost
127.0.1.1 <hostname>
with matching /etc/hostname.

The 127.0.0.1 should be associated with localhost and optionally localhost.localdomain only.
The FQDN (fully qualified domain name)/host name otherwise should be associated with either a static external IP that points to this host directly or (AFAIK in all NAT situations) 127.0.1.1. Otherwise asking the system for the FQDN (e.g. hostname -f) would show the local domain instead of the wanted (external) FQDN.
If you indeed have a static external IP, then replace 127.0.1.1 with it.
127.0.0.1 localhost
127.0.1.1 <your_FQDN_hostname>

If this was not available on your LAN except via the static ip. To make it accessible internally have to add the line (example for network 192.168.x.x):
192.168.x.x <your_FQDN_hostname>

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on June 22, 2020, 12:34:07 AM
Manual method of installing MULTIPLE instances of ModeSMixer2 on a RPi using systemd.

In this tutorial, I will create 3 instances (copies). This method can be expanded to any number of instances (copies) required.


(1) Create a folder "modesmixer" to store all files

sudo mkdir /usr/share/modesmixer 


(2) Download ModeSMixer2 file from Google Drive 

sudo wget -O /usr/share/modesmixer/modesmixer2_rpi2-3_deb9_20190223.tgz "https://drive.google.com/uc?export=download&id=18DjTxitzZj9RsVPxt7lmnptfL5eZqHxJ"   


(3) Unzip downloaded file 

sudo tar xvzf /usr/share/modesmixer/modesmixer2_rpi2-3_deb9_20190223.tgz -C /usr/share/modesmixer   


(4) Create a symbolic link to the modesmixer2 binary in the folder "/usr/bin/"

sudo ln -s /usr/share/modesmixer/modesmixer2 /usr/bin/modesmixer2 



(5) Startup script file
(5.1) Create a blank startup script file "startup-mm2.sh"

sudo nano /usr/share/modesmixer/startup-mm2.sh   


(5.2) Copy-paste the following code into the startup file "startup-mm2.sh", then save the file

#!/bin/sh
CONFIG=""
while read -r line; do CONFIG="${CONFIG} $line"; done < /usr/share/modesmixer/$1.conf
/usr/share/modesmixer/modesmixer2 ${CONFIG}



(5.3) Make "startup-mm2.sh" file executable

sudo chmod +x /usr/share/modesmixer/startup-mm2.sh 


(6) Systemd Service file

(6.1) Create the service file "mm2@.service"

sudo nano /lib/systemd/system/mm2@.service 


(6.2) Copy-paste the following code into the service file, then save the file "mm2@.service"


[Unit]
Description=modesmixer2 copy %i
Wants=network.target
After=network.target
[Service]
RuntimeDirectory=%i
RuntimeDirectoryMode=0755
ExecStart=/bin/bash /usr/share/modesmixer/startup-mm2.sh %i
SyslogIdentifier=%i
Type=simple
Restart=on-failure
RestartSec=30
RestartPreventExitStatus=64
Nice=-5
[Install]
WantedBy=default.target




(7) Individual configuration files for all the instances

(7.1) Create configuration file "01.conf" for 1st instance of modesmixer2

sudo nano /usr/share/modesmixer/01.conf 


Copy-paste the following code into the configuration file "01.conf ", then save the file

--inConnectId 127.0.0.1:30005:ADSB
--inConnectId 127.0.0.1:30105:MLAT
--web 8181



(7.2) Create configuration file "02.conf" for 2nd instance of modesmixer2

sudo nano /usr/share/modesmixer/02.conf 


Copy-paste the following code into the configuration file "02.conf ", then save the file

--inConnectId 127.0.0.1:30005:ADSB
--inConnectId 127.0.0.1:30105:MLAT
--web 8282



(7.3) Create configuration file "03.conf" for 3rd instance of modesmixer2

sudo nano /usr/share/modesmixer/03.conf   


Copy-paste the following code into the configuration file "03.conf ", then save the file

--inConnectId 127.0.0.1:30005:ADSB
--inConnectId 127.0.0.1:30105:MLAT
--web 8383



( 8 ) Enable systemd service, and start all instances

(8.1) Instance 1

sudo systemctl enable mm2@01 
sudo systemctl start mm2@01 
sudo systemctl status mm2@01 


(8.2) Insrance 2

sudo systemctl enable mm2@02 
sudo systemctl start mm2@02   
sudo systemctl status mm2@02 


(8.3) Instance 3

sudo systemctl enable mm2@03 
sudo systemctl start mm2@03   
sudo systemctl status mm2@03 


(9) Check web interfaces in your browser:
- Instance 01 at:  IP-of-Pi:8181
- Instance 02 at:  IP-of-Pi:8282
- Instance 03 at:  IP-of-Pi:8383

(10) To create additional Instances:

(a) Create additional config files 04.conf, 05.conf, etc as in step (7).

(b) Enable systemd service mm2@04, mm2@05, etc as in step( 8 ).

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: adsb4fun on July 10, 2020, 08:39:34 PM
*BUMP* Any ideas around this?

(The problem is easy to re-create by installing a plain dietpi-box and try to run the latest ModesMixer binary)

Quote from: adsb4fun on June 08, 2020, 10:29:42 AM
Hi!

Thanks for responding!

This is really a bare minimum installation. No added software at all from the dietpi repository. Only change is default Dropbear that has been replaced by OpenSSH.

So no Pihole.

These are all services running (except stopped adsb-related software)

root       102  0.0  0.6  37600  6660 ?        Ss   May27   0:20 /lib/systemd/systemd-journald
root       148  0.0  0.3  17624  3752 ?        Ss   May27   0:02 /lib/systemd/systemd-udevd
message+   231  0.0  0.2   6556  2936 ?        Ss   May27   0:02 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root       241  0.0  0.5  12908  5520 ?        Ss   May27   0:04 /lib/systemd/systemd-logind
root       247  0.0  0.0  27656    80 ?        SLsl May27   0:42 /usr/sbin/rngd -r /dev/hwrng
root       467  0.0  0.4   7912  4904 ?        Ss   May27   0:00 /sbin/dhclient -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
root       603  0.0  0.1   6616  1864 ttyS0    Ss+  May27   0:00 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyS0 vt220
root       898  0.0  0.1   4308  1240 tty1     Ss+  May27   0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
root       901  0.0  0.5  10724  5684 ?        Ss   May27   0:00 /usr/sbin/sshd -D
root       937  0.0  0.2   7948  2328 ?        Ss   May27   0:02 /usr/sbin/cron -f
root     24522  0.0  0.4  12284  4988 ?        Rs   Jun07   0:01 /usr/bin/ssh -o StrictHostKeyChecking=yes -o ExitOnForwardFailure yes -NT -R 9999:localhost:22 secure@tunnel.xxx.xxx

Started per your recommendation, no change, same problem.
systemd+ 27006  0.0  0.6  19164  6536 ?        Ss   10:56   0:00 /lib/systemd/systemd-resolved

/etc/hostname
root@test:~# more /etc/hostname
test

/etc/hosts
root@test:~# more /etc/hosts
127.0.0.1 localhost
127.0.1.1 test

No static IP

If i run tcpdump, doing a regular ping to www.google.com, works. Starting modesmixer, no packets.

root@test:~# tcpdump -nn -i eth0 -u port 53
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
11:21:03.057883 IP 192.168.1.228.45735 > 8.8.8.8.53: 37918+ A? www.google.com. (32)
11:21:03.084276 IP 8.8.8.8.53 > 192.168.1.228.45735: 37918 1/0/0 A 172.217.22.164 (48)
11:21:03.113808 IP 192.168.1.228.60363 > 8.8.8.8.53: 16195+ PTR? 164.22.217.172.in-addr.arpa. (45)
11:21:03.144789 IP 8.8.8.8.53 > 192.168.1.228.60363: 16195 2/0/0 PTR arn09s11-in-f4.1e100.net., PTR arn09s11-in-f164.1e100.net. (114)

As described before (se previous posts for examples), no other binary has problems doing lookups. Dump1090/Readsb, mlat-client, ping, nslookup, apt, curl, ntp etc, all work.

(I have been running ModeSMixer2 together with dump1090 and mlat-client on Dietpi since 2015. A few iterations and releases of dietpi (and Debian) since then, on multiple devices.)

Grateful that you take your time looking into this!



Quote from: sergsero on June 07, 2020, 10:27:02 AM
Hello,
Quote from: adsb4fun on June 07, 2020, 08:45:44 AM
Its the "service not found". Which service?

Looks like a DNS issue. Might be due to PiHole service being stopped.
Whats the DNS server setting in dietpi-config > Networking Options > Ethernet?

Due to dietpi-services stopping pihole service prior to download.
May be the solution:
Check and enable pihole service during update.

Next check domain name resolution for local applications - it is handled by the service systemd-resolved
root@test:~# systemctl start systemd-resolved
root@test:~# systemctl enable systemd-resolved

Next - /etc/hostname and /etc/hosts is already updated when changing the host name via dietpi-config.
Please assure that entries in /etc/hostname and /etc/hosts match (and as well not all kind of characters are allowed).

E.g. example for test machine:
root@test:~# cat /etc/hostname
test

root@test:~# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 test


However for some reason to be fail-safe, /etc/hosts should look like this:
127.0.0.1 localhost
127.0.1.1 <hostname>
with matching /etc/hostname.

The 127.0.0.1 should be associated with localhost and optionally localhost.localdomain only.
The FQDN (fully qualified domain name)/host name otherwise should be associated with either a static external IP that points to this host directly or (AFAIK in all NAT situations) 127.0.1.1. Otherwise asking the system for the FQDN (e.g. hostname -f) would show the local domain instead of the wanted (external) FQDN.
If you indeed have a static external IP, then replace 127.0.1.1 with it.
127.0.0.1 localhost
127.0.1.1 <your_FQDN_hostname>

If this was not available on your LAN except via the static ip. To make it accessible internally have to add the line (example for network 192.168.x.x):
192.168.x.x <your_FQDN_hostname>

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: mikkyo on July 19, 2020, 03:05:58 AM
Any idea how to get a BaseStation.sqb and FlightRoutes.sqb to work with mm2?
I tried copying the ones from by VRS install, but it doesn't like them...
Seems like it doesn't like the schema.

Added to the mm2.conf

--db /home/pi/BaseStation.sqb
--frdb /home/pi/FlightRoutes.sqb

ERROR    sqlite3_prepare_v2() SELECT LocationID FROM Locations ORDER BY LocationID DESC LIMIT 1; no such table: Locations
terminate called after throwing an instance of 'BaseStationDbException'
what():  sqlite3_prepare_v2() SELECT LocationID FROM Locations ORDER BY LocationID DESC LIMIT 1; no such table: Locations
/usr/share/mm2/mm2.sh: line 4:  2718 Aborted                 /usr/share/mm2/modesmixer2 ${CONFIG}


and removing the --db line and just leaving the --frdb
ERROR    sqlite3_prepare_v2() SELECT route FROM FlightRoute WHERE flight = ? ORDER BY updatetime DESC LIMIT 1; no such
ERROR    sqlite3_step() no such table: FlightRoute 1


I thought if maybe if I gave it an empty file, it would set up the db, but no such luck.
Anyone done a empty schema dump ever?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on July 19, 2020, 05:09:07 AM
Hello,

Your error message, "no such table", probably is telling that the table doesn't exist in the database. This can happen if during any time you created the database but failed to create the tables. And if that ever happened sqlite3_open will, if it doesn't find the database, will create a blank database (with, obviously, no event table). And subsequent attempts to run MM2 will find this blank database and incorrectly conclude that it doesn't exist.

MM2 uses a standard database whose structure is identical by 'Kinetic Avionics'. However, the database file itself must already have been created by third-party tools. MM2 is able to work with the database in two modes: read and write, and read-only.

You can take a ready-made existing database file basestation.sqb by downloading it from some resources on the Internet. Or create it again using the VRS plugin.

Make sure that the DatabaseWriterPlugin plugin is installed in your VRS instance.
1. Run Virtual Radar Server and click <Tools>|<Plugins>. You will be shown a list of all installed plugins.
2. Find the <Database Writer> and click the <Options> button to bring up the configuration screen.
3. In <Database filename> enter the full path and filename of the NEW (doesn't exist yet) database file here.
4. Click the button <Create Database> will create an empty SQLite database file using the name and folder from <Database filename>.

Attention!
Only click this button if you have actually changed and entered a different full path and file name that does not yet have a database and that differs from the ones where you use your main (existing) database file.

VRS will create a new database file with the necessary structure, which you can use in MM2.

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: hdphilip on July 23, 2020, 04:56:00 AM
Hi,
on the ModeSmixer2 console, is it possible to change the map icons to resemble the type of aircraft? currently all of my icons look like 747's.

thanks,
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: adsb4fun on July 26, 2020, 08:55:35 PM
Problem solved. Installed package "netbase" which seems to be required for name lookups by ModesMixer.

Quote from: adsb4fun on July 10, 2020, 08:39:34 PM
*BUMP* Any ideas around this?

(The problem is easy to re-create by installing a plain dietpi-box and try to run the latest ModesMixer binary)

Quote from: adsb4fun on June 08, 2020, 10:29:42 AM
Hi!

Thanks for responding!

This is really a bare minimum installation. No added software at all from the dietpi repository. Only change is default Dropbear that has been replaced by OpenSSH.

So no Pihole.

These are all services running (except stopped adsb-related software)

root       102  0.0  0.6  37600  6660 ?        Ss   May27   0:20 /lib/systemd/systemd-journald
root       148  0.0  0.3  17624  3752 ?        Ss   May27   0:02 /lib/systemd/systemd-udevd
message+   231  0.0  0.2   6556  2936 ?        Ss   May27   0:02 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root       241  0.0  0.5  12908  5520 ?        Ss   May27   0:04 /lib/systemd/systemd-logind
root       247  0.0  0.0  27656    80 ?        SLsl May27   0:42 /usr/sbin/rngd -r /dev/hwrng
root       467  0.0  0.4   7912  4904 ?        Ss   May27   0:00 /sbin/dhclient -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
root       603  0.0  0.1   6616  1864 ttyS0    Ss+  May27   0:00 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyS0 vt220
root       898  0.0  0.1   4308  1240 tty1     Ss+  May27   0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
root       901  0.0  0.5  10724  5684 ?        Ss   May27   0:00 /usr/sbin/sshd -D
root       937  0.0  0.2   7948  2328 ?        Ss   May27   0:02 /usr/sbin/cron -f
root     24522  0.0  0.4  12284  4988 ?        Rs   Jun07   0:01 /usr/bin/ssh -o StrictHostKeyChecking=yes -o ExitOnForwardFailure yes -NT -R 9999:localhost:22 secure@tunnel.xxx.xxx

Started per your recommendation, no change, same problem.
systemd+ 27006  0.0  0.6  19164  6536 ?        Ss   10:56   0:00 /lib/systemd/systemd-resolved

/etc/hostname
root@test:~# more /etc/hostname
test

/etc/hosts
root@test:~# more /etc/hosts
127.0.0.1 localhost
127.0.1.1 test

No static IP

If i run tcpdump, doing a regular ping to www.google.com, works. Starting modesmixer, no packets.

root@test:~# tcpdump -nn -i eth0 -u port 53
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
11:21:03.057883 IP 192.168.1.228.45735 > 8.8.8.8.53: 37918+ A? www.google.com. (32)
11:21:03.084276 IP 8.8.8.8.53 > 192.168.1.228.45735: 37918 1/0/0 A 172.217.22.164 (48)
11:21:03.113808 IP 192.168.1.228.60363 > 8.8.8.8.53: 16195+ PTR? 164.22.217.172.in-addr.arpa. (45)
11:21:03.144789 IP 8.8.8.8.53 > 192.168.1.228.60363: 16195 2/0/0 PTR arn09s11-in-f4.1e100.net., PTR arn09s11-in-f164.1e100.net. (114)

As described before (se previous posts for examples), no other binary has problems doing lookups. Dump1090/Readsb, mlat-client, ping, nslookup, apt, curl, ntp etc, all work.

(I have been running ModeSMixer2 together with dump1090 and mlat-client on Dietpi since 2015. A few iterations and releases of dietpi (and Debian) since then, on multiple devices.)

Grateful that you take your time looking into this!



Quote from: sergsero on June 07, 2020, 10:27:02 AM
Hello,
Quote from: adsb4fun on June 07, 2020, 08:45:44 AM
Its the "service not found". Which service?

Looks like a DNS issue. Might be due to PiHole service being stopped.
Whats the DNS server setting in dietpi-config > Networking Options > Ethernet?

Due to dietpi-services stopping pihole service prior to download.
May be the solution:
Check and enable pihole service during update.

Next check domain name resolution for local applications - it is handled by the service systemd-resolved
root@test:~# systemctl start systemd-resolved
root@test:~# systemctl enable systemd-resolved

Next - /etc/hostname and /etc/hosts is already updated when changing the host name via dietpi-config.
Please assure that entries in /etc/hostname and /etc/hosts match (and as well not all kind of characters are allowed).

E.g. example for test machine:
root@test:~# cat /etc/hostname
test

root@test:~# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 test


However for some reason to be fail-safe, /etc/hosts should look like this:
127.0.0.1 localhost
127.0.1.1 <hostname>
with matching /etc/hostname.

The 127.0.0.1 should be associated with localhost and optionally localhost.localdomain only.
The FQDN (fully qualified domain name)/host name otherwise should be associated with either a static external IP that points to this host directly or (AFAIK in all NAT situations) 127.0.1.1. Otherwise asking the system for the FQDN (e.g. hostname -f) would show the local domain instead of the wanted (external) FQDN.
If you indeed have a static external IP, then replace 127.0.1.1 with it.
127.0.0.1 localhost
127.0.1.1 <your_FQDN_hostname>

If this was not available on your LAN except via the static ip. To make it accessible internally have to add the line (example for network 192.168.x.x):
192.168.x.x <your_FQDN_hostname>

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oblivian on July 27, 2020, 07:54:50 AM
It appears it's not the first time DietPi lacking it has struck

https://forum.radarbox24.com/index.php?topic=101981.msg400661#msg400661

abcd567 to the rescue back then too.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: adsb4fun on July 27, 2020, 12:04:17 PM
Yepp. Not sure what is lacking though. All other software (readsb, mlat-client, ping, ntp, apt, curl etc.) had no problem with name lookups, only Modesmixer.

For me, this is somewhat to expect when going "of path" running something called DIETpi and being stripped down to bare minimal. Not blaming any part here.

Quote from: Oblivian on July 27, 2020, 07:54:50 AM
It appears it's not the first time DietPi lacking it has struck

https://forum.radarbox24.com/index.php?topic=101981.msg400661#msg400661

abcd567 to the rescue back then too.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: airvb on August 07, 2020, 03:58:59 PM
Hello all
modesmixerversion : modesmixer2_Ubuntu_18.04_x86_64_20190223

Today i update my own ubuntu server to 20.04.1.

modesmixer2  doesn't want to restart

The snag is the same as few month away
/modesmixer2: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

modesmixer2$  ldd modesmixer2
linux-vdso.so.1 (0x00007ffeee181000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fb92a2cc000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fb92a2c1000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb92a2bb000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb92a0da000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb929f8b000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb929f70000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb929d7c000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb92a8a9000)


   libssl.so.1.0.0 => not found
   libcrypto.so.1.0.0 => not found

sudo apt install libssl1.0.0 libssl-dev
[sudo] password for airvb:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libssl1.0.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssl1.0.0' has no installation candidate



Any idea ????

Thanks
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 08, 2020, 06:36:25 AM
Hello,

Please use this version of modesmixer2 if your operating system is Ubuntu 20.04 64 bit: https://drive.google.com/file/d/1BH7zPxzk7qTMhhGOD6KPHMnM7qRf4_Dc/view?usp=sharing (https://drive.google.com/file/d/1BH7zPxzk7qTMhhGOD6KPHMnM7qRf4_Dc/view?usp=sharing)

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: airvb on August 08, 2020, 07:58:04 AM
Super Sergio, work like a charm

Thanks again for all .

PS : Is it expecting to use OpenStreetMap ?

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 09, 2020, 04:09:55 AM
Quote from: sergsero on August 08, 2020, 06:36:25 AM
Hello,

Please use this version of modesmixer2 if your operating system is Ubuntu 20.04 64 bit: https://drive.google.com/file/d/1BH7zPxzk7qTMhhGOD6KPHMnM7qRf4_Dc/view?usp=sharing (https://drive.google.com/file/d/1BH7zPxzk7qTMhhGOD6KPHMnM7qRf4_Dc/view?usp=sharing)

Best regards,
sergsero

Thank you Sergsero!


abcd@ubuntu20-vm:~$ wget -O modesmixer2_ubuntu_20.04_x86_64_20200714.tgz "https://drive.google.com/uc?export=download&id=1BH7zPxzk7qTMhhGOD6KPHMnM7qRf4_Dc"

abcd@ubuntu20-vm:~$ sudo tar xvzf modesmixer2_ubuntu_20.04_x86_64_20200714.tgz   


abcd@ubuntu20-vm:~$ ./modesmixer2 --inConnect localhost:30005 --location 43.5:-79.6 --web 8787   
2020-08-08 23:05:59.452  INFO     ModeSMixer2 v.20200714
2020-08-08 23:05:59.452  INFO     The Magnetic Declination was calculated
2020-08-08 23:05:59.454  INFO     inConnect(localhost:30005) connecting 127.0.0.1:30005
2020-08-08 23:05:59.455  INFO     inConnect(localhost:30005) connected
2020-08-08 23:05:59.993  INFO     inConnect(localhost:30005) BEAST data stream detected
2020-08-08 23:06:19.239  INFO     The Coverage Area was determined
2020-08-08 23:06:19.239  INFO     The Magnetic Declination was calculated


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 09, 2020, 04:49:34 AM
Automated Installation of ModeSMixer2 On Ubuntu 20.04 amd64 & Kali Linux 2020.2 amd64

(modesmixer2 is installed with Systemd Controls)


Uses following Linux binary for both the above noted distros (Ubuntu20 & Kali2020)

modesmixer2_ubuntu_20.04_x86_64_20200714.tgz

copy-paste following bash script and press the Enter key.


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




After script finishes, it displays following message

=======================
INSTALLATION COMPLETED
=======================
PLEASE DO FOLLOWING:

(1) If installed on RPi, in your browser, go to web interface at http://ip-of-pi:8787.
(2) If installed on Ubuntu20, in browser of Ubuntu go to web interface at http://localhost:8787 or http://127.0.0.1:8787


(3) Open file mm2.sh for editing by following command:

sudo nano /usr/share/mm2/mm2.conf

Add following line:

--location xx.xxxx:yy.yyyy

(Replace xx.xxxx and yy.yyyy by your
actual latitude and longitude)
After entering location, Save (Ctrl+o) and Close (Ctrl+x) file md2.conf
then restart mm2 by following command:

sudo systemctl restart mm2



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 a decoder like dump1090-mutability or dump1090-fa running on the Computer on which ModeSmixer has been installed.
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


To see all config parameters

modesmixer2 --help

UNINSTALL

To completely remove configuration and all files, give following 4 commands:

sudo systemctl stop mm2
sudo systemctl disable mm2
sudo rm /lib/systemd/system/mm2.service
sudo rm -rf /usr/share/mm2
sudo rm /usr/bin/modesmixer2

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on August 16, 2020, 11:51:48 PM
sergsero

Any chance of a Debian Buster version of ModeSMixer2?

That is my preferred distro: Ubuntu has too many extras.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 17, 2020, 11:50:21 AM
Hello IanH,

I will see what differences there are in the library versions and try to compile it for debian quickly.

/sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 17, 2020, 04:49:37 PM
I have Debian 10.5 (Buster) amd64.
As mm2 binary is not available for it, I tried to use Ubuntu18 binary "modesmixer2_Ubuntu_18.04_x86_64_20190223.tgz"
Failed due to missing "libssl.so.1.0.0"

$ INSTALL_FOLDER=/usr/share/mm2 
$ sudo mkdir ${INSTALL_FOLDER}
$ sudo wget -O ${INSTALL_FOLDER}/modesmixer2_Ubuntu_18.04_x86_64_20190223.tgz "https://drive.google.com/uc?export=download&id=1QzUqYTt-Bf-m817-i3W_RvodB019kxC5" 
$ sudo tar xvzf ${INSTALL_FOLDER}/modesmixer2_Ubuntu_18.04_x86_64_20190223.tgz -C ${INSTALL_FOLDER}
$ sudo ln -s ${INSTALL_FOLDER}/modesmixer2 /usr/bin/modesmixer2 

$ modesmixer2 --inConnect 127.0.0.1:30005 --web 8787 --location 43.5:-79.6
modesmixer2: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory




Debian package search showed "libssl1.0.0" is NOT available in Debian Buster and Stretch resources, but is available in Debian Jessie resources.
Downloaded Jessie version and tried to install, but failed:

$ sudo wget -O ${INSTALL_FOLDER}/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb "http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb" 

$ sudo dpkg -i ${INSTALL_FOLDER}/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb 

Selecting previously unselected package libssl1.0.0:amd64.
dpkg: regarding .../libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb containing libssl1.0.0:amd64, pre-dependency problem:
libssl1.0.0 pre-depends on multiarch-support
  multiarch-support is not installed.

dpkg: error processing archive /usr/share/mm2/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb (--install):
pre-dependency problem - not installing libssl1.0.0:amd64
Errors were encountered while processing:
/usr/share/mm2/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb





Installed package "multiarch-support" and could install the libssl1.0.0 from Jessie resources.

$ sudo apt install multiarch-support 

$ sudo dpkg -i ${INSTALL_FOLDER}/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb 




Now tested, Bingo! it is working

$ modesmixer2 --inConnect 127.0.0.1:30005 --web 8787 --location 43.5:-79.6 

2020-08-17 11:57:13.890  INFO     ModeSMixer2 v.20190216
2020-08-17 11:57:13.890  INFO     Magnetic declination calculated
2020-08-17 11:57:13.893  INFO     inConnect(127.0.0.1:30005) connecting 127.0.0.1:30005
2020-08-17 11:57:13.893  INFO     inConnect(127.0.0.1:30005) connected
2020-08-17 11:57:14.430  INFO     inConnect(127.0.0.1:30005) BEAST data stream detected
2020-08-17 11:57:26.697  INFO     Coverage area was determined
2020-08-17 11:57:26.697  INFO     Magnetic declination calculated

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 22, 2020, 04:26:43 AM
Hello,

Intel x86-64 CPU

$ cat /etc/debian_version
10.5
The Debian 10 Buster 64 bit version of modesmixer2: https://drive.google.com/file/d/1gKtk2rP_IgOK53ZJQX2MAERCkoqvbAD6/view?usp=sharing (https://drive.google.com/file/d/1gKtk2rP_IgOK53ZJQX2MAERCkoqvbAD6/view?usp=sharing)


$ cat /etc/centos-release
CentOS Linux release 8.2.2004 (Core)
The CentOS 8 64 bit version of modesmixer2: https://drive.google.com/file/d/1ghZkpFjAIOWU84JZRgaZckkDIjIkKTyb/view?usp=sharing (https://drive.google.com/file/d/1ghZkpFjAIOWU84JZRgaZckkDIjIkKTyb/view?usp=sharing)

% freebsd-version
12.1-RELEASE-p8
The FreeBSD 12 64 bit version of modesmixer2: https://drive.google.com/file/d/132F8njLcEFgacAOIa-w7taPZXiMgGjGW/view?usp=sharing

Best regards,
sergsero
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 22, 2020, 08:42:33 PM
Thank you Sergsero for latest binaries.

On my Debian 10.5:
(1) Directly downloaded the .tgz file from Google Drive by following command:


$ sudo wget -O modesmixer2_debian_10_x86_64_20200714.tgz "https://drive.google.com/uc?export=download&id=1gKtk2rP_IgOK53ZJQX2MAERCkoqvbAD6"   



(2) Uncompressed downloaded .tgz file by following command:

$ sudo tar xvzf modesmixer2_debian_10_x86_64_20200714.tgz 




(3) Tested:

$ ./modesmixer2 --inConnect 127.0.0.1:30005 --web 8787 --location 43.5:-79.6
2020-08-22 15:39:49.670  INFO     ModeSMixer2 v.20200714
2020-08-22 15:39:49.670  INFO     The Magnetic Declination was calculated
2020-08-22 15:39:49.670  INFO     no distances.json provided
2020-08-22 15:39:49.670  ERROR    unable to dump polar distances to file
2020-08-22 15:39:49.671  INFO     inConnect(127.0.0.1:30005) connecting 127.0.0.1:30005
2020-08-22 15:39:49.671  INFO     inConnect(127.0.0.1:30005) connected
2020-08-22 15:39:50.268  INFO     inConnect(127.0.0.1:30005) BEAST data stream detected
2020-08-22 15:40:10.548  INFO     The Coverage Area was determined
2020-08-22 15:40:10.548  INFO     The Magnetic Declination was calculated
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 22, 2020, 09:55:30 PM
Automated Installation of ModeSMixer2 on Debian 10.5 (x86_64):

Copy-paste following single-line command in terminal and press Enter key. The script will do everything for you, and when installation is completed, will give brief guide.
(The single-line command is very long. Scroll right to see & copy it in full.)

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


To see status:  sudo systemctl status mm2
To restart:  sudo systemctl restart mm2 
To stop:  sudo systemctl stop mm2

To edit Config file:  sudo nano /usr/share/mm2/mm2.conf 
After editing & saving config file, restart modesmixer2:  sudo systemctl restart mm2

Default contents of config file:

--inConnectId 127.0.0.1:30005:ADSB
--inConnectId 127.0.0.1:30105:MLAT
--web 8787

You can add parameters such as --location, --outConnect, etc, one parameter per line

Folder containing all files:  /usr/share/mm2
Help:  modesmixer2 --help


For detailed instructions visit this web page:
https://github.com/abcd567a/mm2/blob/master/README.md (https://github.com/abcd567a/mm2/blob/master/README.md)


.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: w4lron on August 31, 2020, 12:25:20 AM
Hi All

I'm using RPi3 + Kinetic Puck 1090.My settings are as follows

--inSerial /dev/ttyUSB1:3000000:none
--outServer beast:30005
--add-points 38.44:27.01
--location 38.44:27.01
--web 8787

but I have been getting a connection error for 2 days...

2020-08-31 00:08:39.056  ERROR    inSerial(/dev/ttyUSB1:3000000) error open No such file or directory
2020-08-31 00:08:39.056  INFO     inSerial(/dev/ttyUSB1:3000000) Reconnect in 10 seconds
2020-08-31 00:08:49.057  ERROR    inSerial(/dev/ttyUSB1:3000000) error open No such file or directory
2020-08-31 00:08:49.057  INFO     inSerial(/dev/ttyUSB1:3000000) Reconnect in 10 seconds
2020-08-31 00:08:59.057  ERROR    inSerial(/dev/ttyUSB1:3000000) error open No such file or directory
2020-08-31 00:08:59.057  INFO     inSerial(/dev/ttyUSB1:3000000) Reconnect in 10 seconds

I can't find the reason. Can you help me?


Before;
there was no problem  :(
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: sergsero on August 31, 2020, 08:55:59 AM
Sorry, yes, it is my fault that the processor architecture is not explicitly specified. All these builds above are made for Intel x86-64 architecture.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on September 14, 2020, 11:26:50 PM
sergsero

Thank you for the Debian 10 version. As abcd567 says Ubunti version does not run (despite trying to symlink libraries) so I have been using the 2015  ::) Debian version of MM2
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on September 15, 2020, 06:36:15 AM
Ian H

I have successfully installed following latest version without need for any workaround for libraries:

On Ubuntu 20 amd64 & Kali Linux 2020 amd64
modesmixer2_ubuntu_20.04_x86_64_20200714.tgz

On Debian 10.5 amd64
modesmixer2_debian_10_x86_64_20200714.tgz


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: radioman1511 on September 26, 2020, 05:08:27 PM
Hi greetings Why can´t see no registration code. I use dump1090-fa and Debian10.5.


[attachment deleted reduce file load]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on September 26, 2020, 07:09:15 PM
Welcome

What aircraft database are you using?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: radioman1511 on September 26, 2020, 08:32:05 PM
I have it,the problem was the BaseStation.sql. Thanks for all.greetings radioman1511
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on September 26, 2020, 08:41:18 PM
Is everything OK now?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Radio2.0 on September 26, 2020, 11:11:35 PM
Does the ADSB,Mode-S not contain the registration code?  ???
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on September 27, 2020, 08:46:02 AM
Quote from: Radio2.0 on September 26, 2020, 11:11:35 PM
Does the ADSB,Mode-S not contain the registration code?  ???

No.  See:

https://mode-s.org/decode/adsb/introduction.html

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: radioman1511 on September 27, 2020, 05:22:20 PM
who can me help,why modesmixer2 not search all airplane pictures from internet? grts radioman1511
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: garry72 on November 08, 2020, 06:24:34 PM
Hello Sergey, can you build the latest mixer for CuBox-i4Pro (Freescale i.MX6Q SoC, 4x ARM® Cortex ™ -A9), ARMBIAN BOOSTER?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: StudioMaX on November 30, 2020, 04:12:16 PM
@sergsero
Could you please clarify if there is any big difference between ModeSMixer2 for the same architecture and operating system version, but for different types of devices.
What I mean - The download page now has the following versions for these ARM platforms (I may be wrong about the architecture of these devices, since I haven't actually used them and I don't know the details):

There are also builds that are not on the official download page but have been mentioned in this thread, for example (You might want to publish it on the downloads page as the Raspberry Pi OS 64-bit grows in popularity):

My goal is to run ModeSMixer2 on Raspberry Pi 4 with Raspberry Pi OS 64-bit in a Docker container. The most popular container is mikenye/modesmixer2 (https://hub.docker.com/r/mikenye/modesmixer2). But according to its source code (https://github.com/mikenye/docker-ModeSMixer2/blob/master/imagebuildscripts/install_modesmixer2.sh), it tries to find a suitable archive for each architecture from the downloads page, but for Raspberry Pi 4 with Raspberry Pi OS 64-bit it will use a completely unsuitable version from Orange Pi PC 2, since only that is ARM 64-bit.

From this the question follows, is it possible to get rid of a builds for specific device/SoC and make universal binaries for the same architecture/OS?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: garry72 on January 28, 2021, 09:11:38 AM
https://github.com/abcd567a/mm2/blob/master/README.md
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on January 29, 2021, 01:37:27 AM
Quote from: garry72 on January 28, 2021, 09:11:38 AM
https://github.com/abcd567a/mm2/blob/master/README.md
Thanks garry72 for posting link to my Github page.

My above Github page provides bash scripts for indtallation of ModeSMixer2 on many differrnt OS, and one of these is for 64-bit Raspberry Pi OS, as required by StudioMax.

However in that Github page I have not given the dowmload link to Raspberry Pi OS 64-bit for Pi4, assuming reader has already downloaded and installed the OS image.

However if StdioMax or anyone else wants to download the latest 64-bit image for RPi4, here are te the links:

Direct Download (current latest image)
2020-08-20-raspios-buster-arm64.zip (https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2020-08-24/2020-08-20-raspios-buster-arm64.zip)

Check for latest version here
https://downloads.raspberrypi.org/raspios_arm64/images/ (https://downloads.raspberrypi.org/raspios_arm64/images/)

.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: ramonk on February 03, 2021, 02:26:02 PM
Hi -- I have been a long-term peruser of this forum, even though I haven't really posted anything.

I have been running MM2 for a few years now on my RPi3B+ (and more recently also on RPI4B, and there are 2 issues with the installation that I have been trying to clean up. I actually think that @abcd567's (further excellent) install scripts don't address this, so maybe this could be a potential improvement.

It started with me noticing a file in my root called /distances.json, owned by root:root. After some sleuthing, I found out that this is a file updated hourly by MM2. Writing to my root directory, and actually having "untrusted" non-open-source programs run as root, are both security no-no's for me.

Here's what I did to improve this:


1. Updates to /usr/share/mm2/mm2.sh

These updates make sure that mm2 is executed from /run/modesmixer2, so any files it writes to its home directory are dropped there. The red code is what you should insert:

#!/bin/sh
CONFIG=""
while read -r line; do CONFIG="${CONFIG} $line"; done < /usr/share/mm2/mm2.conf
if [ ! -d "/run/modesmixer2" ]
then
   mkdir /run/modesmixer2
fi
cd /run/modesmixer2

/usr/share/mm2/modesmixer2 ${CONFIG}


2. Create a user and group for mm2 to run in
This actually has 2 parts. During the installation (in @abcd567's installation script), we should also do the following:


# create a user 'mm2:mm2' for mm2 to run as:
sudo useradd -U -r -s /bin/false mm2


Then, also add this to the [Services] section of the systemd service file (/lib/systemd/system/mm2.service). Again, the actual additions are in red:


[Services]
User=mm2
Group=mm2


That's all that needs changed when you do your initial installation


Now, if you want to make this change to your existing setup (after you already installed MM2), you can do this:

a. Edit the files manually
Make the changes shown above using sudo nano /usr/share/mm2/mm2.sh and /lib/systemd/system/mm2.service. Exit the editor with ctrl-x y <enter>.

b. Type this on the command line:

sudo useradd -U -r -s /bin/false mm2
sudo chown -R mm2:mm2 /run/modesmixer2
sudo systemctl daemon-reload
sudo systemctl restart mm2


Now, your MM2 instance should have restarted and is running as user mm2 and writes to /run/modesmixer2/distance.json rather than to the root directory. This is a lot cleaner and more in line with linux security recommendations.


Last -- a quick note -- relevant ONLY if you are running the mm2 website on a reserved port, like --web 8787.
By default, "regular" users aren't allowed to bind to some of the lower TCP port numbers. So if you changed your mm2.conf file to bind the web page to (for example) port 80 rather than the default port 8787, you will see an error. You can fix this by creating an exception for mm2 by giving this command on the command line:

sudo setcap CAP_NET_BIND_SERVICE=+eip /usr/share/mm2/modesmixer2.


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on February 21, 2021, 03:01:31 AM
Hello there, I need some assistance has to how to refresh the outline of the maximum range shown on the map with ModeSMixer2. I'm using abcd567 automated install program on a Pi4 and from memory this outline was stored in "distance.json". However, can't remember where this file is now located. Any help or ideas would be gratefully appreciated.

Many thanks.

Noel
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on February 23, 2021, 07:40:46 PM
@Oldfella:
For mm2 installed before today using my script, the file distances.json is located in root partion. You can see its contents by following command:

sudo nano /distances.json

If you want to clear the max range plot, first stop the mm2 so that it dumps its data to this file and clears its inner cache. Then only delete the file. After deleting restart mm2, and it will create a new blank file /distances.json



For installations done from now on, distances.json will be inside the folder /usr/share/mm2/
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on February 23, 2021, 07:51:38 PM
@ramonk
Thank you for pointing out shortcomings in my mm2 install script.

I have now modified the script to create a user mm2 and added this user to service file.

However creating file distances.json in volatile memory /run/modesmixer2 is not good as on restart / reboot, this folder gets deleted and then fresh blank folder is created . This will clear the range curve built previously, and is not desirable.

I have therefor modified startup file so that this file is created by user mm2 in folder /usr/share/mm2/ which is non-volatile. As a result the max range persists between restarts/reboots. If user intentionally want to clear the max range curve, he can stop mm2, delete file distances.json manually, and then restart mm2
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on February 23, 2021, 10:47:02 PM
Thank you, thank you, thank you abcd567 for your great service and keeping us old fellas happy  :) and to you ramonk for your input.

All working as per your instructions.

I should have looked again at the earlier posts to see the info on distances.json, not distance.json that I searched for.

Thanks again.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on February 23, 2021, 11:02:30 PM
@Oldfella
If you have followed instruction of @ramonk, they are good from security point of view, and conform to Linux safe practices. However they have one drawback: the maximum range curve will be non-persistant. It will reset itself on restart / reboot. Just try it.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on February 25, 2021, 12:02:14 AM
@ramonk
Thanks again for your suggestions. I modified my mm2 install scripts at Github yesterday, accomodating most of your suggestions, but made some changes to make max range data persist during reboots.

The changes are shown in red color:

(1) Installation script issues following extra commands:
sudo useradd --system mm2 
sudo chown mm2:mm2 -R /usr/share/mm2 


(2) Changes in service file
/lib/systemd/system/mm2.service

[Service]
User=mm2
RuntimeDirectory=modesmixer2


(3) Changes in file
/usr/share/mm2/mm2.sh

#!/bin/sh
CONFIG=""
while read -r line; do CONFIG="${CONFIG} $line"; done < /usr/share/mm2/mm2.conf
cd /usr/share/mm2
/usr/share/mm2/modesmixer2 ${CONFIG}


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on February 25, 2021, 02:57:03 AM
Thanks abcd567, all good. Working as planned.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on February 25, 2021, 08:30:51 PM
Link to Github where installation guide and installation script for mm2 (modesmixer2) for various devices (Pi & PC), and various OS (Raspberry Pi 32-bit & 64-bit OS, Ubuntu20 x86_64, Debian10 x86_64, Kali Linux 2020 amd64, Arch Linux 2021 x86_64) are located:

Last update on February 23, 2021:

(1) The modesmixer2 is now run by user mm2 (previously it was run by user root).

(2) The max range curve data file distances.json is created and owned by user mm2 and is located in folder /usr/share/mm2 (previously it was created and owned by user root and was located in root partition /distances.json )

https://github.com/abcd567a/mm2 (https://github.com/abcd567a/mm2)


.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Aerotower on March 29, 2021, 11:34:26 AM
Hi Guys,

It's possible to change modesmixer2 map or webpage (html) in a Pi??

for example to show a skyvector map?

Thanks.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Mustang24 on May 06, 2021, 01:51:56 PM
I would also be interested into a solution with a offline map! what ever map, even OSM.
In addition, is it possible to link the position to a GPS position?
My ModeSBeast and ModeSMixer2 is installed in a Motorhome.
Thanks!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: airvb on May 25, 2021, 08:56:58 AM
Hello,

any idea for this error :

kernel: modesmixer2[3644103]: segfault at 55e3016a3c3a ip 00007f46c0db4dc9 sp 00007ffda34c6a48 error 4 in libc-2.31.so[7f46c0d1b000+178000]

It appears after few hours modesmixer2 running.
I'm on headless ubuntu server 20.04 with modesmixer2_ubuntu_20.04_x86_64_20210228 version

thanks !
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on July 09, 2021, 12:28:36 AM


PROBLEM:
The 64-bit ModeSMixer2  (modesmixer2_aarch64_rpi4_Raspberry_Pi_OS_20210228) causes memory usage to shoot up too high.

Given below is 7-Days graph of memory usage on RPi Model 4 with 64-bit Raspberry PI OS and modesmixer2_aarch64_rpi4_Raspberry_Pi_OS_20210228


7-Days graph of memory usage
(https://i.postimg.cc/264yHx0M/Mode-SMixer2-64-bit-memory-issue.png)


ANALYSIS:
Checked by following commands:


htop

df -h



Found modesmixer2 is using 78% memory.
Rebooting Pi brought down the memory usage to 3% but after running for few hours, it shot up again to over 70%.

REMEDY:
Replaced 64-bit ModeSMixer2 (modesmixer2_aarch64_rpi4_Raspberry_Pi_OS_20210228) by 32-bit ModeSMixer2 (modesmixer2_rpi4_deb10_20190413)

When tried to run 32-bit version on 64-bit Raspberry Pi OS, got following error message:


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


Solved by following command:


sudo apt-get install openssl:armhf


Will watch for next 24 hrs and see how memory usage behaves now.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: s92driver on July 09, 2021, 08:21:12 AM
Quote from: abcd567 on July 09, 2021, 12:28:36 AM

Will watch for next 24 hrs and see how memory usage behaves now.

Keeping a close eye on this, as I do find I need to reboot the Pi after a while as things grind to a halt.


Steve
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on July 09, 2021, 05:44:25 PM
Watched for 24 hrs, the32-bit version running on 64-bit Raspberry Pi OS / RPi Model 4.
Couple of hours after reboot, the Memory usage of modesmixer2 again jumped up from 3% to 28%

The 28% Memory usage jump by 32-bit version of modesmixer2 is still better than 78% memory usage jump of 64-bit version of modesmixer2.

Since even after excessive memory usage of modesmixer2, the total memory usage of RPi Model 4 with both 32-bit & 64-bit mm2 still remained within the RAM capacity of RPi Model 4, nothing came to a halt in my case.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jon92 on July 14, 2021, 11:27:34 PM
My airnav radarbox dongle (on RPI4) is seriously overheating at the moment - I have a SBS-1er with ethernet that is not in use. Is it possible to use this with mm2 instead of the dongle.

Jon
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on July 15, 2021, 07:35:59 AM
I think you can use your SBS to feed data to ModeSMixer2.  This post may help:

https://forum.flightradar24.com/forum/radar-forums/sbs-1-sbs-3-and-basestation/9563-sbs-1e-and-modesmixer2-and-vrs-not-getting-any-messages#post9563
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jon92 on July 15, 2021, 01:03:57 PM
Thank-you for the reply - I have had a trawl thru the posts & it looks like the only way to get an
output from sbs1 is to have basestation software running (I don't want this option). mm2 will connect to sbs but i cannot get any data output. I will keep trying different conf settings.
Jon
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on July 15, 2021, 01:18:45 PM
Try connecting to the IP address of the SBS using port 20060.  With Basestation not running.

I can't confirm this will work but worth a try.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jon92 on July 15, 2021, 02:31:24 PM
Not working with that port, the only time I get the connected message in mm2.conf status is when
I use port 10001. I think I will have to carry on using the usb dongle and look at ways of keeping it cooler.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on July 15, 2021, 05:27:03 PM
Hi Jon,

MSM2 will connect to your SBS output and transcode to all the normal formats. I don't use VRS so if that's your diaplay, you'll need to check the output format.

Can you confirm your preferred set-up please.....

A) RPi running MSM2 connceting to SBS1eR via ethernet connected to your router - you can't connect your SBS directly to a RPi - as far as I am aware. Display software running under windwos - VRS, PlanePlotter, BaseStation??

OR

B) MSM2 running on a windows PC connceting to SBS1eR via ethernet then as above.

We should then be able to give you the correct code you get you going.

Thanks,

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jon92 on July 15, 2021, 09:24:30 PM
Hi Tim

My original setup - windows 10 laptop & SBS1eR both connected to my router, installed on my laptop - basestation & MS Access with a database linking to the aircraft & flights tables in basestation.sqb. I wasn't happy with setup mainly because the laptop isn't on 24/7 therefore missing a lot of flight data plus my aim is to setup remote access.

My current setup is - RPI (RPi OS lite) - AirNav Radarbox dongle - piaware - dump1090-fa & MM2.
all is working fine & and my database connects to basestation.sqb (MM2) via a network share on RPI, so I am now logging flight data 24/7. My only issue is - all the kit is in my loft and the dongle is getting really hot and possibly the cause of recent 'dropouts'. Therefore what I would like to do is replace the dongle with my redundant SBS. I'm not too fussed about the mapping MM2 is fine, the access database can tell me on google maps the start and end of aircraft locations.

Thanks Jon
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on July 15, 2021, 11:58:12 PM
If you are feeding Flightaware from your dongle, I am not convinced they will accept SBS-1 data.

So Modesmixer2 can read the SBS-1 data using:

<path_to_folder>/modesmixer2.exe  --inConnect <ip_address of SBS-1>:10001

So for me testing this:

D:\modesmixer2_windows\modesmixer2.exe  --inConnect 192.168.0.171:10001 --web 8086

The "--web 8086" allows me to check that data is being received by putting <ip address of PC>:8086 into a web browser and looking at output.

There are additional options to write to basestation.sqb and to add you receiver location, etc

But what do you want to do with the SBS-1 output?

If you want to feed FlightAware via Piaware, that means compiling Piaware on the PC and even then will it be acceptable?

To be honest, I would simply pay for a Flightaware dongle to replace the AirNav dongle.

https://thepihut.com/products/flightaware-pro-stick-plus-usb-sdr-ads-b-receiver

There comes a point where the time spent experimenting is not worth the effort!

If feeding Flightaware via Piaware is not the objective, maybe there are options.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on July 16, 2021, 07:40:21 AM
Quote from: IanH on July 15, 2021, 11:58:12 PM
If you are feeding Flightaware from your dongle, I am not convinced they will accept SBS-1 data.

Flightaware doesn't care about the receiver as long as the data's shared via PiAware.

Whether PiAware can process SBS data is another matter.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jon92 on July 16, 2021, 11:41:19 AM
Hi Tim/Anmer

Thank you for the replies. Just for clarity - my current setup RPI4 - Raspberry Pi Lite - piaware - dump1090-fa - mm2 - 360Radar feeding MLAT data & pihole. The system is running fine and doing what I want - the only issue is the radarbox dongle is overheating and possibly causing problems. My reason for ditching windows/basestion is my laptop would have to be on 24/7 to get the aircraft data I want plus  windows 10 has become a pain in the backside - updates take ages & usually breaks something!

Tim the output of --InConnect <SBS ip>:10001 --web 8086 loads the mm2 web server but all pages are blank (no data).

The only thing I really wanted to achieve is to use my redundant sbs  to populate basestation.sqb 24/7 instead of the dongle. I don't intend to feed to flightaware so that wouldn't be an issue.

Jon
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on July 16, 2021, 02:11:48 PM
Hi Jon,

In fairness it was IanH that gave you the code for outputting the SBSdata stream, not me. IanH is absolutely correct with what he is suggesting. If that isn't working for you, then there is something else amiss ........

SBS powered up correctly from an external power feed?

SBS switched over for external power not usb?

LEDs on and blue LEDs showing?

IP address of your SBS known? Default is 192.168.1.170

MSM2 can add to your sqb file, by adding in the --db command and setting the path to your sqb file within the MSM2 command line.

Good luck,

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jon92 on July 16, 2021, 04:14:38 PM
IanH

Sorry for not noticing it was you who posted! I have tried what you suggested & I think it is probably easier to attach screen shots of the results. Image 1 is the mm2.conf status with the code you asked me try - Image 2 is output from <Pi IP>:8086 - image 3 is my current mm2.conf - image 4 is the output of <PI IP> using my mm2.conf. And to make sure the sbs is working ok image 5 is the results of a port scan on my Win10 pc with basestation software running.

Tim - yes to all your questions! thanks.

Jon




[attachment deleted reduce file load]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on July 16, 2021, 04:40:59 PM
Quote from: Triple7 on July 16, 2021, 02:11:48 PM
IP address of your SBS known? Default is 192.168.1.170

Have you tried pinging 192.168.1.170?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on July 16, 2021, 04:54:16 PM
Jon

No problem. Pleased that Tim confirmed my instructions were correct  ;D

Your images are reassuring - you know what you are doing  ;)

Image 1 confirms that mm2 is connecting to the SBS-1 which is good.

But the next step would be for it to say "SBS data stream detected". It isn't  :(

Although I am trying this from an SBS-3, not an SBS-1. But all we are trying to do is get the 10001 port data which should be the same.

Anyway try adding --log-level 5 to the mm2 command line.

You should see a lot of data coming from the Pi looking a bit like this. Press Ctrl-C to stop it.

2021-07-16 15:47:45.184  DEBUG    ICAO 40711B: TAS 426 MACH 692 TEMPC -23.6706
2021-07-16 15:47:45.184  DEBUG    ICAO 40711B: GS 398.58 TAS 426 TT 325.632 HDG 330 WSPD 41.6911
2021-07-16 15:47:45.184  DEBUG    ICAO 40711B: GS 398.58 TAS 426 TT 325.632 HDG 330 WDIR 16
2021-07-16 15:47:45.184  DEBUG    *A0000F14F50A572B7EC7D17779C0;
2021-07-16 15:47:45.184  DEBUG    DF20 ICAO: 40711B FS 0 DR 0 UM 0 ALTITUDE 23100 MBIT 0 QBIT 1 IAS 299 ACAS 0 SPI 0 GR 0 MACH 692 HDG 330 HAB 0 BDS60 RECEIVE TIME 1626450465
2021-07-16 15:47:45.185  DEBUG    *A00008B68FA47D30A80000BF3C5F;
2021-07-16 15:47:45.185  DEBUG    DF20 ICAO: 40753F FS 0 DR 0 UM 0 ALTITUDE 13150 MBIT 0 QBIT 1 ACAS 0 SPI 0 GR 0 MCP 80 FMS 80 QNH 1013 BDS40 RECEIVE TIME 1626450465
2021-07-16 15:47:45.190  DEBUG    *A0000EB9A13D09F0A801064F979C;
2021-07-16 15:47:45.190  DEBUG    DF20 ICAO: 461E1A FS 0 DR 0 UM 0 ALTITUDE 22825 MBIT 0 QBIT 1 ACAS 0 SPI 0 GR 0 MCP 170 MCPS 2 FMS 170 QNH 1013 FCU 0 BDS40 RECEIVE TIME 1626450465
2021-07-16 15:47:45.191  DEBUG    *A00016B3B8ADC570A800009167D8;
2021-07-16 15:47:45.191  DEBUG    DF20 ICAO: 4070E3 FS 0 DR 0 UM 0 ALTITUDE 35475 MBIT 0 QBIT 1 ACAS 0 SPI 0 GR 0 MCP 290 FMS 290 QNH 1013 BDS40 RECEIVE TIME 1626450465
2021-07-16 15:47:45.192  DEBUG    *A0000EB9E2FA31287E8FC9B66C3E;
2021-07-16 15:47:45.192  DEBUG    DF20 ICAO: 461E1A FS 0 DR 0 UM 0 ALTITUDE 22825 MBIT 0 QBIT 1 TT 230 ACAS 0 SPI 0 GR 0 TR -1.46875 BDS50 RECEIVE TIME 1626450465
2021-07-16 15:47:45.196  DEBUG    *A00016B3B8ADC570A800009167D8;

Let us know how you get on.

Ian
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on July 16, 2021, 05:14:57 PM
Quote from: jon92 on July 16, 2021, 04:14:38 PM
my Win10 pc with basestation software running.

Hi Jon,

I am pretty certain that if BaseStation is connecting to your SBS (image 5 shows this and you have mentioned that BaseStation is running connecting to 192.168.1.170) then you cannot run another piece of software to also pick up the feed - it gets locked out. I think Kinetic put a block on that some time ago - I am sure Anmer can confirm or not. I am not 100% certain that the below is correct but you may like to try it and see.

You need to be running MSM2 first and then point your Basesstation software at the output of the MSM2 output - you will therefore need some extra code if you don't already have it:

--outServer sbs10001:10001

Then check / amend in BaseStation:
Settings>>Hardware settings>>Network (tab)>>Address = IP of Pi running MSM2

That might then allow your MSM2 to connect to your SBS feed and show the results IanH mentioned – Image 1.

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on July 16, 2021, 05:40:36 PM
Quote from: Triple7 on July 16, 2021, 05:14:57 PM
I am sure Anmer can confirm or not.

Yes, Kinetic blocked concurrent sessions some time ago.

As Tim suggests, shut down Basestation and once you have an MSM2 session working, configure BaseStation to connect to that.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on July 16, 2021, 05:47:13 PM
Tim

I did test the effect of BaseStation running. MM2 will not connect and does not show the messages seen in Image 1.  ???

Your code for outputting SBS 10001 data is correct. I like the idea of connecting BaseStation to the IP of the Pi to provide a visual check.

Ian
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on July 16, 2021, 06:20:26 PM
Dug out my SBS-1.

Strange results.

Running the same script as for the SBS-3, I get similar output as Image 1.

But NO flow of data on screen and no data in the browser.

Hmm - modify the script to remove unneeded commands. Try again. It works. Stop mm2 and repeat. NOTHING.

Sometimes modifying the script makes it work, sometimes not.

Sometimes, repeating the script and it works, sometimes not. Hence changing the script is coincidence.

SBS-3 responded with a definite login response, SBS-1 with nothing.

Ian
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: jon92 on July 17, 2021, 09:56:55 AM
I wasn't able to do any testing last night!

I have tried the following setup - Basestation software pointing to the Pi

--inConnect 192.168.1.170:10001 --outServer sbs10001:10001 --web 8787 --log-level 5

and the output is image 6 ( I don't know how to copy and paste de-bugging).

Jon

[attachment deleted reduce file load]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on July 17, 2021, 10:19:25 PM
Anyone running ModeSMixer2 on Windows, normally uses batch file (modesmixer2_windows_x86_64.bat) in following format:


@echo off

cmd /c path_to_folder/modesmixer2_windows_x86_64.exe --google-key AxxxxxxxxYxxxxxw --db d:\data\basestation.sqb --frdb d:\data\flightroute.sqb --silhouettes d:\data\silhouettes --pictures d:\data\pictures --inConnect 192.168.64.150:10003 --inConnectId 192.168.64.126:30105:MLAT --inConnectId 192.168.64.141:30105:MLAT-E --inConnect 192.168.64.170:40055 --outServer sbs10001:10001 --outServer msg:30033 --web 8886 --globes 31018:table2:UNTT --location 36.4171:65.6471  --metric

PAUSE
exit



Above way results in a very long line of arguments, most of which are not directly visible when file is opened in Notepad or Notepad++ for editing/browsing. Scrolling to right is required to see all the arguments. Even if "Wrap Text" is used, the lines wrap at random points, and not at the end of arguments.

A better format is given below, which has one argument per line terminated by character ^ (Carat, Circumflex accent, Shift + 6 on US & UK Keyboards)

This makes all arguments directly visible without need to scroll right, as below:

IMPORTANT:
(1) Leave space between argument and Carat symbol ^
(2) Do NOT leave any space after Carat symbol ^
(3) The last line of argument should be WITHOUT Carat symbol ^
(4) No blank lines between arguments.



@echo off

cmd /c path_to_folder/modesmixer2_windows_x86_64.exe ^
--google-key AxxxxxxxxYxxxxxw ^
--db d:\data\basestation.sqb ^
--frdb d:\data\flightroute.sqb ^
--silhouettes d:\data\silhouettes ^
--pictures d:\data\pictures ^
--inConnect 192.168.64.150:10003 ^
--inConnectId 192.168.64.126:30105:MLAT ^
--inConnectId 192.168.64.141:30105:MLAT-E ^
--inConnect 192.168.64.170:40055 ^
--outServer sbs10001:10001 ^
--outServer msg:30033 ^
--web 8886 ^
--globes 31018:table2:UNTT ^
--location 36.4171:65.6471  ^
--metric

PAUSE
exit

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on July 18, 2021, 12:34:13 AM
Running MM2 on Linux and familiar with commands.

Issue here is that Kinetic SBS-1 does not produce output (or at least not reliably) to the command -"-inConnect <SBS-1 IP address>> 10001"
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on January 19, 2022, 10:37:19 PM
Quote from: sergsero on June 07, 2020, 10:27:02 AM
Hello,
Quote from: adsb4fun on June 07, 2020, 08:45:44 AM
Its the "service not found". Which service?

Looks like a DNS issue. Might be due to PiHole service being stopped.
Whats the DNS server setting in dietpi-config > Networking Options > Ethernet?

Due to dietpi-services stopping pihole service prior to download.
May be the solution:
Check and enable pihole service during update.

Next check domain name resolution for local applications - it is handled by the service systemd-resolved
root@test:~# systemctl start systemd-resolved
root@test:~# systemctl enable systemd-resolved

Next - /etc/hostname and /etc/hosts is already updated when changing the host name via dietpi-config.
Please assure that entries in /etc/hostname and /etc/hosts match (and as well not all kind of characters are allowed).

E.g. example for test machine:
root@test:~# cat /etc/hostname
test

root@test:~# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 test


However for some reason to be fail-safe, /etc/hosts should look like this:
127.0.0.1 localhost
127.0.1.1 <hostname>
with matching /etc/hostname.

The 127.0.0.1 should be associated with localhost and optionally localhost.localdomain only.
The FQDN (fully qualified domain name)/host name otherwise should be associated with either a static external IP that points to this host directly or (AFAIK in all NAT situations) 127.0.1.1. Otherwise asking the system for the FQDN (e.g. hostname -f) would show the local domain instead of the wanted (external) FQDN.
If you indeed have a static external IP, then replace 127.0.1.1 with it.
127.0.0.1 localhost
127.0.1.1 <your_FQDN_hostname>

If this was not available on your LAN except via the static ip. To make it accessible internally have to add the line (example for network 192.168.x.x):
192.168.x.x <your_FQDN_hostname>

Best regards,
sergsero

Found solution , it is very simple:


sudo apt install netbase   

sudo systemctl restart mm2   



Actually I have found this solution in 2019 in connection with Radarbox24 feeder on DietPi giving same problem.  Recently applied this solution to ModeSMixer2 on DietPi,  and the problem was solved.

Please see these 2 posts:

https://discussions.flightaware.com/t/automated-installation-of-modesmixer2-modesdeco2-on-rpi/53899/90

https://forum.radarbox24.com/index.php?PHPSESSID=82915giiesh3sksd6b3kekoqpb&topic=101981.msg400661#msg400661



.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: proba999 on January 28, 2022, 07:42:07 AM
Hi!

What is the latest version of the program ModeSDeco2 ?

Thank`s.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on January 31, 2022, 09:01:48 AM
Quote from: proba999 on January 28, 2022, 07:42:07 AM
What is the latest version of the program ModeSDeco2 ?

I think this link is for the latest versions:

https://radarspotting.com/forum/index.php/topic,2978.msg15240.html#msg15240
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on February 09, 2022, 02:48:16 AM
Quote from: proba999 on January 28, 2022, 07:42:07 AM
Hi!

What is the latest version of the program ModeSDeco2 ?

Thank`s.

Unfortunately the site xdeco.org is no more available, which had the latest information.

As already pointed out by Anmer, the only information available now is in the first post of this thread which is from 2018.

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: rikgale on February 16, 2022, 12:06:10 PM
While clearing out my Google Drive I stumbled across shared links from sergsero's google drive for modesmixer2 v20190413 for windows and Raspberry Pi4. I have downloaded both of these to my local PC, just incase.

Would it be useful / appropriate to post these files in this thread seeing as how his website is no longer active?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on February 16, 2022, 12:24:01 PM
Quote from: rikgale on February 16, 2022, 12:06:10 PM
Would it be useful / appropriate to post these files in this thread seeing as how his website is no longer active?

The links for the Windows and some RPi versions on this thread are still available:

https://radarspotting.com/forum/index.php?topic=2978.msg15240#msg15240

Maybe members should download them whilst they're still available?

I don't like hosting other members files without their agreement.  Unless they've gone AWOL!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: rikgale on February 16, 2022, 12:30:14 PM
I noted those links, but they are for slightly older versions of MM2 and a previous poster was asking about the most up-to-date version.

modesmixer2_windows_20180616.zip Vs. modesmixer2_windows_20190413.zip

QuoteUnless they've gone AWOL!

How long does one wait until a member is classed as AWOL? ;)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on February 24, 2022, 02:05:07 AM
Quote from: rikgale on February 16, 2022, 12:06:10 PM
While clearing out my Google Drive I stumbled across shared links from sergsero's google drive for modesmixer2 v20190413 for windows and Raspberry Pi4. I have downloaded both of these to my local PC, just incase.

Would it be useful / appropriate to post these files in this thread seeing as how his website is no longer active?

Can you please post the Sergesero's Google Drive links for 2019 versions you mentioned? This will help, if not many, at least me.
Thank you in advance.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: rikgale on February 25, 2022, 09:03:38 AM
https://drive.google.com/file/d/1YY7wQNtqrPk7qtE3OB9DGkc4nDalJsCS/view?usp=sharing (https://drive.google.com/file/d/1YY7wQNtqrPk7qtE3OB9DGkc4nDalJsCS/view?usp=sharing)  mm2 for Debian 10 v20190413
https://drive.google.com/file/d/1_Y_OBuji_GmZK_-HLAnqjpt913D4bfPl/view?usp=sharing (https://drive.google.com/file/d/1_Y_OBuji_GmZK_-HLAnqjpt913D4bfPl/view?usp=sharing) mm2 for Windows v20190413
https://drive.google.com/file/d/1wOv1JK8sgWYlCskqW4Udr1bBA0vvRX89/view?usp=sharing (https://drive.google.com/file/d/1wOv1JK8sgWYlCskqW4Udr1bBA0vvRX89/view?usp=sharing) modesdeco2 for x86_64 v20180429

I accept no responsibility for the contents of these links (but they appear to be the software listed).
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on February 25, 2022, 04:32:53 PM
Quote from: rikgale on February 25, 2022, 09:03:38 AM
https://drive.google.com/file/d/1YY7wQNtqrPk7qtE3OB9DGkc4nDalJsCS/view?usp=sharing (https://drive.google.com/file/d/1YY7wQNtqrPk7qtE3OB9DGkc4nDalJsCS/view?usp=sharing)  mm2 for Debian 10 v20190413
https://drive.google.com/file/d/1_Y_OBuji_GmZK_-HLAnqjpt913D4bfPl/view?usp=sharing (https://drive.google.com/file/d/1_Y_OBuji_GmZK_-HLAnqjpt913D4bfPl/view?usp=sharing) mm2 for Windows v20190413
https://drive.google.com/file/d/1wOv1JK8sgWYlCskqW4Udr1bBA0vvRX89/view?usp=sharing (https://drive.google.com/file/d/1wOv1JK8sgWYlCskqW4Udr1bBA0vvRX89/view?usp=sharing) modesdeco2 for x86_64 v20180429

I accept no responsibility for the contents of these links (but they appear to be the software listed).


Thanks a lot rikgale


Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on February 25, 2022, 05:57:38 PM
I now checked, and found that following links are used by automated install scripts of my github site "mm2" (Click Here) (https://github.com/abcd567a/mm2/blob/master/README.md):

For RPi 32bit OS
modesmixer2_rpi4_deb10_20190413.tgz
https://drive.google.com/file/d/1YY7wQNtqrPk7qtE3OB9DGkc4nDalJsCS/view


For RPi 64bit OS
modesmixer2_aarch64_rpi4_Raspberry_Pi_OS_20210228.tgz
https://drive.google.com/file/d/1W9tSjI8ejh2PjQsDtqqvQhWTVk1JwqVE/view


For x86_64 / amd64 Debian 10 (works on Debian 11 also)
modesmixer2_debian_10_x86_64_20200714.tgz
https://drive.google.com/file/d/1gKtk2rP_IgOK53ZJQX2MAERCkoqvbAD6/view


For x86_64 / amd 64 Ubuntu 20
modesmixer2_ubuntu_20.04_x86_64_20210228.tgz
https://drive.google.com/file/d/1PAKnH9pxPeXTKu3yrYRdtGHoDAhlheKo/view 


.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: rikgale on February 25, 2022, 09:46:13 PM
Great :) slightly more up-to-date stuff there
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on February 25, 2022, 10:14:45 PM
Quote from: rikgale on February 25, 2022, 09:46:13 PM
Great :) slightly more up-to-date stuff there

Yes, but for Windows was missing in my list. You have provided for Windows also to complete the set.  :)
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: rikgale on February 25, 2022, 10:24:50 PM
...and who doesn't like a complete set ??
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on April 03, 2022, 10:22:58 AM
It appears all the links in the latest posts are now no longer available?

Does anyone have the most recent copies of ModeSDeco and ModeSMixer2 that we can make available on this forum?

[attachment deleted reduce file load]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on April 03, 2022, 01:16:49 PM
I have:

modesmixer2_windows_20190413
modesdeco2_windows_20180429

modesmixer2_rpi2-3_deb9_20180616
modesmixer2_rpi4_deb10_20190413
modesdeco2_rpi2-3_20170127

So probably not the latest of all of them, but it might be a start?

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: rikgale on April 03, 2022, 01:45:25 PM
I've got the same windows ZIPs for modeSmixer2 as Tim and I have in addition...

modesdeco2_rpi4_aarch64_deb10_20210307 - deco for RPi4 64bit
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: QF1 on April 04, 2022, 01:19:00 AM
Hi Tim

It would be great if you can please share on this forum.

Many thanks
Mark
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on April 04, 2022, 08:26:25 AM
Thanks Tim and Richard.

These are the versions I have:

ModeSDeco
modesdeco2_x86_64_u18.04_20180429.tgz

ModeSMixer
modesmixer2_rpi1_deb9_20180616.tgz
modesmixer2_rpi2-3_deb9_20180616.tgz
modesmixer2_rpi4_deb10_20190413.tgz
modesmixer2_windows_20190413.zip

I'll upload these to the forum later today.

If anyone has later or other versions please let us know.

And I'll willingly remove them if Sergsero asks.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on April 04, 2022, 10:04:51 AM
Files now uploaded:

https://radarspotting.com/forum/index.php?action=tportal;sa=download;dl=cat7

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: IanH on April 04, 2022, 08:49:19 PM
I have "modesmixer2_debian_10_x86_64_20200714.tgz" which runs on recent Debian on a PC.  I requested this since a change in Debian libraries stopped an earlier version from working. Although same will happen if Debian updates libraries again some time in the future.

I use this on a minimal Debian virtual machine.

However I also have the posted 2019 Windows version which may last longer than the Debian/Ubuntu versions for future-proofing.

I assume all this file-gathering is a result of no recent updates and the demise of xdeco.org which was Sergsero's website.

It will be a shame if such a useful program (and the others such as modesdeco) disappear since there is no source code for anyone else to adapt  :(

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on April 04, 2022, 08:54:03 PM
Quote from: IanH on April 04, 2022, 08:49:19 PM
I assume all this file-gathering is a result of no recent updates and the demise of xdeco.org which was Sergsero's website.

It will be a shame if such a useful program (and the others such as modesdeco) disappear since there is no source code for anyone else to adapt  :(

Thanks Ian.

Yes, we're trying to provide an on-going repository for Sergsero's excellent utilities since they're no longer available on his original location.

Unfortunately, as we've seen so many times, "one-man (person?) band" assets don't survive the test of time.  :-\
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: rikgale on April 05, 2022, 11:28:57 AM
Quote from: IanH on April 04, 2022, 08:49:19 PM
I have "modesmixer2_debian_10_x86_64_20200714.tgz" which runs on recent Debian on a PC.  I requested this since a change in Debian libraries stopped an earlier version from working. Although same will happen if Debian updates libraries again some time in the future.

I use this on a minimal Debian virtual machine.

However I also have the posted 2019 Windows version which may last longer than the Debian/Ubuntu versions for future-proofing.

I assume all this file-gathering is a result of no recent updates and the demise of xdeco.org which was Sergsero's website.

It will be a shame if such a useful program (and the others such as modesdeco) disappear since there is no source code for anyone else to adapt  :(

Hi Ian

To some extent there will be ways around this by using Docker containers ( https://github.com/sdr-enthusiasts/docker-ModeSMixer2 ) or a Virtual Machine with an older install of linux on it. But, I agree with your statements regarding such useful programme(s) - it's a shame. I believe that he resides in the country on the wrong side of a certain war, which may explain the darkness of his website and google drive links.

Your other option would be for find out which libraries were upgraded and downgrade them to older versions, although this would probably create some sort of security risk.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on April 05, 2022, 11:58:33 AM
Quote from: rikgale on April 05, 2022, 11:28:57 AM
I believe that he resides in the country on the wrong side of a certain war, which may explain the darkness of his website and google drive links.

Sergsero went AWOL long before the current conflict in Ukraine.

Some lose interest, fall in love, change jobs, go on travels, retire or even pass away.  There are many reasons why we lose touch.  All I know is we do.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on April 06, 2022, 01:36:21 PM
.

https://github.com/abcd567a/mm2/releases/tag/v1

On above page, click "Assets" if list below is not visible.


modesdeco2_windows_20180429.zip
modesdeco2_x86_64_u18.04_20180429.tgz

modesmixer2_aarch64_rpi4_Raspberry_Pi_OS_20210228.tgz
modesmixer2_debian_10_x86_64_20200714.tgz
modesmixer2_rpi2-3_deb9_20190223.tgz
modesmixer2_rpi4_deb10_20190413.tgz
modesmixer2_ubuntu_20.04_x86_64_20210228.tgz

modesmixer2_windows_20190413.zip

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on April 07, 2022, 12:46:22 AM
Quote from: abcd567 on April 06, 2022, 01:36:21 PM


https://github.com/abcd567a/mm2/releases/tag/v1


Couple of years ago, I prepared and posted ModeSMixer2 Automated Installation Scripts at Github. These script when run, used to download modesmixer2.tgz file from Sergsero's Google drive.

Couple of days ago Sergsero's Google drive disappeared, and these scripts became useless. Luckily some time ago, I have downloaded these .tgz files from Google drive and have saved on my PC.

Yesterday I uploaded these files from my PC to Github's mm2 repository. This repository already held the installation scripts. Then I modified these script so that these download .tgz files from Github instead of Google drive.

I have posted above link to Github page where these files are stored, in case anyone want to download and install manually.

The automated installation scripts are here:
https://github.com/abcd567a/mm2/blob/master/README.md 



.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on April 07, 2022, 05:40:26 AM
Many thanks ABCD, you are a champ.  ;)

Greatly appreciate your efforts to help us to enjoy our hobby.

Oldfella.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on April 07, 2022, 07:17:28 AM
Does anyone has these two files (or their later version)?

acarsdeco2_rpi2-3_debian9_20181201.tgz

modesdeco2_rpi2-3_deb9_20180729.tgz



.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on April 07, 2022, 07:43:35 AM
No luck with modesdeco_rpi2-3_deb9_20180729, but do have 20180616, 20190223 & 20190413 if that's any help.

Oldfella
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on April 07, 2022, 07:59:33 AM
Quote from: abcd567 on April 07, 2022, 07:17:28 AM
Does anyone has these two files (or their later version)?

None of the these but I have:

acarsdeco2_windows_20150718.zip

If anyone needs this?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on April 07, 2022, 03:55:25 PM
Quote from: Oldfella on April 07, 2022, 07:43:35 AM
No luck with modesdeco_rpi2-3_deb9_20180729, but do have 20180616, 20190223 & 20190413 if that's any help.

Oldfella


Yes, sure it will help.
How can I get these?

.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on April 07, 2022, 04:00:44 PM
Quote from: Anmer on April 07, 2022, 07:59:33 AM

None of the these but I have:

acarsdeco2_windows_20150718.zip

If anyone needs this?

Yes, sure I would like to have it.
Having an old version is better than having nothing.
How can I get it?

.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on April 07, 2022, 07:09:00 PM
Quote from: abcd567 on April 07, 2022, 04:00:44 PM
How can I get it?.

You can download it from here:

https://radarspotting.com/forum/index.php?action=tportal;sa=download;dl=item538
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Oldfella on April 07, 2022, 09:55:24 PM
ABCD, I have sent you a PM.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on April 08, 2022, 04:56:04 AM
Quote from: Oldfella on April 07, 2022, 09:55:24 PM
ABCD, I have sent you a PM.

Thank you.

.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on April 08, 2022, 04:56:56 AM
Quote from: Anmer on April 07, 2022, 07:09:00 PM
Quote from: abcd567 on April 07, 2022, 04:00:44 PM
How can I get it?.

You can download it from here:

https://radarspotting.com/forum/index.php?action=tportal;sa=download;dl=item538

Thank you Anmer


.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: WiganPi on July 15, 2022, 06:36:23 PM
Here is the centos centos_20180616_modesmixer2

[attachment deleted reduce file load]
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: evangel on July 31, 2022, 03:05:08 PM
hello abcd567
been long time since i checked here
well I have a 80mb zip file that contains many versions from 2016 (ais, acars, modesdeco and modesmixer) for rpi, ubuntu and windows x86-x64.
here is the link

https://drive.google.com/file/d/1nuTiL4TbQk8hA-rJYIxpRtM-Wnwdcv23/view?usp=sharing
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: abcd567 on August 15, 2022, 05:54:28 AM
Quote from: evangel on July 31, 2022, 03:05:08 PM
hello abcd567
been long time since i checked here
well I have a 80mb zip file that contains many versions from 2016 (ais, acars, modesdeco and modesmixer) for rpi, ubuntu and windows x86-x64.
here is the link

https://drive.google.com/file/d/1nuTiL4TbQk8hA-rJYIxpRtM-Wnwdcv23/view?usp=sharing


Thanks a lot @evangel.
Downloaded. Good collection.


.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: potter on December 20, 2022, 06:21:26 PM
grazie 1000
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on December 27, 2023, 07:46:44 PM
Hi, I am tryin to set up modesdeco for a friend who has a new laptop but am coming across this error:

2023-12-27 19:40:32.280  INFO     ModeSDeco2 v.20151226
2023-12-27 19:40:32.311  INFO     Device: 0 already in use)
libusb_open error -12
2023-12-27 19:40:32.342  ERROR    Can't open device: sdr_open(): Bad file descriptor
Press any key to continue . . .

When looking back through the thread i see that another person had this exact error but i cannot find a resolution for it. Can anyone help please?

Thanks

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on December 27, 2023, 07:49:54 PM
Can you describe the exact setup?  What type of receiver and where ModeSDeco is being run and how?  And what version?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on December 28, 2023, 12:30:54 AM
Its on a new laptop running Windows 11. I have installed Kinetic Basestation and have put modesdeco2_windows_20150106 on the laptop. I have added the various dlls such as msvcr110 that the install requires. Its using an R820T Noolec Dongle. I did the same install on his current laptop 3 years ago but i have missed something installing on his new laptop in the process which is stopping the install this time and cant figure out what it is.

Hopefully you can help identify what i am missing.

Thanks

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Triple7 on December 28, 2023, 08:49:12 AM
Did you install the Zadig USB drivers?

https://zadig.akeo.ie/

Tim
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on December 28, 2023, 09:14:19 AM
Yes I did that and the one you show is the one installed. I did think I had done everything needed to get it to work but I must have missed something, I just can't think what.

Thanks

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on December 28, 2023, 09:41:13 AM
Can you post your ModeSDeco2.bat file contents?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on December 28, 2023, 06:59:23 PM
I have attached the bat file settings.

Thanks

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on December 28, 2023, 08:14:26 PM
Thanks Carl.

What's the folder/directory path for modesdeco2.exe?

And do you have this as a .bat or .txt file?  The screenshot shows a .txt file?
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Keef on December 28, 2023, 08:20:46 PM
Maybe this link will help?

https://www.rtl-sdr.com/tag/zadig/

The video is no longer available, but the the text seems relevant:

The process to install an RTL-SDR dongle on Windows involves the simple step of running Zadig and installing the generic WinUSB drivers to the RTL-SDR, which shows up as "Bulk-In, Interface (Interface 0)" in Zadig.

However we find that people sometimes accidentally use Zadig to install WinUSB to "Bulk-In, Interface (Interface 1)" by mistake. Installing WinUSB to this interface can break your installation, and it can cause the RTL-SDR to display a "usb_open error -12" on command line software, and can cause problems connecting to the device on GUI software like SDR#.

Maybe re-running the zadig install to make sure you have 'Interface 0' selected, or maybe modifying your batch file to change device-index to 1 instead of 0.

I'd probably go for the first option, re-running zadig.

Hope this helps!
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on December 28, 2023, 10:33:33 PM
The location is directly on the c drive. I just copied the setup I have on my tablet.
The txt file is the release notes from Sergsero.

I double checked the swift and it is 0 rather than 1.

Thanks

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on December 28, 2023, 10:35:15 PM
Sorry swift should be zadig. Autocorrect changed it.
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on December 29, 2023, 07:26:10 AM
I don't use ModeSDeco2 but did manage to get it running on Windows 64 bit.  This was last year and trawling through emails etc,I found I needed to replace some 64 bit dll files with 32 bit versions.  But I can't remember or track back to identify which dll files they were!

Did you install 32 bit dll files?

Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on December 29, 2023, 07:57:37 PM
I installed in syswow64 but I might not have done all the ones required. I will double check on his laptop to see if I have missed any.

Thanks

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Carlos on January 04, 2024, 10:25:07 PM
I thought I'd give an update on the install issue.

We copied over missing msvcp and msvcr files to his new laptop from his old laptop but unfortunately it still wouldn't work.

However, installing drivers from zadig 2.8 rather than the older version we were using seems to have done the trick as modesdeco2 and his basestation are now working.

Thanks

Carl
Title: Re: ModeSDeco2 and ModeSMixer2 - console programs for RTLSDR and transcoding
Post by: Anmer on January 05, 2024, 08:30:54 AM
Thanks for the update and explanation of what fixed the issue.