Radarspotting

Mode-S Software => ModeSMixer & ModeSDeco => Topic started by: Andos on January 09, 2018, 09:38:38 PM

Title: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 09, 2018, 09:38:38 PM
Hi Sergsero/ All,
                        I have been reading several threads regarding both ModeSDeco2 & ModeSMixer2 and have been trying to decide which would be the most ideal for my specific requirements.  As a result of this, I have now presented myself with a double-edged sword as it looks like ModeSMixer2 would be the solution for my first dilemma and ModeSDeco2 would be the solution for the second one.

Before I explain, here are my equipment details:

Acer Switch 10E laptop running Windows 10 32-bit;
SBS-1er running BaseStation ver 184
ADUSBS Utilty software which feeds my Seen/ Required details to my BaseStation from my ADU Software database.


The 1st dilemma:

                         I notice that ModeSMixer2 supports Routes and has a FlightRoutes.sqb file.  I was wondering how to add an editable FlightRoutes-type sqb file to my BaseStation.sqb file but I would like feed the Routes information to the Generic Name fields (Field 13) instead of the Popular Name fields (Field 20).  The reason why I wish to use the Generic Name fields is because my Popular Name fields are already being used by my ADUSBS Utility program. 

                         Would I be right in assuming that the Flight Number/ Callsign information received from the aircraft is then associated to the Flight ID in the FlightRoutes.sqb file to then display the Routes information in BaseStation?

                         If so, could you please instruct me on how to change this so that the information displays in the Generic Name fields in BaseStation instead of the Popular Name fields?

                         I wish to create my own Routes information table that I can manually enter new route information into as most of the information will only be local to air traffic transitting UK airspace.

                         I am not very knowledgeable of SQL but am willing to have a go. 

                         I have already posed a similar question on the forum but that was to search for a program solution for this problem.  This query is to try and edit and modify my BaseStation.sqb file to contain a FlightRoutes.sqb file that I can add route information to.




The 2nd dilemma:

                          I have been looking at the ModeSDeco2 threads and it seems that this would be the ideal solution for me to use my FlightAware Pro Plus dongle directly plugged into my laptop to feed my BaseStation, but looking through the threads on the forum, the questions all seem to refer to feeding an online service which is not what I wish to do as I have a Raspberry Pi3 for that.

                          What sort of configuration would be required for me to achieve this?  Bearing in mind that I do not wish for the configuration to cause any conflicts with my ADUSBS Utility software which feeds my Seen/Required details to my BaseStation directly from my ADU Software database program.


                          Do you think that having both ModeSMixer2 and ModeSDeco2 installed on my setup would cause any problems that you could think of?



                                                                                 Andos.

[Attachment deleted by Admin to save file space]
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: IanH on January 10, 2018, 10:55:25 AM
Your second question is straightforward.

Modesdeco2 will feed almost anything, either locally or over the internet.

To feed BaseStation from a Flightaware dongle attached to the laptop  you could try this:
C:\modesdeco2.exe --sbs10001 10001

Adjust that code depending on where you unzip modesdeco2.
In BaseStation software, under Settings/Hardware Setting/Network tab, the Address needs to be 127.0.0.1 and the Port should be 10001.

That should work. ;D

There are lots of other options to modesdeco2 but most are not relevant to you.

There are no problems running modesdeco2 and modesmixer2 at the same time - sometimes it is necessary to do a conversion.

But modesdeco2 also has flight route database option!
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 10, 2018, 11:57:59 PM
Quote from: IanH on January 10, 2018, 10:55:25 AM
Your second question is straightforward.

Modesdeco2 will feed almost anything, either locally or over the internet.

To feed BaseStation from a Flightaware dongle attached to the laptop  you could try this:
C:\modesdeco2.exe --sbs10001 10001

Adjust that code depending on where you unzip modesdeco2.
In BaseStation software, under Settings/Hardware Setting/Network tab, the Address needs to be 127.0.0.1 and the Port should be 10001.

