Welcome to Radarspotting. Please login or sign up.

April 28, 2024, 02:35:22 PM

Login with username, password and session length

New Members

New Members

You should get an activation email when you join.  If not, please use the Contact option.

Questions for Sergsero re: ModeSMixer2 with configuration file

Started by Andos, January 09, 2018, 09:38:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Anmer

Here to Help.

Andos

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

Andos.

sergsero

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

Andos

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

Andos.

Paul1

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


sergsero

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]

sergsero

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]

Paul1

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