That should work. ;D

There are lots of other options to modesdeco2 but most are not relevant to you.

There are no problems running modesdeco2 and modesmixer2 at the same time - sometimes it is necessary to do a conversion.

But modesdeco2 also has flight route database option!
Hi Ian,
            thanks for your reply.

"To feed BaseStation from a Flightaware dongle attached to the laptop  you could try this:
Code:

C:\modesdeco2.exe --sbs10001 10001"


Where do I put this code?



                         Andos.

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Triple7 on January 11, 2018, 07:46:34 AM
I wrote some notes about how to set up MD2 and MM2 in this thread:

https://radarspotting.com/forum/index.php/topic,2978.msg24197.html#msg24197

It might give you some pointers but as both programs are Console (Command Line) Programs, you need a batch file to set the parameters.

Tim
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 11, 2018, 10:32:49 AM
Quote from: Triple7 on January 11, 2018, 07:46:34 AM
I wrote some detain about how to set up MD2 and MM2 in this thread:

https://radarspotting.com/forum/index.php/topic,2978.msg24197.html#msg24197

It might give you some pointers but as both programs are Console (Command Line) Programs, you need a batch file to set the parameters.

Tim
Thanks Tim!
                       Pardon my ignorance but I keep seeing references to .bat files.  How do I get these to work?  Do I run these first and then run BaseStation or do I run these instead of BaseStation?

                     Also,  a lot of these .bat files seem to imply that I need to feed to the internet.  Or am I reading this wrong?

                     Is there not a batch file that I could use that would simply allow me to create a FlightRoute.sqb that would populate the routes in BaseStation using the Generic Name fields instead of the Popular Name fields? 

                     I would like to be able to manually enter my own Flight numbers and Routes into the FlightRoute.sqb for them to display in BaseStation without online lookups.  Do you know if this is possible?

                   I know you have previously suggested that I can use ModeSDeco to also populate Routes but I really do not know where to begin?  I am an absolute newbie when it comes to this sort of thing.  Please be patient with me[emoji6]

                                 Andos.

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: IanH on January 11, 2018, 11:02:28 AM
Ok, I probably assumed too much. So let's go in small steps. Don't worry about the examples connecting to the internet - those are just options you can ignore. A bat file is simply a batch file where you can combine commands to run one after the other.

Download the Windows version of modesdeco2 (looks like current version is modesdeco2_windows_20170127.zip)

On your C: drive create a folder called Radar (or whatever you want to call it). Unzip the contents of that file into the Radar folder - there should be 7 files in there).

There is an example batch file provided called modesdeco2_example.bat. Open that in Notepad by right clicking on file and selecting 2nd option "Edit". It should look like this:
@echo off
cmd /c modesdeco2.exe --gain 49.6 --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
PAUSE
exit


You are now going to delete the options you don't need for a simple test of whether it works. The test version should look like this - make sure there are two -- in front of sbs10001:
@echo off
cmd /c modesdeco2.exe --sbs10001 10001
PAUSE
exit


Save the changed file.

Double click on that bat file and it should open a window and modesdeco2 will start. If there are error messages let us know.

One possible error is described in the modesdeco2.txt file:

QuoteWhen you run this version of modesdeco2.exe 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. Or select your language.

If data starts scrolling up the screen, try starting Basestation, checking the settings I mentioned previously and see if data is displayed.

To stop modesdeco2, press Ctrl-C.

If this works, we can work on getting more complicated!

Ian









Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 11, 2018, 01:23:02 PM
OK Ian,
             I shall do this when I get home.  I'm away from SBS for a couple of days now.  Where do I download it from please?


                                      Andos.
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: IanH on January 11, 2018, 03:07:46 PM
It should be at the front of the big thread on here about Modesmixer2. And indeed it is:

https://radarspotting.com/forum/index.php/topic,2978.msg13471.html#msg13471

The file is on Google drive - the download button is at top right when you get there.

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 11, 2018, 07:50:41 PM
Quote from: IanH on January 11, 2018, 03:07:46 PM
It should be at the front of the big thread on here about Modesmixer2. And indeed it is:

https://radarspotting.com/forum/index.php/topic,2978.msg13471.html#msg13471

The file is on Google drive - the download button is at top right when you get there.
OK thanks Ian,
                           I'll let you know how I get on. 

                                     Andos.

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 15, 2018, 12:49:04 AM
Ok Ian,
            I have downloaded modesdeco2_windows_20170127.zip and extracted 7 files to a folder on C: called FAD  (C:\FAD) I have edited the file so it now reads:

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

Saved and closed it.

When I double-click on the file to run it receive the attached screen:




                                             Andos.

[Attachment deleted by Admin to save file space]
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: IanH on January 15, 2018, 12:15:27 PM
Can't see a screenshot.

But I guess it's not working so I need to try it out for myself. I have used modesdeco2 previously but not at the moment - maybe my instructions missed something.  :(
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Anmer on January 15, 2018, 12:30:24 PM
Quote from: IanH on January 15, 2018, 12:15:27 PM
Can't see a screenshot.

There's one in the post Ian.
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Triple7 on January 15, 2018, 01:34:51 PM
Looks to me like the device is already in operation. Maybe Windows has installed its own drivers for the dongle - maybe try the Zadig drivers instead. Are you running another program to decode the incoming data from the dongle?

http://zadig.akeo.ie/

Tim
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: IanH on January 15, 2018, 02:27:42 PM
I can see it now.  ???

And Tim has pre-empted my response  ;D

I'm never sure whether Zadig is needed for modesdeco2 - probably because it is usually already installed fro other programs.

Certainly in Linux one has to ensure the system drivers for the DVB-T dongle are blacklisted so that is probably what Zadig effectively does in Windows.

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 15, 2018, 06:35:12 PM
Quote from: Triple7 on January 15, 2018, 01:34:51 PM
Looks to me like the device is already in operation. Maybe Windows has installed its own drivers for the dongle - maybe try the Zadig drivers instead. Are you running another program to decode the incoming data from the dongle?

http://zadig.akeo.ie/

Tim
Hi Tim/Ian/Anmer,   
                                  I'm not sure but the program I use to populate my missing fields  into BaseStation is ADUSBS Utility.  It takes the  populating data from my ADU Software database including my Seen/Required details. 

             Could this be it ?

                           Andos.

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 15, 2018, 08:31:15 PM
Quote from: Andos on January 15, 2018, 06:35:12 PM
Quote from: Triple7 on January 15, 2018, 01:34:51 PM
Looks to me like the device is already in operation. Maybe Windows has installed its own drivers for the dongle - maybe try the Zadig drivers instead. Are you running another program to decode the incoming data from the dongle?

http://zadig.akeo.ie/

Tim
Hi Tim/Ian/Anmer,   
                                  I'm not sure but the program I use to populate my missing fields  into BaseStation is ADUSBS Utility.  It takes the  populating data from my ADU Software database including my Seen/Required details. 

             Could this be it ?

                           Andos.

Sent from my STF-L09 using Tapatalk
Hi Guys,
                If this running,  what do I do next?



                         Andy H.

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: IanH on January 15, 2018, 11:44:48 PM
I've just tried running modesdeco2 and RTL1090 on my PC and get similar errors. Tried runnign Sading with no difference.

Looking back on this forum, I see that others and myself mentioned similar problems back in 2015. I have never got any of the dongle receiving software working on this PC. Works fine on other PCs/tablets but not this one and never found out why. If it works, great. If it doesn't no one knows why.

So I'm out of ideas. The software is working but something is stopping it connecting to the dongle.
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 16, 2018, 03:12:19 AM
My USB Setting in BaseStation is set to 10001.

Although I normally use my SBS-1er on here,  I actually tried using the digital radio on BaseStation once a long time  ago too see what it was like (-at least a couple of years ago).   But I don't use it at all anymore.   Could this be of any relevance to the SDR bit?

                               Andos.

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Anmer on January 16, 2018, 07:53:11 AM
Quote from: IanH on January 15, 2018, 11:44:48 PM
Looking back on this forum, I see that others and myself mentioned similar problems back in 2015. I have never got any of the dongle receiving software working on this PC. Works fine on other PCs/tablets but not this one and never found out why. If it works, great. If it doesn't no one knows why.

A few years ago I did quite a bit of "testing" of the early DVB-T SDRs using RTL1090 on numerous Windows PCs.  The early DVB-Ts came with driver software and, if installed, could not be removed to be replaced with the Zadig.  I never found a way around this.

But can I check your setup?

Are you using RTL1090.exe on a PC?  If so, is it not possible to run PiAware on the RPi and configure ModeSMixer2 to use data from PiAware on the available ports:

https://flightaware.com/adsb/piaware/about

This isn't something I've tried but it may be possible.  Perhaps others have achieved this?
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Triple7 on January 16, 2018, 08:33:48 AM
Quote from: Anmer on January 16, 2018, 07:53:11 AM
This isn't something I've tried but it may be possible.  Perhaps others have achieved this?

I run Piaware on my RPi2 and also run MM2 on the Pi. I take the returned Mlats from FA and display just those on a MM2 screen (web page). It should therefore be possible to also output the FA data both positional and Mlats and transcode them onto BS format (using MM2) and use BS as the display to show the results.

Here's what I think you might need in MM2 on the Pi (thanks to Ian H for his words here: https://radarspotting.com/forum/index.php/topic,5175.msg26492.html#msg26492:

./modesmixer2 --inConnect <Pi IP>:30105 --inConnect <Pi IP>:30005 --outServer sbs10001:10001 --outServer sbs30006:30006 --filter-nocountry --web 8088 --db basestation.sqb --silhouettes ./silos --frdb flightroute.sqb --location xx.xx:-yy.yy

Typing the Pi's IP address <Pi IP>:8088 into a web browser should give you the MM2 display - you can choose any port No's you like as long as the code above contains the same port No.

The above code also allows for a basestation.sqb, flightroute.sqb and silhouettes to be displayed in the web browser window but if you are using BS on your PC you won't need those, so just remove them from the MM2 code.

I have cobbled this together from my own set up and other comments. I recall there was some discussion about the port for returned Mlats, mine is set as 30105 but I think it used to be 31003, you may need to experiment a bit.

Don't forget my notes from the above link: https://radarspotting.com/forum/index.php/topic,2978.msg24197.html#msg24197

"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." The address will need to be that of the Pi so BS can pick up the feed from MM2.

Finally, you can make the above command run automatically when your Pi boots. If you get to a working system using the above, I can post some more info about that.

Good luck  ;D

Tim
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: IanH on January 16, 2018, 08:18:51 PM
Tim's is correct about Piaware to Basestation.

Just checked my command line:
./modesmixer2 --web 8086 --location 5x.xx:-0.xx --inConnect 192.168.0.177:30105 --inConnect 192.168.0.177:30005 --outServer sbs10001:10001

192.168.0.177 is the IP address of my Pi. The above command is showing combined ADSB plots from port 30005 and MLAT plots from port 30105 on Basestation. (Previously the port for MLAT had to be set by the user in Piaware so ignore any previous values eg 31003!)

You don't need the --location or --web option if you son't want to see modesmixer2's map.

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 17, 2018, 05:48:43 PM
Quote from: IanH on January 16, 2018, 08:18:51 PM
Tim's is correct about Piaware to Basestation.

Just checked my command line:
./modesmixer2 --web 8086 --location 5x.xx:-0.xx --inConnect 192.168.0.177:30105 --inConnect 192.168.0.177:30005 --outServer sbs10001:10001

192.168.0.177 is the IP address of my Pi. The above command is showing combined ADSB plots from port 30005 and MLAT plots from port 30105 on Basestation. (Previously the port for MLAT had to be set by the user in Piaware so ignore any previous values eg 31003!)

You don't need the --location or --web option if you son't want to see modesmixer2's map.
Hi Guys,
                I am again very confused.  I got my  Pi to use for  feeding sites like FA & ADSB Ex.

               I am trying to simply use my dongle plugged directly into my laptop's USB port with internal aerial.  So that I may use it out and  about.

               To use my  Pi away from home also,  I would no longer be able feed  to FA etc.. 

               In your suggestions,  I think I am right in thinking  that you wish for  me to use my with dongle connected to my laptop using ModeSMixer2.  Is this correct? 


                If I do need ModeSMixer2, from where could I download it please?


                                 Andos.


              

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Anmer on January 17, 2018, 06:19:50 PM
If you want to use your DVB-T receiver with your laptop "on the road" you need to resolve what appears to be a driver issue affecting RTL1090.

The challenge is getting RTL1090 to run on your laptop with the required Zadig driver.

If you can resolve that issue, you have to decide what GUI to use to view the received aircraft on a local map.

If I refer back to your original post, you were looking for a routes database and to run BaseStation from your DVB-T.  I didn't see mention that you wanted to achieve this "on the road".

The possible RTL1090 driver issue has emerged in later posts.

Maybe the easiest option is to use a tracking app on a smart phone?

Or focus on getting RTL1090 to work, initially with something like Virtual Radar Server.  Then progress from there.
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 17, 2018, 06:27:55 PM
Quote from: Anmer on January 17, 2018, 06:19:50 PM
If you want to use your DVB-T receiver with your laptop "on the road" you need to resolve what appears to be a driver issue affecting RTL1090.

The challenge is getting RTL1090 to run on your laptop with the required Zadig driver.

If you can resolve that issue, you have to decide what GUI to use to view the received aircraft on a local map.

If I refer back to your original post, you were looking for a routes database and to run BaseStation from your DVB-T.  I didn't see mention that you wanted to achieve this "on the road".

The possible RTL1090 driver issue has emerged in later posts.

Maybe the easiest option is to use a tracking app on a smart phone?

Or focus on getting RTL1090 to work, initially with something like Virtual Radar Server.  Then progress from there.
Hi Anmer,
                  for some reason,  I thought had.  Once again,  my apologies for the confusion.  Do you think that if I install the Zadig drivers this would resolve problem or create new ones?   Following threads yours,  Tim's and Ian's discussions and trying to make sense of everything,  I keep myself the above question re: creating/fixing problems.

                             Andos.

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Anmer on January 17, 2018, 06:42:01 PM
I'd install Virtual Radar Server on the laptop.  And the Zadig driver.  Connect your DVB-T (with antenna) and see if you can get VRS to detect decoded data from RTL1090.

If you can get the laptop to handle data from the DVB_T and decoded by RTL1090, that would be a good first step.  But I don't want you to venture outside of your comfort zone.
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 17, 2018, 06:45:49 PM
Quote from: Anmer on January 17, 2018, 06:42:01 PM
I'd install Virtual Radar Server on the laptop.  And the Zadig driver.  Connect your DVB-T (with antenna) and see if you can get VRS to detect decoded data from RTL1090.

If you can get the laptop to handle data from the DVB_T and decoded by RTL1090, that would be a good first step.  But I don't want you to venture outside of your comfort zone.
Thanks I shall try this.  Could you please send me the links for these downloads please?

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Triple7 on January 17, 2018, 06:49:22 PM
Quote from: Andos on January 17, 2018, 05:48:43 PMIf I do need ModeSMixer2, from where could I download it please?

OK, just answering your query about MM2. You can find a link to the latest versions for Windows, RPi, Ubuntu and OSX in this thread:

https://radarspotting.com/forum/index.php/topic,2978.msg15240.html#msg15240

As Anmer states you need to resolve the driver issue first as your PC or Laptop thinks the dongle is already in use, so until you fix that you can't progress to the next stage.

Tim

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 17, 2018, 06:51:32 PM
Thanks Tim!

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: sergsero on January 18, 2018, 02:54:20 PM
Hello,

I think above everything was well explained and for that I am very grateful.
For clarity, I would once again clarify that there are two tasks.

The first - to force a RTL-dongle, which originally was a DVB-T tuner, to receive Mode S messages on frequency 1.09GHz, decode them by SDR method and output to network in a specific format known as BEAST.

The second task is to visualize the obtained data in tables and aircraft labels on a map. As well as convert the source data into various formats and output them to network for use by other programs and processes.

If talking about modesdeco2, it performs the first task and there is not require presence of libusb.dll or rtlsdr.dll libraries for this application.
But your target device RTL2832U dongle is not HID, so you must install a driver before you can communicate with it using modesdeco2 or other applications.
Being a 'libusb-based' application, it needs the WinUSB driver, which in your case is better to install using the program zadig.

If you got this error, it is likely that Windows has already installed the DVB-T TV tuner driver for the RTL dongle. And you'll need to replace it using zadig to the WinUSB.

After that run modesdeco2 in console with one option --device-list, and you'll to see the message that informs that the dongle is available and can be used:
C:\FAD>modesdeco2.exe --device-list

2018-01-18 21:36:09.262  INFO     ModeSDeco2 v.20170127

Available RTL Devices:
0 mnf: Realtek prod: RTL2838UHIDIR serial: 00000001

No Available AirSpy devices.


Best regards,
sergsero

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 18, 2018, 03:14:15 PM
Hi Sergsero,
                      The  dongle I am using is FlightAware Pro Plus dongle.   You have referred to DVB-T dongle;  an RTL dongle;  and an RTL-2832U dongle.   Could you tell me which one is actually mine,  or are all of these the same?


                           Andos.

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Anmer on January 18, 2018, 03:18:55 PM
Hi Andos

They're all the same for our purposes.
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 18, 2018, 03:20:54 PM
Quote from: Anmer on January 18, 2018, 03:18:55 PM
Hi Andos

They're all the same for our purposes.
Ok thanks Anmer!

                            Andos.

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: sergsero on January 18, 2018, 03:42:08 PM
This should not confuse you because the device from FlightAware is the same classic RTL dongle.
They only added to it a low noise amplifier, bandpass filter for better receiving  of 1090 MHz signals and replaced internal oscillator on more stable TCXO - temperature compensated crystal oscillator.

But it is based the same on two key components: R820T2 receiver chip and  software defined radio RTL2832U ADC chip. Five years ago (in Feb 2012) found that RTL2832U ADC chip being able to switch from a TV mode (more properly, exploitation of the separate raw mode used in FM reception) to SDR which can output an unsigned 8bit I/Q samples at high rates. Since this all started :).

/sergsero
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Andos on January 19, 2018, 05:11:47 PM
Quote from: sergsero on January 18, 2018, 03:42:08 PM
This should not confuse you because the device from FlightAware is the same classic RTL dongle.
They only added to it a low noise amplifier, bandpass filter for better receiving  of 1090 MHz signals and replaced internal oscillator on more stable TCXO - temperature compensated crystal oscillator.

But it is based the same on two key components: R820T2 receiver chip and  software defined radio RTL2832U ADC chip. Five years ago (in Feb 2012) found that RTL2832U ADC chip being able to switch from a TV mode (more properly, exploitation of the separate raw mode used in FM reception) to SDR which can output an unsigned 8bit I/Q samples at high rates. Since this all started :).

/sergsero
Thanks Sergsero, 
                                That has has actually helped clarify a lot of things.  Especially as I have always thought that  the SDR part was actually  to do with air radio part of the SBS-1er.  No wonder I've not been able to grasp things.

                I guess this must then mean that error that I am receiving is because the SDR component.

                      Andos.           

Sent from my STF-L09 using Tapatalk

Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Paul1 on January 19, 2018, 10:04:33 PM
Hi Guys

I got pointed to this post as I want to run BS with my DVB-TV Dongle and I'm stuck on a couple of things following the thread of changing the file saving and running it. I've got a couple of questions regarding this:-

1) once I've edited the file and ran it is the file supposed to run the text and then disappear it is it suppose to stay on and give Mode S messages before launching Base station.

2) would anyone be willing to help out tomorrow at some point possibly in the early evening 6/7 pm ( I can let whoever helps when I am free and sat at the computer)

Regards
Paul
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Triple7 on January 20, 2018, 07:59:33 AM
https://radarspotting.com/forum/index.php/board,51.0.html

Tim
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: sergsero on January 20, 2018, 09:00:47 AM
Hi Paul,

If you will be use the program modesdeco2 with BS, the sequence of actions can be the following. But at the beginning I'll remind well known things about the command line, because the programs we are talking about is a console application. They do not have a GUI.

For starters, let's check out its simple run in a console window, without any automation with a batch file. Batch files are the computer handyman's way of getting things done. They can automate everyday tasks, shorten the required time to do something, and translate a complex process into something anyone could operate. Its creation and use is another topic for other discussion.

When people refer to the command prompt they may we refer to it in different ways - as a shell, console window or a cmd prompt. In order to enter the command prompt you need to run a program that is dependent on your operating system. This explanation is based on Windows 10, but the majority of these methods should work in earlier versions of Windows, too.

There are over a dozen ways to open the console, but we will consider the most simple: "The open Command Prompt from the Run Box".

Press Windows+R to open "Run" box. Type "cmd" (without the quotes) and then click "OK" to open a regular Command Prompt. (Note. Type "cmd" and then press Ctrl+Shift+Enter to open an administrator Command Prompt, if for some reason you need more access rights.)

After following these steps, you will be presented with a console window. Now you need to go to the directory where you have stored modesdeco2.

For navigate between folders using CD (Change Directory) command that enables you to change the current folder to another folder from your computer.
For example, if the directory to which you want to change is the "MD2\20170127_bin" folder that's in the "SDR" folder on the hard drive D:, the path would be "D:\SDR\MD2\20170127_bin". To change the drive and the directory at the same time, use the cd command, followed by the "/d" switch: cd /d D:\SDR\MD2\20170127_bin and press Enter on your keyboard.

After this just type dir at the Command Prompt. You will see a list of all files, among which will be modesdeco2.exe.

First make sure that your RTL-dongle is available for use and all the problems with accessing, mentioned earlier were solved.
Just type modesdeco2 --device-list and press Enter on your keyboard. You will see the message:

QuoteD:\SDR\MD2\20170127_bin>modesdeco2.exe  --device-list
2018-01-20 15:58:14.835  INFO     ModeSDeco2 v.20170127

Available RTL Devices:
0 mnf: Realtek prod: RTL2838UHIDIR serial: 00000001

No Available AirSpy devices.
If everything is OK, then preparing the launch of the program and specify all required options. In our case, this is the following set:
D:\SDR\MD2\20170127_bin>modesdeco2.exe  --gain 42 --freq-correction 58 --sbs10001 10001

And just  press Enter on your keyboard. In response you will see the following messages:
Quote2018-01-20 15:59:14.728  INFO     ModeSDeco2 v.20170127
2018-01-20 15:59:14.764  INFO     Device: 0 mnf: Realtek prod: RTL2838UHIDIR serial: 00000001
2018-01-20 15:59:15.294  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
2018-01-20 15:59:15.363  INFO     Freq Correction: 58 ppm
2018-01-20 15:59:15.447  INFO     Gain: 42.0 dB
2018-01-20 15:59:15.454  INFO     AGC: Off
2018-01-20 15:59:15.455  INFO     Start SBS10001 Server on port 10001
2018-01-20 15:59:18.471  INFO     Connected 127.0.0.1:34439
2018-01-20 15:59:22.547  INFO     Coverage area was determined
2018-01-20 15:59:22.548  INFO     Magnetic declination value was calculated
2018-01-20 15:59:23.332  INFO     SBS-3 LOGIN

Now you can launch BS. For change between "USB" and "Ethernet" connection, use the "Settings-Data Source" menu item and select the "Ethernet" type of connection. You may also need to use the "Network" tab of the "Settings-Hardware Settings" menu item to adjust the IP address that BaseStation connects to.

If modesdeco2 and BS are on the same computer, specify 127.0.0.1. If they are different, in the settings of the BS specify the IP address of the computer running modesdeco2.

Best regards,
sergsero


[Attachment deleted by Admin to save file space]
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: sergsero on January 20, 2018, 10:48:35 AM
Now consider the case when a data source is any other hardware (like modesbeast) or SDR software (as dump1090) receiver. The one requirement - they must be capable of outputting data to the network. Or be able to connect to a computer via the USB port.

In this case we will be use the program modesmixer2 as a universal converter from any data formats to BS input format.

Supposing that you know how to navigate between folders in console and can to change a current folder to the necessary directory where you placed the program.

Do it and then run modesmixer2 in the following configuration:
D:\SDR\MM2\20180112>modesmixer2.exe --inConnect 192.168.64.170:35570 --outServer sbs1001:10001

In this example, server (for instance, dump1090 or radarcape) that provides output data via a network has the IP address 192.168.64.170 and port 35570.

In response you will see the following messages:
Quote2018-01-20 17:12:56.076  INFO     ModeSMixer2 v.20180112
2018-01-20 17:12:56.080  INFO     outServer(sbs10001:10001) started
2018-01-20 17:12:56.085  INFO     inConnect(192.168.64.170:35570) connecting 192.168.64.170:35570
2018-01-20 17:12:56.088  INFO     inConnect(192.168.64.170:35570) connected
2018-01-20 17:12:57.037  INFO     inConnect(192.168.64.170:35570) BEAST data stream detected
2018-01-20 17:13:02.483  INFO     outServer(sbs10001:10001) 127.0.0.1:35799 connected
2018-01-20 17:13:07.334  INFO     outServer(sbs10001:10001) 127.0.0.1:35799 SBS-3 LOGIN
2018-01-20 17:13:56.794  INFO     Coverage area was determined
2018-01-20 17:13:56.798  INFO     Magnetic declination value was calculated

The log line "2018-01-20 17:13:07.334  INFO     outServer(sbs10001:10001) 127.0.0.1:35799 SBS-3 LOGIN" reports that BS was connected to modesmixer2 and work OK, as on the screenshot.




[Attachment deleted by Admin to save file space]
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Paul1 on January 21, 2018, 12:10:56 AM
Hi there sergsero

After a bit of trouble shooting I disabled Dump1090 and it worked with everything up and running.

Now I am running Active Display Lite and found that when I run it there are operator flags showing there but when I cross reference it with my display screen on basestation I find that the flags don't appear such as Ryanair, TUI aircraft and Thomas Cook aircraft even though I've got all the flags in the right folder.

Please could you give me any indication on how I am able to get all flags showing on the radar screen without any gaps in the operator field

Regards
Paul
Title: Re: Questions for Sergsero re: ModeSMixer2 with configuration file
Post by: Triple7 on January 21, 2018, 08:52:18 AM
https://radarspotting.com/forum/index.php/topic,8123.msg36804.html#msg36804

Tim